Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatConfigTest.java84 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testUnknownChangeEnabled()
94 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testDisabledChangeDisabled()
104 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeDisabled()
115 assertThat(compatConfig.isChangeEnabled(1234L, in testTargetSdkChangeEnabled()
125 assertThat(compatConfig.isChangeEnabled(1234L, in testDisabledOverrideTargetSdkChange()
160 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled()
162 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideEnabled()
174 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled()
176 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create() in testPackageOverrideDisabled()
186 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.java47 public static boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in CompatChanges
48 return Compatibility.isChangeEnabled(changeId); in isChangeEnabled()
65 public static boolean isChangeEnabled(long changeId, @NonNull String packageName, in isChangeEnabled() method in CompatChanges
88 public static boolean isChangeEnabled(long changeId, int uid) { in isChangeEnabled() method in CompatChanges
/frameworks/base/services/core/java/com/android/server/pm/parsing/library/
DAndroidTestBaseUpdater.java58 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/
DPackageParser2.java69 public boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo) { in forParsingFileWithDefaults()
71 return platformCompat.isChangeEnabled(changeId, appInfo); in forParsingFileWithDefaults()
131 return callback.isChangeEnabled(changeId, appInfo);
208 public abstract boolean isChangeEnabled(long changeId, @NonNull ApplicationInfo appInfo);
/frameworks/base/core/java/android/widget/
DToast.java187 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show()
202 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in show()
226 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) in cancel()
423 return Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM) && mNextView == null; in isSystemRenderedTextToast()
455 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in getWindowParams()
491 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in makeText()
535 if (Compatibility.isChangeEnabled(CHANGE_TEXT_TOASTS_IN_THE_SYSTEM)) { in setText()
/frameworks/base/core/java/android/content/pm/parsing/result/
DParseTypeImpl.java95 return platformCompat.isChangeEnabled(changeId, appInfo); in forDefaultParsing()
149 if (mCallback.isChangeEnabled(deferredError, mPackageName, mTargetSdkVersion)) {
178 if (mCallback.isChangeEnabled(changeId, mPackageName, mTargetSdkVersion)) {
DParseInput.java161 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/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()
DPlatformCompatCommandNotInstalledTest.kt128 assertThat(platformCompat.isChangeEnabled(TEST_CHANGE_ID, appInfo)).isEqualTo(params.result) in ParcelFileDescriptor()
/frameworks/base/services/core/java/com/android/server/compat/
DPlatformCompat.java103 public boolean isChangeEnabled(long changeId, ApplicationInfo appInfo) { in isChangeEnabled() method in PlatformCompat
112 if (mCompatConfig.isChangeEnabled(changeId, appInfo)) { in isChangeEnabledInternal()
130 return isChangeEnabled(changeId, appInfo); in isChangeEnabledByPackageName()
DCompatConfig.java137 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
DSharedPreferencesImpl.java626 if (mcr.keysCleared && Compatibility.isChangeEnabled(CALLBACK_ON_CLEAR_CHANGE)) { in notifyListeners()
/frameworks/base/location/java/android/location/
DLocationManager.java1219 if (Compatibility.isChangeEnabled(TARGETED_PENDING_INTENT)) { in requestLocationUpdates()
1402 if (!Compatibility.isChangeEnabled(GET_PROVIDER_SECURITY_EXCEPTIONS)) { in getProvider()
1554 if (Compatibility.isChangeEnabled(INCOMPLETE_LOCATION)) { in setTestProviderLocation()
1694 if (Compatibility.isChangeEnabled(TARGETED_PENDING_INTENT)) { in addProximityAlert()
1728 if (Compatibility.isChangeEnabled(TARGETED_PENDING_INTENT)) { in removeProximityAlert()
1784 if (Compatibility.isChangeEnabled(TARGETED_PENDING_INTENT)) { in addGeofence()
1816 if (Compatibility.isChangeEnabled(TARGETED_PENDING_INTENT)) { in removeGeofence()
1841 if (Compatibility.isChangeEnabled(TARGETED_PENDING_INTENT)) { in removeAllGeofences()
1918 if (Compatibility.isChangeEnabled(GPS_STATUS_USAGE)) { in getGpsStatus()
1953 if (Compatibility.isChangeEnabled(GPS_STATUS_USAGE)) { in addGpsStatusListener()
[all …]
/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/core/java/android/content/om/
DOverlayManager.java276 if (!Compatibility.isChangeEnabled(THROW_SECURITY_EXCEPTIONS)) { in rethrowSecurityException()
/frameworks/base/core/java/android/database/
DContentObserver.java197 if (!CompatChanges.isChangeEnabled(ADD_CONTENT_OBSERVER_FLAGS) in onChange()
/frameworks/base/telephony/java/android/telephony/
DPreciseDataConnectionState.java155 && !Compatibility.isChangeEnabled(GET_DATA_CONNECTION_STATE_R_VERSION)) { in getDataConnectionState()
/frameworks/base/core/java/android/os/
DEnvironment.java1294 boolean defaultScopedStorage = Compatibility.isChangeEnabled(DEFAULT_SCOPED_STORAGE); in isExternalStorageLegacy()
1295 boolean forceEnableScopedStorage = Compatibility.isChangeEnabled( in isExternalStorageLegacy()
/frameworks/base/core/java/android/telephony/
DTelephonyRegistryManager.java223 if (Compatibility.isChangeEnabled(LISTEN_CODE_CHANGE)) { in listenForSubscriber()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java729 return platformCompat.isChangeEnabled(REQUEST_ACCESSIBILITY_BUTTON_CHANGE, in isRequestAccessibilityButtonChangeEnabled()

12