Home
last modified time | relevance | path

Searched refs:SnapshotCache (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DAppsFilterSnapshotImpl.java19 import com.android.server.utils.SnapshotCache;
33 mImplicitQueryableSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
34 mRetainedImplicitlyQueryableSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
38 mQueriesViaPackageSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
42 mQueriesViaComponentSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
46 mQueryableViaUsesLibrarySnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
50 mQueryableViaUsesPermissionSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
54 mForceQueryableSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
58 mProtectedBroadcastsSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
78 mShouldFilterCacheSnapshot = new SnapshotCache.Sealed<>(); in AppsFilterSnapshotImpl()
DPersistentPreferredIntentResolver.java23 import com.android.server.utils.SnapshotCache;
56 mSnapshot = new SnapshotCache.Sealed(); in PersistentPreferredIntentResolver()
61 final SnapshotCache<PersistentPreferredIntentResolver> mSnapshot;
63 private SnapshotCache makeCache() { in makeCache()
64 return new SnapshotCache<PersistentPreferredIntentResolver>(this, this) { in makeCache()
DCrossProfileIntentResolver.java25 import com.android.server.utils.SnapshotCache;
67 mSnapshot = new SnapshotCache.Sealed(); in CrossProfileIntentResolver()
72 final SnapshotCache<CrossProfileIntentResolver> mSnapshot;
74 private SnapshotCache makeCache() { in makeCache()
75 return new SnapshotCache<CrossProfileIntentResolver>(this, this) { in makeCache()
DAppIdSettingMap.java22 import com.android.server.utils.SnapshotCache;
39 private final SnapshotCache<WatchedArrayList<SettingBase>> mNonSystemSettingsSnapshot;
41 private final SnapshotCache<WatchedSparseArray<SettingBase>> mSystemSettingsSnapshot;
46 mNonSystemSettingsSnapshot = new SnapshotCache.Auto<>( in AppIdSettingMap()
49 mSystemSettingsSnapshot = new SnapshotCache.Auto<>( in AppIdSettingMap()
55 mNonSystemSettingsSnapshot = new SnapshotCache.Sealed<>(); in AppIdSettingMap()
57 mSystemSettingsSnapshot = new SnapshotCache.Sealed<>(); in AppIdSettingMap()
DPreferredIntentResolver.java23 import com.android.server.utils.SnapshotCache;
85 mSnapshot = new SnapshotCache.Sealed(); in PreferredIntentResolver()
90 final SnapshotCache<PreferredIntentResolver> mSnapshot;
92 private SnapshotCache makeCache() { in makeCache()
93 return new SnapshotCache<PreferredIntentResolver>(this, this) { in makeCache()
DPreferredActivity.java26 import com.android.server.utils.SnapshotCache;
42 final SnapshotCache<PreferredActivity> mSnapshot;
44 private SnapshotCache makeCache() { in makeCache()
45 return new SnapshotCache<PreferredActivity>(this, this) { in makeCache()
70 mSnapshot = new SnapshotCache.Sealed();
DSharedUserSetting.java36 import com.android.server.utils.SnapshotCache;
64 private final SnapshotCache<WatchedArraySet<PackageSetting>> mPackagesSnapshot;
70 private final SnapshotCache<WatchedArraySet<PackageSetting>> mDisabledPackagesSnapshot;
90 private final SnapshotCache<SharedUserSetting> mSnapshot;
92 private SnapshotCache<SharedUserSetting> makeCache() { in makeCache()
93 return new SnapshotCache<SharedUserSetting>(this, this) { in makeCache()
107 mPackagesSnapshot = new SnapshotCache.Auto<>(mPackages, mPackages,
110 mDisabledPackagesSnapshot = new SnapshotCache.Auto<>(mDisabledPackages, mDisabledPackages,
125 mPackagesSnapshot = new SnapshotCache.Sealed<>();
127 mDisabledPackagesSnapshot = new SnapshotCache.Sealed<>();
[all …]
DPersistentPreferredActivity.java26 import com.android.server.utils.SnapshotCache;
47 final SnapshotCache<PersistentPreferredActivity> mSnapshot;
49 private SnapshotCache makeCache() { in makeCache()
50 return new SnapshotCache<PersistentPreferredActivity>(this, this) { in makeCache()
76 mSnapshot = new SnapshotCache.Sealed();
DCrossProfileIntentFilter.java28 import com.android.server.utils.SnapshotCache;
108 final SnapshotCache<CrossProfileIntentFilter> mSnapshot;
110 private SnapshotCache makeCache() { in makeCache()
111 return new SnapshotCache<CrossProfileIntentFilter>(this, this) { in makeCache()
152 mSnapshot = new SnapshotCache.Sealed();
DAppsFilterBase.java47 import com.android.server.utils.SnapshotCache;
87 protected SnapshotCache<WatchedSparseSetArray<Integer>> mImplicitQueryableSnapshot;
98 protected SnapshotCache<WatchedSparseSetArray<Integer>> mRetainedImplicitlyQueryableSnapshot;
108 protected SnapshotCache<WatchedSparseSetArray<Integer>> mQueriesViaPackageSnapshot;
118 protected SnapshotCache<WatchedSparseSetArray<Integer>> mQueriesViaComponentSnapshot;
128 protected SnapshotCache<WatchedSparseSetArray<Integer>> mQueryableViaUsesLibrarySnapshot;
138 protected SnapshotCache<WatchedSparseSetArray<Integer>> mQueryableViaUsesPermissionSnapshot;
161 protected SnapshotCache<WatchedArraySet<Integer>> mForceQueryableSnapshot;
183 protected SnapshotCache<WatchedArraySet<String>> mProtectedBroadcastsSnapshot;
197 protected SnapshotCache<WatchedSparseBooleanMatrix> mShouldFilterCacheSnapshot;
DSharedLibrariesImpl.java57 import com.android.server.utils.SnapshotCache;
113 private final SnapshotCache<WatchedArrayMap<String, WatchedLongSparseArray<SharedLibraryInfo>>>
121 private final SnapshotCache<WatchedArrayMap<String, WatchedLongSparseArray<SharedLibraryInfo>>>
139 private final SnapshotCache<SharedLibrariesImpl> mSnapshot;
142 private SnapshotCache<SharedLibrariesImpl> makeCache() { in makeCache()
143 return new SnapshotCache<SharedLibrariesImpl>(this /* source */, this /* watchable */) { in makeCache()
160 mSharedLibrariesSnapshot = new SnapshotCache.Auto<>(mSharedLibraries, mSharedLibraries,
163 mStaticLibsByDeclaringPackageSnapshot = new SnapshotCache.Auto<>(
192 mSharedLibrariesSnapshot = new SnapshotCache.Sealed<>();
194 mStaticLibsByDeclaringPackageSnapshot = new SnapshotCache.Sealed<>();
[all …]
DAppsFilterImpl.java76 import com.android.server.utils.SnapshotCache;
100 private final SnapshotCache<AppsFilterSnapshot> mSnapshot;
198 mShouldFilterCacheSnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
201 mImplicitQueryableSnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
204 mRetainedImplicitlyQueryableSnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
208 mQueriesViaPackageSnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
211 mQueriesViaComponentSnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
214 mQueryableViaUsesLibrarySnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
218 mQueryableViaUsesPermissionSnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
222 mForceQueryableSnapshot = new SnapshotCache.Auto<>( in AppsFilterImpl()
[all …]
DSettings.java131 import com.android.server.utils.SnapshotCache;
417 private final SnapshotCache<WatchedArrayMap<String, PackageSetting>> mPackagesSnapshot;
425 private final SnapshotCache<WatchedArraySet<String>> mInstallerPackagesSnapshot;
430 private final SnapshotCache<WatchedArrayMap<String, KernelPackageState>> mKernelMappingSnapshot;
500 private final SnapshotCache<WatchedSparseArray<PreferredIntentResolver>>
508 private final SnapshotCache<WatchedSparseArray<PersistentPreferredIntentResolver>>
515 private final SnapshotCache<WatchedSparseArray<CrossProfileIntentResolver>>
555 private final SnapshotCache<WatchedArrayList<PackageSetting>> mPendingPackagesSnapshot;
581 private final SnapshotCache<Settings> mSnapshot;
584 private SnapshotCache<Settings> makeCache() { in makeCache()
[all …]
DPackageSetting.java66 import com.android.server.utils.SnapshotCache;
239 private final SnapshotCache<PackageSetting> mSnapshot;
241 private SnapshotCache<PackageSetting> makeCache() { in makeCache()
242 return new SnapshotCache<PackageSetting>(this, this) { in makeCache()
288 mSnapshot = new SnapshotCache.Sealed();
DInstantAppRegistry.java66 import com.android.server.utils.SnapshotCache;
160 private final SnapshotCache<InstantAppRegistry> mSnapshot;
194 private SnapshotCache<InstantAppRegistry> makeCache() { in makeCache()
195 return new SnapshotCache<InstantAppRegistry>(this, this) { in makeCache()
DPackageManagerService.java246 import com.android.server.utils.SnapshotCache;
650 private final SnapshotCache<WatchedArrayMap<String, AndroidPackage>> mPackagesSnapshot =
651 new SnapshotCache.Auto(mPackages, mPackages, "PackageManagerService.mPackages");
658 private final SnapshotCache<WatchedSparseIntArray> mIsolatedOwnersSnapshot =
659 new SnapshotCache.Auto(mIsolatedOwners, mIsolatedOwners,
702 private final SnapshotCache<WatchedArrayMap<String, Integer>> mFrozenPackagesSnapshot =
703 new SnapshotCache.Auto(mFrozenPackages, mFrozenPackages,
784 private final SnapshotCache<WatchedArrayMap<ComponentName, ParsedInstrumentation>>
786 new SnapshotCache.Auto<>(mInstrumentation, mInstrumentation,
/frameworks/base/services/core/java/com/android/server/utils/
DSnapshotCache.java34 public abstract class SnapshotCache<T> extends Watcher{ class
70 private static final WeakHashMap<SnapshotCache, Void> sCaches = new WeakHashMap<>();
80 public SnapshotCache(@Nullable T source, @NonNull Watchable watchable, @Nullable String name) { in SnapshotCache() method in SnapshotCache
98 public SnapshotCache(@Nullable T source, @NonNull Watchable watchable) { in SnapshotCache() method in SnapshotCache
106 public SnapshotCache() { in SnapshotCache() method in SnapshotCache
159 public static class Sealed<T> extends SnapshotCache<T> {
179 public static class Auto<T extends Snappable<T>> extends SnapshotCache<T> {
/frameworks/base/services/core/java/com/android/server/wm/
DSnapshotCache.java30 abstract class SnapshotCache<TYPE extends WindowContainer> { class
41 SnapshotCache(String name) { in SnapshotCache() method in SnapshotCache
DActivitySnapshotCache.java24 class ActivitySnapshotCache extends SnapshotCache<ActivityRecord> {
DTaskSnapshotCache.java27 class TaskSnapshotCache extends SnapshotCache<Task> {
DAbsAppSnapshotController.java64 CACHE extends SnapshotCache<TYPE>> {
/frameworks/base/services/core/java/com/android/server/pm/pkg/
DPackageUserStateImpl.java37 import com.android.server.utils.SnapshotCache;
140 final SnapshotCache<PackageUserStateImpl> mSnapshot;
142 private SnapshotCache<PackageUserStateImpl> makeCache() { in makeCache()
143 return new SnapshotCache<PackageUserStateImpl>(this, this) { in makeCache()
191 mSnapshot = new SnapshotCache.Sealed<>();
643 private boolean snapshotEquals(SnapshotCache<PackageUserStateImpl> other) {
808 public @NonNull SnapshotCache<PackageUserStateImpl> getSnapshot() {
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/
DWatcherTest.java1235 SnapshotCache<Leaf> cache = new SnapshotCache<>(leafA, leafA) { in testSnapshotCache()
1250 SnapshotCache<Leaf> sealed = new SnapshotCache.Sealed(); in testSnapshotCache()
/frameworks/base/services/core/java/com/android/server/pm/resolution/
DComponentResolver.java69 import com.android.server.utils.SnapshotCache;
171 mSnapshot = new SnapshotCache<>(this, this) { in ComponentResolver()
181 final SnapshotCache<ComponentResolverApi> mSnapshot;
/frameworks/base/services/permission/java/com/android/server/permission/access/immutable/
DImmutable.md202 | Integration complexity | A `SnapshotCache` field for every existing field, and a correctly implem…

12