Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/android/net/
DIpMemoryStoreTest.java77 IIpMemoryStore mMockService; field in IpMemoryStoreTest
96 .onIpMemoryStoreFetched(mMockService); in startIpMemoryStore()
125 verify(mMockService, times(1)).storeNetworkAttributes(eq(l2Key), in testNetworkAttributes()
137 verify(mMockService, times(1)).retrieveNetworkAttributes(eq(l2Key), any()); in testNetworkAttributes()
151 verify(mMockService, times(1)).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testPrivateData()
162 verify(mMockService, times(1)).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testPrivateData()
178 verify(mMockService, times(1)).findL2Key(mNapCaptor.capture(), any()); in testFindL2Key()
195 verify(mMockService, times(1)).isSameNetwork(eq(l2Key1), eq(l2Key2), any()); in testIsSameNetwork()
230 mCbCaptor.getValue().onIpMemoryStoreFetched(mMockService); in testEnqueuedIpMsRequests()
232 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequests()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt79 private val mMockService = mock(ConnectivityService::class.java).apply { in <lambda>() constant in com.android.server.LegacyTypeTrackerTest
93 private fun makeTracker() = LegacyTypeTracker(mMockService).apply { in <lambda>()
141 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE) in testSupl()
142 reset(mMockService) in testSupl()
144 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE_SUPL) in testSupl()
145 reset(mMockService) in testSupl()
147 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, DISCONNECTED, TYPE_MOBILE_SUPL) in testSupl()
148 reset(mMockService) in testSupl()
150 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE_SUPL) in testSupl()
151 reset(mMockService) in testSupl()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioNativeInterfaceTest.java43 @Mock private LeAudioService mMockService; field in LeAudioNativeInterfaceTest
49 when(mMockService.isAvailable()).thenReturn(true); in setUp()
50 LeAudioService.setLeAudioService(mMockService); in setUp()
67 verify(mMockService).messageFromNative(event.capture()); in onConnectionStateChanged()
81 verify(mMockService).messageFromNative(event.capture()); in onGroupNodeStatus()
98 verify(mMockService).messageFromNative(event.capture()); in onAudioConf()
111 verify(mMockService).messageFromNative(event.capture()); in onSinkAudioLocationAvailable()
128 verify(mMockService).messageFromNative(event.capture()); in onAudioLocalCodecCapabilities()
143 verify(mMockService).messageFromNative(event.capture()); in onAudioGroupCurrentCodecConf()
163 verify(mMockService).messageFromNative(event.capture()); in onAudioGroupSelectableCodecConf()
DLeAudioBroadcasterNativeInterfaceTest.java42 @Mock private LeAudioService mMockService; field in LeAudioBroadcasterNativeInterfaceTest
48 when(mMockService.isAvailable()).thenReturn(true); in setUp()
49 LeAudioService.setLeAudioService(mMockService); in setUp()
66 verify(mMockService).messageFromNative(event.capture()); in onBroadcastCreated()
77 verify(mMockService).messageFromNative(event.capture()); in onBroadcastDestroyed()
90 verify(mMockService).messageFromNative(event.capture()); in onBroadcastStateChanged()
102 verify(mMockService).messageFromNative(event.capture()); in onBroadcastMetadataChanged()
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/
DThreadNetworkControllerTest.java57 @Mock private IThreadNetworkController mMockService; field in ThreadNetworkControllerTest
92 mController = new ThreadNetworkController(mMockService); in setUp()
145 .when(mMockService) in registerStateCallback_callbackIsInvokedWithCallingAppIdentity()
172 .when(mMockService) in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity()
214 .when(mMockService) in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity()
225 .when(mMockService) in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity()
257 .when(mMockService) in join_callbackIsInvokedWithCallingAppIdentity()
268 .when(mMockService) in join_callbackIsInvokedWithCallingAppIdentity()
305 .when(mMockService) in scheduleMigration_callbackIsInvokedWithCallingAppIdentity()
315 .when(mMockService) in scheduleMigration_callbackIsInvokedWithCallingAppIdentity()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DIpConnectivityLogTest.java59 @Mock IIpConnectivityMetrics mMockService; field in IpConnectivityLogTest
68 IpConnectivityLog logger = new IpConnectivityLog(mMockService); in testLoggingEvents()
93 IpConnectivityLog logger = new IpConnectivityLog(mMockService); in testLoggingEventsWithMultipleCallers()
134 verify(mMockService, times(n)).logEvent(captor.capture()); in verifyEvents()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java145 private @Mock ProfileService mMockService; field in AdapterServiceTest
322 when(mMockService.getName()).thenReturn("Service1"); in setUp()
460 List.of(mMockService, mMockService2), in doEnable()
517 List.of(mMockService, mMockService2), in doDisable()
661 List.of(mMockService, mMockService2)); in testGattStopTimeout()
780 List<ProfileService> services = List.of(mMockService, mMockService2, mMockGattService); in startBrDr_whenScanManagerRefactorFlagIsOn_startAndStopScanController()
835 mAdapterService.addProfile(mMockService); in testProfileStartTimeout()
839 mAdapterService.onProfileServiceStateChanged(mMockService, STATE_ON); in testProfileStartTimeout()
850 mAdapterService.onProfileServiceStateChanged(mMockService, STATE_OFF); in testProfileStartTimeout()
869 mAdapterService.onProfileServiceStateChanged(mMockService, STATE_OFF); in testProfileStopTimeout()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java303 private final TestService mMockService; field in SandboxedSdkContextUnitTest.TestContext
306 mMockService = mockService; in TestContext()
311 return mMockService; in getSystemService()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java82 @Mock IIpConnectivityMetrics mMockService; field in IpConnectivityMetricsTest