/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | DefaultDeviceEffectsApplierTest.java | 106 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()
|
D | ReviewNotificationPermissionsJobServiceTest.java | 66 mContext.addMockSystemService(JobScheduler.class, mMockJobScheduler); in setUp()
|
D | VibratorHelperTest.java | 55 getContext().addMockSystemService(Vibrator.class, mVibrator); in setUp()
|
D | NotificationHistoryJobServiceTest.java | 83 mContext.addMockSystemService(JobScheduler.class, mMockJobScheduler); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | CsdWarningDialogTest.java | 55 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/ |
D | HotspotControllerImplTest.java | 90 mContext.addMockSystemService(WifiManager.class, mWifiManager); in setUp() 91 mContext.addMockSystemService(TetheringManager.class, mTetheringManager); in setUp() 92 mContext.addMockSystemService(UserManager.class, mUserManager); in setUp()
|
D | SecurityControllerTest.java | 89 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()
|
D | CastControllerImplTest.java | 52 mContext.addMockSystemService(MediaRouter.class, mMediaRouter); in setUp() 53 mContext.addMockSystemService(MediaProjectionManager.class, mMediaProjectionManager); in setUp()
|
D | BatteryControllerTest.java | 272 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/ |
D | SystemActionsTest.java | 83 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/ |
D | PolicyWarningUIControllerTest.java | 99 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/ |
D | KeyguardIndicationControllerBaseTest.java | 216 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/ |
D | WindowMagnificationPromptControllerTest.java | 85 mTestableContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setUp() 86 mTestableContext.addMockSystemService(StatusBarManager.class, mStatusBarManager); in setUp()
|
D | FullScreenMagnificationVibrationHelperTest.java | 56 mContext.addMockSystemService(Vibrator.class, mMockVibrator); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | NotificationChannelsTest.java | 48 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager); in setup()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
D | FaceDownDetectorTest.java | 73 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/ |
D | MenuInfoRepositoryTest.java | 69 mContext.addMockSystemService(Context.ACCESSIBILITY_SERVICE, mAccessibilityManager); in setUp()
|
D | MenuViewLayerControllerTest.java | 79 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | RefreshRateSettingsUtilsTest.java | 62 mContext.addMockSystemService(DisplayManager.class, mDisplayManagerMock); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakReporterTest.java | 68 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/ |
D | SideFpsEventHandlerTest.java | 103 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/ |
D | TrustManagerServiceTest.java | 211 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/ |
D | TestableContext.java | 158 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/ |
D | BiometricDanglingReceiverTest.java | 73 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | UserDetailViewAdapterTest.kt | 68 mContext.addMockSystemService(Context.LAYOUT_INFLATER_SERVICE, mLayoutInflater) in setUp()
|