Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarBugreportManagerServiceTest.java110 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java121 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()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkListStoreDataTest.java585 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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/stats/
DCarStatsServiceTest.java68 when(mPackageManager.getNameForUid(CLIENT_UID)).thenReturn(CLIENT_PACKAGE); in setUp()
69 when(mPackageManager.getNameForUid(CLIENT_UID2)).thenReturn(CLIENT_PACKAGE2); in setUp()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DNetworkListStoreData.java307 String creatorName = mContext.getPackageManager().getNameForUid(configuration.creatorUid); in parseNetwork()
313 mContext.getPackageManager().getNameForUid(Process.SYSTEM_UID); in parseNetwork()
DSupplicantStaIfaceCallbackHidlV1_2Impl.java202 .getNameForUid(Process.WIFI_UID); in onDppSuccessConfigReceived()
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DUidToPackageNameConverter.java67 sb.append(packageManager.getNameForUid(uid)).append(", "); in convertToPackageNames()
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java199 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in ensureTheCallerIsSignedWithPlatformKeys()
220 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in ensureTheCallerIsDesignatedBugReportApp()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DPermissionHelper.java40 final String callingPackage = context.getPackageManager().getNameForUid(sandboxCallingUid); in checkSdkSandboxPermission()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/datasaver/
DDynamicDenylistManagerTest.java375 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()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java68 public String getNameForUid(int uid) { in getNameForUid() method in ContactsMockPackageManager
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DContextMap.java220 appName = context.getPackageManager().getNameForUid(appUid); in add()
244 String appName = service.getPackageManager().getNameForUid(appUid); in add()
DAdvertiseManager.java240 packageName = mService.getPackageManager().getNameForUid(appUid); in startAdvertisingSet()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java163 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs()
190 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs()
/packages/services/Car/service/src/com/android/car/stats/
DCarStatsService.java124 String packageName = mPackageManager.getNameForUid(clientUid); in getVmsClientLogger()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DContextMapTest.java77 doReturn(APP_NAME).when(mMockPackageManager).getNameForUid(anyInt()); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java279 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()
/packages/apps/Settings/src/com/android/settings/fuelgauge/datasaver/
DDynamicDenylistManager.java257 uids.forEach(uid -> packageNames.add(pm.getNameForUid(uid))); in getPackageNames()
/packages/services/Car/tests/carservice_test/src/com/android/car/remoteaccess/
DCarRemoteAccessManagerTest.java155 when(mPackageManager.getNameForUid(Process.myUid())).thenReturn(SERVICE_NAME_1); in MyMockedCarTestContext()
156 when(mPackageManager.getNameForUid(12345)).thenReturn(SERVICE_NAME_2); in MyMockedCarTestContext()
/packages/services/Car/service/src/com/android/car/vms/
DVmsBrokerService.java145 String clientPackage = mPackageManager.getNameForUid(clientUid); in registerClient()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSlice.java172 context.getPackageManager().getNameForUid(Binder.getCallingUid()); in isCallerExemptUid()
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DEmbmsSampleDownloadService.java90 getPackageManager().getNameForUid(packageUid));
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java258 return context.getPackageManager().getNameForUid(uid); in getPackageNameInternal()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java5351 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 …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/
DHidDeviceService.java695 String appName = getPackageManager().getNameForUid(mUserUid); in getUserAppName()

12