/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 105 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testUnknownChangeEnabled() 115 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testDisabledChangeDisabled() 125 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeDisabled() 136 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeEnabled() 146 assertThat(compatConfig.isChangeEnabled(1234L, in testDisabledOverrideTargetSdkChange() 185 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 187 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 203 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 205 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 221 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/services/core/java/com/android/server/wm/ |
D | CompatModePackages.java | 378 if (CompatChanges.isChangeEnabled(DOWNSCALED, packageName, userHandle)) { in getCompatScale() 379 if (CompatChanges.isChangeEnabled(DOWNSCALE_90, packageName, userHandle)) { in getCompatScale() 382 if (CompatChanges.isChangeEnabled(DOWNSCALE_85, packageName, userHandle)) { in getCompatScale() 385 if (CompatChanges.isChangeEnabled(DOWNSCALE_80, packageName, userHandle)) { in getCompatScale() 388 if (CompatChanges.isChangeEnabled(DOWNSCALE_75, packageName, userHandle)) { in getCompatScale() 391 if (CompatChanges.isChangeEnabled(DOWNSCALE_70, packageName, userHandle)) { in getCompatScale() 394 if (CompatChanges.isChangeEnabled(DOWNSCALE_65, packageName, userHandle)) { in getCompatScale() 397 if (CompatChanges.isChangeEnabled(DOWNSCALE_60, packageName, userHandle)) { in getCompatScale() 400 if (CompatChanges.isChangeEnabled(DOWNSCALE_55, packageName, userHandle)) { in getCompatScale() 403 if (CompatChanges.isChangeEnabled(DOWNSCALE_50, packageName, userHandle)) { in getCompatScale() [all …]
|
/frameworks/base/core/java/android/app/compat/ |
D | CompatChanges.java | 57 public static boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatChanges 58 return Compatibility.isChangeEnabled(changeId); in isChangeEnabled() 75 public static boolean isChangeEnabled(long changeId, @NonNull String packageName, in isChangeEnabled() method in CompatChanges 98 public static boolean isChangeEnabled(long changeId, int uid) { in isChangeEnabled() method in CompatChanges
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/library/ |
D | AndroidTestBaseUpdater.java | 58 private static boolean isChangeEnabled(AndroidPackage pkg) { in isChangeEnabled() method in AndroidTestBaseUpdater 65 return platformCompat.isChangeEnabled(REMOVE_ANDROID_TEST_BASE, in isChangeEnabled() 80 if (!isChangeEnabled(pkg)) { in updatePackage()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageParser2.java | 72 public boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo) { in forParsingFileWithDefaults() 74 return platformCompat.isChangeEnabled(changeId, appInfo); in forParsingFileWithDefaults() 139 return callback.isChangeEnabled(changeId, appInfo); 216 public abstract boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo);
|
/frameworks/base/core/java/android/widget/ |
D | Toast.java | 190 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show() 205 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show() 229 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) in cancel() 426 return Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) && mNextView == null; in isSystemRenderedTextToast() 458 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in getWindowParams() 494 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in makeText() 538 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in setText()
|
/frameworks/base/core/java/android/content/pm/parsing/result/ |
D | ParseTypeImpl.java | 95 return platformCompat.isChangeEnabled(changeId, appInfo); in forDefaultParsing() 151 if (mCallback.isChangeEnabled(deferredError, mPackageName, mTargetSdkVersion)) { 180 if (mCallback.isChangeEnabled(changeId, mPackageName, mTargetSdkVersion)) {
|
D | ParseInput.java | 173 boolean isChangeEnabled(long changeId, @NonNull String packageName, int targetSdkVersion); in isChangeEnabled() method
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 1329 if (CompatChanges.isChangeEnabled(FORCE_NON_RESIZE_APP, in supportsSizeChanges() 1339 if (CompatChanges.isChangeEnabled(FORCE_RESIZE_APP, in supportsSizeChanges() 1353 return CompatChanges.isChangeEnabled(NEVER_SANDBOX_DISPLAY_APIS, in neverSandboxDisplayApis() 1364 return CompatChanges.isChangeEnabled(ALWAYS_SANDBOX_DISPLAY_APIS, in alwaysSandboxDisplayApis() 1396 if (applicationInfo == null || !CompatChanges.isChangeEnabled(OVERRIDE_MIN_ASPECT_RATIO, in getMinAspectRatio() 1402 if (CompatChanges.isChangeEnabled(OVERRIDE_MIN_ASPECT_RATIO_LARGE, in getMinAspectRatio() 1408 if (CompatChanges.isChangeEnabled(OVERRIDE_MIN_ASPECT_RATIO_MEDIUM, in getMinAspectRatio()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/ |
D | ParseInputAndResultTest.kt | 63 override fun isChangeEnabled(changeId: Long, pkgName: String, targetSdk: Int): Boolean { in createInput() method in android.content.pm.parsing.result.ParseInputAndResultTest.createInput.TestCallback 221 verify(mockCallback, times(1)).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableFirst() 235 verify(mockCallback, never()).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableSecond() 239 verify(mockCallback, times(1)).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableSecond()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | TestPackageParser2.kt | 23 override fun isChangeEnabled(changeId: Long, appInfo: ApplicationInfo): Boolean { in isChangeEnabled() method in com.android.server.pm.parsing.TestPackageParser2
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatPermissionsTest.java | 136 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException() 146 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException() 155 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_readAndLogCompatChangeConfigPermission_noThrow()
|
D | PlatformCompatCommandNotInstalledTest.kt | 131 assertThat(platformCompat.isChangeEnabled(TEST_CHANGE_ID, appInfo)).isEqualTo(params.result) in <lambda>()
|
/frameworks/base/core/java/android/app/ |
D | AppCompatCallbacks.java | 55 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in AppCompatCallbacks
|
/frameworks/base/core/java/com/android/internal/compat/ |
D | IPlatformCompat.aidl | 91 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/services/backup/java/com/android/server/backup/utils/ |
D | BackupEligibilityRules.java | 167 boolean ignoreAllowBackup = !isSystemApp && CompatChanges.isChangeEnabled( in isAppBackupAllowed() 177 if (!CompatChanges.isChangeEnabled(RESTRICT_ADB_BACKUP, packageName, in isAppBackupAllowed()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationUtils.java | 92 static boolean isChangeEnabled(PlatformCompat platformCompat, AndroidPackage pkg, in isChangeEnabled() method in DomainVerificationUtils
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 1536 if (Compatibility.isChangeEnabled(BLOCK_UNTARGETED_PENDING_INTENTS)) { in requestLocationUpdates() 1541 if (Compatibility.isChangeEnabled(BLOCK_IMMUTABLE_PENDING_INTENTS)) { in requestLocationUpdates() 1816 if (!Compatibility.isChangeEnabled(GET_PROVIDER_SECURITY_EXCEPTIONS)) { in getProvider() 2081 if (Compatibility.isChangeEnabled(BLOCK_INCOMPLETE_LOCATIONS)) { in setTestProviderLocation() 2188 if (Compatibility.isChangeEnabled(BLOCK_UNTARGETED_PENDING_INTENTS)) { in addProximityAlert() 2193 if (Compatibility.isChangeEnabled(BLOCK_IMMUTABLE_PENDING_INTENTS)) { in addProximityAlert() 2309 if (Compatibility.isChangeEnabled(BLOCK_GPS_STATUS_USAGE)) { in getGpsStatus() 2343 if (Compatibility.isChangeEnabled(BLOCK_GPS_STATUS_USAGE)) { in addGpsStatusListener() 2363 if (Compatibility.isChangeEnabled(BLOCK_GPS_STATUS_USAGE)) { in removeGpsStatusListener()
|
/frameworks/base/core/java/android/content/om/ |
D | OverlayManager.java | 316 if (!Compatibility.isChangeEnabled(THROW_SECURITY_EXCEPTIONS)) { in rethrowSecurityException()
|
/frameworks/base/core/java/android/database/ |
D | ContentObserver.java | 197 if (!CompatChanges.isChangeEnabled(ADD_CONTENT_OBSERVER_FLAGS) in onChange()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjuster.java | 287 boolean isChangeEnabled(long changeId, ApplicationInfo app) throws RemoteException { in isChangeEnabled() method in OomAdjuster.PlatformCompatCache 288 return mCacheEnabled ? mCaches.get(changeId).isChangeEnabled(app) in isChangeEnabled() 289 : mIPlatformCompatProxy.isChangeEnabled(changeId, app); in isChangeEnabled() 296 boolean isChangeEnabled(long changeId, ApplicationInfo app, boolean defaultValue) { in isChangeEnabled() method in OomAdjuster.PlatformCompatCache 298 return mCacheEnabled ? mCaches.get(changeId).isChangeEnabled(app) in isChangeEnabled() 299 : mIPlatformCompatProxy.isChangeEnabled(changeId, app); in isChangeEnabled() 326 boolean isChangeEnabled(ApplicationInfo app) { in isChangeEnabled() method in OomAdjuster.PlatformCompatCache.CacheItem 1934 enabled = getPlatformCompatCache().isChangeEnabled( in computeOomAdjLSP() 2156 enabled = getPlatformCompatCache().isChangeEnabled( in computeOomAdjLSP() 2803 final boolean fgsInteractionChangeEnabled = getPlatformCompatCache().isChangeEnabled( in applyOomAdjLSP() [all …]
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStoreSecurityLevel.java | 102 if (CompatChanges.isChangeEnabled( in createOperation()
|