Home
last modified time | relevance | path

Searched refs:getNameForUid (Results 1 – 19 of 19) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsClientManagerTest.java215 when(mPackageManager.getNameForUid(mCallingAppUid)).thenReturn(TEST_PACKAGE); in setUp()
812 when(mPackageManager.getNameForUid(mCallingAppUid)).thenReturn(TEST_PACKAGE); in testAddSubscriber_SystemUser()
839 verify(mPackageManager, atMost(1)).getNameForUid(anyInt()); in testAddSubscriber_MultipleCalls()
850 verify(mPackageManager, atMost(2)).getNameForUid(anyInt()); in testAddSubscriber_MultipleClients_SamePackage()
863 when(mPackageManager.getNameForUid(mCallingAppUid)).thenReturn(TEST_PACKAGE); in testAddSubscriber_MultipleClients_ForegroundAndSystemUsers_SamePackage()
866 verify(mPackageManager, atMost(2)).getNameForUid(anyInt()); in testAddSubscriber_MultipleClients_ForegroundAndSystemUsers_SamePackage()
880 when(mPackageManager.getNameForUid(mCallingAppUid)).thenReturn("test.package2"); in testAddSubscriber_MultipleClients_MultiplePackages()
883 verify(mPackageManager, times(2)).getNameForUid(anyInt()); in testAddSubscriber_MultipleClients_MultiplePackages()
937 when(mPackageManager.getNameForUid(mCallingAppUid)).thenReturn(TEST_PACKAGE); in testOnUserSwitch_RemoveSubscriber_AddNewSubscriber()
953 when(mPackageManager.getNameForUid(mCallingAppUid)).thenReturn(TEST_PACKAGE); in testOnUserSwitch_RemoveSubscriber_RetainSystemClient()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/stats/
DCarStatsServiceTest.java67 when(mPackageManager.getNameForUid(CLIENT_UID)).thenReturn(CLIENT_PACKAGE); in setUp()
68 when(mPackageManager.getNameForUid(CLIENT_UID2)).thenReturn(CLIENT_PACKAGE2); in setUp()
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java123 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in requestBugreport()
139 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in requestBugreport()
DCarUxRestrictionsManagerService.java629 "Caller " + mContext.getPackageManager().getNameForUid(Binder.getCallingUid()) in setUxRChangeBroadcastEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java131 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs()
157 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java67 public String getNameForUid(int uid) { in getNameForUid() method in ContactsMockPackageManager
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java136 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs()
162 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs()
/packages/services/Car/service/src/com/android/car/stats/
DCarStatsService.java102 String packageName = mPackageManager.getNameForUid(uid); in getVmsClientLogger()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java178 String appName = service.getPackageManager().getNameForUid(appUid); in add()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java1060 String callingPackageName = mContext.getPackageManager().getNameForUid( in notifyConfigChangedForSubId()
1364 String packageName = mContext.getPackageManager().getNameForUid(uid); in onReceive()
DPhoneInterfaceManager.java7291 String packageName = mApp.getPackageManager().getNameForUid(uid); in getWorkSource()
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DEmbmsSampleDownloadService.java91 getPackageManager().getNameForUid(packageUid));
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java567 String packageName = mPackageManager.getNameForUid(uid); in getCallingPackage()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java554 return getPackageManager().getNameForUid(mInjector.getCallingUid());
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDeviceService.java718 String appName = getPackageManager().getNameForUid(mUserUid); in getUserAppName()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java1033 String callingApp = mAdapterService.getPackageManager().getNameForUid( in logManufacturerInfo()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java1132 "Caller " + mPackageManager.getNameForUid(Binder.getCallingUid()) in setEnableActivityBlocking()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java4487 String userName = pm.getNameForUid(callingUid); in exceptionMessage()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java5357 final String name = pm.getNameForUid(uid); in getCallingPackageName()