Home
last modified time | relevance | path

Searched refs:expectedUid (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/net/java/android/net/
DConnectivityModuleConnector.java176 final int expectedUid = in getModuleServiceIntent() local
178 if (uid != expectedUid) { in getModuleServiceIntent()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java305 final String expectedUid = Integer.toString(uid); in assertRestrictBackground() local
311 actual = candidate.trim().equals(expectedUid); in assertRestrictBackground()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp74 binder::Status checkUid(uid_t expectedUid) { in checkUid() argument
76 if (uid == expectedUid || uid == AID_ROOT) { in checkUid()
80 StringPrintf("UID %d is not expected UID %d", uid, expectedUid)); in checkUid()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java1457 AwareTranslatePeerHandlesToMac(int expectedUid, Map<Integer, MacAddress> peerIdToMacMap) { in AwareTranslatePeerHandlesToMac() argument
1458 mExpectedUid = expectedUid; in AwareTranslatePeerHandlesToMac()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp153 binder::Status checkUid(uid_t expectedUid) { in checkUid() argument
155 if (uid == expectedUid || uid == AID_ROOT) { in checkUid()
159 StringPrintf("UID %d is not expected UID %d", uid, expectedUid)); in checkUid()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java3955 int expectedUid = 123; in testResolveNotificationUid_delegateAllowed() local
3957 when(mPackageManagerClient.getPackageUidAsUser("target", 0)).thenReturn(expectedUid); in testResolveNotificationUid_delegateAllowed()
3962 assertEquals(expectedUid, mService.resolveNotificationUid("caller", "target", 9, 0)); in testResolveNotificationUid_delegateAllowed()
3967 int expectedUid = 123; in testResolveNotificationUid_androidAllowed() local
3969 when(mPackageManagerClient.getPackageUidAsUser("target", 0)).thenReturn(expectedUid); in testResolveNotificationUid_androidAllowed()
3972 assertEquals(expectedUid, mService.resolveNotificationUid("android", "target", 0, 0)); in testResolveNotificationUid_androidAllowed()
DPreferencesHelperTest.java307 int expectedUid = 1001001; in testReadXml_onlyRestoresTargetUser() local
308 setUpPackageWithUid(package0, expectedUid); in testReadXml_onlyRestoresTargetUser()
314 mHelper.getNotificationChannel(package0, expectedUid, channel0.getId(), false)); in testReadXml_onlyRestoresTargetUser()