Searched refs:getNameForUid (Results 1 – 19 of 19) sorted by relevance
215 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()
67 when(mPackageManager.getNameForUid(CLIENT_UID)).thenReturn(CLIENT_PACKAGE); in setUp()68 when(mPackageManager.getNameForUid(CLIENT_UID2)).thenReturn(CLIENT_PACKAGE2); in setUp()
123 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in requestBugreport()139 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in requestBugreport()
629 "Caller " + mContext.getPackageManager().getNameForUid(Binder.getCallingUid()) in setUxRChangeBroadcastEnabled()
131 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs()157 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs()
67 public String getNameForUid(int uid) { in getNameForUid() method in ContactsMockPackageManager
136 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs()162 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs()
102 String packageName = mPackageManager.getNameForUid(uid); in getVmsClientLogger()
178 String appName = service.getPackageManager().getNameForUid(appUid); in add()
1060 String callingPackageName = mContext.getPackageManager().getNameForUid( in notifyConfigChangedForSubId()1364 String packageName = mContext.getPackageManager().getNameForUid(uid); in onReceive()
7291 String packageName = mApp.getPackageManager().getNameForUid(uid); in getWorkSource()
91 getPackageManager().getNameForUid(packageUid));
567 String packageName = mPackageManager.getNameForUid(uid); in getCallingPackage()
554 return getPackageManager().getNameForUid(mInjector.getCallingUid());
718 String appName = getPackageManager().getNameForUid(mUserUid); in getUserAppName()
1033 String callingApp = mAdapterService.getPackageManager().getNameForUid( in logManufacturerInfo()
1132 "Caller " + mPackageManager.getNameForUid(Binder.getCallingUid()) in setEnableActivityBlocking()
4487 String userName = pm.getNameForUid(callingUid); in exceptionMessage()
5357 final String name = pm.getNameForUid(uid); in getCallingPackageName()