Home
last modified time | relevance | path

Searched refs:mTestInjector (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAmbientBrightnessStatsTrackerTest.java48 private TestInjector mTestInjector; field in AmbientBrightnessStatsTrackerTest
52 mTestInjector = new TestInjector(); in setUp()
66 mTestInjector.incrementTime(1000); in testBrightnessStatsTrackerOverSingleDay()
70 assertEquals(mTestInjector.getLocalDate(), userStats.get(0).getLocalDate()); in testBrightnessStatsTrackerOverSingleDay()
77 mTestInjector.incrementTime(1000); in testBrightnessStatsTrackerOverSingleDay()
79 mTestInjector.incrementTime(1500); in testBrightnessStatsTrackerOverSingleDay()
81 mTestInjector.incrementTime(2500); in testBrightnessStatsTrackerOverSingleDay()
85 assertEquals(mTestInjector.getLocalDate(), userStats.get(0).getLocalDate()); in testBrightnessStatsTrackerOverSingleDay()
101 mTestInjector.incrementTime(1000); in testBrightnessStatsTrackerOverMultipleDays()
103 mTestInjector.incrementTime(1500); in testBrightnessStatsTrackerOverMultipleDays()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java76 private TestInjector mTestInjector; field in CrossProfileAppsServiceImplTest
85 mTestInjector = new TestInjector(); in initCrossProfileAppsServiceImpl()
86 mCrossProfileAppsServiceImpl = new CrossProfileAppsServiceImpl(mContext, mTestInjector); in initCrossProfileAppsServiceImpl()
117 mTestInjector.setCallingUid(PACKAGE_ONE_UID); in setupCaller()
118 mTestInjector.setCallingUserId(PRIMARY_USER); in setupCaller()
171 mTestInjector.setCallingUserId(SECONDARY_USER); in getTargetUserProfiles_fromSecondaryUser()
180 mTestInjector.setCallingUserId(PROFILE_OF_PRIMARY_USER); in getTargetUserProfiles_fromProfile_installed()
189 mTestInjector.setCallingUserId(PROFILE_OF_PRIMARY_USER); in getTargetUserProfiles_fromProfile_notInstalled()
328 mTestInjector.setCallingUserId(PROFILE_OF_PRIMARY_USER); in startActivityAsUser_fromProfile_success()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java130 private TestInjector mTestInjector; field in AccountManagerServiceTest
165 mTestInjector = new TestInjector(realTestContext, mockContext, mMockNotificationManager); in setUp()
166 mAms = new AccountManagerService(mTestInjector); in setUp()
174 deleteDatabase(new File(mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
175 deleteDatabase(new File(mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
176 deleteDatabase(new File(mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
338 AccountManagerService ams2 = new AccountManagerService(mTestInjector); in testRemovedAccountSync()
347 String ceDatabaseName = mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM); in testRemovedAccountSync()
362 String preNDatabaseName = mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration()
385 String deDatabaseName = mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration()
[all …]