Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatConfigTest.java107 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/
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/services/core/java/com/android/server/wm/
DCompatModePackages.java449 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 …]
DActivityRecordInputSink.java47 mIsCompatEnabled = CompatChanges.isChangeEnabled(ENABLE_TOUCH_OPAQUE_ACTIVITIES, in ActivityRecordInputSink()
/frameworks/base/services/core/java/com/android/server/am/
DPlatformCompatCache.java106 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/
DAndroidTestBaseUpdater.java59 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/
DCompatChanges.java58 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/
DPackageParser2.java71 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/
DToast.java197 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/
DParseTypeImpl.java94 return platformCompat.isChangeEnabled(changeId, appInfo); in forDefaultParsing()
149 if (mCallback.isChangeEnabled(deferredError, mPackageName, mTargetSdkVersion)) {
178 if (mCallback.isChangeEnabled(changeId, mPackageName, mTargetSdkVersion)) {
DParseInput.java173 boolean isChangeEnabled(long changeId, @NonNull String packageName, int targetSdkVersion); in isChangeEnabled() method
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/
DTestPackageParser2.kt23 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/
DParseInputAndResultTest.kt65 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/
DActivityInfo.java1642 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/
DPlatformCompatPermissionsTest.java136 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()
DPlatformCompatCommandNotInstalledTest.kt131 assertThat(platformCompat.isChangeEnabled(TEST_CHANGE_ID, appInfo)).isEqualTo(params.result) in <lambda>()
/frameworks/base/core/java/android/app/
DAppCompatCallbacks.java55 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in AppCompatCallbacks
/frameworks/base/core/java/com/android/internal/compat/
DCompatibilityChangeConfig.java55 public boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatibilityChangeConfig
DIPlatformCompat.aidl93 boolean isChangeEnabled(long changeId, in ApplicationInfo appInfo); in isChangeEnabled() method
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java166 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/
DDomainVerificationUtils.java92 static boolean isChangeEnabled(PlatformCompat platformCompat, AndroidPackage pkg, in isChangeEnabled() method in DomainVerificationUtils
/frameworks/base/core/java/android/app/servertransaction/
DActivityResultItem.java59 return CompatChanges.isChangeEnabled(CALL_ACTIVITY_RESULT_BEFORE_RESUME) in getPostExecutionState()
/frameworks/base/location/java/android/location/
DLocationManager.java1602 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/
DOverlayManager.java316 if (!Compatibility.isChangeEnabled(THROW_SECURITY_EXCEPTIONS)) { in rethrowSecurityException()

1234