Home
last modified time | relevance | path

Searched refs:mPackageManagerInt (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java261 private final PackageManagerInternal mPackageManagerInt; field in PermissionManagerServiceImpl
335 mPackageManagerInt.writeSettings(true);
339 mPackageManagerInt.writeSettings(true);
347 mPackageManagerInt.writeSettings(false);
403 mPackageManagerInt.writeSettings(true);
411 mPackageManagerInt.writePermissionSettings(userIds, !sync);
415 mPackageManagerInt.writeSettings(true);
419 mPackageManagerInt.writeSettings(false);
432 mPackageManagerInt = LocalServices.getService(PackageManagerInternal.class); in PermissionManagerServiceImpl()
521 if (mPackageManagerInt.getInstantAppPackageName(callingUid) != null) { in getAllPermissionGroups()
[all …]
DPermissionManagerService.java115 private final PackageManagerInternal mPackageManagerInt; field in PermissionManagerService
150 mPackageManagerInt = LocalServices.getService(PackageManagerInternal.class); in PermissionManagerService()
292 final AndroidPackage pkg = mPackageManagerInt.getPackage(packageName); in setAutoRevokeExempted()
335 mPackageManagerInt.isCallerInstallerOfRecord(pkg, callingUid); in checkAutoRevokeAccess()
343 if (pkg == null || mPackageManagerInt.filterAppAccess(pkg, callingUid, in checkAutoRevokeAccess()
355 final AndroidPackage pkg = mPackageManagerInt.getPackage(packageName); in isAutoRevokeExempted()
485 mPackageManagerInt.forEachInstalledPackage(pkg -> { in getPackagesWithAutoRevokePolicy()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceTimeoutTest.java85 private PackageManagerInternal mPackageManagerInt; field in ServiceTimeoutTest
106 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
107 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
115 realAms.mPackageManagerInt = mPackageManagerInt; in setUp()
DBaseBroadcastQueueTest.java105 PackageManagerInternal mPackageManagerInt; field in BaseBroadcastQueueTest
153 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
156 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
157 doNothing().when(mPackageManagerInt).notifyComponentUsed(any(), anyInt(), any(), any()); in setUp()
160 }).when(mPackageManagerInt).getPackageUid(any(), anyLong(), eq(UserHandle.USER_SYSTEM)); in setUp()
170 realAms.mPackageManagerInt = mPackageManagerInt; in setUp()
DAsyncProcessStartTest.java91 private PackageManagerInternal mPackageManagerInt; field in AsyncProcessStartTest
120 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
128 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
138 mRealAms.mPackageManagerInt = mPackageManagerInt; in setUp()
DProcessObserverTest.java90 private PackageManagerInternal mPackageManagerInt; field in ProcessObserverTest
121 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
129 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
139 mRealAms.mPackageManagerInt = mPackageManagerInt; in setUp()
DAppChildProcessTest.java70 @Mock private PackageManagerInternal mPackageManagerInt; field in AppChildProcessTest
107 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
111 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
115 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
DServiceBindingOomAdjPolicyTest.java127 private PackageManagerInternal mPackageManagerInt; field in ServiceBindingOomAdjPolicyTest
163 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
164 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
174 realAms.mPackageManagerInt = mPackageManagerInt; in setUp()
181 doReturn(false).when(mPackageManagerInt).filterAppAccess(anyString(), anyInt(), anyInt()); in setUp()
558 doReturn(rInfo).when(mPackageManagerInt).resolveService(any(Intent.class), any(), in createServiceIntent()
DApplicationStartInfoTest.java88 @Mock private PackageManagerInternal mPackageManagerInt; field in ApplicationStartInfoTest
116 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
118 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
119 doReturn("com.android.test").when(mPackageManagerInt).getNameForUid(anyInt()); in setUp()
122 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
DCacheOomRankerTest.java85 private PackageManagerInternal mPackageManagerInt; field in CacheOomRankerTest
119 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
120 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
122 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
DCachedAppOptimizerTest.java86 private PackageManagerInternal mPackageManagerInt; field in CachedAppOptimizerTest
109 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
121 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
1003 mAms.mPackageManagerInt = mPackageManagerInt; in initActivityManagerService()
DApplicationExitInfoTest.java102 @Mock private PackageManagerInternal mPackageManagerInt; field in ApplicationExitInfoTest
142 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
143 doReturn(new ComponentName("", "")).when(mPackageManagerInt).getSystemUiServiceComponent(); in setUp()
146 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
DBroadcastQueueTest.java789 verify(mAms.mPackageManagerInt, atLeastOnce()).notifyComponentUsed(
DMockingOomAdjusterTests.java192 mService.mPackageManagerInt = mPackageManagerInternal; in setUp()
/frameworks/base/services/core/java/com/android/server/am/
DProcessRecord.java578 if (_service.mPackageManagerInt != null) { in ProcessRecord()
581 _service.mPackageManagerInt.getProcessesForUid(_definingUid); in ProcessRecord()
585 _service.mPackageManagerInt.getProcessesForUid(_uid); in ProcessRecord()
DBroadcastQueueModernImpl.java1191 mService.mPackageManagerInt.grantImplicitAccess(r.userId, r.intent, in dispatchReceivers()
1257 mService.mPackageManagerInt.grantImplicitAccess(r.userId, r.intent, in scheduleResultTo()
1622 final int uid = mService.mPackageManagerInt.getPackageUid( in cleanupDisabledPackageReceiversLocked()
2145 mService.mPackageManagerInt.notifyComponentUsed( in notifyScheduleReceiver()
DAppStartInfoTracker.java817 TextUtils.isEmpty(mService.mPackageManagerInt.getNameForUid(uid)); in onPackageRemoved()
1053 mService.mPackageManagerInt.getPackageUid( in clearHistoryProcessStartInfo()
DAppExitInfoTracker.java633 mService.mPackageManagerInt.getNameForUid(uid)); in onPackageRemoved()
836 final int uid = mService.mPackageManagerInt.getPackageUid(packageName, in clearHistoryProcessExitInfo()
DAppErrors.java530 if (mService.mPackageManagerInt.isPackageStateProtected(packages[i], proc.userId)) { in scheduleAppCrashLocked()
DContentProviderHelper.java518 mService.mPackageManagerInt.notifyComponentUsed( in getContentProviderImpl()
DProcessList.java1909 int[] denyGids = mService.mPackageManagerInt.getPermissionGids(
DActiveServices.java5789 mAm.mPackageManagerInt.notifyComponentUsed( in bringUpServiceInnerLocked()