Searched refs:addLocalServiceMock (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 178 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/ |
D | DataManagerTest.java | 146 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
|
D | UsageStatsQueryHelperTest.java | 83 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/ |
D | NetworkPolicyManagerServiceTest.java | 302 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
|