Home
last modified time | relevance | path

Searched refs:addMockSystemService (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DDefaultDeviceEffectsApplierTest.java106 mContext.addMockSystemService(PowerManager.class, mPowerManager); in setUp()
107 mContext.addMockSystemService(ColorDisplayManager.class, mColorDisplayManager); in setUp()
108 mContext.addMockSystemService(UiModeManager.class, mUiModeManager); in setUp()
109 mContext.addMockSystemService(WallpaperManager.class, mWallpaperManager); in setUp()
179 mContext.addMockSystemService(ColorDisplayManager.class, null); in apply_missingSomeServices_okay()
180 mContext.addMockSystemService(WallpaperManager.class, null); in apply_missingSomeServices_okay()
200 mContext.addMockSystemService(WallpaperManager.class, disabledWallpaperService); in apply_disabledWallpaperService_dimWallpaperNotApplied()
DReviewNotificationPermissionsJobServiceTest.java66 mContext.addMockSystemService(JobScheduler.class, mMockJobScheduler); in setUp()
DVibratorHelperTest.java55 getContext().addMockSystemService(Vibrator.class, mVibrator); in setUp()
DNotificationHistoryJobServiceTest.java83 mContext.addMockSystemService(JobScheduler.class, mMockJobScheduler); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DCsdWarningDialogTest.java55 getContext().addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
58 getContext().addMockSystemService(AudioManager.class, mAudioManager); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DHotspotControllerImplTest.java90 mContext.addMockSystemService(WifiManager.class, mWifiManager); in setUp()
91 mContext.addMockSystemService(TetheringManager.class, mTetheringManager); in setUp()
92 mContext.addMockSystemService(UserManager.class, mUserManager); in setUp()
DSecurityControllerTest.java89 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager); in setUp()
90 mContext.addMockSystemService(Context.USER_SERVICE, mUserManager); in setUp()
91 mContext.addMockSystemService(Context.CONNECTIVITY_SERVICE, mConnectivityManager); in setUp()
DCastControllerImplTest.java52 mContext.addMockSystemService(MediaRouter.class, mMediaRouter); in setUp()
53 mContext.addMockSystemService(MediaProjectionManager.class, mMediaProjectionManager); in setUp()
DBatteryControllerTest.java272 mContext.addMockSystemService(UsbManager.class, mUsbManager); in complianceChanged_complianceIncompatible_outputsTrue()
283 mContext.addMockSystemService(UsbManager.class, mUsbManager); in complianceChanged_emptyComplianceWarnings_outputsFalse()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DSystemActionsTest.java83 mContext.addMockSystemService(TelecomManager.class, mTelecomManager); in setUp()
84 mContext.addMockSystemService(InputManager.class, mInputManager); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DPolicyWarningUIControllerTest.java99 mContext.addMockSystemService(AlarmManager.class, mAlarmManager); in setUp()
100 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setUp()
101 mContext.addMockSystemService(StatusBarManager.class, mStatusBarManager); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerBaseTest.java216 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager); in setUp()
217 mContext.addMockSystemService(UserManager.class, mUserManager); in setUp()
218 mContext.addMockSystemService(Context.TRUST_SERVICE, mock(TrustManager.class)); in setUp()
219 mContext.addMockSystemService(Context.FINGERPRINT_SERVICE, mock(FingerprintManager.class)); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationPromptControllerTest.java85 mTestableContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setUp()
86 mTestableContext.addMockSystemService(StatusBarManager.class, mStatusBarManager); in setUp()
DFullScreenMagnificationVibrationHelperTest.java56 mContext.addMockSystemService(Vibrator.class, mMockVibrator); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DNotificationChannelsTest.java48 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager); in setup()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DFaceDownDetectorTest.java73 sContext.addMockSystemService(SensorManager.class, mSensorManager); in setup()
74 sContext.addMockSystemService(PowerManager.class, mPowerManager); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuInfoRepositoryTest.java69 mContext.addMockSystemService(Context.ACCESSIBILITY_SERVICE, mAccessibilityManager); in setUp()
DMenuViewLayerControllerTest.java79 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DRefreshRateSettingsUtilsTest.java62 mContext.addMockSystemService(DisplayManager.class, mDisplayManagerMock); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakReporterTest.java68 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DSideFpsEventHandlerTest.java103 mContext.addMockSystemService(PackageManager.class, mPackageManager); in setup()
104 mContext.addMockSystemService(FingerprintManager.class, mFingerprintManager); in setup()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/
DTrustManagerServiceTest.java211 mMockContext.addMockSystemService(ActivityManager.class, mActivityManager); in setUp()
212 mMockContext.addMockSystemService(AlarmManager.class, mAlarmManager); in setUp()
213 mMockContext.addMockSystemService(BiometricManager.class, mBiometricManager); in setUp()
214 mMockContext.addMockSystemService(FaceManager.class, mFaceManager); in setUp()
215 mMockContext.addMockSystemService(FingerprintManager.class, mFingerprintManager); in setUp()
217 mMockContext.addMockSystemService(UserManager.class, mUserManager); in setUp()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java158 public <T> void addMockSystemService(Class<T> service, T mock) { in addMockSystemService() method in TestableContext
159 addMockSystemService(getSystemServiceName(service), mock); in addMockSystemService()
165 public void addMockSystemService(String name, Object service) { in addMockSystemService() method in TestableContext
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DBiometricDanglingReceiverTest.java73 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUserDetailViewAdapterTest.kt68 mContext.addMockSystemService(Context.LAYOUT_INFLATER_SERVICE, mLayoutInflater) in setUp()

1234