/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 107 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testUnknownChangeEnabled() 117 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testDisabledChangeDisabled() 127 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeDisabled() 138 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeEnabled() 148 assertThat(compatConfig.isChangeEnabled(1234L, in testDisabledOverrideTargetSdkChange() 187 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 189 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 205 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 207 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 223 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 | 449 final boolean isDownscaledEnabled = CompatChanges.isChangeEnabled( in getCompatScale() 451 final boolean isDownscaledInverseEnabled = CompatChanges.isChangeEnabled( in getCompatScale() 466 if (smallestScreenWidthPx > 1080 && !CompatChanges.isChangeEnabled( in getCompatScale() 476 if (CompatChanges.isChangeEnabled(DOWNSCALE_90, packageName, userHandle)) { in getScalingFactor() 479 if (CompatChanges.isChangeEnabled(DOWNSCALE_85, packageName, userHandle)) { in getScalingFactor() 482 if (CompatChanges.isChangeEnabled(DOWNSCALE_80, packageName, userHandle)) { in getScalingFactor() 485 if (CompatChanges.isChangeEnabled(DOWNSCALE_75, packageName, userHandle)) { in getScalingFactor() 488 if (CompatChanges.isChangeEnabled(DOWNSCALE_70, packageName, userHandle)) { in getScalingFactor() 491 if (CompatChanges.isChangeEnabled(DOWNSCALE_65, packageName, userHandle)) { in getScalingFactor() 494 if (CompatChanges.isChangeEnabled(DOWNSCALE_60, packageName, userHandle)) { in getScalingFactor() [all …]
|
D | ActivityRecordInputSink.java | 47 mIsCompatEnabled = CompatChanges.isChangeEnabled(ENABLE_TOUCH_OPAQUE_ACTIVITIES, in ActivityRecordInputSink()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PlatformCompatCache.java | 106 private boolean isChangeEnabled(long changeId, ApplicationInfo app, boolean defaultValue) { in isChangeEnabled() method in PlatformCompatCache 108 return mCacheEnabled ? mCaches.get(changeId).isChangeEnabled(app) in isChangeEnabled() 109 : mIPlatformCompatProxy.isChangeEnabled(changeId, app); in isChangeEnabled() 119 static boolean isChangeEnabled(@CachedCompatChangeId int cachedCompatChangeId, in isChangeEnabled() method in PlatformCompatCache 121 return getInstance().isChangeEnabled( in isChangeEnabled() 157 boolean isChangeEnabled(ApplicationInfo app) { in isChangeEnabled() method in PlatformCompatCache.CacheItem
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/library/ |
D | AndroidTestBaseUpdater.java | 59 private static boolean isChangeEnabled(AndroidPackage pkg) { in isChangeEnabled() method in AndroidTestBaseUpdater 66 return platformCompat.isChangeEnabled(REMOVE_ANDROID_TEST_BASE, in isChangeEnabled() 81 if (!isChangeEnabled(pkg)) { in updatePackage()
|
/frameworks/base/core/java/android/app/compat/ |
D | CompatChanges.java | 58 public static boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatChanges 59 return Compatibility.isChangeEnabled(changeId); in isChangeEnabled() 76 public static boolean isChangeEnabled(long changeId, @NonNull String packageName, in isChangeEnabled() method in CompatChanges 99 public static boolean isChangeEnabled(long changeId, int uid) { in isChangeEnabled() method in CompatChanges
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageParser2.java | 71 public boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo) { in forParsingFileWithDefaults() 73 return platformCompat.isChangeEnabled(changeId, appInfo); in forParsingFileWithDefaults() 138 return callback.isChangeEnabled(changeId, appInfo); 225 public abstract boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo);
|
/frameworks/base/core/java/android/widget/ |
D | Toast.java | 197 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show() 212 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show() 236 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) in cancel() 433 return Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) && mNextView == null; in isSystemRenderedTextToast() 465 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in getWindowParams() 503 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in makeText() 565 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in setText()
|
/frameworks/base/core/java/android/content/pm/parsing/result/ |
D | ParseTypeImpl.java | 94 return platformCompat.isChangeEnabled(changeId, appInfo); in forDefaultParsing() 149 if (mCallback.isChangeEnabled(deferredError, mPackageName, mTargetSdkVersion)) { 178 if (mCallback.isChangeEnabled(changeId, mPackageName, mTargetSdkVersion)) {
|
D | ParseInput.java | 173 boolean isChangeEnabled(long changeId, @NonNull String packageName, int targetSdkVersion); in isChangeEnabled() method
|
/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/core/tests/coretests/src/android/content/pm/parsing/result/ |
D | ParseInputAndResultTest.kt | 65 override fun isChangeEnabled(changeId: Long, pkgName: String, targetSdk: Int): Boolean { in createInput() method in android.content.pm.parsing.result.ParseInputAndResultTest.createInput.TestCallback 223 verify(mockCallback, times(1)).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableFirst() 237 verify(mockCallback, never()).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableSecond() 241 verify(mockCallback, times(1)).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableSecond()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 1642 if (isChangeEnabled(FORCE_NON_RESIZE_APP)) { in supportsSizeChanges() 1650 if (isChangeEnabled(FORCE_RESIZE_APP)) { in supportsSizeChanges() 1662 return isChangeEnabled(NEVER_SANDBOX_DISPLAY_APIS) in neverSandboxDisplayApis() 1671 return isChangeEnabled(ALWAYS_SANDBOX_DISPLAY_APIS) in alwaysSandboxDisplayApis() 1729 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in ActivityInfo 1730 return CompatChanges.isChangeEnabled(changeId, applicationInfo.packageName, in isChangeEnabled() 1801 return isChangeEnabled(CHECK_MIN_WIDTH_HEIGHT_FOR_MULTI_WINDOW); in shouldCheckMinWidthHeightForMultiWindow()
|
/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 | CompatibilityChangeConfig.java | 55 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatibilityChangeConfig
|
D | IPlatformCompat.aidl | 93 boolean isChangeEnabled(long changeId, in ApplicationInfo appInfo); in isChangeEnabled() method
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | BackupEligibilityRules.java | 166 boolean ignoreAllowBackup = !isSystemApp && CompatChanges.isChangeEnabled( in isAppBackupAllowed() 176 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/core/java/android/app/servertransaction/ |
D | ActivityResultItem.java | 59 return CompatChanges.isChangeEnabled(CALL_ACTIVITY_RESULT_BEFORE_RESUME) in getPostExecutionState()
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 1602 if (Compatibility.isChangeEnabled(BLOCK_UNTARGETED_PENDING_INTENTS)) { in requestLocationUpdates() 1607 if (Compatibility.isChangeEnabled(BLOCK_IMMUTABLE_PENDING_INTENTS)) { in requestLocationUpdates() 1883 if (!Compatibility.isChangeEnabled(GET_PROVIDER_SECURITY_EXCEPTIONS)) { in getProvider() 2148 if (Compatibility.isChangeEnabled(BLOCK_INCOMPLETE_LOCATIONS)) { in setTestProviderLocation() 2255 if (Compatibility.isChangeEnabled(BLOCK_UNTARGETED_PENDING_INTENTS)) { in addProximityAlert() 2260 if (Compatibility.isChangeEnabled(BLOCK_IMMUTABLE_PENDING_INTENTS)) { in addProximityAlert() 2376 if (Compatibility.isChangeEnabled(BLOCK_GPS_STATUS_USAGE)) { in getGpsStatus() 2410 if (Compatibility.isChangeEnabled(BLOCK_GPS_STATUS_USAGE)) { in addGpsStatusListener() 2430 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()
|