Home
last modified time | relevance | path

Searched refs:getPackagesForUid (Results 1 – 25 of 108) sorted by relevance

12345

/frameworks/native/libs/binder/
DPermissionController.cpp68 void PermissionController::getPackagesForUid(const uid_t uid, Vector<String16> &packages) in getPackagesForUid() function in android::PermissionController
72 service->getPackagesForUid(uid, packages); in getPackagesForUid()
DIPermissionController.cpp63 virtual void getPackagesForUid(const uid_t uid, Vector<String16>& packages) in getPackagesForUid() function in android::BpPermissionController
141 getPackagesForUid(uid, packages); in onTransact()
/frameworks/base/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java90 String[] uidPkgs = pm.getPackagesForUid(appInfo.uid); in getMinimumTargetSDK()
217 String[] packageNames = packageManager.getPackagesForUid(uid);
238 String[] packageNames = packageManager.getPackagesForUid(uid);
/frameworks/base/core/java/android/os/
DIPermissionController.aidl24 String[] getPackagesForUid(int uid); in getPackagesForUid() method
/frameworks/native/libs/binder/include/binder/
DPermissionController.h51 void getPackagesForUid(const uid_t uid, Vector<String16>& packages);
DIPermissionController.h39 virtual void getPackagesForUid(const uid_t uid, Vector<String16> &packages) = 0;
/frameworks/base/services/core/java/com/android/server/om/
DOverlayableInfoCallback.java51 String[] getPackagesForUid(int uid); in getPackagesForUid() method
DOverlayActorEnforcer.java113 String[] callingPackageNames = mOverlayableCallback.getPackagesForUid(callingUid); in isAllowedActor()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java458 when(mPackageManager.getPackagesForUid(anyInt())).thenReturn(new String[]{SYSTEM_PACKAGE2}); in testUserAndPackageAddRemove()
467 when(mPackageManager.getPackagesForUid(anyInt())).thenReturn(new String[]{}); in testUserAndPackageAddRemove()
643 when(mPackageManager.getPackagesForUid(eq(uid))).thenReturn(new String[]{packageName}); in setPackagePermissions()
679 when(mPackageManager.getPackagesForUid(MOCK_UID1)) in testPackageInstallSharedUid()
694 when(mPackageManager.getPackagesForUid(MOCK_UID1)).thenReturn(new String[]{}); in testPackageUninstallBasic()
707 when(mPackageManager.getPackagesForUid(MOCK_UID1)).thenReturn(new String[]{}); in testPackageRemoveThenAdd()
740 when(mPackageManager.getPackagesForUid(MOCK_UID1)).thenReturn(new String[]{ in testPackageUninstallWithMultiplePackages()
/frameworks/base/services/core/java/com/android/server/security/
DKeyAttestationApplicationIdProviderService.java57 String[] packageNames = mPackageManager.getPackagesForUid(uid); in getKeyAttestationApplicationId()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSerialReader.java114 String[] packages = mContext.getPackageManager().getPackagesForUid(uid); in enforcePackageBelongsToUid()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java235 doReturn(systemPackages).when(mPackageManager).getPackagesForUid(UID); in testIsTypeSystem_systemPackage_returnTrue()
245 doReturn(servicePackages).when(mPackageManager).getPackagesForUid(UID); in testIsTypeService_servicePackage_returnTrue()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayActorEnforcerTests.kt177 override fun getPackagesForUid(uid: Int) = when (uid) { in overlayInfo() method in com.android.server.om.OverlayActorEnforcerTests.MockCallback
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java249 when(mMockPackageManager.getPackagesForUid(APP_UID)) in resolveValidReportedPackage_pkgNameIsInvalid_returnFirstCorrectPkgName()
269 when(mMockPackageManager.getPackagesForUid(APP_UID)) in resolveValidReportedPackage_anotherPkgNameWithActAsPkgPermission_returnPkg()
289 when(mMockPackageManager.getPackagesForUid(APP_UID)) in resolveValidReportedPackage_anotherPkgNameWithoutActAsPkgPermission_returnUidPkg()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java156 final String[] packageNames = mPm.getPackagesForUid(uid); in isPackageTestOnly()
330 final String[] packageNames = mPm.getPackagesForUid(key); in getDigestFromUid()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java175 final String[] packages = pm.getPackagesForUid(uid); in getMaxTargetSdkVersionForUid()
/frameworks/base/services/core/java/com/android/server/
DHardwarePropertiesManagerService.java101 final String[] packages = mContext.getPackageManager().getPackagesForUid( in getCallingPackageName()
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java190 String[] pkgs = AppGlobals.getPackageManager().getPackagesForUid(callingUid); in enforceCallerMatchesPackage()
/frameworks/base/services/core/java/com/android/server/location/
DCallerIdentity.java97 if (!ArrayUtils.contains(context.getPackageManager().getPackagesForUid(uid), packageName)) { in fromBinder()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java96 pm.getPackagesForUid(app.uid); in initializeBenchmarks()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistLoggingHandlerTests.java142 }).when(mockPackageManager).getPackagesForUid(anyInt()); in setUp()
/frameworks/base/core/java/android/accounts/
DGrantCredentialsPermissionActivity.java68 final String[] packages = pm.getPackagesForUid(mUid); in onCreate()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java313 if (defeatNullable(mPackage.getPackagesForUid(appInfo.uid)).length == 1) { in queryStatsForPackage()
368 final String[] packageNames = defeatNullable(mPackage.getPackagesForUid(uid)); in queryStatsForUid()
724 final String[] packageNames = defeatNullable(mPackage.getPackagesForUid(uid)); in queryCratesForUid()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java138 final String[] pkgs = context.getPackageManager().getPackagesForUid(uid); in checkUsageStatsPermission()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java151 final String[] packageNames = pm.getPackagesForUid(uid); in buildUidDetail()

12345