Searched refs:mTestInjector (Results 1 – 4 of 4) sorted by relevance
49 private TestInjector mTestInjector; field in AmbientBrightnessStatsTrackerTest53 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 …]
80 private TestInjector mTestInjector; field in CrossProfileAppsServiceImplTest89 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()
105 final TestInjector mTestInjector = new TestInjector(); field in ActivityTestsBase128 mTestInjector.setUp(); in setUpBase()137 mTestInjector.tearDown(); in tearDownBase()484 new TestActivityManagerService(mTestInjector, this); in TestActivityTaskManagerService()
129 private TestInjector mTestInjector; field in AccountManagerServiceTest167 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 …]