Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAmbientBrightnessStatsTrackerTest.java49 private TestInjector mTestInjector; field in AmbientBrightnessStatsTrackerTest
53 mTestInjector = new TestInjector(); in setUp()
67 mTestInjector.incrementTime(1000); in testBrightnessStatsTrackerOverSingleDay()
71 assertEquals(mTestInjector.getLocalDate(), userStats.get(0).getLocalDate()); in testBrightnessStatsTrackerOverSingleDay()
78 mTestInjector.incrementTime(1000); in testBrightnessStatsTrackerOverSingleDay()
80 mTestInjector.incrementTime(1500); in testBrightnessStatsTrackerOverSingleDay()
82 mTestInjector.incrementTime(2500); in testBrightnessStatsTrackerOverSingleDay()
86 assertEquals(mTestInjector.getLocalDate(), userStats.get(0).getLocalDate()); in testBrightnessStatsTrackerOverSingleDay()
102 mTestInjector.incrementTime(1000); in testBrightnessStatsTrackerOverMultipleDays()
104 mTestInjector.incrementTime(1500); in testBrightnessStatsTrackerOverMultipleDays()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java80 private TestInjector mTestInjector; field in CrossProfileAppsServiceImplTest
89 mTestInjector = new TestInjector(); in initCrossProfileAppsServiceImpl()
90 mCrossProfileAppsServiceImpl = new CrossProfileAppsServiceImpl(mContext, mTestInjector); in initCrossProfileAppsServiceImpl()
121 mTestInjector.setCallingUid(PACKAGE_ONE_UID); in setupCaller()
122 mTestInjector.setCallingUserId(PRIMARY_USER); in setupCaller()
175 mTestInjector.setCallingUserId(SECONDARY_USER); in getTargetUserProfiles_fromSecondaryUser()
184 mTestInjector.setCallingUserId(PROFILE_OF_PRIMARY_USER); in getTargetUserProfiles_fromProfile_installed()
193 mTestInjector.setCallingUserId(PROFILE_OF_PRIMARY_USER); in getTargetUserProfiles_fromProfile_notInstalled()
468 mTestInjector.setCallingUserId(PROFILE_OF_PRIMARY_USER); in startActivityAsUser_fromProfile_success()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java105 final TestInjector mTestInjector = new TestInjector(); field in ActivityTestsBase
128 mTestInjector.setUp(); in setUpBase()
137 mTestInjector.tearDown(); in tearDownBase()
484 new TestActivityManagerService(mTestInjector, this); in TestActivityTaskManagerService()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java129 private TestInjector mTestInjector; field in AccountManagerServiceTest
167 mTestInjector = new TestInjector(realTestContext, mockContext, mMockNotificationManager); in setUp()
168 mAms = new AccountManagerService(mTestInjector); in setUp()
176 deleteDatabase(new File(mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
177 deleteDatabase(new File(mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
178 deleteDatabase(new File(mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
341 AccountManagerService ams2 = new AccountManagerService(mTestInjector); in testRemovedAccountSync()
350 String ceDatabaseName = mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM); in testRemovedAccountSync()
365 String preNDatabaseName = mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration()
388 String deDatabaseName = mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration()
[all …]