Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java178 addLocalServiceMock(LightsManager.class, mLightsManagerMock); in setUp()
179 addLocalServiceMock(DisplayManagerInternal.class, mDisplayManagerInternalMock); in setUp()
180 addLocalServiceMock(BatteryManagerInternal.class, mBatteryManagerInternalMock); in setUp()
181 addLocalServiceMock(ActivityManagerInternal.class, mActivityManagerInternalMock); in setUp()
182 addLocalServiceMock(AttentionManagerInternal.class, mAttentionManagerInternalMock); in setUp()
183 addLocalServiceMock(DreamManagerInternal.class, mDreamManagerInternalMock); in setUp()
288 private static <T> void addLocalServiceMock(Class<T> clazz, T mock) { in addLocalServiceMock() method in PowerManagerServiceTest
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java146 addLocalServiceMock(ShortcutServiceInternal.class, mShortcutServiceInternal); in setUp()
148 addLocalServiceMock(UsageStatsManagerInternal.class, mUsageStatsManagerInternal); in setUp()
150 addLocalServiceMock(PackageManagerInternal.class, mPackageManagerInternal); in setUp()
159 addLocalServiceMock(NotificationManagerInternal.class, mNotificationManagerInternal); in setUp()
813 private static <T> void addLocalServiceMock(Class<T> clazz, T mock) { in addLocalServiceMock() method in DataManagerTest
DUsageStatsQueryHelperTest.java83 addLocalServiceMock(UsageStatsManagerInternal.class, mUsageStatsManagerInternal); in setUp()
280 private static <T> void addLocalServiceMock(Class<T> clazz, T mock) { in addLocalServiceMock() method in UsageStatsQueryHelperTest
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java302 addLocalServiceMock(DeviceIdleInternal.class); in registerLocalServices()
303 addLocalServiceMock(AppStandbyInternal.class); in registerLocalServices()
306 addLocalServiceMock(UsageStatsManagerInternal.class); in registerLocalServices()
309 mActivityManagerInternal = addLocalServiceMock(ActivityManagerInternal.class); in registerLocalServices()
313 final PowerManagerInternal pmInternal = addLocalServiceMock(PowerManagerInternal.class); in registerLocalServices()
316 mStatsService = addLocalServiceMock(NetworkStatsManagerInternal.class); in registerLocalServices()
2143 private static <T> T addLocalServiceMock(Class<T> clazz) { in addLocalServiceMock() method in NetworkPolicyManagerServiceTest