/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/app/IUiModeManager.aidl
 */
package android.app;
Interface used to control special UI modes.
@hide
/** * Interface used to control special UI modes. * @hide */
public interface IUiModeManager extends android.os.IInterface {
Local-side IPC implementation stub class.
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements android.app.IUiModeManager { private static final java.lang.String DESCRIPTOR = "android.app.IUiModeManager";
Construct the stub at attach it to the interface.
/** Construct the stub at attach it to the interface. */
public Stub() { this.attachInterface(this, DESCRIPTOR); }
Cast an IBinder object into an android.app.IUiModeManager interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.app.IUiModeManager interface, * generating a proxy if needed. */
public static android.app.IUiModeManager asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.app.IUiModeManager))) { return ((android.app.IUiModeManager)iin); } return new android.app.IUiModeManager.Stub.Proxy(obj); } @Override public android.os.IBinder asBinder() { return this; } @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException { java.lang.String descriptor = DESCRIPTOR; switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(descriptor); return true; } case TRANSACTION_enableCarMode: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.enableCarMode(_arg0); reply.writeNoException(); return true; } case TRANSACTION_disableCarMode: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.disableCarMode(_arg0); reply.writeNoException(); return true; } case TRANSACTION_getCurrentModeType: { data.enforceInterface(descriptor); int _result = this.getCurrentModeType(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setNightMode: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.setNightMode(_arg0); reply.writeNoException(); return true; } case TRANSACTION_getNightMode: { data.enforceInterface(descriptor); int _result = this.getNightMode(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_isUiModeLocked: { data.enforceInterface(descriptor); boolean _result = this.isUiModeLocked(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_isNightModeLocked: { data.enforceInterface(descriptor); boolean _result = this.isNightModeLocked(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.app.IUiModeManager { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } @Override public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; }
Enables the car mode. Only the system can do this.
@hide
/** * Enables the car mode. Only the system can do this. * @hide */
@Override public void enableCarMode(int flags) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_enableCarMode, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Disables the car mode.
/** * Disables the car mode. */
@Override public void disableCarMode(int flags) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_disableCarMode, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public int getCurrentModeType() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getCurrentModeType, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Sets the night mode. The mode can be one of: 1 - notnight mode 2 - night mode 3 - automatic mode switching
/** * Sets the night mode. * The mode can be one of: * 1 - notnight mode * 2 - night mode * 3 - automatic mode switching */
@Override public void setNightMode(int mode) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(mode); mRemote.transact(Stub.TRANSACTION_setNightMode, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public int getNightMode() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getNightMode, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Tells if UI mode is locked or not.
/** * Tells if UI mode is locked or not. */
@Override public boolean isUiModeLocked() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_isUiModeLocked, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Tells if Night mode is locked or not.
/** * Tells if Night mode is locked or not. */
@Override public boolean isNightModeLocked() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_isNightModeLocked, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_enableCarMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_disableCarMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_getCurrentModeType = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_setNightMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getNightMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_isUiModeLocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_isNightModeLocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); }
Enables the car mode. Only the system can do this.
@hide
/** * Enables the car mode. Only the system can do this. * @hide */
public void enableCarMode(int flags) throws android.os.RemoteException;
Disables the car mode.
/** * Disables the car mode. */
public void disableCarMode(int flags) throws android.os.RemoteException; public int getCurrentModeType() throws android.os.RemoteException;
Sets the night mode. The mode can be one of: 1 - notnight mode 2 - night mode 3 - automatic mode switching
/** * Sets the night mode. * The mode can be one of: * 1 - notnight mode * 2 - night mode * 3 - automatic mode switching */
public void setNightMode(int mode) throws android.os.RemoteException; public int getNightMode() throws android.os.RemoteException;
Tells if UI mode is locked or not.
/** * Tells if UI mode is locked or not. */
public boolean isUiModeLocked() throws android.os.RemoteException;
Tells if Night mode is locked or not.
/** * Tells if Night mode is locked or not. */
public boolean isNightModeLocked() throws android.os.RemoteException; }