diff --git a/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicenseResultListener.java b/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicenseResultListener.java index d8cb15aa5..3c9f166b4 100644 --- a/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicenseResultListener.java +++ b/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicenseResultListener.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicenseResultListener.aidl */ package com.android.vending.licensing; public interface ILicenseResultListener extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.android.vending.licensing.ILicenseResultListener { - private static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicenseResultListener"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,16 +47,17 @@ public static com.android.vending.licensing.ILicenseResultListener asInterface(a @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_verifyLicense: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; @@ -63,13 +65,14 @@ public static com.android.vending.licensing.ILicenseResultListener asInterface(a java.lang.String _arg2; _arg2 = data.readString(); this.verifyLicense(_arg0, _arg1, _arg2); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements com.android.vending.licensing.ILicenseResultListener { @@ -95,34 +98,15 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(signedData); _data.writeString(signature); boolean _status = mRemote.transact(Stub.TRANSACTION_verifyLicense, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().verifyLicense(responseCode, signedData, signature); - return; - } } finally { _data.recycle(); } } - public static com.android.vending.licensing.ILicenseResultListener sDefaultImpl; } static final int TRANSACTION_verifyLicense = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(com.android.vending.licensing.ILicenseResultListener impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static com.android.vending.licensing.ILicenseResultListener getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicenseResultListener"; public void verifyLicense(int responseCode, java.lang.String signedData, java.lang.String signature) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicensingService.java b/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicensingService.java index e22a2fe29..05bef566b 100644 --- a/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicensingService.java +++ b/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicensingService.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicensingService.aidl */ package com.android.vending.licensing; public interface ILicensingService extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.android.vending.licensing.ILicensingService { - private static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicensingService"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,16 +47,17 @@ public static com.android.vending.licensing.ILicensingService asInterface(androi @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_checkLicense: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); java.lang.String _arg1; @@ -63,13 +65,14 @@ public static com.android.vending.licensing.ILicensingService asInterface(androi com.android.vending.licensing.ILicenseResultListener _arg2; _arg2 = com.android.vending.licensing.ILicenseResultListener.Stub.asInterface(data.readStrongBinder()); this.checkLicense(_arg0, _arg1, _arg2); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements com.android.vending.licensing.ILicensingService { @@ -93,36 +96,17 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(nonce); _data.writeString(packageName); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_checkLicense, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().checkLicense(nonce, packageName, listener); - return; - } } finally { _data.recycle(); } } - public static com.android.vending.licensing.ILicensingService sDefaultImpl; } static final int TRANSACTION_checkLicense = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(com.android.vending.licensing.ILicensingService impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static com.android.vending.licensing.ILicensingService getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicensingService"; public void checkLicense(long nonce, java.lang.String packageName, com.android.vending.licensing.ILicenseResultListener listener) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPluginLogger.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPluginLogger.java index f3e1ffd3e..f1b534cb0 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPluginLogger.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPluginLogger.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPluginLogger.aidl */ package github.tornaco.android.thanos.core; public interface IPluginLogger extends android.os.IInterface @@ -27,8 +28,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IPluginLogger { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IPluginLogger"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -55,54 +56,53 @@ public static github.tornaco.android.thanos.core.IPluginLogger asInterface(andro @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_logV: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.logV(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_logD: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.logD(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_logW: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.logW(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_logE: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.logE(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.IPluginLogger { @@ -127,10 +127,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(content); boolean _status = mRemote.transact(Stub.TRANSACTION_logV, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().logV(content); - return; - } _reply.readException(); } finally { @@ -146,10 +142,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(content); boolean _status = mRemote.transact(Stub.TRANSACTION_logD, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().logD(content); - return; - } _reply.readException(); } finally { @@ -165,10 +157,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(content); boolean _status = mRemote.transact(Stub.TRANSACTION_logW, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().logW(content); - return; - } _reply.readException(); } finally { @@ -184,10 +172,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(content); boolean _status = mRemote.transact(Stub.TRANSACTION_logE, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().logE(content); - return; - } _reply.readException(); } finally { @@ -195,29 +179,14 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.IPluginLogger sDefaultImpl; } static final int TRANSACTION_logV = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_logD = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_logW = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_logE = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.IPluginLogger impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.IPluginLogger getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IPluginLogger"; public void logV(java.lang.String content) throws android.os.RemoteException; public void logD(java.lang.String content) throws android.os.RemoteException; public void logW(java.lang.String content) throws android.os.RemoteException; diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPrinter.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPrinter.java index 2a19ad73b..8f2fc0c5b 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPrinter.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPrinter.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPrinter.aidl */ package github.tornaco.android.thanos.core; public interface IPrinter extends android.os.IInterface @@ -21,8 +22,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IPrinter { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IPrinter"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -49,36 +50,37 @@ public static github.tornaco.android.thanos.core.IPrinter asInterface(android.os @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_println: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.println(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_print: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.print(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.IPrinter { @@ -103,10 +105,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(content); boolean _status = mRemote.transact(Stub.TRANSACTION_println, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().println(content); - return; - } _reply.readException(); } finally { @@ -122,10 +120,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(content); boolean _status = mRemote.transact(Stub.TRANSACTION_print, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().print(content); - return; - } _reply.readException(); } finally { @@ -133,27 +127,12 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.IPrinter sDefaultImpl; } static final int TRANSACTION_println = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_print = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.IPrinter impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.IPrinter getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IPrinter"; public void println(java.lang.String content) throws android.os.RemoteException; public void print(java.lang.String content) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanos.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanos.java index 5dd70f36e..d50ce830d 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanos.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanos.java @@ -1,9 +1,9 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanos.aidl */ package github.tornaco.android.thanos.core; // DO NOT CHANGE ORDER. - public interface IThanos extends android.os.IInterface { /** Default implementation for IThanos. */ @@ -145,8 +145,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IThanos { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IThanos"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -173,302 +173,262 @@ public static github.tornaco.android.thanos.core.IThanos asInterface(android.os. @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_getServiceManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.os.IServiceManager _result = this.getServiceManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getPrefManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pref.IPrefManager _result = this.getPrefManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getActivityManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.IActivityManager _result = this.getActivityManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getPkgManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.IPkgManager _result = this.getPkgManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getActivityStackSupervisor: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor _result = this.getActivityStackSupervisor(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getPrivacyManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.secure.IPrivacyManager _result = this.getPrivacyManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getAppOpsService: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.secure.ops.IAppOpsService _result = this.getAppOpsService(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getPushManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.push.IPushManager _result = this.getPushManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getNotificationManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.INotificationManager _result = this.getNotificationManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getAudioManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.audio.IAudioManager _result = this.getAudioManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getProfileManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.IProfileManager _result = this.getProfileManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getBackupAgent: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.backup.IBackupAgent _result = this.getBackupAgent(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getWindowManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.wm.IWindowManager _result = this.getWindowManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getPowerManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.power.IPowerManager _result = this.getPowerManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getInputManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.input.IInputManager _result = this.getInputManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_registerEventSubscriber: { - data.enforceInterface(descriptor); android.content.IntentFilter _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.IntentFilter.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.IntentFilter.CREATOR); github.tornaco.android.thanos.core.app.event.IEventSubscriber _arg1; _arg1 = github.tornaco.android.thanos.core.app.event.IEventSubscriber.Stub.asInterface(data.readStrongBinder()); this.registerEventSubscriber(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterEventSubscriber: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.event.IEventSubscriber _arg0; _arg0 = github.tornaco.android.thanos.core.app.event.IEventSubscriber.Stub.asInterface(data.readStrongBinder()); this.unRegisterEventSubscriber(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_fingerPrint: { - data.enforceInterface(descriptor); java.lang.String _result = this.fingerPrint(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getVersionName: { - data.enforceInterface(descriptor); java.lang.String _result = this.getVersionName(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_whoAreYou: { - data.enforceInterface(descriptor); java.lang.String _result = this.whoAreYou(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_isLoggingEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isLoggingEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setLoggingEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setLoggingEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_hasFeature: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.hasFeature(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_hasFrameworkInitializeError: { - data.enforceInterface(descriptor); boolean _result = this.hasFrameworkInitializeError(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getPluginLogger: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.IPluginLogger _result = this.getPluginLogger(_arg0); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getInfiniteZ: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.infinite.InfiniteZ _result = this.getInfiniteZ(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getPatchingSource: { - data.enforceInterface(descriptor); java.util.List _result = this.getPatchingSource(); reply.writeNoException(); reply.writeStringList(_result); - return true; + break; } case TRANSACTION_getRS: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.plus.IRS _result = this.getRS(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getUsageStatsManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.usage.IUsageStatsManager _result = this.getUsageStatsManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getPushDelegateManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager _result = this.getPushDelegateManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getNetworkManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.net.INetworkManager _result = this.getNetworkManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_getOpsManager: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.ops.IOps _result = this.getOpsManager(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } case TRANSACTION_writeLogsTo: { - data.enforceInterface(descriptor); android.os.ParcelFileDescriptor _arg0; - if ((0!=data.readInt())) { - _arg0 = android.os.ParcelFileDescriptor.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.os.ParcelFileDescriptor.CREATOR); this.writeLogsTo(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.IThanos { @@ -493,9 +453,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getServiceManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getServiceManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.os.IServiceManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -513,9 +470,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPrefManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPrefManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.pref.IPrefManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -533,9 +487,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getActivityManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getActivityManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.app.IActivityManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -553,9 +504,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPkgManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPkgManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.pm.IPkgManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -573,9 +521,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getActivityStackSupervisor, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getActivityStackSupervisor(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor.Stub.asInterface(_reply.readStrongBinder()); } @@ -593,9 +538,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPrivacyManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.secure.IPrivacyManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -613,9 +555,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAppOpsService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAppOpsService(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.secure.ops.IAppOpsService.Stub.asInterface(_reply.readStrongBinder()); } @@ -633,9 +572,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPushManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPushManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.push.IPushManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -653,9 +589,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getNotificationManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getNotificationManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.n.INotificationManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -673,9 +606,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAudioManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAudioManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.audio.IAudioManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -693,9 +623,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getProfileManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getProfileManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.profile.IProfileManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -713,9 +640,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getBackupAgent, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getBackupAgent(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.backup.IBackupAgent.Stub.asInterface(_reply.readStrongBinder()); } @@ -733,9 +657,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getWindowManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getWindowManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.wm.IWindowManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -753,9 +674,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPowerManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPowerManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.power.IPowerManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -773,9 +691,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getInputManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getInputManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.input.IInputManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -791,19 +706,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((filter!=null)) { - _data.writeInt(1); - filter.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } - _data.writeStrongBinder((((subscriber!=null))?(subscriber.asBinder()):(null))); + _Parcel.writeTypedObject(_data, filter, 0); + _data.writeStrongInterface(subscriber); boolean _status = mRemote.transact(Stub.TRANSACTION_registerEventSubscriber, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerEventSubscriber(filter, subscriber); - return; - } _reply.readException(); } finally { @@ -817,12 +722,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((subscriber!=null))?(subscriber.asBinder()):(null))); + _data.writeStrongInterface(subscriber); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterEventSubscriber, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterEventSubscriber(subscriber); - return; - } _reply.readException(); } finally { @@ -838,9 +739,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_fingerPrint, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().fingerPrint(); - } _reply.readException(); _result = _reply.readString(); } @@ -858,9 +756,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getVersionName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getVersionName(); - } _reply.readException(); _result = _reply.readString(); } @@ -878,9 +773,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_whoAreYou, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().whoAreYou(); - } _reply.readException(); _result = _reply.readString(); } @@ -898,9 +790,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isLoggingEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isLoggingEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -918,10 +807,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setLoggingEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setLoggingEnabled(enable); - return; - } _reply.readException(); } finally { @@ -938,9 +823,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(feature); boolean _status = mRemote.transact(Stub.TRANSACTION_hasFeature, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasFeature(feature); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -958,9 +840,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_hasFrameworkInitializeError, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasFrameworkInitializeError(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -979,9 +858,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pluginAlias); boolean _status = mRemote.transact(Stub.TRANSACTION_getPluginLogger, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPluginLogger(pluginAlias); - } _reply.readException(); _result = github.tornaco.android.thanos.core.IPluginLogger.Stub.asInterface(_reply.readStrongBinder()); } @@ -999,9 +875,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getInfiniteZ, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getInfiniteZ(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.app.infinite.InfiniteZ.Stub.asInterface(_reply.readStrongBinder()); } @@ -1019,9 +892,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPatchingSource, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPatchingSource(); - } _reply.readException(); _result = _reply.createStringArrayList(); } @@ -1039,9 +909,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getRS, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRS(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.plus.IRS.Stub.asInterface(_reply.readStrongBinder()); } @@ -1059,9 +926,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getUsageStatsManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getUsageStatsManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.app.usage.IUsageStatsManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -1079,9 +943,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPushDelegateManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPushDelegateManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -1099,9 +960,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getNetworkManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getNetworkManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.net.INetworkManager.Stub.asInterface(_reply.readStrongBinder()); } @@ -1119,9 +977,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getOpsManager, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOpsManager(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.ops.IOps.Stub.asInterface(_reply.readStrongBinder()); } @@ -1137,18 +992,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pfd!=null)) { - _data.writeInt(1); - pfd.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pfd, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_writeLogsTo, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().writeLogsTo(pfd); - return; - } _reply.readException(); } finally { @@ -1156,7 +1001,6 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.IThanos sDefaultImpl; } static final int TRANSACTION_getServiceManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getPrefManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -1191,23 +1035,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_getNetworkManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); static final int TRANSACTION_getOpsManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); static final int TRANSACTION_writeLogsTo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.IThanos impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.IThanos getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IThanos"; public github.tornaco.android.thanos.core.os.IServiceManager getServiceManager() throws android.os.RemoteException; public github.tornaco.android.thanos.core.pref.IPrefManager getPrefManager() throws android.os.RemoteException; public github.tornaco.android.thanos.core.app.IActivityManager getActivityManager() throws android.os.RemoteException; @@ -1241,4 +1071,25 @@ public static github.tornaco.android.thanos.core.IThanos getDefaultImpl() { public github.tornaco.android.thanos.core.net.INetworkManager getNetworkManager() throws android.os.RemoteException; public github.tornaco.android.thanos.core.ops.IOps getOpsManager() throws android.os.RemoteException; public void writeLogsTo(android.os.ParcelFileDescriptor pfd) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanosProvider.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanosProvider.java index 8f7bd8a6d..fd6060c84 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanosProvider.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanosProvider.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanosProvider.aidl */ package github.tornaco.android.thanos.core; public interface IThanosProvider extends android.os.IInterface @@ -19,8 +20,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IThanosProvider { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IThanosProvider"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -47,26 +48,28 @@ public static github.tornaco.android.thanos.core.IThanosProvider asInterface(and @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_getThanos: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IThanos _result = this.getThanos(); reply.writeNoException(); - reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); - return true; + reply.writeStrongInterface(_result); + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.IThanosProvider { @@ -91,9 +94,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getThanos, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getThanos(); - } _reply.readException(); _result = github.tornaco.android.thanos.core.IThanos.Stub.asInterface(_reply.readStrongBinder()); } @@ -103,25 +103,10 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.IThanosProvider sDefaultImpl; } static final int TRANSACTION_getThanos = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.IThanosProvider impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.IThanosProvider getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IThanosProvider"; public github.tornaco.android.thanos.core.IThanos getThanos() throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/IActivityManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/IActivityManager.java index a40f020b3..c17b60140 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/IActivityManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/IActivityManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/IActivityManager.aidl */ package github.tornaco.android.thanos.core.app; public interface IActivityManager extends android.os.IInterface @@ -89,7 +90,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA return 0L; } // 启动管理设置 - @Override public boolean isStartBlockEnabled() throws android.os.RemoteException { return false; @@ -105,7 +105,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA return false; } // Task removal - @Override public boolean isCleanUpOnTaskRemovalEnabled() throws android.os.RemoteException { return false; @@ -121,7 +120,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA return false; } // 后台运行设置 - @Override public boolean isBgRestrictEnabled() throws android.os.RemoteException { return false; @@ -144,7 +142,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA return false; } // Task blur - @Override public boolean isRecentTaskBlurEnabled() throws android.os.RemoteException { return false; @@ -160,7 +157,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA return false; } // Audio focused app. - @Override public boolean isBgTaskCleanUpSkipAudioFocusedAppEnabled() throws android.os.RemoteException { return false; @@ -169,7 +165,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA { } // Notification record app. - @Override public boolean isBgTaskCleanUpSkipWhichHasNotificationEnabled() throws android.os.RemoteException { return false; @@ -178,7 +173,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA { } // 后台运行锁屏清理延迟 - @Override public void setBgTaskCleanUpDelayTimeMills(long delayMills) throws android.os.RemoteException { } @@ -234,7 +228,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA { } // Keep when has recent task. - @Override public boolean isBgTaskCleanUpSkipWhenHasRecentTaskEnabled() throws android.os.RemoteException { return false; @@ -390,7 +383,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA // https://source.android.com/devices/tech/perf/cached-apps-freezer // // ****************************************************************** - @Override public boolean isCachedAppsFreezerSupported() throws android.os.RemoteException { return false; @@ -431,7 +423,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA // Block Receiver/Service/Provider all the time, event the package is running at foreground, // may cause the app crash. // ****************************************************************** - @Override public void setBlockAllReceiver(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean block) throws android.os.RemoteException { } @@ -454,7 +445,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA return false; } // Return 0 if it fail - @Override public long getProcessStartTime(int pid) throws android.os.RemoteException { return 0L; @@ -482,12 +472,12 @@ public static class Default implements github.tornaco.android.thanos.core.app.IA @Override public void setBgTaskCleanUpSkipForegroundEnabled(boolean enable) throws android.os.RemoteException { } - /* return the pid of process. or -1 if no process found */ + /** return the pid of process. or -1 if no process found */ @Override public int getPid(github.tornaco.android.thanos.core.os.ProcessName processName) throws android.os.RemoteException { return 0; } - /* return the pid of killed process. or -1 if no process found */ + /** return the pid of killed process. or -1 if no process found */ @Override public int killProcessByName(github.tornaco.android.thanos.core.os.ProcessName processName) throws android.os.RemoteException { return 0; @@ -547,8 +537,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.IActivityManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.IActivityManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -575,98 +565,64 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_getCurrentFrontApp: { - data.enforceInterface(descriptor); java.lang.String _result = this.getCurrentFrontApp(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_forceStopPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); this.forceStopPackage(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_idlePackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.idlePackage(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPackageIdle: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPackageIdle(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkBroadcastingIntent: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); boolean _result = this.checkBroadcastingIntent(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkService: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); android.content.ComponentName _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); int _arg2; _arg2 = data.readInt(); int _arg3; @@ -674,35 +630,23 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac boolean _result = this.checkService(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkRestartService: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.content.ComponentName _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); boolean _result = this.checkRestartService(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkBroadcast: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); int _arg1; _arg1 = data.readInt(); int _arg2; @@ -710,20 +654,14 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac boolean _result = this.checkBroadcast(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkStartProcess: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.content.pm.ApplicationInfo _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.pm.ApplicationInfo.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.pm.ApplicationInfo.CREATOR); java.lang.String _arg2; _arg2 = data.readString(); java.lang.String _arg3; @@ -731,693 +669,532 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac boolean _result = this.checkStartProcess(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_onStartProcessLocked: { - data.enforceInterface(descriptor); android.content.pm.ApplicationInfo _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.pm.ApplicationInfo.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.pm.ApplicationInfo.CREATOR); this.onStartProcessLocked(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getRunningAppProcess: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.process.ProcessRecord[] _result = this.getRunningAppProcess(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - return true; + break; } case TRANSACTION_getRunningAppPackages: { - data.enforceInterface(descriptor); java.util.List _result = this.getRunningAppPackages(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getRunningServiceLegacy: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.util.List _result = this.getRunningServiceLegacy(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getRunningAppProcessLegacy: { - data.enforceInterface(descriptor); java.util.List _result = this.getRunningAppProcessLegacy(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getRunningAppsCount: { - data.enforceInterface(descriptor); int _result = this.getRunningAppsCount(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getRunningAppProcessForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.util.List _result = this.getRunningAppProcessForPackage(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_isPackageRunning: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPackageRunning(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getStartRecordsByPackageName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getStartRecordsByPackageName(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getStartRecordBlockedPackages: { - data.enforceInterface(descriptor); java.util.List _result = this.getStartRecordBlockedPackages(); reply.writeNoException(); reply.writeStringList(_result); - return true; + break; } case TRANSACTION_getStartRecordsBlockedCount: { - data.enforceInterface(descriptor); long _result = this.getStartRecordsBlockedCount(); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_getStartRecordBlockedCountByPackageName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); long _result = this.getStartRecordBlockedCountByPackageName(_arg0); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_isStartBlockEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isStartBlockEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setStartBlockEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setStartBlockEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPkgStartBlockEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgStartBlockEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgStartBlocking: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgStartBlocking(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isCleanUpOnTaskRemovalEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isCleanUpOnTaskRemovalEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setCleanUpOnTaskRemovalEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setCleanUpOnTaskRemovalEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPkgCleanUpOnTaskRemovalEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgCleanUpOnTaskRemovalEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgCleanUpOnTaskRemovalEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgCleanUpOnTaskRemovalEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isBgRestrictEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isBgRestrictEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBgRestrictEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBgRestrictEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPkgBgRestrictEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgBgRestrictEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgBgRestricted: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgBgRestricted(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBgRestrictNotificationEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBgRestrictNotificationEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isBgRestrictNotificationEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isBgRestrictNotificationEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isRecentTaskBlurEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isRecentTaskBlurEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setRecentTaskBlurEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setRecentTaskBlurEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPkgRecentTaskBlurEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgRecentTaskBlurEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgRecentTaskBlurEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgRecentTaskBlurEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isBgTaskCleanUpSkipAudioFocusedAppEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isBgTaskCleanUpSkipAudioFocusedAppEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBgTaskCleanUpSkipAudioFocusedAppEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBgTaskCleanUpSkipAudioFocusedAppEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isBgTaskCleanUpSkipWhichHasNotificationEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isBgTaskCleanUpSkipWhichHasNotificationEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBgTaskCleanUpSkipWhichHasNotificationEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBgTaskCleanUpSkipWhichHasNotificationEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setBgTaskCleanUpDelayTimeMills: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); this.setBgTaskCleanUpDelayTimeMills(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getBgTaskCleanUpDelayTimeMills: { - data.enforceInterface(descriptor); long _result = this.getBgTaskCleanUpDelayTimeMills(); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_notifyTaskCreated: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); android.content.ComponentName _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); this.notifyTaskCreated(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getMemoryInfo: { - data.enforceInterface(descriptor); android.app.ActivityManager.MemoryInfo _result = this.getMemoryInfo(); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getProcessPss: { - data.enforceInterface(descriptor); int[] _arg0; _arg0 = data.createIntArray(); long[] _result = this.getProcessPss(_arg0); reply.writeNoException(); reply.writeLongArray(_result); - return true; + break; } case TRANSACTION_onApplicationCrashing: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; _arg1 = data.readString(); github.tornaco.android.thanos.core.process.ProcessRecord _arg2; - if ((0!=data.readInt())) { - _arg2 = github.tornaco.android.thanos.core.process.ProcessRecord.CREATOR.createFromParcel(data); - } - else { - _arg2 = null; - } + _arg2 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.process.ProcessRecord.CREATOR); java.lang.String _arg3; _arg3 = data.readString(); this.onApplicationCrashing(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPackageNameForTaskId: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.getPackageNameForTaskId(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_isPlatformAppIdleEnabled: { - data.enforceInterface(descriptor); int _result = this.isPlatformAppIdleEnabled(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_isSmartStandByEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartStandByEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartStandByEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartStandByEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPkgSmartStandByEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgSmartStandByEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgSmartStandByEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgSmartStandByEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getLastRecentUsedPackages: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.util.List _result = this.getLastRecentUsedPackages(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getRecentTaskExcludeSettingForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _result = this.getRecentTaskExcludeSettingForPackage(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_setRecentTaskExcludeSettingForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _arg1; _arg1 = data.readInt(); this.setRecentTaskExcludeSettingForPackage(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isBgTaskCleanUpSkipWhenHasRecentTaskEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isBgTaskCleanUpSkipWhenHasRecentTaskEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBgTaskCleanUpSkipWhenHasRecentTaskEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBgTaskCleanUpSkipWhenHasRecentTaskEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_launchAppDetailsActivity: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.launchAppDetailsActivity(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_resetStartRecordsBlocked: { - data.enforceInterface(descriptor); this.resetStartRecordsBlocked(); reply.writeNoException(); - return true; + break; } case TRANSACTION_addApp: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.addApp(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isStartRuleEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isStartRuleEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setStartRuleEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setStartRuleEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_addStartRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.addStartRule(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_deleteStartRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.deleteStartRule(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllStartRules: { - data.enforceInterface(descriptor); java.lang.String[] _result = this.getAllStartRules(); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_isStandbyRuleEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isStandbyRuleEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setStandbyRuleEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setStandbyRuleEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_addStandbyRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.addStandbyRule(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_deleteStandbyRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.deleteStandbyRule(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllStandbyRules: { - data.enforceInterface(descriptor); java.lang.String[] _result = this.getAllStandbyRules(); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_getRunningAppServiceForPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; @@ -1425,11 +1202,10 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac github.tornaco.android.thanos.core.app.RunningServiceInfoCompat[] _result = this.getRunningAppServiceForPackage(_arg0, _arg1); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - return true; + break; } case TRANSACTION_hasRunningServiceForPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; @@ -1437,178 +1213,144 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac boolean _result = this.hasRunningServiceForPackage(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getUserInfo: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); android.content.pm.UserInfo _result = this.getUserInfo(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_stopService: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); boolean _result = this.stopService(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_killBackgroundProcesses: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.killBackgroundProcesses(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isSmartStandByStopServiceEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartStandByStopServiceEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartStandByStopServiceEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartStandByStopServiceEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isSmartStandByInactiveEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartStandByInactiveEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartStandByInactiveEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartStandByInactiveEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isSmartStandByByPassIfHasNotificationEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartStandByByPassIfHasNotificationEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartStandByByPassIfHasNotificationEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartStandByByPassIfHasNotificationEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isSmartStandByBlockBgServiceStartEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartStandByBlockBgServiceStartEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartStandByBlockBgServiceStartEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartStandByBlockBgServiceStartEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getStartRecordAllowedPackages: { - data.enforceInterface(descriptor); java.util.List _result = this.getStartRecordAllowedPackages(); reply.writeNoException(); reply.writeStringList(_result); - return true; + break; } case TRANSACTION_getStartRecordsAllowedCount: { - data.enforceInterface(descriptor); long _result = this.getStartRecordsAllowedCount(); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_getStartRecordAllowedCountByPackageName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); long _result = this.getStartRecordAllowedCountByPackageName(_arg0); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_getStartRecordsAllowedByPackageName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getStartRecordsAllowedByPackageName(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getStartRecordsBlockedByPackageName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getStartRecordsBlockedByPackageName(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_resetStartRecordsAllowed: { - data.enforceInterface(descriptor); this.resetStartRecordsAllowed(); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllStartRecordsWithRes: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; @@ -1617,57 +1359,51 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac _arg2 = (0!=data.readInt()); java.util.List _result = this.getAllStartRecordsWithRes(_arg0, _arg1, _arg2); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getAllStartRecords: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.util.List _result = this.getAllStartRecords(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_dump: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IPrinter _arg0; _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); this.dump(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_dumpCpu: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IPrinter _arg0; _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); this.dumpCpu(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setNetStatTrackerEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setNetStatTrackerEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isNetStatTrackerEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isNetStatTrackerEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkGetContentProvider: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -1677,11 +1413,10 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac boolean _result = this.checkGetContentProvider(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getAllStartRecordsForPackageSetWithRes: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; @@ -1690,85 +1425,67 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac _arg2 = (0!=data.readInt()); java.util.List _result = this.getAllStartRecordsForPackageSetWithRes(_arg0, _arg1, _arg2); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_isCachedAppsFreezerSupported: { - data.enforceInterface(descriptor); boolean _result = this.isCachedAppsFreezerSupported(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_freezeApp: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.freezeApp(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unfreezeApp: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.unfreezeApp(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_freezeAppProcess: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); this.freezeAppProcess(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unfreezeAppProcess: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); this.unfreezeAppProcess(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_updateProcessCpuUsageStats: { - data.enforceInterface(descriptor); this.updateProcessCpuUsageStats(); reply.writeNoException(); - return true; + break; } case TRANSACTION_queryProcessCpuUsageStats: { - data.enforceInterface(descriptor); long[] _arg0; _arg0 = data.createLongArray(); boolean _arg1; _arg1 = (0!=data.readInt()); java.util.List _result = this.queryProcessCpuUsageStats(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_queryCpuUsageRatio: { - data.enforceInterface(descriptor); long[] _arg0; _arg0 = data.createLongArray(); boolean _arg1; @@ -1776,395 +1493,279 @@ public static github.tornaco.android.thanos.core.app.IActivityManager asInterfac float _result = this.queryCpuUsageRatio(_arg0, _arg1); reply.writeNoException(); reply.writeFloat(_result); - return true; + break; } case TRANSACTION_killProcess: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); boolean _result = this.killProcess(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getSwapInfo: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.os.SwapInfo _result = this.getSwapInfo(); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_setBlockAllReceiver: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setBlockAllReceiver(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isBlockAllReceiver: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isBlockAllReceiver(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBlockAllService: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setBlockAllService(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isBlockAllService: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isBlockAllService(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBlockAllProvider: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setBlockAllProvider(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isBlockAllProvider: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isBlockAllProvider(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getProcessStartTime: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); long _result = this.getProcessStartTime(_arg0); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_isAppForeground: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isAppForeground(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_hasRunningForegroundService: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _arg1; _arg1 = data.readInt(); boolean _result = this.hasRunningForegroundService(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getTopVisibleActivities: { - data.enforceInterface(descriptor); java.util.List _result = this.getTopVisibleActivities(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_checkStartActivity: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); int _arg1; _arg1 = data.readInt(); boolean _result = this.checkStartActivity(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isBgTaskCleanUpSkipForegroundEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isBgTaskCleanUpSkipForegroundEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setBgTaskCleanUpSkipForegroundEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBgTaskCleanUpSkipForegroundEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPid: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.os.ProcessName _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.os.ProcessName.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.os.ProcessName.CREATOR); int _result = this.getPid(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_killProcessByName: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.os.ProcessName _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.os.ProcessName.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.os.ProcessName.CREATOR); int _result = this.killProcessByName(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_killProcessByNames: { - data.enforceInterface(descriptor); java.util.List _arg0; _arg0 = data.createTypedArrayList(github.tornaco.android.thanos.core.os.ProcessName.CREATOR); this.killProcessByNames(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_dumpHeap: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.dumpHeap(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getCurrentFrontPkg: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _result = this.getCurrentFrontPkg(); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_isSmartStandByByPassIfHasVisibleWindows: { - data.enforceInterface(descriptor); boolean _result = this.isSmartStandByByPassIfHasVisibleWindows(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartStandByByPassIfHasVisibleWindowsEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartStandByByPassIfHasVisibleWindowsEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getTotalCpuPercent: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); float _result = this.getTotalCpuPercent(_arg0); reply.writeNoException(); reply.writeFloat(_result); - return true; + break; } case TRANSACTION_getTopNCpuUsagePackages: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); java.util.List _result = this.getTopNCpuUsagePackages(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_isPkgResident: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgResident(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPkgResident: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgResident(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPkgRecentTaskBlurMode: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _arg1; _arg1 = data.readInt(); this.setPkgRecentTaskBlurMode(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPkgRecentTaskBlurMode: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _result = this.getPkgRecentTaskBlurMode(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_isSmartStandByUnbindServiceEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartStandByUnbindServiceEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartStandByUnbindServiceEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartStandByUnbindServiceEnabled(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.IActivityManager { @@ -2189,9 +1790,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getCurrentFrontApp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getCurrentFrontApp(); - } _reply.readException(); _result = _reply.readString(); } @@ -2207,19 +1805,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeString(reason); boolean _status = mRemote.transact(Stub.TRANSACTION_forceStopPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().forceStopPackage(pkg, reason); - return; - } _reply.readException(); } finally { @@ -2233,18 +1821,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_idlePackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().idlePackage(pkg); - return; - } _reply.readException(); } finally { @@ -2259,17 +1837,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageIdle, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPackageIdle(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2286,17 +1855,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_checkBroadcastingIntent, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkBroadcastingIntent(intent); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2313,26 +1873,11 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } - if ((service!=null)) { - _data.writeInt(1); - service.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); + _Parcel.writeTypedObject(_data, service, 0); _data.writeInt(callerUid); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_checkService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkService(intent, service, callerUid, userId); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2350,17 +1895,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); - if ((componentName!=null)) { - _data.writeInt(1); - componentName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, componentName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_checkRestartService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkRestartService(packageName, componentName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2377,19 +1913,10 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); _data.writeInt(receiverUid); _data.writeInt(callerUid); boolean _status = mRemote.transact(Stub.TRANSACTION_checkBroadcast, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkBroadcast(intent, receiverUid, callerUid); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2407,19 +1934,10 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(processName); - if ((applicationInfo!=null)) { - _data.writeInt(1); - applicationInfo.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, applicationInfo, 0); _data.writeString(hostType); _data.writeString(hostName); boolean _status = mRemote.transact(Stub.TRANSACTION_checkStartProcess, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkStartProcess(processName, applicationInfo, hostType, hostName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2435,18 +1953,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((appInfo!=null)) { - _data.writeInt(1); - appInfo.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, appInfo, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onStartProcessLocked, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onStartProcessLocked(appInfo); - return; - } _reply.readException(); } finally { @@ -2462,9 +1970,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppProcess, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRunningAppProcess(); - } _reply.readException(); _result = _reply.createTypedArray(github.tornaco.android.thanos.core.process.ProcessRecord.CREATOR); } @@ -2482,9 +1987,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppPackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRunningAppPackages(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); } @@ -2503,9 +2005,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(max); boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningServiceLegacy, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRunningServiceLegacy(max); - } _reply.readException(); _result = _reply.createTypedArrayList(android.app.ActivityManager.RunningServiceInfo.CREATOR); } @@ -2523,9 +2022,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppProcessLegacy, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRunningAppProcessLegacy(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.RunningAppProcessInfoCompat.CREATOR); } @@ -2543,9 +2039,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppsCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRunningAppsCount(); - } _reply.readException(); _result = _reply.readInt(); } @@ -2562,17 +2055,8 @@ public java.lang.String getInterfaceDescriptor() java.util.List _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppProcessForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRunningAppProcessForPackage(pkg); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.process.ProcessRecord.CREATOR); } @@ -2589,17 +2073,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageRunning, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPackageRunning(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2618,9 +2093,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsByPackageName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordsByPackageName(pkgName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); } @@ -2638,9 +2110,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordBlockedPackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordBlockedPackages(); - } _reply.readException(); _result = _reply.createStringArrayList(); } @@ -2658,9 +2127,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsBlockedCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordsBlockedCount(); - } _reply.readException(); _result = _reply.readLong(); } @@ -2679,9 +2145,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordBlockedCountByPackageName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordBlockedCountByPackageName(pkgName); - } _reply.readException(); _result = _reply.readLong(); } @@ -2692,7 +2155,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // 启动管理设置 - @Override public boolean isStartBlockEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -2701,9 +2163,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isStartBlockEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isStartBlockEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2721,10 +2180,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setStartBlockEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setStartBlockEnabled(enable); - return; - } _reply.readException(); } finally { @@ -2738,19 +2193,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgStartBlockEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgStartBlockEnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -2765,17 +2210,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgStartBlocking, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgStartBlocking(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2786,7 +2222,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // Task removal - @Override public boolean isCleanUpOnTaskRemovalEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -2795,9 +2230,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isCleanUpOnTaskRemovalEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2815,10 +2247,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setCleanUpOnTaskRemovalEnabled(enable); - return; - } _reply.readException(); } finally { @@ -2832,19 +2260,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgCleanUpOnTaskRemovalEnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -2859,17 +2277,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgCleanUpOnTaskRemovalEnabled(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2880,7 +2289,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // 后台运行设置 - @Override public boolean isBgRestrictEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -2889,9 +2297,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isBgRestrictEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBgRestrictEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2909,10 +2314,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBgRestrictEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBgRestrictEnabled(enable); - return; - } _reply.readException(); } finally { @@ -2926,19 +2327,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgBgRestrictEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgBgRestrictEnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -2953,17 +2344,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgBgRestricted, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgBgRestricted(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2981,10 +2363,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBgRestrictNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBgRestrictNotificationEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -3000,9 +2378,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isBgRestrictNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBgRestrictNotificationEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3013,7 +2388,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // Task blur - @Override public boolean isRecentTaskBlurEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -3022,9 +2396,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isRecentTaskBlurEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isRecentTaskBlurEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3042,10 +2413,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setRecentTaskBlurEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setRecentTaskBlurEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3059,19 +2426,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgRecentTaskBlurEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgRecentTaskBlurEnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -3086,17 +2443,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgRecentTaskBlurEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgRecentTaskBlurEnabled(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3107,7 +2455,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // Audio focused app. - @Override public boolean isBgTaskCleanUpSkipAudioFocusedAppEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -3116,9 +2463,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipAudioFocusedAppEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBgTaskCleanUpSkipAudioFocusedAppEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3136,10 +2480,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipAudioFocusedAppEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBgTaskCleanUpSkipAudioFocusedAppEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3148,7 +2488,6 @@ public java.lang.String getInterfaceDescriptor() } } // Notification record app. - @Override public boolean isBgTaskCleanUpSkipWhichHasNotificationEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -3157,9 +2496,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipWhichHasNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBgTaskCleanUpSkipWhichHasNotificationEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3177,10 +2513,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipWhichHasNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBgTaskCleanUpSkipWhichHasNotificationEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3189,7 +2521,6 @@ public java.lang.String getInterfaceDescriptor() } } // 后台运行锁屏清理延迟 - @Override public void setBgTaskCleanUpDelayTimeMills(long delayMills) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -3198,10 +2529,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(delayMills); boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpDelayTimeMills, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBgTaskCleanUpDelayTimeMills(delayMills); - return; - } _reply.readException(); } finally { @@ -3217,9 +2544,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getBgTaskCleanUpDelayTimeMills, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getBgTaskCleanUpDelayTimeMills(); - } _reply.readException(); _result = _reply.readLong(); } @@ -3236,18 +2560,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(taskId); - if ((componentName!=null)) { - _data.writeInt(1); - componentName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, componentName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_notifyTaskCreated, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().notifyTaskCreated(taskId, componentName); - return; - } _reply.readException(); } finally { @@ -3263,16 +2577,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getMemoryInfo, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getMemoryInfo(); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = android.app.ActivityManager.MemoryInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, android.app.ActivityManager.MemoryInfo.CREATOR); } finally { _reply.recycle(); @@ -3289,9 +2595,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeIntArray(pids); boolean _status = mRemote.transact(Stub.TRANSACTION_getProcessPss, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getProcessPss(pids); - } _reply.readException(); _result = _reply.createLongArray(); } @@ -3309,19 +2612,9 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(eventType); _data.writeString(processName); - if ((process!=null)) { - _data.writeInt(1); - process.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, process, 0); _data.writeString(stackTrace); boolean _status = mRemote.transact(Stub.TRANSACTION_onApplicationCrashing, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onApplicationCrashing(eventType, processName, process, stackTrace); - return; - } _reply.readException(); } finally { @@ -3338,9 +2631,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(taskId); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageNameForTaskId, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackageNameForTaskId(taskId); - } _reply.readException(); _result = _reply.readString(); } @@ -3358,9 +2648,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isPlatformAppIdleEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPlatformAppIdleEnabled(); - } _reply.readException(); _result = _reply.readInt(); } @@ -3378,9 +2665,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartStandByEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3398,10 +2682,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartStandByEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3415,19 +2695,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgSmartStandByEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgSmartStandByEnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -3442,17 +2712,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgSmartStandByEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgSmartStandByEnabled(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3471,9 +2732,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(count); boolean _status = mRemote.transact(Stub.TRANSACTION_getLastRecentUsedPackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLastRecentUsedPackages(count); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); } @@ -3490,17 +2748,8 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getRecentTaskExcludeSettingForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRecentTaskExcludeSettingForPackage(pkg); - } _reply.readException(); _result = _reply.readInt(); } @@ -3516,19 +2765,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(setting); boolean _status = mRemote.transact(Stub.TRANSACTION_setRecentTaskExcludeSettingForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setRecentTaskExcludeSettingForPackage(pkg, setting); - return; - } _reply.readException(); } finally { @@ -3537,7 +2776,6 @@ public java.lang.String getInterfaceDescriptor() } } // Keep when has recent task. - @Override public boolean isBgTaskCleanUpSkipWhenHasRecentTaskEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -3546,9 +2784,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipWhenHasRecentTaskEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBgTaskCleanUpSkipWhenHasRecentTaskEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3566,10 +2801,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipWhenHasRecentTaskEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBgTaskCleanUpSkipWhenHasRecentTaskEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3585,10 +2816,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_launchAppDetailsActivity, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().launchAppDetailsActivity(pkgName); - return; - } _reply.readException(); } finally { @@ -3603,10 +2830,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_resetStartRecordsBlocked, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().resetStartRecordsBlocked(); - return; - } _reply.readException(); } finally { @@ -3620,18 +2843,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_addApp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addApp(pkg); - return; - } _reply.readException(); } finally { @@ -3647,9 +2860,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isStartRuleEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isStartRuleEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3667,10 +2877,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setStartRuleEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setStartRuleEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3686,10 +2892,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(rule); boolean _status = mRemote.transact(Stub.TRANSACTION_addStartRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addStartRule(rule); - return; - } _reply.readException(); } finally { @@ -3705,10 +2907,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(rule); boolean _status = mRemote.transact(Stub.TRANSACTION_deleteStartRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().deleteStartRule(rule); - return; - } _reply.readException(); } finally { @@ -3724,9 +2922,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRules, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllStartRules(); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -3744,9 +2939,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isStandbyRuleEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isStandbyRuleEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3764,10 +2956,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setStandbyRuleEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setStandbyRuleEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3783,10 +2971,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(rule); boolean _status = mRemote.transact(Stub.TRANSACTION_addStandbyRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addStandbyRule(rule); - return; - } _reply.readException(); } finally { @@ -3802,10 +2986,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(rule); boolean _status = mRemote.transact(Stub.TRANSACTION_deleteStandbyRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().deleteStandbyRule(rule); - return; - } _reply.readException(); } finally { @@ -3821,9 +3001,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStandbyRules, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllStandbyRules(); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -3843,9 +3020,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkgName); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppServiceForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRunningAppServiceForPackage(pkgName, userId); - } _reply.readException(); _result = _reply.createTypedArray(github.tornaco.android.thanos.core.app.RunningServiceInfoCompat.CREATOR); } @@ -3865,9 +3039,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkgName); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_hasRunningServiceForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasRunningServiceForPackage(pkgName, userId); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3886,16 +3057,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(userHandle); boolean _status = mRemote.transact(Stub.TRANSACTION_getUserInfo, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getUserInfo(userHandle); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = android.content.pm.UserInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, android.content.pm.UserInfo.CREATOR); } finally { _reply.recycle(); @@ -3910,17 +3073,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_stopService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().stopService(intent); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3937,17 +3091,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_killBackgroundProcesses, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().killBackgroundProcesses(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3965,9 +3110,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByStopServiceEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartStandByStopServiceEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3985,10 +3127,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByStopServiceEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartStandByStopServiceEnabled(enable); - return; - } _reply.readException(); } finally { @@ -4004,9 +3142,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByInactiveEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartStandByInactiveEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4024,10 +3159,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByInactiveEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartStandByInactiveEnabled(enable); - return; - } _reply.readException(); } finally { @@ -4043,9 +3174,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByByPassIfHasNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartStandByByPassIfHasNotificationEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4063,10 +3191,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByByPassIfHasNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartStandByByPassIfHasNotificationEnabled(enable); - return; - } _reply.readException(); } finally { @@ -4082,9 +3206,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByBlockBgServiceStartEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartStandByBlockBgServiceStartEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4102,10 +3223,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByBlockBgServiceStartEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartStandByBlockBgServiceStartEnabled(enable); - return; - } _reply.readException(); } finally { @@ -4121,9 +3238,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordAllowedPackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordAllowedPackages(); - } _reply.readException(); _result = _reply.createStringArrayList(); } @@ -4141,9 +3255,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsAllowedCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordsAllowedCount(); - } _reply.readException(); _result = _reply.readLong(); } @@ -4162,9 +3273,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordAllowedCountByPackageName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordAllowedCountByPackageName(pkgName); - } _reply.readException(); _result = _reply.readLong(); } @@ -4183,9 +3291,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsAllowedByPackageName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordsAllowedByPackageName(pkgName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); } @@ -4204,9 +3309,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsBlockedByPackageName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getStartRecordsBlockedByPackageName(pkgName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); } @@ -4223,10 +3325,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_resetStartRecordsAllowed, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().resetStartRecordsAllowed(); - return; - } _reply.readException(); } finally { @@ -4245,9 +3343,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(((allowed)?(1):(0))); _data.writeInt(((blocked)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRecordsWithRes, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllStartRecordsWithRes(appFlags, allowed, blocked); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); } @@ -4266,9 +3361,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(appFlags); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllStartRecords(appFlags); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); } @@ -4284,12 +3376,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((p!=null))?(p.asBinder()):(null))); + _data.writeStrongInterface(p); boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().dump(p); - return; - } _reply.readException(); } finally { @@ -4303,12 +3391,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((p!=null))?(p.asBinder()):(null))); + _data.writeStrongInterface(p); boolean _status = mRemote.transact(Stub.TRANSACTION_dumpCpu, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().dumpCpu(p); - return; - } _reply.readException(); } finally { @@ -4324,10 +3408,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setNetStatTrackerEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setNetStatTrackerEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -4343,9 +3423,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isNetStatTrackerEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isNetStatTrackerEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4366,9 +3443,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(name); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_checkGetContentProvider, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkGetContentProvider(callerPkg, name, userId); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4389,9 +3463,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(((allowed)?(1):(0))); _data.writeInt(((blocked)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRecordsForPackageSetWithRes, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllStartRecordsForPackageSetWithRes(pkgSetId, allowed, blocked); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); } @@ -4406,7 +3477,6 @@ public java.lang.String getInterfaceDescriptor() // https://source.android.com/devices/tech/perf/cached-apps-freezer // // ****************************************************************** - @Override public boolean isCachedAppsFreezerSupported() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -4415,9 +3485,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isCachedAppsFreezerSupported, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isCachedAppsFreezerSupported(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4433,18 +3500,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_freezeApp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().freezeApp(pkg); - return; - } _reply.readException(); } finally { @@ -4458,18 +3515,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_unfreezeApp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unfreezeApp(pkg); - return; - } _reply.readException(); } finally { @@ -4485,10 +3532,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(pid); boolean _status = mRemote.transact(Stub.TRANSACTION_freezeAppProcess, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().freezeAppProcess(pid); - return; - } _reply.readException(); } finally { @@ -4504,10 +3547,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(pid); boolean _status = mRemote.transact(Stub.TRANSACTION_unfreezeAppProcess, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unfreezeAppProcess(pid); - return; - } _reply.readException(); } finally { @@ -4522,10 +3561,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_updateProcessCpuUsageStats, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().updateProcessCpuUsageStats(); - return; - } _reply.readException(); } finally { @@ -4543,9 +3578,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeLongArray(pids); _data.writeInt(((update)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_queryProcessCpuUsageStats, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().queryProcessCpuUsageStats(pids, update); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.usage.ProcessCpuUsageStats.CREATOR); } @@ -4565,9 +3597,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeLongArray(pids); _data.writeInt(((update)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_queryCpuUsageRatio, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().queryCpuUsageRatio(pids, update); - } _reply.readException(); _result = _reply.readFloat(); } @@ -4586,9 +3615,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(pid); boolean _status = mRemote.transact(Stub.TRANSACTION_killProcess, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().killProcess(pid); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4606,16 +3632,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getSwapInfo, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSwapInfo(); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.os.SwapInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.os.SwapInfo.CREATOR); } finally { _reply.recycle(); @@ -4628,26 +3646,15 @@ public java.lang.String getInterfaceDescriptor() // Block Receiver/Service/Provider all the time, event the package is running at foreground, // may cause the app crash. // ****************************************************************** - @Override public void setBlockAllReceiver(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean block) 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 ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((block)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockAllReceiver, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBlockAllReceiver(pkg, block); - return; - } _reply.readException(); } finally { @@ -4662,17 +3669,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isBlockAllReceiver, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBlockAllReceiver(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4688,19 +3686,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((block)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockAllService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBlockAllService(pkg, block); - return; - } _reply.readException(); } finally { @@ -4715,17 +3703,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isBlockAllService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBlockAllService(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4741,19 +3720,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((block)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockAllProvider, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBlockAllProvider(pkg, block); - return; - } _reply.readException(); } finally { @@ -4768,17 +3737,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isBlockAllProvider, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBlockAllProvider(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4789,7 +3749,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // Return 0 if it fail - @Override public long getProcessStartTime(int pid) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -4799,9 +3758,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(pid); boolean _status = mRemote.transact(Stub.TRANSACTION_getProcessStartTime, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getProcessStartTime(pid); - } _reply.readException(); _result = _reply.readLong(); } @@ -4818,17 +3774,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isAppForeground, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isAppForeground(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4845,18 +3792,9 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(foregroundServicetype); boolean _status = mRemote.transact(Stub.TRANSACTION_hasRunningForegroundService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasRunningForegroundService(pkg, foregroundServicetype); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4874,9 +3812,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getTopVisibleActivities, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getTopVisibleActivities(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.ActivityAssistInfo.CREATOR); } @@ -4893,18 +3828,9 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); _data.writeInt(callerUid); boolean _status = mRemote.transact(Stub.TRANSACTION_checkStartActivity, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkStartActivity(intent, callerUid); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4922,9 +3848,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipForegroundEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isBgTaskCleanUpSkipForegroundEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -4942,10 +3865,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipForegroundEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBgTaskCleanUpSkipForegroundEnabled(enable); - return; - } _reply.readException(); } finally { @@ -4953,7 +3872,7 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - /* return the pid of process. or -1 if no process found */ + /** return the pid of process. or -1 if no process found */ @Override public int getPid(github.tornaco.android.thanos.core.os.ProcessName processName) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -4961,17 +3880,8 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((processName!=null)) { - _data.writeInt(1); - processName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, processName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPid, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPid(processName); - } _reply.readException(); _result = _reply.readInt(); } @@ -4981,7 +3891,7 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - /* return the pid of killed process. or -1 if no process found */ + /** return the pid of killed process. or -1 if no process found */ @Override public int killProcessByName(github.tornaco.android.thanos.core.os.ProcessName processName) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -4989,17 +3899,8 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((processName!=null)) { - _data.writeInt(1); - processName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, processName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_killProcessByName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().killProcessByName(processName); - } _reply.readException(); _result = _reply.readInt(); } @@ -5015,12 +3916,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeTypedList(processNames); + _Parcel.writeTypedList(_data, processNames, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_killProcessByNames, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().killProcessByNames(processNames); - return; - } _reply.readException(); } finally { @@ -5037,9 +3934,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(process); boolean _status = mRemote.transact(Stub.TRANSACTION_dumpHeap, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().dumpHeap(process); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -5057,16 +3951,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getCurrentFrontPkg, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getCurrentFrontPkg(); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); } finally { _reply.recycle(); @@ -5082,9 +3968,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByByPassIfHasVisibleWindows, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartStandByByPassIfHasVisibleWindows(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -5102,10 +3985,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByByPassIfHasVisibleWindowsEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartStandByByPassIfHasVisibleWindowsEnabled(enable); - return; - } _reply.readException(); } finally { @@ -5122,9 +4001,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((update)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getTotalCpuPercent, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getTotalCpuPercent(update); - } _reply.readException(); _result = _reply.readFloat(); } @@ -5144,9 +4020,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(n); _data.writeInt(((update)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getTopNCpuUsagePackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getTopNCpuUsagePackages(n, update); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.usage.PkgCpuUsageStats.CREATOR); } @@ -5163,17 +4036,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgResident, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgResident(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -5189,19 +4053,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((resident)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgResident, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgResident(pkg, resident); - return; - } _reply.readException(); } finally { @@ -5215,19 +4069,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(mode); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgRecentTaskBlurMode, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgRecentTaskBlurMode(pkg, mode); - return; - } _reply.readException(); } finally { @@ -5242,17 +4086,8 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPkgRecentTaskBlurMode, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPkgRecentTaskBlurMode(pkg); - } _reply.readException(); _result = _reply.readInt(); } @@ -5270,9 +4105,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByUnbindServiceEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartStandByUnbindServiceEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -5290,10 +4122,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByUnbindServiceEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartStandByUnbindServiceEnabled(enable); - return; - } _reply.readException(); } finally { @@ -5301,7 +4129,6 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.IActivityManager sDefaultImpl; } static final int TRANSACTION_getCurrentFrontApp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_forceStopPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -5441,23 +4268,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_getPkgRecentTaskBlurMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 135); static final int TRANSACTION_isSmartStandByUnbindServiceEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 136); static final int TRANSACTION_setSmartStandByUnbindServiceEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 137); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.IActivityManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.IActivityManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.IActivityManager"; public java.lang.String getCurrentFrontApp() throws android.os.RemoteException; public void forceStopPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String reason) throws android.os.RemoteException; public void idlePackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; @@ -5480,19 +4293,16 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault public long getStartRecordsBlockedCount() throws android.os.RemoteException; public long getStartRecordBlockedCountByPackageName(java.lang.String pkgName) throws android.os.RemoteException; // 启动管理设置 - public boolean isStartBlockEnabled() throws android.os.RemoteException; public void setStartBlockEnabled(boolean enable) throws android.os.RemoteException; public void setPkgStartBlockEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; public boolean isPkgStartBlocking(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; // Task removal - public boolean isCleanUpOnTaskRemovalEnabled() throws android.os.RemoteException; public void setCleanUpOnTaskRemovalEnabled(boolean enable) throws android.os.RemoteException; public void setPkgCleanUpOnTaskRemovalEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; public boolean isPkgCleanUpOnTaskRemovalEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; // 后台运行设置 - public boolean isBgRestrictEnabled() throws android.os.RemoteException; public void setBgRestrictEnabled(boolean enable) throws android.os.RemoteException; public void setPkgBgRestrictEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; @@ -5500,21 +4310,17 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault public void setBgRestrictNotificationEnabled(boolean enabled) throws android.os.RemoteException; public boolean isBgRestrictNotificationEnabled() throws android.os.RemoteException; // Task blur - public boolean isRecentTaskBlurEnabled() throws android.os.RemoteException; public void setRecentTaskBlurEnabled(boolean enable) throws android.os.RemoteException; public void setPkgRecentTaskBlurEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; public boolean isPkgRecentTaskBlurEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; // Audio focused app. - public boolean isBgTaskCleanUpSkipAudioFocusedAppEnabled() throws android.os.RemoteException; public void setBgTaskCleanUpSkipAudioFocusedAppEnabled(boolean enable) throws android.os.RemoteException; // Notification record app. - public boolean isBgTaskCleanUpSkipWhichHasNotificationEnabled() throws android.os.RemoteException; public void setBgTaskCleanUpSkipWhichHasNotificationEnabled(boolean enable) throws android.os.RemoteException; // 后台运行锁屏清理延迟 - public void setBgTaskCleanUpDelayTimeMills(long delayMills) throws android.os.RemoteException; public long getBgTaskCleanUpDelayTimeMills() throws android.os.RemoteException; public void notifyTaskCreated(int taskId, android.content.ComponentName componentName) throws android.os.RemoteException; @@ -5531,7 +4337,6 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault public int getRecentTaskExcludeSettingForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public void setRecentTaskExcludeSettingForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int setting) throws android.os.RemoteException; // Keep when has recent task. - public boolean isBgTaskCleanUpSkipWhenHasRecentTaskEnabled() throws android.os.RemoteException; public void setBgTaskCleanUpSkipWhenHasRecentTaskEnabled(boolean enable) throws android.os.RemoteException; public void launchAppDetailsActivity(java.lang.String pkgName) throws android.os.RemoteException; @@ -5579,7 +4384,6 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault // https://source.android.com/devices/tech/perf/cached-apps-freezer // // ****************************************************************** - public boolean isCachedAppsFreezerSupported() throws android.os.RemoteException; public void freezeApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public void unfreezeApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; @@ -5595,7 +4399,6 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault // Block Receiver/Service/Provider all the time, event the package is running at foreground, // may cause the app crash. // ****************************************************************** - public void setBlockAllReceiver(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean block) throws android.os.RemoteException; public boolean isBlockAllReceiver(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public void setBlockAllService(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean block) throws android.os.RemoteException; @@ -5603,7 +4406,6 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault public void setBlockAllProvider(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean block) throws android.os.RemoteException; public boolean isBlockAllProvider(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; // Return 0 if it fail - public long getProcessStartTime(int pid) throws android.os.RemoteException; public boolean isAppForeground(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public boolean hasRunningForegroundService(github.tornaco.android.thanos.core.pm.Pkg pkg, int foregroundServicetype) throws android.os.RemoteException; @@ -5611,9 +4413,9 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault public boolean checkStartActivity(android.content.Intent intent, int callerUid) throws android.os.RemoteException; public boolean isBgTaskCleanUpSkipForegroundEnabled() throws android.os.RemoteException; public void setBgTaskCleanUpSkipForegroundEnabled(boolean enable) throws android.os.RemoteException; - /* return the pid of process. or -1 if no process found */ + /** return the pid of process. or -1 if no process found */ public int getPid(github.tornaco.android.thanos.core.os.ProcessName processName) throws android.os.RemoteException; - /* return the pid of killed process. or -1 if no process found */ + /** return the pid of killed process. or -1 if no process found */ public int killProcessByName(github.tornaco.android.thanos.core.os.ProcessName processName) throws android.os.RemoteException; public void killProcessByNames(java.util.List processNames) throws android.os.RemoteException; public boolean dumpHeap(java.lang.String process) throws android.os.RemoteException; @@ -5628,4 +4430,39 @@ public static github.tornaco.android.thanos.core.app.IActivityManager getDefault public int getPkgRecentTaskBlurMode(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public boolean isSmartStandByUnbindServiceEnabled() throws android.os.RemoteException; public void setSmartStandByUnbindServiceEnabled(boolean enable) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityLifecycleListener.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityLifecycleListener.java index d89664e54..c9ed5fcb5 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityLifecycleListener.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityLifecycleListener.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityLifecycleListener.aidl */ package github.tornaco.android.thanos.core.app.activity; public interface IActivityLifecycleListener extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,32 +47,29 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityLifecycle @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onAboutToLaunchActivity: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); this.onAboutToLaunchActivity(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener { @@ -94,18 +92,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onAboutToLaunchActivity, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onAboutToLaunchActivity(intent); - return; - } _reply.readException(); } finally { @@ -113,25 +101,31 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener sDefaultImpl; } static final int TRANSACTION_onAboutToLaunchActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener"; + public void onAboutToLaunchActivity(android.content.Intent intent) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public void onAboutToLaunchActivity(android.content.Intent intent) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityStackSupervisor.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityStackSupervisor.java index 3577ac82e..a7935cae3 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityStackSupervisor.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityStackSupervisor.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityStackSupervisor.aidl */ package github.tornaco.android.thanos.core.app.activity; public interface IActivityStackSupervisor extends android.os.IInterface @@ -93,7 +94,6 @@ public static class Default implements github.tornaco.android.thanos.core.app.ac { } // Bridge API to report app events. - @Override public android.content.Intent reportOnStartActivity(java.lang.String callingPackage, android.content.Intent intent) throws android.os.RemoteException { return null; @@ -179,8 +179,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -207,23 +207,19 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupe @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_checkActivity: { - data.enforceInterface(descriptor); android.content.ComponentName _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); int _arg1; _arg1 = data.readInt(); android.os.IBinder _arg2; @@ -231,18 +227,12 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupe boolean _result = this.checkActivity(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_replaceActivityStartingIntent: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); int _arg1; _arg1 = data.readInt(); android.os.IBinder _arg2; @@ -251,25 +241,13 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupe _arg3 = data.readString(); android.content.Intent _result = this.replaceActivityStartingIntent(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_shouldVerifyActivityStarting: { - data.enforceInterface(descriptor); android.content.ComponentName _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); java.lang.String _arg2; @@ -277,57 +255,51 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupe boolean _result = this.shouldVerifyActivityStarting(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getCurrentFrontApp: { - data.enforceInterface(descriptor); java.lang.String _result = this.getCurrentFrontApp(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_setAppLockEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setAppLockEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isAppLockEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isAppLockEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isPackageLocked: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isPackageLocked(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPackageLocked: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPackageLocked(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_setVerifyResult: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; @@ -336,411 +308,318 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupe _arg2 = data.readInt(); this.setVerifyResult(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } case TRANSACTION_addComponentReplacement: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.component.ComponentReplacement _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR); this.addComponentReplacement(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_removeComponentReplacement: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.component.ComponentReplacement _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR); this.removeComponentReplacement(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getComponentReplacements: { - data.enforceInterface(descriptor); java.util.List _result = this.getComponentReplacements(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_setActivityTrampolineEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setActivityTrampolineEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isActivityTrampolineEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isActivityTrampolineEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setShowCurrentComponentViewEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setShowCurrentComponentViewEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isShowCurrentComponentViewEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isShowCurrentComponentViewEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_registerTopPackageChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener.Stub.asInterface(data.readStrongBinder()); this.registerTopPackageChangeListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterTopPackageChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener.Stub.asInterface(data.readStrongBinder()); this.unRegisterTopPackageChangeListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isVerifyOnScreenOffEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isVerifyOnScreenOffEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setVerifyOnScreenOffEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setVerifyOnScreenOffEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isVerifyOnAppSwitchEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isVerifyOnAppSwitchEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setVerifyOnAppSwitchEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setVerifyOnAppSwitchEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isVerifyOnTaskRemovedEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isVerifyOnTaskRemovedEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setVerifyOnTaskRemovedEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setVerifyOnTaskRemovedEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_reportOnStartActivity: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.content.Intent _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); android.content.Intent _result = this.reportOnStartActivity(_arg0, _arg1); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_reportOnActivityStopped: { - data.enforceInterface(descriptor); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); this.reportOnActivityStopped(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_reportOnActivityResumed: { - data.enforceInterface(descriptor); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); this.reportOnActivityResumed(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_dump: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IPrinter _arg0; _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); this.dump(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_registerActivityLifecycleListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener _arg0; _arg0 = github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener.Stub.asInterface(data.readStrongBinder()); this.registerActivityLifecycleListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterActivityLifecycleListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener _arg0; _arg0 = github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener.Stub.asInterface(data.readStrongBinder()); this.unRegisterActivityLifecycleListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_addAppLockWhiteListComponents: { - data.enforceInterface(descriptor); java.util.List _arg0; _arg0 = data.createTypedArrayList(android.content.ComponentName.CREATOR); this.addAppLockWhiteListComponents(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_removeAppLockWhiteListComponents: { - data.enforceInterface(descriptor); java.util.List _arg0; _arg0 = data.createTypedArrayList(android.content.ComponentName.CREATOR); this.removeAppLockWhiteListComponents(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAppLockWhiteListComponents: { - data.enforceInterface(descriptor); java.util.List _result = this.getAppLockWhiteListComponents(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getLaunchOtherAppSetting: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _result = this.getLaunchOtherAppSetting(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_setLaunchOtherAppSetting: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _arg1; _arg1 = data.readInt(); this.setLaunchOtherAppSetting(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isLaunchOtherAppBlockerEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isLaunchOtherAppBlockerEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setLaunchOtherAppBlockerEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setLaunchOtherAppBlockerEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_addLaunchOtherAppRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.addLaunchOtherAppRule(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_deleteLaunchOtherAppRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.deleteLaunchOtherAppRule(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllLaunchOtherAppRules: { - data.enforceInterface(descriptor); java.lang.String[] _result = this.getAllLaunchOtherAppRules(); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_removePkgFromLaunchOtherAppAllowList: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); github.tornaco.android.thanos.core.pm.Pkg _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.removePkgFromLaunchOtherAppAllowList(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_addPkgToLaunchOtherAppAllowList: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); github.tornaco.android.thanos.core.pm.Pkg _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.addPkgToLaunchOtherAppAllowList(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getLaunchOtherAppAllowListOrNull: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.util.List _result = this.getLaunchOtherAppAllowListOrNull(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getLockMethod: { - data.enforceInterface(descriptor); int _result = this.getLockMethod(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_setLockMethod: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.setLockMethod(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setLockPattern: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.setLockPattern(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getLockPattern: { - data.enforceInterface(descriptor); java.lang.String _result = this.getLockPattern(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor { @@ -765,19 +644,10 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((componentName!=null)) { - _data.writeInt(1); - componentName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, componentName, 0); _data.writeInt(userId); _data.writeStrongBinder(resultTo); boolean _status = mRemote.transact(Stub.TRANSACTION_checkActivity, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkActivity(componentName, userId, resultTo); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -794,27 +664,13 @@ public java.lang.String getInterfaceDescriptor() android.content.Intent _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); _data.writeInt(userId); _data.writeStrongBinder(resultTo); _data.writeString(callingPkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_replaceActivityStartingIntent, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().replaceActivityStartingIntent(intent, userId, resultTo, callingPkgName); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = android.content.Intent.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, android.content.Intent.CREATOR); } finally { _reply.recycle(); @@ -829,19 +685,10 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((componentName!=null)) { - _data.writeInt(1); - componentName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, componentName, 0); _data.writeString(pkg); _data.writeString(source); boolean _status = mRemote.transact(Stub.TRANSACTION_shouldVerifyActivityStarting, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().shouldVerifyActivityStarting(componentName, pkg, source); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -859,9 +706,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getCurrentFrontApp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getCurrentFrontApp(); - } _reply.readException(); _result = _reply.readString(); } @@ -879,10 +723,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setAppLockEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setAppLockEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -898,9 +738,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isAppLockEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isAppLockEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -919,9 +756,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkg); boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageLocked, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPackageLocked(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -940,10 +774,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkg); _data.writeInt(((locked)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageLocked, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPackageLocked(pkg, locked); - return; - } _reply.readException(); } finally { @@ -961,10 +791,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(result); _data.writeInt(reason); boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyResult, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setVerifyResult(request, result, reason); - return; - } _reply.readException(); } finally { @@ -978,18 +804,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((replacement!=null)) { - _data.writeInt(1); - replacement.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, replacement, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_addComponentReplacement, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addComponentReplacement(replacement); - return; - } _reply.readException(); } finally { @@ -1003,18 +819,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((replacement!=null)) { - _data.writeInt(1); - replacement.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, replacement, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_removeComponentReplacement, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removeComponentReplacement(replacement); - return; - } _reply.readException(); } finally { @@ -1030,9 +836,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getComponentReplacements, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getComponentReplacements(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR); } @@ -1050,10 +853,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setActivityTrampolineEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setActivityTrampolineEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -1069,9 +868,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isActivityTrampolineEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isActivityTrampolineEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1089,10 +885,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setShowCurrentComponentViewEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setShowCurrentComponentViewEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -1108,9 +900,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isShowCurrentComponentViewEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isShowCurrentComponentViewEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1126,12 +915,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_registerTopPackageChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerTopPackageChangeListener(listener); - return; - } _reply.readException(); } finally { @@ -1145,12 +930,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterTopPackageChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterTopPackageChangeListener(listener); - return; - } _reply.readException(); } finally { @@ -1166,9 +947,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isVerifyOnScreenOffEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isVerifyOnScreenOffEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1186,10 +964,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyOnScreenOffEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setVerifyOnScreenOffEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -1205,9 +979,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isVerifyOnAppSwitchEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isVerifyOnAppSwitchEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1225,10 +996,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyOnAppSwitchEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setVerifyOnAppSwitchEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -1244,9 +1011,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isVerifyOnTaskRemovedEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isVerifyOnTaskRemovedEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1264,10 +1028,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyOnTaskRemovedEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setVerifyOnTaskRemovedEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -1276,7 +1036,6 @@ public java.lang.String getInterfaceDescriptor() } } // Bridge API to report app events. - @Override public android.content.Intent reportOnStartActivity(java.lang.String callingPackage, android.content.Intent intent) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -1285,24 +1044,10 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(callingPackage); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_reportOnStartActivity, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().reportOnStartActivity(callingPackage, intent); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = android.content.Intent.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, android.content.Intent.CREATOR); } finally { _reply.recycle(); @@ -1318,10 +1063,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder(token); boolean _status = mRemote.transact(Stub.TRANSACTION_reportOnActivityStopped, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().reportOnActivityStopped(token); - return; - } _reply.readException(); } finally { @@ -1337,10 +1078,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder(token); boolean _status = mRemote.transact(Stub.TRANSACTION_reportOnActivityResumed, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().reportOnActivityResumed(token); - return; - } _reply.readException(); } finally { @@ -1354,12 +1091,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((p!=null))?(p.asBinder()):(null))); + _data.writeStrongInterface(p); boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().dump(p); - return; - } _reply.readException(); } finally { @@ -1373,12 +1106,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_registerActivityLifecycleListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerActivityLifecycleListener(listener); - return; - } _reply.readException(); } finally { @@ -1392,12 +1121,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterActivityLifecycleListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterActivityLifecycleListener(listener); - return; - } _reply.readException(); } finally { @@ -1411,12 +1136,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeTypedList(componentName); + _Parcel.writeTypedList(_data, componentName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_addAppLockWhiteListComponents, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addAppLockWhiteListComponents(componentName); - return; - } _reply.readException(); } finally { @@ -1430,12 +1151,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeTypedList(componentName); + _Parcel.writeTypedList(_data, componentName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_removeAppLockWhiteListComponents, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removeAppLockWhiteListComponents(componentName); - return; - } _reply.readException(); } finally { @@ -1451,9 +1168,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAppLockWhiteListComponents, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAppLockWhiteListComponents(); - } _reply.readException(); _result = _reply.createTypedArrayList(android.content.ComponentName.CREATOR); } @@ -1470,17 +1184,8 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getLaunchOtherAppSetting, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLaunchOtherAppSetting(pkg); - } _reply.readException(); _result = _reply.readInt(); } @@ -1496,19 +1201,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(setting); boolean _status = mRemote.transact(Stub.TRANSACTION_setLaunchOtherAppSetting, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setLaunchOtherAppSetting(pkg, setting); - return; - } _reply.readException(); } finally { @@ -1524,9 +1219,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isLaunchOtherAppBlockerEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isLaunchOtherAppBlockerEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1544,10 +1236,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setLaunchOtherAppBlockerEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setLaunchOtherAppBlockerEnabled(enable); - return; - } _reply.readException(); } finally { @@ -1563,10 +1251,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(rule); boolean _status = mRemote.transact(Stub.TRANSACTION_addLaunchOtherAppRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addLaunchOtherAppRule(rule); - return; - } _reply.readException(); } finally { @@ -1582,10 +1266,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(rule); boolean _status = mRemote.transact(Stub.TRANSACTION_deleteLaunchOtherAppRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().deleteLaunchOtherAppRule(rule); - return; - } _reply.readException(); } finally { @@ -1601,9 +1281,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllLaunchOtherAppRules, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllLaunchOtherAppRules(); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -1619,25 +1296,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } - if ((pkgToRemove!=null)) { - _data.writeInt(1); - pkgToRemove.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); + _Parcel.writeTypedObject(_data, pkgToRemove, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_removePkgFromLaunchOtherAppAllowList, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removePkgFromLaunchOtherAppAllowList(pkg, pkgToRemove); - return; - } _reply.readException(); } finally { @@ -1651,25 +1312,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } - if ((pkgToAdd!=null)) { - _data.writeInt(1); - pkgToAdd.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); + _Parcel.writeTypedObject(_data, pkgToAdd, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_addPkgToLaunchOtherAppAllowList, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addPkgToLaunchOtherAppAllowList(pkg, pkgToAdd); - return; - } _reply.readException(); } finally { @@ -1684,17 +1329,8 @@ public java.lang.String getInterfaceDescriptor() java.util.List _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((callerPkg!=null)) { - _data.writeInt(1); - callerPkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, callerPkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getLaunchOtherAppAllowListOrNull, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLaunchOtherAppAllowListOrNull(callerPkg); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); } @@ -1712,9 +1348,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getLockMethod, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLockMethod(); - } _reply.readException(); _result = _reply.readInt(); } @@ -1732,10 +1365,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(method); boolean _status = mRemote.transact(Stub.TRANSACTION_setLockMethod, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setLockMethod(method); - return; - } _reply.readException(); } finally { @@ -1751,10 +1380,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pattern); boolean _status = mRemote.transact(Stub.TRANSACTION_setLockPattern, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setLockPattern(pattern); - return; - } _reply.readException(); } finally { @@ -1770,9 +1395,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getLockPattern, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLockPattern(); - } _reply.readException(); _result = _reply.readString(); } @@ -1782,7 +1404,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor sDefaultImpl; } static final int TRANSACTION_checkActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_replaceActivityStartingIntent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -1831,24 +1452,11 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_setLockMethod = (android.os.IBinder.FIRST_CALL_TRANSACTION + 44); static final int TRANSACTION_setLockPattern = (android.os.IBinder.FIRST_CALL_TRANSACTION + 45); static final int TRANSACTION_getLockPattern = (android.os.IBinder.FIRST_CALL_TRANSACTION + 46); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor"; /** @deprecated use {@link #replaceActivityStartingIntent} instead */ + @Deprecated public boolean checkActivity(android.content.ComponentName componentName, int userId, android.os.IBinder resultTo) throws android.os.RemoteException; public android.content.Intent replaceActivityStartingIntent(android.content.Intent intent, int userId, android.os.IBinder resultTo, java.lang.String callingPkgName) throws android.os.RemoteException; public boolean shouldVerifyActivityStarting(android.content.ComponentName componentName, java.lang.String pkg, java.lang.String source) throws android.os.RemoteException; @@ -1874,7 +1482,6 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupe public boolean isVerifyOnTaskRemovedEnabled() throws android.os.RemoteException; public void setVerifyOnTaskRemovedEnabled(boolean enabled) throws android.os.RemoteException; // Bridge API to report app events. - public android.content.Intent reportOnStartActivity(java.lang.String callingPackage, android.content.Intent intent) throws android.os.RemoteException; public void reportOnActivityStopped(android.os.IBinder token) throws android.os.RemoteException; public void reportOnActivityResumed(android.os.IBinder token) throws android.os.RemoteException; @@ -1898,4 +1505,39 @@ public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupe public void setLockMethod(int method) throws android.os.RemoteException; public void setLockPattern(java.lang.String pattern) throws android.os.RemoteException; public java.lang.String getLockPattern() throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/ITopPackageChangeListener.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/ITopPackageChangeListener.java index c9ee07d5e..2ac7a81e2 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/ITopPackageChangeListener.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/ITopPackageChangeListener.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/ITopPackageChangeListener.aidl */ package github.tornaco.android.thanos.core.app.activity; public interface ITopPackageChangeListener extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,39 +47,31 @@ public static github.tornaco.android.thanos.core.app.activity.ITopPackageChangeL @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onChange: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); github.tornaco.android.thanos.core.pm.Pkg _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.onChange(_arg0, _arg1); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener { @@ -101,25 +94,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((from!=null)) { - _data.writeInt(1); - from.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } - if ((to!=null)) { - _data.writeInt(1); - to.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, from, 0); + _Parcel.writeTypedObject(_data, to, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onChange, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onChange(from, to); - return; - } _reply.readException(); } finally { @@ -127,25 +104,31 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener sDefaultImpl; } static final int TRANSACTION_onChange = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener"; + public void onChange(github.tornaco.android.thanos.core.pm.Pkg from, github.tornaco.android.thanos.core.pm.Pkg to) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public void onChange(github.tornaco.android.thanos.core.pm.Pkg from, github.tornaco.android.thanos.core.pm.Pkg to) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IVerifyCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IVerifyCallback.java index 46c685a95..53bbf8639 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IVerifyCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IVerifyCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IVerifyCallback.aidl */ package github.tornaco.android.thanos.core.app.activity; public interface IVerifyCallback extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.activity.IVerifyCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.IVerifyCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,29 +47,31 @@ public static github.tornaco.android.thanos.core.app.activity.IVerifyCallback as @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onVerifyResult: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); this.onVerifyResult(_arg0, _arg1); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.activity.IVerifyCallback { @@ -94,10 +97,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(verifyResult); _data.writeInt(reason); boolean _status = mRemote.transact(Stub.TRANSACTION_onVerifyResult, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onVerifyResult(verifyResult, reason); - return; - } _reply.readException(); } finally { @@ -105,25 +104,10 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.activity.IVerifyCallback sDefaultImpl; } static final int TRANSACTION_onVerifyResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.activity.IVerifyCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.activity.IVerifyCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.activity.IVerifyCallback"; public void onVerifyResult(int verifyResult, int reason) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/event/IEventSubscriber.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/event/IEventSubscriber.java index cf43d4089..c5ee31148 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/event/IEventSubscriber.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/event/IEventSubscriber.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/event/IEventSubscriber.aidl */ package github.tornaco.android.thanos.core.app.event; public interface IEventSubscriber extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.event.IEventSubscriber { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.event.IEventSubscriber"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,32 +47,29 @@ public static github.tornaco.android.thanos.core.app.event.IEventSubscriber asIn @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onEvent: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.app.event.ThanosEvent _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.app.event.ThanosEvent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.app.event.ThanosEvent.CREATOR); this.onEvent(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.event.IEventSubscriber { @@ -94,18 +92,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((e!=null)) { - _data.writeInt(1); - e.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, e, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onEvent, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onEvent(e); - return; - } _reply.readException(); } finally { @@ -113,25 +101,31 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.event.IEventSubscriber sDefaultImpl; } static final int TRANSACTION_onEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.event.IEventSubscriber impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.event.IEventSubscriber"; + public void onEvent(github.tornaco.android.thanos.core.app.event.ThanosEvent e) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.app.event.IEventSubscriber getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public void onEvent(github.tornaco.android.thanos.core.app.event.ThanosEvent e) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IAddPackageCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IAddPackageCallback.java index 7f769fd96..283ad65d0 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IAddPackageCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IAddPackageCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IAddPackageCallback.aidl */ package github.tornaco.android.thanos.core.app.infinite; public interface IAddPackageCallback extends android.os.IInterface @@ -21,8 +22,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -49,36 +50,37 @@ public static github.tornaco.android.thanos.core.app.infinite.IAddPackageCallbac @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onSuccess: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.onSuccess(_arg0); - return true; + break; } case TRANSACTION_onError: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); this.onError(_arg0, _arg1); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback { @@ -102,10 +104,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onSuccess(userId); - return; - } } finally { _data.recycle(); @@ -119,36 +117,17 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(errorMessage); _data.writeInt(errorCode); boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onError(errorMessage, errorCode); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback sDefaultImpl; } static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback"; public void onSuccess(int userId) throws android.os.RemoteException; public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IEnableCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IEnableCallback.java index c08bfb3dc..8721870d4 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IEnableCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IEnableCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IEnableCallback.aidl */ package github.tornaco.android.thanos.core.app.infinite; public interface IEnableCallback extends android.os.IInterface @@ -21,8 +22,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.infinite.IEnableCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.IEnableCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -49,36 +50,37 @@ public static github.tornaco.android.thanos.core.app.infinite.IEnableCallback as @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onSuccess: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.onSuccess(_arg0); - return true; + break; } case TRANSACTION_onError: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); this.onError(_arg0, _arg1); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.IEnableCallback { @@ -102,10 +104,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onSuccess(userId); - return; - } } finally { _data.recycle(); @@ -119,36 +117,17 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(errorMessage); _data.writeInt(errorCode); boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onError(errorMessage, errorCode); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.infinite.IEnableCallback sDefaultImpl; } static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.infinite.IEnableCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.infinite.IEnableCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.IEnableCallback"; public void onSuccess(int userId) throws android.os.RemoteException; public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/ILaunchPackageCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/ILaunchPackageCallback.java index a945dd54c..36a6eba3b 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/ILaunchPackageCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/ILaunchPackageCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/ILaunchPackageCallback.aidl */ package github.tornaco.android.thanos.core.app.infinite; public interface ILaunchPackageCallback extends android.os.IInterface @@ -21,8 +22,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -49,34 +50,35 @@ public static github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCall @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onSuccess: { - data.enforceInterface(descriptor); this.onSuccess(); - return true; + break; } case TRANSACTION_onError: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); this.onError(_arg0, _arg1); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback { @@ -99,10 +101,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onSuccess(); - return; - } } finally { _data.recycle(); @@ -116,36 +114,17 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(errorMessage); _data.writeInt(errorCode); boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onError(errorMessage, errorCode); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback sDefaultImpl; } static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback"; public void onSuccess() throws android.os.RemoteException; public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IRemovePackageCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IRemovePackageCallback.java index 8fc48bf6a..49797d369 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IRemovePackageCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IRemovePackageCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IRemovePackageCallback.aidl */ package github.tornaco.android.thanos.core.app.infinite; public interface IRemovePackageCallback extends android.os.IInterface @@ -21,8 +22,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -49,34 +50,35 @@ public static github.tornaco.android.thanos.core.app.infinite.IRemovePackageCall @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onSuccess: { - data.enforceInterface(descriptor); this.onSuccess(); - return true; + break; } case TRANSACTION_onError: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); this.onError(_arg0, _arg1); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback { @@ -99,10 +101,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onSuccess(); - return; - } } finally { _data.recycle(); @@ -116,36 +114,17 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(errorMessage); _data.writeInt(errorCode); boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onError(errorMessage, errorCode); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback sDefaultImpl; } static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback"; public void onSuccess() throws android.os.RemoteException; public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/InfiniteZ.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/InfiniteZ.java index 3ae2ae715..f487e2c5f 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/InfiniteZ.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/InfiniteZ.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/InfiniteZ.aidl */ package github.tornaco.android.thanos.core.app.infinite; public interface InfiniteZ extends android.os.IInterface @@ -35,8 +36,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.infinite.InfiniteZ { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.InfiniteZ"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -63,78 +64,75 @@ public static github.tornaco.android.thanos.core.app.infinite.InfiniteZ asInterf @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_setEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); github.tornaco.android.thanos.core.app.infinite.IEnableCallback _arg1; _arg1 = github.tornaco.android.thanos.core.app.infinite.IEnableCallback.Stub.asInterface(data.readStrongBinder()); this.setEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_addPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback _arg1; _arg1 = github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback.Stub.asInterface(data.readStrongBinder()); this.addPackage(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_removePackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback _arg1; _arg1 = github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback.Stub.asInterface(data.readStrongBinder()); this.removePackage(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_launchPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback _arg1; _arg1 = github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback.Stub.asInterface(data.readStrongBinder()); this.launchPackage(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getInstalledPackages: { - data.enforceInterface(descriptor); java.util.List _result = this.getInstalledPackages(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.InfiniteZ { @@ -158,12 +156,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); boolean _status = mRemote.transact(Stub.TRANSACTION_setEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setEnabled(enable, callback); - return; - } _reply.readException(); } finally { @@ -179,9 +173,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -198,12 +189,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); boolean _status = mRemote.transact(Stub.TRANSACTION_addPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addPackage(pkgName, callback); - return; - } _reply.readException(); } finally { @@ -218,12 +205,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); boolean _status = mRemote.transact(Stub.TRANSACTION_removePackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removePackage(pkgName, callback); - return; - } _reply.readException(); } finally { @@ -238,12 +221,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); boolean _status = mRemote.transact(Stub.TRANSACTION_launchPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().launchPackage(pkgName, callback); - return; - } _reply.readException(); } finally { @@ -259,9 +238,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getInstalledPackages(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); } @@ -271,7 +247,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.app.infinite.InfiniteZ sDefaultImpl; } static final int TRANSACTION_setEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_isEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -279,27 +254,48 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_removePackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_launchPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_getInstalledPackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.infinite.InfiniteZ impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.app.infinite.InfiniteZ getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.infinite.InfiniteZ"; public void setEnabled(boolean enable, github.tornaco.android.thanos.core.app.infinite.IEnableCallback callback) throws android.os.RemoteException; public boolean isEnabled() throws android.os.RemoteException; public void addPackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback callback) throws android.os.RemoteException; public void removePackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback callback) throws android.os.RemoteException; public void launchPackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback callback) throws android.os.RemoteException; public java.util.List getInstalledPackages() throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/usage/IUsageStatsManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/usage/IUsageStatsManager.java index fd102dd1f..5dea63e25 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/usage/IUsageStatsManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/usage/IUsageStatsManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/usage/IUsageStatsManager.aidl */ package github.tornaco.android.thanos.core.app.usage; public interface IUsageStatsManager extends android.os.IInterface @@ -23,8 +24,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.app.usage.IUsageStatsManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.usage.IUsageStatsManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -51,16 +52,17 @@ public static github.tornaco.android.thanos.core.app.usage.IUsageStatsManager as @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_queryUsageStats: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); long _arg1; @@ -69,12 +71,11 @@ public static github.tornaco.android.thanos.core.app.usage.IUsageStatsManager as _arg2 = data.readLong(); java.util.List _result = this.queryUsageStats(_arg0, _arg1, _arg2); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_queryAndAggregateUsageStats: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); long _arg1; @@ -87,22 +88,17 @@ public static github.tornaco.android.thanos.core.app.usage.IUsageStatsManager as reply.writeInt(_result.size()); _result.forEach((k, v) -> { reply.writeString(k); - if ((v!=null)) { - reply.writeInt(1); - v.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } + _Parcel.writeTypedObject(reply, v, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); }); } - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.app.usage.IUsageStatsManager { @@ -130,9 +126,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeLong(beginTime); _data.writeLong(endTime); boolean _status = mRemote.transact(Stub.TRANSACTION_queryUsageStats, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().queryUsageStats(intervalType, beginTime, endTime); - } _reply.readException(); _result = _reply.createTypedArrayList(android.app.usage.UsageStats.CREATOR); } @@ -152,9 +145,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeLong(beginTime); _data.writeLong(endTime); boolean _status = mRemote.transact(Stub.TRANSACTION_queryAndAggregateUsageStats, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().queryAndAggregateUsageStats(beginTime, endTime); - } _reply.readException(); { int N = _reply.readInt(); @@ -162,12 +152,7 @@ public java.lang.String getInterfaceDescriptor() java.util.stream.IntStream.range(0, N).forEach(i -> { String k = _reply.readString(); android.app.usage.UsageStats v; - if ((0!=_reply.readInt())) { - v = android.app.usage.UsageStats.CREATOR.createFromParcel(_reply); - } - else { - v = null; - } + v = _Parcel.readTypedObject(_reply, android.app.usage.UsageStats.CREATOR); _result.put(k, v); }); } @@ -178,27 +163,47 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.app.usage.IUsageStatsManager sDefaultImpl; } static final int TRANSACTION_queryUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_queryAndAggregateUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.app.usage.IUsageStatsManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.app.usage.IUsageStatsManager"; + public java.util.List queryUsageStats(int intervalType, long beginTime, long endTime) throws android.os.RemoteException; + public java.util.Map queryAndAggregateUsageStats(long beginTime, long endTime) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); } - return false; } - public static github.tornaco.android.thanos.core.app.usage.IUsageStatsManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } } } - public java.util.List queryUsageStats(int intervalType, long beginTime, long endTime) throws android.os.RemoteException; - public java.util.Map queryAndAggregateUsageStats(long beginTime, long endTime) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/audio/IAudioManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/audio/IAudioManager.java index 102b52014..61cc3c65a 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/audio/IAudioManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/audio/IAudioManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/audio/IAudioManager.aidl */ package github.tornaco.android.thanos.core.audio; public interface IAudioManager extends android.os.IInterface @@ -19,8 +20,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.audio.IAudioManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.audio.IAudioManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -47,33 +48,30 @@ public static github.tornaco.android.thanos.core.audio.IAudioManager asInterface @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_hasAudioFocus: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.hasAudioFocus(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.audio.IAudioManager { @@ -97,17 +95,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_hasAudioFocus, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasAudioFocus(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -117,25 +106,31 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.audio.IAudioManager sDefaultImpl; } static final int TRANSACTION_hasAudioFocus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.audio.IAudioManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.audio.IAudioManager"; + public boolean hasAudioFocus(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.audio.IAudioManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public boolean hasAudioFocus(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupAgent.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupAgent.java index 038f4f6b2..0f7c6a3ae 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupAgent.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupAgent.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupAgent.aidl */ package github.tornaco.android.thanos.core.backup; public interface IBackupAgent extends android.os.IInterface @@ -25,8 +26,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.backup.IBackupAgent { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IBackupAgent"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -53,16 +54,17 @@ public static github.tornaco.android.thanos.core.backup.IBackupAgent asInterface @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_performBackup: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer _arg0; _arg0 = github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg1; @@ -72,18 +74,12 @@ public static github.tornaco.android.thanos.core.backup.IBackupAgent asInterface github.tornaco.android.thanos.core.backup.IBackupCallback _arg3; _arg3 = github.tornaco.android.thanos.core.backup.IBackupCallback.Stub.asInterface(data.readStrongBinder()); this.performBackup(_arg0, _arg1, _arg2, _arg3); - return true; + break; } case TRANSACTION_performRestore: { - data.enforceInterface(descriptor); android.os.ParcelFileDescriptor _arg0; - if ((0!=data.readInt())) { - _arg0 = android.os.ParcelFileDescriptor.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.os.ParcelFileDescriptor.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); java.lang.String _arg2; @@ -91,21 +87,21 @@ public static github.tornaco.android.thanos.core.backup.IBackupAgent asInterface github.tornaco.android.thanos.core.backup.IBackupCallback _arg3; _arg3 = github.tornaco.android.thanos.core.backup.IBackupCallback.Stub.asInterface(data.readStrongBinder()); this.performRestore(_arg0, _arg1, _arg2, _arg3); - return true; + break; } case TRANSACTION_restoreDefault: { - data.enforceInterface(descriptor); boolean _result = this.restoreDefault(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.backup.IBackupAgent { @@ -127,15 +123,11 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((init!=null))?(init.asBinder()):(null))); + _data.writeStrongInterface(init); _data.writeString(domain); _data.writeString(path); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); boolean _status = mRemote.transact(Stub.TRANSACTION_performBackup, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().performBackup(init, domain, path, callback); - return; - } } finally { _data.recycle(); @@ -146,21 +138,11 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pfd!=null)) { - _data.writeInt(1); - pfd.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pfd, 0); _data.writeString(domain); _data.writeString(path); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); boolean _status = mRemote.transact(Stub.TRANSACTION_performRestore, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().performRestore(pfd, domain, path, callback); - return; - } } finally { _data.recycle(); @@ -174,9 +156,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_restoreDefault, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().restoreDefault(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -186,29 +165,35 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.backup.IBackupAgent sDefaultImpl; } static final int TRANSACTION_performBackup = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_performRestore = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_restoreDefault = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.backup.IBackupAgent impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.backup.IBackupAgent getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IBackupAgent"; public void performBackup(github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer init, java.lang.String domain, java.lang.String path, github.tornaco.android.thanos.core.backup.IBackupCallback callback) throws android.os.RemoteException; public void performRestore(android.os.ParcelFileDescriptor pfd, java.lang.String domain, java.lang.String path, github.tornaco.android.thanos.core.backup.IBackupCallback callback) throws android.os.RemoteException; public boolean restoreDefault() throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupCallback.java index 330dd3fa5..6b5f4713b 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupCallback.aidl */ package github.tornaco.android.thanos.core.backup; public interface IBackupCallback extends android.os.IInterface @@ -27,8 +28,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.backup.IBackupCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IBackupCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -55,54 +56,53 @@ public static github.tornaco.android.thanos.core.backup.IBackupCallback asInterf @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onBackupFinished: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; _arg1 = data.readString(); this.onBackupFinished(_arg0, _arg1); - return true; + break; } case TRANSACTION_onRestoreFinished: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; _arg1 = data.readString(); this.onRestoreFinished(_arg0, _arg1); - return true; + break; } case TRANSACTION_onFail: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onFail(_arg0); - return true; + break; } case TRANSACTION_onProgress: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onProgress(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.backup.IBackupCallback { @@ -127,10 +127,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(domain); _data.writeString(path); boolean _status = mRemote.transact(Stub.TRANSACTION_onBackupFinished, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onBackupFinished(domain, path); - return; - } } finally { _data.recycle(); @@ -144,10 +140,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(domain); _data.writeString(path); boolean _status = mRemote.transact(Stub.TRANSACTION_onRestoreFinished, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRestoreFinished(domain, path); - return; - } } finally { _data.recycle(); @@ -160,10 +152,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(message); boolean _status = mRemote.transact(Stub.TRANSACTION_onFail, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onFail(message); - return; - } } finally { _data.recycle(); @@ -176,38 +164,19 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(progressMessage); boolean _status = mRemote.transact(Stub.TRANSACTION_onProgress, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onProgress(progressMessage); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.backup.IBackupCallback sDefaultImpl; } static final int TRANSACTION_onBackupFinished = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onRestoreFinished = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onFail = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_onProgress = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.backup.IBackupCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.backup.IBackupCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IBackupCallback"; public void onBackupFinished(java.lang.String domain, java.lang.String path) throws android.os.RemoteException; public void onRestoreFinished(java.lang.String domain, java.lang.String path) throws android.os.RemoteException; public void onFail(java.lang.String message) throws android.os.RemoteException; diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorConsumer.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorConsumer.java index b222c8d8b..d85c9a252 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorConsumer.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorConsumer.java @@ -1,16 +1,15 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorConsumer.aidl */ package github.tornaco.android.thanos.core.backup; // oneway - public interface IFileDescriptorConsumer extends android.os.IInterface { /** Default implementation for IFileDescriptorConsumer. */ public static class Default implements github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer { // IO. - @Override public void acceptAppParcelFileDescriptor(android.os.ParcelFileDescriptor pfd) throws android.os.RemoteException { } @@ -22,8 +21,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -50,31 +49,28 @@ public static github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_acceptAppParcelFileDescriptor: { - data.enforceInterface(descriptor); android.os.ParcelFileDescriptor _arg0; - if ((0!=data.readInt())) { - _arg0 = android.os.ParcelFileDescriptor.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.os.ParcelFileDescriptor.CREATOR); this.acceptAppParcelFileDescriptor(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer { @@ -92,50 +88,44 @@ public java.lang.String getInterfaceDescriptor() return DESCRIPTOR; } // IO. - @Override public void acceptAppParcelFileDescriptor(android.os.ParcelFileDescriptor pfd) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pfd!=null)) { - _data.writeInt(1); - pfd.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pfd, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_acceptAppParcelFileDescriptor, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().acceptAppParcelFileDescriptor(pfd); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer sDefaultImpl; } static final int TRANSACTION_acceptAppParcelFileDescriptor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer"; + // IO. + public void acceptAppParcelFileDescriptor(android.os.ParcelFileDescriptor pfd) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - // IO. - - public void acceptAppParcelFileDescriptor(android.os.ParcelFileDescriptor pfd) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorInitializer.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorInitializer.java index 502d3947e..ad421b064 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorInitializer.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorInitializer.java @@ -1,9 +1,9 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorInitializer.aidl */ package github.tornaco.android.thanos.core.backup; // oneway - public interface IFileDescriptorInitializer extends android.os.IInterface { /** Default implementation for IFileDescriptorInitializer. */ @@ -20,8 +20,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -48,16 +48,17 @@ public static github.tornaco.android.thanos.core.backup.IFileDescriptorInitializ @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_initParcelFileDescriptor: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -65,13 +66,14 @@ public static github.tornaco.android.thanos.core.backup.IFileDescriptorInitializ github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer _arg2; _arg2 = github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer.Stub.asInterface(data.readStrongBinder()); this.initParcelFileDescriptor(_arg0, _arg1, _arg2); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer { @@ -95,36 +97,17 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(domain); _data.writeString(path); - _data.writeStrongBinder((((consumer!=null))?(consumer.asBinder()):(null))); + _data.writeStrongInterface(consumer); boolean _status = mRemote.transact(Stub.TRANSACTION_initParcelFileDescriptor, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().initParcelFileDescriptor(domain, path, consumer); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer sDefaultImpl; } static final int TRANSACTION_initParcelFileDescriptor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer"; public void initParcelFileDescriptor(java.lang.String domain, java.lang.String path, github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer consumer) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/input/IInputManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/input/IInputManager.java index 8efd6c4fd..d53175100 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/input/IInputManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/input/IInputManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/input/IInputManager.aidl */ package github.tornaco.android.thanos.core.input; public interface IInputManager extends android.os.IInterface @@ -26,8 +27,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.input.IInputManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.input.IInputManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -54,52 +55,47 @@ public static github.tornaco.android.thanos.core.input.IInputManager asInterface @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_injectKey: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.injectKey(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getLastKey: { - data.enforceInterface(descriptor); int _result = this.getLastKey(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_onKeyEvent: { - data.enforceInterface(descriptor); android.view.KeyEvent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.view.KeyEvent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.view.KeyEvent.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); this.onKeyEvent(_arg0, _arg1); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.input.IInputManager { @@ -125,9 +121,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(keyCode); boolean _status = mRemote.transact(Stub.TRANSACTION_injectKey, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().injectKey(keyCode); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -145,9 +138,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getLastKey, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLastKey(); - } _reply.readException(); _result = _reply.readInt(); } @@ -163,19 +153,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((keyEvent!=null)) { - _data.writeInt(1); - keyEvent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, keyEvent, 0); _data.writeString(source); boolean _status = mRemote.transact(Stub.TRANSACTION_onKeyEvent, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onKeyEvent(keyEvent, source); - return; - } _reply.readException(); } finally { @@ -183,29 +163,35 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.input.IInputManager sDefaultImpl; } static final int TRANSACTION_injectKey = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getLastKey = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onKeyEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.input.IInputManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.input.IInputManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.input.IInputManager"; public boolean injectKey(int keyCode) throws android.os.RemoteException; public int getLastKey() throws android.os.RemoteException; public void onKeyEvent(android.view.KeyEvent keyEvent, java.lang.String source) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationManager.java index a27dead64..5df59bc48 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationManager.aidl */ package github.tornaco.android.thanos.core.n; public interface INotificationManager extends android.os.IInterface @@ -75,7 +76,6 @@ public static class Default implements github.tornaco.android.thanos.core.n.INot { } // For searching. - @Override public java.util.List getAllNotificationRecordsByPageAndKeyword(int start, int limit, java.lang.String keyword) throws android.os.RemoteException { return null; @@ -130,8 +130,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.n.INotificationManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.n.INotificationManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -158,208 +158,175 @@ public static github.tornaco.android.thanos.core.n.INotificationManager asInterf @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_getShowingNotificationRecordsForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.util.List _result = this.getShowingNotificationRecordsForPackage(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_hasShowingNotificationRecordsForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.hasShowingNotificationRecordsForPackage(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_registerObserver: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.INotificationObserver _arg0; _arg0 = github.tornaco.android.thanos.core.n.INotificationObserver.Stub.asInterface(data.readStrongBinder()); this.registerObserver(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterObserver: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.INotificationObserver _arg0; _arg0 = github.tornaco.android.thanos.core.n.INotificationObserver.Stub.asInterface(data.readStrongBinder()); this.unRegisterObserver(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setScreenOnNotificationEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setScreenOnNotificationEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isScreenOnNotificationEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isScreenOnNotificationEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setScreenOnNotificationEnabledForPkg: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setScreenOnNotificationEnabledForPkg(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isScreenOnNotificationEnabledForPkg: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isScreenOnNotificationEnabledForPkg(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_nextNotificationId: { - data.enforceInterface(descriptor); int _result = this.nextNotificationId(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_setPersistOnNewNotificationEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setPersistOnNewNotificationEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPersistOnNewNotificationEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isPersistOnNewNotificationEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_cleanUpPersistNotificationRecords: { - data.enforceInterface(descriptor); this.cleanUpPersistNotificationRecords(); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllNotificationRecordsByPage: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); java.util.List _result = this.getAllNotificationRecordsByPage(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getNotificationRecordsForPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getNotificationRecordsForPackage(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_onAddNotificationRecord: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); this.onAddNotificationRecord(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setShowToastAppInfoEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setShowToastAppInfoEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isShowToastAppInfoEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isShowToastAppInfoEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isNREnabled: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.isNREnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setNREnabled: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setNREnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllNotificationRecordsByPageAndKeyword: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; @@ -368,12 +335,11 @@ public static github.tornaco.android.thanos.core.n.INotificationManager asInterf _arg2 = data.readString(); java.util.List _result = this.getAllNotificationRecordsByPageAndKeyword(_arg0, _arg1, _arg2); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getAllNotificationRecordsByPageAndKeywordInDateRange: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; @@ -386,176 +352,116 @@ public static github.tornaco.android.thanos.core.n.INotificationManager asInterf _arg4 = data.readString(); java.util.List _result = this.getAllNotificationRecordsByPageAndKeywordInDateRange(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_onSetPrimaryClip: { - data.enforceInterface(descriptor); android.content.ClipData _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.ClipData.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.ClipData.CREATOR); github.tornaco.android.thanos.core.pm.Pkg _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.onSetPrimaryClip(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPackageRedactionNotificationEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPackageRedactionNotificationEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPackageRedactionNotificationEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPackageRedactionNotificationEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPackageRedactionNotificationTitle: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); this.setPackageRedactionNotificationTitle(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPackageRedactionNotificationTitle: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _result = this.getPackageRedactionNotificationTitle(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_setPackageRedactionNotificationText: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); this.setPackageRedactionNotificationText(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPackageRedactionNotificationText: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _result = this.getPackageRedactionNotificationText(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_setPersistAllPkgEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setPersistAllPkgEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPersistAllPkgEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isPersistAllPkgEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPkgNREnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgNREnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgNREnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgNREnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.n.INotificationManager { @@ -579,17 +485,8 @@ public java.lang.String getInterfaceDescriptor() java.util.List _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getShowingNotificationRecordsForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getShowingNotificationRecordsForPackage(pkg); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); } @@ -606,17 +503,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_hasShowingNotificationRecordsForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasShowingNotificationRecordsForPackage(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -632,12 +520,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((obs!=null))?(obs.asBinder()):(null))); + _data.writeStrongInterface(obs); boolean _status = mRemote.transact(Stub.TRANSACTION_registerObserver, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerObserver(obs); - return; - } _reply.readException(); } finally { @@ -651,12 +535,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((obs!=null))?(obs.asBinder()):(null))); + _data.writeStrongInterface(obs); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterObserver, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterObserver(obs); - return; - } _reply.readException(); } finally { @@ -672,10 +552,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setScreenOnNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setScreenOnNotificationEnabled(enable); - return; - } _reply.readException(); } finally { @@ -691,9 +567,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isScreenOnNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isScreenOnNotificationEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -712,10 +585,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkg); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setScreenOnNotificationEnabledForPkg, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setScreenOnNotificationEnabledForPkg(pkg, enable); - return; - } _reply.readException(); } finally { @@ -732,9 +601,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkg); boolean _status = mRemote.transact(Stub.TRANSACTION_isScreenOnNotificationEnabledForPkg, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isScreenOnNotificationEnabledForPkg(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -752,9 +618,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_nextNotificationId, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().nextNotificationId(); - } _reply.readException(); _result = _reply.readInt(); } @@ -772,10 +635,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPersistOnNewNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPersistOnNewNotificationEnabled(enable); - return; - } _reply.readException(); } finally { @@ -791,9 +650,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isPersistOnNewNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPersistOnNewNotificationEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -810,10 +666,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_cleanUpPersistNotificationRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().cleanUpPersistNotificationRecords(); - return; - } _reply.readException(); } finally { @@ -831,9 +683,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(start); _data.writeInt(limit); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllNotificationRecordsByPage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllNotificationRecordsByPage(start, limit); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); } @@ -852,9 +701,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getNotificationRecordsForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getNotificationRecordsForPackage(packageName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); } @@ -870,18 +716,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((record!=null)) { - _data.writeInt(1); - record.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, record, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onAddNotificationRecord, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onAddNotificationRecord(record); - return; - } _reply.readException(); } finally { @@ -897,10 +733,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setShowToastAppInfoEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setShowToastAppInfoEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -916,9 +748,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isShowToastAppInfoEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isShowToastAppInfoEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -937,9 +766,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(type); boolean _status = mRemote.transact(Stub.TRANSACTION_isNREnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isNREnabled(type); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -958,10 +784,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(type); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setNREnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setNREnabled(type, enabled); - return; - } _reply.readException(); } finally { @@ -970,7 +792,6 @@ public java.lang.String getInterfaceDescriptor() } } // For searching. - @Override public java.util.List getAllNotificationRecordsByPageAndKeyword(int start, int limit, java.lang.String keyword) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -982,9 +803,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(limit); _data.writeString(keyword); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllNotificationRecordsByPageAndKeyword, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllNotificationRecordsByPageAndKeyword(start, limit, keyword); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); } @@ -1007,9 +825,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeLong(endTimeMills); _data.writeString(keyword); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllNotificationRecordsByPageAndKeywordInDateRange, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllNotificationRecordsByPageAndKeywordInDateRange(start, limit, startTimeMills, endTimeMills, keyword); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); } @@ -1025,25 +840,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((clip!=null)) { - _data.writeInt(1); - clip.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } - if ((caller!=null)) { - _data.writeInt(1); - caller.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, clip, 0); + _Parcel.writeTypedObject(_data, caller, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onSetPrimaryClip, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onSetPrimaryClip(clip, caller); - return; - } _reply.readException(); } finally { @@ -1057,19 +856,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageRedactionNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPackageRedactionNotificationEnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -1084,17 +873,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageRedactionNotificationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPackageRedactionNotificationEnabled(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1110,19 +890,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeString(title); boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageRedactionNotificationTitle, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPackageRedactionNotificationTitle(pkg, title); - return; - } _reply.readException(); } finally { @@ -1137,17 +907,8 @@ public java.lang.String getInterfaceDescriptor() java.lang.String _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageRedactionNotificationTitle, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackageRedactionNotificationTitle(pkg); - } _reply.readException(); _result = _reply.readString(); } @@ -1163,19 +924,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeString(text); boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageRedactionNotificationText, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPackageRedactionNotificationText(pkg, text); - return; - } _reply.readException(); } finally { @@ -1190,17 +941,8 @@ public java.lang.String getInterfaceDescriptor() java.lang.String _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageRedactionNotificationText, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackageRedactionNotificationText(pkg); - } _reply.readException(); _result = _reply.readString(); } @@ -1218,10 +960,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPersistAllPkgEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPersistAllPkgEnabled(enable); - return; - } _reply.readException(); } finally { @@ -1237,9 +975,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isPersistAllPkgEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPersistAllPkgEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1255,19 +990,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgNREnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgNREnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -1282,17 +1007,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgNREnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgNREnabled(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1302,7 +1018,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.n.INotificationManager sDefaultImpl; } static final int TRANSACTION_getShowingNotificationRecordsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_hasShowingNotificationRecordsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -1336,23 +1051,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_isPersistAllPkgEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); static final int TRANSACTION_setPkgNREnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); static final int TRANSACTION_isPkgNREnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.n.INotificationManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.n.INotificationManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.n.INotificationManager"; public java.util.List getShowingNotificationRecordsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public boolean hasShowingNotificationRecordsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public void registerObserver(github.tornaco.android.thanos.core.n.INotificationObserver obs) throws android.os.RemoteException; @@ -1373,7 +1074,6 @@ public static github.tornaco.android.thanos.core.n.INotificationManager getDefau public boolean isNREnabled(int type) throws android.os.RemoteException; public void setNREnabled(int type, boolean enabled) throws android.os.RemoteException; // For searching. - public java.util.List getAllNotificationRecordsByPageAndKeyword(int start, int limit, java.lang.String keyword) throws android.os.RemoteException; public java.util.List getAllNotificationRecordsByPageAndKeywordInDateRange(int start, int limit, long startTimeMills, long endTimeMills, java.lang.String keyword) throws android.os.RemoteException; public void onSetPrimaryClip(android.content.ClipData clip, github.tornaco.android.thanos.core.pm.Pkg caller) throws android.os.RemoteException; @@ -1387,4 +1087,39 @@ public static github.tornaco.android.thanos.core.n.INotificationManager getDefau public boolean isPersistAllPkgEnabled() throws android.os.RemoteException; public void setPkgNREnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; public boolean isPkgNREnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationObserver.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationObserver.java index 330e14e76..f1d9cfe50 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationObserver.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationObserver.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationObserver.aidl */ package github.tornaco.android.thanos.core.n; public interface INotificationObserver extends android.os.IInterface @@ -27,8 +28,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.n.INotificationObserver { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.n.INotificationObserver"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -55,70 +56,49 @@ public static github.tornaco.android.thanos.core.n.INotificationObserver asInter @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onNewNotification: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); this.onNewNotification(_arg0); - return true; + break; } case TRANSACTION_onNotificationRemoved: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); this.onNotificationRemoved(_arg0); - return true; + break; } case TRANSACTION_onNotificationUpdated: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); this.onNotificationUpdated(_arg0); - return true; + break; } case TRANSACTION_onNotificationClicked: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); this.onNotificationClicked(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.n.INotificationObserver { @@ -140,18 +120,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((record!=null)) { - _data.writeInt(1); - record.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, record, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onNewNotification, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onNewNotification(record); - return; - } } finally { _data.recycle(); @@ -162,18 +132,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((record!=null)) { - _data.writeInt(1); - record.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, record, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onNotificationRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onNotificationRemoved(record); - return; - } } finally { _data.recycle(); @@ -184,18 +144,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((record!=null)) { - _data.writeInt(1); - record.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, record, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onNotificationUpdated, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onNotificationUpdated(record); - return; - } } finally { _data.recycle(); @@ -206,48 +156,44 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((record!=null)) { - _data.writeInt(1); - record.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, record, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onNotificationClicked, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onNotificationClicked(record); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.n.INotificationObserver sDefaultImpl; } static final int TRANSACTION_onNewNotification = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onNotificationRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onNotificationUpdated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_onNotificationClicked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.n.INotificationObserver impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.n.INotificationObserver getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.n.INotificationObserver"; public void onNewNotification(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException; public void onNotificationRemoved(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException; public void onNotificationUpdated(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException; public void onNotificationClicked(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/net/INetworkManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/net/INetworkManager.java index 31b66460c..955894f05 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/net/INetworkManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/net/INetworkManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/net/INetworkManager.aidl */ package github.tornaco.android.thanos.core.net; public interface INetworkManager extends android.os.IInterface @@ -19,8 +20,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.net.INetworkManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.net.INetworkManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -47,34 +48,30 @@ public static github.tornaco.android.thanos.core.net.INetworkManager asInterface @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_getUidTrafficStats: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); github.tornaco.android.thanos.core.net.TrafficStats _result = this.getUidTrafficStats(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.net.INetworkManager { @@ -100,16 +97,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); boolean _status = mRemote.transact(Stub.TRANSACTION_getUidTrafficStats, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getUidTrafficStats(uid); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.net.TrafficStats.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.net.TrafficStats.CREATOR); } finally { _reply.recycle(); @@ -117,25 +106,31 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.net.INetworkManager sDefaultImpl; } static final int TRANSACTION_getUidTrafficStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.net.INetworkManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.net.INetworkManager"; + public github.tornaco.android.thanos.core.net.TrafficStats getUidTrafficStats(int uid) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.net.INetworkManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public github.tornaco.android.thanos.core.net.TrafficStats getUidTrafficStats(int uid) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/ops/IOps.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/ops/IOps.java index 5af01bf34..b018f28de 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/ops/IOps.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/ops/IOps.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/ops/IOps.aidl */ package github.tornaco.android.thanos.core.ops; public interface IOps extends android.os.IInterface @@ -38,8 +39,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.ops.IOps { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.ops.IOps"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -66,106 +67,82 @@ public static github.tornaco.android.thanos.core.ops.IOps asInterface(android.os @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_setMode: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); github.tornaco.android.thanos.core.pm.Pkg _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _arg2; _arg2 = data.readString(); this.setMode(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPackagePermInfo: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); github.tornaco.android.thanos.core.pm.Pkg _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); github.tornaco.android.thanos.core.ops.PermInfo _result = this.getPackagePermInfo(_arg0, _arg1); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_opToName: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.opToName(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_opToPermission: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.opToPermission(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getPermissionFlags: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.pm.Pkg _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _result = this.getPermissionFlags(_arg0, _arg1); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_permissionFlagToString: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.permissionFlagToString(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.ops.IOps { @@ -189,19 +166,9 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(code); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeString(permStateName); boolean _status = mRemote.transact(Stub.TRANSACTION_setMode, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setMode(code, pkg, permStateName); - return; - } _reply.readException(); } finally { @@ -217,24 +184,10 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(code); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackagePermInfo, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackagePermInfo(code, pkg); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.ops.PermInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.ops.PermInfo.CREATOR); } finally { _reply.recycle(); @@ -251,9 +204,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(code); boolean _status = mRemote.transact(Stub.TRANSACTION_opToName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().opToName(code); - } _reply.readException(); _result = _reply.readString(); } @@ -272,9 +222,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(code); boolean _status = mRemote.transact(Stub.TRANSACTION_opToPermission, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().opToPermission(code); - } _reply.readException(); _result = _reply.readString(); } @@ -292,17 +239,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(permName); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPermissionFlags, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPermissionFlags(permName, pkg); - } _reply.readException(); _result = _reply.readInt(); } @@ -321,9 +259,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(flag); boolean _status = mRemote.transact(Stub.TRANSACTION_permissionFlagToString, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().permissionFlagToString(flag); - } _reply.readException(); _result = _reply.readString(); } @@ -333,7 +268,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.ops.IOps sDefaultImpl; } static final int TRANSACTION_setMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getPackagePermInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -341,27 +275,34 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_opToPermission = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getPermissionFlags = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_permissionFlagToString = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.ops.IOps impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.ops.IOps getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.ops.IOps"; public void setMode(int code, github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String permStateName) throws android.os.RemoteException; public github.tornaco.android.thanos.core.ops.PermInfo getPackagePermInfo(int code, github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public java.lang.String opToName(int code) throws android.os.RemoteException; public java.lang.String opToPermission(int code) throws android.os.RemoteException; public int getPermissionFlags(java.lang.String permName, github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public java.lang.String permissionFlagToString(int flag) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/os/IServiceManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/os/IServiceManager.java index 45c75da35..1c76e28f4 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/os/IServiceManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/os/IServiceManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/os/IServiceManager.aidl */ package github.tornaco.android.thanos.core.os; public interface IServiceManager extends android.os.IInterface @@ -26,8 +27,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.os.IServiceManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.os.IServiceManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -54,49 +55,49 @@ public static github.tornaco.android.thanos.core.os.IServiceManager asInterface( @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_hasService: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.hasService(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_addService: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.os.IBinder _arg1; _arg1 = data.readStrongBinder(); this.addService(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getService: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.os.IBinder _result = this.getService(_arg0); reply.writeNoException(); reply.writeStrongBinder(_result); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.os.IServiceManager { @@ -122,9 +123,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(name); boolean _status = mRemote.transact(Stub.TRANSACTION_hasService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasService(name); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -143,10 +141,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(name); _data.writeStrongBinder(binder); boolean _status = mRemote.transact(Stub.TRANSACTION_addService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addService(name, binder); - return; - } _reply.readException(); } finally { @@ -163,9 +157,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(name); boolean _status = mRemote.transact(Stub.TRANSACTION_getService, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getService(name); - } _reply.readException(); _result = _reply.readStrongBinder(); } @@ -175,28 +166,13 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.os.IServiceManager sDefaultImpl; } static final int TRANSACTION_hasService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_addService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_getService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.os.IServiceManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.os.IServiceManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.os.IServiceManager"; public boolean hasService(java.lang.String name) throws android.os.RemoteException; public void addService(java.lang.String name, android.os.IBinder binder) throws android.os.RemoteException; public android.os.IBinder getService(java.lang.String name) throws android.os.RemoteException; diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/ICallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/ICallback.java index 7283911df..010575c3a 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/ICallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/ICallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/ICallback.aidl */ package github.tornaco.android.thanos.core.plus; public interface ICallback extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.plus.ICallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.plus.ICallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,31 +47,28 @@ public static github.tornaco.android.thanos.core.plus.ICallback asInterface(andr @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onRes: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.plus.RR _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.plus.RR.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.plus.RR.CREATOR); this.onRes(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.plus.ICallback { @@ -92,42 +90,38 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((res!=null)) { - _data.writeInt(1); - res.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, res, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onRes, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRes(res); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.plus.ICallback sDefaultImpl; } static final int TRANSACTION_onRes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.plus.ICallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.plus.ICallback"; + public void onRes(github.tornaco.android.thanos.core.plus.RR res) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.plus.ICallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public void onRes(github.tornaco.android.thanos.core.plus.RR res) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/IRS.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/IRS.java index ea3cdb18b..7e25e7b7f 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/IRS.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/IRS.java @@ -1,21 +1,19 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/IRS.aidl */ package github.tornaco.android.thanos.core.plus; // Remote Server - public interface IRS extends android.os.IInterface { /** Default implementation for IRS. */ public static class Default implements github.tornaco.android.thanos.core.plus.IRS { // Bind code. - @Override public void bc(java.lang.String code, java.lang.String deviceId, github.tornaco.android.thanos.core.plus.ICallback cb) throws android.os.RemoteException { } // Verify binding. - @Override public void vb(java.lang.String code, java.lang.String deviceId, github.tornaco.android.thanos.core.plus.ICallback cb) throws android.os.RemoteException { } @@ -27,8 +25,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.plus.IRS { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.plus.IRS"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -55,16 +53,17 @@ public static github.tornaco.android.thanos.core.plus.IRS asInterface(android.os @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_bc: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -73,11 +72,10 @@ public static github.tornaco.android.thanos.core.plus.IRS asInterface(android.os _arg2 = github.tornaco.android.thanos.core.plus.ICallback.Stub.asInterface(data.readStrongBinder()); this.bc(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } case TRANSACTION_vb: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -86,13 +84,14 @@ public static github.tornaco.android.thanos.core.plus.IRS asInterface(android.os _arg2 = github.tornaco.android.thanos.core.plus.ICallback.Stub.asInterface(data.readStrongBinder()); this.vb(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.plus.IRS { @@ -110,7 +109,6 @@ public java.lang.String getInterfaceDescriptor() return DESCRIPTOR; } // Bind code. - @Override public void bc(java.lang.String code, java.lang.String deviceId, github.tornaco.android.thanos.core.plus.ICallback cb) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -119,12 +117,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(code); _data.writeString(deviceId); - _data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null))); + _data.writeStrongInterface(cb); boolean _status = mRemote.transact(Stub.TRANSACTION_bc, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().bc(code, deviceId, cb); - return; - } _reply.readException(); } finally { @@ -133,7 +127,6 @@ public java.lang.String getInterfaceDescriptor() } } // Verify binding. - @Override public void vb(java.lang.String code, java.lang.String deviceId, github.tornaco.android.thanos.core.plus.ICallback cb) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -142,12 +135,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(code); _data.writeString(deviceId); - _data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null))); + _data.writeStrongInterface(cb); boolean _status = mRemote.transact(Stub.TRANSACTION_vb, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().vb(code, deviceId, cb); - return; - } _reply.readException(); } finally { @@ -155,31 +144,14 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.plus.IRS sDefaultImpl; } static final int TRANSACTION_bc = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_vb = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.plus.IRS impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.plus.IRS getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.plus.IRS"; // Bind code. - public void bc(java.lang.String code, java.lang.String deviceId, github.tornaco.android.thanos.core.plus.ICallback cb) throws android.os.RemoteException; // Verify binding. - public void vb(java.lang.String code, java.lang.String deviceId, github.tornaco.android.thanos.core.plus.ICallback cb) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IAddPluginCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IAddPluginCallback.java index 65e4d4d07..f90139a2d 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IAddPluginCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IAddPluginCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IAddPluginCallback.aidl */ package github.tornaco.android.thanos.core.pm; public interface IAddPluginCallback extends android.os.IInterface @@ -24,8 +25,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.pm.IAddPluginCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IAddPluginCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -52,40 +53,40 @@ public static github.tornaco.android.thanos.core.pm.IAddPluginCallback asInterfa @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onPluginAdd: { - data.enforceInterface(descriptor); this.onPluginAdd(); - return true; + break; } case TRANSACTION_onFail: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onFail(_arg0); - return true; + break; } case TRANSACTION_onProgress: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onProgress(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.pm.IAddPluginCallback { @@ -108,10 +109,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_onPluginAdd, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onPluginAdd(); - return; - } } finally { _data.recycle(); @@ -124,10 +121,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(message); boolean _status = mRemote.transact(Stub.TRANSACTION_onFail, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onFail(message); - return; - } } finally { _data.recycle(); @@ -140,37 +133,18 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(progressMessage); boolean _status = mRemote.transact(Stub.TRANSACTION_onProgress, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onProgress(progressMessage); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.pm.IAddPluginCallback sDefaultImpl; } static final int TRANSACTION_onPluginAdd = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onFail = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onProgress = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.pm.IAddPluginCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.pm.IAddPluginCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IAddPluginCallback"; public void onPluginAdd() throws android.os.RemoteException; public void onFail(java.lang.String message) throws android.os.RemoteException; public void onProgress(java.lang.String progressMessage) throws android.os.RemoteException; diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageEnableStateChangeListener.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageEnableStateChangeListener.java index 30e5d32bf..9addea882 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageEnableStateChangeListener.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageEnableStateChangeListener.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageEnableStateChangeListener.aidl */ package github.tornaco.android.thanos.core.pm; public interface IPackageEnableStateChangeListener extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,26 +47,28 @@ public static github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeLis @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onPackageEnableStateChanged: { - data.enforceInterface(descriptor); java.util.List _arg0; _arg0 = data.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.onPackageEnableStateChanged(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener { @@ -87,36 +90,52 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeTypedList(pkgs); + _Parcel.writeTypedList(_data, pkgs, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageEnableStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onPackageEnableStateChanged(pkgs); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener sDefaultImpl; } static final int TRANSACTION_onPackageEnableStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener"; + public void onPackageEnableStateChanged(java.util.List pkgs) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); } - return false; } - public static github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } } } - public void onPackageEnableStateChanged(java.util.List pkgs) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageSetChangeListener.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageSetChangeListener.java index dbebedd80..9891cc3a8 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageSetChangeListener.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageSetChangeListener.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageSetChangeListener.aidl */ package github.tornaco.android.thanos.core.pm; public interface IPackageSetChangeListener extends android.os.IInterface @@ -24,8 +25,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.pm.IPackageSetChangeListener { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IPackageSetChangeListener"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -52,42 +53,42 @@ public static github.tornaco.android.thanos.core.pm.IPackageSetChangeListener as @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onPackageSetAdded: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onPackageSetAdded(_arg0); - return true; + break; } case TRANSACTION_onPackageSetRemoved: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onPackageSetRemoved(_arg0); - return true; + break; } case TRANSACTION_onPackageSetChanged: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onPackageSetChanged(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.pm.IPackageSetChangeListener { @@ -111,10 +112,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgSetId); boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageSetAdded, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onPackageSetAdded(pkgSetId); - return; - } } finally { _data.recycle(); @@ -127,10 +124,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgSetId); boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageSetRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onPackageSetRemoved(pkgSetId); - return; - } } finally { _data.recycle(); @@ -143,37 +136,18 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgSetId); boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageSetChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onPackageSetChanged(pkgSetId); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.pm.IPackageSetChangeListener sDefaultImpl; } static final int TRANSACTION_onPackageSetAdded = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onPackageSetRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onPackageSetChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.pm.IPackageSetChangeListener impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.pm.IPackageSetChangeListener getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IPackageSetChangeListener"; public void onPackageSetAdded(java.lang.String pkgSetId) throws android.os.RemoteException; public void onPackageSetRemoved(java.lang.String pkgSetId) throws android.os.RemoteException; public void onPackageSetChanged(java.lang.String pkgSetId) throws android.os.RemoteException; diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPkgManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPkgManager.java index 5156faa53..63cbb8739 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPkgManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPkgManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPkgManager.aidl */ package github.tornaco.android.thanos.core.pm; public interface IPkgManager extends android.os.IInterface @@ -16,7 +17,6 @@ public static class Default implements github.tornaco.android.thanos.core.pm.IPk return 0; } // ApplicationInfo - @Override public java.util.List getInstalledPkgs(int flags) throws android.os.RemoteException { return null; @@ -252,7 +252,6 @@ public static class Default implements github.tornaco.android.thanos.core.pm.IPk return null; } // Wrap api to skip permission check - @Override public java.lang.String[] getPackagesForUid(int uid) throws android.os.RemoteException { return null; @@ -317,8 +316,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.pm.IPkgManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IPkgManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -345,194 +344,146 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager asInterface(andr @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_getPkgNameForUid: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String[] _result = this.getPkgNameForUid(_arg0); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_getUidForPkgName: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _result = this.getUidForPkgName(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getInstalledPkgs: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.util.List _result = this.getInstalledPkgs(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getAppInfo: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.pm.AppInfo _result = this.getAppInfo(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getWhiteListPkgs: { - data.enforceInterface(descriptor); java.lang.String[] _result = this.getWhiteListPkgs(); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_isPkgInWhiteList: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isPkgInWhiteList(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setComponentEnabledSetting: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); android.content.ComponentName _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); this.setComponentEnabledSetting(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - return true; + break; } case TRANSACTION_getComponentEnabledSetting: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); android.content.ComponentName _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); int _result = this.getComponentEnabledSetting(_arg0, _arg1); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_isComponentDisabledByThanox: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); android.content.ComponentName _arg1; - if ((0!=data.readInt())) { - _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); boolean _result = this.isComponentDisabledByThanox(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getApplicationEnableState: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.getApplicationEnableState(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setApplicationEnableState: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); boolean _arg2; _arg2 = (0!=data.readInt()); this.setApplicationEnableState(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } case TRANSACTION_getActivities: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); java.util.List _result = this.getActivities(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getActivitiesCount: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _result = this.getActivitiesCount(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getActivitiesInBatch: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; @@ -543,34 +494,31 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager asInterface(andr _arg3 = data.readInt(); java.util.List _result = this.getActivitiesInBatch(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getReceivers: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); java.util.List _result = this.getReceivers(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getReceiverCount: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _result = this.getReceiverCount(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getReceiversInBatch: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; @@ -581,34 +529,31 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager asInterface(andr _arg3 = data.readInt(); java.util.List _result = this.getReceiversInBatch(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getServices: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); java.util.List _result = this.getServices(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getServiceCount: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _result = this.getServiceCount(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getServicesInBatch: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; @@ -619,321 +564,263 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager asInterface(andr _arg3 = data.readInt(); java.util.List _result = this.getServicesInBatch(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_setSmartFreezeEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartFreezeEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isSmartFreezeEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartFreezeEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPkgSmartFreezeEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgSmartFreezeEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgSmartFreezeEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isPkgSmartFreezeEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getSmartFreezePkgs: { - data.enforceInterface(descriptor); java.util.List _result = this.getSmartFreezePkgs(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_launchSmartFreezePkg: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.launchSmartFreezePkg(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setSmartFreezeScreenOffCheckEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartFreezeScreenOffCheckEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isSmartFreezeScreenOffCheckEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartFreezeScreenOffCheckEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartFreezeScreenOffCheckDelay: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); this.setSmartFreezeScreenOffCheckDelay(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getSmartFreezeScreenOffCheckDelay: { - data.enforceInterface(descriptor); long _result = this.getSmartFreezeScreenOffCheckDelay(); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_queryLaunchIntentForPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.content.Intent _result = this.queryLaunchIntentForPackage(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_enableAllThanoxDisabledPackages: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); java.util.List _result = this.enableAllThanoxDisabledPackages(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_deviceHasGms: { - data.enforceInterface(descriptor); boolean _result = this.deviceHasGms(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_verifyBillingState: { - data.enforceInterface(descriptor); boolean _result = this.verifyBillingState(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_launchSmartFreezePkgThenKillOrigin: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; _arg1 = data.readString(); this.launchSmartFreezePkgThenKillOrigin(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isProtectedWhitelistEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isProtectedWhitelistEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setProtectedWhitelistEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setProtectedWhitelistEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_addPlugin: { - data.enforceInterface(descriptor); android.os.ParcelFileDescriptor _arg0; - if ((0!=data.readInt())) { - _arg0 = android.os.ParcelFileDescriptor.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.os.ParcelFileDescriptor.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); github.tornaco.android.thanos.core.pm.IAddPluginCallback _arg2; _arg2 = github.tornaco.android.thanos.core.pm.IAddPluginCallback.Stub.asInterface(data.readStrongBinder()); this.addPlugin(_arg0, _arg1, _arg2); - return true; + break; } case TRANSACTION_removePlugin: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.removePlugin(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_hasPlugin: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.hasPlugin(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isSmartFreezeHidePackageEventEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSmartFreezeHidePackageEventEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSmartFreezeHidePackageEventEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSmartFreezeHidePackageEventEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_dump: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IPrinter _arg0; _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); this.dump(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPackageBlockUninstallEnabled: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPackageBlockUninstallEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPackageBlockUninstallEnabled: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isPackageBlockUninstallEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPackageBlockClearDataEnabled: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPackageBlockClearDataEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPackageBlockClearDataEnabled: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isPackageBlockClearDataEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getInstalledPackagesCount: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _result = this.getInstalledPackagesCount(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_createPackageSet: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.pm.PackageSet _result = this.createPackageSet(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_removePackageSet: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.removePackageSet(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getPackageSetById: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; @@ -942,372 +829,281 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager asInterface(andr _arg2 = (0!=data.readInt()); github.tornaco.android.thanos.core.pm.PackageSet _result = this.getPackageSetById(_arg0, _arg1, _arg2); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getAllPackageSets: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); java.util.List _result = this.getAllPackageSets(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getAllPackageSetIds: { - data.enforceInterface(descriptor); java.util.List _result = this.getAllPackageSetIds(); reply.writeNoException(); reply.writeStringList(_result); - return true; + break; } case TRANSACTION_addToPackageSet: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); this.addToPackageSet(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_removeFromPackageSet: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); this.removeFromPackageSet(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPackageSetThatContainsPkg: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.util.List _result = this.getPackageSetThatContainsPkg(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getPackageSetLabelsThatContainsPkg: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.util.List _result = this.getPackageSetLabelsThatContainsPkg(_arg0); reply.writeNoException(); reply.writeStringList(_result); - return true; + break; } case TRANSACTION_setFreezePkgWithSuspendEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setFreezePkgWithSuspendEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isFreezePkgWithSuspendEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isFreezePkgWithSuspendEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getInstalledPkgsByPackageSetId: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getInstalledPkgsByPackageSetId(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_registerPackageSetChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.IPackageSetChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.pm.IPackageSetChangeListener.Stub.asInterface(data.readStrongBinder()); this.registerPackageSetChangeListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterPackageSetChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.IPackageSetChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.pm.IPackageSetChangeListener.Stub.asInterface(data.readStrongBinder()); this.unRegisterPackageSetChangeListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setEnablePackageOnLaunchRequestEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setEnablePackageOnLaunchRequestEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isEnablePackageOnLaunchRequestEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _result = this.isEnablePackageOnLaunchRequestEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getProviders: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); java.util.List _result = this.getProviders(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getPackagesForUid: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String[] _result = this.getPackagesForUid(_arg0); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_mayEnableAppOnStartActivityIntent: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); int _arg1; _arg1 = data.readInt(); java.lang.String _result = this.mayEnableAppOnStartActivityIntent(_arg0, _arg1); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_isEnablePkgOnLaunchByDefault: { - data.enforceInterface(descriptor); boolean _result = this.isEnablePkgOnLaunchByDefault(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setEnablePkgOnLaunchByDefaultEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setEnablePkgOnLaunchByDefaultEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAppInfoForUser: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); github.tornaco.android.thanos.core.pm.AppInfo _result = this.getAppInfoForUser(_arg0, _arg1); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_launchSmartFreezePkgForUser: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); this.launchSmartFreezePkgForUser(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_launchSmartFreezePkgThenKillOriginForUser: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); java.lang.String _arg1; _arg1 = data.readString(); this.launchSmartFreezePkgThenKillOriginForUser(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_setDOLTipsEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setDOLTipsEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isDOLTipsEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isDOLTipsEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_updatePackageSetLabel: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; _arg1 = data.readString(); this.updatePackageSetLabel(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_freezeAllSmartFreezePackages: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener.Stub.asInterface(data.readStrongBinder()); this.freezeAllSmartFreezePackages(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_freezeSmartFreezePackages: { - data.enforceInterface(descriptor); java.util.List _arg0; _arg0 = data.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener _arg1; _arg1 = github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener.Stub.asInterface(data.readStrongBinder()); this.freezeSmartFreezePackages(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_hasFreezedPackageInUserWhiteListPkgSet: { - data.enforceInterface(descriptor); boolean _result = this.hasFreezedPackageInUserWhiteListPkgSet(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getAllDisabledComponentsForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); java.util.List _result = this.getAllDisabledComponentsForPackage(_arg0, _arg1, _arg2); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_setFreezeTipEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setFreezeTipEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isFreezeTipEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isFreezeTipEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.pm.IPkgManager { @@ -1333,9 +1129,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); boolean _status = mRemote.transact(Stub.TRANSACTION_getPkgNameForUid, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPkgNameForUid(uid); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -1352,17 +1145,8 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getUidForPkgName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getUidForPkgName(pkg); - } _reply.readException(); _result = _reply.readInt(); } @@ -1373,7 +1157,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // ApplicationInfo - @Override public java.util.List getInstalledPkgs(int flags) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -1383,9 +1166,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(flags); boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPkgs, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getInstalledPkgs(flags); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); } @@ -1405,16 +1185,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_getAppInfo, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAppInfo(pkgName); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.pm.AppInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); } finally { _reply.recycle(); @@ -1430,9 +1202,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getWhiteListPkgs, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getWhiteListPkgs(); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -1451,9 +1220,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkg); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgInWhiteList, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgInWhiteList(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1470,20 +1236,10 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(userId); - if ((componentName!=null)) { - _data.writeInt(1); - componentName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, componentName, 0); _data.writeInt(newState); _data.writeInt(flags); boolean _status = mRemote.transact(Stub.TRANSACTION_setComponentEnabledSetting, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setComponentEnabledSetting(userId, componentName, newState, flags); - return; - } _reply.readException(); } finally { @@ -1499,17 +1255,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(userId); - if ((componentName!=null)) { - _data.writeInt(1); - componentName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, componentName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getComponentEnabledSetting, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getComponentEnabledSetting(userId, componentName); - } _reply.readException(); _result = _reply.readInt(); } @@ -1527,17 +1274,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(userId); - if ((componentName!=null)) { - _data.writeInt(1); - componentName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, componentName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isComponentDisabledByThanox, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isComponentDisabledByThanox(userId, componentName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1554,17 +1292,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getApplicationEnableState, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getApplicationEnableState(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1580,20 +1309,10 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); _data.writeInt(((tmp)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setApplicationEnableState, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setApplicationEnableState(pkg, enable, tmp); - return; - } _reply.readException(); } finally { @@ -1611,9 +1330,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(userId); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getActivities, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getActivities(userId, packageName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); } @@ -1632,9 +1348,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getActivitiesCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getActivitiesCount(packageName); - } _reply.readException(); _result = _reply.readInt(); } @@ -1656,9 +1369,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(itemCountInEachBatch); _data.writeInt(batchIndex); boolean _status = mRemote.transact(Stub.TRANSACTION_getActivitiesInBatch, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getActivitiesInBatch(userId, packageName, itemCountInEachBatch, batchIndex); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); } @@ -1678,9 +1388,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(userId); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getReceivers, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getReceivers(userId, packageName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); } @@ -1699,9 +1406,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getReceiverCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getReceiverCount(packageName); - } _reply.readException(); _result = _reply.readInt(); } @@ -1723,9 +1427,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(itemCountInEachBatch); _data.writeInt(batchIndex); boolean _status = mRemote.transact(Stub.TRANSACTION_getReceiversInBatch, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getReceiversInBatch(userId, packageName, itemCountInEachBatch, batchIndex); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); } @@ -1745,9 +1446,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(userId); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getServices, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getServices(userId, packageName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); } @@ -1766,9 +1464,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getServiceCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getServiceCount(packageName); - } _reply.readException(); _result = _reply.readInt(); } @@ -1790,9 +1485,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(itemCountInEachBatch); _data.writeInt(batchIndex); boolean _status = mRemote.transact(Stub.TRANSACTION_getServicesInBatch, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getServicesInBatch(userId, packageName, itemCountInEachBatch, batchIndex); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); } @@ -1810,10 +1502,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartFreezeEnabled(enable); - return; - } _reply.readException(); } finally { @@ -1829,9 +1517,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartFreezeEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartFreezeEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1847,19 +1532,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkgName!=null)) { - _data.writeInt(1); - pkgName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkgName, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgSmartFreezeEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgSmartFreezeEnabled(pkgName, enable); - return; - } _reply.readException(); } finally { @@ -1874,17 +1549,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkgName!=null)) { - _data.writeInt(1); - pkgName.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkgName, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgSmartFreezeEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgSmartFreezeEnabled(pkgName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1902,9 +1568,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getSmartFreezePkgs, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSmartFreezePkgs(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); } @@ -1923,10 +1586,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkg, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().launchSmartFreezePkg(pkgName); - return; - } _reply.readException(); } finally { @@ -1942,10 +1601,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeScreenOffCheckEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartFreezeScreenOffCheckEnabled(enable); - return; - } _reply.readException(); } finally { @@ -1961,9 +1616,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartFreezeScreenOffCheckEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartFreezeScreenOffCheckEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1981,10 +1633,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(delay); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeScreenOffCheckDelay, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartFreezeScreenOffCheckDelay(delay); - return; - } _reply.readException(); } finally { @@ -2000,9 +1648,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getSmartFreezeScreenOffCheckDelay, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSmartFreezeScreenOffCheckDelay(); - } _reply.readException(); _result = _reply.readLong(); } @@ -2021,16 +1666,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_queryLaunchIntentForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().queryLaunchIntentForPackage(pkgName); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = android.content.Intent.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, android.content.Intent.CREATOR); } finally { _reply.recycle(); @@ -2047,9 +1684,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((removeFromSmartFreezeList)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_enableAllThanoxDisabledPackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().enableAllThanoxDisabledPackages(removeFromSmartFreezeList); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); } @@ -2067,9 +1701,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_deviceHasGms, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().deviceHasGms(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2087,9 +1718,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_verifyBillingState, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().verifyBillingState(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2109,10 +1737,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkgName); _data.writeString(origin); boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkgThenKillOrigin, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().launchSmartFreezePkgThenKillOrigin(pkgName, origin); - return; - } _reply.readException(); } finally { @@ -2128,9 +1752,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isProtectedWhitelistEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isProtectedWhitelistEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2148,10 +1769,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setProtectedWhitelistEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setProtectedWhitelistEnabled(enable); - return; - } _reply.readException(); } finally { @@ -2164,20 +1781,10 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pfd!=null)) { - _data.writeInt(1); - pfd.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pfd, 0); _data.writeString(pluginPackageName); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); boolean _status = mRemote.transact(Stub.TRANSACTION_addPlugin, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addPlugin(pfd, pluginPackageName, callback); - return; - } } finally { _data.recycle(); @@ -2191,10 +1798,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pluginPackageName); boolean _status = mRemote.transact(Stub.TRANSACTION_removePlugin, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removePlugin(pluginPackageName); - return; - } _reply.readException(); } finally { @@ -2211,9 +1814,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pluginPackageName); boolean _status = mRemote.transact(Stub.TRANSACTION_hasPlugin, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasPlugin(pluginPackageName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2231,9 +1831,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartFreezeHidePackageEventEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSmartFreezeHidePackageEventEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2251,10 +1848,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeHidePackageEventEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSmartFreezeHidePackageEventEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -2268,12 +1861,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((p!=null))?(p.asBinder()):(null))); + _data.writeStrongInterface(p); boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().dump(p); - return; - } _reply.readException(); } finally { @@ -2290,10 +1879,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkgName); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageBlockUninstallEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPackageBlockUninstallEnabled(pkgName, enable); - return; - } _reply.readException(); } finally { @@ -2310,9 +1895,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageBlockUninstallEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPackageBlockUninstallEnabled(pkgName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2331,10 +1913,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkgName); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageBlockClearDataEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPackageBlockClearDataEnabled(pkgName, enable); - return; - } _reply.readException(); } finally { @@ -2351,9 +1929,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgName); boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageBlockClearDataEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPackageBlockClearDataEnabled(pkgName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2372,9 +1947,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(appFlags); boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPackagesCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getInstalledPackagesCount(appFlags); - } _reply.readException(); _result = _reply.readInt(); } @@ -2393,16 +1965,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(label); boolean _status = mRemote.transact(Stub.TRANSACTION_createPackageSet, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().createPackageSet(label); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.pm.PackageSet.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); } finally { _reply.recycle(); @@ -2419,9 +1983,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_removePackageSet, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().removePackageSet(id); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2442,16 +2003,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(((withPackages)?(1):(0))); _data.writeInt(((shouldFilterUserWhiteList)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageSetById, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackageSetById(id, withPackages, shouldFilterUserWhiteList); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.pm.PackageSet.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); } finally { _reply.recycle(); @@ -2468,9 +2021,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((withPackages)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllPackageSets, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllPackageSets(withPackages); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); } @@ -2488,9 +2038,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllPackageSetIds, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllPackageSetIds(); - } _reply.readException(); _result = _reply.createStringArrayList(); } @@ -2506,19 +2053,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_addToPackageSet, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addToPackageSet(pkg, id); - return; - } _reply.readException(); } finally { @@ -2532,19 +2069,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_removeFromPackageSet, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removeFromPackageSet(pkg, id); - return; - } _reply.readException(); } finally { @@ -2559,17 +2086,8 @@ public java.lang.String getInterfaceDescriptor() java.util.List _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageSetThatContainsPkg, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackageSetThatContainsPkg(pkg); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); } @@ -2586,17 +2104,8 @@ public java.lang.String getInterfaceDescriptor() java.util.List _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageSetLabelsThatContainsPkg, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackageSetLabelsThatContainsPkg(pkg); - } _reply.readException(); _result = _reply.createStringArrayList(); } @@ -2614,10 +2123,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setFreezePkgWithSuspendEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setFreezePkgWithSuspendEnabled(enable); - return; - } _reply.readException(); } finally { @@ -2633,9 +2138,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isFreezePkgWithSuspendEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isFreezePkgWithSuspendEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2654,9 +2156,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkgSetId); boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPkgsByPackageSetId, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getInstalledPkgsByPackageSetId(pkgSetId); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); } @@ -2672,12 +2171,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_registerPackageSetChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerPackageSetChangeListener(listener); - return; - } _reply.readException(); } finally { @@ -2691,12 +2186,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterPackageSetChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterPackageSetChangeListener(listener); - return; - } _reply.readException(); } finally { @@ -2710,19 +2201,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setEnablePackageOnLaunchRequestEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setEnablePackageOnLaunchRequestEnabled(pkg, enable); - return; - } _reply.readException(); } finally { @@ -2737,17 +2218,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isEnablePackageOnLaunchRequestEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isEnablePackageOnLaunchRequestEnabled(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2767,9 +2239,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(userId); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getProviders, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getProviders(userId, packageName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); } @@ -2780,7 +2249,6 @@ public java.lang.String getInterfaceDescriptor() return _result; } // Wrap api to skip permission check - @Override public java.lang.String[] getPackagesForUid(int uid) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); @@ -2790,9 +2258,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); boolean _status = mRemote.transact(Stub.TRANSACTION_getPackagesForUid, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPackagesForUid(uid); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -2809,18 +2274,9 @@ public java.lang.String getInterfaceDescriptor() java.lang.String _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_mayEnableAppOnStartActivityIntent, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().mayEnableAppOnStartActivityIntent(intent, userId); - } _reply.readException(); _result = _reply.readString(); } @@ -2838,9 +2294,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isEnablePkgOnLaunchByDefault, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isEnablePkgOnLaunchByDefault(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2858,10 +2311,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((byDefault)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setEnablePkgOnLaunchByDefaultEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setEnablePkgOnLaunchByDefaultEnabled(byDefault); - return; - } _reply.readException(); } finally { @@ -2879,16 +2328,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkgName); _data.writeInt(userId); boolean _status = mRemote.transact(Stub.TRANSACTION_getAppInfoForUser, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAppInfoForUser(pkgName, userId); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.pm.AppInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); } finally { _reply.recycle(); @@ -2902,18 +2343,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkgForUser, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().launchSmartFreezePkgForUser(pkg); - return; - } _reply.readException(); } finally { @@ -2927,19 +2358,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((targetPkg!=null)) { - _data.writeInt(1); - targetPkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, targetPkg, 0); _data.writeString(origin); boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkgThenKillOriginForUser, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().launchSmartFreezePkgThenKillOriginForUser(targetPkg, origin); - return; - } _reply.readException(); } finally { @@ -2955,10 +2376,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setDOLTipsEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setDOLTipsEnabled(enable); - return; - } _reply.readException(); } finally { @@ -2974,9 +2391,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isDOLTipsEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isDOLTipsEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -2995,10 +2409,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(newLabel); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_updatePackageSetLabel, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().updatePackageSetLabel(newLabel, id); - return; - } _reply.readException(); } finally { @@ -3012,12 +2422,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_freezeAllSmartFreezePackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().freezeAllSmartFreezePackages(listener); - return; - } _reply.readException(); } finally { @@ -3031,13 +2437,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeTypedList(packages); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _Parcel.writeTypedList(_data, packages, 0); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_freezeSmartFreezePackages, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().freezeSmartFreezePackages(packages, listener); - return; - } _reply.readException(); } finally { @@ -3053,9 +2455,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_hasFreezedPackageInUserWhiteListPkgSet, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().hasFreezedPackageInUserWhiteListPkgSet(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3072,19 +2471,10 @@ public java.lang.String getInterfaceDescriptor() java.util.List _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(itemCountInEachBatch); _data.writeInt(batchIndex); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllDisabledComponentsForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllDisabledComponentsForPackage(pkg, itemCountInEachBatch, batchIndex); - } _reply.readException(); _result = _reply.createTypedArrayList(android.content.ComponentName.CREATOR); } @@ -3102,10 +2492,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setFreezeTipEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setFreezeTipEnabled(enable); - return; - } _reply.readException(); } finally { @@ -3121,9 +2507,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isFreezeTipEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isFreezeTipEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -3133,7 +2516,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.pm.IPkgManager sDefaultImpl; } static final int TRANSACTION_getPkgNameForUid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getUidForPkgName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -3216,29 +2598,15 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_getAllDisabledComponentsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 78); static final int TRANSACTION_setFreezeTipEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 79); static final int TRANSACTION_isFreezeTipEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 80); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.pm.IPkgManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.pm.IPkgManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pm.IPkgManager"; public java.lang.String[] getPkgNameForUid(int uid) throws android.os.RemoteException; public int getUidForPkgName(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; // ApplicationInfo - public java.util.List getInstalledPkgs(int flags) throws android.os.RemoteException; /** @deprecated use {@link #getAppInfoForUser} instead */ + @Deprecated public github.tornaco.android.thanos.core.pm.AppInfo getAppInfo(java.lang.String pkgName) throws android.os.RemoteException; public java.lang.String[] getWhiteListPkgs() throws android.os.RemoteException; public boolean isPkgInWhiteList(java.lang.String pkg) throws android.os.RemoteException; @@ -3262,6 +2630,7 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager getDefaultImpl() public boolean isPkgSmartFreezeEnabled(github.tornaco.android.thanos.core.pm.Pkg pkgName) throws android.os.RemoteException; public java.util.List getSmartFreezePkgs() throws android.os.RemoteException; /** @deprecated use {@link #launchSmartFreezePkgForUser} instead */ + @Deprecated public void launchSmartFreezePkg(java.lang.String pkgName) throws android.os.RemoteException; public void setSmartFreezeScreenOffCheckEnabled(boolean enable) throws android.os.RemoteException; public boolean isSmartFreezeScreenOffCheckEnabled() throws android.os.RemoteException; @@ -3272,6 +2641,7 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager getDefaultImpl() public boolean deviceHasGms() throws android.os.RemoteException; public boolean verifyBillingState() throws android.os.RemoteException; /** @deprecated use {@link #launchSmartFreezePkgThenKillOriginForUser} instead */ + @Deprecated public void launchSmartFreezePkgThenKillOrigin(java.lang.String pkgName, java.lang.String origin) throws android.os.RemoteException; public boolean isProtectedWhitelistEnabled() throws android.os.RemoteException; public void setProtectedWhitelistEnabled(boolean enable) throws android.os.RemoteException; @@ -3304,7 +2674,6 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager getDefaultImpl() public boolean isEnablePackageOnLaunchRequestEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; public java.util.List getProviders(int userId, java.lang.String packageName) throws android.os.RemoteException; // Wrap api to skip permission check - public java.lang.String[] getPackagesForUid(int uid) throws android.os.RemoteException; public java.lang.String mayEnableAppOnStartActivityIntent(android.content.Intent intent, int userId) throws android.os.RemoteException; public boolean isEnablePkgOnLaunchByDefault() throws android.os.RemoteException; @@ -3321,4 +2690,39 @@ public static github.tornaco.android.thanos.core.pm.IPkgManager getDefaultImpl() public java.util.List getAllDisabledComponentsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException; public void setFreezeTipEnabled(boolean enable) throws android.os.RemoteException; public boolean isFreezeTipEnabled() throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/power/IPowerManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/power/IPowerManager.java index 0ea1bb0b2..d246e0b50 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/power/IPowerManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/power/IPowerManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/power/IPowerManager.aidl */ package github.tornaco.android.thanos.core.power; public interface IPowerManager extends android.os.IInterface @@ -77,8 +78,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.power.IPowerManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.power.IPowerManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -105,197 +106,167 @@ public static github.tornaco.android.thanos.core.power.IPowerManager asInterface @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_reboot: { - data.enforceInterface(descriptor); this.reboot(); reply.writeNoException(); - return true; + break; } case TRANSACTION_softReboot: { - data.enforceInterface(descriptor); this.softReboot(); reply.writeNoException(); - return true; + break; } case TRANSACTION_goToSleep: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); this.goToSleep(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setPowerSaveModeEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setPowerSaveModeEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPowerSaveModeEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isPowerSaveModeEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getSeenWakeLocks: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); java.util.List _result = this.getSeenWakeLocks(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getSeenWakeLocksForPkg: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); java.util.List _result = this.getSeenWakeLocksForPkg(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getSeenWakeLocksStats: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); boolean _arg1; _arg1 = (0!=data.readInt()); java.util.List _result = this.getSeenWakeLocksStats(_arg0, _arg1); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_isWakeLockHeld: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.power.SeenWakeLock _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); boolean _result = this.isWakeLockHeld(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_dump: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IPrinter _arg0; _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); this.dump(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_wakeUp: { - data.enforceInterface(descriptor); long _arg0; _arg0 = data.readLong(); this.wakeUp(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setBrightness: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.setBrightness(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getBrightness: { - data.enforceInterface(descriptor); int _result = this.getBrightness(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_setAutoBrightnessEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setAutoBrightnessEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isAutoBrightnessEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isAutoBrightnessEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isWakeLockBlockerEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isWakeLockBlockerEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setWakeLockBlockerEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setWakeLockBlockerEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_setBlockWakeLock: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.power.SeenWakeLock _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setBlockWakeLock(_arg0, _arg1); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.power.IPowerManager { @@ -319,10 +290,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_reboot, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().reboot(); - return; - } _reply.readException(); } finally { @@ -337,10 +304,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_softReboot, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().softReboot(); - return; - } _reply.readException(); } finally { @@ -356,10 +319,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(delay); boolean _status = mRemote.transact(Stub.TRANSACTION_goToSleep, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().goToSleep(delay); - return; - } _reply.readException(); } finally { @@ -375,10 +334,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPowerSaveModeEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPowerSaveModeEnabled(enable); - return; - } _reply.readException(); } finally { @@ -394,9 +349,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isPowerSaveModeEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPowerSaveModeEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -415,9 +367,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((includeHistory)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getSeenWakeLocks, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSeenWakeLocks(includeHistory); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); } @@ -434,18 +383,9 @@ public java.lang.String getInterfaceDescriptor() java.util.List _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(((includeHistory)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getSeenWakeLocksForPkg, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSeenWakeLocksForPkg(pkg, includeHistory); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); } @@ -465,9 +405,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(((includeHistory)?(1):(0))); _data.writeInt(((heldOnly)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getSeenWakeLocksStats, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSeenWakeLocksStats(includeHistory, heldOnly); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.power.WakeLockStats.CREATOR); } @@ -484,17 +421,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((wakelock!=null)) { - _data.writeInt(1); - wakelock.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, wakelock, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_isWakeLockHeld, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isWakeLockHeld(wakelock); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -510,12 +438,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((p!=null))?(p.asBinder()):(null))); + _data.writeStrongInterface(p); boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().dump(p); - return; - } _reply.readException(); } finally { @@ -531,10 +455,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeLong(delay); boolean _status = mRemote.transact(Stub.TRANSACTION_wakeUp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().wakeUp(delay); - return; - } _reply.readException(); } finally { @@ -550,10 +470,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(level); boolean _status = mRemote.transact(Stub.TRANSACTION_setBrightness, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBrightness(level); - return; - } _reply.readException(); } finally { @@ -569,9 +485,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getBrightness, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getBrightness(); - } _reply.readException(); _result = _reply.readInt(); } @@ -589,10 +502,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setAutoBrightnessEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setAutoBrightnessEnabled(enable); - return; - } _reply.readException(); } finally { @@ -608,9 +517,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isAutoBrightnessEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isAutoBrightnessEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -628,9 +534,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isWakeLockBlockerEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isWakeLockBlockerEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -648,10 +551,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setWakeLockBlockerEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setWakeLockBlockerEnabled(enable); - return; - } _reply.readException(); } finally { @@ -665,19 +564,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((wl!=null)) { - _data.writeInt(1); - wl.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, wl, 0); _data.writeInt(((block)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockWakeLock, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setBlockWakeLock(wl, block); - return; - } _reply.readException(); } finally { @@ -685,7 +574,6 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.power.IPowerManager sDefaultImpl; } static final int TRANSACTION_reboot = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_softReboot = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -705,23 +593,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_isWakeLockBlockerEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); static final int TRANSACTION_setWakeLockBlockerEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); static final int TRANSACTION_setBlockWakeLock = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.power.IPowerManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.power.IPowerManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.power.IPowerManager"; public void reboot() throws android.os.RemoteException; public void softReboot() throws android.os.RemoteException; public void goToSleep(long delay) throws android.os.RemoteException; @@ -740,4 +614,39 @@ public static github.tornaco.android.thanos.core.power.IPowerManager getDefaultI public boolean isWakeLockBlockerEnabled() throws android.os.RemoteException; public void setWakeLockBlockerEnabled(boolean enable) throws android.os.RemoteException; public void setBlockWakeLock(github.tornaco.android.thanos.core.power.SeenWakeLock wl, boolean block) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefChangeListener.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefChangeListener.java index f76a24df4..7ba45335c 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefChangeListener.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefChangeListener.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefChangeListener.aidl */ package github.tornaco.android.thanos.core.pref; public interface IPrefChangeListener extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.pref.IPrefChangeListener { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pref.IPrefChangeListener"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,27 +47,29 @@ public static github.tornaco.android.thanos.core.pref.IPrefChangeListener asInte @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onPrefChanged: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.onPrefChanged(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.pref.IPrefChangeListener { @@ -91,10 +94,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(key); boolean _status = mRemote.transact(Stub.TRANSACTION_onPrefChanged, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onPrefChanged(key); - return; - } _reply.readException(); } finally { @@ -102,25 +101,10 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.pref.IPrefChangeListener sDefaultImpl; } static final int TRANSACTION_onPrefChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.pref.IPrefChangeListener impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.pref.IPrefChangeListener getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pref.IPrefChangeListener"; public void onPrefChanged(java.lang.String key) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefManager.java index f89388d67..c7fdd698f 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefManager.aidl */ package github.tornaco.android.thanos.core.pref; public interface IPrefManager extends android.os.IInterface @@ -55,8 +56,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.pref.IPrefManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pref.IPrefManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -83,16 +84,17 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_putInt: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; @@ -100,11 +102,10 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a boolean _result = this.putInt(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getInt: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; @@ -112,11 +113,10 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a int _result = this.getInt(_arg0, _arg1); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_putString: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -124,11 +124,10 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a boolean _result = this.putString(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getString: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -136,11 +135,10 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a java.lang.String _result = this.getString(_arg0, _arg1); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_putBoolean: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; @@ -148,11 +146,10 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a boolean _result = this.putBoolean(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getBoolean: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; @@ -160,11 +157,10 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a boolean _result = this.getBoolean(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_putLong: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); long _arg1; @@ -172,11 +168,10 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a boolean _result = this.putLong(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getLong: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); long _arg1; @@ -184,33 +179,32 @@ public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(a long _result = this.getLong(_arg0, _arg1); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_registerSettingsChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pref.IPrefChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.pref.IPrefChangeListener.Stub.asInterface(data.readStrongBinder()); boolean _result = this.registerSettingsChangeListener(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_unRegisterSettingsChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pref.IPrefChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.pref.IPrefChangeListener.Stub.asInterface(data.readStrongBinder()); boolean _result = this.unRegisterSettingsChangeListener(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.pref.IPrefManager { @@ -237,9 +231,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeInt(value); boolean _status = mRemote.transact(Stub.TRANSACTION_putInt, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().putInt(key, value); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -259,9 +250,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeInt(def); boolean _status = mRemote.transact(Stub.TRANSACTION_getInt, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getInt(key, def); - } _reply.readException(); _result = _reply.readInt(); } @@ -281,9 +269,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeString(value); boolean _status = mRemote.transact(Stub.TRANSACTION_putString, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().putString(key, value); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -303,9 +288,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeString(def); boolean _status = mRemote.transact(Stub.TRANSACTION_getString, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getString(key, def); - } _reply.readException(); _result = _reply.readString(); } @@ -325,9 +307,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeInt(((value)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_putBoolean, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().putBoolean(key, value); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -347,9 +326,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeInt(((def)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_getBoolean, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getBoolean(key, def); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -369,9 +345,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeLong(value); boolean _status = mRemote.transact(Stub.TRANSACTION_putLong, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().putLong(key, value); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -391,9 +364,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(key); _data.writeLong(def); boolean _status = mRemote.transact(Stub.TRANSACTION_getLong, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLong(key, def); - } _reply.readException(); _result = _reply.readLong(); } @@ -410,11 +380,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_registerSettingsChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().registerSettingsChangeListener(listener); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -431,11 +398,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterSettingsChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().unRegisterSettingsChangeListener(listener); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -445,7 +409,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.pref.IPrefManager sDefaultImpl; } static final int TRANSACTION_putInt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getInt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -457,23 +420,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_getLong = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_registerSettingsChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_unRegisterSettingsChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.pref.IPrefManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.pref.IPrefManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.pref.IPrefManager"; public boolean putInt(java.lang.String key, int value) throws android.os.RemoteException; public int getInt(java.lang.String key, int def) throws android.os.RemoteException; public boolean putString(java.lang.String key, java.lang.String value) throws android.os.RemoteException; diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/ILogSink.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/ILogSink.java index 107549132..68e03d68e 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/ILogSink.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/ILogSink.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/ILogSink.aidl */ package github.tornaco.android.thanos.core.profile; public interface ILogSink extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.profile.ILogSink { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.ILogSink"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,26 +47,28 @@ public static github.tornaco.android.thanos.core.profile.ILogSink asInterface(an @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_log: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.log(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.profile.ILogSink { @@ -89,34 +92,15 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(message); boolean _status = mRemote.transact(Stub.TRANSACTION_log, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().log(message); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.profile.ILogSink sDefaultImpl; } static final int TRANSACTION_log = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.profile.ILogSink impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.profile.ILogSink getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.ILogSink"; public void log(java.lang.String message) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IProfileManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IProfileManager.java index b144fd0f5..acdb04153 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IProfileManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IProfileManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IProfileManager.aidl */ package github.tornaco.android.thanos.core.profile; public interface IProfileManager extends android.os.IInterface @@ -203,7 +204,6 @@ public static class Default implements github.tornaco.android.thanos.core.profil return null; } // Engines. - @Override public void addAlarmEngine(github.tornaco.android.thanos.core.alarm.Alarm alarm) throws android.os.RemoteException { } @@ -218,7 +218,6 @@ public static class Default implements github.tornaco.android.thanos.core.profil { } // Danmu API - @Override public void setDanmuUISettings(github.tornaco.android.thanos.core.profile.DanmuUISettings settings) throws android.os.RemoteException { } @@ -234,8 +233,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.profile.IProfileManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IProfileManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -262,33 +261,32 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_setAutoApplyForNewInstalledAppsEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setAutoApplyForNewInstalledAppsEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isAutoApplyForNewInstalledAppsEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isAutoApplyForNewInstalledAppsEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_addRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; @@ -301,60 +299,54 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter _arg4 = data.readInt(); this.addRule(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); - return true; + break; } case TRANSACTION_deleteRule: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.deleteRule(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_enableRule: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.enableRule(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_disableRule: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.disableRule(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isRuleEnabled: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.isRuleEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isRuleExists: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.isRuleExists(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkRule: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.profile.IRuleCheckCallback _arg1; @@ -363,44 +355,39 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter _arg2 = data.readInt(); this.checkRule(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllRules: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.RuleInfo[] _result = this.getAllRules(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - return true; + break; } case TRANSACTION_getEnabledRules: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.RuleInfo[] _result = this.getEnabledRules(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - return true; + break; } case TRANSACTION_setProfileEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setProfileEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isProfileEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isProfileEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_addGlobalRuleVar: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String[] _arg1; @@ -408,11 +395,10 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter boolean _result = this.addGlobalRuleVar(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_appendGlobalRuleVar: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String[] _arg1; @@ -420,201 +406,156 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter boolean _result = this.appendGlobalRuleVar(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_removeGlobalRuleVar: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.removeGlobalRuleVar(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getAllGlobalRuleVarNames: { - data.enforceInterface(descriptor); java.lang.String[] _result = this.getAllGlobalRuleVarNames(); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_getGlobalRuleVarByName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String[] _result = this.getGlobalRuleVarByName(_arg0); reply.writeNoException(); reply.writeStringArray(_result); - return true; + break; } case TRANSACTION_getAllGlobalRuleVar: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.GlobalVar[] _result = this.getAllGlobalRuleVar(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - return true; + break; } case TRANSACTION_isGlobalRuleVarByNameExists: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isGlobalRuleVarByNameExists(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setProfileEngineUiAutomationEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setProfileEngineUiAutomationEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isProfileEngineUiAutomationEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isProfileEngineUiAutomationEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setProfileEnginePushEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setProfileEnginePushEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isProfileEnginePushEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isProfileEnginePushEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setShellSuSupportInstalled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setShellSuSupportInstalled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isShellSuSupportInstalled: { - data.enforceInterface(descriptor); boolean _result = this.isShellSuSupportInstalled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_addConfigTemplate: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.ConfigTemplate _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); boolean _result = this.addConfigTemplate(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_deleteConfigTemplate: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.ConfigTemplate _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); boolean _result = this.deleteConfigTemplate(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getAllConfigTemplates: { - data.enforceInterface(descriptor); java.util.List _result = this.getAllConfigTemplates(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getConfigTemplateById: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.profile.ConfigTemplate _result = this.getConfigTemplateById(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_setAutoConfigTemplateSelection: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.setAutoConfigTemplateSelection(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAutoConfigTemplateSelectionId: { - data.enforceInterface(descriptor); java.lang.String _result = this.getAutoConfigTemplateSelectionId(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_applyConfigTemplateForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); github.tornaco.android.thanos.core.profile.ConfigTemplate _arg1; - if ((0!=data.readInt())) { - _arg1 = github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR.createFromParcel(data); - } - else { - _arg1 = null; - } + _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); boolean _result = this.applyConfigTemplateForPackage(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_addRuleIfNotExists: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; @@ -627,11 +568,10 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter _arg4 = data.readInt(); this.addRuleIfNotExists(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); - return true; + break; } case TRANSACTION_publishStringFact: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; @@ -642,11 +582,10 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter _arg3 = data.createStringArray(); this.publishStringFact(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - return true; + break; } case TRANSACTION_updateRule: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; @@ -657,280 +596,207 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager asInter _arg3 = data.readInt(); this.updateRule(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - return true; + break; } case TRANSACTION_registerRuleChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.IRuleChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.profile.IRuleChangeListener.Stub.asInterface(data.readStrongBinder()); this.registerRuleChangeListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterRuleChangeListener: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.IRuleChangeListener _arg0; _arg0 = github.tornaco.android.thanos.core.profile.IRuleChangeListener.Stub.asInterface(data.readStrongBinder()); this.unRegisterRuleChangeListener(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getRuleById: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); github.tornaco.android.thanos.core.profile.RuleInfo _result = this.getRuleById(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_enableRuleByName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.enableRuleByName(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_disableRuleByName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.disableRuleByName(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_dump: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IPrinter _arg0; _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); this.dump(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getLogFD: { - data.enforceInterface(descriptor); android.os.ParcelFileDescriptor _result = this.getLogFD(); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getLogPath: { - data.enforceInterface(descriptor); java.lang.String _result = this.getLogPath(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_clearLogs: { - data.enforceInterface(descriptor); this.clearLogs(); reply.writeNoException(); - return true; + break; } case TRANSACTION_setLogEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setLogEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isLogEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isLogEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_executeAction: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.executeAction(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_addConsoleLogSink: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.ILogSink _arg0; _arg0 = github.tornaco.android.thanos.core.profile.ILogSink.Stub.asInterface(data.readStrongBinder()); this.addConsoleLogSink(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_removeConsoleLogSink: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.ILogSink _arg0; _arg0 = github.tornaco.android.thanos.core.profile.ILogSink.Stub.asInterface(data.readStrongBinder()); this.removeConsoleLogSink(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_parseRuleOrNull: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); github.tornaco.android.thanos.core.profile.RuleInfo _result = this.parseRuleOrNull(_arg0, _arg1); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getRuleByName: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.profile.RuleInfo _result = this.getRuleByName(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_setCustomSuCommand: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.setCustomSuCommand(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getCustomSuCommand: { - data.enforceInterface(descriptor); java.lang.String _result = this.getCustomSuCommand(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_addAlarmEngine: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.alarm.Alarm _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.alarm.Alarm.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.alarm.Alarm.CREATOR); this.addAlarmEngine(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_removeAlarmEngine: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.alarm.Alarm _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.alarm.Alarm.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.alarm.Alarm.CREATOR); this.removeAlarmEngine(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getAllAlarms: { - data.enforceInterface(descriptor); java.util.List _result = this.getAllAlarms(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_setAlarmEnabled: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.alarm.Alarm _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.alarm.Alarm.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.alarm.Alarm.CREATOR); boolean _arg1; _arg1 = (0!=data.readInt()); this.setAlarmEnabled(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_setDanmuUISettings: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.DanmuUISettings _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.profile.DanmuUISettings.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.DanmuUISettings.CREATOR); this.setDanmuUISettings(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getDanmuUISettings: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.DanmuUISettings _result = this.getDanmuUISettings(); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.profile.IProfileManager { @@ -955,10 +821,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setAutoApplyForNewInstalledAppsEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setAutoApplyForNewInstalledAppsEnabled(enable); - return; - } _reply.readException(); } finally { @@ -974,9 +836,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isAutoApplyForNewInstalledAppsEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isAutoApplyForNewInstalledAppsEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -995,13 +854,9 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(author); _data.writeInt(versionCode); _data.writeString(ruleJson); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); _data.writeInt(format); boolean _status = mRemote.transact(Stub.TRANSACTION_addRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addRule(author, versionCode, ruleJson, callback, format); - return; - } _reply.readException(); } finally { @@ -1017,10 +872,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_deleteRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().deleteRule(ruleId); - return; - } _reply.readException(); } finally { @@ -1037,9 +888,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_enableRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().enableRule(ruleId); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1058,9 +906,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_disableRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().disableRule(ruleId); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1079,9 +924,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_isRuleEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isRuleEnabled(ruleId); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1100,9 +942,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_isRuleExists, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isRuleExists(ruleId); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1119,13 +958,9 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(ruleJson); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); _data.writeInt(format); boolean _status = mRemote.transact(Stub.TRANSACTION_checkRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().checkRule(ruleJson, callback, format); - return; - } _reply.readException(); } finally { @@ -1141,9 +976,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllRules, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllRules(); - } _reply.readException(); _result = _reply.createTypedArray(github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); } @@ -1161,9 +993,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getEnabledRules, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getEnabledRules(); - } _reply.readException(); _result = _reply.createTypedArray(github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); } @@ -1181,10 +1010,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setProfileEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setProfileEnabled(enable); - return; - } _reply.readException(); } finally { @@ -1200,9 +1025,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isProfileEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isProfileEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1222,9 +1044,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(varName); _data.writeStringArray(varArray); boolean _status = mRemote.transact(Stub.TRANSACTION_addGlobalRuleVar, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().addGlobalRuleVar(varName, varArray); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1244,9 +1063,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(varName); _data.writeStringArray(varArray); boolean _status = mRemote.transact(Stub.TRANSACTION_appendGlobalRuleVar, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().appendGlobalRuleVar(varName, varArray); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1265,9 +1081,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(varName); boolean _status = mRemote.transact(Stub.TRANSACTION_removeGlobalRuleVar, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().removeGlobalRuleVar(varName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1285,9 +1098,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllGlobalRuleVarNames, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllGlobalRuleVarNames(); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -1306,9 +1116,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(varName); boolean _status = mRemote.transact(Stub.TRANSACTION_getGlobalRuleVarByName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getGlobalRuleVarByName(varName); - } _reply.readException(); _result = _reply.createStringArray(); } @@ -1326,9 +1133,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllGlobalRuleVar, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllGlobalRuleVar(); - } _reply.readException(); _result = _reply.createTypedArray(github.tornaco.android.thanos.core.profile.GlobalVar.CREATOR); } @@ -1347,9 +1151,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(varName); boolean _status = mRemote.transact(Stub.TRANSACTION_isGlobalRuleVarByNameExists, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isGlobalRuleVarByNameExists(varName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1367,10 +1168,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setProfileEngineUiAutomationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setProfileEngineUiAutomationEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -1386,9 +1183,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isProfileEngineUiAutomationEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isProfileEngineUiAutomationEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1406,10 +1200,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setProfileEnginePushEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setProfileEnginePushEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -1425,9 +1215,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isProfileEnginePushEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isProfileEnginePushEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1445,10 +1232,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setShellSuSupportInstalled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setShellSuSupportInstalled(enable); - return; - } _reply.readException(); } finally { @@ -1464,9 +1247,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isShellSuSupportInstalled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isShellSuSupportInstalled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1483,17 +1263,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((template!=null)) { - _data.writeInt(1); - template.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, template, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_addConfigTemplate, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().addConfigTemplate(template); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1510,17 +1281,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((template!=null)) { - _data.writeInt(1); - template.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, template, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_deleteConfigTemplate, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().deleteConfigTemplate(template); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1538,9 +1300,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllConfigTemplates, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllConfigTemplates(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); } @@ -1559,16 +1318,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_getConfigTemplateById, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getConfigTemplateById(id); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); } finally { _reply.recycle(); @@ -1584,10 +1335,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_setAutoConfigTemplateSelection, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setAutoConfigTemplateSelection(id); - return; - } _reply.readException(); } finally { @@ -1603,9 +1350,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAutoConfigTemplateSelectionId, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAutoConfigTemplateSelectionId(); - } _reply.readException(); _result = _reply.readString(); } @@ -1622,24 +1366,9 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } - if ((template!=null)) { - _data.writeInt(1); - template.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); + _Parcel.writeTypedObject(_data, template, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_applyConfigTemplateForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().applyConfigTemplateForPackage(pkg, template); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1658,13 +1387,9 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(author); _data.writeInt(versionCode); _data.writeString(ruleJson); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); _data.writeInt(format); boolean _status = mRemote.transact(Stub.TRANSACTION_addRuleIfNotExists, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addRuleIfNotExists(author, versionCode, ruleJson, callback, format); - return; - } _reply.readException(); } finally { @@ -1683,10 +1408,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeLong(delayMills); _data.writeStringArray(args); boolean _status = mRemote.transact(Stub.TRANSACTION_publishStringFact, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().publishStringFact(source, factValue, delayMills, args); - return; - } _reply.readException(); } finally { @@ -1702,13 +1423,9 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); _data.writeString(ruleJson); - _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); + _data.writeStrongInterface(callback); _data.writeInt(format); boolean _status = mRemote.transact(Stub.TRANSACTION_updateRule, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().updateRule(ruleId, ruleJson, callback, format); - return; - } _reply.readException(); } finally { @@ -1722,12 +1439,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_registerRuleChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerRuleChangeListener(listener); - return; - } _reply.readException(); } finally { @@ -1741,12 +1454,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); + _data.writeStrongInterface(listener); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterRuleChangeListener, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterRuleChangeListener(listener); - return; - } _reply.readException(); } finally { @@ -1763,16 +1472,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_getRuleById, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRuleById(ruleId); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); } finally { _reply.recycle(); @@ -1789,9 +1490,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(ruleName); boolean _status = mRemote.transact(Stub.TRANSACTION_enableRuleByName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().enableRuleByName(ruleName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1810,9 +1508,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(ruleName); boolean _status = mRemote.transact(Stub.TRANSACTION_disableRuleByName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().disableRuleByName(ruleName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1828,12 +1523,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((p!=null))?(p.asBinder()):(null))); + _data.writeStrongInterface(p); boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().dump(p); - return; - } _reply.readException(); } finally { @@ -1849,16 +1540,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getLogFD, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLogFD(); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = android.os.ParcelFileDescriptor.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, android.os.ParcelFileDescriptor.CREATOR); } finally { _reply.recycle(); @@ -1874,9 +1557,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getLogPath, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getLogPath(); - } _reply.readException(); _result = _reply.readString(); } @@ -1893,10 +1573,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_clearLogs, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().clearLogs(); - return; - } _reply.readException(); } finally { @@ -1912,10 +1588,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setLogEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setLogEnabled(enable); - return; - } _reply.readException(); } finally { @@ -1931,9 +1603,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isLogEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isLogEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1951,10 +1620,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(action); boolean _status = mRemote.transact(Stub.TRANSACTION_executeAction, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().executeAction(action); - return; - } _reply.readException(); } finally { @@ -1968,12 +1633,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((sink!=null))?(sink.asBinder()):(null))); + _data.writeStrongInterface(sink); boolean _status = mRemote.transact(Stub.TRANSACTION_addConsoleLogSink, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addConsoleLogSink(sink); - return; - } _reply.readException(); } finally { @@ -1987,12 +1648,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((sink!=null))?(sink.asBinder()):(null))); + _data.writeStrongInterface(sink); boolean _status = mRemote.transact(Stub.TRANSACTION_removeConsoleLogSink, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removeConsoleLogSink(sink); - return; - } _reply.readException(); } finally { @@ -2010,16 +1667,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(ruleString); _data.writeInt(format); boolean _status = mRemote.transact(Stub.TRANSACTION_parseRuleOrNull, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().parseRuleOrNull(ruleString, format); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); } finally { _reply.recycle(); @@ -2036,16 +1685,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(ruleName); boolean _status = mRemote.transact(Stub.TRANSACTION_getRuleByName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getRuleByName(ruleName); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); } finally { _reply.recycle(); @@ -2061,10 +1702,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(command); boolean _status = mRemote.transact(Stub.TRANSACTION_setCustomSuCommand, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setCustomSuCommand(command); - return; - } _reply.readException(); } finally { @@ -2080,9 +1717,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getCustomSuCommand, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getCustomSuCommand(); - } _reply.readException(); _result = _reply.readString(); } @@ -2093,25 +1727,14 @@ public java.lang.String getInterfaceDescriptor() return _result; } // Engines. - @Override public void addAlarmEngine(github.tornaco.android.thanos.core.alarm.Alarm alarm) 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 ((alarm!=null)) { - _data.writeInt(1); - alarm.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, alarm, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_addAlarmEngine, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().addAlarmEngine(alarm); - return; - } _reply.readException(); } finally { @@ -2125,18 +1748,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((alarm!=null)) { - _data.writeInt(1); - alarm.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, alarm, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_removeAlarmEngine, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().removeAlarmEngine(alarm); - return; - } _reply.readException(); } finally { @@ -2152,9 +1765,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllAlarms, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllAlarms(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.alarm.AlarmRecord.CREATOR); } @@ -2170,19 +1780,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((alarm!=null)) { - _data.writeInt(1); - alarm.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, alarm, 0); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setAlarmEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setAlarmEnabled(alarm, enabled); - return; - } _reply.readException(); } finally { @@ -2191,25 +1791,14 @@ public java.lang.String getInterfaceDescriptor() } } // Danmu API - @Override public void setDanmuUISettings(github.tornaco.android.thanos.core.profile.DanmuUISettings settings) 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 ((settings!=null)) { - _data.writeInt(1); - settings.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, settings, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_setDanmuUISettings, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setDanmuUISettings(settings); - return; - } _reply.readException(); } finally { @@ -2225,16 +1814,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getDanmuUISettings, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getDanmuUISettings(); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.profile.DanmuUISettings.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.DanmuUISettings.CREATOR); } finally { _reply.recycle(); @@ -2242,7 +1823,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.profile.IProfileManager sDefaultImpl; } static final int TRANSACTION_setAutoApplyForNewInstalledAppsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_isAutoApplyForNewInstalledAppsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -2304,23 +1884,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_setAlarmEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 57); static final int TRANSACTION_setDanmuUISettings = (android.os.IBinder.FIRST_CALL_TRANSACTION + 58); static final int TRANSACTION_getDanmuUISettings = (android.os.IBinder.FIRST_CALL_TRANSACTION + 59); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.profile.IProfileManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.profile.IProfileManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IProfileManager"; public void setAutoApplyForNewInstalledAppsEnabled(boolean enable) throws android.os.RemoteException; public boolean isAutoApplyForNewInstalledAppsEnabled() throws android.os.RemoteException; public void addRule(java.lang.String author, int versionCode, java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleAddCallback callback, int format) throws android.os.RemoteException; @@ -2376,13 +1942,46 @@ public static github.tornaco.android.thanos.core.profile.IProfileManager getDefa public void setCustomSuCommand(java.lang.String command) throws android.os.RemoteException; public java.lang.String getCustomSuCommand() throws android.os.RemoteException; // Engines. - public void addAlarmEngine(github.tornaco.android.thanos.core.alarm.Alarm alarm) throws android.os.RemoteException; public void removeAlarmEngine(github.tornaco.android.thanos.core.alarm.Alarm alarm) throws android.os.RemoteException; public java.util.List getAllAlarms() throws android.os.RemoteException; public void setAlarmEnabled(github.tornaco.android.thanos.core.alarm.Alarm alarm, boolean enabled) throws android.os.RemoteException; // Danmu API - public void setDanmuUISettings(github.tornaco.android.thanos.core.profile.DanmuUISettings settings) throws android.os.RemoteException; public github.tornaco.android.thanos.core.profile.DanmuUISettings getDanmuUISettings() throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleAddCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleAddCallback.java index 2df099a95..90cf20e0a 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleAddCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleAddCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleAddCallback.aidl */ package github.tornaco.android.thanos.core.profile; public interface IRuleAddCallback extends android.os.IInterface @@ -21,8 +22,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.profile.IRuleAddCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IRuleAddCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -49,34 +50,35 @@ public static github.tornaco.android.thanos.core.profile.IRuleAddCallback asInte @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onRuleAddSuccess: { - data.enforceInterface(descriptor); this.onRuleAddSuccess(); - return true; + break; } case TRANSACTION_onRuleAddFail: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); this.onRuleAddFail(_arg0, _arg1); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.profile.IRuleAddCallback { @@ -99,10 +101,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleAddSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRuleAddSuccess(); - return; - } } finally { _data.recycle(); @@ -116,36 +114,17 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(errorCode); _data.writeString(errorMessage); boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleAddFail, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRuleAddFail(errorCode, errorMessage); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.profile.IRuleAddCallback sDefaultImpl; } static final int TRANSACTION_onRuleAddSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onRuleAddFail = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.profile.IRuleAddCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.profile.IRuleAddCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IRuleAddCallback"; public void onRuleAddSuccess() throws android.os.RemoteException; public void onRuleAddFail(int errorCode, java.lang.String errorMessage) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleChangeListener.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleChangeListener.java index 591807cc9..6cd0c07d0 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleChangeListener.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleChangeListener.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleChangeListener.aidl */ package github.tornaco.android.thanos.core.profile; public interface IRuleChangeListener extends android.os.IInterface @@ -27,8 +28,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.profile.IRuleChangeListener { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IRuleChangeListener"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -55,52 +56,51 @@ public static github.tornaco.android.thanos.core.profile.IRuleChangeListener asI @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onRuleEnabledStateChanged: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); this.onRuleEnabledStateChanged(_arg0, _arg1); - return true; + break; } case TRANSACTION_onRuleUpdated: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.onRuleUpdated(_arg0); - return true; + break; } case TRANSACTION_onRuleRemoved: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.onRuleRemoved(_arg0); - return true; + break; } case TRANSACTION_onRuleAdd: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.onRuleAdd(_arg0); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.profile.IRuleChangeListener { @@ -125,10 +125,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(ruleId); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleEnabledStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRuleEnabledStateChanged(ruleId, enabled); - return; - } } finally { _data.recycle(); @@ -141,10 +137,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleUpdated, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRuleUpdated(ruleId); - return; - } } finally { _data.recycle(); @@ -157,10 +149,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRuleRemoved(ruleId); - return; - } } finally { _data.recycle(); @@ -173,38 +161,19 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(ruleId); boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleAdd, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onRuleAdd(ruleId); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.profile.IRuleChangeListener sDefaultImpl; } static final int TRANSACTION_onRuleEnabledStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onRuleUpdated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onRuleRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_onRuleAdd = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.profile.IRuleChangeListener impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.profile.IRuleChangeListener getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IRuleChangeListener"; public void onRuleEnabledStateChanged(int ruleId, boolean enabled) throws android.os.RemoteException; public void onRuleUpdated(int ruleId) throws android.os.RemoteException; public void onRuleRemoved(int ruleId) throws android.os.RemoteException; diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleCheckCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleCheckCallback.java index 25c0fad88..948f6db6e 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleCheckCallback.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleCheckCallback.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleCheckCallback.aidl */ package github.tornaco.android.thanos.core.profile; public interface IRuleCheckCallback extends android.os.IInterface @@ -21,8 +22,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.profile.IRuleCheckCallback { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IRuleCheckCallback"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -49,41 +50,37 @@ public static github.tornaco.android.thanos.core.profile.IRuleCheckCallback asIn @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onValid: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.profile.RuleInfo _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); this.onValid(_arg0); - return true; + break; } case TRANSACTION_onInvalid: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); this.onInvalid(_arg0, _arg1); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.profile.IRuleCheckCallback { @@ -105,18 +102,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((rule!=null)) { - _data.writeInt(1); - rule.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, rule, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onValid, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onValid(rule); - return; - } } finally { _data.recycle(); @@ -130,36 +117,38 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(errorCode); _data.writeString(errorMessage); boolean _status = mRemote.transact(Stub.TRANSACTION_onInvalid, _data, null, android.os.IBinder.FLAG_ONEWAY); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onInvalid(errorCode, errorMessage); - return; - } } finally { _data.recycle(); } } - public static github.tornaco.android.thanos.core.profile.IRuleCheckCallback sDefaultImpl; } static final int TRANSACTION_onValid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onInvalid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.profile.IRuleCheckCallback impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.profile.IRuleCheckCallback"; + public void onValid(github.tornaco.android.thanos.core.profile.RuleInfo rule) throws android.os.RemoteException; + public void onInvalid(int errorCode, java.lang.String errorMessage) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.profile.IRuleCheckCallback getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public void onValid(github.tornaco.android.thanos.core.profile.RuleInfo rule) throws android.os.RemoteException; - public void onInvalid(int errorCode, java.lang.String errorMessage) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IChannelHandler.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IChannelHandler.java index 4cdf71877..628748a81 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IChannelHandler.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IChannelHandler.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IChannelHandler.aidl */ package github.tornaco.android.thanos.core.push; public interface IChannelHandler extends android.os.IInterface @@ -18,8 +19,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.push.IChannelHandler { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.push.IChannelHandler"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -46,32 +47,29 @@ public static github.tornaco.android.thanos.core.push.IChannelHandler asInterfac @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_onMessageArrive: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); this.onMessageArrive(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.push.IChannelHandler { @@ -94,18 +92,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_onMessageArrive, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onMessageArrive(intent); - return; - } _reply.readException(); } finally { @@ -113,25 +101,31 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.push.IChannelHandler sDefaultImpl; } static final int TRANSACTION_onMessageArrive = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.push.IChannelHandler impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.push.IChannelHandler"; + public void onMessageArrive(android.content.Intent intent) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.push.IChannelHandler getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public void onMessageArrive(android.content.Intent intent) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IPushManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IPushManager.java index 8696ac46c..c6a0eec86 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IPushManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IPushManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IPushManager.aidl */ package github.tornaco.android.thanos.core.push; public interface IPushManager extends android.os.IInterface @@ -27,8 +28,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.push.IPushManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.push.IPushManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -55,66 +56,55 @@ public static github.tornaco.android.thanos.core.push.IPushManager asInterface(a @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_registerChannel: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.push.PushChannel _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.push.PushChannel.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.push.PushChannel.CREATOR); this.registerChannel(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterChannel: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.push.PushChannel _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.push.PushChannel.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.push.PushChannel.CREATOR); this.unRegisterChannel(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_registerChannelHandler: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.push.IChannelHandler _arg1; _arg1 = github.tornaco.android.thanos.core.push.IChannelHandler.Stub.asInterface(data.readStrongBinder()); this.registerChannelHandler(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_unRegisterChannelHandler: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.push.IChannelHandler _arg0; _arg0 = github.tornaco.android.thanos.core.push.IChannelHandler.Stub.asInterface(data.readStrongBinder()); this.unRegisterChannelHandler(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.push.IPushManager { @@ -137,18 +127,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((channel!=null)) { - _data.writeInt(1); - channel.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, channel, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_registerChannel, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerChannel(channel); - return; - } _reply.readException(); } finally { @@ -162,18 +142,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((channel!=null)) { - _data.writeInt(1); - channel.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, channel, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterChannel, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterChannel(channel); - return; - } _reply.readException(); } finally { @@ -188,12 +158,8 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(channelId); - _data.writeStrongBinder((((handler!=null))?(handler.asBinder()):(null))); + _data.writeStrongInterface(handler); boolean _status = mRemote.transact(Stub.TRANSACTION_registerChannelHandler, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().registerChannelHandler(channelId, handler); - return; - } _reply.readException(); } finally { @@ -207,12 +173,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((handler!=null))?(handler.asBinder()):(null))); + _data.writeStrongInterface(handler); boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterChannelHandler, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().unRegisterChannelHandler(handler); - return; - } _reply.readException(); } finally { @@ -220,31 +182,37 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.push.IPushManager sDefaultImpl; } static final int TRANSACTION_registerChannel = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_unRegisterChannel = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_registerChannelHandler = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_unRegisterChannelHandler = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.push.IPushManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.push.IPushManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.push.IPushManager"; public void registerChannel(github.tornaco.android.thanos.core.push.PushChannel channel) throws android.os.RemoteException; public void unRegisterChannel(github.tornaco.android.thanos.core.push.PushChannel channel) throws android.os.RemoteException; public void registerChannelHandler(java.lang.String channelId, github.tornaco.android.thanos.core.push.IChannelHandler handler) throws android.os.RemoteException; public void unRegisterChannelHandler(github.tornaco.android.thanos.core.push.IChannelHandler handler) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/wechat/IPushDelegateManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/wechat/IPushDelegateManager.java index 34c99ac3e..9c8f4b22f 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/wechat/IPushDelegateManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/wechat/IPushDelegateManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/wechat/IPushDelegateManager.aidl */ package github.tornaco.android.thanos.core.push.wechat; public interface IPushDelegateManager extends android.os.IInterface @@ -68,8 +69,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -96,152 +97,135 @@ public static github.tornaco.android.thanos.core.push.wechat.IPushDelegateManage @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_wechatEnabled: { - data.enforceInterface(descriptor); boolean _result = this.wechatEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setWeChatEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setWeChatEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_wechatSoundEnabled: { - data.enforceInterface(descriptor); boolean _result = this.wechatSoundEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setWechatSoundEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setWechatSoundEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_wechatContentEnabled: { - data.enforceInterface(descriptor); boolean _result = this.wechatContentEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setWechatContentEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setWechatContentEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_wechatVibrateEnabled: { - data.enforceInterface(descriptor); boolean _result = this.wechatVibrateEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setWechatVibrateEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setWechatVibrateEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_mockWechatMessage: { - data.enforceInterface(descriptor); this.mockWechatMessage(); reply.writeNoException(); - return true; + break; } case TRANSACTION_startWechatOnPushEnabled: { - data.enforceInterface(descriptor); boolean _result = this.startWechatOnPushEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setStartWechatOnPushEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setStartWechatOnPushEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_skipIfWeChatAppRunningEnabled: { - data.enforceInterface(descriptor); boolean _result = this.skipIfWeChatAppRunningEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSkipIfWeChatAppRunningEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSkipIfWeChatAppRunningEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_shouldHookBroadcastPerformResult: { - data.enforceInterface(descriptor); boolean _result = this.shouldHookBroadcastPerformResult(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_onHookBroadcastPerformResult: { - data.enforceInterface(descriptor); android.content.Intent _arg0; - if ((0!=data.readInt())) { - _arg0 = android.content.Intent.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); int _arg1; _arg1 = data.readInt(); int _result = this.onHookBroadcastPerformResult(_arg0, _arg1); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager { @@ -266,9 +250,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_wechatEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().wechatEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -286,10 +267,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setWeChatEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setWeChatEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -305,9 +282,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_wechatSoundEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().wechatSoundEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -325,10 +299,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setWechatSoundEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setWechatSoundEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -344,9 +314,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_wechatContentEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().wechatContentEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -364,10 +331,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setWechatContentEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setWechatContentEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -383,9 +346,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_wechatVibrateEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().wechatVibrateEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -403,10 +363,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setWechatVibrateEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setWechatVibrateEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -421,10 +377,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_mockWechatMessage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().mockWechatMessage(); - return; - } _reply.readException(); } finally { @@ -440,9 +392,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_startWechatOnPushEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().startWechatOnPushEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -460,10 +409,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setStartWechatOnPushEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setStartWechatOnPushEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -479,9 +424,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_skipIfWeChatAppRunningEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().skipIfWeChatAppRunningEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -499,10 +441,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSkipIfWeChatAppRunningEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSkipIfWeChatAppRunningEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -518,9 +456,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_shouldHookBroadcastPerformResult, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().shouldHookBroadcastPerformResult(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -537,18 +472,9 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((intent!=null)) { - _data.writeInt(1); - intent.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, intent, 0); _data.writeInt(resultCode); boolean _status = mRemote.transact(Stub.TRANSACTION_onHookBroadcastPerformResult, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().onHookBroadcastPerformResult(intent, resultCode); - } _reply.readException(); _result = _reply.readInt(); } @@ -558,7 +484,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager sDefaultImpl; } static final int TRANSACTION_wechatEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_setWeChatEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -575,23 +500,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_setSkipIfWeChatAppRunningEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); static final int TRANSACTION_shouldHookBroadcastPerformResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); static final int TRANSACTION_onHookBroadcastPerformResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager"; public boolean wechatEnabled() throws android.os.RemoteException; public void setWeChatEnabled(boolean enabled) throws android.os.RemoteException; public boolean wechatSoundEnabled() throws android.os.RemoteException; @@ -607,4 +518,25 @@ public static github.tornaco.android.thanos.core.push.wechat.IPushDelegateManage public void setSkipIfWeChatAppRunningEnabled(boolean enabled) throws android.os.RemoteException; public boolean shouldHookBroadcastPerformResult() throws android.os.RemoteException; public int onHookBroadcastPerformResult(android.content.Intent intent, int resultCode) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/IPrivacyManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/IPrivacyManager.java index c3f927b17..be85380e0 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/IPrivacyManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/IPrivacyManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/IPrivacyManager.aidl */ package github.tornaco.android.thanos.core.secure; public interface IPrivacyManager extends android.os.IInterface @@ -154,8 +155,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.secure.IPrivacyManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.secure.IPrivacyManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -182,381 +183,316 @@ public static github.tornaco.android.thanos.core.secure.IPrivacyManager asInterf @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_isPrivacyEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isPrivacyEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPrivacyEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setPrivacyEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getPrivacyDataCheatPkgCount: { - data.enforceInterface(descriptor); int _result = this.getPrivacyDataCheatPkgCount(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getPrivacyDataCheatRequestCount: { - data.enforceInterface(descriptor); long _result = this.getPrivacyDataCheatRequestCount(); reply.writeNoException(); reply.writeLong(_result); - return true; + break; } case TRANSACTION_getOriginalDeviceId: { - data.enforceInterface(descriptor); java.lang.String _result = this.getOriginalDeviceId(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalLine1Number: { - data.enforceInterface(descriptor); java.lang.String _result = this.getOriginalLine1Number(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalSimSerialNumber: { - data.enforceInterface(descriptor); java.lang.String _result = this.getOriginalSimSerialNumber(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalAndroidId: { - data.enforceInterface(descriptor); java.lang.String _result = this.getOriginalAndroidId(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalImei: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.getOriginalImei(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalMeid: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.getOriginalMeid(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getPhoneCount: { - data.enforceInterface(descriptor); int _result = this.getPhoneCount(); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getAccessibleSubscriptionInfoList: { - data.enforceInterface(descriptor); android.telephony.SubscriptionInfo[] _result = this.getAccessibleSubscriptionInfoList(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - return true; + break; } case TRANSACTION_getPrivacyCheatRecords: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.secure.PrivacyCheatRecord[] _result = this.getPrivacyCheatRecords(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - return true; + break; } case TRANSACTION_clearPrivacyCheatRecords: { - data.enforceInterface(descriptor); this.clearPrivacyCheatRecords(); reply.writeNoException(); - return true; + break; } case TRANSACTION_addOrUpdateFieldsProfile: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.secure.field.Fields _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.secure.field.Fields.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); boolean _result = this.addOrUpdateFieldsProfile(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_deleteFieldsProfile: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.secure.field.Fields _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.secure.field.Fields.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); boolean _result = this.deleteFieldsProfile(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_deleteFieldsProfileById: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.deleteFieldsProfileById(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getAllFieldsProfiles: { - data.enforceInterface(descriptor); java.util.List _result = this.getAllFieldsProfiles(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_selectFieldsProfileForPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; _arg1 = data.readString(); this.selectFieldsProfileForPackage(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_getSelectedFieldsProfileIdForPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _result = this.getSelectedFieldsProfileIdForPackage(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getSelectedFieldsProfileForPackage: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); github.tornaco.android.thanos.core.secure.field.Fields _result = this.getSelectedFieldsProfileForPackage(_arg0, _arg1); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getFieldsProfileById: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); github.tornaco.android.thanos.core.secure.field.Fields _result = this.getFieldsProfileById(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_isUidFieldsProfileSelected: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.isUidFieldsProfileSelected(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_isPackageFieldsProfileSelected: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isPackageFieldsProfileSelected(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_getUsageForFieldsProfile: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); int _result = this.getUsageForFieldsProfile(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_getUsagePackagesForFieldsProfile: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getUsagePackagesForFieldsProfile(_arg0); reply.writeNoException(); reply.writeStringList(_result); - return true; + break; } case TRANSACTION_getOriginalSimCountryIso: { - data.enforceInterface(descriptor); java.lang.String _result = this.getOriginalSimCountryIso(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalSimOp: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.getOriginalSimOp(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalSimOpName: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.getOriginalSimOpName(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalNetworkCountryIso: { - data.enforceInterface(descriptor); java.lang.String _result = this.getOriginalNetworkCountryIso(); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalNetworkOp: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.getOriginalNetworkOp(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getOriginalNetworkOpName: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _result = this.getOriginalNetworkOpName(_arg0); reply.writeNoException(); reply.writeString(_result); - return true; + break; } case TRANSACTION_getSensorOffSettingsForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _result = this.getSensorOffSettingsForPackage(_arg0); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_setSensorOffSettingsForPackage: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.pm.Pkg _arg0; - if ((0!=data.readInt())) { - _arg0 = github.tornaco.android.thanos.core.pm.Pkg.CREATOR.createFromParcel(data); - } - else { - _arg0 = null; - } + _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); int _arg1; _arg1 = data.readInt(); this.setSensorOffSettingsForPackage(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isSensorOffEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSensorOffEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setSensorOffEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSensorOffEnabled(_arg0); reply.writeNoException(); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.secure.IPrivacyManager { @@ -581,9 +517,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isPrivacyEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPrivacyEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -601,10 +534,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPrivacyEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPrivacyEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -620,9 +549,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyDataCheatPkgCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPrivacyDataCheatPkgCount(); - } _reply.readException(); _result = _reply.readInt(); } @@ -640,9 +566,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyDataCheatRequestCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPrivacyDataCheatRequestCount(); - } _reply.readException(); _result = _reply.readLong(); } @@ -660,9 +583,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalDeviceId, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalDeviceId(); - } _reply.readException(); _result = _reply.readString(); } @@ -680,9 +600,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalLine1Number, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalLine1Number(); - } _reply.readException(); _result = _reply.readString(); } @@ -700,9 +617,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimSerialNumber, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalSimSerialNumber(); - } _reply.readException(); _result = _reply.readString(); } @@ -720,9 +634,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalAndroidId, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalAndroidId(); - } _reply.readException(); _result = _reply.readString(); } @@ -741,9 +652,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(slotIndex); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalImei, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalImei(slotIndex); - } _reply.readException(); _result = _reply.readString(); } @@ -762,9 +670,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(slotIndex); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalMeid, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalMeid(slotIndex); - } _reply.readException(); _result = _reply.readString(); } @@ -782,9 +687,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPhoneCount, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPhoneCount(); - } _reply.readException(); _result = _reply.readInt(); } @@ -802,9 +704,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAccessibleSubscriptionInfoList, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAccessibleSubscriptionInfoList(); - } _reply.readException(); _result = _reply.createTypedArray(android.telephony.SubscriptionInfo.CREATOR); } @@ -822,9 +721,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyCheatRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getPrivacyCheatRecords(); - } _reply.readException(); _result = _reply.createTypedArray(github.tornaco.android.thanos.core.secure.PrivacyCheatRecord.CREATOR); } @@ -841,10 +737,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_clearPrivacyCheatRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().clearPrivacyCheatRecords(); - return; - } _reply.readException(); } finally { @@ -859,17 +751,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((f!=null)) { - _data.writeInt(1); - f.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, f, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_addOrUpdateFieldsProfile, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().addOrUpdateFieldsProfile(f); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -886,17 +769,8 @@ public java.lang.String getInterfaceDescriptor() boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((f!=null)) { - _data.writeInt(1); - f.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, f, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_deleteFieldsProfile, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().deleteFieldsProfile(f); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -915,9 +789,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_deleteFieldsProfileById, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().deleteFieldsProfileById(id); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -935,9 +806,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getAllFieldsProfiles, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getAllFieldsProfiles(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); } @@ -956,10 +824,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkg); _data.writeString(profileId); boolean _status = mRemote.transact(Stub.TRANSACTION_selectFieldsProfileForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().selectFieldsProfileForPackage(pkg, profileId); - return; - } _reply.readException(); } finally { @@ -976,9 +840,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkg); boolean _status = mRemote.transact(Stub.TRANSACTION_getSelectedFieldsProfileIdForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSelectedFieldsProfileIdForPackage(pkg); - } _reply.readException(); _result = _reply.readString(); } @@ -998,16 +859,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkg); _data.writeInt(checkingOp); boolean _status = mRemote.transact(Stub.TRANSACTION_getSelectedFieldsProfileForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSelectedFieldsProfileForPackage(pkg, checkingOp); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.secure.field.Fields.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); } finally { _reply.recycle(); @@ -1024,16 +877,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_getFieldsProfileById, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getFieldsProfileById(id); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.secure.field.Fields.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); } finally { _reply.recycle(); @@ -1050,9 +895,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); boolean _status = mRemote.transact(Stub.TRANSACTION_isUidFieldsProfileSelected, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isUidFieldsProfileSelected(uid); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1071,9 +913,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkg); boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageFieldsProfileSelected, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPackageFieldsProfileSelected(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1092,9 +931,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_getUsageForFieldsProfile, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getUsageForFieldsProfile(id); - } _reply.readException(); _result = _reply.readInt(); } @@ -1113,9 +949,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(id); boolean _status = mRemote.transact(Stub.TRANSACTION_getUsagePackagesForFieldsProfile, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getUsagePackagesForFieldsProfile(id); - } _reply.readException(); _result = _reply.createStringArrayList(); } @@ -1133,9 +966,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimCountryIso, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalSimCountryIso(); - } _reply.readException(); _result = _reply.readString(); } @@ -1154,9 +984,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(subId); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimOp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalSimOp(subId); - } _reply.readException(); _result = _reply.readString(); } @@ -1175,9 +1002,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(subId); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimOpName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalSimOpName(subId); - } _reply.readException(); _result = _reply.readString(); } @@ -1195,9 +1019,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalNetworkCountryIso, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalNetworkCountryIso(); - } _reply.readException(); _result = _reply.readString(); } @@ -1216,9 +1037,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(subId); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalNetworkOp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalNetworkOp(subId); - } _reply.readException(); _result = _reply.readString(); } @@ -1237,9 +1055,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(subId); boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalNetworkOpName, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getOriginalNetworkOpName(subId); - } _reply.readException(); _result = _reply.readString(); } @@ -1256,17 +1071,8 @@ public java.lang.String getInterfaceDescriptor() int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); boolean _status = mRemote.transact(Stub.TRANSACTION_getSensorOffSettingsForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSensorOffSettingsForPackage(pkg); - } _reply.readException(); _result = _reply.readInt(); } @@ -1282,19 +1088,9 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - if ((pkg!=null)) { - _data.writeInt(1); - pkg.writeToParcel(_data, 0); - } - else { - _data.writeInt(0); - } + _Parcel.writeTypedObject(_data, pkg, 0); _data.writeInt(settings); boolean _status = mRemote.transact(Stub.TRANSACTION_setSensorOffSettingsForPackage, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSensorOffSettingsForPackage(pkg, settings); - return; - } _reply.readException(); } finally { @@ -1310,9 +1106,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSensorOffEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSensorOffEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -1330,10 +1123,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSensorOffEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSensorOffEnabled(enable); - return; - } _reply.readException(); } finally { @@ -1341,7 +1130,6 @@ public java.lang.String getInterfaceDescriptor() _data.recycle(); } } - public static github.tornaco.android.thanos.core.secure.IPrivacyManager sDefaultImpl; } static final int TRANSACTION_isPrivacyEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_setPrivacyEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -1379,23 +1167,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_setSensorOffSettingsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); static final int TRANSACTION_isSensorOffEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); static final int TRANSACTION_setSensorOffEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.secure.IPrivacyManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.secure.IPrivacyManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.secure.IPrivacyManager"; public boolean isPrivacyEnabled() throws android.os.RemoteException; public void setPrivacyEnabled(boolean enabled) throws android.os.RemoteException; public int getPrivacyDataCheatPkgCount() throws android.os.RemoteException; @@ -1432,4 +1206,39 @@ public static github.tornaco.android.thanos.core.secure.IPrivacyManager getDefau public void setSensorOffSettingsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int settings) throws android.os.RemoteException; public boolean isSensorOffEnabled() throws android.os.RemoteException; public void setSensorOffEnabled(boolean enable) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/ops/IAppOpsService.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/ops/IAppOpsService.java index e287af1bf..1d0485a75 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/ops/IAppOpsService.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/ops/IAppOpsService.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/ops/IAppOpsService.aidl */ package github.tornaco.android.thanos.core.secure.ops; public interface IAppOpsService extends android.os.IInterface @@ -86,8 +87,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.secure.ops.IAppOpsService { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.secure.ops.IAppOpsService"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -114,16 +115,17 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_setMode: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; @@ -134,20 +136,18 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt _arg3 = data.readInt(); this.setMode(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - return true; + break; } case TRANSACTION_resetAllModes: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.resetAllModes(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_checkOperation: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; @@ -157,28 +157,25 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt int _result = this.checkOperation(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_isOpsEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isOpsEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setOpsEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setOpsEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_onStartOp: { - data.enforceInterface(descriptor); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); int _arg1; @@ -189,11 +186,10 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt _arg3 = data.readString(); this.onStartOp(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - return true; + break; } case TRANSACTION_onFinishOp: { - data.enforceInterface(descriptor); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); int _arg1; @@ -204,53 +200,48 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt _arg3 = data.readString(); this.onFinishOp(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); - return true; + break; } case TRANSACTION_setOpRemindEnable: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setOpRemindEnable(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isOpRemindEnabled: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.isOpRemindEnabled(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_setPkgOpRemindEnable: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setPkgOpRemindEnable(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isPkgOpRemindEnable: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isPkgOpRemindEnable(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_checkOperationNonCheck: { - data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; @@ -260,20 +251,18 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt int _result = this.checkOperationNonCheck(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(_result); - return true; + break; } case TRANSACTION_dump: { - data.enforceInterface(descriptor); github.tornaco.android.thanos.core.IPrinter _arg0; _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); this.dump(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_onSettingsGetString: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -282,11 +271,10 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt _arg2 = data.readString(); this.onSettingsGetString(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } case TRANSACTION_onSettingsPutString: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; @@ -295,64 +283,59 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInt _arg2 = data.readString(); this.onSettingsPutString(_arg0, _arg1, _arg2); reply.writeNoException(); - return true; + break; } case TRANSACTION_getSettingsReadRecords: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getSettingsReadRecords(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_getSettingsWriteRecords: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); java.util.List _result = this.getSettingsWriteRecords(_arg0); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } case TRANSACTION_clearSettingsReadRecords: { - data.enforceInterface(descriptor); this.clearSettingsReadRecords(); reply.writeNoException(); - return true; + break; } case TRANSACTION_clearSettingsWriteRecords: { - data.enforceInterface(descriptor); this.clearSettingsWriteRecords(); reply.writeNoException(); - return true; + break; } case TRANSACTION_setSettingsRecordEnabled: { - data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSettingsRecordEnabled(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_isSettingsRecordEnabled: { - data.enforceInterface(descriptor); boolean _result = this.isSettingsRecordEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.secure.ops.IAppOpsService { @@ -380,10 +363,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(packageName); _data.writeInt(mode); boolean _status = mRemote.transact(Stub.TRANSACTION_setMode, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setMode(code, uid, packageName, mode); - return; - } _reply.readException(); } finally { @@ -399,10 +378,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(reqPackageName); boolean _status = mRemote.transact(Stub.TRANSACTION_resetAllModes, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().resetAllModes(reqPackageName); - return; - } _reply.readException(); } finally { @@ -421,9 +396,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(uid); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_checkOperation, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkOperation(code, uid, packageName); - } _reply.readException(); _result = _reply.readInt(); } @@ -441,9 +413,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isOpsEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isOpsEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -461,10 +430,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enabled)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setOpsEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setOpsEnabled(enabled); - return; - } _reply.readException(); } finally { @@ -483,10 +448,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(uid); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_onStartOp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onStartOp(token, code, uid, packageName); - return; - } _reply.readException(); } finally { @@ -505,10 +466,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(uid); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_onFinishOp, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onFinishOp(token, code, uid, packageName); - return; - } _reply.readException(); } finally { @@ -525,10 +482,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(code); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setOpRemindEnable, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setOpRemindEnable(code, enable); - return; - } _reply.readException(); } finally { @@ -545,9 +498,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(code); boolean _status = mRemote.transact(Stub.TRANSACTION_isOpRemindEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isOpRemindEnabled(code); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -566,10 +516,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(pkg); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgOpRemindEnable, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setPkgOpRemindEnable(pkg, enable); - return; - } _reply.readException(); } finally { @@ -586,9 +532,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(pkg); boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgOpRemindEnable, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isPkgOpRemindEnable(pkg); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -609,9 +552,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInt(uid); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_checkOperationNonCheck, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().checkOperationNonCheck(code, uid, packageName); - } _reply.readException(); _result = _reply.readInt(); } @@ -627,12 +567,8 @@ public java.lang.String getInterfaceDescriptor() android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder((((p!=null))?(p.asBinder()):(null))); + _data.writeStrongInterface(p); boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().dump(p); - return; - } _reply.readException(); } finally { @@ -650,10 +586,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(value); _data.writeString(callerPackageName); boolean _status = mRemote.transact(Stub.TRANSACTION_onSettingsGetString, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onSettingsGetString(name, value, callerPackageName); - return; - } _reply.readException(); } finally { @@ -671,10 +603,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(value); _data.writeString(callerPackageName); boolean _status = mRemote.transact(Stub.TRANSACTION_onSettingsPutString, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().onSettingsPutString(name, value, callerPackageName); - return; - } _reply.readException(); } finally { @@ -691,9 +619,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(filterCallerPackageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getSettingsReadRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSettingsReadRecords(filterCallerPackageName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.secure.ops.SettingsAccessRecord.CREATOR); } @@ -712,9 +637,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(filterCallerPackageName); boolean _status = mRemote.transact(Stub.TRANSACTION_getSettingsWriteRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getSettingsWriteRecords(filterCallerPackageName); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.secure.ops.SettingsAccessRecord.CREATOR); } @@ -731,10 +653,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_clearSettingsReadRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().clearSettingsReadRecords(); - return; - } _reply.readException(); } finally { @@ -749,10 +667,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_clearSettingsWriteRecords, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().clearSettingsWriteRecords(); - return; - } _reply.readException(); } finally { @@ -768,10 +682,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((enable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setSettingsRecordEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setSettingsRecordEnabled(enable); - return; - } _reply.readException(); } finally { @@ -787,9 +697,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_isSettingsRecordEnabled, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isSettingsRecordEnabled(); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -799,7 +706,6 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService sDefaultImpl; } static final int TRANSACTION_setMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_resetAllModes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); @@ -822,23 +728,9 @@ public java.lang.String getInterfaceDescriptor() static final int TRANSACTION_clearSettingsWriteRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); static final int TRANSACTION_setSettingsRecordEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); static final int TRANSACTION_isSettingsRecordEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.secure.ops.IAppOpsService impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.secure.ops.IAppOpsService"; public void setMode(int code, int uid, java.lang.String packageName, int mode) throws android.os.RemoteException; public void resetAllModes(java.lang.String reqPackageName) throws android.os.RemoteException; public int checkOperation(int code, int uid, java.lang.String packageName) throws android.os.RemoteException; @@ -860,4 +752,39 @@ public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService getDe public void clearSettingsWriteRecords() throws android.os.RemoteException; public void setSettingsRecordEnabled(boolean enable) throws android.os.RemoteException; public boolean isSettingsRecordEnabled() throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/su/ISu.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/su/ISu.java index dc946bd87..6377996f8 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/su/ISu.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/su/ISu.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/su/ISu.aidl */ package github.tornaco.android.thanos.core.su; public interface ISu extends android.os.IInterface @@ -19,8 +20,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.su.ISu { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.su.ISu"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -47,34 +48,30 @@ public static github.tornaco.android.thanos.core.su.ISu asInterface(android.os.I @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_exe: { - data.enforceInterface(descriptor); java.lang.String[] _arg0; _arg0 = data.createStringArray(); github.tornaco.android.thanos.core.su.SuRes _result = this.exe(_arg0); reply.writeNoException(); - if ((_result!=null)) { - reply.writeInt(1); - _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - } - else { - reply.writeInt(0); - } - return true; + _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.su.ISu { @@ -100,16 +97,8 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeStringArray(command); boolean _status = mRemote.transact(Stub.TRANSACTION_exe, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().exe(command); - } _reply.readException(); - if ((0!=_reply.readInt())) { - _result = github.tornaco.android.thanos.core.su.SuRes.CREATOR.createFromParcel(_reply); - } - else { - _result = null; - } + _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.su.SuRes.CREATOR); } finally { _reply.recycle(); @@ -117,25 +106,31 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.su.ISu sDefaultImpl; } static final int TRANSACTION_exe = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.su.ISu impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; + } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.su.ISu"; + public github.tornaco.android.thanos.core.su.SuRes exe(java.lang.String[] command) throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; } - return false; } - public static github.tornaco.android.thanos.core.su.ISu getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } } } - public github.tornaco.android.thanos.core.su.SuRes exe(java.lang.String[] command) throws android.os.RemoteException; } diff --git a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/wm/IWindowManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/wm/IWindowManager.java index e8516b420..2d711815d 100644 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/wm/IWindowManager.java +++ b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/wm/IWindowManager.java @@ -1,5 +1,6 @@ /* * This file is auto-generated. DO NOT MODIFY. + * Using: /home/tornaco/Android/Sdk/build-tools/35.0.0/aidl -I/home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java -p/home/tornaco/Documents/Thanox/android/android_sdk/framework.aidl -p/home/tornaco/Documents/Thanox/android/android_sdk/thanos.aidl /home/tornaco/Documents/Thanox/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/wm/IWindowManager.aidl */ package github.tornaco.android.thanos.core.wm; public interface IWindowManager extends android.os.IInterface @@ -33,8 +34,8 @@ public android.os.IBinder asBinder() { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.wm.IWindowManager { - private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.wm.IWindowManager"; /** Construct the stub at attach it to the interface. */ + @SuppressWarnings("this-escape") public Stub() { this.attachInterface(this, DESCRIPTOR); @@ -61,64 +62,62 @@ public static github.tornaco.android.thanos.core.wm.IWindowManager asInterface(a @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; + if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { + data.enforceInterface(descriptor); + } + if (code == INTERFACE_TRANSACTION) { + reply.writeString(descriptor); + return true; + } switch (code) { - case INTERFACE_TRANSACTION: - { - reply.writeString(descriptor); - return true; - } case TRANSACTION_getScreenSize: { - data.enforceInterface(descriptor); int[] _result = this.getScreenSize(); reply.writeNoException(); reply.writeIntArray(_result); - return true; + break; } case TRANSACTION_setDialogForceCancelable: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); this.setDialogForceCancelable(_arg0, _arg1); reply.writeNoException(); - return true; + break; } case TRANSACTION_isDialogForceCancelable: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isDialogForceCancelable(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); - return true; + break; } case TRANSACTION_reportDialogHasBeenForceSetCancelable: { - data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.reportDialogHasBeenForceSetCancelable(_arg0); reply.writeNoException(); - return true; + break; } case TRANSACTION_getVisibleWindows: { - data.enforceInterface(descriptor); java.util.List _result = this.getVisibleWindows(); reply.writeNoException(); - reply.writeTypedList(_result); - return true; + _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); + break; } default: { return super.onTransact(code, data, reply, flags); } } + return true; } private static class Proxy implements github.tornaco.android.thanos.core.wm.IWindowManager { @@ -143,9 +142,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getScreenSize, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getScreenSize(); - } _reply.readException(); _result = _reply.createIntArray(); } @@ -164,10 +160,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeString(packageName); _data.writeInt(((forceCancelable)?(1):(0))); boolean _status = mRemote.transact(Stub.TRANSACTION_setDialogForceCancelable, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().setDialogForceCancelable(packageName, forceCancelable); - return; - } _reply.readException(); } finally { @@ -184,9 +176,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_isDialogForceCancelable, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().isDialogForceCancelable(packageName); - } _reply.readException(); _result = (0!=_reply.readInt()); } @@ -204,10 +193,6 @@ public java.lang.String getInterfaceDescriptor() _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); boolean _status = mRemote.transact(Stub.TRANSACTION_reportDialogHasBeenForceSetCancelable, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - getDefaultImpl().reportDialogHasBeenForceSetCancelable(packageName); - return; - } _reply.readException(); } finally { @@ -223,9 +208,6 @@ public java.lang.String getInterfaceDescriptor() try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_getVisibleWindows, _data, _reply, 0); - if (!_status && getDefaultImpl() != null) { - return getDefaultImpl().getVisibleWindows(); - } _reply.readException(); _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.wm.WindowState.CREATOR); } @@ -235,33 +217,53 @@ public java.lang.String getInterfaceDescriptor() } return _result; } - public static github.tornaco.android.thanos.core.wm.IWindowManager sDefaultImpl; } static final int TRANSACTION_getScreenSize = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_setDialogForceCancelable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_isDialogForceCancelable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_reportDialogHasBeenForceSetCancelable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getVisibleWindows = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - public static boolean setDefaultImpl(github.tornaco.android.thanos.core.wm.IWindowManager impl) { - // Only one user of this interface can use this function - // at a time. This is a heuristic to detect if two different - // users in the same process use this function. - if (Stub.Proxy.sDefaultImpl != null) { - throw new IllegalStateException("setDefaultImpl() called twice"); - } - if (impl != null) { - Stub.Proxy.sDefaultImpl = impl; - return true; - } - return false; - } - public static github.tornaco.android.thanos.core.wm.IWindowManager getDefaultImpl() { - return Stub.Proxy.sDefaultImpl; - } } + /** @hide */ + public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.wm.IWindowManager"; public int[] getScreenSize() throws android.os.RemoteException; public void setDialogForceCancelable(java.lang.String packageName, boolean forceCancelable) throws android.os.RemoteException; public boolean isDialogForceCancelable(java.lang.String packageName) throws android.os.RemoteException; public void reportDialogHasBeenForceSetCancelable(java.lang.String packageName) throws android.os.RemoteException; public java.util.List getVisibleWindows() throws android.os.RemoteException; + /** @hide */ + static class _Parcel { + static private T readTypedObject( + android.os.Parcel parcel, + android.os.Parcelable.Creator c) { + if (parcel.readInt() != 0) { + return c.createFromParcel(parcel); + } else { + return null; + } + } + static private void writeTypedObject( + android.os.Parcel parcel, T value, int parcelableFlags) { + if (value != null) { + parcel.writeInt(1); + value.writeToParcel(parcel, parcelableFlags); + } else { + parcel.writeInt(0); + } + } + static private void writeTypedList( + android.os.Parcel parcel, java.util.List value, int parcelableFlags) { + if (value == null) { + parcel.writeInt(-1); + } else { + int N = value.size(); + int i = 0; + parcel.writeInt(N); + while (i < N) { + writeTypedObject(parcel, value.get(i), parcelableFlags); + i++; + } + } + } + } } diff --git a/android/internal/Thanox-Internal b/android/internal/Thanox-Internal index 7a67d5e83..9f0996fb2 160000 --- a/android/internal/Thanox-Internal +++ b/android/internal/Thanox-Internal @@ -1 +1 @@ -Subproject commit 7a67d5e83c6bb56e9a127504ccc96819f97b7b21 +Subproject commit 9f0996fb2d1e3bed906d4992e6c395db50eabff6