Home
last modified time | relevance | path

Searched refs:mMockNative (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/robotests/src/com/android/server/location/
DGnssBatchingProviderTest.java34 private GnssBatchingProviderNative mMockNative; field in GnssBatchingProviderTest
40 when(mMockNative.initBatching()).thenReturn(true); in setUp()
41 when(mMockNative.startBatch(anyLong(), anyBoolean())).thenReturn(true); in setUp()
42 when(mMockNative.stopBatch()).thenReturn(true); in setUp()
43 when(mMockNative.getBatchSize()).thenReturn(BATCH_SIZE); in setUp()
44 mTestProvider = new GnssBatchingProvider(mMockNative); in setUp()
51 verify(mMockNative).startBatch(eq(PERIOD_NANOS), eq(WAKE_ON_FIFO_FULL)); in start_nativeStarted()
57 verify(mMockNative).stopBatch(); in stop_nativeStopped()
63 verify(mMockNative).flushBatch(); in flush_nativeFlushed()
74 verify(mMockNative, times(2)).startBatch(eq(PERIOD_NANOS), eq(WAKE_ON_FIFO_FULL)); in started_resume_started()
[all …]
DGnssGeofenceProviderTest.java35 private GnssGeofenceProvider.GnssGeofenceProviderNative mMockNative; field in GnssGeofenceProviderTest
41 when(mMockNative.addGeofence(anyInt(), anyDouble(), anyDouble(), anyDouble(), anyInt(), in setUp()
43 when(mMockNative.pauseGeofence(anyInt())).thenReturn(true); in setUp()
44 when(mMockNative.removeGeofence(anyInt())).thenReturn(true); in setUp()
45 when(mMockNative.resumeGeofence(anyInt(), anyInt())).thenReturn(true); in setUp()
46 mTestProvider = new GnssGeofenceProvider(mMockNative); in setUp()
55 verify(mMockNative).addGeofence(eq(GEOFENCE_ID), eq(LATITUDE), eq(LONGITUDE), in addGeofence_nativeAdded()
64 verify(mMockNative).pauseGeofence(eq(GEOFENCE_ID)); in pauseGeofence_nativePaused()
70 verify(mMockNative).removeGeofence(eq(GEOFENCE_ID)); in removeGeofence_nativeRemoved()
77 verify(mMockNative).resumeGeofence(eq(GEOFENCE_ID), eq(MONITOR_TRANSITIONS)); in resumeGeofence_nativeResumed()
[all …]
DGnssNavigationMessageProviderTest.java28 private GnssNavigationMessageProvider.GnssNavigationMessageProviderNative mMockNative; field in GnssNavigationMessageProviderTest
34 when(mMockNative.startNavigationMessageCollection()).thenReturn(true); in setUp()
35 when(mMockNative.stopNavigationMessageCollection()).thenReturn(true); in setUp()
38 new Handler(Looper.myLooper()), mMockNative) { in setUp()
49 verify(mMockNative).startNavigationMessageCollection(); in register_nativeStarted()
56 verify(mMockNative).stopNavigationMessageCollection(); in unregister_nativeStopped()
61 when(mMockNative.isNavigationMessageSupported()).thenReturn(true); in isSupported_nativeIsSupported()
64 when(mMockNative.isNavigationMessageSupported()).thenReturn(false); in isSupported_nativeIsSupported()
72 verify(mMockNative, times(2)).startNavigationMessageCollection(); in register_resume_started()
80 verify(mMockNative, times(1)).startNavigationMessageCollection(); in unregister_resume_notStarted()
DGnssMeasurementsProviderTest.java29 private GnssMeasurementsProvider.GnssMeasurementProviderNative mMockNative; field in GnssMeasurementsProviderTest
35 when(mMockNative.startMeasurementCollection(anyBoolean())).thenReturn(true); in setUp()
36 when(mMockNative.stopMeasurementCollection()).thenReturn(true); in setUp()
39 new Handler(Looper.myLooper()), mMockNative) { in setUp()
50 verify(mMockNative).startMeasurementCollection(anyBoolean()); in register_nativeStarted()
57 verify(mMockNative).stopMeasurementCollection(); in unregister_nativeStopped()
62 when(mMockNative.isMeasurementSupported()).thenReturn(true); in isSupported_nativeIsSupported()
65 when(mMockNative.isMeasurementSupported()).thenReturn(false); in isSupported_nativeIsSupported()
73 verify(mMockNative, times(2)).startMeasurementCollection(anyBoolean()); in register_resume_started()
81 verify(mMockNative, times(1)).startMeasurementCollection(anyBoolean()); in unregister_resume_notStarted()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java115 @Spy private TestUtils.MonitoredWifiAwareNativeApi mMockNative = field in WifiAwareStateManagerTest
172 mDut.setNative(mMockNativeManager, mMockNative); in setUp()
190 mMockNative.validateUniqueTransactionIds(); in tearDown()
259 mockSessionCallback2, mMockNative); in testRequestMacAddresses()
264 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testRequestMacAddresses()
271 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses()
284 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
292 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
354 InOrder inOrder = inOrder(mMockContext, mMockNative, mMockAwareDataPathStatemanager, in testAwareDataPathInterfaceUpDown()
361 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testAwareDataPathInterfaceUpDown()
[all …]
DWifiAwareDataPathStateManagerTest.java118 @Spy private TestUtils.MonitoredWifiAwareNativeApi mMockNative = field in WifiAwareDataPathStateManagerTest
168 mDut.setNative(mMockNativeManager, mMockNative); in setUp()
193 mMockNative.validateUniqueTransactionIds(); in tearDown()
209 InOrder inOrder = inOrder(mMockNative); in testCreateDeleteAllInterfaces()
214 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces()
222 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
237 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
258 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
265 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
273 verifyNoMoreInteractions(mMockNative, mMockNwMgt); in testCreateDeleteAllInterfaces()
[all …]