Home
last modified time | relevance | path

Searched refs:mMockService (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityManagerTest.java95 @Mock private IAccessibilityManager mMockService; field in AccessibilityManagerTest
122 when(mMockService.addClient(any(IAccessibilityManagerClient.class), anyInt())) in createManager()
125 when(mMockService.getFocusStrokeWidth()).thenReturn(mFocusStrokeWidthDefaultValue); in createManager()
126 when(mMockService.getFocusColor()).thenReturn(mFocusColorDefaultValue); in createManager()
129 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in createManager()
132 verify(mMockService).addClient(any(IAccessibilityManagerClient.class), anyInt()); in createManager()
142 verify(mMockService).removeClient(manager.getClient(), UserHandle.USER_CURRENT); in testRemoveManager()
154 when(mMockService.getInstalledAccessibilityServiceList(anyInt())) in testGetAccessibilityServiceList()
162 verify(mMockService).getInstalledAccessibilityServiceList(UserHandle.USER_CURRENT); in testGetAccessibilityServiceList()
172 verify(mMockService).interrupt(UserHandle.USER_CURRENT); in testInterrupt()
[all …]
/frameworks/base/services/tests/VpnTests/java/android/net/
DVpnManagerTest.java57 private IVpnManager mMockService; field in VpnManagerTest
72 mMockService = mock(IVpnManager.class); in setUp()
73 mVpnManager = new VpnManager(mMockContext, mMockService); in setUp()
79 when(mMockService.provisionVpnProfile(any(VpnProfile.class), eq(PKG_NAME))) in testProvisionVpnProfilePreconsented()
84 verify(mMockService).provisionVpnProfile(eq(profile.toVpnProfile()), eq(PKG_NAME)); in testProvisionVpnProfilePreconsented()
90 when(mMockService.provisionVpnProfile(any(VpnProfile.class), eq(PKG_NAME))) in testProvisionVpnProfileNeedsConsent()
101 verify(mMockService).provisionVpnProfile(eq(profile.toVpnProfile()), eq(PKG_NAME)); in testProvisionVpnProfileNeedsConsent()
107 verify(mMockService).deleteVpnProfile(eq(PKG_NAME)); in testDeleteProvisionedVpnProfile()
113 verify(mMockService).startVpnProfile(eq(PKG_NAME)); in testStartProvisionedVpnProfile()
119 verify(mMockService).stopVpnProfile(eq(PKG_NAME)); in testStopProvisionedVpnProfile()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationShellCmdTest.java70 NotificationManagerService mMockService; field in NotificationShellCmdTest
83 when(mMockService.getContext()).thenReturn(mContext); in setUp()
84 when(mMockService.getBinderService()).thenReturn(mMockBinderService); in setUp()
100 new TestNotificationShellCmd(mMockService) in doCmd()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java75 @Mock private IUsageStatsManager mMockService; field in ResolverListControllerTest
88 mUsm = new UsageStatsManager(mMockContext, mMockService); in setUp()
113 when(mMockService.queryUsageStats(anyInt(), anyLong(), anyLong(), anyString(), anyInt())) in reportChooserSelection()
122 doAnswer(answer).when(mMockService).reportChooserSelection( in reportChooserSelection()
321 when(mMockService.queryUsageStats(anyInt(), anyLong(), anyLong(), anyString(), in mockStats()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAbstractAccessibilityServiceConnectionTest.java177 @Mock private IBinder mMockService; field in AbstractAccessibilityServiceConnectionTest
251 mServiceConnection.mService = mMockService; in setup()