/aosp12/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | PropertyInvalidatedCacheTests.java | 68 PropertyInvalidatedCache<Integer, Boolean> cache1 = in testDisableCache1() 69 new PropertyInvalidatedCache<>(4, CACHE_PROPERTY) { in testDisableCache1() 75 PropertyInvalidatedCache<Integer, Boolean> cache2 = in testDisableCache1() 76 new PropertyInvalidatedCache<>(4, CACHE_PROPERTY) { in testDisableCache1() 82 PropertyInvalidatedCache<Integer, Boolean> cache3 = in testDisableCache1() 83 new PropertyInvalidatedCache<>(4, CACHE_PROPERTY, "cache3") { in testDisableCache1() 109 cache1 = new PropertyInvalidatedCache<>(4, CACHE_PROPERTY) { in testDisableCache1()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | PropertyInvalidatedCache.java | 191 public abstract class PropertyInvalidatedCache<Query, Result> { class 324 public PropertyInvalidatedCache(int maxEntries, @NonNull String propertyName) { in PropertyInvalidatedCache() method in PropertyInvalidatedCache 335 public PropertyInvalidatedCache(int maxEntries, @NonNull String propertyName, in PropertyInvalidatedCache() method in PropertyInvalidatedCache 451 for (PropertyInvalidatedCache cache : sCaches.keySet()) { in disableLocal() 813 PropertyInvalidatedCache.invalidateCache(mPropertyName); in autoCork() 826 PropertyInvalidatedCache.corkInvalidations(mPropertyName); in autoCork() 860 PropertyInvalidatedCache.uncorkInvalidations(mPropertyName); in handleMessage() 932 public static ArrayList<PropertyInvalidatedCache> getActiveCaches() { in getActiveCaches() 934 return new ArrayList<PropertyInvalidatedCache>(sCaches.keySet()); in getActiveCaches() 992 ArrayList<PropertyInvalidatedCache> activeCaches; in dumpCacheInfo() [all …]
|
H A D | ApplicationPackageManager.java | 696 private final static PropertyInvalidatedCache<HasSystemFeatureQuery, Boolean> 698 new PropertyInvalidatedCache<HasSystemFeatureQuery, Boolean>( 992 private static final PropertyInvalidatedCache<Integer, GetPackagesForUidResult> 994 new PropertyInvalidatedCache<Integer, GetPackagesForUidResult>( 1024 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_PACKAGES_FOR_UID_PROPERTY); in invalidateGetPackagesForUidCache()
|
/aosp12/frameworks/base/core/java/android/app/compat/ |
H A D | ChangeIdStateCache.java | 19 import android.app.PropertyInvalidatedCache; 32 extends PropertyInvalidatedCache<ChangeIdStateQuery, Boolean> { 60 PropertyInvalidatedCache.invalidateCache(CACHE_KEY); in invalidate()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
H A D | LogicalDisplayTest.java | 23 import android.app.PropertyInvalidatedCache; 62 PropertyInvalidatedCache.disableForTestMode(); in setUp()
|
H A D | LogicalDisplayMapperTest.java | 32 import android.app.PropertyInvalidatedCache; 100 PropertyInvalidatedCache.disableForTestMode(); in setUp()
|
H A D | DisplayManagerServiceTest.java | 30 import android.app.PropertyInvalidatedCache; 172 PropertyInvalidatedCache.disableForTestMode(); in setUp()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceIdRecyclingTest.java | 23 import android.app.PropertyInvalidatedCache; 61 PropertyInvalidatedCache.disableForTestMode(); in setup()
|
H A D | UserManagerServiceCreateProfileTest.java | 24 import android.app.PropertyInvalidatedCache; 64 PropertyInvalidatedCache.disableForTestMode(); in setup()
|
H A D | UserManagerServiceUserInfoTest.java | 42 import android.app.PropertyInvalidatedCache; 85 PropertyInvalidatedCache.disableForTestMode(); in setup()
|
H A D | UserSystemPackageInstallerTest.java | 38 import android.app.PropertyInvalidatedCache; 102 PropertyInvalidatedCache.disableForTestMode(); in setup()
|
/aosp12/frameworks/base/core/tests/systemproperties/src/android/os/ |
H A D | PropertyInvalidatedCacheTest.java | 19 import android.app.PropertyInvalidatedCache; 28 private static class TestCache extends PropertyInvalidatedCache<Integer, String> {
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | PowerManager.java | 31 import android.app.PropertyInvalidatedCache; 1001 private PropertyInvalidatedCache<Void, Boolean> mPowerSaveModeCache = 1002 new PropertyInvalidatedCache<Void, Boolean>(MAX_CACHE_ENTRIES, 1014 private PropertyInvalidatedCache<Void, Boolean> mInteractiveCache = 1015 new PropertyInvalidatedCache<Void, Boolean>(MAX_CACHE_ENTRIES, 2927 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_IS_POWER_SAVE_MODE_PROPERTY); 2934 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_IS_INTERACTIVE_PROPERTY);
|
H A D | UserManager.java | 38 import android.app.PropertyInvalidatedCache; 2483 private final PropertyInvalidatedCache<Integer, Boolean> mIsUserUnlockedCache = 2484 new PropertyInvalidatedCache<Integer, Boolean>( 2497 private final PropertyInvalidatedCache<Integer, Boolean> mIsUserUnlockingOrUnlockedCache = 2498 new PropertyInvalidatedCache<Integer, Boolean>( 2526 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_IS_USER_UNLOCKED_PROPERTY); in invalidateIsUserUnlockedCache()
|
/aosp12/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothAdapter.java | 33 import android.app.PropertyInvalidatedCache; 1050 private final PropertyInvalidatedCache<Void, Integer> mBluetoothGetStateCache = 1051 new PropertyInvalidatedCache<Void, Integer>( 1072 PropertyInvalidatedCache.invalidateCache(BLUETOOTH_GET_STATE_CACHE_PROPERTY); in invalidateBluetoothGetStateCache() 2120 new PropertyInvalidatedCache<Void, Boolean>( 2542 private final PropertyInvalidatedCache<Void, Integer> 2544 new PropertyInvalidatedCache<Void, Integer> ( 2568 PropertyInvalidatedCache.invalidateCache( in invalidateGetAdapterConnectionStateCache() 2610 private final PropertyInvalidatedCache<Integer, Integer> 2612 new PropertyInvalidatedCache<Integer, Integer>( [all …]
|
H A D | BluetoothDevice.java | 27 import android.app.PropertyInvalidatedCache; 1588 private final PropertyInvalidatedCache<BluetoothDevice, Integer> mBluetoothBondCache = 1589 new PropertyInvalidatedCache<BluetoothDevice, Integer>( 1609 PropertyInvalidatedCache.invalidateCache(BLUETOOTH_BONDING_CACHE_PROPERTY); in invalidateBluetoothGetBondStateCache()
|
/aosp12/frameworks/base/core/java/android/permission/ |
H A D | PermissionManager.java | 35 import android.app.PropertyInvalidatedCache; 1306 private static final PropertyInvalidatedCache<PermissionQuery, Integer> sPermissionCache = 1307 new PropertyInvalidatedCache<PermissionQuery, Integer>( 1387 private static PropertyInvalidatedCache<PackageNamePermissionQuery, Integer> 1389 new PropertyInvalidatedCache<PackageNamePermissionQuery, Integer>(
|
/aosp12/frameworks/base/core/java/android/hardware/display/ |
H A D | DisplayManagerGlobal.java | 26 import android.app.PropertyInvalidatedCache; 125 private PropertyInvalidatedCache<Integer, DisplayInfo> mDisplayCache = 126 new PropertyInvalidatedCache<Integer, DisplayInfo>( 1071 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_DISPLAY_INFO_PROPERTY); in invalidateLocalDisplayInfoCaches()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
H A D | HeadsetPhoneStateTest.java | 21 import android.app.PropertyInvalidatedCache; 70 PropertyInvalidatedCache.disableForTestMode(); in setUp()
|
/aosp12/frameworks/base/telephony/java/android/telephony/ |
H A D | SubscriptionManager.java | 36 import android.app.PropertyInvalidatedCache; 179 extends PropertyInvalidatedCache<Void, T> { 213 extends PropertyInvalidatedCache<Integer, T> { 3648 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_DEFAULT_SUB_ID_PROPERTY); in invalidateDefaultSubIdCaches() 3653 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_DEFAULT_DATA_SUB_ID_PROPERTY); in invalidateDefaultDataSubIdCaches() 3658 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_DEFAULT_SMS_SUB_ID_PROPERTY); in invalidateDefaultSmsSubIdCaches() 3663 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_ACTIVE_DATA_SUB_ID_PROPERTY); in invalidateActiveDataSubIdCaches() 3668 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_SLOT_INDEX_PROPERTY); in invalidateSlotIndexCaches()
|
/aosp12/frameworks/base/core/java/android/accounts/ |
H A D | AccountManager.java | 31 import android.app.PropertyInvalidatedCache; 381 PropertyInvalidatedCache<UserIdPackage, Account[]> mAccountsForUserCache = 382 …new PropertyInvalidatedCache<UserIdPackage, Account[]>(CACHE_ACCOUNTS_DATA_SIZE, CACHE_KEY_ACCOUNT… 447 PropertyInvalidatedCache<AccountKeyData, String> mUserDataCache = 448 new PropertyInvalidatedCache<AccountKeyData, String>(CACHE_USER_DATA_SIZE, 3463 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_ACCOUNTS_DATA_PROPERTY); 3480 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_USER_DATA_PROPERTY);
|
/aosp12/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/ |
H A D | PackageManagerComponentLabelIconOverrideTest.kt | 19 import android.app.PropertyInvalidatedCache 133 PropertyInvalidatedCache.disableForTestMode()
|
/aosp12/frameworks/base/core/java/android/content/pm/ |
H A D | PackageManager.java | 40 import android.app.PropertyInvalidatedCache; 9132 private static final PropertyInvalidatedCache<ApplicationInfoQuery, ApplicationInfo> 9134 new PropertyInvalidatedCache<ApplicationInfoQuery, ApplicationInfo>( 9167 private static final PropertyInvalidatedCache.AutoCorker sCacheAutoCorker = 9168 new PropertyInvalidatedCache.AutoCorker(PermissionManager.CACHE_KEY_PACKAGE_INFO); 9234 private static final PropertyInvalidatedCache<PackageInfoQuery, PackageInfo> 9236 new PropertyInvalidatedCache<PackageInfoQuery, PackageInfo>( 9272 PropertyInvalidatedCache.corkInvalidations(PermissionManager.CACHE_KEY_PACKAGE_INFO); in corkPackageInfoCache() 9280 PropertyInvalidatedCache.uncorkInvalidations(PermissionManager.CACHE_KEY_PACKAGE_INFO); in uncorkPackageInfoCache()
|
/aosp12/frameworks/base/location/java/android/location/ |
H A D | LocationManager.java | 42 import android.app.PropertyInvalidatedCache; 619 PropertyInvalidatedCache<Integer, Boolean> cache = sLocationEnabledCache; in isLocationEnabledForUser() 3575 private static class LocationEnabledCache extends PropertyInvalidatedCache<Integer, Boolean> { 3610 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_LOCATION_ENABLED_PROPERTY); in invalidateLocalLocationEnabledCaches()
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | PhoneSubInfoControllerTest.java | 30 import android.app.PropertyInvalidatedCache; 56 PropertyInvalidatedCache.disableForTestMode(); in setUp()
|