Searched refs:getNameForUid (Results 1 – 25 of 45) sorted by relevance
12
110 when(mMockPackageManager.getNameForUid(anyInt())).thenReturn("current_app_name"); in test_requestBugreport_failsIfNotDesignatedAppOnUserBuild()245 when(mMockPackageManager.getNameForUid(anyInt())).thenReturn("current_app_name"); in test_requestBugreport_failsIfNotSignedWithPlatformKeys()262 when(mMockPackageManager.getNameForUid(anyInt())).thenReturn("current_app_name"); in testCancelBugreport_failsIfNotSignedWithPlatformKeys()274 when(mMockPackageManager.getNameForUid(anyInt())).thenReturn("current_app_name"); in mockDesignatedBugReportApp()
121 when(mPackageManager.getNameForUid(USER_ID)).thenReturn(mSIPackageName); in setUp()156 when(mPackageManager.getNameForUid(USER_ID)).thenReturn(mSIPackageName); in getWifiSlice_fromSIPackage_shouldHaveTitleAndToggle()172 when(mPackageManager.getNameForUid(USER_ID)).thenReturn("com.test"); in getWifiSlice_notFromSIPackageAndWithWifiPermission_shouldHaveTitleAndToggle()187 when(mPackageManager.getNameForUid(USER_ID)).thenReturn("com.test"); in getWifiSlice_notFromSIPackageAndWithoutWifiPermission_shouldReturnNoToggle()
585 when(mPackageManager.getNameForUid(anyInt())).thenReturn(TEST_CREATOR_NAME); in setUp()896 when(mPackageManager.getNameForUid(eq(openNetwork.creatorUid))).thenReturn(null); in parseNetworkWithInvalidCreatorUidResetsToSystem()923 when(mPackageManager.getNameForUid(eq(openNetwork.creatorUid))) in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid()950 when(mPackageManager.getNameForUid(eq(openNetwork.creatorUid))) in parseNetworkWithNullCreatorNameResetsToPackageNameForCreatorUid()
68 when(mPackageManager.getNameForUid(CLIENT_UID)).thenReturn(CLIENT_PACKAGE); in setUp()69 when(mPackageManager.getNameForUid(CLIENT_UID2)).thenReturn(CLIENT_PACKAGE2); in setUp()
307 String creatorName = mContext.getPackageManager().getNameForUid(configuration.creatorUid); in parseNetwork()313 mContext.getPackageManager().getNameForUid(Process.SYSTEM_UID); in parseNetwork()
202 .getNameForUid(Process.WIFI_UID); in onDppSuccessConfigReceived()
67 sb.append(packageManager.getNameForUid(uid)).append(", "); in convertToPackageNames()
199 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in ensureTheCallerIsSignedWithPlatformKeys()220 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in ensureTheCallerIsDesignatedBugReportApp()
40 final String callingPackage = context.getPackageManager().getNameForUid(sandboxCallingUid); in checkSdkSandboxPermission()
375 when(mPackageManager.getNameForUid(FAKE_UID_1_INT)).thenReturn("app1"); in dump_dumpExpectedResult()376 when(mPackageManager.getNameForUid(FAKE_UID_2_INT)).thenReturn("app2"); in dump_dumpExpectedResult()
68 public String getNameForUid(int uid) { in getNameForUid() method in ContactsMockPackageManager
220 appName = context.getPackageManager().getNameForUid(appUid); in add()244 String appName = service.getPackageManager().getNameForUid(appUid); in add()
240 packageName = mService.getPackageManager().getNameForUid(appUid); in startAdvertisingSet()
163 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs()190 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs()
124 String packageName = mPackageManager.getNameForUid(clientUid); in getVmsClientLogger()
77 doReturn(APP_NAME).when(mMockPackageManager).getNameForUid(anyInt()); in setUp()
279 when(mPackageManager.getNameForUid(UID_PERMISSION_NOT_GRANTED_PACKAGE)).thenReturn( in setUp()281 when(mPackageManager.getNameForUid(UID_PERMISSION_GRANTED_PACKAGE_ONE)).thenReturn( in setUp()283 when(mPackageManager.getNameForUid(UID_PERMISSION_GRANTED_PACKAGE_TWO)).thenReturn( in setUp()285 when(mPackageManager.getNameForUid(UID_SERVERLESS_PACKAGE)).thenReturn( in setUp()558 when(mPackageManager.getNameForUid(1234)).thenReturn(packageName); in testAddCarRemoteTaskClient_persistentClientId()731 when(mPackageManager.getNameForUid(1234)).thenReturn(packageName); in testRemoteTaskRequested_persistentClientRegisteredAfterRequest()
257 uids.forEach(uid -> packageNames.add(pm.getNameForUid(uid))); in getPackageNames()
155 when(mPackageManager.getNameForUid(Process.myUid())).thenReturn(SERVICE_NAME_1); in MyMockedCarTestContext()156 when(mPackageManager.getNameForUid(12345)).thenReturn(SERVICE_NAME_2); in MyMockedCarTestContext()
145 String clientPackage = mPackageManager.getNameForUid(clientUid); in registerClient()
172 context.getPackageManager().getNameForUid(Binder.getCallingUid()); in isCallerExemptUid()
90 getPackageManager().getNameForUid(packageUid));
258 return context.getPackageManager().getNameForUid(uid); in getPackageNameInternal()
5351 when(mPackageManager.getNameForUid(anyInt())).thenReturn("testPkg"); in testFactoryResetSuccessWhenP2pEnabled()5364 verify(mPackageManager).getNameForUid(anyInt()); in testFactoryResetSuccessWhenP2pEnabled()5384 when(mPackageManager.getNameForUid(anyInt())).thenReturn("testPkg"); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()5393 verify(mPackageManager).getNameForUid(anyInt()); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()5407 verify(mPackageManager, times(2)).getNameForUid(anyInt()); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()5428 when(mPackageManager.getNameForUid(anyInt())).thenReturn("testPkg"); in testFactoryResetFailureWithoutNetworkSettingPermission()5432 verify(mPackageManager).getNameForUid(anyInt()); in testFactoryResetFailureWithoutNetworkSettingPermission()5449 when(mPackageManager.getNameForUid(anyInt())).thenReturn("testPkg"); in testFactoryResetFailureWhenNetworkResetDisallow()5455 verify(mPackageManager).getNameForUid(anyInt()); in testFactoryResetFailureWhenNetworkResetDisallow()5474 when(mPackageManager.getNameForUid(anyInt())).thenReturn(TEST_PACKAGE_NAME); in testFactoryResetFailureWhenConfigWifiDisallow()[all …]
695 String appName = getPackageManager().getNameForUid(mUserUid); in getUserAppName()