Home
last modified time | relevance | path

Searched refs:times (Results 1 – 25 of 220) sorted by relevance

123456789

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/
DCellBroadcastConfigServiceTest.java25 import static org.mockito.Mockito.times;
157 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber(anyInt(), in testEnableCellBroadcastRange()
178 verify(mMockedSmsService, times(1)).disableCellBroadcastRangeForSubscriber(anyInt(), in testDisableCellBroadcastRange()
203 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault()
209 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault()
215 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault()
221 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault()
227 verify(mMockedSmsService, times(1)).disableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault()
235 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault()
241 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandlerTest.java92 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStart()
93 verify(mMockA2dpSink, times(0)).informAudioFocusStateNative(1); in testSrcStart()
94 verify(mMockA2dpSink, times(0)).informAudioTrackGainNative(1.0f); in testSrcStart()
102 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStop()
103 verify(mMockA2dpSink, times(0)).informAudioFocusStateNative(1); in testSrcStop()
104 verify(mMockA2dpSink, times(0)).informAudioTrackGainNative(1.0f); in testSrcStop()
111 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSnkPlay()
112 verify(mMockA2dpSink, times(1)).informAudioFocusStateNative(1); in testSnkPlay()
113 verify(mMockA2dpSink, times(1)).informAudioTrackGainNative(1.0f); in testSnkPlay()
120 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSnkPause()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DDefaultDialerCacheTest.java44 import static org.mockito.Mockito.times;
79 verify(mContext, times(2)).registerReceiverAsUser( in setUp()
116 verify(mRoleManagerAdapter, times(4)) in testThreeUsers()
118 verify(mRoleManagerAdapter, times(2)) in testThreeUsers()
120 verify(mRoleManagerAdapter, times(2)) in testThreeUsers()
136 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER0)); in testDialer1PackageChanged()
137 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testDialer1PackageChanged()
138 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER2)); in testDialer1PackageChanged()
153 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER0)); in testRandomOtherPackageChanged()
154 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testRandomOtherPackageChanged()
[all …]
DCallRedirectionProcessorTest.java55 import static org.mockito.Mockito.times;
171 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce()
173 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), eq(mHandle), in testNoUserDefinedServiceNoCarrierSerivce()
186 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService()
188 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService()
193 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService()
206 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService()
208 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService()
214 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService()
221 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService()
[all …]
DInCallControllerTests.java31 import static org.mockito.Mockito.times;
105 import static org.mockito.Mockito.times;
262 verify(mMockPackageManager, times(4)).queryIntentServicesAsUser( in testBindToService_DefaultDialer_NoEmergency()
274 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_NoEmergency()
321 verify(mMockPackageManager, times(4)).queryIntentServicesAsUser( in testBindToService_SystemDialer_Emergency()
333 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_SystemDialer_Emergency()
389 verify(mMockPackageManager, times(4)).queryIntentServicesAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
403 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
436 verify(mMockContext, times(2)).bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
461 verify(mMockPackageManager, times(4)).queryIntentServicesAsUser( in testBindToService_IncludeExternal()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java31 import static org.mockito.Mockito.times;
411 verify(mockWifiManager, times(1)).getConnectionInfo(); in latestWifiInfo_shouldBeFetchedInDisplayPreferenceForConnectedNetwork()
438 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldBeFetchedInDisplayPreferenceForConnectedNetwork()
464 verify(mockConnectivityManager, times(1)).registerNetworkCallback( in networkCallback_shouldBeRegisteredOnResume()
474 verify(mockConnectivityManager, times(1)) in networkCallback_shouldBeUnregisteredOnPause()
536 verify(mockAccessPoint, times(1)).getSettingsSummary(true /*convertSavedAsDisconnected*/); in entityHeader_shouldConvertSavedAsDisconnected()
687 verify(mockSsidPref, times(1)).setSummary(SSID); in ssidPref_shouldHaveDetailTextSetForPasspointR1()
688 verify(mockSsidPref, times(1)).setVisible(true); in ssidPref_shouldHaveDetailTextSetForPasspointR1()
699 verify(mockSsidPref, times(1)).setSummary(SSID); in ssidPref_shouldHaveDetailTextSetForPasspointR2()
700 verify(mockSsidPref, times(1)).setVisible(true); in ssidPref_shouldHaveDetailTextSetForPasspointR2()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java124 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testDisconnect()
149 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testControlOnly()
176 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testBrowsingOnly()
222 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay()
225 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay()
241 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause()
244 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause()
260 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop()
263 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop()
279 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testNext()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DMasterClearTest.java28 import static org.mockito.Mockito.times;
272 verify(mMasterClear, times(1)).isValidRequestCode(eq(invalidRequestCode)); in testOnActivityResultInternal_invalideRequest()
273 verify(mMasterClear, times(0)).establishInitialState(); in testOnActivityResultInternal_invalideRequest()
274 verify(mMasterClear, times(0)).getAccountConfirmationIntent(); in testOnActivityResultInternal_invalideRequest()
275 verify(mMasterClear, times(0)).showFinalConfirmation(); in testOnActivityResultInternal_invalideRequest()
287 verify(mMasterClear, times(1)).isValidRequestCode(eq(MasterClear.KEYGUARD_REQUEST)); in testOnActivityResultInternal_resultCanceled()
288 verify(mMasterClear, times(1)).establishInitialState(); in testOnActivityResultInternal_resultCanceled()
289 verify(mMasterClear, times(0)).getAccountConfirmationIntent(); in testOnActivityResultInternal_resultCanceled()
290 verify(mMasterClear, times(0)).showFinalConfirmation(); in testOnActivityResultInternal_resultCanceled()
302 verify(mMasterClear, times(1)).isValidRequestCode(eq(MasterClear.KEYGUARD_REQUEST)); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java225 after(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToDisconnected_StackDisconnected()
237 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToDisconnected_StackDisconnected()
254 verify(mHeadsetService, timeout(CONNECT_TIMEOUT_TEST_WAIT_MILLIS).times( in testStateTransition_ConnectingToDisconnected_Timeout()
276 after(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToConnected_StackSlcConnected()
287 after(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToConnected_StackSlcConnected()
298 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToConnected_StackSlcConnected()
320 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_DisconnectingToDisconnected_StackDisconnected()
338 verify(mHeadsetService, timeout(CONNECT_TIMEOUT_TEST_WAIT_MILLIS).times( in testStateTransition_DisconnectingToDisconnected_Timeout()
361 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_DisconnectingToConnected_StackSlcCconnected()
380 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectedToDisconnecting_Disconnect()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingDetailTest.java28 import static org.mockito.Mockito.times;
178 verify(mFragment, times(1)).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning()
179 verify(mAvailableDevicesCategory, times(1)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning()
183 verify(mFragment, times(2)).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning()
184 verify(mAvailableDevicesCategory, times(2)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning()
188 verify(mFragment, times(2)).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning()
189 verify(mAvailableDevicesCategory, times(3)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning()
194 verify(mFragment, times(1)).stopScanning(); in onScanningStateChanged_restartScanAfterInitialScanning()
198 verify(mAvailableDevicesCategory, times(4)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning()
203 verify(mAvailableDevicesCategory, times(1)).setProgress(false); in onScanningStateChanged_restartScanAfterInitialScanning()
[all …]
DDeviceListPreferenceFragmentTest.java25 import static org.mockito.Mockito.times;
104 verify(mFragment, times(1)).startScanning(); in testScanningStateChanged_testScanStarted()
115 verify(mFragment, times(2)).startScanning(); in testScanningStateChanged_testScanFinished()
126 verify(mFragment, times(1)).startScanning(); in testScanningStateChanged_testScanStateMultiple()
129 verify(mFragment, times(2)).startScanning(); in testScanningStateChanged_testScanStateMultiple()
132 verify(mFragment, times(2)).startScanning(); in testScanningStateChanged_testScanStateMultiple()
138 verify(mFragment, times(2)).startScanning(); in testScanningStateChanged_testScanStateMultiple()
141 verify(mFragment, times(2)).startScanning(); in testScanningStateChanged_testScanStateMultiple()
155 verify(mFragment, times(1)).startScanning(); in testScanningStateChanged_testScanFinishedAfterDisable()
169 verify(mFragment, times(1)).startScanning(); in testScanningStateChanged_testScanStartedAfterDisable()
DBluetoothDetailsControllerEventsTest.java21 import static org.mockito.Mockito.times;
46 verify(mCachedDevice, times(1)).registerCallback(controller); in pauseResumeEvents()
47 verify(controller, times(1)).refresh(); in pauseResumeEvents()
50 verify(controller, times(1)).refresh(); in pauseResumeEvents()
54 verify(controller, times(2)).refresh(); in pauseResumeEvents()
55 verify(mCachedDevice, times(2)).registerCallback(controller); in pauseResumeEvents()
58 verify(controller, times(1)).init(mScreen); in pauseResumeEvents()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp48 const int *const inputYCoordinates, const int *const times, const int *const pointerIds, in updateTouchPoints() argument
54 if (times) { in updateTouchPoints()
57 i, inputXCoordinates[i], inputYCoordinates[i], times[i]); in updateTouchPoints()
62 if (times) { in updateTouchPoints()
65 if (times[i] < times[i - 1]) { in updateTouchPoints()
66 AKLOGI("Invalid time sequence. %d, %d", times[i - 1], times[i]); in updateTouchPoints()
107 const int time = times ? times[i] : -1; in updateTouchPoints()
219 const int *const xCoordinates, const int *const yCoordinates, const int *const times, in refreshSpeedRates() argument
247 duration += times[j + 1] - times[j]; in refreshSpeedRates()
258 duration += times[j + 1] - times[j]; in refreshSpeedRates()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DSystemNavigationGestureSettingsTest.java43 import static org.mockito.Mockito.times;
122 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
128 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
134 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
140 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
145 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
150 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
162 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode_backSensitivityValuePersists()
168 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode_backSensitivityValuePersists()
206 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testBackSensitivitySetterAndGetter_currentNavModeIsGestural()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java29 import static org.mockito.Mockito.times;
131 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceSetEnableIPv6(ifname, false); in makeIpClient()
132 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceClearAddrs(ifname); in makeIpClient()
134 verify(mObserverRegistry, times(1)).registerObserverForNonblockingCallback(arg.capture()); in makeIpClient()
198 verify(mCb, times(1)).onProvisioningFailure(any()); in testInterfaceNotFoundFailsImmediately()
216 verify(mCb, times(1)).setNeighborDiscoveryOffload(true); in testDefaultProvisioningConfiguration()
217 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setFallbackMulticastFilter(false); in testDefaultProvisioningConfiguration()
222 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceSetEnableIPv6(iface, false); in testDefaultProvisioningConfiguration()
223 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceClearAddrs(iface); in testDefaultProvisioningConfiguration()
224 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)) in testDefaultProvisioningConfiguration()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpCodecConfigTest.java273 verify(mA2dpNativeInterface, times(verifyCount)) in testDisableOptionalCodecs()
278 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
281 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
284 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
287 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
306 verify(mA2dpNativeInterface, times(++verifyCount)) in testEnableOptionalCodecs()
311 verify(mA2dpNativeInterface, times(verifyCount)) in testEnableOptionalCodecs()
314 verify(mA2dpNativeInterface, times(verifyCount)) in testEnableOptionalCodecs()
317 verify(mA2dpNativeInterface, times(verifyCount)) in testEnableOptionalCodecs()
320 verify(mA2dpNativeInterface, times(verifyCount)) in testEnableOptionalCodecs()
[all …]
DA2dpStateMachineTest.java174 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingPriorityAccept()
194 verify(mA2dpService, timeout(TIMEOUT_MS).times(3)).sendBroadcast(intentArgument2.capture(), in testIncomingPriorityAccept()
221 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testOutgoingTimeout()
232 verify(mA2dpService, timeout(A2dpStateMachine.sConnectTimeoutMs * 2).times( in testOutgoingTimeout()
260 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingTimeout()
271 verify(mA2dpService, timeout(A2dpStateMachine.sConnectTimeoutMs * 2).times( in testIncomingTimeout()
343 verify(mA2dpService, timeout(TIMEOUT_MS).times(2)).sendBroadcast(intentArgument2.capture(), in testProcessCodecConfigEventCase()
347 verify(mA2dpService, times(1)).updateOptionalCodecsSupport(mTestDevice); in testProcessCodecConfigEventCase()
355 verify(mA2dpService, times(2)).updateOptionalCodecsSupport(mTestDevice); in testProcessCodecConfigEventCase()
361 verify(mA2dpService, times(2)).updateOptionalCodecsSupport(mTestDevice); in testProcessCodecConfigEventCase()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java219 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).setPriority( in testDisconnectNoAutoConnect()
239 verify(mHeadsetService, after(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setPriority( in testDisconnectNoAutoConnect()
253 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).setPriority( in testDisconnectNoAutoConnect()
257 verify(mHeadsetService, times(7)).setPriority(any(BluetoothDevice.class), anyInt()); in testDisconnectNoAutoConnect()
371 verify(mA2dpService, timeout(CONNECT_OTHER_PROFILES_TIMEOUT_WAIT_MILLIS).times(2)).connect( in testReconnectOnPartialConnect_PreviousPartialFail()
541 verify(mHeadsetService, times(0)).setPriority(eq(testDevices[0]), anyInt()); in testSetPriorityMultipleDevices()
542 verify(mA2dpService, times(0)).setPriority(eq(testDevices[0]), anyInt()); in testSetPriorityMultipleDevices()
543 verify(mHeadsetService, times(0)).setPriority(eq(testDevices[1]), in testSetPriorityMultipleDevices()
545 verify(mA2dpService, times(0)).setPriority(eq(testDevices[1]), anyInt()); in testSetPriorityMultipleDevices()
546 verify(mHeadsetService, times(0)).setPriority(eq(testDevices[2]), anyInt()); in testSetPriorityMultipleDevices()
[all …]
DAdapterServiceTest.java177 .times(callNumber)).onBluetoothStateChange(prevState, currState); in verifyStateChange()
194 verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times( in doEnable()
209 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doEnable()
220 verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times(2 * invocationNumber + 2)) in doEnable()
240 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable()
255 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable()
324 verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times(1)).startService(any()); in testGattStartTimeout()
333 .times(2)).startService(any()); in testGattStartTimeout()
356 verify(mMockContext, timeout(ONE_SECOND_MS).times(5)).startService(any()); in testGattStopTimeout()
369 verify(mMockContext, timeout(ONE_SECOND_MS).times(6)).startService(any()); in testGattStopTimeout()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/
DWidgetsListAdapterTest.java20 import static org.mockito.Mockito.times;
79 verify(mListener, times(1)).onChanged(); in test_notifyDataSetChanged()
86 verify(mListener, times(1)).onChanged(); in test_notifyItemInserted()
87 verify(mListener, times(1)).onItemRangeInserted(eq(1), eq(1)); in test_notifyItemInserted()
94 verify(mListener, times(1)).onChanged(); in test_notifyItemRemoved()
95 verify(mListener, times(1)).onItemRangeRemoved(eq(1), eq(1)); in test_notifyItemRemoved()
102 verify(mListener, times(1)).onChanged(); in testNotifyItemChanged_PackageIconDiff()
103 verify(mListener, times(1)).onItemRangeChanged(eq(0), eq(1), isNull()); in testNotifyItemChanged_PackageIconDiff()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java29 import static org.mockito.Mockito.times;
255 private long[] times = {1000, 1500, 2000}; in mockBatteryStatsHistory()
260 if (count == times.length) { in mockBatteryStatsHistory()
265 record.time = times[count]; in mockBatteryStatsHistory()
281 verify(view, times(1)).configureGraph(anyInt(), anyInt()); in assertOnlyHistory()
282 verify(view, times(1)).addPath(any(SparseIntArray.class)); in assertOnlyHistory()
292 verify(view, times(2)).configureGraph(anyInt(), anyInt()); in assertHistoryAndLinearProjection()
293 verify(view, times(1)).addPath(any(SparseIntArray.class)); in assertHistoryAndLinearProjection()
295 verify(view, times(1)).addProjectedPath(pointsActual.capture()); in assertHistoryAndLinearProjection()
315 verify(view, times(2)).configureGraph(anyInt(), anyInt()); in assertHistoryAndEnhancedProjection()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/
DWebViewAppPickerTest.java30 import static org.mockito.Mockito.times;
135 verify(mActivity, times(1)).finish(); in testClickingItemInActivityModeChangesProviderAndFinishes()
153 verify(preference, times(1)).setEnabled(eq(false)); in testDisabledPackageShownAsDisabled()
167 verify(preference, times(1)).setEnabled(eq(true)); in testEnabledPackageShownAsEnabled()
181 verify(preference, times(1)).setSummary(eq(disabledReason)); in testDisabledPackageShowsDisabledReasonSummary()
183 verify(preference, times(1)).setSummary(any()); in testDisabledPackageShowsDisabledReasonSummary()
202 verify(mActivity, times(1)).finish(); in testFinishIfNotAdmin()
346 verify(mWvusWrapper, times(1)).setWebViewProvider(eq(PACKAGE_NAME)); in testSuccessfulClickChangesProvider()
347 verify(mPicker, times(1)).updateCheckedState(PACKAGE_NAME); in testSuccessfulClickChangesProvider()
360 verify(mWvusWrapper, times(1)).setWebViewProvider(eq(PACKAGE_NAME)); in testFailingClickUpdatesSetting()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothDeviceConnectionPolicyTest.java161 verify(mMockBluetoothService, times(1)).connectDevices(); in testInitWithAdapterOn_connectDevices()
178 verify(mMockBluetoothService, times(0)).connectDevices(); in testInitWithAdapterOff_doNothing()
249 verify(mMockBluetoothService, times(0)).connectDevices(); in testReceivePowerOnBluetoothOffNotPersisted_BluetoothOnConnectDevices()
272 verify(mMockBluetoothService, times(1)).connectDevices(); in testReceivePowerOnBluetoothOn_connectDevices()
296 verify(mMockBluetoothService, times(0)).connectDevices(); in testReceiveAdapterTurningOff_doNothing()
316 verify(mMockBluetoothService, times(0)).connectDevices(); in testReceiveAdapterOff_doNothing()
336 verify(mMockBluetoothService, times(0)).connectDevices(); in testReceiveAdapterTurningOn_doNothing()
356 verify(mMockBluetoothService, times(1)).connectDevices(); in testReceiveAdapterOn_connectDevices()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVisibilityPreferenceControllerTest.java34 import static org.mockito.Mockito.times;
167 verify(pref, times(2)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableSecure()
189 verify(pref, times(1)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableUnredacted()
206 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGlobally()
231 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGloballyInProfile()
254 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noPrivateLockScreenNotificationsGlobally()
271 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noGlobalRestriction()
301 verify(pref, times(1)).setValue(argumentCaptor.capture()); in testUpdateState_noChannelOverride()
320 verify(pref, times(1)).setValue(argumentCaptor.capture()); in testUpdateState_channelOverride()
341 verify(mBackend, times(1)).updateChannel(any(), anyInt(), any()); in testOnPreferenceChange_noOverride()
[all …]
DSoundPreferenceControllerTest.java33 import static org.mockito.Mockito.times;
146 verify(pref, times(1)).onActivityResult(anyInt(), anyInt(), any()); in testDisplayPreference_savesPreference()
210 verify(mBackend, times(1)).updateChannel(any(), anyInt(), any()); in testOnPreferenceChange()
230 verify(pref, times(1)).onPrepareRingtonePickerIntent(any()); in testOnPreferenceTreeClick_correctPref()
231 verify(mFragment, times(1)).startActivityForResult(any(), anyInt()); in testOnPreferenceTreeClick_correctPref()
249 verify(pref, times(1)).onPrepareRingtonePickerIntent(intentArgumentCaptor.capture()); in testOnPreferenceTreeClick_alarmSound()
270 verify(pref, times(1)).onPrepareRingtonePickerIntent(intentArgumentCaptor.capture()); in testOnPreferenceTreeClick_ringtoneSound()
291 verify(pref, times(1)).onPrepareRingtonePickerIntent(intentArgumentCaptor.capture()); in testOnPreferenceTreeClick_otherSound()
304 verify(pref, times(1)).onActivityResult(anyInt(), anyInt(), any()); in testOnActivityResult()
305 verify(mImportanceListener, times(1)).onImportanceChanged(); in testOnActivityResult()

123456789