package android.service.vr;
public interface IVrManager extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.service.vr.IVrManager
{
private static final java.lang.String DESCRIPTOR = "android.service.vr.IVrManager";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.service.vr.IVrManager asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.service.vr.IVrManager))) {
return ((android.service.vr.IVrManager)iin);
}
return new android.service.vr.IVrManager.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_registerListener:
{
data.enforceInterface(descriptor);
android.service.vr.IVrStateCallbacks _arg0;
_arg0 = android.service.vr.IVrStateCallbacks.Stub.asInterface(data.readStrongBinder());
this.registerListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_unregisterListener:
{
data.enforceInterface(descriptor);
android.service.vr.IVrStateCallbacks _arg0;
_arg0 = android.service.vr.IVrStateCallbacks.Stub.asInterface(data.readStrongBinder());
this.unregisterListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_registerPersistentVrStateListener:
{
data.enforceInterface(descriptor);
android.service.vr.IPersistentVrStateCallbacks _arg0;
_arg0 = android.service.vr.IPersistentVrStateCallbacks.Stub.asInterface(data.readStrongBinder());
this.registerPersistentVrStateListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_unregisterPersistentVrStateListener:
{
data.enforceInterface(descriptor);
android.service.vr.IPersistentVrStateCallbacks _arg0;
_arg0 = android.service.vr.IPersistentVrStateCallbacks.Stub.asInterface(data.readStrongBinder());
this.unregisterPersistentVrStateListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getVrModeState:
{
data.enforceInterface(descriptor);
boolean _result = this.getVrModeState();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_getPersistentVrModeEnabled:
{
data.enforceInterface(descriptor);
boolean _result = this.getPersistentVrModeEnabled();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setPersistentVrModeEnabled:
{
data.enforceInterface(descriptor);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setPersistentVrModeEnabled(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setVr2dDisplayProperties:
{
data.enforceInterface(descriptor);
android.app.Vr2dDisplayProperties _arg0;
if ((0!=data.readInt())) {
_arg0 = android.app.Vr2dDisplayProperties.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
this.setVr2dDisplayProperties(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getVr2dDisplayId:
{
data.enforceInterface(descriptor);
int _result = this.getVr2dDisplayId();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_setAndBindCompositor:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
this.setAndBindCompositor(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setStandbyEnabled:
{
data.enforceInterface(descriptor);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setStandbyEnabled(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setVrInputMethod:
{
data.enforceInterface(descriptor);
android.content.ComponentName _arg0;
if ((0!=data.readInt())) {
_arg0 = android.content.ComponentName.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
this.setVrInputMethod(_arg0);
reply.writeNoException();
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.service.vr.IVrManager
{
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 registerListener(android.service.vr.IVrStateCallbacks cb) 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.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void unregisterListener(android.service.vr.IVrStateCallbacks cb) 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.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_unregisterListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void registerPersistentVrStateListener(android.service.vr.IPersistentVrStateCallbacks cb) 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.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_registerPersistentVrStateListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void unregisterPersistentVrStateListener(android.service.vr.IPersistentVrStateCallbacks cb) 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.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_unregisterPersistentVrStateListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public boolean getVrModeState() 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_getVrModeState, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean getPersistentVrModeEnabled() 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_getPersistentVrModeEnabled, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void setPersistentVrModeEnabled(boolean enabled) 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(((enabled)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setPersistentVrModeEnabled, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setVr2dDisplayProperties(android.app.Vr2dDisplayProperties vr2dDisplayProperties) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((vr2dDisplayProperties!=null)) {
_data.writeInt(1);
vr2dDisplayProperties.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_setVr2dDisplayProperties, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public int getVr2dDisplayId() 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_getVr2dDisplayId, _data, _reply, 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void setAndBindCompositor(java.lang.String componentName) 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.writeString(componentName);
mRemote.transact(Stub.TRANSACTION_setAndBindCompositor, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setStandbyEnabled(boolean standby) 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(((standby)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setStandbyEnabled, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setVrInputMethod(android.content.ComponentName componentName) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((componentName!=null)) {
_data.writeInt(1);
componentName.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_setVrInputMethod, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_registerListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_unregisterListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_registerPersistentVrStateListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_unregisterPersistentVrStateListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_getVrModeState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_getPersistentVrModeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_setPersistentVrModeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_setVr2dDisplayProperties = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_getVr2dDisplayId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_setAndBindCompositor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_setStandbyEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_setVrInputMethod = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
}
public void registerListener(android.service.vr.IVrStateCallbacks cb) throws android.os.RemoteException;
public void unregisterListener(android.service.vr.IVrStateCallbacks cb) throws android.os.RemoteException;
public void registerPersistentVrStateListener(android.service.vr.IPersistentVrStateCallbacks cb) throws android.os.RemoteException;
public void unregisterPersistentVrStateListener(android.service.vr.IPersistentVrStateCallbacks cb) throws android.os.RemoteException;
public boolean getVrModeState() throws android.os.RemoteException;
public boolean getPersistentVrModeEnabled() throws android.os.RemoteException;
public void setPersistentVrModeEnabled(boolean enabled) throws android.os.RemoteException;
public void setVr2dDisplayProperties(android.app.Vr2dDisplayProperties vr2dDisplayProperties) throws android.os.RemoteException;
public int getVr2dDisplayId() throws android.os.RemoteException;
public void setAndBindCompositor(java.lang.String componentName) throws android.os.RemoteException;
public void setStandbyEnabled(boolean standby) throws android.os.RemoteException;
public void setVrInputMethod(android.content.ComponentName componentName) throws android.os.RemoteException;
}