Searched refs:expectedUid (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/tests/net/java/android/net/netlink/ |
D | InetDiagSocketTest.java | 155 final int expectedUid = expectSuccess ? Process.myUid() : INVALID_UID; in checkConnectionOwnerUid() local 157 assertEquals(expectedUid, uid); in checkConnectionOwnerUid()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | ConnOnActivityStartTest.java | 305 final String expectedUid = Integer.toString(uid); in assertRestrictBackground() local 311 actual = candidate.trim().equals(expectedUid); in assertRestrictBackground()
|
/frameworks/base/services/net/java/android/net/ |
D | NetworkStackClient.java | 318 final int expectedUid = inSystemProcess ? Process.SYSTEM_UID : Process.NETWORK_STACK_UID; in getNetworkStackIntent() local 319 if (uid != expectedUid) { in getNetworkStackIntent()
|
/frameworks/base/cmds/statsd/src/ |
D | StatsService.cpp | 80 binder::Status checkUid(uid_t expectedUid) { in checkUid() argument 82 if (uid == expectedUid || uid == AID_ROOT) { in checkUid() 86 StringPrintf("UID %d is not expected UID %d", uid, expectedUid)); in checkUid()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 1457 AwareTranslatePeerHandlesToMac(int expectedUid, Map<Integer, MacAddress> peerIdToMacMap) { in AwareTranslatePeerHandlesToMac() argument 1458 mExpectedUid = expectedUid; in AwareTranslatePeerHandlesToMac()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.cpp | 145 binder::Status checkUid(uid_t expectedUid) { in checkUid() argument 147 if (uid == expectedUid || uid == AID_ROOT) { in checkUid() 151 StringPrintf("UID %d is not expected UID %d", uid, expectedUid)); in checkUid()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 3873 int expectedUid = 123; in testResolveNotificationUid_delegateAllowed() local 3875 when(mPackageManagerClient.getPackageUidAsUser("target", 0)).thenReturn(expectedUid); in testResolveNotificationUid_delegateAllowed() 3880 assertEquals(expectedUid, mService.resolveNotificationUid("caller", "target", 9, 0)); in testResolveNotificationUid_delegateAllowed() 3885 int expectedUid = 123; in testResolveNotificationUid_androidAllowed() local 3887 when(mPackageManagerClient.getPackageUidAsUser("target", 0)).thenReturn(expectedUid); in testResolveNotificationUid_androidAllowed() 3890 assertEquals(expectedUid, mService.resolveNotificationUid("android", "target", 0, 0)); in testResolveNotificationUid_androidAllowed()
|
D | PreferencesHelperTest.java | 304 int expectedUid = 1001001; in testReadXml_onlyRestoresTargetUser() local 305 setUpPackageWithUid(package0, expectedUid); in testReadXml_onlyRestoresTargetUser() 311 mHelper.getNotificationChannel(package0, expectedUid, channel0.getId(), false)); in testReadXml_onlyRestoresTargetUser()
|