diff --git a/android/android_framework/base/build.gradle.kts b/android/android_framework/base/build.gradle.kts index ed5e98fd6..7f7f3bafd 100644 --- a/android/android_framework/base/build.gradle.kts +++ b/android/android_framework/base/build.gradle.kts @@ -1,13 +1,21 @@ import tornaco.project.android.thanox.Configs import tornaco.project.android.thanox.addAidlTask +import tornaco.project.android.thanox.aidlBuildDir import java.util.Date -import java.util.UUID plugins { alias(libs.plugins.kotlin.jvm) alias(libs.plugins.gmazzo.buildconfig) } +sourceSets { + named("main") { + java { + setSrcDirs(srcDirs + aidlBuildDir()) + } + } +} + dependencies { // Framework compileOnly(files("../../android_sdk/30/android-30.jar")) 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 deleted file mode 100644 index 6a6e8f4ac..000000000 --- a/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicenseResultListener.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for ILicenseResultListener. */ - public static class Default implements com.android.vending.licensing.ILicenseResultListener - { - @Override public void verifyLicense(int responseCode, java.lang.String signedData, java.lang.String signature) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements com.android.vending.licensing.ILicenseResultListener - { - /** Construct the stub at attach it to the interface. */ - @SuppressWarnings("this-escape") - public Stub() - { - this.attachInterface(this, DESCRIPTOR); - } - /** - * Cast an IBinder object into an com.android.vending.licensing.ILicenseResultListener interface, - * generating a proxy if needed. - */ - public static com.android.vending.licensing.ILicenseResultListener asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof com.android.vending.licensing.ILicenseResultListener))) { - return ((com.android.vending.licensing.ILicenseResultListener)iin); - } - return new com.android.vending.licensing.ILicenseResultListener.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_verifyLicense: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.lang.String _arg2; - _arg2 = data.readString(); - this.verifyLicense(_arg0, _arg1, _arg2); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements com.android.vending.licensing.ILicenseResultListener - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void verifyLicense(int responseCode, java.lang.String signedData, java.lang.String signature) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(responseCode); - _data.writeString(signedData); - _data.writeString(signature); - boolean _status = mRemote.transact(Stub.TRANSACTION_verifyLicense, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_verifyLicense = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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 deleted file mode 100644 index 4eb975904..000000000 --- a/android/android_framework/base/src/main/java/com/android/vending/licensing/ILicensingService.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for ILicensingService. */ - public static class Default implements com.android.vending.licensing.ILicensingService - { - @Override public void checkLicense(long nonce, java.lang.String packageName, com.android.vending.licensing.ILicenseResultListener listener) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements com.android.vending.licensing.ILicensingService - { - /** Construct the stub at attach it to the interface. */ - @SuppressWarnings("this-escape") - public Stub() - { - this.attachInterface(this, DESCRIPTOR); - } - /** - * Cast an IBinder object into an com.android.vending.licensing.ILicensingService interface, - * generating a proxy if needed. - */ - public static com.android.vending.licensing.ILicensingService asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof com.android.vending.licensing.ILicensingService))) { - return ((com.android.vending.licensing.ILicensingService)iin); - } - return new com.android.vending.licensing.ILicensingService.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_checkLicense: - { - long _arg0; - _arg0 = data.readLong(); - java.lang.String _arg1; - _arg1 = data.readString(); - com.android.vending.licensing.ILicenseResultListener _arg2; - _arg2 = com.android.vending.licensing.ILicenseResultListener.Stub.asInterface(data.readStrongBinder()); - this.checkLicense(_arg0, _arg1, _arg2); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements com.android.vending.licensing.ILicensingService - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void checkLicense(long nonce, java.lang.String packageName, com.android.vending.licensing.ILicenseResultListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(nonce); - _data.writeString(packageName); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkLicense, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_checkLicense = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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 deleted file mode 100644 index 00a1760f9..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPluginLogger.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPluginLogger. */ - public static class Default implements github.tornaco.android.thanos.core.IPluginLogger - { - @Override public void logV(java.lang.String content) throws android.os.RemoteException - { - } - @Override public void logD(java.lang.String content) throws android.os.RemoteException - { - } - @Override public void logW(java.lang.String content) throws android.os.RemoteException - { - } - @Override public void logE(java.lang.String content) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IPluginLogger - { - /** Construct the stub at attach it to the interface. */ - @SuppressWarnings("this-escape") - public Stub() - { - this.attachInterface(this, DESCRIPTOR); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.IPluginLogger interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.IPluginLogger asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.IPluginLogger))) { - return ((github.tornaco.android.thanos.core.IPluginLogger)iin); - } - return new github.tornaco.android.thanos.core.IPluginLogger.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_logV: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.logV(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_logD: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.logD(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_logW: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.logW(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_logE: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.logE(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.IPluginLogger - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void logV(java.lang.String content) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(content); - boolean _status = mRemote.transact(Stub.TRANSACTION_logV, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void logD(java.lang.String content) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(content); - boolean _status = mRemote.transact(Stub.TRANSACTION_logD, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void logW(java.lang.String content) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(content); - boolean _status = mRemote.transact(Stub.TRANSACTION_logW, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void logE(java.lang.String content) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(content); - boolean _status = mRemote.transact(Stub.TRANSACTION_logE, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - 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); - } - /** @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; - public void logE(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 deleted file mode 100644 index 4e27c2f4a..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IPrinter.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPrinter. */ - public static class Default implements github.tornaco.android.thanos.core.IPrinter - { - @Override public void println(java.lang.String content) throws android.os.RemoteException - { - } - @Override public void print(java.lang.String content) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IPrinter - { - /** Construct the stub at attach it to the interface. */ - @SuppressWarnings("this-escape") - public Stub() - { - this.attachInterface(this, DESCRIPTOR); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.IPrinter interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.IPrinter asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.IPrinter))) { - return ((github.tornaco.android.thanos.core.IPrinter)iin); - } - return new github.tornaco.android.thanos.core.IPrinter.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_println: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.println(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_print: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.print(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.IPrinter - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void println(java.lang.String content) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(content); - boolean _status = mRemote.transact(Stub.TRANSACTION_println, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void print(java.lang.String content) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(content); - boolean _status = mRemote.transact(Stub.TRANSACTION_print, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_println = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_print = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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 deleted file mode 100644 index 71b6cf8f6..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanos.java +++ /dev/null @@ -1,1095 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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. */ - public static class Default implements github.tornaco.android.thanos.core.IThanos - { - @Override public github.tornaco.android.thanos.core.os.IServiceManager getServiceManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.pref.IPrefManager getPrefManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.app.IActivityManager getActivityManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.pm.IPkgManager getPkgManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor getActivityStackSupervisor() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.secure.IPrivacyManager getPrivacyManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.secure.ops.IAppOpsService getAppOpsService() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.push.IPushManager getPushManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.n.INotificationManager getNotificationManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.audio.IAudioManager getAudioManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.profile.IProfileManager getProfileManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.backup.IBackupAgent getBackupAgent() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.wm.IWindowManager getWindowManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.power.IPowerManager getPowerManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.input.IInputManager getInputManager() throws android.os.RemoteException - { - return null; - } - @Override public void registerEventSubscriber(android.content.IntentFilter filter, github.tornaco.android.thanos.core.app.event.IEventSubscriber subscriber) throws android.os.RemoteException - { - } - @Override public void unRegisterEventSubscriber(github.tornaco.android.thanos.core.app.event.IEventSubscriber subscriber) throws android.os.RemoteException - { - } - @Override public java.lang.String fingerPrint() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getVersionName() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String whoAreYou() throws android.os.RemoteException - { - return null; - } - @Override public boolean isLoggingEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setLoggingEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean hasFeature(java.lang.String feature) throws android.os.RemoteException - { - return false; - } - @Override public boolean hasFrameworkInitializeError() throws android.os.RemoteException - { - return false; - } - @Override public github.tornaco.android.thanos.core.IPluginLogger getPluginLogger(java.lang.String pluginAlias) throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.app.infinite.InfiniteZ getInfiniteZ() throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getPatchingSource() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.plus.IRS getRS() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.app.usage.IUsageStatsManager getUsageStatsManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager getPushDelegateManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.net.INetworkManager getNetworkManager() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.ops.IOps getOpsManager() throws android.os.RemoteException - { - return null; - } - @Override public void writeLogsTo(android.os.ParcelFileDescriptor pfd) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IThanos - { - /** Construct the stub at attach it to the interface. */ - @SuppressWarnings("this-escape") - public Stub() - { - this.attachInterface(this, DESCRIPTOR); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.IThanos interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.IThanos asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.IThanos))) { - return ((github.tornaco.android.thanos.core.IThanos)iin); - } - return new github.tornaco.android.thanos.core.IThanos.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_getServiceManager: - { - github.tornaco.android.thanos.core.os.IServiceManager _result = this.getServiceManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getPrefManager: - { - github.tornaco.android.thanos.core.pref.IPrefManager _result = this.getPrefManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getActivityManager: - { - github.tornaco.android.thanos.core.app.IActivityManager _result = this.getActivityManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getPkgManager: - { - github.tornaco.android.thanos.core.pm.IPkgManager _result = this.getPkgManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getActivityStackSupervisor: - { - github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor _result = this.getActivityStackSupervisor(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getPrivacyManager: - { - github.tornaco.android.thanos.core.secure.IPrivacyManager _result = this.getPrivacyManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getAppOpsService: - { - github.tornaco.android.thanos.core.secure.ops.IAppOpsService _result = this.getAppOpsService(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getPushManager: - { - github.tornaco.android.thanos.core.push.IPushManager _result = this.getPushManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getNotificationManager: - { - github.tornaco.android.thanos.core.n.INotificationManager _result = this.getNotificationManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getAudioManager: - { - github.tornaco.android.thanos.core.audio.IAudioManager _result = this.getAudioManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getProfileManager: - { - github.tornaco.android.thanos.core.profile.IProfileManager _result = this.getProfileManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getBackupAgent: - { - github.tornaco.android.thanos.core.backup.IBackupAgent _result = this.getBackupAgent(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getWindowManager: - { - github.tornaco.android.thanos.core.wm.IWindowManager _result = this.getWindowManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getPowerManager: - { - github.tornaco.android.thanos.core.power.IPowerManager _result = this.getPowerManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getInputManager: - { - github.tornaco.android.thanos.core.input.IInputManager _result = this.getInputManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_registerEventSubscriber: - { - android.content.IntentFilter _arg0; - _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(); - break; - } - case TRANSACTION_unRegisterEventSubscriber: - { - 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(); - break; - } - case TRANSACTION_fingerPrint: - { - java.lang.String _result = this.fingerPrint(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getVersionName: - { - java.lang.String _result = this.getVersionName(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_whoAreYou: - { - java.lang.String _result = this.whoAreYou(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_isLoggingEnabled: - { - boolean _result = this.isLoggingEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setLoggingEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setLoggingEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_hasFeature: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.hasFeature(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_hasFrameworkInitializeError: - { - boolean _result = this.hasFrameworkInitializeError(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getPluginLogger: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.IPluginLogger _result = this.getPluginLogger(_arg0); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getInfiniteZ: - { - github.tornaco.android.thanos.core.app.infinite.InfiniteZ _result = this.getInfiniteZ(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getPatchingSource: - { - java.util.List _result = this.getPatchingSource(); - reply.writeNoException(); - reply.writeStringList(_result); - break; - } - case TRANSACTION_getRS: - { - github.tornaco.android.thanos.core.plus.IRS _result = this.getRS(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getUsageStatsManager: - { - github.tornaco.android.thanos.core.app.usage.IUsageStatsManager _result = this.getUsageStatsManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getPushDelegateManager: - { - github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager _result = this.getPushDelegateManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getNetworkManager: - { - github.tornaco.android.thanos.core.net.INetworkManager _result = this.getNetworkManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_getOpsManager: - { - github.tornaco.android.thanos.core.ops.IOps _result = this.getOpsManager(); - reply.writeNoException(); - reply.writeStrongInterface(_result); - break; - } - case TRANSACTION_writeLogsTo: - { - android.os.ParcelFileDescriptor _arg0; - _arg0 = _Parcel.readTypedObject(data, android.os.ParcelFileDescriptor.CREATOR); - this.writeLogsTo(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.IThanos - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public github.tornaco.android.thanos.core.os.IServiceManager getServiceManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.os.IServiceManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getServiceManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.os.IServiceManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.pref.IPrefManager getPrefManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.pref.IPrefManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPrefManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.pref.IPrefManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.app.IActivityManager getActivityManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.app.IActivityManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getActivityManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.app.IActivityManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.pm.IPkgManager getPkgManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.pm.IPkgManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPkgManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.pm.IPkgManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor getActivityStackSupervisor() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getActivityStackSupervisor, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.secure.IPrivacyManager getPrivacyManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.secure.IPrivacyManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.secure.IPrivacyManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.secure.ops.IAppOpsService getAppOpsService() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.secure.ops.IAppOpsService _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAppOpsService, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.secure.ops.IAppOpsService.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.push.IPushManager getPushManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.push.IPushManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPushManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.push.IPushManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.n.INotificationManager getNotificationManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.n.INotificationManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getNotificationManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.n.INotificationManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.audio.IAudioManager getAudioManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.audio.IAudioManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAudioManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.audio.IAudioManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.profile.IProfileManager getProfileManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.IProfileManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getProfileManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.profile.IProfileManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.backup.IBackupAgent getBackupAgent() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.backup.IBackupAgent _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getBackupAgent, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.backup.IBackupAgent.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.wm.IWindowManager getWindowManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.wm.IWindowManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getWindowManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.wm.IWindowManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.power.IPowerManager getPowerManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.power.IPowerManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPowerManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.power.IPowerManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.input.IInputManager getInputManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.input.IInputManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getInputManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.input.IInputManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void registerEventSubscriber(android.content.IntentFilter filter, github.tornaco.android.thanos.core.app.event.IEventSubscriber subscriber) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, filter, 0); - _data.writeStrongInterface(subscriber); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerEventSubscriber, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterEventSubscriber(github.tornaco.android.thanos.core.app.event.IEventSubscriber subscriber) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(subscriber); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterEventSubscriber, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String fingerPrint() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_fingerPrint, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getVersionName() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getVersionName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String whoAreYou() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_whoAreYou, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isLoggingEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isLoggingEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setLoggingEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setLoggingEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean hasFeature(java.lang.String feature) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(feature); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasFeature, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean hasFrameworkInitializeError() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasFrameworkInitializeError, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.IPluginLogger getPluginLogger(java.lang.String pluginAlias) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.IPluginLogger _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pluginAlias); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPluginLogger, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.IPluginLogger.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.app.infinite.InfiniteZ getInfiniteZ() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.app.infinite.InfiniteZ _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getInfiniteZ, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.app.infinite.InfiniteZ.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getPatchingSource() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPatchingSource, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArrayList(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.plus.IRS getRS() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.plus.IRS _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRS, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.plus.IRS.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.app.usage.IUsageStatsManager getUsageStatsManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.app.usage.IUsageStatsManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getUsageStatsManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.app.usage.IUsageStatsManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager getPushDelegateManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPushDelegateManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.net.INetworkManager getNetworkManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.net.INetworkManager _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getNetworkManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.net.INetworkManager.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.ops.IOps getOpsManager() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.ops.IOps _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOpsManager, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.ops.IOps.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void writeLogsTo(android.os.ParcelFileDescriptor pfd) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pfd, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_writeLogsTo, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_getServiceManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_getPrefManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_getActivityManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_getPkgManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_getActivityStackSupervisor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_getPrivacyManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_getAppOpsService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_getPushManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_getNotificationManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_getAudioManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_getProfileManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_getBackupAgent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_getWindowManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_getPowerManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_getInputManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_registerEventSubscriber = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_unRegisterEventSubscriber = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_fingerPrint = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - static final int TRANSACTION_getVersionName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); - static final int TRANSACTION_whoAreYou = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); - static final int TRANSACTION_isLoggingEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - static final int TRANSACTION_setLoggingEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); - static final int TRANSACTION_hasFeature = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); - static final int TRANSACTION_hasFrameworkInitializeError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); - static final int TRANSACTION_getPluginLogger = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); - static final int TRANSACTION_getInfiniteZ = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); - static final int TRANSACTION_getPatchingSource = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); - static final int TRANSACTION_getRS = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); - static final int TRANSACTION_getUsageStatsManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); - static final int TRANSACTION_getPushDelegateManager = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); - 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); - } - /** @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; - public github.tornaco.android.thanos.core.pm.IPkgManager getPkgManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor getActivityStackSupervisor() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.secure.IPrivacyManager getPrivacyManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.secure.ops.IAppOpsService getAppOpsService() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.push.IPushManager getPushManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.n.INotificationManager getNotificationManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.audio.IAudioManager getAudioManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.IProfileManager getProfileManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.backup.IBackupAgent getBackupAgent() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.wm.IWindowManager getWindowManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.power.IPowerManager getPowerManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.input.IInputManager getInputManager() throws android.os.RemoteException; - public void registerEventSubscriber(android.content.IntentFilter filter, github.tornaco.android.thanos.core.app.event.IEventSubscriber subscriber) throws android.os.RemoteException; - public void unRegisterEventSubscriber(github.tornaco.android.thanos.core.app.event.IEventSubscriber subscriber) throws android.os.RemoteException; - public java.lang.String fingerPrint() throws android.os.RemoteException; - public java.lang.String getVersionName() throws android.os.RemoteException; - public java.lang.String whoAreYou() throws android.os.RemoteException; - public boolean isLoggingEnabled() throws android.os.RemoteException; - public void setLoggingEnabled(boolean enable) throws android.os.RemoteException; - public boolean hasFeature(java.lang.String feature) throws android.os.RemoteException; - public boolean hasFrameworkInitializeError() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.IPluginLogger getPluginLogger(java.lang.String pluginAlias) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.app.infinite.InfiniteZ getInfiniteZ() throws android.os.RemoteException; - public java.util.List getPatchingSource() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.plus.IRS getRS() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.app.usage.IUsageStatsManager getUsageStatsManager() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager getPushDelegateManager() throws android.os.RemoteException; - 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 deleted file mode 100644 index 1ee347aba..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/IThanosProvider.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IThanosProvider. */ - public static class Default implements github.tornaco.android.thanos.core.IThanosProvider - { - @Override public github.tornaco.android.thanos.core.IThanos getThanos() throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IThanosProvider - { - /** Construct the stub at attach it to the interface. */ - @SuppressWarnings("this-escape") - public Stub() - { - this.attachInterface(this, DESCRIPTOR); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.IThanosProvider interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.IThanosProvider asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.IThanosProvider))) { - return ((github.tornaco.android.thanos.core.IThanosProvider)iin); - } - return new github.tornaco.android.thanos.core.IThanosProvider.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_getThanos: - { - github.tornaco.android.thanos.core.IThanos _result = this.getThanos(); - reply.writeNoException(); - 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 - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public github.tornaco.android.thanos.core.IThanos getThanos() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.IThanos _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getThanos, _data, _reply, 0); - _reply.readException(); - _result = github.tornaco.android.thanos.core.IThanos.Stub.asInterface(_reply.readStrongBinder()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_getThanos = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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 deleted file mode 100644 index 843ec7390..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/IActivityManager.java +++ /dev/null @@ -1,4468 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IActivityManager. */ - public static class Default implements github.tornaco.android.thanos.core.app.IActivityManager - { - @Override public java.lang.String getCurrentFrontApp() throws android.os.RemoteException - { - return null; - } - @Override public void forceStopPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String reason) throws android.os.RemoteException - { - } - @Override public void idlePackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - } - @Override public boolean isPackageIdle(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public boolean checkBroadcastingIntent(android.content.Intent intent) throws android.os.RemoteException - { - return false; - } - @Override public boolean checkService(android.content.Intent intent, android.content.ComponentName service, int callerUid, int userId) throws android.os.RemoteException - { - return false; - } - @Override public boolean checkRestartService(java.lang.String packageName, android.content.ComponentName componentName) throws android.os.RemoteException - { - return false; - } - @Override public boolean checkBroadcast(android.content.Intent intent, int receiverUid, int callerUid) throws android.os.RemoteException - { - return false; - } - @Override public boolean checkStartProcess(java.lang.String processName, android.content.pm.ApplicationInfo applicationInfo, java.lang.String hostType, java.lang.String hostName) throws android.os.RemoteException - { - return false; - } - @Override public void onStartProcessLocked(android.content.pm.ApplicationInfo appInfo) throws android.os.RemoteException - { - } - @Override public github.tornaco.android.thanos.core.process.ProcessRecord[] getRunningAppProcess() throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getRunningAppPackages() throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getRunningServiceLegacy(int max) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getRunningAppProcessLegacy() throws android.os.RemoteException - { - return null; - } - @Override public int getRunningAppsCount() throws android.os.RemoteException - { - return 0; - } - @Override public java.util.List getRunningAppProcessForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return null; - } - @Override public boolean isPackageRunning(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getStartRecordsByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getStartRecordBlockedPackages() throws android.os.RemoteException - { - return null; - } - @Override public long getStartRecordsBlockedCount() throws android.os.RemoteException - { - return 0L; - } - @Override public long getStartRecordBlockedCountByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - return 0L; - } - // 启动管理设置 - @Override public boolean isStartBlockEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setStartBlockEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void setPkgStartBlockEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgStartBlocking(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - // Task removal - @Override public boolean isCleanUpOnTaskRemovalEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setCleanUpOnTaskRemovalEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void setPkgCleanUpOnTaskRemovalEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgCleanUpOnTaskRemovalEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - // 后台运行设置 - @Override public boolean isBgRestrictEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setBgRestrictEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void setPkgBgRestrictEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgBgRestricted(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setBgRestrictNotificationEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isBgRestrictNotificationEnabled() throws android.os.RemoteException - { - return false; - } - // Task blur - @Override public boolean isRecentTaskBlurEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setRecentTaskBlurEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void setPkgRecentTaskBlurEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgRecentTaskBlurEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - // Audio focused app. - @Override public boolean isBgTaskCleanUpSkipAudioFocusedAppEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setBgTaskCleanUpSkipAudioFocusedAppEnabled(boolean enable) throws android.os.RemoteException - { - } - // Notification record app. - @Override public boolean isBgTaskCleanUpSkipWhichHasNotificationEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setBgTaskCleanUpSkipWhichHasNotificationEnabled(boolean enable) throws android.os.RemoteException - { - } - // 后台运行锁屏清理延迟 - @Override public void setBgTaskCleanUpDelayTimeMills(long delayMills) throws android.os.RemoteException - { - } - @Override public long getBgTaskCleanUpDelayTimeMills() throws android.os.RemoteException - { - return 0L; - } - @Override public void notifyTaskCreated(int taskId, android.content.ComponentName componentName) throws android.os.RemoteException - { - } - @Override public android.app.ActivityManager.MemoryInfo getMemoryInfo() throws android.os.RemoteException - { - return null; - } - @Override public long[] getProcessPss(int[] pids) throws android.os.RemoteException - { - return null; - } - @Override public void onApplicationCrashing(java.lang.String eventType, java.lang.String processName, github.tornaco.android.thanos.core.process.ProcessRecord process, java.lang.String stackTrace) throws android.os.RemoteException - { - } - @Override public java.lang.String getPackageNameForTaskId(int taskId) throws android.os.RemoteException - { - return null; - } - @Override public int isPlatformAppIdleEnabled() throws android.os.RemoteException - { - return 0; - } - @Override public boolean isSmartStandByEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartStandByEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void setPkgSmartStandByEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgSmartStandByEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getLastRecentUsedPackages(int count) throws android.os.RemoteException - { - return null; - } - @Override public int getRecentTaskExcludeSettingForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return 0; - } - @Override public void setRecentTaskExcludeSettingForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int setting) throws android.os.RemoteException - { - } - // Keep when has recent task. - @Override public boolean isBgTaskCleanUpSkipWhenHasRecentTaskEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setBgTaskCleanUpSkipWhenHasRecentTaskEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void launchAppDetailsActivity(java.lang.String pkgName) throws android.os.RemoteException - { - } - @Override public void resetStartRecordsBlocked() throws android.os.RemoteException - { - } - @Override public void addApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - } - @Override public boolean isStartRuleEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setStartRuleEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void addStartRule(java.lang.String rule) throws android.os.RemoteException - { - } - @Override public void deleteStartRule(java.lang.String rule) throws android.os.RemoteException - { - } - @Override public java.lang.String[] getAllStartRules() throws android.os.RemoteException - { - return null; - } - @Override public boolean isStandbyRuleEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setStandbyRuleEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void addStandbyRule(java.lang.String rule) throws android.os.RemoteException - { - } - @Override public void deleteStandbyRule(java.lang.String rule) throws android.os.RemoteException - { - } - @Override public java.lang.String[] getAllStandbyRules() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.app.RunningServiceInfoCompat[] getRunningAppServiceForPackage(java.lang.String pkgName, int userId) throws android.os.RemoteException - { - return null; - } - @Override public boolean hasRunningServiceForPackage(java.lang.String pkgName, int userId) throws android.os.RemoteException - { - return false; - } - @Override public android.content.pm.UserInfo getUserInfo(int userHandle) throws android.os.RemoteException - { - return null; - } - @Override public boolean stopService(android.content.Intent intent) throws android.os.RemoteException - { - return false; - } - @Override public boolean killBackgroundProcesses(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public boolean isSmartStandByStopServiceEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartStandByStopServiceEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isSmartStandByInactiveEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartStandByInactiveEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isSmartStandByByPassIfHasNotificationEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartStandByByPassIfHasNotificationEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isSmartStandByBlockBgServiceStartEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartStandByBlockBgServiceStartEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public java.util.List getStartRecordAllowedPackages() throws android.os.RemoteException - { - return null; - } - @Override public long getStartRecordsAllowedCount() throws android.os.RemoteException - { - return 0L; - } - @Override public long getStartRecordAllowedCountByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - return 0L; - } - @Override public java.util.List getStartRecordsAllowedByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getStartRecordsBlockedByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - return null; - } - @Override public void resetStartRecordsAllowed() throws android.os.RemoteException - { - } - @Override public java.util.List getAllStartRecordsWithRes(int appFlags, boolean allowed, boolean blocked) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getAllStartRecords(int appFlags) throws android.os.RemoteException - { - return null; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - } - @Override public void dumpCpu(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - } - @Override public void setNetStatTrackerEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isNetStatTrackerEnabled() throws android.os.RemoteException - { - return false; - } - @Override public boolean checkGetContentProvider(java.lang.String callerPkg, java.lang.String name, int userId) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getAllStartRecordsForPackageSetWithRes(java.lang.String pkgSetId, boolean allowed, boolean blocked) throws android.os.RemoteException - { - return null; - } - // ****************************************************************** - // CAF API - // https://source.android.com/devices/tech/perf/cached-apps-freezer - // - // ****************************************************************** - @Override public boolean isCachedAppsFreezerSupported() throws android.os.RemoteException - { - return false; - } - @Override public void freezeApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - } - @Override public void unfreezeApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - } - @Override public void freezeAppProcess(long pid) throws android.os.RemoteException - { - } - @Override public void unfreezeAppProcess(long pid) throws android.os.RemoteException - { - } - @Override public void updateProcessCpuUsageStats() throws android.os.RemoteException - { - } - @Override public java.util.List queryProcessCpuUsageStats(long[] pids, boolean update) throws android.os.RemoteException - { - return null; - } - @Override public float queryCpuUsageRatio(long[] pids, boolean update) throws android.os.RemoteException - { - return 0.0f; - } - @Override public boolean killProcess(long pid) throws android.os.RemoteException - { - return false; - } - @Override public github.tornaco.android.thanos.core.os.SwapInfo getSwapInfo() throws android.os.RemoteException - { - return null; - } - // ****************************************************************** - // Block API - // 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 - { - } - @Override public boolean isBlockAllReceiver(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setBlockAllService(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean block) throws android.os.RemoteException - { - } - @Override public boolean isBlockAllService(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setBlockAllProvider(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean block) throws android.os.RemoteException - { - } - @Override public boolean isBlockAllProvider(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - // Return 0 if it fail - @Override public long getProcessStartTime(int pid) throws android.os.RemoteException - { - return 0L; - } - @Override public boolean isAppForeground(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public boolean hasRunningForegroundService(github.tornaco.android.thanos.core.pm.Pkg pkg, int foregroundServicetype) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getTopVisibleActivities() throws android.os.RemoteException - { - return null; - } - @Override public boolean checkStartActivity(android.content.Intent intent, int callerUid) throws android.os.RemoteException - { - return false; - } - @Override public boolean isBgTaskCleanUpSkipForegroundEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setBgTaskCleanUpSkipForegroundEnabled(boolean enable) throws android.os.RemoteException - { - } - /** 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 */ - @Override public int killProcessByName(github.tornaco.android.thanos.core.os.ProcessName processName) throws android.os.RemoteException - { - return 0; - } - @Override public void killProcessByNames(java.util.List processNames) throws android.os.RemoteException - { - } - @Override public boolean dumpHeap(java.lang.String process) throws android.os.RemoteException - { - return false; - } - @Override public github.tornaco.android.thanos.core.pm.Pkg getCurrentFrontPkg() throws android.os.RemoteException - { - return null; - } - @Override public boolean isSmartStandByByPassIfHasVisibleWindows() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartStandByByPassIfHasVisibleWindowsEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public float getTotalCpuPercent(boolean update) throws android.os.RemoteException - { - return 0.0f; - } - @Override public java.util.List getTopNCpuUsagePackages(int n, boolean update) throws android.os.RemoteException - { - return null; - } - @Override public boolean isPkgResident(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setPkgResident(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean resident) throws android.os.RemoteException - { - } - @Override public void setPkgRecentTaskBlurMode(github.tornaco.android.thanos.core.pm.Pkg pkg, int mode) throws android.os.RemoteException - { - } - @Override public int getPkgRecentTaskBlurMode(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return 0; - } - @Override public boolean isSmartStandByUnbindServiceEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartStandByUnbindServiceEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.IActivityManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.IActivityManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.IActivityManager))) { - return ((github.tornaco.android.thanos.core.app.IActivityManager)iin); - } - return new github.tornaco.android.thanos.core.app.IActivityManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_getCurrentFrontApp: - { - java.lang.String _result = this.getCurrentFrontApp(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_forceStopPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - break; - } - case TRANSACTION_idlePackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.idlePackage(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isPackageIdle: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPackageIdle(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkBroadcastingIntent: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - boolean _result = this.checkBroadcastingIntent(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkService: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - android.content.ComponentName _arg1; - _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); - int _arg2; - _arg2 = data.readInt(); - int _arg3; - _arg3 = data.readInt(); - boolean _result = this.checkService(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkRestartService: - { - java.lang.String _arg0; - _arg0 = data.readString(); - android.content.ComponentName _arg1; - _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); - boolean _result = this.checkRestartService(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkBroadcast: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - int _arg1; - _arg1 = data.readInt(); - int _arg2; - _arg2 = data.readInt(); - boolean _result = this.checkBroadcast(_arg0, _arg1, _arg2); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkStartProcess: - { - java.lang.String _arg0; - _arg0 = data.readString(); - android.content.pm.ApplicationInfo _arg1; - _arg1 = _Parcel.readTypedObject(data, android.content.pm.ApplicationInfo.CREATOR); - java.lang.String _arg2; - _arg2 = data.readString(); - java.lang.String _arg3; - _arg3 = data.readString(); - boolean _result = this.checkStartProcess(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_onStartProcessLocked: - { - android.content.pm.ApplicationInfo _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.pm.ApplicationInfo.CREATOR); - this.onStartProcessLocked(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getRunningAppProcess: - { - github.tornaco.android.thanos.core.process.ProcessRecord[] _result = this.getRunningAppProcess(); - reply.writeNoException(); - reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getRunningAppPackages: - { - java.util.List _result = this.getRunningAppPackages(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getRunningServiceLegacy: - { - int _arg0; - _arg0 = data.readInt(); - java.util.List _result = this.getRunningServiceLegacy(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getRunningAppProcessLegacy: - { - java.util.List _result = this.getRunningAppProcessLegacy(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getRunningAppsCount: - { - int _result = this.getRunningAppsCount(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getRunningAppProcessForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - java.util.List _result = this.getRunningAppProcessForPackage(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_isPackageRunning: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPackageRunning(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getStartRecordsByPackageName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getStartRecordsByPackageName(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getStartRecordBlockedPackages: - { - java.util.List _result = this.getStartRecordBlockedPackages(); - reply.writeNoException(); - reply.writeStringList(_result); - break; - } - case TRANSACTION_getStartRecordsBlockedCount: - { - long _result = this.getStartRecordsBlockedCount(); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_getStartRecordBlockedCountByPackageName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - long _result = this.getStartRecordBlockedCountByPackageName(_arg0); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_isStartBlockEnabled: - { - boolean _result = this.isStartBlockEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setStartBlockEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setStartBlockEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setPkgStartBlockEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgStartBlockEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgStartBlocking: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgStartBlocking(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isCleanUpOnTaskRemovalEnabled: - { - boolean _result = this.isCleanUpOnTaskRemovalEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setCleanUpOnTaskRemovalEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setCleanUpOnTaskRemovalEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setPkgCleanUpOnTaskRemovalEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgCleanUpOnTaskRemovalEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgCleanUpOnTaskRemovalEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgCleanUpOnTaskRemovalEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isBgRestrictEnabled: - { - boolean _result = this.isBgRestrictEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBgRestrictEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setBgRestrictEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setPkgBgRestrictEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgBgRestrictEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgBgRestricted: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgBgRestricted(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBgRestrictNotificationEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setBgRestrictNotificationEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isBgRestrictNotificationEnabled: - { - boolean _result = this.isBgRestrictNotificationEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isRecentTaskBlurEnabled: - { - boolean _result = this.isRecentTaskBlurEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setRecentTaskBlurEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setRecentTaskBlurEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setPkgRecentTaskBlurEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgRecentTaskBlurEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgRecentTaskBlurEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgRecentTaskBlurEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isBgTaskCleanUpSkipAudioFocusedAppEnabled: - { - boolean _result = this.isBgTaskCleanUpSkipAudioFocusedAppEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBgTaskCleanUpSkipAudioFocusedAppEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setBgTaskCleanUpSkipAudioFocusedAppEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isBgTaskCleanUpSkipWhichHasNotificationEnabled: - { - boolean _result = this.isBgTaskCleanUpSkipWhichHasNotificationEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBgTaskCleanUpSkipWhichHasNotificationEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setBgTaskCleanUpSkipWhichHasNotificationEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setBgTaskCleanUpDelayTimeMills: - { - long _arg0; - _arg0 = data.readLong(); - this.setBgTaskCleanUpDelayTimeMills(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getBgTaskCleanUpDelayTimeMills: - { - long _result = this.getBgTaskCleanUpDelayTimeMills(); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_notifyTaskCreated: - { - int _arg0; - _arg0 = data.readInt(); - android.content.ComponentName _arg1; - _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); - this.notifyTaskCreated(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_getMemoryInfo: - { - android.app.ActivityManager.MemoryInfo _result = this.getMemoryInfo(); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getProcessPss: - { - int[] _arg0; - _arg0 = data.createIntArray(); - long[] _result = this.getProcessPss(_arg0); - reply.writeNoException(); - reply.writeLongArray(_result); - break; - } - case TRANSACTION_onApplicationCrashing: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - github.tornaco.android.thanos.core.process.ProcessRecord _arg2; - _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(); - break; - } - case TRANSACTION_getPackageNameForTaskId: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.getPackageNameForTaskId(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_isPlatformAppIdleEnabled: - { - int _result = this.isPlatformAppIdleEnabled(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_isSmartStandByEnabled: - { - boolean _result = this.isSmartStandByEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartStandByEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartStandByEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setPkgSmartStandByEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgSmartStandByEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgSmartStandByEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgSmartStandByEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getLastRecentUsedPackages: - { - int _arg0; - _arg0 = data.readInt(); - java.util.List _result = this.getLastRecentUsedPackages(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getRecentTaskExcludeSettingForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _result = this.getRecentTaskExcludeSettingForPackage(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_setRecentTaskExcludeSettingForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _arg1; - _arg1 = data.readInt(); - this.setRecentTaskExcludeSettingForPackage(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isBgTaskCleanUpSkipWhenHasRecentTaskEnabled: - { - boolean _result = this.isBgTaskCleanUpSkipWhenHasRecentTaskEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBgTaskCleanUpSkipWhenHasRecentTaskEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setBgTaskCleanUpSkipWhenHasRecentTaskEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_launchAppDetailsActivity: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.launchAppDetailsActivity(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_resetStartRecordsBlocked: - { - this.resetStartRecordsBlocked(); - reply.writeNoException(); - break; - } - case TRANSACTION_addApp: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.addApp(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isStartRuleEnabled: - { - boolean _result = this.isStartRuleEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setStartRuleEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setStartRuleEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_addStartRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.addStartRule(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_deleteStartRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.deleteStartRule(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllStartRules: - { - java.lang.String[] _result = this.getAllStartRules(); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_isStandbyRuleEnabled: - { - boolean _result = this.isStandbyRuleEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setStandbyRuleEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setStandbyRuleEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_addStandbyRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.addStandbyRule(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_deleteStandbyRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.deleteStandbyRule(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllStandbyRules: - { - java.lang.String[] _result = this.getAllStandbyRules(); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_getRunningAppServiceForPackage: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - github.tornaco.android.thanos.core.app.RunningServiceInfoCompat[] _result = this.getRunningAppServiceForPackage(_arg0, _arg1); - reply.writeNoException(); - reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_hasRunningServiceForPackage: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - boolean _result = this.hasRunningServiceForPackage(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getUserInfo: - { - int _arg0; - _arg0 = data.readInt(); - android.content.pm.UserInfo _result = this.getUserInfo(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_stopService: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - boolean _result = this.stopService(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_killBackgroundProcesses: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.killBackgroundProcesses(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isSmartStandByStopServiceEnabled: - { - boolean _result = this.isSmartStandByStopServiceEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartStandByStopServiceEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartStandByStopServiceEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isSmartStandByInactiveEnabled: - { - boolean _result = this.isSmartStandByInactiveEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartStandByInactiveEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartStandByInactiveEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isSmartStandByByPassIfHasNotificationEnabled: - { - boolean _result = this.isSmartStandByByPassIfHasNotificationEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartStandByByPassIfHasNotificationEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartStandByByPassIfHasNotificationEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isSmartStandByBlockBgServiceStartEnabled: - { - boolean _result = this.isSmartStandByBlockBgServiceStartEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartStandByBlockBgServiceStartEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartStandByBlockBgServiceStartEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getStartRecordAllowedPackages: - { - java.util.List _result = this.getStartRecordAllowedPackages(); - reply.writeNoException(); - reply.writeStringList(_result); - break; - } - case TRANSACTION_getStartRecordsAllowedCount: - { - long _result = this.getStartRecordsAllowedCount(); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_getStartRecordAllowedCountByPackageName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - long _result = this.getStartRecordAllowedCountByPackageName(_arg0); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_getStartRecordsAllowedByPackageName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getStartRecordsAllowedByPackageName(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getStartRecordsBlockedByPackageName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getStartRecordsBlockedByPackageName(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_resetStartRecordsAllowed: - { - this.resetStartRecordsAllowed(); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllStartRecordsWithRes: - { - int _arg0; - _arg0 = data.readInt(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - boolean _arg2; - _arg2 = (0!=data.readInt()); - java.util.List _result = this.getAllStartRecordsWithRes(_arg0, _arg1, _arg2); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getAllStartRecords: - { - int _arg0; - _arg0 = data.readInt(); - java.util.List _result = this.getAllStartRecords(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_dump: - { - github.tornaco.android.thanos.core.IPrinter _arg0; - _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); - this.dump(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_dumpCpu: - { - github.tornaco.android.thanos.core.IPrinter _arg0; - _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); - this.dumpCpu(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setNetStatTrackerEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setNetStatTrackerEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isNetStatTrackerEnabled: - { - boolean _result = this.isNetStatTrackerEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkGetContentProvider: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - int _arg2; - _arg2 = data.readInt(); - boolean _result = this.checkGetContentProvider(_arg0, _arg1, _arg2); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getAllStartRecordsForPackageSetWithRes: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - boolean _arg2; - _arg2 = (0!=data.readInt()); - java.util.List _result = this.getAllStartRecordsForPackageSetWithRes(_arg0, _arg1, _arg2); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_isCachedAppsFreezerSupported: - { - boolean _result = this.isCachedAppsFreezerSupported(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_freezeApp: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.freezeApp(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_unfreezeApp: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.unfreezeApp(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_freezeAppProcess: - { - long _arg0; - _arg0 = data.readLong(); - this.freezeAppProcess(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_unfreezeAppProcess: - { - long _arg0; - _arg0 = data.readLong(); - this.unfreezeAppProcess(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_updateProcessCpuUsageStats: - { - this.updateProcessCpuUsageStats(); - reply.writeNoException(); - break; - } - case TRANSACTION_queryProcessCpuUsageStats: - { - long[] _arg0; - _arg0 = data.createLongArray(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - java.util.List _result = this.queryProcessCpuUsageStats(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_queryCpuUsageRatio: - { - long[] _arg0; - _arg0 = data.createLongArray(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - float _result = this.queryCpuUsageRatio(_arg0, _arg1); - reply.writeNoException(); - reply.writeFloat(_result); - break; - } - case TRANSACTION_killProcess: - { - long _arg0; - _arg0 = data.readLong(); - boolean _result = this.killProcess(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getSwapInfo: - { - github.tornaco.android.thanos.core.os.SwapInfo _result = this.getSwapInfo(); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setBlockAllReceiver: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setBlockAllReceiver(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isBlockAllReceiver: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isBlockAllReceiver(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBlockAllService: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setBlockAllService(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isBlockAllService: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isBlockAllService(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBlockAllProvider: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setBlockAllProvider(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isBlockAllProvider: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isBlockAllProvider(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getProcessStartTime: - { - int _arg0; - _arg0 = data.readInt(); - long _result = this.getProcessStartTime(_arg0); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_isAppForeground: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isAppForeground(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_hasRunningForegroundService: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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))); - break; - } - case TRANSACTION_getTopVisibleActivities: - { - java.util.List _result = this.getTopVisibleActivities(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_checkStartActivity: - { - android.content.Intent _arg0; - _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))); - break; - } - case TRANSACTION_isBgTaskCleanUpSkipForegroundEnabled: - { - boolean _result = this.isBgTaskCleanUpSkipForegroundEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setBgTaskCleanUpSkipForegroundEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setBgTaskCleanUpSkipForegroundEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getPid: - { - github.tornaco.android.thanos.core.os.ProcessName _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.os.ProcessName.CREATOR); - int _result = this.getPid(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_killProcessByName: - { - github.tornaco.android.thanos.core.os.ProcessName _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.os.ProcessName.CREATOR); - int _result = this.killProcessByName(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_killProcessByNames: - { - java.util.List _arg0; - _arg0 = data.createTypedArrayList(github.tornaco.android.thanos.core.os.ProcessName.CREATOR); - this.killProcessByNames(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_dumpHeap: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.dumpHeap(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getCurrentFrontPkg: - { - github.tornaco.android.thanos.core.pm.Pkg _result = this.getCurrentFrontPkg(); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_isSmartStandByByPassIfHasVisibleWindows: - { - boolean _result = this.isSmartStandByByPassIfHasVisibleWindows(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartStandByByPassIfHasVisibleWindowsEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartStandByByPassIfHasVisibleWindowsEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getTotalCpuPercent: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - float _result = this.getTotalCpuPercent(_arg0); - reply.writeNoException(); - reply.writeFloat(_result); - break; - } - case TRANSACTION_getTopNCpuUsagePackages: - { - int _arg0; - _arg0 = data.readInt(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - java.util.List _result = this.getTopNCpuUsagePackages(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_isPkgResident: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgResident(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPkgResident: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgResident(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_setPkgRecentTaskBlurMode: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _arg1; - _arg1 = data.readInt(); - this.setPkgRecentTaskBlurMode(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_getPkgRecentTaskBlurMode: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _result = this.getPkgRecentTaskBlurMode(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_isSmartStandByUnbindServiceEnabled: - { - boolean _result = this.isSmartStandByUnbindServiceEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartStandByUnbindServiceEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartStandByUnbindServiceEnabled(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.IActivityManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public java.lang.String getCurrentFrontApp() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getCurrentFrontApp, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void forceStopPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String reason) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeString(reason); - boolean _status = mRemote.transact(Stub.TRANSACTION_forceStopPackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void idlePackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_idlePackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPackageIdle(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageIdle, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean checkBroadcastingIntent(android.content.Intent intent) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkBroadcastingIntent, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean checkService(android.content.Intent intent, android.content.ComponentName service, int callerUid, int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _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); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean checkRestartService(java.lang.String packageName, android.content.ComponentName componentName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - _Parcel.writeTypedObject(_data, componentName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkRestartService, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean checkBroadcast(android.content.Intent intent, int receiverUid, int callerUid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - _data.writeInt(receiverUid); - _data.writeInt(callerUid); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkBroadcast, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean checkStartProcess(java.lang.String processName, android.content.pm.ApplicationInfo applicationInfo, java.lang.String hostType, java.lang.String hostName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(processName); - _Parcel.writeTypedObject(_data, applicationInfo, 0); - _data.writeString(hostType); - _data.writeString(hostName); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkStartProcess, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void onStartProcessLocked(android.content.pm.ApplicationInfo appInfo) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, appInfo, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onStartProcessLocked, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public github.tornaco.android.thanos.core.process.ProcessRecord[] getRunningAppProcess() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.process.ProcessRecord[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppProcess, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArray(github.tornaco.android.thanos.core.process.ProcessRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getRunningAppPackages() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppPackages, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getRunningServiceLegacy(int max) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(max); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningServiceLegacy, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(android.app.ActivityManager.RunningServiceInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getRunningAppProcessLegacy() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppProcessLegacy, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.RunningAppProcessInfoCompat.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getRunningAppsCount() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppsCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getRunningAppProcessForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppProcessForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.process.ProcessRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isPackageRunning(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageRunning, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getStartRecordsByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsByPackageName, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getStartRecordBlockedPackages() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordBlockedPackages, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArrayList(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public long getStartRecordsBlockedCount() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsBlockedCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public long getStartRecordBlockedCountByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordBlockedCountByPackageName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // 启动管理设置 - @Override public boolean isStartBlockEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isStartBlockEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setStartBlockEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setStartBlockEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPkgStartBlockEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgStartBlockEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgStartBlocking(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgStartBlocking, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // Task removal - @Override public boolean isCleanUpOnTaskRemovalEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setCleanUpOnTaskRemovalEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPkgCleanUpOnTaskRemovalEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgCleanUpOnTaskRemovalEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgCleanUpOnTaskRemovalEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // 后台运行设置 - @Override public boolean isBgRestrictEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBgRestrictEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBgRestrictEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBgRestrictEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPkgBgRestrictEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgBgRestrictEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgBgRestricted(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgBgRestricted, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBgRestrictNotificationEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBgRestrictNotificationEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isBgRestrictNotificationEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBgRestrictNotificationEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // Task blur - @Override public boolean isRecentTaskBlurEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isRecentTaskBlurEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setRecentTaskBlurEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setRecentTaskBlurEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPkgRecentTaskBlurEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgRecentTaskBlurEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgRecentTaskBlurEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgRecentTaskBlurEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // Audio focused app. - @Override public boolean isBgTaskCleanUpSkipAudioFocusedAppEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipAudioFocusedAppEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBgTaskCleanUpSkipAudioFocusedAppEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipAudioFocusedAppEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - // Notification record app. - @Override public boolean isBgTaskCleanUpSkipWhichHasNotificationEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipWhichHasNotificationEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBgTaskCleanUpSkipWhichHasNotificationEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipWhichHasNotificationEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - // 后台运行锁屏清理延迟 - @Override public void setBgTaskCleanUpDelayTimeMills(long delayMills) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(delayMills); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpDelayTimeMills, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public long getBgTaskCleanUpDelayTimeMills() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getBgTaskCleanUpDelayTimeMills, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void notifyTaskCreated(int taskId, android.content.ComponentName componentName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(taskId); - _Parcel.writeTypedObject(_data, componentName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_notifyTaskCreated, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public android.app.ActivityManager.MemoryInfo getMemoryInfo() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.app.ActivityManager.MemoryInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getMemoryInfo, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, android.app.ActivityManager.MemoryInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public long[] getProcessPss(int[] pids) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeIntArray(pids); - boolean _status = mRemote.transact(Stub.TRANSACTION_getProcessPss, _data, _reply, 0); - _reply.readException(); - _result = _reply.createLongArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void onApplicationCrashing(java.lang.String eventType, java.lang.String processName, github.tornaco.android.thanos.core.process.ProcessRecord process, java.lang.String stackTrace) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(eventType); - _data.writeString(processName); - _Parcel.writeTypedObject(_data, process, 0); - _data.writeString(stackTrace); - boolean _status = mRemote.transact(Stub.TRANSACTION_onApplicationCrashing, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String getPackageNameForTaskId(int taskId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(taskId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageNameForTaskId, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int isPlatformAppIdleEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPlatformAppIdleEnabled, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isSmartStandByEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartStandByEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPkgSmartStandByEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgSmartStandByEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgSmartStandByEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgSmartStandByEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getLastRecentUsedPackages(int count) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(count); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLastRecentUsedPackages, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getRecentTaskExcludeSettingForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRecentTaskExcludeSettingForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setRecentTaskExcludeSettingForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int setting) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(setting); - boolean _status = mRemote.transact(Stub.TRANSACTION_setRecentTaskExcludeSettingForPackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - // Keep when has recent task. - @Override public boolean isBgTaskCleanUpSkipWhenHasRecentTaskEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipWhenHasRecentTaskEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBgTaskCleanUpSkipWhenHasRecentTaskEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipWhenHasRecentTaskEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void launchAppDetailsActivity(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_launchAppDetailsActivity, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void resetStartRecordsBlocked() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_resetStartRecordsBlocked, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_addApp, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isStartRuleEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isStartRuleEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setStartRuleEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setStartRuleEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addStartRule(java.lang.String rule) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(rule); - boolean _status = mRemote.transact(Stub.TRANSACTION_addStartRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void deleteStartRule(java.lang.String rule) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(rule); - boolean _status = mRemote.transact(Stub.TRANSACTION_deleteStartRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String[] getAllStartRules() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRules, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isStandbyRuleEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isStandbyRuleEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setStandbyRuleEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setStandbyRuleEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addStandbyRule(java.lang.String rule) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(rule); - boolean _status = mRemote.transact(Stub.TRANSACTION_addStandbyRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void deleteStandbyRule(java.lang.String rule) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(rule); - boolean _status = mRemote.transact(Stub.TRANSACTION_deleteStandbyRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String[] getAllStandbyRules() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStandbyRules, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.app.RunningServiceInfoCompat[] getRunningAppServiceForPackage(java.lang.String pkgName, int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.app.RunningServiceInfoCompat[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeInt(userId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRunningAppServiceForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArray(github.tornaco.android.thanos.core.app.RunningServiceInfoCompat.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean hasRunningServiceForPackage(java.lang.String pkgName, int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeInt(userId); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasRunningServiceForPackage, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public android.content.pm.UserInfo getUserInfo(int userHandle) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.content.pm.UserInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userHandle); - boolean _status = mRemote.transact(Stub.TRANSACTION_getUserInfo, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, android.content.pm.UserInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean stopService(android.content.Intent intent) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_stopService, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean killBackgroundProcesses(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_killBackgroundProcesses, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isSmartStandByStopServiceEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByStopServiceEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartStandByStopServiceEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByStopServiceEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isSmartStandByInactiveEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByInactiveEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartStandByInactiveEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByInactiveEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isSmartStandByByPassIfHasNotificationEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByByPassIfHasNotificationEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartStandByByPassIfHasNotificationEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByByPassIfHasNotificationEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isSmartStandByBlockBgServiceStartEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByBlockBgServiceStartEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartStandByBlockBgServiceStartEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByBlockBgServiceStartEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getStartRecordAllowedPackages() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordAllowedPackages, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArrayList(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public long getStartRecordsAllowedCount() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsAllowedCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public long getStartRecordAllowedCountByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordAllowedCountByPackageName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getStartRecordsAllowedByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsAllowedByPackageName, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getStartRecordsBlockedByPackageName(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getStartRecordsBlockedByPackageName, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void resetStartRecordsAllowed() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_resetStartRecordsAllowed, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getAllStartRecordsWithRes(int appFlags, boolean allowed, boolean blocked) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(appFlags); - _data.writeInt(((allowed)?(1):(0))); - _data.writeInt(((blocked)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRecordsWithRes, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllStartRecords(int appFlags) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(appFlags); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRecords, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(p); - boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void dumpCpu(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(p); - boolean _status = mRemote.transact(Stub.TRANSACTION_dumpCpu, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setNetStatTrackerEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setNetStatTrackerEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isNetStatTrackerEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isNetStatTrackerEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean checkGetContentProvider(java.lang.String callerPkg, java.lang.String name, int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(callerPkg); - _data.writeString(name); - _data.writeInt(userId); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkGetContentProvider, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllStartRecordsForPackageSetWithRes(java.lang.String pkgSetId, boolean allowed, boolean blocked) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgSetId); - _data.writeInt(((allowed)?(1):(0))); - _data.writeInt(((blocked)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllStartRecordsForPackageSetWithRes, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.start.StartRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // ****************************************************************** - // CAF API - // 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isCachedAppsFreezerSupported, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void freezeApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_freezeApp, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unfreezeApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_unfreezeApp, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void freezeAppProcess(long pid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(pid); - boolean _status = mRemote.transact(Stub.TRANSACTION_freezeAppProcess, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unfreezeAppProcess(long pid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(pid); - boolean _status = mRemote.transact(Stub.TRANSACTION_unfreezeAppProcess, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void updateProcessCpuUsageStats() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_updateProcessCpuUsageStats, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List queryProcessCpuUsageStats(long[] pids, boolean update) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLongArray(pids); - _data.writeInt(((update)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_queryProcessCpuUsageStats, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.usage.ProcessCpuUsageStats.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public float queryCpuUsageRatio(long[] pids, boolean update) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - float _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLongArray(pids); - _data.writeInt(((update)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_queryCpuUsageRatio, _data, _reply, 0); - _reply.readException(); - _result = _reply.readFloat(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean killProcess(long pid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(pid); - boolean _status = mRemote.transact(Stub.TRANSACTION_killProcess, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.os.SwapInfo getSwapInfo() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.os.SwapInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSwapInfo, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.os.SwapInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // ****************************************************************** - // Block API - // 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); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((block)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockAllReceiver, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isBlockAllReceiver(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBlockAllReceiver, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBlockAllService(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); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((block)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockAllService, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isBlockAllService(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBlockAllService, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBlockAllProvider(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); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((block)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockAllProvider, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isBlockAllProvider(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBlockAllProvider, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(pid); - boolean _status = mRemote.transact(Stub.TRANSACTION_getProcessStartTime, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isAppForeground(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isAppForeground, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean hasRunningForegroundService(github.tornaco.android.thanos.core.pm.Pkg pkg, int foregroundServicetype) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(foregroundServicetype); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasRunningForegroundService, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getTopVisibleActivities() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getTopVisibleActivities, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.ActivityAssistInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean checkStartActivity(android.content.Intent intent, int callerUid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - _data.writeInt(callerUid); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkStartActivity, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isBgTaskCleanUpSkipForegroundEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isBgTaskCleanUpSkipForegroundEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setBgTaskCleanUpSkipForegroundEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBgTaskCleanUpSkipForegroundEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - /** 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, processName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPid, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - /** 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, processName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_killProcessByName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void killProcessByNames(java.util.List processNames) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedList(_data, processNames, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_killProcessByNames, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean dumpHeap(java.lang.String process) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(process); - boolean _status = mRemote.transact(Stub.TRANSACTION_dumpHeap, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.pm.Pkg getCurrentFrontPkg() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.pm.Pkg _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getCurrentFrontPkg, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isSmartStandByByPassIfHasVisibleWindows() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByByPassIfHasVisibleWindows, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartStandByByPassIfHasVisibleWindowsEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByByPassIfHasVisibleWindowsEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public float getTotalCpuPercent(boolean update) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - float _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((update)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getTotalCpuPercent, _data, _reply, 0); - _reply.readException(); - _result = _reply.readFloat(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getTopNCpuUsagePackages(int n, boolean update) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(n); - _data.writeInt(((update)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getTopNCpuUsagePackages, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.usage.PkgCpuUsageStats.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isPkgResident(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgResident, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPkgResident(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean resident) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((resident)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgResident, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPkgRecentTaskBlurMode(github.tornaco.android.thanos.core.pm.Pkg pkg, int mode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(mode); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgRecentTaskBlurMode, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public int getPkgRecentTaskBlurMode(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPkgRecentTaskBlurMode, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isSmartStandByUnbindServiceEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartStandByUnbindServiceEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartStandByUnbindServiceEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartStandByUnbindServiceEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_getCurrentFrontApp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_forceStopPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_idlePackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_isPackageIdle = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_checkBroadcastingIntent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_checkService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_checkRestartService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_checkBroadcast = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_checkStartProcess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_onStartProcessLocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_getRunningAppProcess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_getRunningAppPackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_getRunningServiceLegacy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_getRunningAppProcessLegacy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_getRunningAppsCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_getRunningAppProcessForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_isPackageRunning = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_getStartRecordsByPackageName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - static final int TRANSACTION_getStartRecordBlockedPackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); - static final int TRANSACTION_getStartRecordsBlockedCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); - static final int TRANSACTION_getStartRecordBlockedCountByPackageName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - static final int TRANSACTION_isStartBlockEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); - static final int TRANSACTION_setStartBlockEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); - static final int TRANSACTION_setPkgStartBlockEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); - static final int TRANSACTION_isPkgStartBlocking = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); - static final int TRANSACTION_isCleanUpOnTaskRemovalEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); - static final int TRANSACTION_setCleanUpOnTaskRemovalEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); - static final int TRANSACTION_setPkgCleanUpOnTaskRemovalEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); - static final int TRANSACTION_isPkgCleanUpOnTaskRemovalEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); - static final int TRANSACTION_isBgRestrictEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); - static final int TRANSACTION_setBgRestrictEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); - static final int TRANSACTION_setPkgBgRestrictEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); - static final int TRANSACTION_isPkgBgRestricted = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); - static final int TRANSACTION_setBgRestrictNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); - static final int TRANSACTION_isBgRestrictNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); - static final int TRANSACTION_isRecentTaskBlurEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); - static final int TRANSACTION_setRecentTaskBlurEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 36); - static final int TRANSACTION_setPkgRecentTaskBlurEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 37); - static final int TRANSACTION_isPkgRecentTaskBlurEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 38); - static final int TRANSACTION_isBgTaskCleanUpSkipAudioFocusedAppEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 39); - static final int TRANSACTION_setBgTaskCleanUpSkipAudioFocusedAppEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 40); - static final int TRANSACTION_isBgTaskCleanUpSkipWhichHasNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 41); - static final int TRANSACTION_setBgTaskCleanUpSkipWhichHasNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 42); - static final int TRANSACTION_setBgTaskCleanUpDelayTimeMills = (android.os.IBinder.FIRST_CALL_TRANSACTION + 43); - static final int TRANSACTION_getBgTaskCleanUpDelayTimeMills = (android.os.IBinder.FIRST_CALL_TRANSACTION + 44); - static final int TRANSACTION_notifyTaskCreated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 45); - static final int TRANSACTION_getMemoryInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 46); - static final int TRANSACTION_getProcessPss = (android.os.IBinder.FIRST_CALL_TRANSACTION + 47); - static final int TRANSACTION_onApplicationCrashing = (android.os.IBinder.FIRST_CALL_TRANSACTION + 48); - static final int TRANSACTION_getPackageNameForTaskId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 49); - static final int TRANSACTION_isPlatformAppIdleEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 50); - static final int TRANSACTION_isSmartStandByEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 51); - static final int TRANSACTION_setSmartStandByEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 52); - static final int TRANSACTION_setPkgSmartStandByEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 53); - static final int TRANSACTION_isPkgSmartStandByEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 54); - static final int TRANSACTION_getLastRecentUsedPackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 55); - static final int TRANSACTION_getRecentTaskExcludeSettingForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 56); - static final int TRANSACTION_setRecentTaskExcludeSettingForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 57); - static final int TRANSACTION_isBgTaskCleanUpSkipWhenHasRecentTaskEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 58); - static final int TRANSACTION_setBgTaskCleanUpSkipWhenHasRecentTaskEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 59); - static final int TRANSACTION_launchAppDetailsActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 60); - static final int TRANSACTION_resetStartRecordsBlocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 61); - static final int TRANSACTION_addApp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 62); - static final int TRANSACTION_isStartRuleEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 63); - static final int TRANSACTION_setStartRuleEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 64); - static final int TRANSACTION_addStartRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 65); - static final int TRANSACTION_deleteStartRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 66); - static final int TRANSACTION_getAllStartRules = (android.os.IBinder.FIRST_CALL_TRANSACTION + 67); - static final int TRANSACTION_isStandbyRuleEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 68); - static final int TRANSACTION_setStandbyRuleEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 69); - static final int TRANSACTION_addStandbyRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 70); - static final int TRANSACTION_deleteStandbyRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 71); - static final int TRANSACTION_getAllStandbyRules = (android.os.IBinder.FIRST_CALL_TRANSACTION + 72); - static final int TRANSACTION_getRunningAppServiceForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 73); - static final int TRANSACTION_hasRunningServiceForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 74); - static final int TRANSACTION_getUserInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 75); - static final int TRANSACTION_stopService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 76); - static final int TRANSACTION_killBackgroundProcesses = (android.os.IBinder.FIRST_CALL_TRANSACTION + 77); - static final int TRANSACTION_isSmartStandByStopServiceEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 78); - static final int TRANSACTION_setSmartStandByStopServiceEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 79); - static final int TRANSACTION_isSmartStandByInactiveEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 80); - static final int TRANSACTION_setSmartStandByInactiveEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 81); - static final int TRANSACTION_isSmartStandByByPassIfHasNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 82); - static final int TRANSACTION_setSmartStandByByPassIfHasNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 83); - static final int TRANSACTION_isSmartStandByBlockBgServiceStartEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 84); - static final int TRANSACTION_setSmartStandByBlockBgServiceStartEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 85); - static final int TRANSACTION_getStartRecordAllowedPackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 86); - static final int TRANSACTION_getStartRecordsAllowedCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 87); - static final int TRANSACTION_getStartRecordAllowedCountByPackageName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 88); - static final int TRANSACTION_getStartRecordsAllowedByPackageName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 89); - static final int TRANSACTION_getStartRecordsBlockedByPackageName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 90); - static final int TRANSACTION_resetStartRecordsAllowed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 91); - static final int TRANSACTION_getAllStartRecordsWithRes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 92); - static final int TRANSACTION_getAllStartRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 93); - static final int TRANSACTION_dump = (android.os.IBinder.FIRST_CALL_TRANSACTION + 94); - static final int TRANSACTION_dumpCpu = (android.os.IBinder.FIRST_CALL_TRANSACTION + 95); - static final int TRANSACTION_setNetStatTrackerEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 96); - static final int TRANSACTION_isNetStatTrackerEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 97); - static final int TRANSACTION_checkGetContentProvider = (android.os.IBinder.FIRST_CALL_TRANSACTION + 98); - static final int TRANSACTION_getAllStartRecordsForPackageSetWithRes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 99); - static final int TRANSACTION_isCachedAppsFreezerSupported = (android.os.IBinder.FIRST_CALL_TRANSACTION + 100); - static final int TRANSACTION_freezeApp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 101); - static final int TRANSACTION_unfreezeApp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 102); - static final int TRANSACTION_freezeAppProcess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 103); - static final int TRANSACTION_unfreezeAppProcess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 104); - static final int TRANSACTION_updateProcessCpuUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 105); - static final int TRANSACTION_queryProcessCpuUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 106); - static final int TRANSACTION_queryCpuUsageRatio = (android.os.IBinder.FIRST_CALL_TRANSACTION + 107); - static final int TRANSACTION_killProcess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 108); - static final int TRANSACTION_getSwapInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 109); - static final int TRANSACTION_setBlockAllReceiver = (android.os.IBinder.FIRST_CALL_TRANSACTION + 110); - static final int TRANSACTION_isBlockAllReceiver = (android.os.IBinder.FIRST_CALL_TRANSACTION + 111); - static final int TRANSACTION_setBlockAllService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 112); - static final int TRANSACTION_isBlockAllService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 113); - static final int TRANSACTION_setBlockAllProvider = (android.os.IBinder.FIRST_CALL_TRANSACTION + 114); - static final int TRANSACTION_isBlockAllProvider = (android.os.IBinder.FIRST_CALL_TRANSACTION + 115); - static final int TRANSACTION_getProcessStartTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 116); - static final int TRANSACTION_isAppForeground = (android.os.IBinder.FIRST_CALL_TRANSACTION + 117); - static final int TRANSACTION_hasRunningForegroundService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 118); - static final int TRANSACTION_getTopVisibleActivities = (android.os.IBinder.FIRST_CALL_TRANSACTION + 119); - static final int TRANSACTION_checkStartActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 120); - static final int TRANSACTION_isBgTaskCleanUpSkipForegroundEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 121); - static final int TRANSACTION_setBgTaskCleanUpSkipForegroundEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 122); - static final int TRANSACTION_getPid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 123); - static final int TRANSACTION_killProcessByName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 124); - static final int TRANSACTION_killProcessByNames = (android.os.IBinder.FIRST_CALL_TRANSACTION + 125); - static final int TRANSACTION_dumpHeap = (android.os.IBinder.FIRST_CALL_TRANSACTION + 126); - static final int TRANSACTION_getCurrentFrontPkg = (android.os.IBinder.FIRST_CALL_TRANSACTION + 127); - static final int TRANSACTION_isSmartStandByByPassIfHasVisibleWindows = (android.os.IBinder.FIRST_CALL_TRANSACTION + 128); - static final int TRANSACTION_setSmartStandByByPassIfHasVisibleWindowsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 129); - static final int TRANSACTION_getTotalCpuPercent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 130); - static final int TRANSACTION_getTopNCpuUsagePackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 131); - static final int TRANSACTION_isPkgResident = (android.os.IBinder.FIRST_CALL_TRANSACTION + 132); - static final int TRANSACTION_setPkgResident = (android.os.IBinder.FIRST_CALL_TRANSACTION + 133); - static final int TRANSACTION_setPkgRecentTaskBlurMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 134); - 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); - } - /** @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; - public boolean isPackageIdle(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public boolean checkBroadcastingIntent(android.content.Intent intent) throws android.os.RemoteException; - public boolean checkService(android.content.Intent intent, android.content.ComponentName service, int callerUid, int userId) throws android.os.RemoteException; - public boolean checkRestartService(java.lang.String packageName, android.content.ComponentName componentName) throws android.os.RemoteException; - public boolean checkBroadcast(android.content.Intent intent, int receiverUid, int callerUid) throws android.os.RemoteException; - public boolean checkStartProcess(java.lang.String processName, android.content.pm.ApplicationInfo applicationInfo, java.lang.String hostType, java.lang.String hostName) throws android.os.RemoteException; - public void onStartProcessLocked(android.content.pm.ApplicationInfo appInfo) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.process.ProcessRecord[] getRunningAppProcess() throws android.os.RemoteException; - public java.util.List getRunningAppPackages() throws android.os.RemoteException; - public java.util.List getRunningServiceLegacy(int max) throws android.os.RemoteException; - public java.util.List getRunningAppProcessLegacy() throws android.os.RemoteException; - public int getRunningAppsCount() throws android.os.RemoteException; - public java.util.List getRunningAppProcessForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public boolean isPackageRunning(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public java.util.List getStartRecordsByPackageName(java.lang.String pkgName) throws android.os.RemoteException; - public java.util.List getStartRecordBlockedPackages() throws android.os.RemoteException; - 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; - public boolean isPkgBgRestricted(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - 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; - public android.app.ActivityManager.MemoryInfo getMemoryInfo() throws android.os.RemoteException; - public long[] getProcessPss(int[] pids) throws android.os.RemoteException; - public void onApplicationCrashing(java.lang.String eventType, java.lang.String processName, github.tornaco.android.thanos.core.process.ProcessRecord process, java.lang.String stackTrace) throws android.os.RemoteException; - public java.lang.String getPackageNameForTaskId(int taskId) throws android.os.RemoteException; - public int isPlatformAppIdleEnabled() throws android.os.RemoteException; - public boolean isSmartStandByEnabled() throws android.os.RemoteException; - public void setSmartStandByEnabled(boolean enable) throws android.os.RemoteException; - public void setPkgSmartStandByEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; - public boolean isPkgSmartStandByEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public java.util.List getLastRecentUsedPackages(int count) throws android.os.RemoteException; - 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; - public void resetStartRecordsBlocked() throws android.os.RemoteException; - public void addApp(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public boolean isStartRuleEnabled() throws android.os.RemoteException; - public void setStartRuleEnabled(boolean enable) throws android.os.RemoteException; - public void addStartRule(java.lang.String rule) throws android.os.RemoteException; - public void deleteStartRule(java.lang.String rule) throws android.os.RemoteException; - public java.lang.String[] getAllStartRules() throws android.os.RemoteException; - public boolean isStandbyRuleEnabled() throws android.os.RemoteException; - public void setStandbyRuleEnabled(boolean enable) throws android.os.RemoteException; - public void addStandbyRule(java.lang.String rule) throws android.os.RemoteException; - public void deleteStandbyRule(java.lang.String rule) throws android.os.RemoteException; - public java.lang.String[] getAllStandbyRules() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.app.RunningServiceInfoCompat[] getRunningAppServiceForPackage(java.lang.String pkgName, int userId) throws android.os.RemoteException; - public boolean hasRunningServiceForPackage(java.lang.String pkgName, int userId) throws android.os.RemoteException; - public android.content.pm.UserInfo getUserInfo(int userHandle) throws android.os.RemoteException; - public boolean stopService(android.content.Intent intent) throws android.os.RemoteException; - public boolean killBackgroundProcesses(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public boolean isSmartStandByStopServiceEnabled() throws android.os.RemoteException; - public void setSmartStandByStopServiceEnabled(boolean enable) throws android.os.RemoteException; - public boolean isSmartStandByInactiveEnabled() throws android.os.RemoteException; - public void setSmartStandByInactiveEnabled(boolean enable) throws android.os.RemoteException; - public boolean isSmartStandByByPassIfHasNotificationEnabled() throws android.os.RemoteException; - public void setSmartStandByByPassIfHasNotificationEnabled(boolean enable) throws android.os.RemoteException; - public boolean isSmartStandByBlockBgServiceStartEnabled() throws android.os.RemoteException; - public void setSmartStandByBlockBgServiceStartEnabled(boolean enable) throws android.os.RemoteException; - public java.util.List getStartRecordAllowedPackages() throws android.os.RemoteException; - public long getStartRecordsAllowedCount() throws android.os.RemoteException; - public long getStartRecordAllowedCountByPackageName(java.lang.String pkgName) throws android.os.RemoteException; - public java.util.List getStartRecordsAllowedByPackageName(java.lang.String pkgName) throws android.os.RemoteException; - public java.util.List getStartRecordsBlockedByPackageName(java.lang.String pkgName) throws android.os.RemoteException; - public void resetStartRecordsAllowed() throws android.os.RemoteException; - public java.util.List getAllStartRecordsWithRes(int appFlags, boolean allowed, boolean blocked) throws android.os.RemoteException; - public java.util.List getAllStartRecords(int appFlags) throws android.os.RemoteException; - public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException; - public void dumpCpu(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException; - public void setNetStatTrackerEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isNetStatTrackerEnabled() throws android.os.RemoteException; - public boolean checkGetContentProvider(java.lang.String callerPkg, java.lang.String name, int userId) throws android.os.RemoteException; - public java.util.List getAllStartRecordsForPackageSetWithRes(java.lang.String pkgSetId, boolean allowed, boolean blocked) throws android.os.RemoteException; - // ****************************************************************** - // CAF API - // 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; - public void freezeAppProcess(long pid) throws android.os.RemoteException; - public void unfreezeAppProcess(long pid) throws android.os.RemoteException; - public void updateProcessCpuUsageStats() throws android.os.RemoteException; - public java.util.List queryProcessCpuUsageStats(long[] pids, boolean update) throws android.os.RemoteException; - public float queryCpuUsageRatio(long[] pids, boolean update) throws android.os.RemoteException; - public boolean killProcess(long pid) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.os.SwapInfo getSwapInfo() throws android.os.RemoteException; - // ****************************************************************** - // Block API - // 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; - public boolean isBlockAllService(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - 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; - public java.util.List getTopVisibleActivities() throws android.os.RemoteException; - 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 */ - 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 */ - 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; - public github.tornaco.android.thanos.core.pm.Pkg getCurrentFrontPkg() throws android.os.RemoteException; - public boolean isSmartStandByByPassIfHasVisibleWindows() throws android.os.RemoteException; - public void setSmartStandByByPassIfHasVisibleWindowsEnabled(boolean enable) throws android.os.RemoteException; - public float getTotalCpuPercent(boolean update) throws android.os.RemoteException; - public java.util.List getTopNCpuUsagePackages(int n, boolean update) throws android.os.RemoteException; - public boolean isPkgResident(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void setPkgResident(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean resident) throws android.os.RemoteException; - public void setPkgRecentTaskBlurMode(github.tornaco.android.thanos.core.pm.Pkg pkg, int mode) throws android.os.RemoteException; - 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 deleted file mode 100644 index aa8518512..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityLifecycleListener.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IActivityLifecycleListener. */ - public static class Default implements github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener - { - @Override public void onAboutToLaunchActivity(android.content.Intent intent) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener))) { - return ((github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener)iin); - } - return new github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onAboutToLaunchActivity: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - this.onAboutToLaunchActivity(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onAboutToLaunchActivity(android.content.Intent intent) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onAboutToLaunchActivity, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_onAboutToLaunchActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/app/activity/IActivityStackSupervisor.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityStackSupervisor.java deleted file mode 100644 index 96c22be3c..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IActivityStackSupervisor.java +++ /dev/null @@ -1,1543 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IActivityStackSupervisor. */ - public static class Default implements github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor - { - /** @deprecated use {@link #replaceActivityStartingIntent} instead */ - @Override public boolean checkActivity(android.content.ComponentName componentName, int userId, android.os.IBinder resultTo) throws android.os.RemoteException - { - return false; - } - @Override public android.content.Intent replaceActivityStartingIntent(android.content.Intent intent, int userId, android.os.IBinder resultTo, java.lang.String callingPkgName) throws android.os.RemoteException - { - return null; - } - @Override public boolean shouldVerifyActivityStarting(android.content.ComponentName componentName, java.lang.String pkg, java.lang.String source) throws android.os.RemoteException - { - return false; - } - @Override public java.lang.String getCurrentFrontApp() throws android.os.RemoteException - { - return null; - } - @Override public void setAppLockEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isAppLockEnabled() throws android.os.RemoteException - { - return false; - } - @Override public boolean isPackageLocked(java.lang.String pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setPackageLocked(java.lang.String pkg, boolean locked) throws android.os.RemoteException - { - } - @Override public void setVerifyResult(int request, int result, int reason) throws android.os.RemoteException - { - } - @Override public void addComponentReplacement(github.tornaco.android.thanos.core.app.component.ComponentReplacement replacement) throws android.os.RemoteException - { - } - @Override public void removeComponentReplacement(github.tornaco.android.thanos.core.app.component.ComponentReplacement replacement) throws android.os.RemoteException - { - } - @Override public java.util.List getComponentReplacements() throws android.os.RemoteException - { - return null; - } - @Override public void setActivityTrampolineEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isActivityTrampolineEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setShowCurrentComponentViewEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isShowCurrentComponentViewEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void registerTopPackageChangeListener(github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener listener) throws android.os.RemoteException - { - } - @Override public void unRegisterTopPackageChangeListener(github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener listener) throws android.os.RemoteException - { - } - @Override public boolean isVerifyOnScreenOffEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setVerifyOnScreenOffEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isVerifyOnAppSwitchEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setVerifyOnAppSwitchEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isVerifyOnTaskRemovedEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setVerifyOnTaskRemovedEnabled(boolean enabled) throws android.os.RemoteException - { - } - // 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; - } - @Override public void reportOnActivityStopped(android.os.IBinder token) throws android.os.RemoteException - { - } - @Override public void reportOnActivityResumed(android.os.IBinder token) throws android.os.RemoteException - { - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - } - @Override public void registerActivityLifecycleListener(github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener listener) throws android.os.RemoteException - { - } - @Override public void unRegisterActivityLifecycleListener(github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener listener) throws android.os.RemoteException - { - } - @Override public void addAppLockWhiteListComponents(java.util.List componentName) throws android.os.RemoteException - { - } - @Override public void removeAppLockWhiteListComponents(java.util.List componentName) throws android.os.RemoteException - { - } - @Override public java.util.List getAppLockWhiteListComponents() throws android.os.RemoteException - { - return null; - } - @Override public int getLaunchOtherAppSetting(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return 0; - } - @Override public void setLaunchOtherAppSetting(github.tornaco.android.thanos.core.pm.Pkg pkg, int setting) throws android.os.RemoteException - { - } - @Override public boolean isLaunchOtherAppBlockerEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setLaunchOtherAppBlockerEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void addLaunchOtherAppRule(java.lang.String rule) throws android.os.RemoteException - { - } - @Override public void deleteLaunchOtherAppRule(java.lang.String rule) throws android.os.RemoteException - { - } - @Override public java.lang.String[] getAllLaunchOtherAppRules() throws android.os.RemoteException - { - return null; - } - @Override public void removePkgFromLaunchOtherAppAllowList(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.pm.Pkg pkgToRemove) throws android.os.RemoteException - { - } - @Override public void addPkgToLaunchOtherAppAllowList(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.pm.Pkg pkgToAdd) throws android.os.RemoteException - { - } - @Override public java.util.List getLaunchOtherAppAllowListOrNull(github.tornaco.android.thanos.core.pm.Pkg callerPkg) throws android.os.RemoteException - { - return null; - } - @Override public int getLockMethod() throws android.os.RemoteException - { - return 0; - } - @Override public void setLockMethod(int method) throws android.os.RemoteException - { - } - @Override public void setLockPattern(java.lang.String pattern) throws android.os.RemoteException - { - } - @Override public java.lang.String getLockPattern() throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor))) { - return ((github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor)iin); - } - return new github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_checkActivity: - { - android.content.ComponentName _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); - int _arg1; - _arg1 = data.readInt(); - android.os.IBinder _arg2; - _arg2 = data.readStrongBinder(); - boolean _result = this.checkActivity(_arg0, _arg1, _arg2); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_replaceActivityStartingIntent: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - int _arg1; - _arg1 = data.readInt(); - android.os.IBinder _arg2; - _arg2 = data.readStrongBinder(); - java.lang.String _arg3; - _arg3 = data.readString(); - android.content.Intent _result = this.replaceActivityStartingIntent(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_shouldVerifyActivityStarting: - { - android.content.ComponentName _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); - java.lang.String _arg1; - _arg1 = data.readString(); - java.lang.String _arg2; - _arg2 = data.readString(); - boolean _result = this.shouldVerifyActivityStarting(_arg0, _arg1, _arg2); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getCurrentFrontApp: - { - java.lang.String _result = this.getCurrentFrontApp(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_setAppLockEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setAppLockEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isAppLockEnabled: - { - boolean _result = this.isAppLockEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isPackageLocked: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isPackageLocked(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPackageLocked: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPackageLocked(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_setVerifyResult: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - int _arg2; - _arg2 = data.readInt(); - this.setVerifyResult(_arg0, _arg1, _arg2); - reply.writeNoException(); - break; - } - case TRANSACTION_addComponentReplacement: - { - github.tornaco.android.thanos.core.app.component.ComponentReplacement _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR); - this.addComponentReplacement(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_removeComponentReplacement: - { - github.tornaco.android.thanos.core.app.component.ComponentReplacement _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR); - this.removeComponentReplacement(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getComponentReplacements: - { - java.util.List _result = this.getComponentReplacements(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setActivityTrampolineEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setActivityTrampolineEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isActivityTrampolineEnabled: - { - boolean _result = this.isActivityTrampolineEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setShowCurrentComponentViewEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setShowCurrentComponentViewEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isShowCurrentComponentViewEnabled: - { - boolean _result = this.isShowCurrentComponentViewEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_registerTopPackageChangeListener: - { - 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(); - break; - } - case TRANSACTION_unRegisterTopPackageChangeListener: - { - 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(); - break; - } - case TRANSACTION_isVerifyOnScreenOffEnabled: - { - boolean _result = this.isVerifyOnScreenOffEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setVerifyOnScreenOffEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setVerifyOnScreenOffEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isVerifyOnAppSwitchEnabled: - { - boolean _result = this.isVerifyOnAppSwitchEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setVerifyOnAppSwitchEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setVerifyOnAppSwitchEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isVerifyOnTaskRemovedEnabled: - { - boolean _result = this.isVerifyOnTaskRemovedEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setVerifyOnTaskRemovedEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setVerifyOnTaskRemovedEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_reportOnStartActivity: - { - java.lang.String _arg0; - _arg0 = data.readString(); - android.content.Intent _arg1; - _arg1 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - android.content.Intent _result = this.reportOnStartActivity(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_reportOnActivityStopped: - { - android.os.IBinder _arg0; - _arg0 = data.readStrongBinder(); - this.reportOnActivityStopped(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_reportOnActivityResumed: - { - android.os.IBinder _arg0; - _arg0 = data.readStrongBinder(); - this.reportOnActivityResumed(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_dump: - { - github.tornaco.android.thanos.core.IPrinter _arg0; - _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); - this.dump(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_registerActivityLifecycleListener: - { - 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(); - break; - } - case TRANSACTION_unRegisterActivityLifecycleListener: - { - 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(); - break; - } - case TRANSACTION_addAppLockWhiteListComponents: - { - java.util.List _arg0; - _arg0 = data.createTypedArrayList(android.content.ComponentName.CREATOR); - this.addAppLockWhiteListComponents(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_removeAppLockWhiteListComponents: - { - java.util.List _arg0; - _arg0 = data.createTypedArrayList(android.content.ComponentName.CREATOR); - this.removeAppLockWhiteListComponents(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getAppLockWhiteListComponents: - { - java.util.List _result = this.getAppLockWhiteListComponents(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getLaunchOtherAppSetting: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _result = this.getLaunchOtherAppSetting(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_setLaunchOtherAppSetting: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _arg1; - _arg1 = data.readInt(); - this.setLaunchOtherAppSetting(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isLaunchOtherAppBlockerEnabled: - { - boolean _result = this.isLaunchOtherAppBlockerEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setLaunchOtherAppBlockerEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setLaunchOtherAppBlockerEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_addLaunchOtherAppRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.addLaunchOtherAppRule(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_deleteLaunchOtherAppRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.deleteLaunchOtherAppRule(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllLaunchOtherAppRules: - { - java.lang.String[] _result = this.getAllLaunchOtherAppRules(); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_removePkgFromLaunchOtherAppAllowList: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - github.tornaco.android.thanos.core.pm.Pkg _arg1; - _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.removePkgFromLaunchOtherAppAllowList(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_addPkgToLaunchOtherAppAllowList: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - github.tornaco.android.thanos.core.pm.Pkg _arg1; - _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.addPkgToLaunchOtherAppAllowList(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_getLaunchOtherAppAllowListOrNull: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - java.util.List _result = this.getLaunchOtherAppAllowListOrNull(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getLockMethod: - { - int _result = this.getLockMethod(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_setLockMethod: - { - int _arg0; - _arg0 = data.readInt(); - this.setLockMethod(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setLockPattern: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.setLockPattern(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getLockPattern: - { - java.lang.String _result = this.getLockPattern(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.activity.IActivityStackSupervisor - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - /** @deprecated use {@link #replaceActivityStartingIntent} instead */ - @Override public boolean checkActivity(android.content.ComponentName componentName, int userId, android.os.IBinder resultTo) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, componentName, 0); - _data.writeInt(userId); - _data.writeStrongBinder(resultTo); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkActivity, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public android.content.Intent replaceActivityStartingIntent(android.content.Intent intent, int userId, android.os.IBinder resultTo, java.lang.String callingPkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.content.Intent _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - _data.writeInt(userId); - _data.writeStrongBinder(resultTo); - _data.writeString(callingPkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_replaceActivityStartingIntent, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, android.content.Intent.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean shouldVerifyActivityStarting(android.content.ComponentName componentName, java.lang.String pkg, java.lang.String source) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, componentName, 0); - _data.writeString(pkg); - _data.writeString(source); - boolean _status = mRemote.transact(Stub.TRANSACTION_shouldVerifyActivityStarting, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getCurrentFrontApp() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getCurrentFrontApp, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setAppLockEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setAppLockEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isAppLockEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isAppLockEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isPackageLocked(java.lang.String pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageLocked, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPackageLocked(java.lang.String pkg, boolean locked) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - _data.writeInt(((locked)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageLocked, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setVerifyResult(int request, int result, int reason) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(request); - _data.writeInt(result); - _data.writeInt(reason); - boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyResult, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addComponentReplacement(github.tornaco.android.thanos.core.app.component.ComponentReplacement replacement) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, replacement, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_addComponentReplacement, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void removeComponentReplacement(github.tornaco.android.thanos.core.app.component.ComponentReplacement replacement) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, replacement, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_removeComponentReplacement, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getComponentReplacements() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getComponentReplacements, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.app.component.ComponentReplacement.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setActivityTrampolineEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setActivityTrampolineEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isActivityTrampolineEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isActivityTrampolineEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setShowCurrentComponentViewEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setShowCurrentComponentViewEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isShowCurrentComponentViewEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isShowCurrentComponentViewEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void registerTopPackageChangeListener(github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerTopPackageChangeListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterTopPackageChangeListener(github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterTopPackageChangeListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isVerifyOnScreenOffEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isVerifyOnScreenOffEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setVerifyOnScreenOffEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyOnScreenOffEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isVerifyOnAppSwitchEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isVerifyOnAppSwitchEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setVerifyOnAppSwitchEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyOnAppSwitchEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isVerifyOnTaskRemovedEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isVerifyOnTaskRemovedEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setVerifyOnTaskRemovedEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setVerifyOnTaskRemovedEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - // 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.content.Intent _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(callingPackage); - _Parcel.writeTypedObject(_data, intent, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_reportOnStartActivity, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, android.content.Intent.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void reportOnActivityStopped(android.os.IBinder token) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder(token); - boolean _status = mRemote.transact(Stub.TRANSACTION_reportOnActivityStopped, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void reportOnActivityResumed(android.os.IBinder token) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder(token); - boolean _status = mRemote.transact(Stub.TRANSACTION_reportOnActivityResumed, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(p); - boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void registerActivityLifecycleListener(github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerActivityLifecycleListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterActivityLifecycleListener(github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterActivityLifecycleListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addAppLockWhiteListComponents(java.util.List componentName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedList(_data, componentName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_addAppLockWhiteListComponents, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void removeAppLockWhiteListComponents(java.util.List componentName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedList(_data, componentName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_removeAppLockWhiteListComponents, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getAppLockWhiteListComponents() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAppLockWhiteListComponents, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(android.content.ComponentName.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getLaunchOtherAppSetting(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLaunchOtherAppSetting, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setLaunchOtherAppSetting(github.tornaco.android.thanos.core.pm.Pkg pkg, int setting) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(setting); - boolean _status = mRemote.transact(Stub.TRANSACTION_setLaunchOtherAppSetting, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isLaunchOtherAppBlockerEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isLaunchOtherAppBlockerEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setLaunchOtherAppBlockerEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setLaunchOtherAppBlockerEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addLaunchOtherAppRule(java.lang.String rule) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(rule); - boolean _status = mRemote.transact(Stub.TRANSACTION_addLaunchOtherAppRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void deleteLaunchOtherAppRule(java.lang.String rule) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(rule); - boolean _status = mRemote.transact(Stub.TRANSACTION_deleteLaunchOtherAppRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String[] getAllLaunchOtherAppRules() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllLaunchOtherAppRules, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void removePkgFromLaunchOtherAppAllowList(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.pm.Pkg pkgToRemove) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _Parcel.writeTypedObject(_data, pkgToRemove, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_removePkgFromLaunchOtherAppAllowList, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addPkgToLaunchOtherAppAllowList(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.pm.Pkg pkgToAdd) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _Parcel.writeTypedObject(_data, pkgToAdd, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_addPkgToLaunchOtherAppAllowList, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getLaunchOtherAppAllowListOrNull(github.tornaco.android.thanos.core.pm.Pkg callerPkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, callerPkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLaunchOtherAppAllowListOrNull, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getLockMethod() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLockMethod, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setLockMethod(int method) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(method); - boolean _status = mRemote.transact(Stub.TRANSACTION_setLockMethod, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setLockPattern(java.lang.String pattern) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pattern); - boolean _status = mRemote.transact(Stub.TRANSACTION_setLockPattern, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String getLockPattern() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLockPattern, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_checkActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_replaceActivityStartingIntent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_shouldVerifyActivityStarting = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_getCurrentFrontApp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_setAppLockEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_isAppLockEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_isPackageLocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_setPackageLocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_setVerifyResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_addComponentReplacement = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_removeComponentReplacement = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_getComponentReplacements = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_setActivityTrampolineEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_isActivityTrampolineEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_setShowCurrentComponentViewEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_isShowCurrentComponentViewEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_registerTopPackageChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_unRegisterTopPackageChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - static final int TRANSACTION_isVerifyOnScreenOffEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); - static final int TRANSACTION_setVerifyOnScreenOffEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); - static final int TRANSACTION_isVerifyOnAppSwitchEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - static final int TRANSACTION_setVerifyOnAppSwitchEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); - static final int TRANSACTION_isVerifyOnTaskRemovedEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); - static final int TRANSACTION_setVerifyOnTaskRemovedEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); - static final int TRANSACTION_reportOnStartActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); - static final int TRANSACTION_reportOnActivityStopped = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); - static final int TRANSACTION_reportOnActivityResumed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); - static final int TRANSACTION_dump = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); - static final int TRANSACTION_registerActivityLifecycleListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); - static final int TRANSACTION_unRegisterActivityLifecycleListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); - static final int TRANSACTION_addAppLockWhiteListComponents = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); - static final int TRANSACTION_removeAppLockWhiteListComponents = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); - static final int TRANSACTION_getAppLockWhiteListComponents = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); - static final int TRANSACTION_getLaunchOtherAppSetting = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); - static final int TRANSACTION_setLaunchOtherAppSetting = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); - static final int TRANSACTION_isLaunchOtherAppBlockerEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); - static final int TRANSACTION_setLaunchOtherAppBlockerEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 36); - static final int TRANSACTION_addLaunchOtherAppRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 37); - static final int TRANSACTION_deleteLaunchOtherAppRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 38); - static final int TRANSACTION_getAllLaunchOtherAppRules = (android.os.IBinder.FIRST_CALL_TRANSACTION + 39); - static final int TRANSACTION_removePkgFromLaunchOtherAppAllowList = (android.os.IBinder.FIRST_CALL_TRANSACTION + 40); - static final int TRANSACTION_addPkgToLaunchOtherAppAllowList = (android.os.IBinder.FIRST_CALL_TRANSACTION + 41); - static final int TRANSACTION_getLaunchOtherAppAllowListOrNull = (android.os.IBinder.FIRST_CALL_TRANSACTION + 42); - static final int TRANSACTION_getLockMethod = (android.os.IBinder.FIRST_CALL_TRANSACTION + 43); - 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); - } - /** @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; - public java.lang.String getCurrentFrontApp() throws android.os.RemoteException; - public void setAppLockEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isAppLockEnabled() throws android.os.RemoteException; - public boolean isPackageLocked(java.lang.String pkg) throws android.os.RemoteException; - public void setPackageLocked(java.lang.String pkg, boolean locked) throws android.os.RemoteException; - public void setVerifyResult(int request, int result, int reason) throws android.os.RemoteException; - public void addComponentReplacement(github.tornaco.android.thanos.core.app.component.ComponentReplacement replacement) throws android.os.RemoteException; - public void removeComponentReplacement(github.tornaco.android.thanos.core.app.component.ComponentReplacement replacement) throws android.os.RemoteException; - public java.util.List getComponentReplacements() throws android.os.RemoteException; - public void setActivityTrampolineEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isActivityTrampolineEnabled() throws android.os.RemoteException; - public void setShowCurrentComponentViewEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isShowCurrentComponentViewEnabled() throws android.os.RemoteException; - public void registerTopPackageChangeListener(github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener listener) throws android.os.RemoteException; - public void unRegisterTopPackageChangeListener(github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener listener) throws android.os.RemoteException; - public boolean isVerifyOnScreenOffEnabled() throws android.os.RemoteException; - public void setVerifyOnScreenOffEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isVerifyOnAppSwitchEnabled() throws android.os.RemoteException; - public void setVerifyOnAppSwitchEnabled(boolean enabled) throws android.os.RemoteException; - 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; - public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException; - public void registerActivityLifecycleListener(github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener listener) throws android.os.RemoteException; - public void unRegisterActivityLifecycleListener(github.tornaco.android.thanos.core.app.activity.IActivityLifecycleListener listener) throws android.os.RemoteException; - public void addAppLockWhiteListComponents(java.util.List componentName) throws android.os.RemoteException; - public void removeAppLockWhiteListComponents(java.util.List componentName) throws android.os.RemoteException; - public java.util.List getAppLockWhiteListComponents() throws android.os.RemoteException; - public int getLaunchOtherAppSetting(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void setLaunchOtherAppSetting(github.tornaco.android.thanos.core.pm.Pkg pkg, int setting) throws android.os.RemoteException; - public boolean isLaunchOtherAppBlockerEnabled() throws android.os.RemoteException; - public void setLaunchOtherAppBlockerEnabled(boolean enable) throws android.os.RemoteException; - public void addLaunchOtherAppRule(java.lang.String rule) throws android.os.RemoteException; - public void deleteLaunchOtherAppRule(java.lang.String rule) throws android.os.RemoteException; - public java.lang.String[] getAllLaunchOtherAppRules() throws android.os.RemoteException; - public void removePkgFromLaunchOtherAppAllowList(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.pm.Pkg pkgToRemove) throws android.os.RemoteException; - public void addPkgToLaunchOtherAppAllowList(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.pm.Pkg pkgToAdd) throws android.os.RemoteException; - public java.util.List getLaunchOtherAppAllowListOrNull(github.tornaco.android.thanos.core.pm.Pkg callerPkg) throws android.os.RemoteException; - public int getLockMethod() throws android.os.RemoteException; - 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 deleted file mode 100644 index c48355a89..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/ITopPackageChangeListener.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for ITopPackageChangeListener. */ - public static class Default implements github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener - { - @Override public void onChange(github.tornaco.android.thanos.core.pm.Pkg from, github.tornaco.android.thanos.core.pm.Pkg to) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener))) { - return ((github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener)iin); - } - return new github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onChange: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - github.tornaco.android.thanos.core.pm.Pkg _arg1; - _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.onChange(_arg0, _arg1); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.activity.ITopPackageChangeListener - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onChange(github.tornaco.android.thanos.core.pm.Pkg from, github.tornaco.android.thanos.core.pm.Pkg to) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, from, 0); - _Parcel.writeTypedObject(_data, to, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onChange, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_onChange = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/app/activity/IVerifyCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IVerifyCallback.java deleted file mode 100644 index 3b4ac533a..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/activity/IVerifyCallback.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IVerifyCallback. */ - public static class Default implements github.tornaco.android.thanos.core.app.activity.IVerifyCallback - { - @Override public void onVerifyResult(int verifyResult, int reason) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.activity.IVerifyCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.activity.IVerifyCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.activity.IVerifyCallback))) { - return ((github.tornaco.android.thanos.core.app.activity.IVerifyCallback)iin); - } - return new github.tornaco.android.thanos.core.app.activity.IVerifyCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onVerifyResult: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - this.onVerifyResult(_arg0, _arg1); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.activity.IVerifyCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onVerifyResult(int verifyResult, int reason) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(verifyResult); - _data.writeInt(reason); - boolean _status = mRemote.transact(Stub.TRANSACTION_onVerifyResult, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_onVerifyResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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 deleted file mode 100644 index d10dea82b..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/event/IEventSubscriber.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IEventSubscriber. */ - public static class Default implements github.tornaco.android.thanos.core.app.event.IEventSubscriber - { - @Override public void onEvent(github.tornaco.android.thanos.core.app.event.ThanosEvent e) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.event.IEventSubscriber interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.event.IEventSubscriber asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.event.IEventSubscriber))) { - return ((github.tornaco.android.thanos.core.app.event.IEventSubscriber)iin); - } - return new github.tornaco.android.thanos.core.app.event.IEventSubscriber.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onEvent: - { - github.tornaco.android.thanos.core.app.event.ThanosEvent _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.app.event.ThanosEvent.CREATOR); - this.onEvent(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.event.IEventSubscriber - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onEvent(github.tornaco.android.thanos.core.app.event.ThanosEvent e) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, e, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onEvent, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_onEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/app/infinite/IAddPackageCallback.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IAddPackageCallback.java deleted file mode 100644 index 541175e60..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IAddPackageCallback.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IAddPackageCallback. */ - public static class Default implements github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback - { - @Override public void onSuccess(int userId) throws android.os.RemoteException - { - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback))) { - return ((github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback)iin); - } - return new github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onSuccess: - { - int _arg0; - _arg0 = data.readInt(); - this.onSuccess(_arg0); - break; - } - case TRANSACTION_onError: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - this.onError(_arg0, _arg1); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onSuccess(int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(errorMessage); - _data.writeInt(errorCode); - boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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 deleted file mode 100644 index 8041555db..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IEnableCallback.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IEnableCallback. */ - public static class Default implements github.tornaco.android.thanos.core.app.infinite.IEnableCallback - { - @Override public void onSuccess(int userId) throws android.os.RemoteException - { - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.infinite.IEnableCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.infinite.IEnableCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.infinite.IEnableCallback))) { - return ((github.tornaco.android.thanos.core.app.infinite.IEnableCallback)iin); - } - return new github.tornaco.android.thanos.core.app.infinite.IEnableCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onSuccess: - { - int _arg0; - _arg0 = data.readInt(); - this.onSuccess(_arg0); - break; - } - case TRANSACTION_onError: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - this.onError(_arg0, _arg1); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.IEnableCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onSuccess(int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(errorMessage); - _data.writeInt(errorCode); - boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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 deleted file mode 100644 index 2c25590a3..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/ILaunchPackageCallback.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for ILaunchPackageCallback. */ - public static class Default implements github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback - { - @Override public void onSuccess() throws android.os.RemoteException - { - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback))) { - return ((github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback)iin); - } - return new github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onSuccess: - { - this.onSuccess(); - break; - } - case TRANSACTION_onError: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - this.onError(_arg0, _arg1); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onSuccess() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(errorMessage); - _data.writeInt(errorCode); - boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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 deleted file mode 100644 index 589328328..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/IRemovePackageCallback.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IRemovePackageCallback. */ - public static class Default implements github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback - { - @Override public void onSuccess() throws android.os.RemoteException - { - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback))) { - return ((github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback)iin); - } - return new github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onSuccess: - { - this.onSuccess(); - break; - } - case TRANSACTION_onError: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - this.onError(_arg0, _arg1); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onSuccess() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_onSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onError(java.lang.String errorMessage, int errorCode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(errorMessage); - _data.writeInt(errorCode); - boolean _status = mRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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 deleted file mode 100644 index 7834e1967..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/infinite/InfiniteZ.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for InfiniteZ. */ - public static class Default implements github.tornaco.android.thanos.core.app.infinite.InfiniteZ - { - @Override public void setEnabled(boolean enable, github.tornaco.android.thanos.core.app.infinite.IEnableCallback callback) throws android.os.RemoteException - { - } - @Override public boolean isEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void addPackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback callback) throws android.os.RemoteException - { - } - @Override public void removePackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback callback) throws android.os.RemoteException - { - } - @Override public void launchPackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback callback) throws android.os.RemoteException - { - } - @Override public java.util.List getInstalledPackages() throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.infinite.InfiniteZ interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.infinite.InfiniteZ asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.infinite.InfiniteZ))) { - return ((github.tornaco.android.thanos.core.app.infinite.InfiniteZ)iin); - } - return new github.tornaco.android.thanos.core.app.infinite.InfiniteZ.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_setEnabled: - { - 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(); - break; - } - case TRANSACTION_isEnabled: - { - boolean _result = this.isEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_addPackage: - { - 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(); - break; - } - case TRANSACTION_removePackage: - { - 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(); - break; - } - case TRANSACTION_launchPackage: - { - 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(); - break; - } - case TRANSACTION_getInstalledPackages: - { - java.util.List _result = this.getInstalledPackages(); - reply.writeNoException(); - _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 - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void setEnabled(boolean enable, github.tornaco.android.thanos.core.app.infinite.IEnableCallback callback) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - _data.writeStrongInterface(callback); - boolean _status = mRemote.transact(Stub.TRANSACTION_setEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void addPackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.IAddPackageCallback callback) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeStrongInterface(callback); - boolean _status = mRemote.transact(Stub.TRANSACTION_addPackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void removePackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.IRemovePackageCallback callback) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeStrongInterface(callback); - boolean _status = mRemote.transact(Stub.TRANSACTION_removePackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void launchPackage(java.lang.String pkgName, github.tornaco.android.thanos.core.app.infinite.ILaunchPackageCallback callback) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeStrongInterface(callback); - boolean _status = mRemote.transact(Stub.TRANSACTION_launchPackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getInstalledPackages() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPackages, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_setEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_isEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_addPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - 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); - } - /** @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 deleted file mode 100644 index 8f35738a6..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/usage/IUsageStatsManager.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IUsageStatsManager. */ - public static class Default implements github.tornaco.android.thanos.core.app.usage.IUsageStatsManager - { - @Override public java.util.List queryUsageStats(int intervalType, long beginTime, long endTime) throws android.os.RemoteException - { - return null; - } - @Override public java.util.Map queryAndAggregateUsageStats(long beginTime, long endTime) throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.app.usage.IUsageStatsManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.app.usage.IUsageStatsManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.app.usage.IUsageStatsManager))) { - return ((github.tornaco.android.thanos.core.app.usage.IUsageStatsManager)iin); - } - return new github.tornaco.android.thanos.core.app.usage.IUsageStatsManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_queryUsageStats: - { - int _arg0; - _arg0 = data.readInt(); - long _arg1; - _arg1 = data.readLong(); - long _arg2; - _arg2 = data.readLong(); - java.util.List _result = this.queryUsageStats(_arg0, _arg1, _arg2); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_queryAndAggregateUsageStats: - { - long _arg0; - _arg0 = data.readLong(); - long _arg1; - _arg1 = data.readLong(); - java.util.Map _result = this.queryAndAggregateUsageStats(_arg0, _arg1); - reply.writeNoException(); - if (_result == null) { - reply.writeInt(-1); - } else { - reply.writeInt(_result.size()); - _result.forEach((k, v) -> { - reply.writeString(k); - _Parcel.writeTypedObject(reply, v, 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.usage.IUsageStatsManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public java.util.List queryUsageStats(int intervalType, long beginTime, long endTime) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(intervalType); - _data.writeLong(beginTime); - _data.writeLong(endTime); - boolean _status = mRemote.transact(Stub.TRANSACTION_queryUsageStats, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(android.app.usage.UsageStats.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.Map queryAndAggregateUsageStats(long beginTime, long endTime) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.Map _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(beginTime); - _data.writeLong(endTime); - boolean _status = mRemote.transact(Stub.TRANSACTION_queryAndAggregateUsageStats, _data, _reply, 0); - _reply.readException(); - { - int N = _reply.readInt(); - _result = N < 0 ? null : new java.util.HashMap<>(); - java.util.stream.IntStream.range(0, N).forEach(i -> { - String k = _reply.readString(); - android.app.usage.UsageStats v; - v = _Parcel.readTypedObject(_reply, android.app.usage.UsageStats.CREATOR); - _result.put(k, v); - }); - } - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_queryUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_queryAndAggregateUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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; - } - } - 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/audio/IAudioManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/audio/IAudioManager.java deleted file mode 100644 index 3f5862b69..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/audio/IAudioManager.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IAudioManager. */ - public static class Default implements github.tornaco.android.thanos.core.audio.IAudioManager - { - @Override public boolean hasAudioFocus(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.audio.IAudioManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.audio.IAudioManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.audio.IAudioManager))) { - return ((github.tornaco.android.thanos.core.audio.IAudioManager)iin); - } - return new github.tornaco.android.thanos.core.audio.IAudioManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_hasAudioFocus: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.hasAudioFocus(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.audio.IAudioManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public boolean hasAudioFocus(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasAudioFocus, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_hasAudioFocus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/IBackupAgent.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupAgent.java deleted file mode 100644 index 83b7db7d5..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupAgent.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IBackupAgent. */ - public static class Default implements github.tornaco.android.thanos.core.backup.IBackupAgent - { - @Override 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 - { - } - @Override 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 - { - } - @Override public boolean restoreDefault() throws android.os.RemoteException - { - return false; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.backup.IBackupAgent interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.backup.IBackupAgent asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.backup.IBackupAgent))) { - return ((github.tornaco.android.thanos.core.backup.IBackupAgent)iin); - } - return new github.tornaco.android.thanos.core.backup.IBackupAgent.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_performBackup: - { - github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer _arg0; - _arg0 = github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer.Stub.asInterface(data.readStrongBinder()); - java.lang.String _arg1; - _arg1 = data.readString(); - java.lang.String _arg2; - _arg2 = data.readString(); - 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); - break; - } - case TRANSACTION_performRestore: - { - android.os.ParcelFileDescriptor _arg0; - _arg0 = _Parcel.readTypedObject(data, android.os.ParcelFileDescriptor.CREATOR); - java.lang.String _arg1; - _arg1 = data.readString(); - java.lang.String _arg2; - _arg2 = data.readString(); - 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); - break; - } - case TRANSACTION_restoreDefault: - { - boolean _result = this.restoreDefault(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.backup.IBackupAgent - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void 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 - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(init); - _data.writeString(domain); - _data.writeString(path); - _data.writeStrongInterface(callback); - boolean _status = mRemote.transact(Stub.TRANSACTION_performBackup, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override 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 - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pfd, 0); - _data.writeString(domain); - _data.writeString(path); - _data.writeStrongInterface(callback); - boolean _status = mRemote.transact(Stub.TRANSACTION_performRestore, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public boolean restoreDefault() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_restoreDefault, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - 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); - } - /** @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 deleted file mode 100644 index de9b680e0..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IBackupCallback.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IBackupCallback. */ - public static class Default implements github.tornaco.android.thanos.core.backup.IBackupCallback - { - @Override public void onBackupFinished(java.lang.String domain, java.lang.String path) throws android.os.RemoteException - { - } - @Override public void onRestoreFinished(java.lang.String domain, java.lang.String path) throws android.os.RemoteException - { - } - @Override public void onFail(java.lang.String message) throws android.os.RemoteException - { - } - @Override public void onProgress(java.lang.String progressMessage) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.backup.IBackupCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.backup.IBackupCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.backup.IBackupCallback))) { - return ((github.tornaco.android.thanos.core.backup.IBackupCallback)iin); - } - return new github.tornaco.android.thanos.core.backup.IBackupCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onBackupFinished: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - this.onBackupFinished(_arg0, _arg1); - break; - } - case TRANSACTION_onRestoreFinished: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - this.onRestoreFinished(_arg0, _arg1); - break; - } - case TRANSACTION_onFail: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onFail(_arg0); - break; - } - case TRANSACTION_onProgress: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onProgress(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.backup.IBackupCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onBackupFinished(java.lang.String domain, java.lang.String path) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(domain); - _data.writeString(path); - boolean _status = mRemote.transact(Stub.TRANSACTION_onBackupFinished, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onRestoreFinished(java.lang.String domain, java.lang.String path) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(domain); - _data.writeString(path); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRestoreFinished, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onFail(java.lang.String message) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(message); - boolean _status = mRemote.transact(Stub.TRANSACTION_onFail, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onProgress(java.lang.String progressMessage) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(progressMessage); - boolean _status = mRemote.transact(Stub.TRANSACTION_onProgress, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - 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); - } - /** @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; - 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/backup/IFileDescriptorConsumer.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorConsumer.java deleted file mode 100644 index 6e6763f13..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorConsumer.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer))) { - return ((github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer)iin); - } - return new github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_acceptAppParcelFileDescriptor: - { - android.os.ParcelFileDescriptor _arg0; - _arg0 = _Parcel.readTypedObject(data, android.os.ParcelFileDescriptor.CREATOR); - this.acceptAppParcelFileDescriptor(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - // 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); - _Parcel.writeTypedObject(_data, pfd, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_acceptAppParcelFileDescriptor, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_acceptAppParcelFileDescriptor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/IFileDescriptorInitializer.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorInitializer.java deleted file mode 100644 index 86eb38a3a..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/backup/IFileDescriptorInitializer.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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. */ - public static class Default implements github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer - { - @Override public void initParcelFileDescriptor(java.lang.String domain, java.lang.String path, github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer consumer) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer))) { - return ((github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer)iin); - } - return new github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_initParcelFileDescriptor: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - 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); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.backup.IFileDescriptorInitializer - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void initParcelFileDescriptor(java.lang.String domain, java.lang.String path, github.tornaco.android.thanos.core.backup.IFileDescriptorConsumer consumer) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(domain); - _data.writeString(path); - _data.writeStrongInterface(consumer); - boolean _status = mRemote.transact(Stub.TRANSACTION_initParcelFileDescriptor, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_initParcelFileDescriptor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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 deleted file mode 100644 index f9d0a7bd7..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/input/IInputManager.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IInputManager. */ - public static class Default implements github.tornaco.android.thanos.core.input.IInputManager - { - @Override public boolean injectKey(int keyCode) throws android.os.RemoteException - { - return false; - } - @Override public int getLastKey() throws android.os.RemoteException - { - return 0; - } - @Override public void onKeyEvent(android.view.KeyEvent keyEvent, java.lang.String source) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.input.IInputManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.input.IInputManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.input.IInputManager))) { - return ((github.tornaco.android.thanos.core.input.IInputManager)iin); - } - return new github.tornaco.android.thanos.core.input.IInputManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_injectKey: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.injectKey(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getLastKey: - { - int _result = this.getLastKey(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_onKeyEvent: - { - android.view.KeyEvent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.view.KeyEvent.CREATOR); - java.lang.String _arg1; - _arg1 = data.readString(); - this.onKeyEvent(_arg0, _arg1); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.input.IInputManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public boolean injectKey(int keyCode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(keyCode); - boolean _status = mRemote.transact(Stub.TRANSACTION_injectKey, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getLastKey() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLastKey, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void onKeyEvent(android.view.KeyEvent keyEvent, java.lang.String source) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, keyEvent, 0); - _data.writeString(source); - boolean _status = mRemote.transact(Stub.TRANSACTION_onKeyEvent, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - 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); - } - /** @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 deleted file mode 100644 index 3f758b7db..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationManager.java +++ /dev/null @@ -1,1125 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for INotificationManager. */ - public static class Default implements github.tornaco.android.thanos.core.n.INotificationManager - { - @Override public java.util.List getShowingNotificationRecordsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return null; - } - @Override public boolean hasShowingNotificationRecordsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public void registerObserver(github.tornaco.android.thanos.core.n.INotificationObserver obs) throws android.os.RemoteException - { - } - @Override public void unRegisterObserver(github.tornaco.android.thanos.core.n.INotificationObserver obs) throws android.os.RemoteException - { - } - @Override public void setScreenOnNotificationEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isScreenOnNotificationEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setScreenOnNotificationEnabledForPkg(java.lang.String pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isScreenOnNotificationEnabledForPkg(java.lang.String pkg) throws android.os.RemoteException - { - return false; - } - @Override public int nextNotificationId() throws android.os.RemoteException - { - return 0; - } - @Override public void setPersistOnNewNotificationEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPersistOnNewNotificationEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void cleanUpPersistNotificationRecords() throws android.os.RemoteException - { - } - @Override public java.util.List getAllNotificationRecordsByPage(int start, int limit) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getNotificationRecordsForPackage(java.lang.String packageName) throws android.os.RemoteException - { - return null; - } - @Override public void onAddNotificationRecord(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - } - @Override public void setShowToastAppInfoEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isShowToastAppInfoEnabled() throws android.os.RemoteException - { - return false; - } - @Override public boolean isNREnabled(int type) throws android.os.RemoteException - { - return false; - } - @Override public void setNREnabled(int type, boolean enabled) throws android.os.RemoteException - { - } - // For searching. - @Override public java.util.List getAllNotificationRecordsByPageAndKeyword(int start, int limit, java.lang.String keyword) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getAllNotificationRecordsByPageAndKeywordInDateRange(int start, int limit, long startTimeMills, long endTimeMills, java.lang.String keyword) throws android.os.RemoteException - { - return null; - } - @Override public void onSetPrimaryClip(android.content.ClipData clip, github.tornaco.android.thanos.core.pm.Pkg caller) throws android.os.RemoteException - { - } - @Override public void setPackageRedactionNotificationEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPackageRedactionNotificationEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setPackageRedactionNotificationTitle(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String title) throws android.os.RemoteException - { - } - @Override public java.lang.String getPackageRedactionNotificationTitle(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return null; - } - @Override public void setPackageRedactionNotificationText(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String text) throws android.os.RemoteException - { - } - @Override public java.lang.String getPackageRedactionNotificationText(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return null; - } - @Override public void setPersistAllPkgEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPersistAllPkgEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setPkgNREnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgNREnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.n.INotificationManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.n.INotificationManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.n.INotificationManager))) { - return ((github.tornaco.android.thanos.core.n.INotificationManager)iin); - } - return new github.tornaco.android.thanos.core.n.INotificationManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_getShowingNotificationRecordsForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - java.util.List _result = this.getShowingNotificationRecordsForPackage(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_hasShowingNotificationRecordsForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.hasShowingNotificationRecordsForPackage(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_registerObserver: - { - 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(); - break; - } - case TRANSACTION_unRegisterObserver: - { - 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(); - break; - } - case TRANSACTION_setScreenOnNotificationEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setScreenOnNotificationEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isScreenOnNotificationEnabled: - { - boolean _result = this.isScreenOnNotificationEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setScreenOnNotificationEnabledForPkg: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setScreenOnNotificationEnabledForPkg(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isScreenOnNotificationEnabledForPkg: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isScreenOnNotificationEnabledForPkg(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_nextNotificationId: - { - int _result = this.nextNotificationId(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_setPersistOnNewNotificationEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setPersistOnNewNotificationEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isPersistOnNewNotificationEnabled: - { - boolean _result = this.isPersistOnNewNotificationEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_cleanUpPersistNotificationRecords: - { - this.cleanUpPersistNotificationRecords(); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllNotificationRecordsByPage: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - java.util.List _result = this.getAllNotificationRecordsByPage(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getNotificationRecordsForPackage: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getNotificationRecordsForPackage(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_onAddNotificationRecord: - { - github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - this.onAddNotificationRecord(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setShowToastAppInfoEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setShowToastAppInfoEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isShowToastAppInfoEnabled: - { - boolean _result = this.isShowToastAppInfoEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isNREnabled: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.isNREnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setNREnabled: - { - int _arg0; - _arg0 = data.readInt(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setNREnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllNotificationRecordsByPageAndKeyword: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - java.lang.String _arg2; - _arg2 = data.readString(); - java.util.List _result = this.getAllNotificationRecordsByPageAndKeyword(_arg0, _arg1, _arg2); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getAllNotificationRecordsByPageAndKeywordInDateRange: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - long _arg2; - _arg2 = data.readLong(); - long _arg3; - _arg3 = data.readLong(); - java.lang.String _arg4; - _arg4 = data.readString(); - java.util.List _result = this.getAllNotificationRecordsByPageAndKeywordInDateRange(_arg0, _arg1, _arg2, _arg3, _arg4); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_onSetPrimaryClip: - { - android.content.ClipData _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.ClipData.CREATOR); - github.tornaco.android.thanos.core.pm.Pkg _arg1; - _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.onSetPrimaryClip(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_setPackageRedactionNotificationEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPackageRedactionNotificationEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPackageRedactionNotificationEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPackageRedactionNotificationEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPackageRedactionNotificationTitle: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - break; - } - case TRANSACTION_getPackageRedactionNotificationTitle: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - java.lang.String _result = this.getPackageRedactionNotificationTitle(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_setPackageRedactionNotificationText: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - break; - } - case TRANSACTION_getPackageRedactionNotificationText: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - java.lang.String _result = this.getPackageRedactionNotificationText(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_setPersistAllPkgEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setPersistAllPkgEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isPersistAllPkgEnabled: - { - boolean _result = this.isPersistAllPkgEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPkgNREnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgNREnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgNREnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgNREnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.n.INotificationManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public java.util.List getShowingNotificationRecordsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getShowingNotificationRecordsForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean hasShowingNotificationRecordsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasShowingNotificationRecordsForPackage, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void registerObserver(github.tornaco.android.thanos.core.n.INotificationObserver obs) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(obs); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerObserver, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterObserver(github.tornaco.android.thanos.core.n.INotificationObserver obs) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(obs); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterObserver, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setScreenOnNotificationEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setScreenOnNotificationEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isScreenOnNotificationEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isScreenOnNotificationEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setScreenOnNotificationEnabledForPkg(java.lang.String pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setScreenOnNotificationEnabledForPkg, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isScreenOnNotificationEnabledForPkg(java.lang.String pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - boolean _status = mRemote.transact(Stub.TRANSACTION_isScreenOnNotificationEnabledForPkg, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int nextNotificationId() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_nextNotificationId, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPersistOnNewNotificationEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPersistOnNewNotificationEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPersistOnNewNotificationEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPersistOnNewNotificationEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void cleanUpPersistNotificationRecords() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_cleanUpPersistNotificationRecords, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getAllNotificationRecordsByPage(int start, int limit) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(start); - _data.writeInt(limit); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllNotificationRecordsByPage, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getNotificationRecordsForPackage(java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getNotificationRecordsForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void onAddNotificationRecord(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, record, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onAddNotificationRecord, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setShowToastAppInfoEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setShowToastAppInfoEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isShowToastAppInfoEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isShowToastAppInfoEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isNREnabled(int type) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(type); - boolean _status = mRemote.transact(Stub.TRANSACTION_isNREnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setNREnabled(int type, boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(type); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setNREnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - // 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(start); - _data.writeInt(limit); - _data.writeString(keyword); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllNotificationRecordsByPageAndKeyword, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllNotificationRecordsByPageAndKeywordInDateRange(int start, int limit, long startTimeMills, long endTimeMills, java.lang.String keyword) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(start); - _data.writeInt(limit); - _data.writeLong(startTimeMills); - _data.writeLong(endTimeMills); - _data.writeString(keyword); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllNotificationRecordsByPageAndKeywordInDateRange, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void onSetPrimaryClip(android.content.ClipData clip, github.tornaco.android.thanos.core.pm.Pkg caller) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, clip, 0); - _Parcel.writeTypedObject(_data, caller, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onSetPrimaryClip, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPackageRedactionNotificationEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageRedactionNotificationEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPackageRedactionNotificationEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageRedactionNotificationEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPackageRedactionNotificationTitle(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String title) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeString(title); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageRedactionNotificationTitle, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String getPackageRedactionNotificationTitle(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageRedactionNotificationTitle, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPackageRedactionNotificationText(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String text) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeString(text); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageRedactionNotificationText, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String getPackageRedactionNotificationText(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageRedactionNotificationText, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPersistAllPkgEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPersistAllPkgEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPersistAllPkgEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPersistAllPkgEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPkgNREnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgNREnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgNREnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgNREnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_getShowingNotificationRecordsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_hasShowingNotificationRecordsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_registerObserver = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_unRegisterObserver = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_setScreenOnNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_isScreenOnNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_setScreenOnNotificationEnabledForPkg = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_isScreenOnNotificationEnabledForPkg = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_nextNotificationId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_setPersistOnNewNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_isPersistOnNewNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_cleanUpPersistNotificationRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_getAllNotificationRecordsByPage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_getNotificationRecordsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_onAddNotificationRecord = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_setShowToastAppInfoEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_isShowToastAppInfoEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_isNREnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - static final int TRANSACTION_setNREnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); - static final int TRANSACTION_getAllNotificationRecordsByPageAndKeyword = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); - static final int TRANSACTION_getAllNotificationRecordsByPageAndKeywordInDateRange = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - static final int TRANSACTION_onSetPrimaryClip = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); - static final int TRANSACTION_setPackageRedactionNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); - static final int TRANSACTION_isPackageRedactionNotificationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); - static final int TRANSACTION_setPackageRedactionNotificationTitle = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); - static final int TRANSACTION_getPackageRedactionNotificationTitle = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); - static final int TRANSACTION_setPackageRedactionNotificationText = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); - static final int TRANSACTION_getPackageRedactionNotificationText = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); - static final int TRANSACTION_setPersistAllPkgEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); - 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); - } - /** @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; - public void unRegisterObserver(github.tornaco.android.thanos.core.n.INotificationObserver obs) throws android.os.RemoteException; - public void setScreenOnNotificationEnabled(boolean enable) throws android.os.RemoteException; - public boolean isScreenOnNotificationEnabled() throws android.os.RemoteException; - public void setScreenOnNotificationEnabledForPkg(java.lang.String pkg, boolean enable) throws android.os.RemoteException; - public boolean isScreenOnNotificationEnabledForPkg(java.lang.String pkg) throws android.os.RemoteException; - public int nextNotificationId() throws android.os.RemoteException; - public void setPersistOnNewNotificationEnabled(boolean enable) throws android.os.RemoteException; - public boolean isPersistOnNewNotificationEnabled() throws android.os.RemoteException; - public void cleanUpPersistNotificationRecords() throws android.os.RemoteException; - public java.util.List getAllNotificationRecordsByPage(int start, int limit) throws android.os.RemoteException; - public java.util.List getNotificationRecordsForPackage(java.lang.String packageName) throws android.os.RemoteException; - public void onAddNotificationRecord(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException; - public void setShowToastAppInfoEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isShowToastAppInfoEnabled() throws android.os.RemoteException; - 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; - public void setPackageRedactionNotificationEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; - public boolean isPackageRedactionNotificationEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void setPackageRedactionNotificationTitle(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String title) throws android.os.RemoteException; - public java.lang.String getPackageRedactionNotificationTitle(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void setPackageRedactionNotificationText(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String text) throws android.os.RemoteException; - public java.lang.String getPackageRedactionNotificationText(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void setPersistAllPkgEnabled(boolean enable) throws android.os.RemoteException; - 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 deleted file mode 100644 index a73743b9e..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/n/INotificationObserver.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for INotificationObserver. */ - public static class Default implements github.tornaco.android.thanos.core.n.INotificationObserver - { - @Override public void onNewNotification(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - } - @Override public void onNotificationRemoved(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - } - @Override public void onNotificationUpdated(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - } - @Override public void onNotificationClicked(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.n.INotificationObserver interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.n.INotificationObserver asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.n.INotificationObserver))) { - return ((github.tornaco.android.thanos.core.n.INotificationObserver)iin); - } - return new github.tornaco.android.thanos.core.n.INotificationObserver.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onNewNotification: - { - github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - this.onNewNotification(_arg0); - break; - } - case TRANSACTION_onNotificationRemoved: - { - github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - this.onNotificationRemoved(_arg0); - break; - } - case TRANSACTION_onNotificationUpdated: - { - github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - this.onNotificationUpdated(_arg0); - break; - } - case TRANSACTION_onNotificationClicked: - { - github.tornaco.android.thanos.core.n.NotificationRecord _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.n.NotificationRecord.CREATOR); - this.onNotificationClicked(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.n.INotificationObserver - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onNewNotification(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, record, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onNewNotification, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onNotificationRemoved(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, record, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onNotificationRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onNotificationUpdated(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, record, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onNotificationUpdated, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onNotificationClicked(github.tornaco.android.thanos.core.n.NotificationRecord record) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, record, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onNotificationClicked, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - 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); - } - /** @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 deleted file mode 100644 index 9bd56cebb..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/net/INetworkManager.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for INetworkManager. */ - public static class Default implements github.tornaco.android.thanos.core.net.INetworkManager - { - @Override public github.tornaco.android.thanos.core.net.TrafficStats getUidTrafficStats(int uid) throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.net.INetworkManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.net.INetworkManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.net.INetworkManager))) { - return ((github.tornaco.android.thanos.core.net.INetworkManager)iin); - } - return new github.tornaco.android.thanos.core.net.INetworkManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_getUidTrafficStats: - { - int _arg0; - _arg0 = data.readInt(); - github.tornaco.android.thanos.core.net.TrafficStats _result = this.getUidTrafficStats(_arg0); - reply.writeNoException(); - _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 - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public github.tornaco.android.thanos.core.net.TrafficStats getUidTrafficStats(int uid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.net.TrafficStats _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(uid); - boolean _status = mRemote.transact(Stub.TRANSACTION_getUidTrafficStats, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.net.TrafficStats.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_getUidTrafficStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/ops/IOps.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/ops/IOps.java deleted file mode 100644 index 9cc831046..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/ops/IOps.java +++ /dev/null @@ -1,308 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IOps. */ - public static class Default implements github.tornaco.android.thanos.core.ops.IOps - { - @Override public void setMode(int code, github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String permStateName) throws android.os.RemoteException - { - } - @Override public github.tornaco.android.thanos.core.ops.PermInfo getPackagePermInfo(int code, github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String opToName(int code) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String opToPermission(int code) throws android.os.RemoteException - { - return null; - } - @Override public int getPermissionFlags(java.lang.String permName, github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return 0; - } - @Override public java.lang.String permissionFlagToString(int flag) throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.ops.IOps interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.ops.IOps asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.ops.IOps))) { - return ((github.tornaco.android.thanos.core.ops.IOps)iin); - } - return new github.tornaco.android.thanos.core.ops.IOps.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_setMode: - { - int _arg0; - _arg0 = data.readInt(); - github.tornaco.android.thanos.core.pm.Pkg _arg1; - _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(); - break; - } - case TRANSACTION_getPackagePermInfo: - { - int _arg0; - _arg0 = data.readInt(); - github.tornaco.android.thanos.core.pm.Pkg _arg1; - _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(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_opToName: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.opToName(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_opToPermission: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.opToPermission(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getPermissionFlags: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.pm.Pkg _arg1; - _arg1 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _result = this.getPermissionFlags(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_permissionFlagToString: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.permissionFlagToString(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.ops.IOps - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void setMode(int code, github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String permStateName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeString(permStateName); - boolean _status = mRemote.transact(Stub.TRANSACTION_setMode, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public github.tornaco.android.thanos.core.ops.PermInfo getPackagePermInfo(int code, github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.ops.PermInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackagePermInfo, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.ops.PermInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String opToName(int code) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - boolean _status = mRemote.transact(Stub.TRANSACTION_opToName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String opToPermission(int code) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - boolean _status = mRemote.transact(Stub.TRANSACTION_opToPermission, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getPermissionFlags(java.lang.String permName, github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(permName); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPermissionFlags, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String permissionFlagToString(int flag) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(flag); - boolean _status = mRemote.transact(Stub.TRANSACTION_permissionFlagToString, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_setMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_getPackagePermInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_opToName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - 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); - } - /** @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 deleted file mode 100644 index 15d7816c8..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/os/IServiceManager.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IServiceManager. */ - public static class Default implements github.tornaco.android.thanos.core.os.IServiceManager - { - @Override public boolean hasService(java.lang.String name) throws android.os.RemoteException - { - return false; - } - @Override public void addService(java.lang.String name, android.os.IBinder binder) throws android.os.RemoteException - { - } - @Override public android.os.IBinder getService(java.lang.String name) throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.os.IServiceManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.os.IServiceManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.os.IServiceManager))) { - return ((github.tornaco.android.thanos.core.os.IServiceManager)iin); - } - return new github.tornaco.android.thanos.core.os.IServiceManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_hasService: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.hasService(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_addService: - { - java.lang.String _arg0; - _arg0 = data.readString(); - android.os.IBinder _arg1; - _arg1 = data.readStrongBinder(); - this.addService(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_getService: - { - java.lang.String _arg0; - _arg0 = data.readString(); - android.os.IBinder _result = this.getService(_arg0); - reply.writeNoException(); - reply.writeStrongBinder(_result); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.os.IServiceManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public boolean hasService(java.lang.String name) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(name); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasService, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void addService(java.lang.String name, android.os.IBinder binder) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(name); - _data.writeStrongBinder(binder); - boolean _status = mRemote.transact(Stub.TRANSACTION_addService, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public android.os.IBinder getService(java.lang.String name) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.os.IBinder _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(name); - boolean _status = mRemote.transact(Stub.TRANSACTION_getService, _data, _reply, 0); - _reply.readException(); - _result = _reply.readStrongBinder(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - 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); - } - /** @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 deleted file mode 100644 index ecb7f8ea5..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/ICallback.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for ICallback. */ - public static class Default implements github.tornaco.android.thanos.core.plus.ICallback - { - @Override public void onRes(github.tornaco.android.thanos.core.plus.RR res) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.plus.ICallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.plus.ICallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.plus.ICallback))) { - return ((github.tornaco.android.thanos.core.plus.ICallback)iin); - } - return new github.tornaco.android.thanos.core.plus.ICallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onRes: - { - github.tornaco.android.thanos.core.plus.RR _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.plus.RR.CREATOR); - this.onRes(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.plus.ICallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onRes(github.tornaco.android.thanos.core.plus.RR res) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, res, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRes, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onRes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/plus/IRS.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/IRS.java deleted file mode 100644 index 8317e092b..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/plus/IRS.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.plus.IRS interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.plus.IRS asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.plus.IRS))) { - return ((github.tornaco.android.thanos.core.plus.IRS)iin); - } - return new github.tornaco.android.thanos.core.plus.IRS.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_bc: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - github.tornaco.android.thanos.core.plus.ICallback _arg2; - _arg2 = github.tornaco.android.thanos.core.plus.ICallback.Stub.asInterface(data.readStrongBinder()); - this.bc(_arg0, _arg1, _arg2); - reply.writeNoException(); - break; - } - case TRANSACTION_vb: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - github.tornaco.android.thanos.core.plus.ICallback _arg2; - _arg2 = github.tornaco.android.thanos.core.plus.ICallback.Stub.asInterface(data.readStrongBinder()); - this.vb(_arg0, _arg1, _arg2); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.plus.IRS - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - // 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(code); - _data.writeString(deviceId); - _data.writeStrongInterface(cb); - boolean _status = mRemote.transact(Stub.TRANSACTION_bc, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - // 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(code); - _data.writeString(deviceId); - _data.writeStrongInterface(cb); - boolean _status = mRemote.transact(Stub.TRANSACTION_vb, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_bc = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_vb = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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 deleted file mode 100644 index d5df83641..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IAddPluginCallback.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IAddPluginCallback. */ - public static class Default implements github.tornaco.android.thanos.core.pm.IAddPluginCallback - { - @Override public void onPluginAdd() throws android.os.RemoteException - { - } - @Override public void onFail(java.lang.String message) throws android.os.RemoteException - { - } - @Override public void onProgress(java.lang.String progressMessage) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.pm.IAddPluginCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.pm.IAddPluginCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.pm.IAddPluginCallback))) { - return ((github.tornaco.android.thanos.core.pm.IAddPluginCallback)iin); - } - return new github.tornaco.android.thanos.core.pm.IAddPluginCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onPluginAdd: - { - this.onPluginAdd(); - break; - } - case TRANSACTION_onFail: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onFail(_arg0); - break; - } - case TRANSACTION_onProgress: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onProgress(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.pm.IAddPluginCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onPluginAdd() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_onPluginAdd, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onFail(java.lang.String message) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(message); - boolean _status = mRemote.transact(Stub.TRANSACTION_onFail, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onProgress(java.lang.String progressMessage) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(progressMessage); - boolean _status = mRemote.transact(Stub.TRANSACTION_onProgress, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - 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); - } - /** @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 deleted file mode 100644 index 08a3aaaf1..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageEnableStateChangeListener.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPackageEnableStateChangeListener. */ - public static class Default implements github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener - { - @Override public void onPackageEnableStateChanged(java.util.List pkgs) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener))) { - return ((github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener)iin); - } - return new github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onPackageEnableStateChanged: - { - java.util.List _arg0; - _arg0 = data.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.onPackageEnableStateChanged(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onPackageEnableStateChanged(java.util.List pkgs) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedList(_data, pkgs, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageEnableStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onPackageEnableStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/pm/IPackageSetChangeListener.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageSetChangeListener.java deleted file mode 100644 index 17a719f68..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPackageSetChangeListener.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPackageSetChangeListener. */ - public static class Default implements github.tornaco.android.thanos.core.pm.IPackageSetChangeListener - { - @Override public void onPackageSetAdded(java.lang.String pkgSetId) throws android.os.RemoteException - { - } - @Override public void onPackageSetRemoved(java.lang.String pkgSetId) throws android.os.RemoteException - { - } - @Override public void onPackageSetChanged(java.lang.String pkgSetId) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.pm.IPackageSetChangeListener interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.pm.IPackageSetChangeListener asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.pm.IPackageSetChangeListener))) { - return ((github.tornaco.android.thanos.core.pm.IPackageSetChangeListener)iin); - } - return new github.tornaco.android.thanos.core.pm.IPackageSetChangeListener.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onPackageSetAdded: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onPackageSetAdded(_arg0); - break; - } - case TRANSACTION_onPackageSetRemoved: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onPackageSetRemoved(_arg0); - break; - } - case TRANSACTION_onPackageSetChanged: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onPackageSetChanged(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.pm.IPackageSetChangeListener - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onPackageSetAdded(java.lang.String pkgSetId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgSetId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageSetAdded, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onPackageSetRemoved(java.lang.String pkgSetId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgSetId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageSetRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onPackageSetChanged(java.lang.String pkgSetId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgSetId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onPackageSetChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - 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); - } - /** @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 deleted file mode 100644 index b7bd5d37b..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/IPkgManager.java +++ /dev/null @@ -1,2728 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPkgManager. */ - public static class Default implements github.tornaco.android.thanos.core.pm.IPkgManager - { - @Override public java.lang.String[] getPkgNameForUid(int uid) throws android.os.RemoteException - { - return null; - } - @Override public int getUidForPkgName(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return 0; - } - // ApplicationInfo - @Override public java.util.List getInstalledPkgs(int flags) throws android.os.RemoteException - { - return null; - } - /** @deprecated use {@link #getAppInfoForUser} instead */ - @Override public github.tornaco.android.thanos.core.pm.AppInfo getAppInfo(java.lang.String pkgName) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String[] getWhiteListPkgs() throws android.os.RemoteException - { - return null; - } - @Override public boolean isPkgInWhiteList(java.lang.String pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setComponentEnabledSetting(int userId, android.content.ComponentName componentName, int newState, int flags) throws android.os.RemoteException - { - } - @Override public int getComponentEnabledSetting(int userId, android.content.ComponentName componentName) throws android.os.RemoteException - { - return 0; - } - @Override public boolean isComponentDisabledByThanox(int userId, android.content.ComponentName componentName) throws android.os.RemoteException - { - return false; - } - @Override public boolean getApplicationEnableState(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public void setApplicationEnableState(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable, boolean tmp) throws android.os.RemoteException - { - } - @Override public java.util.List getActivities(int userId, java.lang.String packageName) throws android.os.RemoteException - { - return null; - } - @Override public int getActivitiesCount(java.lang.String packageName) throws android.os.RemoteException - { - return 0; - } - @Override public java.util.List getActivitiesInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getReceivers(int userId, java.lang.String packageName) throws android.os.RemoteException - { - return null; - } - @Override public int getReceiverCount(java.lang.String packageName) throws android.os.RemoteException - { - return 0; - } - @Override public java.util.List getReceiversInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getServices(int userId, java.lang.String packageName) throws android.os.RemoteException - { - return null; - } - @Override public int getServiceCount(java.lang.String packageName) throws android.os.RemoteException - { - return 0; - } - @Override public java.util.List getServicesInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - return null; - } - @Override public void setSmartFreezeEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isSmartFreezeEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setPkgSmartFreezeEnabled(github.tornaco.android.thanos.core.pm.Pkg pkgName, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgSmartFreezeEnabled(github.tornaco.android.thanos.core.pm.Pkg pkgName) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getSmartFreezePkgs() throws android.os.RemoteException - { - return null; - } - /** @deprecated use {@link #launchSmartFreezePkgForUser} instead */ - @Override public void launchSmartFreezePkg(java.lang.String pkgName) throws android.os.RemoteException - { - } - @Override public void setSmartFreezeScreenOffCheckEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isSmartFreezeScreenOffCheckEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartFreezeScreenOffCheckDelay(long delay) throws android.os.RemoteException - { - } - @Override public long getSmartFreezeScreenOffCheckDelay() throws android.os.RemoteException - { - return 0L; - } - @Override public android.content.Intent queryLaunchIntentForPackage(java.lang.String pkgName) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List enableAllThanoxDisabledPackages(boolean removeFromSmartFreezeList) throws android.os.RemoteException - { - return null; - } - @Override public boolean deviceHasGms() throws android.os.RemoteException - { - return false; - } - @Override public boolean verifyBillingState() throws android.os.RemoteException - { - return false; - } - /** @deprecated use {@link #launchSmartFreezePkgThenKillOriginForUser} instead */ - @Override public void launchSmartFreezePkgThenKillOrigin(java.lang.String pkgName, java.lang.String origin) throws android.os.RemoteException - { - } - @Override public boolean isProtectedWhitelistEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setProtectedWhitelistEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void addPlugin(android.os.ParcelFileDescriptor pfd, java.lang.String pluginPackageName, github.tornaco.android.thanos.core.pm.IAddPluginCallback callback) throws android.os.RemoteException - { - } - @Override public void removePlugin(java.lang.String pluginPackageName) throws android.os.RemoteException - { - } - @Override public boolean hasPlugin(java.lang.String pluginPackageName) throws android.os.RemoteException - { - return false; - } - @Override public boolean isSmartFreezeHidePackageEventEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSmartFreezeHidePackageEventEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - } - @Override public void setPackageBlockUninstallEnabled(java.lang.String pkgName, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPackageBlockUninstallEnabled(java.lang.String pkgName) throws android.os.RemoteException - { - return false; - } - @Override public void setPackageBlockClearDataEnabled(java.lang.String pkgName, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPackageBlockClearDataEnabled(java.lang.String pkgName) throws android.os.RemoteException - { - return false; - } - @Override public int getInstalledPackagesCount(int appFlags) throws android.os.RemoteException - { - return 0; - } - @Override public github.tornaco.android.thanos.core.pm.PackageSet createPackageSet(java.lang.String label) throws android.os.RemoteException - { - return null; - } - @Override public boolean removePackageSet(java.lang.String id) throws android.os.RemoteException - { - return false; - } - @Override public github.tornaco.android.thanos.core.pm.PackageSet getPackageSetById(java.lang.String id, boolean withPackages, boolean shouldFilterUserWhiteList) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getAllPackageSets(boolean withPackages) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getAllPackageSetIds() throws android.os.RemoteException - { - return null; - } - @Override public void addToPackageSet(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String id) throws android.os.RemoteException - { - } - @Override public void removeFromPackageSet(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String id) throws android.os.RemoteException - { - } - @Override public java.util.List getPackageSetThatContainsPkg(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getPackageSetLabelsThatContainsPkg(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return null; - } - @Override public void setFreezePkgWithSuspendEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isFreezePkgWithSuspendEnabled() throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getInstalledPkgsByPackageSetId(java.lang.String pkgSetId) throws android.os.RemoteException - { - return null; - } - @Override public void registerPackageSetChangeListener(github.tornaco.android.thanos.core.pm.IPackageSetChangeListener listener) throws android.os.RemoteException - { - } - @Override public void unRegisterPackageSetChangeListener(github.tornaco.android.thanos.core.pm.IPackageSetChangeListener listener) throws android.os.RemoteException - { - } - @Override public void setEnablePackageOnLaunchRequestEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isEnablePackageOnLaunchRequestEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getProviders(int userId, java.lang.String packageName) throws android.os.RemoteException - { - return null; - } - // Wrap api to skip permission check - @Override public java.lang.String[] getPackagesForUid(int uid) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String mayEnableAppOnStartActivityIntent(android.content.Intent intent, int userId) throws android.os.RemoteException - { - return null; - } - @Override public boolean isEnablePkgOnLaunchByDefault() throws android.os.RemoteException - { - return false; - } - @Override public void setEnablePkgOnLaunchByDefaultEnabled(boolean byDefault) throws android.os.RemoteException - { - } - @Override public github.tornaco.android.thanos.core.pm.AppInfo getAppInfoForUser(java.lang.String pkgName, int userId) throws android.os.RemoteException - { - return null; - } - @Override public void launchSmartFreezePkgForUser(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - } - @Override public void launchSmartFreezePkgThenKillOriginForUser(github.tornaco.android.thanos.core.pm.Pkg targetPkg, java.lang.String origin) throws android.os.RemoteException - { - } - @Override public void setDOLTipsEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isDOLTipsEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void updatePackageSetLabel(java.lang.String newLabel, java.lang.String id) throws android.os.RemoteException - { - } - @Override public void freezeAllSmartFreezePackages(github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener listener) throws android.os.RemoteException - { - } - @Override public void freezeSmartFreezePackages(java.util.List packages, github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener listener) throws android.os.RemoteException - { - } - @Override public boolean hasFreezedPackageInUserWhiteListPkgSet() throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getAllDisabledComponentsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - return null; - } - @Override public void setFreezeTipEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isFreezeTipEnabled() throws android.os.RemoteException - { - return false; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.pm.IPkgManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.pm.IPkgManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.pm.IPkgManager))) { - return ((github.tornaco.android.thanos.core.pm.IPkgManager)iin); - } - return new github.tornaco.android.thanos.core.pm.IPkgManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_getPkgNameForUid: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String[] _result = this.getPkgNameForUid(_arg0); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_getUidForPkgName: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _result = this.getUidForPkgName(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getInstalledPkgs: - { - int _arg0; - _arg0 = data.readInt(); - java.util.List _result = this.getInstalledPkgs(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getAppInfo: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.pm.AppInfo _result = this.getAppInfo(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getWhiteListPkgs: - { - java.lang.String[] _result = this.getWhiteListPkgs(); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_isPkgInWhiteList: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isPkgInWhiteList(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setComponentEnabledSetting: - { - int _arg0; - _arg0 = data.readInt(); - android.content.ComponentName _arg1; - _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(); - break; - } - case TRANSACTION_getComponentEnabledSetting: - { - int _arg0; - _arg0 = data.readInt(); - android.content.ComponentName _arg1; - _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); - int _result = this.getComponentEnabledSetting(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_isComponentDisabledByThanox: - { - int _arg0; - _arg0 = data.readInt(); - android.content.ComponentName _arg1; - _arg1 = _Parcel.readTypedObject(data, android.content.ComponentName.CREATOR); - boolean _result = this.isComponentDisabledByThanox(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getApplicationEnableState: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.getApplicationEnableState(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setApplicationEnableState: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - break; - } - case TRANSACTION_getActivities: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.util.List _result = this.getActivities(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getActivitiesCount: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _result = this.getActivitiesCount(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getActivitiesInBatch: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - int _arg2; - _arg2 = data.readInt(); - int _arg3; - _arg3 = data.readInt(); - java.util.List _result = this.getActivitiesInBatch(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getReceivers: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.util.List _result = this.getReceivers(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getReceiverCount: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _result = this.getReceiverCount(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getReceiversInBatch: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - int _arg2; - _arg2 = data.readInt(); - int _arg3; - _arg3 = data.readInt(); - java.util.List _result = this.getReceiversInBatch(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getServices: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.util.List _result = this.getServices(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getServiceCount: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _result = this.getServiceCount(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getServicesInBatch: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - int _arg2; - _arg2 = data.readInt(); - int _arg3; - _arg3 = data.readInt(); - java.util.List _result = this.getServicesInBatch(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setSmartFreezeEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartFreezeEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isSmartFreezeEnabled: - { - boolean _result = this.isSmartFreezeEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPkgSmartFreezeEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgSmartFreezeEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgSmartFreezeEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isPkgSmartFreezeEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getSmartFreezePkgs: - { - java.util.List _result = this.getSmartFreezePkgs(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_launchSmartFreezePkg: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.launchSmartFreezePkg(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setSmartFreezeScreenOffCheckEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartFreezeScreenOffCheckEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isSmartFreezeScreenOffCheckEnabled: - { - boolean _result = this.isSmartFreezeScreenOffCheckEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartFreezeScreenOffCheckDelay: - { - long _arg0; - _arg0 = data.readLong(); - this.setSmartFreezeScreenOffCheckDelay(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getSmartFreezeScreenOffCheckDelay: - { - long _result = this.getSmartFreezeScreenOffCheckDelay(); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_queryLaunchIntentForPackage: - { - java.lang.String _arg0; - _arg0 = data.readString(); - android.content.Intent _result = this.queryLaunchIntentForPackage(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_enableAllThanoxDisabledPackages: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - java.util.List _result = this.enableAllThanoxDisabledPackages(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_deviceHasGms: - { - boolean _result = this.deviceHasGms(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_verifyBillingState: - { - boolean _result = this.verifyBillingState(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_launchSmartFreezePkgThenKillOrigin: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - this.launchSmartFreezePkgThenKillOrigin(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isProtectedWhitelistEnabled: - { - boolean _result = this.isProtectedWhitelistEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setProtectedWhitelistEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setProtectedWhitelistEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_addPlugin: - { - android.os.ParcelFileDescriptor _arg0; - _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); - break; - } - case TRANSACTION_removePlugin: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.removePlugin(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_hasPlugin: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.hasPlugin(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isSmartFreezeHidePackageEventEnabled: - { - boolean _result = this.isSmartFreezeHidePackageEventEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSmartFreezeHidePackageEventEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSmartFreezeHidePackageEventEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_dump: - { - github.tornaco.android.thanos.core.IPrinter _arg0; - _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); - this.dump(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setPackageBlockUninstallEnabled: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPackageBlockUninstallEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPackageBlockUninstallEnabled: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isPackageBlockUninstallEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPackageBlockClearDataEnabled: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPackageBlockClearDataEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPackageBlockClearDataEnabled: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isPackageBlockClearDataEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getInstalledPackagesCount: - { - int _arg0; - _arg0 = data.readInt(); - int _result = this.getInstalledPackagesCount(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_createPackageSet: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.pm.PackageSet _result = this.createPackageSet(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_removePackageSet: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.removePackageSet(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getPackageSetById: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - boolean _arg2; - _arg2 = (0!=data.readInt()); - github.tornaco.android.thanos.core.pm.PackageSet _result = this.getPackageSetById(_arg0, _arg1, _arg2); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getAllPackageSets: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - java.util.List _result = this.getAllPackageSets(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getAllPackageSetIds: - { - java.util.List _result = this.getAllPackageSetIds(); - reply.writeNoException(); - reply.writeStringList(_result); - break; - } - case TRANSACTION_addToPackageSet: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - break; - } - case TRANSACTION_removeFromPackageSet: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - break; - } - case TRANSACTION_getPackageSetThatContainsPkg: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - java.util.List _result = this.getPackageSetThatContainsPkg(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getPackageSetLabelsThatContainsPkg: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - java.util.List _result = this.getPackageSetLabelsThatContainsPkg(_arg0); - reply.writeNoException(); - reply.writeStringList(_result); - break; - } - case TRANSACTION_setFreezePkgWithSuspendEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setFreezePkgWithSuspendEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isFreezePkgWithSuspendEnabled: - { - boolean _result = this.isFreezePkgWithSuspendEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getInstalledPkgsByPackageSetId: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getInstalledPkgsByPackageSetId(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_registerPackageSetChangeListener: - { - 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(); - break; - } - case TRANSACTION_unRegisterPackageSetChangeListener: - { - 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(); - break; - } - case TRANSACTION_setEnablePackageOnLaunchRequestEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setEnablePackageOnLaunchRequestEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isEnablePackageOnLaunchRequestEnabled: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - boolean _result = this.isEnablePackageOnLaunchRequestEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getProviders: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.util.List _result = this.getProviders(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getPackagesForUid: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String[] _result = this.getPackagesForUid(_arg0); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_mayEnableAppOnStartActivityIntent: - { - android.content.Intent _arg0; - _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); - break; - } - case TRANSACTION_isEnablePkgOnLaunchByDefault: - { - boolean _result = this.isEnablePkgOnLaunchByDefault(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setEnablePkgOnLaunchByDefaultEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setEnablePkgOnLaunchByDefaultEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getAppInfoForUser: - { - 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(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_launchSmartFreezePkgForUser: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - this.launchSmartFreezePkgForUser(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_launchSmartFreezePkgThenKillOriginForUser: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - break; - } - case TRANSACTION_setDOLTipsEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setDOLTipsEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isDOLTipsEnabled: - { - boolean _result = this.isDOLTipsEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_updatePackageSetLabel: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - this.updatePackageSetLabel(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_freezeAllSmartFreezePackages: - { - 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(); - break; - } - case TRANSACTION_freezeSmartFreezePackages: - { - 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(); - break; - } - case TRANSACTION_hasFreezedPackageInUserWhiteListPkgSet: - { - boolean _result = this.hasFreezedPackageInUserWhiteListPkgSet(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getAllDisabledComponentsForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setFreezeTipEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setFreezeTipEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isFreezeTipEnabled: - { - boolean _result = this.isFreezeTipEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.pm.IPkgManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public java.lang.String[] getPkgNameForUid(int uid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(uid); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPkgNameForUid, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getUidForPkgName(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getUidForPkgName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - // ApplicationInfo - @Override public java.util.List getInstalledPkgs(int flags) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(flags); - boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPkgs, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - /** @deprecated use {@link #getAppInfoForUser} instead */ - @Override public github.tornaco.android.thanos.core.pm.AppInfo getAppInfo(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.pm.AppInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAppInfo, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String[] getWhiteListPkgs() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getWhiteListPkgs, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isPkgInWhiteList(java.lang.String pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgInWhiteList, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setComponentEnabledSetting(int userId, android.content.ComponentName componentName, int newState, int flags) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _Parcel.writeTypedObject(_data, componentName, 0); - _data.writeInt(newState); - _data.writeInt(flags); - boolean _status = mRemote.transact(Stub.TRANSACTION_setComponentEnabledSetting, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public int getComponentEnabledSetting(int userId, android.content.ComponentName componentName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _Parcel.writeTypedObject(_data, componentName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getComponentEnabledSetting, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isComponentDisabledByThanox(int userId, android.content.ComponentName componentName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _Parcel.writeTypedObject(_data, componentName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isComponentDisabledByThanox, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean getApplicationEnableState(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getApplicationEnableState, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setApplicationEnableState(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable, boolean tmp) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _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); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getActivities(int userId, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getActivities, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getActivitiesCount(java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getActivitiesCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getActivitiesInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _data.writeString(packageName); - _data.writeInt(itemCountInEachBatch); - _data.writeInt(batchIndex); - boolean _status = mRemote.transact(Stub.TRANSACTION_getActivitiesInBatch, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getReceivers(int userId, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getReceivers, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getReceiverCount(java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getReceiverCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getReceiversInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _data.writeString(packageName); - _data.writeInt(itemCountInEachBatch); - _data.writeInt(batchIndex); - boolean _status = mRemote.transact(Stub.TRANSACTION_getReceiversInBatch, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getServices(int userId, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getServices, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getServiceCount(java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getServiceCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getServicesInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _data.writeString(packageName); - _data.writeInt(itemCountInEachBatch); - _data.writeInt(batchIndex); - boolean _status = mRemote.transact(Stub.TRANSACTION_getServicesInBatch, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartFreezeEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isSmartFreezeEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartFreezeEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPkgSmartFreezeEnabled(github.tornaco.android.thanos.core.pm.Pkg pkgName, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkgName, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgSmartFreezeEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgSmartFreezeEnabled(github.tornaco.android.thanos.core.pm.Pkg pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkgName, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgSmartFreezeEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getSmartFreezePkgs() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSmartFreezePkgs, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - /** @deprecated use {@link #launchSmartFreezePkgForUser} instead */ - @Override public void launchSmartFreezePkg(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkg, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setSmartFreezeScreenOffCheckEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeScreenOffCheckEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isSmartFreezeScreenOffCheckEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartFreezeScreenOffCheckEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartFreezeScreenOffCheckDelay(long delay) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(delay); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeScreenOffCheckDelay, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public long getSmartFreezeScreenOffCheckDelay() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSmartFreezeScreenOffCheckDelay, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public android.content.Intent queryLaunchIntentForPackage(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.content.Intent _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_queryLaunchIntentForPackage, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, android.content.Intent.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List enableAllThanoxDisabledPackages(boolean removeFromSmartFreezeList) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((removeFromSmartFreezeList)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_enableAllThanoxDisabledPackages, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean deviceHasGms() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_deviceHasGms, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean verifyBillingState() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_verifyBillingState, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - /** @deprecated use {@link #launchSmartFreezePkgThenKillOriginForUser} instead */ - @Override public void launchSmartFreezePkgThenKillOrigin(java.lang.String pkgName, java.lang.String origin) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeString(origin); - boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkgThenKillOrigin, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isProtectedWhitelistEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isProtectedWhitelistEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setProtectedWhitelistEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setProtectedWhitelistEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addPlugin(android.os.ParcelFileDescriptor pfd, java.lang.String pluginPackageName, github.tornaco.android.thanos.core.pm.IAddPluginCallback callback) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pfd, 0); - _data.writeString(pluginPackageName); - _data.writeStrongInterface(callback); - boolean _status = mRemote.transact(Stub.TRANSACTION_addPlugin, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void removePlugin(java.lang.String pluginPackageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pluginPackageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_removePlugin, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean hasPlugin(java.lang.String pluginPackageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pluginPackageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasPlugin, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isSmartFreezeHidePackageEventEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSmartFreezeHidePackageEventEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSmartFreezeHidePackageEventEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSmartFreezeHidePackageEventEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(p); - boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPackageBlockUninstallEnabled(java.lang.String pkgName, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageBlockUninstallEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPackageBlockUninstallEnabled(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageBlockUninstallEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPackageBlockClearDataEnabled(java.lang.String pkgName, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPackageBlockClearDataEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPackageBlockClearDataEnabled(java.lang.String pkgName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageBlockClearDataEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getInstalledPackagesCount(int appFlags) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(appFlags); - boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPackagesCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.pm.PackageSet createPackageSet(java.lang.String label) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.pm.PackageSet _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(label); - boolean _status = mRemote.transact(Stub.TRANSACTION_createPackageSet, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean removePackageSet(java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_removePackageSet, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.pm.PackageSet getPackageSetById(java.lang.String id, boolean withPackages, boolean shouldFilterUserWhiteList) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.pm.PackageSet _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - _data.writeInt(((withPackages)?(1):(0))); - _data.writeInt(((shouldFilterUserWhiteList)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageSetById, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllPackageSets(boolean withPackages) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((withPackages)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllPackageSets, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllPackageSetIds() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllPackageSetIds, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArrayList(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void addToPackageSet(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_addToPackageSet, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void removeFromPackageSet(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_removeFromPackageSet, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getPackageSetThatContainsPkg(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageSetThatContainsPkg, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.PackageSet.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getPackageSetLabelsThatContainsPkg(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackageSetLabelsThatContainsPkg, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArrayList(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setFreezePkgWithSuspendEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setFreezePkgWithSuspendEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isFreezePkgWithSuspendEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isFreezePkgWithSuspendEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getInstalledPkgsByPackageSetId(java.lang.String pkgSetId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgSetId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getInstalledPkgsByPackageSetId, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void registerPackageSetChangeListener(github.tornaco.android.thanos.core.pm.IPackageSetChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerPackageSetChangeListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterPackageSetChangeListener(github.tornaco.android.thanos.core.pm.IPackageSetChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterPackageSetChangeListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setEnablePackageOnLaunchRequestEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setEnablePackageOnLaunchRequestEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isEnablePackageOnLaunchRequestEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isEnablePackageOnLaunchRequestEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getProviders(int userId, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(userId); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getProviders, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.pm.ComponentInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - 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(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(uid); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPackagesForUid, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String mayEnableAppOnStartActivityIntent(android.content.Intent intent, int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - _data.writeInt(userId); - boolean _status = mRemote.transact(Stub.TRANSACTION_mayEnableAppOnStartActivityIntent, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isEnablePkgOnLaunchByDefault() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isEnablePkgOnLaunchByDefault, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setEnablePkgOnLaunchByDefaultEnabled(boolean byDefault) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((byDefault)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setEnablePkgOnLaunchByDefaultEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public github.tornaco.android.thanos.core.pm.AppInfo getAppInfoForUser(java.lang.String pkgName, int userId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.pm.AppInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkgName); - _data.writeInt(userId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAppInfoForUser, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.pm.AppInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void launchSmartFreezePkgForUser(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkgForUser, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void launchSmartFreezePkgThenKillOriginForUser(github.tornaco.android.thanos.core.pm.Pkg targetPkg, java.lang.String origin) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, targetPkg, 0); - _data.writeString(origin); - boolean _status = mRemote.transact(Stub.TRANSACTION_launchSmartFreezePkgThenKillOriginForUser, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setDOLTipsEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setDOLTipsEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isDOLTipsEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isDOLTipsEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void updatePackageSetLabel(java.lang.String newLabel, java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(newLabel); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_updatePackageSetLabel, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void freezeAllSmartFreezePackages(github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_freezeAllSmartFreezePackages, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void freezeSmartFreezePackages(java.util.List packages, github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedList(_data, packages, 0); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_freezeSmartFreezePackages, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean hasFreezedPackageInUserWhiteListPkgSet() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_hasFreezedPackageInUserWhiteListPkgSet, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllDisabledComponentsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(itemCountInEachBatch); - _data.writeInt(batchIndex); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllDisabledComponentsForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(android.content.ComponentName.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setFreezeTipEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setFreezeTipEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isFreezeTipEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isFreezeTipEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_getPkgNameForUid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_getUidForPkgName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_getInstalledPkgs = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_getAppInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_getWhiteListPkgs = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_isPkgInWhiteList = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_setComponentEnabledSetting = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_getComponentEnabledSetting = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_isComponentDisabledByThanox = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_getApplicationEnableState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_setApplicationEnableState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_getActivities = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_getActivitiesCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_getActivitiesInBatch = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_getReceivers = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_getReceiverCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_getReceiversInBatch = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_getServices = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - static final int TRANSACTION_getServiceCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); - static final int TRANSACTION_getServicesInBatch = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); - static final int TRANSACTION_setSmartFreezeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - static final int TRANSACTION_isSmartFreezeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); - static final int TRANSACTION_setPkgSmartFreezeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); - static final int TRANSACTION_isPkgSmartFreezeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); - static final int TRANSACTION_getSmartFreezePkgs = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); - static final int TRANSACTION_launchSmartFreezePkg = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); - static final int TRANSACTION_setSmartFreezeScreenOffCheckEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); - static final int TRANSACTION_isSmartFreezeScreenOffCheckEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); - static final int TRANSACTION_setSmartFreezeScreenOffCheckDelay = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); - static final int TRANSACTION_getSmartFreezeScreenOffCheckDelay = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); - static final int TRANSACTION_queryLaunchIntentForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); - static final int TRANSACTION_enableAllThanoxDisabledPackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); - static final int TRANSACTION_deviceHasGms = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); - static final int TRANSACTION_verifyBillingState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); - static final int TRANSACTION_launchSmartFreezePkgThenKillOrigin = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); - static final int TRANSACTION_isProtectedWhitelistEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); - static final int TRANSACTION_setProtectedWhitelistEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 36); - static final int TRANSACTION_addPlugin = (android.os.IBinder.FIRST_CALL_TRANSACTION + 37); - static final int TRANSACTION_removePlugin = (android.os.IBinder.FIRST_CALL_TRANSACTION + 38); - static final int TRANSACTION_hasPlugin = (android.os.IBinder.FIRST_CALL_TRANSACTION + 39); - static final int TRANSACTION_isSmartFreezeHidePackageEventEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 40); - static final int TRANSACTION_setSmartFreezeHidePackageEventEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 41); - static final int TRANSACTION_dump = (android.os.IBinder.FIRST_CALL_TRANSACTION + 42); - static final int TRANSACTION_setPackageBlockUninstallEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 43); - static final int TRANSACTION_isPackageBlockUninstallEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 44); - static final int TRANSACTION_setPackageBlockClearDataEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 45); - static final int TRANSACTION_isPackageBlockClearDataEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 46); - static final int TRANSACTION_getInstalledPackagesCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 47); - static final int TRANSACTION_createPackageSet = (android.os.IBinder.FIRST_CALL_TRANSACTION + 48); - static final int TRANSACTION_removePackageSet = (android.os.IBinder.FIRST_CALL_TRANSACTION + 49); - static final int TRANSACTION_getPackageSetById = (android.os.IBinder.FIRST_CALL_TRANSACTION + 50); - static final int TRANSACTION_getAllPackageSets = (android.os.IBinder.FIRST_CALL_TRANSACTION + 51); - static final int TRANSACTION_getAllPackageSetIds = (android.os.IBinder.FIRST_CALL_TRANSACTION + 52); - static final int TRANSACTION_addToPackageSet = (android.os.IBinder.FIRST_CALL_TRANSACTION + 53); - static final int TRANSACTION_removeFromPackageSet = (android.os.IBinder.FIRST_CALL_TRANSACTION + 54); - static final int TRANSACTION_getPackageSetThatContainsPkg = (android.os.IBinder.FIRST_CALL_TRANSACTION + 55); - static final int TRANSACTION_getPackageSetLabelsThatContainsPkg = (android.os.IBinder.FIRST_CALL_TRANSACTION + 56); - static final int TRANSACTION_setFreezePkgWithSuspendEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 57); - static final int TRANSACTION_isFreezePkgWithSuspendEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 58); - static final int TRANSACTION_getInstalledPkgsByPackageSetId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 59); - static final int TRANSACTION_registerPackageSetChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 60); - static final int TRANSACTION_unRegisterPackageSetChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 61); - static final int TRANSACTION_setEnablePackageOnLaunchRequestEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 62); - static final int TRANSACTION_isEnablePackageOnLaunchRequestEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 63); - static final int TRANSACTION_getProviders = (android.os.IBinder.FIRST_CALL_TRANSACTION + 64); - static final int TRANSACTION_getPackagesForUid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 65); - static final int TRANSACTION_mayEnableAppOnStartActivityIntent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 66); - static final int TRANSACTION_isEnablePkgOnLaunchByDefault = (android.os.IBinder.FIRST_CALL_TRANSACTION + 67); - static final int TRANSACTION_setEnablePkgOnLaunchByDefaultEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 68); - static final int TRANSACTION_getAppInfoForUser = (android.os.IBinder.FIRST_CALL_TRANSACTION + 69); - static final int TRANSACTION_launchSmartFreezePkgForUser = (android.os.IBinder.FIRST_CALL_TRANSACTION + 70); - static final int TRANSACTION_launchSmartFreezePkgThenKillOriginForUser = (android.os.IBinder.FIRST_CALL_TRANSACTION + 71); - static final int TRANSACTION_setDOLTipsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 72); - static final int TRANSACTION_isDOLTipsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 73); - static final int TRANSACTION_updatePackageSetLabel = (android.os.IBinder.FIRST_CALL_TRANSACTION + 74); - static final int TRANSACTION_freezeAllSmartFreezePackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 75); - static final int TRANSACTION_freezeSmartFreezePackages = (android.os.IBinder.FIRST_CALL_TRANSACTION + 76); - static final int TRANSACTION_hasFreezedPackageInUserWhiteListPkgSet = (android.os.IBinder.FIRST_CALL_TRANSACTION + 77); - 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); - } - /** @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; - public void setComponentEnabledSetting(int userId, android.content.ComponentName componentName, int newState, int flags) throws android.os.RemoteException; - public int getComponentEnabledSetting(int userId, android.content.ComponentName componentName) throws android.os.RemoteException; - public boolean isComponentDisabledByThanox(int userId, android.content.ComponentName componentName) throws android.os.RemoteException; - public boolean getApplicationEnableState(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void setApplicationEnableState(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable, boolean tmp) throws android.os.RemoteException; - public java.util.List getActivities(int userId, java.lang.String packageName) throws android.os.RemoteException; - public int getActivitiesCount(java.lang.String packageName) throws android.os.RemoteException; - public java.util.List getActivitiesInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException; - public java.util.List getReceivers(int userId, java.lang.String packageName) throws android.os.RemoteException; - public int getReceiverCount(java.lang.String packageName) throws android.os.RemoteException; - public java.util.List getReceiversInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException; - public java.util.List getServices(int userId, java.lang.String packageName) throws android.os.RemoteException; - public int getServiceCount(java.lang.String packageName) throws android.os.RemoteException; - public java.util.List getServicesInBatch(int userId, java.lang.String packageName, int itemCountInEachBatch, int batchIndex) throws android.os.RemoteException; - public void setSmartFreezeEnabled(boolean enable) throws android.os.RemoteException; - public boolean isSmartFreezeEnabled() throws android.os.RemoteException; - public void setPkgSmartFreezeEnabled(github.tornaco.android.thanos.core.pm.Pkg pkgName, boolean enable) throws android.os.RemoteException; - 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; - public void setSmartFreezeScreenOffCheckDelay(long delay) throws android.os.RemoteException; - public long getSmartFreezeScreenOffCheckDelay() throws android.os.RemoteException; - public android.content.Intent queryLaunchIntentForPackage(java.lang.String pkgName) throws android.os.RemoteException; - public java.util.List enableAllThanoxDisabledPackages(boolean removeFromSmartFreezeList) throws android.os.RemoteException; - 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; - public void addPlugin(android.os.ParcelFileDescriptor pfd, java.lang.String pluginPackageName, github.tornaco.android.thanos.core.pm.IAddPluginCallback callback) throws android.os.RemoteException; - public void removePlugin(java.lang.String pluginPackageName) throws android.os.RemoteException; - public boolean hasPlugin(java.lang.String pluginPackageName) throws android.os.RemoteException; - public boolean isSmartFreezeHidePackageEventEnabled() throws android.os.RemoteException; - public void setSmartFreezeHidePackageEventEnabled(boolean enabled) throws android.os.RemoteException; - public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException; - public void setPackageBlockUninstallEnabled(java.lang.String pkgName, boolean enable) throws android.os.RemoteException; - public boolean isPackageBlockUninstallEnabled(java.lang.String pkgName) throws android.os.RemoteException; - public void setPackageBlockClearDataEnabled(java.lang.String pkgName, boolean enable) throws android.os.RemoteException; - public boolean isPackageBlockClearDataEnabled(java.lang.String pkgName) throws android.os.RemoteException; - public int getInstalledPackagesCount(int appFlags) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.pm.PackageSet createPackageSet(java.lang.String label) throws android.os.RemoteException; - public boolean removePackageSet(java.lang.String id) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.pm.PackageSet getPackageSetById(java.lang.String id, boolean withPackages, boolean shouldFilterUserWhiteList) throws android.os.RemoteException; - public java.util.List getAllPackageSets(boolean withPackages) throws android.os.RemoteException; - public java.util.List getAllPackageSetIds() throws android.os.RemoteException; - public void addToPackageSet(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String id) throws android.os.RemoteException; - public void removeFromPackageSet(github.tornaco.android.thanos.core.pm.Pkg pkg, java.lang.String id) throws android.os.RemoteException; - public java.util.List getPackageSetThatContainsPkg(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public java.util.List getPackageSetLabelsThatContainsPkg(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void setFreezePkgWithSuspendEnabled(boolean enable) throws android.os.RemoteException; - public boolean isFreezePkgWithSuspendEnabled() throws android.os.RemoteException; - public java.util.List getInstalledPkgsByPackageSetId(java.lang.String pkgSetId) throws android.os.RemoteException; - public void registerPackageSetChangeListener(github.tornaco.android.thanos.core.pm.IPackageSetChangeListener listener) throws android.os.RemoteException; - public void unRegisterPackageSetChangeListener(github.tornaco.android.thanos.core.pm.IPackageSetChangeListener listener) throws android.os.RemoteException; - public void setEnablePackageOnLaunchRequestEnabled(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean enable) throws android.os.RemoteException; - 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; - public void setEnablePkgOnLaunchByDefaultEnabled(boolean byDefault) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.pm.AppInfo getAppInfoForUser(java.lang.String pkgName, int userId) throws android.os.RemoteException; - public void launchSmartFreezePkgForUser(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - public void launchSmartFreezePkgThenKillOriginForUser(github.tornaco.android.thanos.core.pm.Pkg targetPkg, java.lang.String origin) throws android.os.RemoteException; - public void setDOLTipsEnabled(boolean enable) throws android.os.RemoteException; - public boolean isDOLTipsEnabled() throws android.os.RemoteException; - public void updatePackageSetLabel(java.lang.String newLabel, java.lang.String id) throws android.os.RemoteException; - public void freezeAllSmartFreezePackages(github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener listener) throws android.os.RemoteException; - public void freezeSmartFreezePackages(java.util.List packages, github.tornaco.android.thanos.core.pm.IPackageEnableStateChangeListener listener) throws android.os.RemoteException; - public boolean hasFreezedPackageInUserWhiteListPkgSet() throws android.os.RemoteException; - 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 deleted file mode 100644 index 4501c4182..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/power/IPowerManager.java +++ /dev/null @@ -1,652 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPowerManager. */ - public static class Default implements github.tornaco.android.thanos.core.power.IPowerManager - { - @Override public void reboot() throws android.os.RemoteException - { - } - @Override public void softReboot() throws android.os.RemoteException - { - } - @Override public void goToSleep(long delay) throws android.os.RemoteException - { - } - @Override public void setPowerSaveModeEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPowerSaveModeEnabled() throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getSeenWakeLocks(boolean includeHistory) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getSeenWakeLocksForPkg(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean includeHistory) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getSeenWakeLocksStats(boolean includeHistory, boolean heldOnly) throws android.os.RemoteException - { - return null; - } - @Override public boolean isWakeLockHeld(github.tornaco.android.thanos.core.power.SeenWakeLock wakelock) throws android.os.RemoteException - { - return false; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - } - @Override public void wakeUp(long delay) throws android.os.RemoteException - { - } - @Override public void setBrightness(int level) throws android.os.RemoteException - { - } - @Override public int getBrightness() throws android.os.RemoteException - { - return 0; - } - @Override public void setAutoBrightnessEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isAutoBrightnessEnabled() throws android.os.RemoteException - { - return false; - } - @Override public boolean isWakeLockBlockerEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setWakeLockBlockerEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public void setBlockWakeLock(github.tornaco.android.thanos.core.power.SeenWakeLock wl, boolean block) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.power.IPowerManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.power.IPowerManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.power.IPowerManager))) { - return ((github.tornaco.android.thanos.core.power.IPowerManager)iin); - } - return new github.tornaco.android.thanos.core.power.IPowerManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_reboot: - { - this.reboot(); - reply.writeNoException(); - break; - } - case TRANSACTION_softReboot: - { - this.softReboot(); - reply.writeNoException(); - break; - } - case TRANSACTION_goToSleep: - { - long _arg0; - _arg0 = data.readLong(); - this.goToSleep(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setPowerSaveModeEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setPowerSaveModeEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isPowerSaveModeEnabled: - { - boolean _result = this.isPowerSaveModeEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getSeenWakeLocks: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - java.util.List _result = this.getSeenWakeLocks(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getSeenWakeLocksForPkg: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _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(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getSeenWakeLocksStats: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - boolean _arg1; - _arg1 = (0!=data.readInt()); - java.util.List _result = this.getSeenWakeLocksStats(_arg0, _arg1); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_isWakeLockHeld: - { - github.tornaco.android.thanos.core.power.SeenWakeLock _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); - boolean _result = this.isWakeLockHeld(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_dump: - { - github.tornaco.android.thanos.core.IPrinter _arg0; - _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); - this.dump(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_wakeUp: - { - long _arg0; - _arg0 = data.readLong(); - this.wakeUp(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setBrightness: - { - int _arg0; - _arg0 = data.readInt(); - this.setBrightness(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getBrightness: - { - int _result = this.getBrightness(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_setAutoBrightnessEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setAutoBrightnessEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isAutoBrightnessEnabled: - { - boolean _result = this.isAutoBrightnessEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isWakeLockBlockerEnabled: - { - boolean _result = this.isWakeLockBlockerEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setWakeLockBlockerEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setWakeLockBlockerEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_setBlockWakeLock: - { - github.tornaco.android.thanos.core.power.SeenWakeLock _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setBlockWakeLock(_arg0, _arg1); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.power.IPowerManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void reboot() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_reboot, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void softReboot() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_softReboot, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void goToSleep(long delay) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(delay); - boolean _status = mRemote.transact(Stub.TRANSACTION_goToSleep, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setPowerSaveModeEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPowerSaveModeEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPowerSaveModeEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPowerSaveModeEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getSeenWakeLocks(boolean includeHistory) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((includeHistory)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSeenWakeLocks, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getSeenWakeLocksForPkg(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean includeHistory) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(((includeHistory)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSeenWakeLocksForPkg, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.power.SeenWakeLock.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getSeenWakeLocksStats(boolean includeHistory, boolean heldOnly) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((includeHistory)?(1):(0))); - _data.writeInt(((heldOnly)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSeenWakeLocksStats, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.power.WakeLockStats.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isWakeLockHeld(github.tornaco.android.thanos.core.power.SeenWakeLock wakelock) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, wakelock, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_isWakeLockHeld, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(p); - boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void wakeUp(long delay) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeLong(delay); - boolean _status = mRemote.transact(Stub.TRANSACTION_wakeUp, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setBrightness(int level) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(level); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBrightness, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public int getBrightness() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getBrightness, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setAutoBrightnessEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setAutoBrightnessEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isAutoBrightnessEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isAutoBrightnessEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isWakeLockBlockerEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isWakeLockBlockerEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setWakeLockBlockerEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setWakeLockBlockerEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setBlockWakeLock(github.tornaco.android.thanos.core.power.SeenWakeLock wl, 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); - _Parcel.writeTypedObject(_data, wl, 0); - _data.writeInt(((block)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setBlockWakeLock, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_reboot = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_softReboot = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_goToSleep = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_setPowerSaveModeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_isPowerSaveModeEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_getSeenWakeLocks = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_getSeenWakeLocksForPkg = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_getSeenWakeLocksStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_isWakeLockHeld = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_dump = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_wakeUp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_setBrightness = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_getBrightness = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_setAutoBrightnessEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_isAutoBrightnessEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - 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); - } - /** @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; - public void setPowerSaveModeEnabled(boolean enable) throws android.os.RemoteException; - public boolean isPowerSaveModeEnabled() throws android.os.RemoteException; - public java.util.List getSeenWakeLocks(boolean includeHistory) throws android.os.RemoteException; - public java.util.List getSeenWakeLocksForPkg(github.tornaco.android.thanos.core.pm.Pkg pkg, boolean includeHistory) throws android.os.RemoteException; - public java.util.List getSeenWakeLocksStats(boolean includeHistory, boolean heldOnly) throws android.os.RemoteException; - public boolean isWakeLockHeld(github.tornaco.android.thanos.core.power.SeenWakeLock wakelock) throws android.os.RemoteException; - public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException; - public void wakeUp(long delay) throws android.os.RemoteException; - public void setBrightness(int level) throws android.os.RemoteException; - public int getBrightness() throws android.os.RemoteException; - public void setAutoBrightnessEnabled(boolean enable) throws android.os.RemoteException; - public boolean isAutoBrightnessEnabled() throws android.os.RemoteException; - 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 deleted file mode 100644 index 66a59d69b..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefChangeListener.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPrefChangeListener. */ - public static class Default implements github.tornaco.android.thanos.core.pref.IPrefChangeListener - { - @Override public void onPrefChanged(java.lang.String key) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.pref.IPrefChangeListener interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.pref.IPrefChangeListener asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.pref.IPrefChangeListener))) { - return ((github.tornaco.android.thanos.core.pref.IPrefChangeListener)iin); - } - return new github.tornaco.android.thanos.core.pref.IPrefChangeListener.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onPrefChanged: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.onPrefChanged(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.pref.IPrefChangeListener - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onPrefChanged(java.lang.String key) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - boolean _status = mRemote.transact(Stub.TRANSACTION_onPrefChanged, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_onPrefChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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 deleted file mode 100644 index 0aae37444..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pref/IPrefManager.java +++ /dev/null @@ -1,436 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPrefManager. */ - public static class Default implements github.tornaco.android.thanos.core.pref.IPrefManager - { - @Override public boolean putInt(java.lang.String key, int value) throws android.os.RemoteException - { - return false; - } - @Override public int getInt(java.lang.String key, int def) throws android.os.RemoteException - { - return 0; - } - @Override public boolean putString(java.lang.String key, java.lang.String value) throws android.os.RemoteException - { - return false; - } - @Override public java.lang.String getString(java.lang.String key, java.lang.String def) throws android.os.RemoteException - { - return null; - } - @Override public boolean putBoolean(java.lang.String key, boolean value) throws android.os.RemoteException - { - return false; - } - @Override public boolean getBoolean(java.lang.String key, boolean def) throws android.os.RemoteException - { - return false; - } - @Override public boolean putLong(java.lang.String key, long value) throws android.os.RemoteException - { - return false; - } - @Override public long getLong(java.lang.String key, long def) throws android.os.RemoteException - { - return 0L; - } - @Override public boolean registerSettingsChangeListener(github.tornaco.android.thanos.core.pref.IPrefChangeListener listener) throws android.os.RemoteException - { - return false; - } - @Override public boolean unRegisterSettingsChangeListener(github.tornaco.android.thanos.core.pref.IPrefChangeListener listener) throws android.os.RemoteException - { - return false; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.pref.IPrefManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.pref.IPrefManager))) { - return ((github.tornaco.android.thanos.core.pref.IPrefManager)iin); - } - return new github.tornaco.android.thanos.core.pref.IPrefManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_putInt: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - boolean _result = this.putInt(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getInt: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - int _result = this.getInt(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_putString: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - boolean _result = this.putString(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getString: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.lang.String _result = this.getString(_arg0, _arg1); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_putBoolean: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - boolean _result = this.putBoolean(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getBoolean: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - boolean _result = this.getBoolean(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_putLong: - { - java.lang.String _arg0; - _arg0 = data.readString(); - long _arg1; - _arg1 = data.readLong(); - boolean _result = this.putLong(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getLong: - { - java.lang.String _arg0; - _arg0 = data.readString(); - long _arg1; - _arg1 = data.readLong(); - long _result = this.getLong(_arg0, _arg1); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_registerSettingsChangeListener: - { - 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))); - break; - } - case TRANSACTION_unRegisterSettingsChangeListener: - { - 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))); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.pref.IPrefManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public boolean putInt(java.lang.String key, int value) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeInt(value); - boolean _status = mRemote.transact(Stub.TRANSACTION_putInt, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getInt(java.lang.String key, int def) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeInt(def); - boolean _status = mRemote.transact(Stub.TRANSACTION_getInt, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean putString(java.lang.String key, java.lang.String value) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeString(value); - boolean _status = mRemote.transact(Stub.TRANSACTION_putString, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getString(java.lang.String key, java.lang.String def) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeString(def); - boolean _status = mRemote.transact(Stub.TRANSACTION_getString, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean putBoolean(java.lang.String key, boolean value) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeInt(((value)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_putBoolean, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean getBoolean(java.lang.String key, boolean def) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeInt(((def)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_getBoolean, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean putLong(java.lang.String key, long value) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeLong(value); - boolean _status = mRemote.transact(Stub.TRANSACTION_putLong, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public long getLong(java.lang.String key, long def) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(key); - _data.writeLong(def); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLong, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean registerSettingsChangeListener(github.tornaco.android.thanos.core.pref.IPrefChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerSettingsChangeListener, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean unRegisterSettingsChangeListener(github.tornaco.android.thanos.core.pref.IPrefChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterSettingsChangeListener, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_putInt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_getInt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_putString = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_getString = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_putBoolean = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_getBoolean = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_putLong = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - 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); - } - /** @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; - public java.lang.String getString(java.lang.String key, java.lang.String def) throws android.os.RemoteException; - public boolean putBoolean(java.lang.String key, boolean value) throws android.os.RemoteException; - public boolean getBoolean(java.lang.String key, boolean def) throws android.os.RemoteException; - public boolean putLong(java.lang.String key, long value) throws android.os.RemoteException; - public long getLong(java.lang.String key, long def) throws android.os.RemoteException; - public boolean registerSettingsChangeListener(github.tornaco.android.thanos.core.pref.IPrefChangeListener listener) throws android.os.RemoteException; - public boolean unRegisterSettingsChangeListener(github.tornaco.android.thanos.core.pref.IPrefChangeListener listener) 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 deleted file mode 100644 index 4fa1a97fb..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/ILogSink.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for ILogSink. */ - public static class Default implements github.tornaco.android.thanos.core.profile.ILogSink - { - @Override public void log(java.lang.String message) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.profile.ILogSink interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.profile.ILogSink asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.profile.ILogSink))) { - return ((github.tornaco.android.thanos.core.profile.ILogSink)iin); - } - return new github.tornaco.android.thanos.core.profile.ILogSink.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_log: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.log(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.profile.ILogSink - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void log(java.lang.String message) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(message); - boolean _status = mRemote.transact(Stub.TRANSACTION_log, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_log = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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 deleted file mode 100644 index 1a613854d..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IProfileManager.java +++ /dev/null @@ -1,1987 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IProfileManager. */ - public static class Default implements github.tornaco.android.thanos.core.profile.IProfileManager - { - @Override public void setAutoApplyForNewInstalledAppsEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isAutoApplyForNewInstalledAppsEnabled() throws android.os.RemoteException - { - return false; - } - @Override 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 - { - } - @Override public void deleteRule(int ruleId) throws android.os.RemoteException - { - } - @Override public boolean enableRule(int ruleId) throws android.os.RemoteException - { - return false; - } - @Override public boolean disableRule(int ruleId) throws android.os.RemoteException - { - return false; - } - @Override public boolean isRuleEnabled(int ruleId) throws android.os.RemoteException - { - return false; - } - @Override public boolean isRuleExists(int ruleId) throws android.os.RemoteException - { - return false; - } - @Override public void checkRule(java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleCheckCallback callback, int format) throws android.os.RemoteException - { - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo[] getAllRules() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo[] getEnabledRules() throws android.os.RemoteException - { - return null; - } - @Override public void setProfileEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isProfileEnabled() throws android.os.RemoteException - { - return false; - } - @Override public boolean addGlobalRuleVar(java.lang.String varName, java.lang.String[] varArray) throws android.os.RemoteException - { - return false; - } - @Override public boolean appendGlobalRuleVar(java.lang.String varName, java.lang.String[] varArray) throws android.os.RemoteException - { - return false; - } - @Override public boolean removeGlobalRuleVar(java.lang.String varName) throws android.os.RemoteException - { - return false; - } - @Override public java.lang.String[] getAllGlobalRuleVarNames() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String[] getGlobalRuleVarByName(java.lang.String varName) throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.profile.GlobalVar[] getAllGlobalRuleVar() throws android.os.RemoteException - { - return null; - } - @Override public boolean isGlobalRuleVarByNameExists(java.lang.String varName) throws android.os.RemoteException - { - return false; - } - @Override public void setProfileEngineUiAutomationEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isProfileEngineUiAutomationEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setProfileEnginePushEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean isProfileEnginePushEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setShellSuSupportInstalled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isShellSuSupportInstalled() throws android.os.RemoteException - { - return false; - } - @Override public boolean addConfigTemplate(github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException - { - return false; - } - @Override public boolean deleteConfigTemplate(github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getAllConfigTemplates() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.profile.ConfigTemplate getConfigTemplateById(java.lang.String id) throws android.os.RemoteException - { - return null; - } - @Override public void setAutoConfigTemplateSelection(java.lang.String id) throws android.os.RemoteException - { - } - @Override public java.lang.String getAutoConfigTemplateSelectionId() throws android.os.RemoteException - { - return null; - } - @Override public boolean applyConfigTemplateForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException - { - return false; - } - @Override public void addRuleIfNotExists(java.lang.String author, int versionCode, java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleAddCallback callback, int format) throws android.os.RemoteException - { - } - @Override public void publishStringFact(int source, java.lang.String factValue, long delayMills, java.lang.String[] args) throws android.os.RemoteException - { - } - @Override public void updateRule(int ruleId, java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleAddCallback callback, int format) throws android.os.RemoteException - { - } - @Override public void registerRuleChangeListener(github.tornaco.android.thanos.core.profile.IRuleChangeListener listener) throws android.os.RemoteException - { - } - @Override public void unRegisterRuleChangeListener(github.tornaco.android.thanos.core.profile.IRuleChangeListener listener) throws android.os.RemoteException - { - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo getRuleById(int ruleId) throws android.os.RemoteException - { - return null; - } - @Override public boolean enableRuleByName(java.lang.String ruleName) throws android.os.RemoteException - { - return false; - } - @Override public boolean disableRuleByName(java.lang.String ruleName) throws android.os.RemoteException - { - return false; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - } - @Override public android.os.ParcelFileDescriptor getLogFD() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getLogPath() throws android.os.RemoteException - { - return null; - } - @Override public void clearLogs() throws android.os.RemoteException - { - } - @Override public void setLogEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isLogEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void executeAction(java.lang.String action) throws android.os.RemoteException - { - } - @Override public void addConsoleLogSink(github.tornaco.android.thanos.core.profile.ILogSink sink) throws android.os.RemoteException - { - } - @Override public void removeConsoleLogSink(github.tornaco.android.thanos.core.profile.ILogSink sink) throws android.os.RemoteException - { - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo parseRuleOrNull(java.lang.String ruleString, int format) throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo getRuleByName(java.lang.String ruleName) throws android.os.RemoteException - { - return null; - } - @Override public void setCustomSuCommand(java.lang.String command) throws android.os.RemoteException - { - } - @Override public java.lang.String getCustomSuCommand() throws android.os.RemoteException - { - return null; - } - // Engines. - @Override public void addAlarmEngine(github.tornaco.android.thanos.core.alarm.Alarm alarm) throws android.os.RemoteException - { - } - @Override public void removeAlarmEngine(github.tornaco.android.thanos.core.alarm.Alarm alarm) throws android.os.RemoteException - { - } - @Override public java.util.List getAllAlarms() throws android.os.RemoteException - { - return null; - } - @Override public void setAlarmEnabled(github.tornaco.android.thanos.core.alarm.Alarm alarm, boolean enabled) throws android.os.RemoteException - { - } - // Danmu API - @Override public void setDanmuUISettings(github.tornaco.android.thanos.core.profile.DanmuUISettings settings) throws android.os.RemoteException - { - } - @Override public github.tornaco.android.thanos.core.profile.DanmuUISettings getDanmuUISettings() throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.profile.IProfileManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.profile.IProfileManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.profile.IProfileManager))) { - return ((github.tornaco.android.thanos.core.profile.IProfileManager)iin); - } - return new github.tornaco.android.thanos.core.profile.IProfileManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_setAutoApplyForNewInstalledAppsEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setAutoApplyForNewInstalledAppsEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isAutoApplyForNewInstalledAppsEnabled: - { - boolean _result = this.isAutoApplyForNewInstalledAppsEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_addRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - java.lang.String _arg2; - _arg2 = data.readString(); - github.tornaco.android.thanos.core.profile.IRuleAddCallback _arg3; - _arg3 = github.tornaco.android.thanos.core.profile.IRuleAddCallback.Stub.asInterface(data.readStrongBinder()); - int _arg4; - _arg4 = data.readInt(); - this.addRule(_arg0, _arg1, _arg2, _arg3, _arg4); - reply.writeNoException(); - break; - } - case TRANSACTION_deleteRule: - { - int _arg0; - _arg0 = data.readInt(); - this.deleteRule(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_enableRule: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.enableRule(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_disableRule: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.disableRule(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isRuleEnabled: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.isRuleEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isRuleExists: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.isRuleExists(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkRule: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.profile.IRuleCheckCallback _arg1; - _arg1 = github.tornaco.android.thanos.core.profile.IRuleCheckCallback.Stub.asInterface(data.readStrongBinder()); - int _arg2; - _arg2 = data.readInt(); - this.checkRule(_arg0, _arg1, _arg2); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllRules: - { - github.tornaco.android.thanos.core.profile.RuleInfo[] _result = this.getAllRules(); - reply.writeNoException(); - reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getEnabledRules: - { - github.tornaco.android.thanos.core.profile.RuleInfo[] _result = this.getEnabledRules(); - reply.writeNoException(); - reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setProfileEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setProfileEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isProfileEnabled: - { - boolean _result = this.isProfileEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_addGlobalRuleVar: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String[] _arg1; - _arg1 = data.createStringArray(); - boolean _result = this.addGlobalRuleVar(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_appendGlobalRuleVar: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String[] _arg1; - _arg1 = data.createStringArray(); - boolean _result = this.appendGlobalRuleVar(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_removeGlobalRuleVar: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.removeGlobalRuleVar(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getAllGlobalRuleVarNames: - { - java.lang.String[] _result = this.getAllGlobalRuleVarNames(); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_getGlobalRuleVarByName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String[] _result = this.getGlobalRuleVarByName(_arg0); - reply.writeNoException(); - reply.writeStringArray(_result); - break; - } - case TRANSACTION_getAllGlobalRuleVar: - { - github.tornaco.android.thanos.core.profile.GlobalVar[] _result = this.getAllGlobalRuleVar(); - reply.writeNoException(); - reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_isGlobalRuleVarByNameExists: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isGlobalRuleVarByNameExists(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setProfileEngineUiAutomationEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setProfileEngineUiAutomationEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isProfileEngineUiAutomationEnabled: - { - boolean _result = this.isProfileEngineUiAutomationEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setProfileEnginePushEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setProfileEnginePushEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isProfileEnginePushEnabled: - { - boolean _result = this.isProfileEnginePushEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setShellSuSupportInstalled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setShellSuSupportInstalled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isShellSuSupportInstalled: - { - boolean _result = this.isShellSuSupportInstalled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_addConfigTemplate: - { - github.tornaco.android.thanos.core.profile.ConfigTemplate _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); - boolean _result = this.addConfigTemplate(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_deleteConfigTemplate: - { - github.tornaco.android.thanos.core.profile.ConfigTemplate _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); - boolean _result = this.deleteConfigTemplate(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getAllConfigTemplates: - { - java.util.List _result = this.getAllConfigTemplates(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getConfigTemplateById: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.profile.ConfigTemplate _result = this.getConfigTemplateById(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setAutoConfigTemplateSelection: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.setAutoConfigTemplateSelection(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getAutoConfigTemplateSelectionId: - { - java.lang.String _result = this.getAutoConfigTemplateSelectionId(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_applyConfigTemplateForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - github.tornaco.android.thanos.core.profile.ConfigTemplate _arg1; - _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))); - break; - } - case TRANSACTION_addRuleIfNotExists: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _arg1; - _arg1 = data.readInt(); - java.lang.String _arg2; - _arg2 = data.readString(); - github.tornaco.android.thanos.core.profile.IRuleAddCallback _arg3; - _arg3 = github.tornaco.android.thanos.core.profile.IRuleAddCallback.Stub.asInterface(data.readStrongBinder()); - int _arg4; - _arg4 = data.readInt(); - this.addRuleIfNotExists(_arg0, _arg1, _arg2, _arg3, _arg4); - reply.writeNoException(); - break; - } - case TRANSACTION_publishStringFact: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - long _arg2; - _arg2 = data.readLong(); - java.lang.String[] _arg3; - _arg3 = data.createStringArray(); - this.publishStringFact(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - break; - } - case TRANSACTION_updateRule: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - github.tornaco.android.thanos.core.profile.IRuleAddCallback _arg2; - _arg2 = github.tornaco.android.thanos.core.profile.IRuleAddCallback.Stub.asInterface(data.readStrongBinder()); - int _arg3; - _arg3 = data.readInt(); - this.updateRule(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - break; - } - case TRANSACTION_registerRuleChangeListener: - { - 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(); - break; - } - case TRANSACTION_unRegisterRuleChangeListener: - { - 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(); - break; - } - case TRANSACTION_getRuleById: - { - int _arg0; - _arg0 = data.readInt(); - github.tornaco.android.thanos.core.profile.RuleInfo _result = this.getRuleById(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_enableRuleByName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.enableRuleByName(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_disableRuleByName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.disableRuleByName(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_dump: - { - github.tornaco.android.thanos.core.IPrinter _arg0; - _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); - this.dump(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getLogFD: - { - android.os.ParcelFileDescriptor _result = this.getLogFD(); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getLogPath: - { - java.lang.String _result = this.getLogPath(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_clearLogs: - { - this.clearLogs(); - reply.writeNoException(); - break; - } - case TRANSACTION_setLogEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setLogEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isLogEnabled: - { - boolean _result = this.isLogEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_executeAction: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.executeAction(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_addConsoleLogSink: - { - 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(); - break; - } - case TRANSACTION_removeConsoleLogSink: - { - 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(); - break; - } - case TRANSACTION_parseRuleOrNull: - { - 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(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getRuleByName: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.profile.RuleInfo _result = this.getRuleByName(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setCustomSuCommand: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.setCustomSuCommand(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getCustomSuCommand: - { - java.lang.String _result = this.getCustomSuCommand(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_addAlarmEngine: - { - github.tornaco.android.thanos.core.alarm.Alarm _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.alarm.Alarm.CREATOR); - this.addAlarmEngine(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_removeAlarmEngine: - { - github.tornaco.android.thanos.core.alarm.Alarm _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.alarm.Alarm.CREATOR); - this.removeAlarmEngine(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getAllAlarms: - { - java.util.List _result = this.getAllAlarms(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_setAlarmEnabled: - { - github.tornaco.android.thanos.core.alarm.Alarm _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.alarm.Alarm.CREATOR); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setAlarmEnabled(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_setDanmuUISettings: - { - github.tornaco.android.thanos.core.profile.DanmuUISettings _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.DanmuUISettings.CREATOR); - this.setDanmuUISettings(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getDanmuUISettings: - { - github.tornaco.android.thanos.core.profile.DanmuUISettings _result = this.getDanmuUISettings(); - reply.writeNoException(); - _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 - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void setAutoApplyForNewInstalledAppsEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setAutoApplyForNewInstalledAppsEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isAutoApplyForNewInstalledAppsEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isAutoApplyForNewInstalledAppsEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override 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 - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(author); - _data.writeInt(versionCode); - _data.writeString(ruleJson); - _data.writeStrongInterface(callback); - _data.writeInt(format); - boolean _status = mRemote.transact(Stub.TRANSACTION_addRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void deleteRule(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_deleteRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean enableRule(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_enableRule, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean disableRule(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_disableRule, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isRuleEnabled(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_isRuleEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isRuleExists(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_isRuleExists, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void checkRule(java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleCheckCallback callback, int format) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(ruleJson); - _data.writeStrongInterface(callback); - _data.writeInt(format); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo[] getAllRules() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.RuleInfo[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllRules, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArray(github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo[] getEnabledRules() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.RuleInfo[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getEnabledRules, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArray(github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setProfileEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setProfileEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isProfileEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isProfileEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean addGlobalRuleVar(java.lang.String varName, java.lang.String[] varArray) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(varName); - _data.writeStringArray(varArray); - boolean _status = mRemote.transact(Stub.TRANSACTION_addGlobalRuleVar, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean appendGlobalRuleVar(java.lang.String varName, java.lang.String[] varArray) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(varName); - _data.writeStringArray(varArray); - boolean _status = mRemote.transact(Stub.TRANSACTION_appendGlobalRuleVar, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean removeGlobalRuleVar(java.lang.String varName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(varName); - boolean _status = mRemote.transact(Stub.TRANSACTION_removeGlobalRuleVar, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String[] getAllGlobalRuleVarNames() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllGlobalRuleVarNames, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String[] getGlobalRuleVarByName(java.lang.String varName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(varName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getGlobalRuleVarByName, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.profile.GlobalVar[] getAllGlobalRuleVar() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.GlobalVar[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllGlobalRuleVar, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArray(github.tornaco.android.thanos.core.profile.GlobalVar.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isGlobalRuleVarByNameExists(java.lang.String varName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(varName); - boolean _status = mRemote.transact(Stub.TRANSACTION_isGlobalRuleVarByNameExists, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setProfileEngineUiAutomationEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setProfileEngineUiAutomationEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isProfileEngineUiAutomationEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isProfileEngineUiAutomationEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setProfileEnginePushEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setProfileEnginePushEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isProfileEnginePushEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isProfileEnginePushEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setShellSuSupportInstalled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setShellSuSupportInstalled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isShellSuSupportInstalled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isShellSuSupportInstalled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean addConfigTemplate(github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, template, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_addConfigTemplate, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean deleteConfigTemplate(github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, template, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_deleteConfigTemplate, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllConfigTemplates() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllConfigTemplates, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.profile.ConfigTemplate getConfigTemplateById(java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.ConfigTemplate _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_getConfigTemplateById, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.ConfigTemplate.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setAutoConfigTemplateSelection(java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_setAutoConfigTemplateSelection, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String getAutoConfigTemplateSelectionId() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAutoConfigTemplateSelectionId, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean applyConfigTemplateForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - _Parcel.writeTypedObject(_data, template, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_applyConfigTemplateForPackage, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void addRuleIfNotExists(java.lang.String author, int versionCode, java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleAddCallback callback, int format) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(author); - _data.writeInt(versionCode); - _data.writeString(ruleJson); - _data.writeStrongInterface(callback); - _data.writeInt(format); - boolean _status = mRemote.transact(Stub.TRANSACTION_addRuleIfNotExists, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void publishStringFact(int source, java.lang.String factValue, long delayMills, java.lang.String[] args) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(source); - _data.writeString(factValue); - _data.writeLong(delayMills); - _data.writeStringArray(args); - boolean _status = mRemote.transact(Stub.TRANSACTION_publishStringFact, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void updateRule(int ruleId, java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleAddCallback callback, int format) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - _data.writeString(ruleJson); - _data.writeStrongInterface(callback); - _data.writeInt(format); - boolean _status = mRemote.transact(Stub.TRANSACTION_updateRule, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void registerRuleChangeListener(github.tornaco.android.thanos.core.profile.IRuleChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerRuleChangeListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterRuleChangeListener(github.tornaco.android.thanos.core.profile.IRuleChangeListener listener) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(listener); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterRuleChangeListener, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo getRuleById(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.RuleInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRuleById, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean enableRuleByName(java.lang.String ruleName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(ruleName); - boolean _status = mRemote.transact(Stub.TRANSACTION_enableRuleByName, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean disableRuleByName(java.lang.String ruleName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(ruleName); - boolean _status = mRemote.transact(Stub.TRANSACTION_disableRuleByName, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(p); - boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public android.os.ParcelFileDescriptor getLogFD() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.os.ParcelFileDescriptor _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLogFD, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, android.os.ParcelFileDescriptor.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getLogPath() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getLogPath, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void clearLogs() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_clearLogs, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setLogEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setLogEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isLogEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isLogEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void executeAction(java.lang.String action) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(action); - boolean _status = mRemote.transact(Stub.TRANSACTION_executeAction, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void addConsoleLogSink(github.tornaco.android.thanos.core.profile.ILogSink sink) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(sink); - boolean _status = mRemote.transact(Stub.TRANSACTION_addConsoleLogSink, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void removeConsoleLogSink(github.tornaco.android.thanos.core.profile.ILogSink sink) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(sink); - boolean _status = mRemote.transact(Stub.TRANSACTION_removeConsoleLogSink, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo parseRuleOrNull(java.lang.String ruleString, int format) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.RuleInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(ruleString); - _data.writeInt(format); - boolean _status = mRemote.transact(Stub.TRANSACTION_parseRuleOrNull, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.profile.RuleInfo getRuleByName(java.lang.String ruleName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.RuleInfo _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(ruleName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getRuleByName, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setCustomSuCommand(java.lang.String command) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(command); - boolean _status = mRemote.transact(Stub.TRANSACTION_setCustomSuCommand, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String getCustomSuCommand() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getCustomSuCommand, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - 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); - _Parcel.writeTypedObject(_data, alarm, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_addAlarmEngine, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void removeAlarmEngine(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); - _Parcel.writeTypedObject(_data, alarm, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_removeAlarmEngine, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getAllAlarms() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllAlarms, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.alarm.AlarmRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setAlarmEnabled(github.tornaco.android.thanos.core.alarm.Alarm alarm, boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, alarm, 0); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setAlarmEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - // 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); - _Parcel.writeTypedObject(_data, settings, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_setDanmuUISettings, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public github.tornaco.android.thanos.core.profile.DanmuUISettings getDanmuUISettings() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.profile.DanmuUISettings _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getDanmuUISettings, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.profile.DanmuUISettings.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_setAutoApplyForNewInstalledAppsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_isAutoApplyForNewInstalledAppsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_addRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_deleteRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_enableRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_disableRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_isRuleEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_isRuleExists = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_checkRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_getAllRules = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_getEnabledRules = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_setProfileEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_isProfileEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_addGlobalRuleVar = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_appendGlobalRuleVar = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_removeGlobalRuleVar = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_getAllGlobalRuleVarNames = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_getGlobalRuleVarByName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - static final int TRANSACTION_getAllGlobalRuleVar = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); - static final int TRANSACTION_isGlobalRuleVarByNameExists = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); - static final int TRANSACTION_setProfileEngineUiAutomationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - static final int TRANSACTION_isProfileEngineUiAutomationEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); - static final int TRANSACTION_setProfileEnginePushEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); - static final int TRANSACTION_isProfileEnginePushEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); - static final int TRANSACTION_setShellSuSupportInstalled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); - static final int TRANSACTION_isShellSuSupportInstalled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); - static final int TRANSACTION_addConfigTemplate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); - static final int TRANSACTION_deleteConfigTemplate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); - static final int TRANSACTION_getAllConfigTemplates = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); - static final int TRANSACTION_getConfigTemplateById = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); - static final int TRANSACTION_setAutoConfigTemplateSelection = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); - static final int TRANSACTION_getAutoConfigTemplateSelectionId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); - static final int TRANSACTION_applyConfigTemplateForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); - static final int TRANSACTION_addRuleIfNotExists = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); - static final int TRANSACTION_publishStringFact = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); - static final int TRANSACTION_updateRule = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); - static final int TRANSACTION_registerRuleChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 36); - static final int TRANSACTION_unRegisterRuleChangeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 37); - static final int TRANSACTION_getRuleById = (android.os.IBinder.FIRST_CALL_TRANSACTION + 38); - static final int TRANSACTION_enableRuleByName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 39); - static final int TRANSACTION_disableRuleByName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 40); - static final int TRANSACTION_dump = (android.os.IBinder.FIRST_CALL_TRANSACTION + 41); - static final int TRANSACTION_getLogFD = (android.os.IBinder.FIRST_CALL_TRANSACTION + 42); - static final int TRANSACTION_getLogPath = (android.os.IBinder.FIRST_CALL_TRANSACTION + 43); - static final int TRANSACTION_clearLogs = (android.os.IBinder.FIRST_CALL_TRANSACTION + 44); - static final int TRANSACTION_setLogEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 45); - static final int TRANSACTION_isLogEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 46); - static final int TRANSACTION_executeAction = (android.os.IBinder.FIRST_CALL_TRANSACTION + 47); - static final int TRANSACTION_addConsoleLogSink = (android.os.IBinder.FIRST_CALL_TRANSACTION + 48); - static final int TRANSACTION_removeConsoleLogSink = (android.os.IBinder.FIRST_CALL_TRANSACTION + 49); - static final int TRANSACTION_parseRuleOrNull = (android.os.IBinder.FIRST_CALL_TRANSACTION + 50); - static final int TRANSACTION_getRuleByName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 51); - static final int TRANSACTION_setCustomSuCommand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 52); - static final int TRANSACTION_getCustomSuCommand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 53); - static final int TRANSACTION_addAlarmEngine = (android.os.IBinder.FIRST_CALL_TRANSACTION + 54); - static final int TRANSACTION_removeAlarmEngine = (android.os.IBinder.FIRST_CALL_TRANSACTION + 55); - static final int TRANSACTION_getAllAlarms = (android.os.IBinder.FIRST_CALL_TRANSACTION + 56); - 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); - } - /** @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; - public void deleteRule(int ruleId) throws android.os.RemoteException; - public boolean enableRule(int ruleId) throws android.os.RemoteException; - public boolean disableRule(int ruleId) throws android.os.RemoteException; - public boolean isRuleEnabled(int ruleId) throws android.os.RemoteException; - public boolean isRuleExists(int ruleId) throws android.os.RemoteException; - public void checkRule(java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleCheckCallback callback, int format) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.RuleInfo[] getAllRules() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.RuleInfo[] getEnabledRules() throws android.os.RemoteException; - public void setProfileEnabled(boolean enable) throws android.os.RemoteException; - public boolean isProfileEnabled() throws android.os.RemoteException; - public boolean addGlobalRuleVar(java.lang.String varName, java.lang.String[] varArray) throws android.os.RemoteException; - public boolean appendGlobalRuleVar(java.lang.String varName, java.lang.String[] varArray) throws android.os.RemoteException; - public boolean removeGlobalRuleVar(java.lang.String varName) throws android.os.RemoteException; - public java.lang.String[] getAllGlobalRuleVarNames() throws android.os.RemoteException; - public java.lang.String[] getGlobalRuleVarByName(java.lang.String varName) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.GlobalVar[] getAllGlobalRuleVar() throws android.os.RemoteException; - public boolean isGlobalRuleVarByNameExists(java.lang.String varName) throws android.os.RemoteException; - public void setProfileEngineUiAutomationEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isProfileEngineUiAutomationEnabled() throws android.os.RemoteException; - public void setProfileEnginePushEnabled(boolean enabled) throws android.os.RemoteException; - public boolean isProfileEnginePushEnabled() throws android.os.RemoteException; - public void setShellSuSupportInstalled(boolean enable) throws android.os.RemoteException; - public boolean isShellSuSupportInstalled() throws android.os.RemoteException; - public boolean addConfigTemplate(github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException; - public boolean deleteConfigTemplate(github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException; - public java.util.List getAllConfigTemplates() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.ConfigTemplate getConfigTemplateById(java.lang.String id) throws android.os.RemoteException; - public void setAutoConfigTemplateSelection(java.lang.String id) throws android.os.RemoteException; - public java.lang.String getAutoConfigTemplateSelectionId() throws android.os.RemoteException; - public boolean applyConfigTemplateForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, github.tornaco.android.thanos.core.profile.ConfigTemplate template) throws android.os.RemoteException; - public void addRuleIfNotExists(java.lang.String author, int versionCode, java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleAddCallback callback, int format) throws android.os.RemoteException; - public void publishStringFact(int source, java.lang.String factValue, long delayMills, java.lang.String[] args) throws android.os.RemoteException; - public void updateRule(int ruleId, java.lang.String ruleJson, github.tornaco.android.thanos.core.profile.IRuleAddCallback callback, int format) throws android.os.RemoteException; - public void registerRuleChangeListener(github.tornaco.android.thanos.core.profile.IRuleChangeListener listener) throws android.os.RemoteException; - public void unRegisterRuleChangeListener(github.tornaco.android.thanos.core.profile.IRuleChangeListener listener) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.RuleInfo getRuleById(int ruleId) throws android.os.RemoteException; - public boolean enableRuleByName(java.lang.String ruleName) throws android.os.RemoteException; - public boolean disableRuleByName(java.lang.String ruleName) throws android.os.RemoteException; - public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException; - public android.os.ParcelFileDescriptor getLogFD() throws android.os.RemoteException; - public java.lang.String getLogPath() throws android.os.RemoteException; - public void clearLogs() throws android.os.RemoteException; - public void setLogEnabled(boolean enable) throws android.os.RemoteException; - public boolean isLogEnabled() throws android.os.RemoteException; - public void executeAction(java.lang.String action) throws android.os.RemoteException; - public void addConsoleLogSink(github.tornaco.android.thanos.core.profile.ILogSink sink) throws android.os.RemoteException; - public void removeConsoleLogSink(github.tornaco.android.thanos.core.profile.ILogSink sink) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.RuleInfo parseRuleOrNull(java.lang.String ruleString, int format) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.profile.RuleInfo getRuleByName(java.lang.String ruleName) throws android.os.RemoteException; - 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 deleted file mode 100644 index 6010d5fd6..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleAddCallback.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IRuleAddCallback. */ - public static class Default implements github.tornaco.android.thanos.core.profile.IRuleAddCallback - { - @Override public void onRuleAddSuccess() throws android.os.RemoteException - { - } - @Override public void onRuleAddFail(int errorCode, java.lang.String errorMessage) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.profile.IRuleAddCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.profile.IRuleAddCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.profile.IRuleAddCallback))) { - return ((github.tornaco.android.thanos.core.profile.IRuleAddCallback)iin); - } - return new github.tornaco.android.thanos.core.profile.IRuleAddCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onRuleAddSuccess: - { - this.onRuleAddSuccess(); - break; - } - case TRANSACTION_onRuleAddFail: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - this.onRuleAddFail(_arg0, _arg1); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.profile.IRuleAddCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onRuleAddSuccess() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleAddSuccess, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onRuleAddFail(int errorCode, java.lang.String errorMessage) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(errorCode); - _data.writeString(errorMessage); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleAddFail, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onRuleAddSuccess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_onRuleAddFail = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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 deleted file mode 100644 index 60d9e0ac1..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleChangeListener.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IRuleChangeListener. */ - public static class Default implements github.tornaco.android.thanos.core.profile.IRuleChangeListener - { - @Override public void onRuleEnabledStateChanged(int ruleId, boolean enabled) throws android.os.RemoteException - { - } - @Override public void onRuleUpdated(int ruleId) throws android.os.RemoteException - { - } - @Override public void onRuleRemoved(int ruleId) throws android.os.RemoteException - { - } - @Override public void onRuleAdd(int ruleId) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.profile.IRuleChangeListener interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.profile.IRuleChangeListener asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.profile.IRuleChangeListener))) { - return ((github.tornaco.android.thanos.core.profile.IRuleChangeListener)iin); - } - return new github.tornaco.android.thanos.core.profile.IRuleChangeListener.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onRuleEnabledStateChanged: - { - int _arg0; - _arg0 = data.readInt(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.onRuleEnabledStateChanged(_arg0, _arg1); - break; - } - case TRANSACTION_onRuleUpdated: - { - int _arg0; - _arg0 = data.readInt(); - this.onRuleUpdated(_arg0); - break; - } - case TRANSACTION_onRuleRemoved: - { - int _arg0; - _arg0 = data.readInt(); - this.onRuleRemoved(_arg0); - break; - } - case TRANSACTION_onRuleAdd: - { - int _arg0; - _arg0 = data.readInt(); - this.onRuleAdd(_arg0); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.profile.IRuleChangeListener - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onRuleEnabledStateChanged(int ruleId, boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleEnabledStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onRuleUpdated(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleUpdated, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onRuleRemoved(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onRuleAdd(int ruleId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(ruleId); - boolean _status = mRemote.transact(Stub.TRANSACTION_onRuleAdd, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - 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); - } - /** @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; - public void onRuleAdd(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 deleted file mode 100644 index 60d9f186f..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/profile/IRuleCheckCallback.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IRuleCheckCallback. */ - public static class Default implements github.tornaco.android.thanos.core.profile.IRuleCheckCallback - { - @Override public void onValid(github.tornaco.android.thanos.core.profile.RuleInfo rule) throws android.os.RemoteException - { - } - @Override public void onInvalid(int errorCode, java.lang.String errorMessage) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.profile.IRuleCheckCallback interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.profile.IRuleCheckCallback asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.profile.IRuleCheckCallback))) { - return ((github.tornaco.android.thanos.core.profile.IRuleCheckCallback)iin); - } - return new github.tornaco.android.thanos.core.profile.IRuleCheckCallback.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onValid: - { - github.tornaco.android.thanos.core.profile.RuleInfo _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.profile.RuleInfo.CREATOR); - this.onValid(_arg0); - break; - } - case TRANSACTION_onInvalid: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _arg1; - _arg1 = data.readString(); - this.onInvalid(_arg0, _arg1); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.profile.IRuleCheckCallback - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onValid(github.tornaco.android.thanos.core.profile.RuleInfo rule) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, rule, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onValid, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - @Override public void onInvalid(int errorCode, java.lang.String errorMessage) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(errorCode); - _data.writeString(errorMessage); - boolean _status = mRemote.transact(Stub.TRANSACTION_onInvalid, _data, null, android.os.IBinder.FLAG_ONEWAY); - } - finally { - _data.recycle(); - } - } - } - static final int TRANSACTION_onValid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_onInvalid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - } - /** @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; - } - } - 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/IChannelHandler.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IChannelHandler.java deleted file mode 100644 index b13342812..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IChannelHandler.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IChannelHandler. */ - public static class Default implements github.tornaco.android.thanos.core.push.IChannelHandler - { - @Override public void onMessageArrive(android.content.Intent intent) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.push.IChannelHandler interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.push.IChannelHandler asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.push.IChannelHandler))) { - return ((github.tornaco.android.thanos.core.push.IChannelHandler)iin); - } - return new github.tornaco.android.thanos.core.push.IChannelHandler.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_onMessageArrive: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - this.onMessageArrive(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.push.IChannelHandler - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void onMessageArrive(android.content.Intent intent) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_onMessageArrive, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_onMessageArrive = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/IPushManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IPushManager.java deleted file mode 100644 index 3f524395d..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/IPushManager.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPushManager. */ - public static class Default implements github.tornaco.android.thanos.core.push.IPushManager - { - @Override public void registerChannel(github.tornaco.android.thanos.core.push.PushChannel channel) throws android.os.RemoteException - { - } - @Override public void unRegisterChannel(github.tornaco.android.thanos.core.push.PushChannel channel) throws android.os.RemoteException - { - } - @Override public void registerChannelHandler(java.lang.String channelId, github.tornaco.android.thanos.core.push.IChannelHandler handler) throws android.os.RemoteException - { - } - @Override public void unRegisterChannelHandler(github.tornaco.android.thanos.core.push.IChannelHandler handler) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.push.IPushManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.push.IPushManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.push.IPushManager))) { - return ((github.tornaco.android.thanos.core.push.IPushManager)iin); - } - return new github.tornaco.android.thanos.core.push.IPushManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_registerChannel: - { - github.tornaco.android.thanos.core.push.PushChannel _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.push.PushChannel.CREATOR); - this.registerChannel(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_unRegisterChannel: - { - github.tornaco.android.thanos.core.push.PushChannel _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.push.PushChannel.CREATOR); - this.unRegisterChannel(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_registerChannelHandler: - { - 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(); - break; - } - case TRANSACTION_unRegisterChannelHandler: - { - 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(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.push.IPushManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void registerChannel(github.tornaco.android.thanos.core.push.PushChannel channel) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, channel, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerChannel, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterChannel(github.tornaco.android.thanos.core.push.PushChannel channel) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, channel, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterChannel, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void registerChannelHandler(java.lang.String channelId, github.tornaco.android.thanos.core.push.IChannelHandler handler) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(channelId); - _data.writeStrongInterface(handler); - boolean _status = mRemote.transact(Stub.TRANSACTION_registerChannelHandler, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void unRegisterChannelHandler(github.tornaco.android.thanos.core.push.IChannelHandler handler) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(handler); - boolean _status = mRemote.transact(Stub.TRANSACTION_unRegisterChannelHandler, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - 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); - } - /** @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 deleted file mode 100644 index 20f50ea84..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/push/wechat/IPushDelegateManager.java +++ /dev/null @@ -1,542 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPushDelegateManager. */ - public static class Default implements github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager - { - @Override public boolean wechatEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setWeChatEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean wechatSoundEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setWechatSoundEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean wechatContentEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setWechatContentEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean wechatVibrateEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setWechatVibrateEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public void mockWechatMessage() throws android.os.RemoteException - { - } - @Override public boolean startWechatOnPushEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setStartWechatOnPushEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean skipIfWeChatAppRunningEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSkipIfWeChatAppRunningEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public boolean shouldHookBroadcastPerformResult() throws android.os.RemoteException - { - return false; - } - @Override public int onHookBroadcastPerformResult(android.content.Intent intent, int resultCode) throws android.os.RemoteException - { - return 0; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager))) { - return ((github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager)iin); - } - return new github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_wechatEnabled: - { - boolean _result = this.wechatEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setWeChatEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setWeChatEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_wechatSoundEnabled: - { - boolean _result = this.wechatSoundEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setWechatSoundEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setWechatSoundEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_wechatContentEnabled: - { - boolean _result = this.wechatContentEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setWechatContentEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setWechatContentEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_wechatVibrateEnabled: - { - boolean _result = this.wechatVibrateEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setWechatVibrateEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setWechatVibrateEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_mockWechatMessage: - { - this.mockWechatMessage(); - reply.writeNoException(); - break; - } - case TRANSACTION_startWechatOnPushEnabled: - { - boolean _result = this.startWechatOnPushEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setStartWechatOnPushEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setStartWechatOnPushEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_skipIfWeChatAppRunningEnabled: - { - boolean _result = this.skipIfWeChatAppRunningEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSkipIfWeChatAppRunningEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSkipIfWeChatAppRunningEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_shouldHookBroadcastPerformResult: - { - boolean _result = this.shouldHookBroadcastPerformResult(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_onHookBroadcastPerformResult: - { - android.content.Intent _arg0; - _arg0 = _Parcel.readTypedObject(data, android.content.Intent.CREATOR); - int _arg1; - _arg1 = data.readInt(); - int _result = this.onHookBroadcastPerformResult(_arg0, _arg1); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.push.wechat.IPushDelegateManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public boolean wechatEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_wechatEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setWeChatEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setWeChatEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean wechatSoundEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_wechatSoundEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setWechatSoundEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setWechatSoundEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean wechatContentEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_wechatContentEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setWechatContentEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setWechatContentEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean wechatVibrateEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_wechatVibrateEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setWechatVibrateEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setWechatVibrateEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void mockWechatMessage() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_mockWechatMessage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean startWechatOnPushEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_startWechatOnPushEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setStartWechatOnPushEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setStartWechatOnPushEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean skipIfWeChatAppRunningEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_skipIfWeChatAppRunningEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSkipIfWeChatAppRunningEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSkipIfWeChatAppRunningEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean shouldHookBroadcastPerformResult() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_shouldHookBroadcastPerformResult, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int onHookBroadcastPerformResult(android.content.Intent intent, int resultCode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, intent, 0); - _data.writeInt(resultCode); - boolean _status = mRemote.transact(Stub.TRANSACTION_onHookBroadcastPerformResult, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_wechatEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_setWeChatEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_wechatSoundEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_setWechatSoundEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_wechatContentEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_setWechatContentEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_wechatVibrateEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_setWechatVibrateEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_mockWechatMessage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_startWechatOnPushEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_setStartWechatOnPushEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_skipIfWeChatAppRunningEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - 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); - } - /** @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; - public void setWechatSoundEnabled(boolean enabled) throws android.os.RemoteException; - public boolean wechatContentEnabled() throws android.os.RemoteException; - public void setWechatContentEnabled(boolean enabled) throws android.os.RemoteException; - public boolean wechatVibrateEnabled() throws android.os.RemoteException; - public void setWechatVibrateEnabled(boolean enabled) throws android.os.RemoteException; - public void mockWechatMessage() throws android.os.RemoteException; - public boolean startWechatOnPushEnabled() throws android.os.RemoteException; - public void setStartWechatOnPushEnabled(boolean enabled) throws android.os.RemoteException; - public boolean skipIfWeChatAppRunningEnabled() throws android.os.RemoteException; - 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 deleted file mode 100644 index aac27adaf..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/IPrivacyManager.java +++ /dev/null @@ -1,1244 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IPrivacyManager. */ - public static class Default implements github.tornaco.android.thanos.core.secure.IPrivacyManager - { - @Override public boolean isPrivacyEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setPrivacyEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public int getPrivacyDataCheatPkgCount() throws android.os.RemoteException - { - return 0; - } - @Override public long getPrivacyDataCheatRequestCount() throws android.os.RemoteException - { - return 0L; - } - @Override public java.lang.String getOriginalDeviceId() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalLine1Number() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalSimSerialNumber() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalAndroidId() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalImei(int slotIndex) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalMeid(int slotIndex) throws android.os.RemoteException - { - return null; - } - @Override public int getPhoneCount() throws android.os.RemoteException - { - return 0; - } - @Override public android.telephony.SubscriptionInfo[] getAccessibleSubscriptionInfoList() throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.secure.PrivacyCheatRecord[] getPrivacyCheatRecords() throws android.os.RemoteException - { - return null; - } - @Override public void clearPrivacyCheatRecords() throws android.os.RemoteException - { - } - @Override public boolean addOrUpdateFieldsProfile(github.tornaco.android.thanos.core.secure.field.Fields f) throws android.os.RemoteException - { - return false; - } - @Override public boolean deleteFieldsProfile(github.tornaco.android.thanos.core.secure.field.Fields f) throws android.os.RemoteException - { - return false; - } - @Override public boolean deleteFieldsProfileById(java.lang.String id) throws android.os.RemoteException - { - return false; - } - @Override public java.util.List getAllFieldsProfiles() throws android.os.RemoteException - { - return null; - } - @Override public void selectFieldsProfileForPackage(java.lang.String pkg, java.lang.String profileId) throws android.os.RemoteException - { - } - @Override public java.lang.String getSelectedFieldsProfileIdForPackage(java.lang.String pkg) throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.secure.field.Fields getSelectedFieldsProfileForPackage(java.lang.String pkg, int checkingOp) throws android.os.RemoteException - { - return null; - } - @Override public github.tornaco.android.thanos.core.secure.field.Fields getFieldsProfileById(java.lang.String id) throws android.os.RemoteException - { - return null; - } - @Override public boolean isUidFieldsProfileSelected(int uid) throws android.os.RemoteException - { - return false; - } - @Override public boolean isPackageFieldsProfileSelected(java.lang.String pkg) throws android.os.RemoteException - { - return false; - } - @Override public int getUsageForFieldsProfile(java.lang.String id) throws android.os.RemoteException - { - return 0; - } - @Override public java.util.List getUsagePackagesForFieldsProfile(java.lang.String id) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalSimCountryIso() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalSimOp(int subId) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalSimOpName(int subId) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalNetworkCountryIso() throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalNetworkOp(int subId) throws android.os.RemoteException - { - return null; - } - @Override public java.lang.String getOriginalNetworkOpName(int subId) throws android.os.RemoteException - { - return null; - } - @Override public int getSensorOffSettingsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - return 0; - } - @Override public void setSensorOffSettingsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int settings) throws android.os.RemoteException - { - } - @Override public boolean isSensorOffEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setSensorOffEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.secure.IPrivacyManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.secure.IPrivacyManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.secure.IPrivacyManager))) { - return ((github.tornaco.android.thanos.core.secure.IPrivacyManager)iin); - } - return new github.tornaco.android.thanos.core.secure.IPrivacyManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_isPrivacyEnabled: - { - boolean _result = this.isPrivacyEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPrivacyEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setPrivacyEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getPrivacyDataCheatPkgCount: - { - int _result = this.getPrivacyDataCheatPkgCount(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getPrivacyDataCheatRequestCount: - { - long _result = this.getPrivacyDataCheatRequestCount(); - reply.writeNoException(); - reply.writeLong(_result); - break; - } - case TRANSACTION_getOriginalDeviceId: - { - java.lang.String _result = this.getOriginalDeviceId(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalLine1Number: - { - java.lang.String _result = this.getOriginalLine1Number(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalSimSerialNumber: - { - java.lang.String _result = this.getOriginalSimSerialNumber(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalAndroidId: - { - java.lang.String _result = this.getOriginalAndroidId(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalImei: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.getOriginalImei(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalMeid: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.getOriginalMeid(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getPhoneCount: - { - int _result = this.getPhoneCount(); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getAccessibleSubscriptionInfoList: - { - android.telephony.SubscriptionInfo[] _result = this.getAccessibleSubscriptionInfoList(); - reply.writeNoException(); - reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getPrivacyCheatRecords: - { - github.tornaco.android.thanos.core.secure.PrivacyCheatRecord[] _result = this.getPrivacyCheatRecords(); - reply.writeNoException(); - reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_clearPrivacyCheatRecords: - { - this.clearPrivacyCheatRecords(); - reply.writeNoException(); - break; - } - case TRANSACTION_addOrUpdateFieldsProfile: - { - github.tornaco.android.thanos.core.secure.field.Fields _arg0; - _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))); - break; - } - case TRANSACTION_deleteFieldsProfile: - { - github.tornaco.android.thanos.core.secure.field.Fields _arg0; - _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))); - break; - } - case TRANSACTION_deleteFieldsProfileById: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.deleteFieldsProfileById(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getAllFieldsProfiles: - { - java.util.List _result = this.getAllFieldsProfiles(); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_selectFieldsProfileForPackage: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - this.selectFieldsProfileForPackage(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_getSelectedFieldsProfileIdForPackage: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _result = this.getSelectedFieldsProfileIdForPackage(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getSelectedFieldsProfileForPackage: - { - 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(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getFieldsProfileById: - { - java.lang.String _arg0; - _arg0 = data.readString(); - github.tornaco.android.thanos.core.secure.field.Fields _result = this.getFieldsProfileById(_arg0); - reply.writeNoException(); - _Parcel.writeTypedObject(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_isUidFieldsProfileSelected: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.isUidFieldsProfileSelected(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_isPackageFieldsProfileSelected: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isPackageFieldsProfileSelected(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_getUsageForFieldsProfile: - { - java.lang.String _arg0; - _arg0 = data.readString(); - int _result = this.getUsageForFieldsProfile(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_getUsagePackagesForFieldsProfile: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getUsagePackagesForFieldsProfile(_arg0); - reply.writeNoException(); - reply.writeStringList(_result); - break; - } - case TRANSACTION_getOriginalSimCountryIso: - { - java.lang.String _result = this.getOriginalSimCountryIso(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalSimOp: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.getOriginalSimOp(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalSimOpName: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.getOriginalSimOpName(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalNetworkCountryIso: - { - java.lang.String _result = this.getOriginalNetworkCountryIso(); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalNetworkOp: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.getOriginalNetworkOp(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getOriginalNetworkOpName: - { - int _arg0; - _arg0 = data.readInt(); - java.lang.String _result = this.getOriginalNetworkOpName(_arg0); - reply.writeNoException(); - reply.writeString(_result); - break; - } - case TRANSACTION_getSensorOffSettingsForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _result = this.getSensorOffSettingsForPackage(_arg0); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_setSensorOffSettingsForPackage: - { - github.tornaco.android.thanos.core.pm.Pkg _arg0; - _arg0 = _Parcel.readTypedObject(data, github.tornaco.android.thanos.core.pm.Pkg.CREATOR); - int _arg1; - _arg1 = data.readInt(); - this.setSensorOffSettingsForPackage(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isSensorOffEnabled: - { - boolean _result = this.isSensorOffEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setSensorOffEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSensorOffEnabled(_arg0); - reply.writeNoException(); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.secure.IPrivacyManager - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public boolean isPrivacyEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPrivacyEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPrivacyEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPrivacyEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public int getPrivacyDataCheatPkgCount() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyDataCheatPkgCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public long getPrivacyDataCheatRequestCount() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - long _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyDataCheatRequestCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readLong(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalDeviceId() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalDeviceId, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalLine1Number() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalLine1Number, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalSimSerialNumber() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimSerialNumber, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalAndroidId() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalAndroidId, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalImei(int slotIndex) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(slotIndex); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalImei, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalMeid(int slotIndex) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(slotIndex); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalMeid, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getPhoneCount() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPhoneCount, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public android.telephony.SubscriptionInfo[] getAccessibleSubscriptionInfoList() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - android.telephony.SubscriptionInfo[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAccessibleSubscriptionInfoList, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArray(android.telephony.SubscriptionInfo.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.secure.PrivacyCheatRecord[] getPrivacyCheatRecords() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.secure.PrivacyCheatRecord[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getPrivacyCheatRecords, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArray(github.tornaco.android.thanos.core.secure.PrivacyCheatRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void clearPrivacyCheatRecords() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_clearPrivacyCheatRecords, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean addOrUpdateFieldsProfile(github.tornaco.android.thanos.core.secure.field.Fields f) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, f, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_addOrUpdateFieldsProfile, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean deleteFieldsProfile(github.tornaco.android.thanos.core.secure.field.Fields f) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, f, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_deleteFieldsProfile, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean deleteFieldsProfileById(java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_deleteFieldsProfileById, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getAllFieldsProfiles() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getAllFieldsProfiles, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void selectFieldsProfileForPackage(java.lang.String pkg, java.lang.String profileId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - _data.writeString(profileId); - boolean _status = mRemote.transact(Stub.TRANSACTION_selectFieldsProfileForPackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.lang.String getSelectedFieldsProfileIdForPackage(java.lang.String pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSelectedFieldsProfileIdForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.secure.field.Fields getSelectedFieldsProfileForPackage(java.lang.String pkg, int checkingOp) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.secure.field.Fields _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - _data.writeInt(checkingOp); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSelectedFieldsProfileForPackage, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public github.tornaco.android.thanos.core.secure.field.Fields getFieldsProfileById(java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.secure.field.Fields _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_getFieldsProfileById, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.secure.field.Fields.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isUidFieldsProfileSelected(int uid) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(uid); - boolean _status = mRemote.transact(Stub.TRANSACTION_isUidFieldsProfileSelected, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isPackageFieldsProfileSelected(java.lang.String pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPackageFieldsProfileSelected, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getUsageForFieldsProfile(java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_getUsageForFieldsProfile, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getUsagePackagesForFieldsProfile(java.lang.String id) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(id); - boolean _status = mRemote.transact(Stub.TRANSACTION_getUsagePackagesForFieldsProfile, _data, _reply, 0); - _reply.readException(); - _result = _reply.createStringArrayList(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalSimCountryIso() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimCountryIso, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalSimOp(int subId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(subId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimOp, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalSimOpName(int subId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(subId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalSimOpName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalNetworkCountryIso() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalNetworkCountryIso, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalNetworkOp(int subId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(subId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalNetworkOp, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.lang.String getOriginalNetworkOpName(int subId) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.lang.String _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(subId); - boolean _status = mRemote.transact(Stub.TRANSACTION_getOriginalNetworkOpName, _data, _reply, 0); - _reply.readException(); - _result = _reply.readString(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int getSensorOffSettingsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _Parcel.writeTypedObject(_data, pkg, 0); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSensorOffSettingsForPackage, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSensorOffSettingsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg, int 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); - _Parcel.writeTypedObject(_data, pkg, 0); - _data.writeInt(settings); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSensorOffSettingsForPackage, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isSensorOffEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSensorOffEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setSensorOffEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSensorOffEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - } - static final int TRANSACTION_isPrivacyEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_setPrivacyEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_getPrivacyDataCheatPkgCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_getPrivacyDataCheatRequestCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_getOriginalDeviceId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_getOriginalLine1Number = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_getOriginalSimSerialNumber = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_getOriginalAndroidId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_getOriginalImei = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_getOriginalMeid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_getPhoneCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_getAccessibleSubscriptionInfoList = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_getPrivacyCheatRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_clearPrivacyCheatRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_addOrUpdateFieldsProfile = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_deleteFieldsProfile = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_deleteFieldsProfileById = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_getAllFieldsProfiles = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - static final int TRANSACTION_selectFieldsProfileForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); - static final int TRANSACTION_getSelectedFieldsProfileIdForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); - static final int TRANSACTION_getSelectedFieldsProfileForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); - static final int TRANSACTION_getFieldsProfileById = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); - static final int TRANSACTION_isUidFieldsProfileSelected = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); - static final int TRANSACTION_isPackageFieldsProfileSelected = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); - static final int TRANSACTION_getUsageForFieldsProfile = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); - static final int TRANSACTION_getUsagePackagesForFieldsProfile = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); - static final int TRANSACTION_getOriginalSimCountryIso = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); - static final int TRANSACTION_getOriginalSimOp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); - static final int TRANSACTION_getOriginalSimOpName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); - static final int TRANSACTION_getOriginalNetworkCountryIso = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); - static final int TRANSACTION_getOriginalNetworkOp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); - static final int TRANSACTION_getOriginalNetworkOpName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); - static final int TRANSACTION_getSensorOffSettingsForPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); - 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); - } - /** @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; - public long getPrivacyDataCheatRequestCount() throws android.os.RemoteException; - public java.lang.String getOriginalDeviceId() throws android.os.RemoteException; - public java.lang.String getOriginalLine1Number() throws android.os.RemoteException; - public java.lang.String getOriginalSimSerialNumber() throws android.os.RemoteException; - public java.lang.String getOriginalAndroidId() throws android.os.RemoteException; - public java.lang.String getOriginalImei(int slotIndex) throws android.os.RemoteException; - public java.lang.String getOriginalMeid(int slotIndex) throws android.os.RemoteException; - public int getPhoneCount() throws android.os.RemoteException; - public android.telephony.SubscriptionInfo[] getAccessibleSubscriptionInfoList() throws android.os.RemoteException; - public github.tornaco.android.thanos.core.secure.PrivacyCheatRecord[] getPrivacyCheatRecords() throws android.os.RemoteException; - public void clearPrivacyCheatRecords() throws android.os.RemoteException; - public boolean addOrUpdateFieldsProfile(github.tornaco.android.thanos.core.secure.field.Fields f) throws android.os.RemoteException; - public boolean deleteFieldsProfile(github.tornaco.android.thanos.core.secure.field.Fields f) throws android.os.RemoteException; - public boolean deleteFieldsProfileById(java.lang.String id) throws android.os.RemoteException; - public java.util.List getAllFieldsProfiles() throws android.os.RemoteException; - public void selectFieldsProfileForPackage(java.lang.String pkg, java.lang.String profileId) throws android.os.RemoteException; - public java.lang.String getSelectedFieldsProfileIdForPackage(java.lang.String pkg) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.secure.field.Fields getSelectedFieldsProfileForPackage(java.lang.String pkg, int checkingOp) throws android.os.RemoteException; - public github.tornaco.android.thanos.core.secure.field.Fields getFieldsProfileById(java.lang.String id) throws android.os.RemoteException; - public boolean isUidFieldsProfileSelected(int uid) throws android.os.RemoteException; - public boolean isPackageFieldsProfileSelected(java.lang.String pkg) throws android.os.RemoteException; - public int getUsageForFieldsProfile(java.lang.String id) throws android.os.RemoteException; - public java.util.List getUsagePackagesForFieldsProfile(java.lang.String id) throws android.os.RemoteException; - public java.lang.String getOriginalSimCountryIso() throws android.os.RemoteException; - public java.lang.String getOriginalSimOp(int subId) throws android.os.RemoteException; - public java.lang.String getOriginalSimOpName(int subId) throws android.os.RemoteException; - public java.lang.String getOriginalNetworkCountryIso() throws android.os.RemoteException; - public java.lang.String getOriginalNetworkOp(int subId) throws android.os.RemoteException; - public java.lang.String getOriginalNetworkOpName(int subId) throws android.os.RemoteException; - public int getSensorOffSettingsForPackage(github.tornaco.android.thanos.core.pm.Pkg pkg) throws android.os.RemoteException; - 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 deleted file mode 100644 index d15ac2731..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/ops/IAppOpsService.java +++ /dev/null @@ -1,790 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IAppOpsService. */ - public static class Default implements github.tornaco.android.thanos.core.secure.ops.IAppOpsService - { - @Override public void setMode(int code, int uid, java.lang.String packageName, int mode) throws android.os.RemoteException - { - } - @Override public void resetAllModes(java.lang.String reqPackageName) throws android.os.RemoteException - { - } - @Override public int checkOperation(int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - return 0; - } - @Override public boolean isOpsEnabled() throws android.os.RemoteException - { - return false; - } - @Override public void setOpsEnabled(boolean enabled) throws android.os.RemoteException - { - } - @Override public void onStartOp(android.os.IBinder token, int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - } - @Override public void onFinishOp(android.os.IBinder token, int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - } - @Override public void setOpRemindEnable(int code, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isOpRemindEnabled(int code) throws android.os.RemoteException - { - return false; - } - @Override public void setPkgOpRemindEnable(java.lang.String pkg, boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isPkgOpRemindEnable(java.lang.String pkg) throws android.os.RemoteException - { - return false; - } - @Override public int checkOperationNonCheck(int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - return 0; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - } - @Override public void onSettingsGetString(java.lang.String name, java.lang.String value, java.lang.String callerPackageName) throws android.os.RemoteException - { - } - @Override public void onSettingsPutString(java.lang.String name, java.lang.String value, java.lang.String callerPackageName) throws android.os.RemoteException - { - } - @Override public java.util.List getSettingsReadRecords(java.lang.String filterCallerPackageName) throws android.os.RemoteException - { - return null; - } - @Override public java.util.List getSettingsWriteRecords(java.lang.String filterCallerPackageName) throws android.os.RemoteException - { - return null; - } - @Override public void clearSettingsReadRecords() throws android.os.RemoteException - { - } - @Override public void clearSettingsWriteRecords() throws android.os.RemoteException - { - } - @Override public void setSettingsRecordEnabled(boolean enable) throws android.os.RemoteException - { - } - @Override public boolean isSettingsRecordEnabled() throws android.os.RemoteException - { - return false; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.secure.ops.IAppOpsService interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.secure.ops.IAppOpsService asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.secure.ops.IAppOpsService))) { - return ((github.tornaco.android.thanos.core.secure.ops.IAppOpsService)iin); - } - return new github.tornaco.android.thanos.core.secure.ops.IAppOpsService.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_setMode: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - java.lang.String _arg2; - _arg2 = data.readString(); - int _arg3; - _arg3 = data.readInt(); - this.setMode(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - break; - } - case TRANSACTION_resetAllModes: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.resetAllModes(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_checkOperation: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - java.lang.String _arg2; - _arg2 = data.readString(); - int _result = this.checkOperation(_arg0, _arg1, _arg2); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_isOpsEnabled: - { - boolean _result = this.isOpsEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setOpsEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setOpsEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_onStartOp: - { - android.os.IBinder _arg0; - _arg0 = data.readStrongBinder(); - int _arg1; - _arg1 = data.readInt(); - int _arg2; - _arg2 = data.readInt(); - java.lang.String _arg3; - _arg3 = data.readString(); - this.onStartOp(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - break; - } - case TRANSACTION_onFinishOp: - { - android.os.IBinder _arg0; - _arg0 = data.readStrongBinder(); - int _arg1; - _arg1 = data.readInt(); - int _arg2; - _arg2 = data.readInt(); - java.lang.String _arg3; - _arg3 = data.readString(); - this.onFinishOp(_arg0, _arg1, _arg2, _arg3); - reply.writeNoException(); - break; - } - case TRANSACTION_setOpRemindEnable: - { - int _arg0; - _arg0 = data.readInt(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setOpRemindEnable(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isOpRemindEnabled: - { - int _arg0; - _arg0 = data.readInt(); - boolean _result = this.isOpRemindEnabled(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_setPkgOpRemindEnable: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setPkgOpRemindEnable(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isPkgOpRemindEnable: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isPkgOpRemindEnable(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_checkOperationNonCheck: - { - int _arg0; - _arg0 = data.readInt(); - int _arg1; - _arg1 = data.readInt(); - java.lang.String _arg2; - _arg2 = data.readString(); - int _result = this.checkOperationNonCheck(_arg0, _arg1, _arg2); - reply.writeNoException(); - reply.writeInt(_result); - break; - } - case TRANSACTION_dump: - { - github.tornaco.android.thanos.core.IPrinter _arg0; - _arg0 = github.tornaco.android.thanos.core.IPrinter.Stub.asInterface(data.readStrongBinder()); - this.dump(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_onSettingsGetString: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.lang.String _arg2; - _arg2 = data.readString(); - this.onSettingsGetString(_arg0, _arg1, _arg2); - reply.writeNoException(); - break; - } - case TRANSACTION_onSettingsPutString: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.lang.String _arg1; - _arg1 = data.readString(); - java.lang.String _arg2; - _arg2 = data.readString(); - this.onSettingsPutString(_arg0, _arg1, _arg2); - reply.writeNoException(); - break; - } - case TRANSACTION_getSettingsReadRecords: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getSettingsReadRecords(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_getSettingsWriteRecords: - { - java.lang.String _arg0; - _arg0 = data.readString(); - java.util.List _result = this.getSettingsWriteRecords(_arg0); - reply.writeNoException(); - _Parcel.writeTypedList(reply, _result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); - break; - } - case TRANSACTION_clearSettingsReadRecords: - { - this.clearSettingsReadRecords(); - reply.writeNoException(); - break; - } - case TRANSACTION_clearSettingsWriteRecords: - { - this.clearSettingsWriteRecords(); - reply.writeNoException(); - break; - } - case TRANSACTION_setSettingsRecordEnabled: - { - boolean _arg0; - _arg0 = (0!=data.readInt()); - this.setSettingsRecordEnabled(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_isSettingsRecordEnabled: - { - boolean _result = this.isSettingsRecordEnabled(); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - default: - { - return super.onTransact(code, data, reply, flags); - } - } - return true; - } - private static class Proxy implements github.tornaco.android.thanos.core.secure.ops.IAppOpsService - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public void setMode(int code, int uid, java.lang.String packageName, int mode) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - _data.writeInt(uid); - _data.writeString(packageName); - _data.writeInt(mode); - boolean _status = mRemote.transact(Stub.TRANSACTION_setMode, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void resetAllModes(java.lang.String reqPackageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(reqPackageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_resetAllModes, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public int checkOperation(int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - _data.writeInt(uid); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkOperation, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public boolean isOpsEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isOpsEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setOpsEnabled(boolean enabled) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enabled)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setOpsEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void onStartOp(android.os.IBinder token, int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder(token); - _data.writeInt(code); - _data.writeInt(uid); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_onStartOp, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void onFinishOp(android.os.IBinder token, int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongBinder(token); - _data.writeInt(code); - _data.writeInt(uid); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_onFinishOp, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setOpRemindEnable(int code, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setOpRemindEnable, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isOpRemindEnabled(int code) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - boolean _status = mRemote.transact(Stub.TRANSACTION_isOpRemindEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setPkgOpRemindEnable(java.lang.String pkg, boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setPkgOpRemindEnable, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isPkgOpRemindEnable(java.lang.String pkg) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(pkg); - boolean _status = mRemote.transact(Stub.TRANSACTION_isPkgOpRemindEnable, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public int checkOperationNonCheck(int code, int uid, java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(code); - _data.writeInt(uid); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_checkOperationNonCheck, _data, _reply, 0); - _reply.readException(); - _result = _reply.readInt(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStrongInterface(p); - boolean _status = mRemote.transact(Stub.TRANSACTION_dump, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void onSettingsGetString(java.lang.String name, java.lang.String value, java.lang.String callerPackageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(name); - _data.writeString(value); - _data.writeString(callerPackageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_onSettingsGetString, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void onSettingsPutString(java.lang.String name, java.lang.String value, java.lang.String callerPackageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(name); - _data.writeString(value); - _data.writeString(callerPackageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_onSettingsPutString, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getSettingsReadRecords(java.lang.String filterCallerPackageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(filterCallerPackageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSettingsReadRecords, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.secure.ops.SettingsAccessRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public java.util.List getSettingsWriteRecords(java.lang.String filterCallerPackageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(filterCallerPackageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_getSettingsWriteRecords, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.secure.ops.SettingsAccessRecord.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void clearSettingsReadRecords() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_clearSettingsReadRecords, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void clearSettingsWriteRecords() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_clearSettingsWriteRecords, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public void setSettingsRecordEnabled(boolean enable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeInt(((enable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setSettingsRecordEnabled, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isSettingsRecordEnabled() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_isSettingsRecordEnabled, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_setMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - static final int TRANSACTION_resetAllModes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); - static final int TRANSACTION_checkOperation = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); - static final int TRANSACTION_isOpsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); - static final int TRANSACTION_setOpsEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); - static final int TRANSACTION_onStartOp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); - static final int TRANSACTION_onFinishOp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); - static final int TRANSACTION_setOpRemindEnable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); - static final int TRANSACTION_isOpRemindEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); - static final int TRANSACTION_setPkgOpRemindEnable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); - static final int TRANSACTION_isPkgOpRemindEnable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); - static final int TRANSACTION_checkOperationNonCheck = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); - static final int TRANSACTION_dump = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); - static final int TRANSACTION_onSettingsGetString = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); - static final int TRANSACTION_onSettingsPutString = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); - static final int TRANSACTION_getSettingsReadRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); - static final int TRANSACTION_getSettingsWriteRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); - static final int TRANSACTION_clearSettingsReadRecords = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); - 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); - } - /** @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; - public boolean isOpsEnabled() throws android.os.RemoteException; - public void setOpsEnabled(boolean enabled) throws android.os.RemoteException; - public void onStartOp(android.os.IBinder token, int code, int uid, java.lang.String packageName) throws android.os.RemoteException; - public void onFinishOp(android.os.IBinder token, int code, int uid, java.lang.String packageName) throws android.os.RemoteException; - public void setOpRemindEnable(int code, boolean enable) throws android.os.RemoteException; - public boolean isOpRemindEnabled(int code) throws android.os.RemoteException; - public void setPkgOpRemindEnable(java.lang.String pkg, boolean enable) throws android.os.RemoteException; - public boolean isPkgOpRemindEnable(java.lang.String pkg) throws android.os.RemoteException; - public int checkOperationNonCheck(int code, int uid, java.lang.String packageName) throws android.os.RemoteException; - public void dump(github.tornaco.android.thanos.core.IPrinter p) throws android.os.RemoteException; - public void onSettingsGetString(java.lang.String name, java.lang.String value, java.lang.String callerPackageName) throws android.os.RemoteException; - public void onSettingsPutString(java.lang.String name, java.lang.String value, java.lang.String callerPackageName) throws android.os.RemoteException; - public java.util.List getSettingsReadRecords(java.lang.String filterCallerPackageName) throws android.os.RemoteException; - public java.util.List getSettingsWriteRecords(java.lang.String filterCallerPackageName) throws android.os.RemoteException; - public void clearSettingsReadRecords() throws android.os.RemoteException; - 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 deleted file mode 100644 index f2dcdf82a..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/su/ISu.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for ISu. */ - public static class Default implements github.tornaco.android.thanos.core.su.ISu - { - @Override public github.tornaco.android.thanos.core.su.SuRes exe(java.lang.String[] command) throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.su.ISu interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.su.ISu asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.su.ISu))) { - return ((github.tornaco.android.thanos.core.su.ISu)iin); - } - return new github.tornaco.android.thanos.core.su.ISu.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_exe: - { - java.lang.String[] _arg0; - _arg0 = data.createStringArray(); - github.tornaco.android.thanos.core.su.SuRes _result = this.exe(_arg0); - reply.writeNoException(); - _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 - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public github.tornaco.android.thanos.core.su.SuRes exe(java.lang.String[] command) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - github.tornaco.android.thanos.core.su.SuRes _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeStringArray(command); - boolean _status = mRemote.transact(Stub.TRANSACTION_exe, _data, _reply, 0); - _reply.readException(); - _result = _Parcel.readTypedObject(_reply, github.tornaco.android.thanos.core.su.SuRes.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - static final int TRANSACTION_exe = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); - } - /** @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; - } - } - 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/wm/IWindowManager.java b/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/wm/IWindowManager.java deleted file mode 100644 index 799de0026..000000000 --- a/android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/wm/IWindowManager.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * This file is auto-generated. DO NOT MODIFY. - * Using: /Users/haoguo/Library/Android/sdk/build-tools/35.0.0/aidl -I/Users/haoguo/Documents/workspace/Thanox/android/android_framework/base/src/main/java -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/framework.aidl -p/Users/haoguo/Documents/workspace/Thanox/android/android_sdk/thanos.aidl /Users/haoguo/Documents/workspace/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 -{ - /** Default implementation for IWindowManager. */ - public static class Default implements github.tornaco.android.thanos.core.wm.IWindowManager - { - @Override public int[] getScreenSize() throws android.os.RemoteException - { - return null; - } - @Override public void setDialogForceCancelable(java.lang.String packageName, boolean forceCancelable) throws android.os.RemoteException - { - } - @Override public boolean isDialogForceCancelable(java.lang.String packageName) throws android.os.RemoteException - { - return false; - } - @Override public void reportDialogHasBeenForceSetCancelable(java.lang.String packageName) throws android.os.RemoteException - { - } - @Override public java.util.List getVisibleWindows() throws android.os.RemoteException - { - return null; - } - @Override - public android.os.IBinder asBinder() { - return null; - } - } - /** Local-side IPC implementation stub class. */ - public static abstract class Stub extends android.os.Binder implements 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); - } - /** - * Cast an IBinder object into an github.tornaco.android.thanos.core.wm.IWindowManager interface, - * generating a proxy if needed. - */ - public static github.tornaco.android.thanos.core.wm.IWindowManager asInterface(android.os.IBinder obj) - { - if ((obj==null)) { - return null; - } - android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); - if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.wm.IWindowManager))) { - return ((github.tornaco.android.thanos.core.wm.IWindowManager)iin); - } - return new github.tornaco.android.thanos.core.wm.IWindowManager.Stub.Proxy(obj); - } - @Override public android.os.IBinder asBinder() - { - return this; - } - @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException - { - java.lang.String descriptor = DESCRIPTOR; - 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 TRANSACTION_getScreenSize: - { - int[] _result = this.getScreenSize(); - reply.writeNoException(); - reply.writeIntArray(_result); - break; - } - case TRANSACTION_setDialogForceCancelable: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _arg1; - _arg1 = (0!=data.readInt()); - this.setDialogForceCancelable(_arg0, _arg1); - reply.writeNoException(); - break; - } - case TRANSACTION_isDialogForceCancelable: - { - java.lang.String _arg0; - _arg0 = data.readString(); - boolean _result = this.isDialogForceCancelable(_arg0); - reply.writeNoException(); - reply.writeInt(((_result)?(1):(0))); - break; - } - case TRANSACTION_reportDialogHasBeenForceSetCancelable: - { - java.lang.String _arg0; - _arg0 = data.readString(); - this.reportDialogHasBeenForceSetCancelable(_arg0); - reply.writeNoException(); - break; - } - case TRANSACTION_getVisibleWindows: - { - java.util.List _result = this.getVisibleWindows(); - reply.writeNoException(); - _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 - { - private android.os.IBinder mRemote; - Proxy(android.os.IBinder remote) - { - mRemote = remote; - } - @Override public android.os.IBinder asBinder() - { - return mRemote; - } - public java.lang.String getInterfaceDescriptor() - { - return DESCRIPTOR; - } - @Override public int[] getScreenSize() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - int[] _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getScreenSize, _data, _reply, 0); - _reply.readException(); - _result = _reply.createIntArray(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void setDialogForceCancelable(java.lang.String packageName, boolean forceCancelable) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - _data.writeInt(((forceCancelable)?(1):(0))); - boolean _status = mRemote.transact(Stub.TRANSACTION_setDialogForceCancelable, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public boolean isDialogForceCancelable(java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - boolean _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_isDialogForceCancelable, _data, _reply, 0); - _reply.readException(); - _result = (0!=_reply.readInt()); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - @Override public void reportDialogHasBeenForceSetCancelable(java.lang.String packageName) throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - try { - _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(packageName); - boolean _status = mRemote.transact(Stub.TRANSACTION_reportDialogHasBeenForceSetCancelable, _data, _reply, 0); - _reply.readException(); - } - finally { - _reply.recycle(); - _data.recycle(); - } - } - @Override public java.util.List getVisibleWindows() throws android.os.RemoteException - { - android.os.Parcel _data = android.os.Parcel.obtain(); - android.os.Parcel _reply = android.os.Parcel.obtain(); - java.util.List _result; - try { - _data.writeInterfaceToken(DESCRIPTOR); - boolean _status = mRemote.transact(Stub.TRANSACTION_getVisibleWindows, _data, _reply, 0); - _reply.readException(); - _result = _reply.createTypedArrayList(github.tornaco.android.thanos.core.wm.WindowState.CREATOR); - } - finally { - _reply.recycle(); - _data.recycle(); - } - return _result; - } - } - 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); - } - /** @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/buildSrc/src/main/kotlin/tornaco/project/android/thanox/Aidl.kt b/android/buildSrc/src/main/kotlin/tornaco/project/android/thanox/Aidl.kt index 8054498c5..2e9092a4a 100644 --- a/android/buildSrc/src/main/kotlin/tornaco/project/android/thanox/Aidl.kt +++ b/android/buildSrc/src/main/kotlin/tornaco/project/android/thanox/Aidl.kt @@ -7,6 +7,10 @@ import org.gradle.kotlin.dsl.the import java.io.File +fun Project.aidlBuildDir(): File { + return File(layout.buildDirectory.asFile.get(), "generated/sources/aidl") +} + fun Project.addAidlTask() { tasks.register("idlGen") { group = "idl" @@ -17,6 +21,8 @@ fun Project.addAidlTask() { println("aidl executable file: ${aidl()}, is it exists? ${File(aidl()).exists()}") + val outDir = aidlBuildDir() + javaSrcDirs.forEach { srcDir -> val tree = fileTree(srcDir) tree.forEach { file -> @@ -26,6 +32,7 @@ fun Project.addAidlTask() { commandLine( aidl(), "-I$srcDir", + "--out=$outDir", "-p$projectPrebuiltAndroidSdkDir/framework.aidl", "-p$projectPrebuiltAndroidSdkDir/thanos.aidl", aidlPath diff --git a/android/internal/Thanox-Internal b/android/internal/Thanox-Internal index 553b8cbeb..dc6dc3d77 160000 --- a/android/internal/Thanox-Internal +++ b/android/internal/Thanox-Internal @@ -1 +1 @@ -Subproject commit 553b8cbeb6bd58f794da7373c092cf6930a7a1c8 +Subproject commit dc6dc3d773b12711e148367f219b00d54c4b3775