Home
last modified time | relevance | path

Searched refs:isChangeEnabled (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatConfigTest.java82 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/
DDummyApi.java43 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/
DCompatChangesTest.java67 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/
DCompatChanges.java52 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/
DPlatformCompatPermissionsTest.java135 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/
DPlatformCompat.java103 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()
DCompatConfig.java133 boolean isChangeEnabled(long changeId, ApplicationInfo app) { in isChangeEnabled() method in CompatConfig
/frameworks/base/core/java/android/app/
DAppCompatCallbacks.java55 protected boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in AppCompatCallbacks
/frameworks/base/core/java/com/android/internal/compat/
DIPlatformCompat.aidl86 boolean isChangeEnabled(long changeId, in ApplicationInfo appInfo); in isChangeEnabled() method
DCompatibilityChangeConfig.java55 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatibilityChangeConfig
/frameworks/base/telephony/java/android/telephony/
DPreciseDataConnectionState.java155 && !Compatibility.isChangeEnabled(GET_DATA_CONNECTION_STATE_R_VERSION)) { in getDataConnectionState()
DSmsManager.java1537 if (!Compatibility.isChangeEnabled(GET_TARGET_SDK_VERSION_CODE_CHANGE) in sendResolverResult()
DTelephonyManager.java5301 && !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/
DProcessList.java1680 || 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/
DTelephonyRegistry.java207 return Binder.withCleanCallingIdentity(() -> CompatChanges.isChangeEnabled( in isRegistrationLimitEnabledInPlatformCompat()
/frameworks/base/api/
Dsystem-current.txt987 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/
Dsystem-current.txt987 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);