HomeSort by relevance Sort by last modified time
    Searched defs:addMockSystemService (Results 1 - 19 of 19) sorted by null

  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/car/
CarQsFragmentTest.java 53 mContext.addMockSystemService(Context.LAYOUT_INFLATER_SERVICE,
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
NavigationBarFragmentTest.java 70 mContext.addMockSystemService(Context.WINDOW_SERVICE, windowManager);
StatusBarTest.java 168 mContext.addMockSystemService(TrustManager.class, mock(TrustManager.class));
169 mContext.addMockSystemService(FingerprintManager.class, mock(FingerprintManager.class));
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
ZenModeControllerImplTest.java 59 mContext.addMockSystemService(NotificationManager.class, mNm);
RemoteInputViewTest.java 73 mContext.addMockSystemService(ShortcutManager.class, mShortcutManager);
SecurityControllerTest.java 81 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager);
82 mContext.addMockSystemService(Context.USER_SERVICE, mUserManager);
83 mContext.addMockSystemService(Context.CONNECTIVITY_SERVICE, mConnectivityManager);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
ChannelsTest.java 53 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
QSFragmentTest.java 67 mContext.addMockSystemService(Context.LAYOUT_INFLATER_SERVICE,
QSSecurityFooterTest.java 80 mContext.addMockSystemService(Context.LAYOUT_INFLATER_SERVICE,
85 mContext.addMockSystemService(Context.USER_SERVICE, mUserManager);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
KeyguardIndicationControllerTest.java 69 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager);
70 mContext.addMockSystemService(Context.TRUST_SERVICE, mock(TrustManager.class));
71 mContext.addMockSystemService(Context.FINGERPRINT_SERVICE, mock(FingerprintManager.class));
NotificationLockscreenUserManagerTest.java 75 mContext.addMockSystemService(UserManager.class, mUserManager);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
LeakReporterTest.java 59 mContext.addMockSystemService(NotificationManager.class, mNotificationManager);
  /frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
SliceManagerServiceTest.java 76 mContext.addMockSystemService(AppOpsManager.class, mock(AppOpsManager.class));
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
ScreenDecorationsTest.java 83 mContext.addMockSystemService(WindowManager.class, mWindowManager);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/
PluginManagerTest.java 155 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm);
PluginInstanceManagerTest.java 150 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
PowerNotificationWarningsTest.java 59 mContext.addMockSystemService(NotificationManager.class, mMockNotificationManager);
PowerUITest.java 83 mContext.addMockSystemService(Context.HARDWARE_PROPERTIES_SERVICE, mHardProps);
84 mContext.addMockSystemService(Context.POWER_SERVICE, mPowerManager);
  /frameworks/base/tests/testables/src/android/testing/
TestableContext.java 45 * <li>System services can be mocked out with {@link #addMockSystemService}</li>
140 public <T> void addMockSystemService(Class<T> service, T mock) {
141 addMockSystemService(getSystemServiceName(service), mock);
147 public void addMockSystemService(String name, Object service) {
153 * If a matching mock service has been added through {@link #addMockSystemService} then

Completed in 264 milliseconds