package android.app;
public interface IUiModeManager extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.app.IUiModeManager
{
private static final java.lang.String DESCRIPTOR = "android.app.IUiModeManager";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
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;
}
@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();
}
}
@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;
}
@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;
}
@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;
}
@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);
}
public void enableCarMode(int flags) throws android.os.RemoteException;
public void disableCarMode(int flags) throws android.os.RemoteException;
public int getCurrentModeType() throws android.os.RemoteException;
public void setNightMode(int mode) throws android.os.RemoteException;
public int getNightMode() throws android.os.RemoteException;
public boolean isUiModeLocked() throws android.os.RemoteException;
public boolean isNightModeLocked() throws android.os.RemoteException;
}