Home
last modified time | relevance | path

Searched refs:getUidForPackage (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBroadcastQueueModernImplTest.java357 PACKAGE_GREEN, getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_Empty()
370 PACKAGE_GREEN, getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_Normal_Deferrable()
398 PACKAGE_GREEN, getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_Normal()
425 PACKAGE_GREEN, getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_Foreground()
460 PACKAGE_GREEN, getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_Ordered()
485 PACKAGE_GREEN, getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_Huge()
508 getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_uidForeground()
532 getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_processTop()
561 getUidForPackage(PACKAGE_GREEN)); in testRunnableAt_persistentProc()
630 PACKAGE_GREEN, getUidForPackage(PACKAGE_GREEN)); in doRunnableAt_Cached()
[all …]
DBroadcastQueueTest.java682 getUidForPackage(PACKAGE_GREEN));
684 getUidForPackage(PACKAGE_BLUE));
760 getUidForPackage(PACKAGE_BLUE));
885 getUidForPackage(PACKAGE_GREEN));
916 getUidForPackage(PACKAGE_GREEN));
942 getUidForPackage(PACKAGE_GREEN));
946 getUidForPackage(PACKAGE_BLUE));
949 getUidForPackage(PACKAGE_YELLOW));
980 getUidForPackage(PACKAGE_GREEN));
982 getUidForPackage(PACKAGE_YELLOW));
[all …]
DBaseBroadcastQueueTest.java159 return getUidForPackage(invocation.getArgument(0)); in setUp()
188 static int getUidForPackage(@NonNull String packageName) { in getUidForPackage() method in BaseBroadcastQueueTest
201 static int getUidForPackage(@NonNull String packageName, int userId) { in getUidForPackage() method in BaseBroadcastQueueTest
202 return UserHandle.getUid(userId, getUidForPackage(packageName)); in getUidForPackage()
242 ai.uid = getUidForPackage(packageName, userId); in makeApplicationInfo()
/frameworks/av/services/camera/libcameraservice/utils/
DAttributionAndPermissionUtils.h74 virtual status_t getUidForPackage(const std::string &packageName, int userId,
235 status_t getUidForPackage(const std::string &packageName, int userId, in getUidForPackage() function
237 return mAttributionAndPermissionUtils->getUidForPackage(packageName, userId, uid, err); in getUidForPackage()
DAttributionAndPermissionUtils.cpp165 status_t AttributionAndPermissionUtils::getUidForPackage(const std::string &packageName, in getUidForPackage() function in android::AttributionAndPermissionUtils
/frameworks/base/native/android/tests/activitymanager/nativeTests/src/
DActivityManagerNativeTest.cpp74 static bool getUidForPackage(const char* packageName, /*inout*/ uid_t& uid) { in getUidForPackage() function
110 EXPECT_TRUE(getUidForPackage(kTestPackage, testAppUid)); in TEST_F()
/frameworks/av/media/module/service.mediatranscoding/tests/
DMediaTranscodingServiceTestHelper.h75 static status_t getUidForPackage(String16 packageName, userid_t userId, /*inout*/ uid_t& uid) { in getUidForPackage() function
269 if (getUidForPackage(String16(packageName), 0 /*userId*/, packageUid) == NO_ERROR) { in TestClientCallback()
342 if (getUidForPackage(String16(packageName), 0 /*userId*/, uid) == NO_ERROR) { in registerClient()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java507 final int uid = getUidForPackage(pkgName, userId); in onPackageBroadcastReceived()
1159 final int packageUid = getUidForPackage(packageName, grantId); in hasBindAppWidgetPermission()
1183 final int packageUid = getUidForPackage(packageName, grantId); in setBindAppWidgetPermission()
1303 final int providerUid = getUidForPackage(providerComponent.getPackageName(), in bindAppWidgetId()
3133 private int getUidForPackage(String packageName, int userId) { in getUidForPackage() method in AppWidgetServiceImpl
3610 final int uid = getUidForPackage(pkg, userId); in readProfileStateFromFileLocked()
3677 final int uid = getUidForPackage(pkg, userId); in readProfileStateFromFileLocked()
3695 final int uid = getUidForPackage(packageName, userId); in readProfileStateFromFileLocked()
3750 final int uid = getUidForPackage(NEW_KEYGUARD_HOST_PACKAGE, in performUpgradeLocked()
4549 final int packageUid = getUidForPackage(packageName, userId); in isCallerBindAppWidgetAllowListedLocked()
[all …]
/frameworks/native/services/sensorservice/
DSensorService.cpp940 static status_t getUidForPackage(String16 packageName, int userId, /*inout*/uid_t& uid, int err) { in getUidForPackage() function
980 if (getUidForPackage(args[1], userId, uid, err) != NO_ERROR) { in handleSetUidState()
1001 if (getUidForPackage(args[1], userId, uid, err) == BAD_VALUE) { in handleResetUidState()
1022 if (getUidForPackage(args[1], userId, uid, err) == BAD_VALUE) { in handleGetUidState()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp5978 if (getUidForPackage(packageName, userId, uid, err) == BAD_VALUE) { in handleSetUidState()
5995 if (getUidForPackage(packageName, userId, uid, err) == BAD_VALUE) { in handleResetUidState()
6012 if (getUidForPackage(packageName, userId, uid, err) == BAD_VALUE) { in handleGetUidState()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java6702 final int uid = getUidForPackage(packageName, userId);
6714 private int getUidForPackage(String packageName, int userId) {
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java12580 approvedAppUids.add(new Pair(pkg, getUidForPackage(pkg, userId)));
12651 getUidForPackage(nowApproved, user.getIdentifier())));
12690 int uid = getUidForPackage(pkg, user.getIdentifier());
12701 private int getUidForPackage(String pkg, int userId) {
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java6515 || !UserHandle.isSameApp(Binder.getCallingUid(), getUidForPackage(packageName))) {
6559 private int getUidForPackage(String packageName) {
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java11801 private int getUidForPackage(String packageName, int userId) {
16072 Binder.getCallingUid(), getUidForPackage(packageName, userId))) { in getApplicationRestrictionsPerAdminForUser()
/frameworks/base/services/
Dart-profile2690 HPLcom/android/server/pm/UserManagerService;->getUidForPackage(Ljava/lang/String;)I+]Landroid/conte…
Dart-wear-profile16025 PLcom/android/server/notification/NotificationManagerService$RoleObserver;->getUidForPackage(Ljava/…
19999 HPLcom/android/server/pm/UserManagerService;->getUidForPackage(Ljava/lang/String;)I