/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountsDbTest.java | 222 int testUid = 100500; in testGrantsInsertFindDelete() local 223 long grantId = mAccountsDb.insertGrant(accId, "tokenType", testUid); in testGrantsInsertFindDelete() 226 List<Integer> expectedUids = Arrays.asList(testUid); in testGrantsInsertFindDelete() 230 testUid, "tokenType", account); in testGrantsInsertFindDelete() 234 testUid, "noSuchType", account); in testGrantsInsertFindDelete() 237 matchingGrantsCount = mAccountsDb.findMatchingGrantsCountAnyToken(testUid, account); in testGrantsInsertFindDelete() 243 assertEquals(testUid, (int)allAccountGrants.get(0).second); in testGrantsInsertFindDelete() 245 mAccountsDb.deleteGrantsByUid(testUid); in testGrantsInsertFindDelete() 270 int testUid = 100500; in testMetaInsertFindDelete() local 272 mAccountsDb.insertOrReplaceMetaAuthTypeAndUid(authenticatorType, testUid); in testMetaInsertFindDelete() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BackgroundRestrictionTest.java | 472 final int testUid = UserHandle.getUid(testUser, TEST_PACKAGE_APPID_BASE + testPkgIndex); in testTogglingBackgroundRestrictInternal() local 478 setBackgroundRestrict(testPkgName, testUid, false, listener); in testTogglingBackgroundRestrictInternal() 481 verifyRestrictionLevel(RESTRICTION_LEVEL_ADAPTIVE_BUCKET, testPkgName, testUid); in testTogglingBackgroundRestrictInternal() 486 setBackgroundRestrict(testPkgName, testUid, true, listener); in testTogglingBackgroundRestrictInternal() 489 verifyRestrictionLevel(RESTRICTION_LEVEL_BACKGROUND_RESTRICTED, testPkgName, testUid); in testTogglingBackgroundRestrictInternal() 491 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_BACKGROUND_RESTRICTED); in testTogglingBackgroundRestrictInternal() 505 verifyRestrictionLevel(RESTRICTION_LEVEL_BACKGROUND_RESTRICTED, testPkgName, testUid); in testTogglingBackgroundRestrictInternal() 507 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_BACKGROUND_RESTRICTED); in testTogglingBackgroundRestrictInternal() 516 setBackgroundRestrict(testPkgName, testUid, false, listener); in testTogglingBackgroundRestrictInternal() 519 verifyRestrictionLevel(RESTRICTION_LEVEL_ADAPTIVE_BUCKET, testPkgName, testUid); in testTogglingBackgroundRestrictInternal() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsImplTest.java | 430 private void mockKernelSingleUidTimeReader(int testUid, long[] cpuTimes) { in mockKernelSingleUidTimeReader() argument 439 }).when(mKernelSingleUidTimeReader).addDelta(eq(testUid), in mockKernelSingleUidTimeReader() 443 private void mockKernelSingleUidTimeReader(int testUid, long[] cpuTimes, long[] delta) { in mockKernelSingleUidTimeReader() argument 458 }).when(mKernelSingleUidTimeReader).addDelta(eq(testUid), in mockKernelSingleUidTimeReader() 465 final int testUid = 10032; in testMulticastWakelockAcqRel() local 473 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUid); in testMulticastWakelockAcqRel() 489 final int testUid = 10032; in testMulticastWakelockAcqNoRel() local 496 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUid); in testMulticastWakelockAcqNoRel() 511 final int testUid = 10032; in testMulticastWakelockAcqAcqRelRel() local 522 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUid); in testMulticastWakelockAcqAcqRelRel() [all …]
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | RawBatteryStatsTest.java | 68 @Test public void testUid() throws Exception { in testUid() method in RawBatteryStatsTest
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PermissionHelperTest.java | 370 int testUid = -1; in testSetNotificationPermission_doesntRequestNotChanged() local 374 .thenReturn(testUid); in testSetNotificationPermission_doesntRequestNotChanged() 382 eq(Manifest.permission.POST_NOTIFICATIONS), eq(-1), eq(testUid)); in testSetNotificationPermission_doesntRequestNotChanged()
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 2072 const int testUid = 12345; in TEST_P() local 2077 {createUidCriterion(testUid)})); in TEST_P() 2084 createAttributionSourceState(testUid), &audioConfig, in TEST_P() 2092 const int testUid = 12345; in TEST_P() local 2097 {createUidCriterion(testUid)})); in TEST_P() 2103 createAttributionSourceState(testUid), &audioConfig, in TEST_P() 2119 const int testUid = 12345; in TEST_F() local 2125 audioConfig, {createUidCriterion(testUid)})); in TEST_F() 2134 createAttributionSourceState(testUid), &audioConfig, in TEST_F() 2150 createAttributionSourceState(testUid), &audioConfig, in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 1098 int flags, int sdk, boolean forceDuck, int testUid, in requestAudioFocus() argument 1115 ? testUid : Binder.getCallingUid(); in requestAudioFocus() 1137 focusRequesterUid = testUid; in requestAudioFocus()
|