/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() 206 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 208 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled() 224 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 226 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled() 242 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/opt/car/services/builtInServices/src/com/android/server/wm/ |
D | CarDisplayCompatScaleProvider.java | 155 if (CompatChanges.isChangeEnabled(DOWNSCALE_90, packageName, userHandle)) { in getBuiltinInterface() 158 if (CompatChanges.isChangeEnabled(DOWNSCALE_85, packageName, userHandle)) { in getBuiltinInterface() 161 if (CompatChanges.isChangeEnabled(DOWNSCALE_80, packageName, userHandle)) { in getBuiltinInterface() 164 if (CompatChanges.isChangeEnabled(DOWNSCALE_75, packageName, userHandle)) { in getBuiltinInterface() 167 if (CompatChanges.isChangeEnabled(DOWNSCALE_70, packageName, userHandle)) { in getBuiltinInterface() 170 if (CompatChanges.isChangeEnabled(DOWNSCALE_65, packageName, userHandle)) { in getBuiltinInterface() 173 if (CompatChanges.isChangeEnabled(DOWNSCALE_60, packageName, userHandle)) { in getBuiltinInterface() 176 if (CompatChanges.isChangeEnabled(DOWNSCALE_55, packageName, userHandle)) { in getBuiltinInterface() 179 if (CompatChanges.isChangeEnabled(DOWNSCALE_50, packageName, userHandle)) { in getBuiltinInterface() 182 if (CompatChanges.isChangeEnabled(DOWNSCALE_45, packageName, userHandle)) { in getBuiltinInterface() [all …]
|
/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 | 518 final boolean isDownscaledEnabled = CompatChanges.isChangeEnabled( in getCompatScale() 520 final boolean isDownscaledInverseEnabled = CompatChanges.isChangeEnabled( in getCompatScale() 535 if (smallestScreenWidthPx > 1080 && !CompatChanges.isChangeEnabled( in getCompatScale() 575 if (CompatChanges.isChangeEnabled(DOWNSCALE_90, packageName, userHandle)) { in getScalingFactor() 578 if (CompatChanges.isChangeEnabled(DOWNSCALE_85, packageName, userHandle)) { in getScalingFactor() 581 if (CompatChanges.isChangeEnabled(DOWNSCALE_80, packageName, userHandle)) { in getScalingFactor() 584 if (CompatChanges.isChangeEnabled(DOWNSCALE_75, packageName, userHandle)) { in getScalingFactor() 587 if (CompatChanges.isChangeEnabled(DOWNSCALE_70, packageName, userHandle)) { in getScalingFactor() 590 if (CompatChanges.isChangeEnabled(DOWNSCALE_65, packageName, userHandle)) { in getScalingFactor() 593 if (CompatChanges.isChangeEnabled(DOWNSCALE_60, packageName, userHandle)) { in getScalingFactor() [all …]
|
D | ActivitySecurityModelFeatureFlags.java | 72 && CompatChanges.isChangeEnabled(ASM_RESTRICTIONS, uid)); in shouldShowToast() 78 return CompatChanges.isChangeEnabled(ASM_RESTRICTIONS, uid) in shouldRestrictActivitySwitch()
|
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/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/library/ |
D | AndroidTestBaseUpdater.java | 60 private static boolean isChangeEnabled(@NonNull AndroidPackage pkg, boolean isSystemApp) { in isChangeEnabled() method in AndroidTestBaseUpdater 67 return platformCompat.isChangeEnabled(REMOVE_ANDROID_TEST_BASE, in isChangeEnabled() 83 if (!isChangeEnabled(pkg, isSystemApp)) { in updatePackage()
|
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/ |
D | JobService.java | 346 if (Compatibility.isChangeEnabled(THROW_ON_INVALID_DATA_TRANSFER_IMPLEMENTATION)) { in getTransferredDownloadBytes() 370 if (Compatibility.isChangeEnabled(THROW_ON_INVALID_DATA_TRANSFER_IMPLEMENTATION)) { in getTransferredUploadBytes() 400 if (Compatibility.isChangeEnabled(THROW_ON_INVALID_DATA_TRANSFER_IMPLEMENTATION)) { in getTransferredDownloadBytes() 430 if (Compatibility.isChangeEnabled(THROW_ON_INVALID_DATA_TRANSFER_IMPLEMENTATION)) { in getTransferredUploadBytes()
|
D | JobWorkItem.java | 122 enforceValidity(Compatibility.isChangeEnabled(JobInfo.REJECT_NEGATIVE_NETWORK_ESTIMATES)); in JobWorkItem() 379 return build(Compatibility.isChangeEnabled(JobInfo.REJECT_NEGATIVE_NETWORK_ESTIMATES)); in build()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageParserUtils.java | 49 public boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo) { in forParsingFileWithDefaults() 51 return platformCompat.isChangeEnabled(changeId, appInfo); in forParsingFileWithDefaults()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SaferIntentUtils.java | 189 boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in SaferIntentUtils.IntentArgs 221 && args.isChangeEnabled(IntentFilter.BLOCK_NULL_ACTION_INTENTS); in blockNullAction() 281 && args.isChangeEnabled(ENFORCE_INTENTS_TO_MATCH_INTENT_FILTERS); in enforceIntentFilterMatching() 283 && args.isChangeEnabled(IntentFilter.BLOCK_NULL_ACTION_INTENTS); in enforceIntentFilterMatching() 370 args.isChangeEnabled(IMPLICIT_INTENTS_ONLY_MATCH_EXPORTED_COMPONENTS); in filterNonExportedComponents()
|
/frameworks/base/core/java/android/widget/ |
D | Toast.java | 199 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show() 220 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show() 254 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) in cancel() 451 return Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) && mNextView == null; in isSystemRenderedTextToast() 483 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in getWindowParams() 520 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in makeText() 581 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/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/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | TestPackageParser2.kt | 27 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()
|
/frameworks/base/core/java/android/app/ |
D | AppCompatCallbacks.java | 71 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in AppCompatCallbacks
|
/frameworks/base/core/java/com/android/internal/pm/parsing/ |
D | PackageParser2.java | 107 return callback.isChangeEnabled(changeId, appInfo); in PackageParser2() 207 public abstract boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo); in isChangeEnabled() method in PackageParser2.Callback
|
/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 | 97 boolean isChangeEnabled(long changeId, in ApplicationInfo appInfo); in isChangeEnabled() method
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 1888 return isChangeEnabled(NEVER_SANDBOX_DISPLAY_APIS) 1897 return isChangeEnabled(ALWAYS_SANDBOX_DISPLAY_APIS) 1955 public boolean isChangeEnabled(long changeId) { 1956 return applicationInfo.isChangeEnabled(changeId); 2026 return isChangeEnabled(CHECK_MIN_WIDTH_HEIGHT_FOR_MULTI_WINDOW);
|