/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 82 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testUnknownChangeEnabled() 92 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testDisabledChangeDisabled() 102 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeDisabled() 113 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeEnabled() 123 assertThat(compatConfig.isChangeEnabled(1234L, in testDisabledOverrideTargetSdkChange() 158 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 160 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 172 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 174 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 184 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideUnknownPackage() [all …]
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/compat/testing/ |
D | DummyApi.java | 43 if (Compatibility.isChangeEnabled(CHANGE_ID)) { in dummyFunc() 57 if (!Compatibility.isChangeEnabled(CHANGE_ID_1) in dummyCombinedFunc() 58 && !Compatibility.isChangeEnabled(CHANGE_ID_2)) { in dummyCombinedFunc() 60 } else if (!Compatibility.isChangeEnabled(CHANGE_ID_1) in dummyCombinedFunc() 61 && Compatibility.isChangeEnabled(CHANGE_ID_2)) { in dummyCombinedFunc() 63 } else if (Compatibility.isChangeEnabled(CHANGE_ID_1) in dummyCombinedFunc() 64 && !Compatibility.isChangeEnabled(CHANGE_ID_2)) { in dummyCombinedFunc()
|
/frameworks/base/core/tests/coretests/src/android/app/compat/ |
D | CompatChangesTest.java | 67 assertThat(CompatChanges.isChangeEnabled(CHANGE_ID)).isTrue(); in testEnabledChange() 68 assertThat(CompatChanges.isChangeEnabled(CHANGE_ID, Process.myUid())).isTrue(); in testEnabledChange() 69 assertThat(CompatChanges.isChangeEnabled(CHANGE_ID, getPackageName(), in testEnabledChange() 76 assertThat(CompatChanges.isChangeEnabled(CHANGE_ID)).isFalse(); in testDisabledChange() 77 assertThat(CompatChanges.isChangeEnabled(CHANGE_ID, Process.myUid())).isFalse(); in testDisabledChange() 78 assertThat(CompatChanges.isChangeEnabled(CHANGE_ID, getPackageName(), in testDisabledChange()
|
/frameworks/base/core/java/android/app/compat/ |
D | CompatChanges.java | 52 public static boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatChanges 53 return Compatibility.isChangeEnabled(changeId); in isChangeEnabled() 70 public static boolean isChangeEnabled(long changeId, @NonNull String packageName, in isChangeEnabled() method in CompatChanges 102 public static boolean isChangeEnabled(long changeId, int uid) { in isChangeEnabled() method in CompatChanges
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatPermissionsTest.java | 135 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException() 145 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException() 154 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_readAndLogCompatChangeConfigPermission_noThrow()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 103 public boolean isChangeEnabled(long changeId, ApplicationInfo appInfo) { in isChangeEnabled() method in PlatformCompat 105 if (mCompatConfig.isChangeEnabled(changeId, appInfo)) { in isChangeEnabled() 123 return isChangeEnabled(changeId, appInfo); in isChangeEnabledByPackageName()
|
D | CompatConfig.java | 133 boolean isChangeEnabled(long changeId, ApplicationInfo app) { in isChangeEnabled() method in CompatConfig
|
/frameworks/base/core/java/android/app/ |
D | AppCompatCallbacks.java | 55 protected boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in AppCompatCallbacks
|
/frameworks/base/core/java/com/android/internal/compat/ |
D | IPlatformCompat.aidl | 86 boolean isChangeEnabled(long changeId, in ApplicationInfo appInfo); in isChangeEnabled() method
|
D | CompatibilityChangeConfig.java | 55 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatibilityChangeConfig
|
/frameworks/base/telephony/java/android/telephony/ |
D | PreciseDataConnectionState.java | 155 && !Compatibility.isChangeEnabled(GET_DATA_CONNECTION_STATE_R_VERSION)) { in getDataConnectionState()
|
D | SmsManager.java | 1537 if (!Compatibility.isChangeEnabled(GET_TARGET_SDK_VERSION_CODE_CHANGE) in sendResolverResult()
|
D | TelephonyManager.java | 5301 && !Compatibility.isChangeEnabled(GET_DATA_STATE_R_VERSION)) { in getDataState() 5403 if (Compatibility.isChangeEnabled(LISTEN_CODE_CHANGE)) { in listen() 11972 if (Compatibility.isChangeEnabled(CALLBACK_ON_MORE_ERROR_CODE_CHANGE)) { in setPreferredOpportunisticDataSubscription() 12073 if (Compatibility.isChangeEnabled(CALLBACK_ON_MORE_ERROR_CODE_CHANGE)) { in updateAvailableNetworks()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessList.java | 1680 || mPlatformCompat.isChangeEnabled(NATIVE_MEMORY_TAGGING, app.info)) { 1686 if (mPlatformCompat.isChangeEnabled(NATIVE_HEAP_POINTER_TAGGING, app.info)) {
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 207 return Binder.withCleanCallingIdentity(() -> CompatChanges.isChangeEnabled( in isRegistrationLimitEnabledInPlatformCompat()
|
/frameworks/base/api/ |
D | system-current.txt | 987 method public static boolean isChangeEnabled(long); 988 …FIG", "android.permission.LOG_COMPAT_CHANGE"}) public static boolean isChangeEnabled(long, @NonNul… 989 …CONFIG", "android.permission.LOG_COMPAT_CHANGE"}) public static boolean isChangeEnabled(long, int);
|
/frameworks/base/non-updatable-api/ |
D | system-current.txt | 987 method public static boolean isChangeEnabled(long); 988 …FIG", "android.permission.LOG_COMPAT_CHANGE"}) public static boolean isChangeEnabled(long, @NonNul… 989 …CONFIG", "android.permission.LOG_COMPAT_CHANGE"}) public static boolean isChangeEnabled(long, int);
|