Home
last modified time | relevance | path

Searched refs:PackageState (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/pm/local/
DPackageManagerLocalImpl.java33 import com.android.server.pm.pkg.PackageState;
134 private Map<String, PackageState> mCachedUnmodifiablePackageStates;
140 private Map<String, PackageState> mCachedUnmodifiableDisabledSystemPackageStates;
154 public Map<String, PackageState> getPackageStates() { in getPackageStates()
180 public Map<String, PackageState> getDisabledSystemPackageStates() { in getDisabledSystemPackageStates()
207 private Map<String, PackageState> mFilteredPackageStates;
238 public PackageState getPackageState(@NonNull String packageName) { in getPackageState()
245 public Map<String, PackageState> getPackageStates() { in getPackageStates()
250 var filteredPackageStates = new ArrayMap<String, PackageState>(); in getPackageStates()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerLocal.java28 import com.android.server.pm.pkg.PackageState;
195 Map<String, PackageState> getPackageStates(); in getPackageStates()
215 Map<String, PackageState> getDisabledSystemPackageStates(); in getDisabledSystemPackageStates()
231 PackageState getPackageState(@NonNull String packageName); in getPackageState()
242 Map<String, PackageState> getPackageStates(); in getPackageStates()
/frameworks/base/services/permission/java/com/android/server/permission/access/
DAccessPolicy.kt38 import com.android.server.pm.pkg.PackageState in <lambda>()
67 packageStates: Map<String, PackageState>, in <lambda>()
68 disabledSystemPackageStates: Map<String, PackageState>, in <lambda>()
123 packageStates: Map<String, PackageState>, in <lambda>()
124 disabledSystemPackageStates: Map<String, PackageState>, in <lambda>()
175 packageStates: Map<String, PackageState>, in <lambda>()
176 disabledSystemPackageStates: Map<String, PackageState>, in <lambda>()
205 packageStates: Map<String, PackageState>, in <lambda>()
206 disabledSystemPackageStates: Map<String, PackageState>, in <lambda>()
239 packageStates: Map<String, PackageState>, in <lambda>()
[all …]
DAccessState.kt24 import com.android.server.pm.pkg.PackageState
100 packageStates: Map<String, PackageState>,
101 disabledSystemPackageStates: Map<String, PackageState>,
114 var packageStates: Map<String, PackageState> = packageStates
117 var disabledSystemPackageStates: Map<String, PackageState> = disabledSystemPackageStates
152 packageStates: Map<String, PackageState>, in toMutable()
153 disabledSystemPackageStates: Map<String, PackageState>, in toMutable()
210 fun setPackageStates(packageStates: Map<String, PackageState>) { in toMutable()
215 fun setDisabledSystemPackageStates(disabledSystemPackageStates: Map<String, PackageState>) { in toMutable()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DAppIdPermissionUpgrade.kt27 import com.android.server.pm.pkg.PackageState in <lambda>()
37 packageState: PackageState, in <lambda>()
83 packageState: PackageState, in <lambda>()
102 packageState: PackageState, in <lambda>()
132 packageState: PackageState, in <lambda>()
159 packageState: PackageState, in <lambda>()
186 packageState: PackageState, in <lambda>()
231 packageState: PackageState, in <lambda>()
260 packageState: PackageState, in <lambda>()
DAppIdPermissionPolicy.kt48 import com.android.server.pm.pkg.PackageState in <lambda>()
136 override fun MutateStateScope.onPackageAdded(packageState: PackageState) { in <lambda>()
168 override fun MutateStateScope.onPackageInstalled(packageState: PackageState, userId: Int) { in <lambda>()
175 packageState: PackageState, in <lambda>()
318 packageState: PackageState, in <lambda>()
384 private fun MutateStateScope.addPermissionGroups(packageState: PackageState) { in <lambda>()
447 packageState: PackageState, in <lambda>()
784 installedPackageState: PackageState? in <lambda>()
801 packageState: PackageState, in <lambda>()
802 installedPackageState: PackageState? in <lambda>()
[all …]
DDevicePermissionPolicy.kt33 import com.android.server.pm.pkg.PackageState in <lambda>()
104 override fun MutateStateScope.onPackageAdded(packageState: PackageState) { in <lambda>()
174 predicate: (PackageState) -> Boolean in <lambda>()
186 action: (PackageState) -> Unit in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtUtils.java26 import com.android.server.pm.pkg.PackageState;
42 AndroidPackage pkg, PackageState packageState) { in createArtPackageInfo()
51 private static String getOatDir(AndroidPackage pkg, @NonNull PackageState packageState) { in getOatDir()
/frameworks/base/services/core/java/com/android/server/om/
DPackageManagerHelper.java27 import com.android.server.pm.pkg.PackageState;
47 ArrayMap<String, PackageState> initializeForUser(final int userId); in initializeForUser()
53 PackageState getPackageStateForUser(@NonNull final String packageName, final int userId); in getPackageStateForUser()
DIdmapManager.java36 import com.android.server.pm.pkg.PackageState;
104 @NonNull PackageState overlayPackageState, @NonNull final AndroidPackage overlayPackage, in createIdmap()
180 private boolean enforceOverlayable(@NonNull PackageState overlayPackageState, in enforceOverlayable()
203 @NonNull PackageState overlayPackageState, @NonNull final AndroidPackage overlayPackage, in calculateFulfilledPolicies()
DOverlayManagerService.java94 import com.android.server.pm.pkg.PackageState;
1166 private PackageState mPackageState;
1168 private PackageStateUsers(@NonNull PackageState packageState) { in PackageStateUsers()
1197 public ArrayMap<String, PackageState> initializeForUser(final int userId) { in initializeForUser()
1207 final ArrayMap<String, PackageState> userPackages = new ArrayMap<>(); in initializeForUser()
1219 public PackageState getPackageStateForUser(@NonNull final String packageName, in getPackageStateForUser()
1238 private PackageState addPackageUser(@NonNull final String packageName, in addPackageUser()
1240 final PackageState pkg = mPackageManagerInternal.getPackageStateInternal(packageName); in addPackageUser()
1250 private PackageState addPackageUser(@NonNull final PackageState pkg, in addPackageUser()
1282 public PackageState onPackageAdded(@NonNull final String packageName, final int userId) { in onPackageAdded()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioServerPermissionProvider.java34 import com.android.server.pm.pkg.PackageState;
81 Collection<PackageState> appInfos, in AudioServerPermissionProvider()
225 Collection<PackageState> appInfos) { in generatePackageMappings()
226 Collector<PackageState, Object, Set<String>> reducer = in generatePackageMappings()
228 (PackageState p) -> p.getPackageName(), in generatePackageMappings()
234 /* predicate */ (PackageState p) -> p.getAppId(), in generatePackageMappings()
/frameworks/libs/modules-utils/java/com/android/modules/utils/pm/
DPackageStateModulesUtils.java27 import com.android.server.pm.pkg.PackageState;
38 public static boolean isDexoptable(@NonNull PackageState packageState) { in isDexoptable()
73 @NonNull PackageState packageState, boolean codeOnly) { in isLoadableInOtherProcesses()
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DPackageAppOpUpgrade.kt21 import com.android.server.pm.pkg.PackageState
25 packageState: PackageState, in MutateStateScope()
DAppIdAppOpUpgrade.kt21 import com.android.server.pm.pkg.PackageState
25 packageState: PackageState, in MutateStateScope()
DPackageAppOpPolicy.kt27 import com.android.server.pm.pkg.PackageState in <lambda>()
132 packageState: PackageState, in <lambda>()
DAppIdAppOpPolicy.kt27 import com.android.server.pm.pkg.PackageState in <lambda>()
129 packageState: PackageState, in <lambda>()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java206 public final ProcessMap<LongSparseArray<PackageState>> mPackages = new ProcessMap<>();
295 ArrayMap<String, SparseArray<LongSparseArray<PackageState>>> pkgMap = in add()
299 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); in add()
302 final LongSparseArray<PackageState> versions = uids.valueAt(iu); in add()
305 final PackageState otherState = versions.valueAt(iv); in add()
320 final PackageState pkgState = getPackageStateLocked(pkgName, uid, in add()
375 PackageState thisState = getPackageStateLocked(pkg, uid, vers); in add()
543 final ArrayMap<String, SparseArray<LongSparseArray<PackageState>>> pkgMap = in resetSafely()
546 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); in resetSafely()
548 final LongSparseArray<PackageState> vpkgs = uids.valueAt(iu); in resetSafely()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioServerPermissionProviderTest.java41 import com.android.server.pm.pkg.PackageState;
70 @Mock public PackageState mMockPackageStateOne_10000_one;
71 @Mock public PackageState mMockPackageStateTwo_10001_two;
72 @Mock public PackageState mMockPackageStateThree_10000_one;
73 @Mock public PackageState mMockPackageStateFour_10000_three;
74 @Mock public PackageState mMockPackageStateFive_10001_four;
75 @Mock public PackageState mMockPackageStateSix_10000_two;
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionMigrationHelperImpl.java28 import com.android.server.pm.pkg.PackageState;
102 Map<String, PackageState> packageStates = snapshot.getPackageStates(); in getLegacyPermissionStates()
105 PackageState packageState = packageStates.get(packageName); in getLegacyPermissionStates()
DPermissionManagerServiceInternal.java31 import com.android.server.pm.pkg.PackageState;
288 void onPackageAdded(@NonNull PackageState packageState, in onPackageAdded()
327 @Nullable PackageState packageState, @Nullable AndroidPackage pkg, in onPackageUninstalled()
DPermissionManagerServiceInterface.java32 import com.android.server.pm.pkg.PackageState;
616 void onPackageAdded(@NonNull PackageState packageState, boolean isInstantApp, in onPackageAdded()
653 @NonNull PackageState packageState, @Nullable AndroidPackage pkg, in onPackageUninstalled()
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DBasePermissionPolicyTest.kt42 import com.android.server.pm.pkg.PackageState in <lambda>()
167 ): PackageState = in <lambda>()
183 ): PackageState = in <lambda>()
262 packageState: PackageState, in <lambda>()
275 packageState: PackageState, in <lambda>()
288 packageState: PackageState, in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayActorEnforcerTests.kt25 import com.android.server.pm.pkg.PackageState in <lambda>()
282 ) = mockThrowOnUnmocked<PackageState> { in <lambda>()
365 var targetPkgState: PackageState? = null, in <lambda>()
366 var actorPkgState: PackageState? = null, in <lambda>()
381 override fun initializeForUser(userId: Int): ArrayMap<String, PackageState> { in <lambda>()
DOverlayManagerServiceImplTestsBase.java44 import com.android.server.pm.pkg.PackageState;
362 private PackageState getPackageForUser(int user) { in getPackageForUser()
376 var pkgState = Mockito.mock(PackageState.class); in getPackageForUser()
393 public ArrayMap<String, PackageState> initializeForUser(int userId) { in initializeForUser()
394 final ArrayMap<String, PackageState> packages = new ArrayMap<>(); in initializeForUser()
396 final PackageState pkg = value.getPackageForUser(userId); in initializeForUser()
406 public PackageState getPackageStateForUser(@NonNull String packageName, int userId) { in getPackageStateForUser()

123