/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpMemoryStoreTest.java | 77 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/ |
D | LegacyTypeTrackerTest.kt | 79 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/ |
D | LeAudioNativeInterfaceTest.java | 43 @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()
|
D | LeAudioBroadcasterNativeInterfaceTest.java | 42 @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/ |
D | ThreadNetworkControllerTest.java | 57 @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/ |
D | IpConnectivityLogTest.java | 59 @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/ |
D | AdapterServiceTest.java | 145 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/ |
D | SandboxedSdkContextUnitTest.java | 303 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/ |
D | IpConnectivityMetricsTest.java | 82 @Mock IIpConnectivityMetrics mMockService; field in IpConnectivityMetricsTest
|