/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 84 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/ |
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/core/java/android/app/compat/ |
D | CompatChanges.java | 47 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/ |
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 | 69 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/ |
D | Toast.java | 187 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/ |
D | ParseTypeImpl.java | 95 return platformCompat.isChangeEnabled(changeId, appInfo); in forDefaultParsing() 149 if (mCallback.isChangeEnabled(deferredError, mPackageName, mTargetSdkVersion)) { 178 if (mCallback.isChangeEnabled(changeId, mPackageName, mTargetSdkVersion)) {
|
D | ParseInput.java | 161 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/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatPermissionsTest.java | 135 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()
|
D | PlatformCompatCommandNotInstalledTest.kt | 128 assertThat(platformCompat.isChangeEnabled(TEST_CHANGE_ID, appInfo)).isEqualTo(params.result) in ParcelFileDescriptor()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 103 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()
|
D | CompatConfig.java | 137 boolean isChangeEnabled(long changeId, ApplicationInfo app) { in isChangeEnabled() method in CompatConfig
|
/frameworks/base/core/java/android/app/ |
D | AppCompatCallbacks.java | 55 protected boolean isChangeEnabled(long changeId) { in isChangeEnabled() method in AppCompatCallbacks
|
D | SharedPreferencesImpl.java | 626 if (mcr.keysCleared && Compatibility.isChangeEnabled(CALLBACK_ON_CLEAR_CHANGE)) { in notifyListeners()
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 1219 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/ |
D | IPlatformCompat.aidl | 86 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/core/java/android/content/om/ |
D | OverlayManager.java | 276 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/telephony/java/android/telephony/ |
D | PreciseDataConnectionState.java | 155 && !Compatibility.isChangeEnabled(GET_DATA_CONNECTION_STATE_R_VERSION)) { in getDataConnectionState()
|
/frameworks/base/core/java/android/os/ |
D | Environment.java | 1294 boolean defaultScopedStorage = Compatibility.isChangeEnabled(DEFAULT_SCOPED_STORAGE); in isExternalStorageLegacy() 1295 boolean forceEnableScopedStorage = Compatibility.isChangeEnabled( in isExternalStorageLegacy()
|
/frameworks/base/core/java/android/telephony/ |
D | TelephonyRegistryManager.java | 223 if (Compatibility.isChangeEnabled(LISTEN_CODE_CHANGE)) { in listenForSubscriber()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityServiceInfo.java | 729 return platformCompat.isChangeEnabled(REQUEST_ACCESSIBILITY_BUTTON_CHANGE, in isRequestAccessibilityButtonChangeEnabled()
|