Home
last modified time | relevance | path

Searched refs:PropertyInvalidatedCache (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/
DPropertyInvalidatedCacheTests.java42 @IgnoreUnderRavenwood(blockedBy = PropertyInvalidatedCache.class)
48 private static final String MODULE = PropertyInvalidatedCache.MODULE_TEST;
76 extends PropertyInvalidatedCache.QueryHandler<Integer, Boolean> {
97 PropertyInvalidatedCache.setTestMode(false); in tearDown()
110 PropertyInvalidatedCache<Integer, Boolean> testCache = in testBasicCache()
111 new PropertyInvalidatedCache<>(4, MODULE, API, "cache1", in testBasicCache()
114 PropertyInvalidatedCache.setTestMode(true); in testBasicCache()
156 PropertyInvalidatedCache<Integer, Boolean> cache1 = in testDisableCache()
157 new PropertyInvalidatedCache<>(4, MODULE, API, "cache1", in testDisableCache()
159 PropertyInvalidatedCache<Integer, Boolean> cache2 = in testDisableCache()
[all …]
/frameworks/base/core/java/android/os/
DIpcDataCache.java24 import android.app.PropertyInvalidatedCache;
245 public class IpcDataCache<Query, Result> extends PropertyInvalidatedCache<Query, Result> {
253 extends PropertyInvalidatedCache.QueryHandler<Q,R> {
293 public static final String MODULE_TEST = PropertyInvalidatedCache.MODULE_TEST;
301 public static final String MODULE_SYSTEM = PropertyInvalidatedCache.MODULE_SYSTEM;
309 public static final String MODULE_BLUETOOTH = PropertyInvalidatedCache.MODULE_BLUETOOTH;
349 PropertyInvalidatedCache.disableForCurrentProcess(cacheName); in disableForCurrentProcess()
382 PropertyInvalidatedCache.invalidateCache(module, api); in invalidateCache()
DPowerManager.java33 import android.app.PropertyInvalidatedCache;
1160 private final PropertyInvalidatedCache<Void, Boolean> mPowerSaveModeCache =
1161 new PropertyInvalidatedCache<Void, Boolean>(MAX_CACHE_ENTRIES,
1173 private final PropertyInvalidatedCache<Integer, Boolean> mInteractiveCache =
1174 new PropertyInvalidatedCache<Integer, Boolean>(MAX_CACHE_ENTRIES,
4061 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_IS_POWER_SAVE_MODE_PROPERTY);
4068 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_IS_INTERACTIVE_PROPERTY);
DUserManager.java44 import android.app.PropertyInvalidatedCache;
3757 private final PropertyInvalidatedCache<Integer, Boolean> mIsUserUnlockedCache =
3758 new PropertyInvalidatedCache<Integer, Boolean>(
3775 private final PropertyInvalidatedCache<Integer, Boolean> mIsUserUnlockingOrUnlockedCache =
3776 new PropertyInvalidatedCache<Integer, Boolean>(
3808 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_IS_USER_UNLOCKED_PROPERTY); in invalidateIsUserUnlockedCache()
6608 private final PropertyInvalidatedCache<Integer, String> mProfileTypeCache =
6609 new PropertyInvalidatedCache<Integer, String>(32, CACHE_KEY_STATIC_USER_PROPERTIES) {
6629 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_STATIC_USER_PROPERTIES); in invalidateStaticUserProperties()
6636 private final PropertyInvalidatedCache<Integer, UserProperties> mUserPropertiesCache =
[all …]
/frameworks/base/core/java/android/app/compat/
DChangeIdStateCache.java20 import android.app.PropertyInvalidatedCache;
33 extends PropertyInvalidatedCache<ChangeIdStateQuery, Boolean> {
62 PropertyInvalidatedCache.invalidateCache(CACHE_KEY); in invalidate()
/frameworks/base/core/java/android/app/
DPropertyInvalidatedCache.java253 public class PropertyInvalidatedCache<Query, Result> { class
460 private static final WeakHashMap<PropertyInvalidatedCache, Void> sCaches = new WeakHashMap<>();
504 final PropertyInvalidatedCache<Query, Result> mCache;
505 DefaultComputer(PropertyInvalidatedCache<Query, Result> cache) { in DefaultComputer()
545 public PropertyInvalidatedCache(int maxEntries, @NonNull String propertyName) { in PropertyInvalidatedCache() method in PropertyInvalidatedCache
560 public PropertyInvalidatedCache(int maxEntries, @NonNull String propertyName, in PropertyInvalidatedCache() method in PropertyInvalidatedCache
583 public PropertyInvalidatedCache(int maxEntries, @NonNull String module, @NonNull String api, in PropertyInvalidatedCache() method in PropertyInvalidatedCache
844 for (PropertyInvalidatedCache cache : sCaches.keySet()) {
1269 PropertyInvalidatedCache.invalidateCache(mPropertyName);
1282 PropertyInvalidatedCache.corkInvalidations(mPropertyName);
[all …]
DTEST_MAPPING210 "(/|^)PropertyInvalidatedCache.java"
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceIdRecyclingTest.java23 import android.app.PropertyInvalidatedCache;
63 PropertyInvalidatedCache.disableForTestMode(); in setup()
DUserManagerServiceShellCommandTest.java29 import android.app.PropertyInvalidatedCache;
85 PropertyInvalidatedCache.disableForTestMode(); in setUp()
DUserManagerServiceTest.java24 import android.app.PropertyInvalidatedCache;
69 PropertyInvalidatedCache.disableForTestMode(); in setup()
DUserManagerServiceCreateProfileTest.java24 import android.app.PropertyInvalidatedCache;
66 PropertyInvalidatedCache.disableForTestMode(); in setup()
DUserManagerServiceUserInfoTest.java43 import android.app.PropertyInvalidatedCache;
96 PropertyInvalidatedCache.disableForTestMode(); in setup()
DUserSystemPackageInstallerTest.java38 import android.app.PropertyInvalidatedCache;
104 PropertyInvalidatedCache.disableForTestMode(); in setup()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerSettingsDeviceTests.java28 import android.app.PropertyInvalidatedCache;
81 PropertyInvalidatedCache.disableForTestMode(); in setup()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java30 import android.app.PropertyInvalidatedCache;
1007 private final PropertyInvalidatedCache.QueryHandler<Integer, Integer> mCredentialTypeQuery =
1008 new PropertyInvalidatedCache.QueryHandler<>() {
1032 private final PropertyInvalidatedCache<Integer, Integer> mCredentialTypeCache =
1033 new PropertyInvalidatedCache<>(4, PropertyInvalidatedCache.MODULE_SYSTEM,
1041 PropertyInvalidatedCache.invalidateCache(PropertyInvalidatedCache.MODULE_SYSTEM, in invalidateCredentialTypeCache()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockscreenRepairModeTest.java25 import android.app.PropertyInvalidatedCache;
47 PropertyInvalidatedCache.disableForTestMode(); in setUp()
DLockscreenFrpTest.java29 import android.app.PropertyInvalidatedCache;
53 PropertyInvalidatedCache.disableForTestMode(); in setUp()
DLockSettingsServiceTests.java42 import android.app.PropertyInvalidatedCache;
77 PropertyInvalidatedCache.disableForTestMode(); in setUp()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java29 import android.app.PropertyInvalidatedCache;
159 private PropertyInvalidatedCache<Integer, DisplayInfo> mDisplayCache =
160 new PropertyInvalidatedCache<Integer, DisplayInfo>(
1396 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_DISPLAY_INFO_PROPERTY); in invalidateLocalDisplayInfoCaches()
/frameworks/base/core/java/android/accounts/
DAccountManager.java33 import android.app.PropertyInvalidatedCache;
353 PropertyInvalidatedCache<UserPackage, Account[]> mAccountsForUserCache =
354 new PropertyInvalidatedCache<UserPackage, Account[]>(
424 PropertyInvalidatedCache<AccountKeyData, String> mUserDataCache =
425 new PropertyInvalidatedCache<AccountKeyData, String>(CACHE_USER_DATA_SIZE,
3453 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_ACCOUNTS_DATA_PROPERTY);
3470 PropertyInvalidatedCache.invalidateCache(CACHE_KEY_USER_DATA_PROPERTY);
/frameworks/base/core/java/android/permission/
DPermissionManager.java49 import android.app.PropertyInvalidatedCache;
1802 private static final PropertyInvalidatedCache<PermissionQuery, Integer> sPermissionCache =
1803 new PropertyInvalidatedCache<PermissionQuery, Integer>(
1919 private static PropertyInvalidatedCache<PackageNamePermissionQuery, Integer>
1921 new PropertyInvalidatedCache<PackageNamePermissionQuery, Integer>(
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt19 import android.app.PropertyInvalidatedCache in <lambda>()
137 PropertyInvalidatedCache.disableForTestMode() in <lambda>()
/frameworks/base/config/
Ddirty-image-objects119 Landroid/app/PropertyInvalidatedCache;.sCaches:Ljava/util/WeakHashMap;.table:[Ljava/util/WeakHashMa…
125 Landroid/app/PropertyInvalidatedCache;.sInvalidates:Ljava/util/HashMap; 9
126 Landroid/app/PropertyInvalidatedCache$NoPreloadHolder; 9
127 Landroid/app/PropertyInvalidatedCache;.sDisabledKeys:Ljava/util/HashSet;.map:Ljava/util/HashMap; 10
148 Landroid/app/PropertyInvalidatedCache;.sCorkLock:Ljava/lang/Object; 11
200 Landroid/content/pm/PackageManager;.sCacheAutoCorker:Landroid/app/PropertyInvalidatedCache$AutoCork…
201 Landroid/app/PropertyInvalidatedCache;.sCorks:Ljava/util/HashMap; 11
273 Landroid/app/PropertyInvalidatedCache$AutoCorker$1; 11
294 Landroid/app/PropertyInvalidatedCache;.sCorkedInvalidates:Ljava/util/HashMap; 11
315 Landroid/content/pm/PackageManager;.sCacheAutoCorker:Landroid/app/PropertyInvalidatedCache$AutoCork…
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayTest.java31 import android.app.PropertyInvalidatedCache;
94 PropertyInvalidatedCache.disableForTestMode(); in setUp()
/frameworks/base/core/java/android/content/pm/
DPackageManager.java48 import android.app.PropertyInvalidatedCache;
11436 private static final PropertyInvalidatedCache<ApplicationInfoQuery, ApplicationInfo>
11438 new PropertyInvalidatedCache<ApplicationInfoQuery, ApplicationInfo>(
11470 private static final PropertyInvalidatedCache.AutoCorker sCacheAutoCorker =
11471 new PropertyInvalidatedCache.AutoCorker(PermissionManager.CACHE_KEY_PACKAGE_INFO);
11537 private static final PropertyInvalidatedCache<PackageInfoQuery, PackageInfo>
11539 new PropertyInvalidatedCache<PackageInfoQuery, PackageInfo>(
11574 PropertyInvalidatedCache.corkInvalidations(PermissionManager.CACHE_KEY_PACKAGE_INFO); in corkPackageInfoCache()
11582 PropertyInvalidatedCache.uncorkInvalidations(PermissionManager.CACHE_KEY_PACKAGE_INFO); in uncorkPackageInfoCache()

12