Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/
DLegacyTypeTrackerTest.kt57 private val mMockService = mock(ConnectivityService::class.java).apply { in <lambda>() constant
60 private val mTracker = LegacyTypeTracker(mMockService).apply { in <lambda>()
82 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE) in testSupl()
83 reset(mMockService) in testSupl()
85 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE_SUPL) in testSupl()
86 reset(mMockService) in testSupl()
88 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, DISCONNECTED, TYPE_MOBILE_SUPL) in testSupl()
89 reset(mMockService) in testSupl()
91 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE_SUPL) in testSupl()
92 reset(mMockService) in testSupl()
[all …]
/frameworks/base/tests/net/java/android/net/
DIpMemoryStoreTest.java73 IIpMemoryStore mMockService; field in IpMemoryStoreTest
92 .onIpMemoryStoreFetched(mMockService); in startIpMemoryStore()
121 verify(mMockService, times(1)).storeNetworkAttributes(eq(l2Key), in testNetworkAttributes()
133 verify(mMockService, times(1)).retrieveNetworkAttributes(eq(l2Key), any()); in testNetworkAttributes()
147 verify(mMockService, times(1)).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testPrivateData()
158 verify(mMockService, times(1)).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testPrivateData()
174 verify(mMockService, times(1)).findL2Key(mNapCaptor.capture(), any()); in testFindL2Key()
191 verify(mMockService, times(1)).isSameNetwork(eq(l2Key1), eq(l2Key2), any()); in testIsSameNetwork()
226 mCbCaptor.getValue().onIpMemoryStoreFetched(mMockService); in testEnqueuedIpMsRequests()
228 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequests()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerTest.java61 @Mock private IAccessibilityManager mMockService; field in AccessibilityManagerTest
82 when(mMockService.addClient(any(IAccessibilityManagerClient.class), anyInt())) in createManager()
86 new AccessibilityManager(mHandler, mMockService, UserHandle.USER_CURRENT); in createManager()
88 verify(mMockService).addClient(any(IAccessibilityManagerClient.class), anyInt()); in createManager()
103 when(mMockService.getInstalledAccessibilityServiceList(anyInt())) in testGetAccessibilityServiceList()
111 verify(mMockService).getInstalledAccessibilityServiceList(UserHandle.USER_CURRENT); in testGetAccessibilityServiceList()
121 verify(mMockService).interrupt(UserHandle.USER_CURRENT); in testInterrupt()
/frameworks/base/tests/net/common/java/android/net/metrics/
DIpConnectivityLogTest.java58 @Mock IIpConnectivityMetrics mMockService; field in IpConnectivityLogTest
67 IpConnectivityLog logger = new IpConnectivityLog(mMockService); in testLoggingEvents()
92 IpConnectivityLog logger = new IpConnectivityLog(mMockService); in testLoggingEventsWithMultipleCallers()
129 verify(mMockService, timeout(timeoutMs).times(n)).logEvent(captor.capture()); in verifyEvents()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java66 @Mock private IUsageStatsManager mMockService; field in ResolverListControllerTest
99 when(mMockService.queryUsageStats(anyInt(), anyLong(), anyLong(), anyString())) in reportChooserSelection()
108 doAnswer(answer).when(mMockService).reportChooserSelection( in reportChooserSelection()
111 mUsm = new UsageStatsManager(mMockContext, mMockService); in reportChooserSelection()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationShellCmdTest.java72 NotificationManagerService mMockService; field in NotificationShellCmdTest
85 when(mMockService.getContext()).thenReturn(mTestableContext); in setUp()
86 when(mMockService.getBinderService()).thenReturn(mMockBinderService); in setUp()
101 new NotificationShellCmd(mMockService) in doCmd()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java78 @Mock IIpConnectivityMetrics mMockService; field in IpConnectivityMetricsTest