/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 92 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/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastConfigServiceTest.java | 25 import static org.mockito.Mockito.times; 170 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber(anyInt(), in testEnableCellBroadcastRange() 192 verify(mMockedSmsService, times(1)).disableCellBroadcastRangeForSubscriber(anyInt(), in testDisableCellBroadcastRange() 217 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 223 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 229 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 235 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 241 verify(mMockedSmsService, times(1)).disableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 249 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 255 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | DefaultDialerCacheTest.java | 45 import static org.mockito.Mockito.times; 80 verify(mContext, times(2)).registerReceiverAsUser( in setUp() 123 verify(mRoleManagerAdapter, times(4)) in testThreeUsers() 125 verify(mRoleManagerAdapter, times(2)) in testThreeUsers() 127 verify(mRoleManagerAdapter, times(2)) in testThreeUsers() 143 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER0)); in testDialer1PackageChanged() 144 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testDialer1PackageChanged() 145 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER2)); in testDialer1PackageChanged() 160 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER0)); in testRandomOtherPackageChanged() 161 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testRandomOtherPackageChanged() [all …]
|
D | CallRedirectionProcessorTest.java | 64 import static org.mockito.Mockito.times; 199 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce() 201 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), eq(mHandle), in testNoUserDefinedServiceNoCarrierSerivce() 214 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService() 216 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 221 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 234 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService() 236 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() 242 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() 249 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceControllerTest.java | 31 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/ |
D | AvrcpControllerStateMachineTest.java | 164 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testDisconnect() 198 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testControlOnly() 230 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testBrowsingOnly() 281 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay() 284 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay() 300 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause() 303 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause() 319 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop() 322 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop() 338 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testNext() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | MasterClearTest.java | 28 import static org.mockito.Mockito.times; 285 verify(mMasterClear, times(1)).isValidRequestCode(eq(invalidRequestCode)); in testOnActivityResultInternal_invalideRequest() 286 verify(mMasterClear, times(0)).establishInitialState(); in testOnActivityResultInternal_invalideRequest() 287 verify(mMasterClear, times(0)).getAccountConfirmationIntent(); in testOnActivityResultInternal_invalideRequest() 288 verify(mMasterClear, times(0)).showFinalConfirmation(); in testOnActivityResultInternal_invalideRequest() 300 verify(mMasterClear, times(1)).isValidRequestCode(eq(MasterClear.KEYGUARD_REQUEST)); in testOnActivityResultInternal_resultCanceled() 301 verify(mMasterClear, times(1)).establishInitialState(); in testOnActivityResultInternal_resultCanceled() 302 verify(mMasterClear, times(0)).getAccountConfirmationIntent(); in testOnActivityResultInternal_resultCanceled() 303 verify(mMasterClear, times(0)).showFinalConfirmation(); in testOnActivityResultInternal_resultCanceled() 315 verify(mMasterClear, times(1)).isValidRequestCode(eq(MasterClear.KEYGUARD_REQUEST)); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 229 after(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToDisconnected_StackDisconnected() 241 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToDisconnected_StackDisconnected() 258 verify(mHeadsetService, timeout(CONNECT_TIMEOUT_TEST_WAIT_MILLIS).times( in testStateTransition_ConnectingToDisconnected_Timeout() 280 after(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToConnected_StackSlcConnected() 291 after(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToConnected_StackSlcConnected() 302 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToConnected_StackSlcConnected() 324 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_DisconnectingToDisconnected_StackDisconnected() 342 verify(mHeadsetService, timeout(CONNECT_TIMEOUT_TEST_WAIT_MILLIS).times( in testStateTransition_DisconnectingToDisconnected_Timeout() 365 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_DisconnectingToConnected_StackSlcCconnected() 384 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectedToDisconnecting_Disconnect() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDetailTest.java | 28 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 …]
|
D | DeviceListPreferenceFragmentTest.java | 25 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()
|
D | BluetoothDetailsControllerEventsTest.java | 21 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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/ |
D | BrowserPlayerWrapperTest.java | 92 verify(mMockBrowser, times(1)).connect(); in testConnect_Successful() 95 verify(mMockBrowser, times(1)).disconnect(); in testConnect_Successful() 106 verify(mMockBrowser, times(1)).connect(); in testConnect_Suspended() 112 verify(mMockBrowser, times(2)).disconnect(); in testConnect_Suspended() 123 verify(mMockBrowser, times(1)).connect(); in testConnect_Failed() 126 verify(mMockBrowser, times(1)).disconnect(); in testConnect_Failed() 140 verify(mMockBrowser, times(1)).connect(); in testEmptyRoot() 144 verify(mMockBrowser, times(1)).disconnect(); in testEmptyRoot() 179 verify(mMockBrowser, times(1)).connect(); in testPlayItem() 191 verify(mMockBrowser, times(0)).disconnect(); in testPlayItem() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | TelephonyRcsServiceTest.java | 25 import static org.mockito.Mockito.times; 132 verify(mFeatureControllerSlot0, times(1)).addFeature(mMockUceSlot0, in testSlotUpdates() 134 verify(mFeatureControllerSlot0, times(1)).connect(); in testSlotUpdates() 142 verify(mFeatureControllerSlot0, times(1)).addFeature(mMockUceSlot0, in testSlotUpdates() 144 verify(mFeatureControllerSlot0, times(1)).connect(); in testSlotUpdates() 146 verify(mFeatureControllerSlot1, times(1)).connect(); in testSlotUpdates() 153 verify(mFeatureControllerSlot0, times(1)).addFeature(mMockUceSlot0, in testSlotUpdates() 155 verify(mFeatureControllerSlot0, times(1)).connect(); in testSlotUpdates() 156 verify(mFeatureControllerSlot1, times(1)).addFeature(mMockUceSlot1, in testSlotUpdates() 158 verify(mFeatureControllerSlot1, times(1)).connect(); in testSlotUpdates() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 222 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() 224 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() 240 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() 242 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setDisconnection( in testDisconnectNoAutoConnect() 252 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setDisconnection( in testDisconnectNoAutoConnect() 256 verify(mDatabaseManager, times(2)).setConnection(any(BluetoothDevice.class), anyBoolean()); in testDisconnectNoAutoConnect() 257 verify(mDatabaseManager, times(1)).setDisconnection(any(BluetoothDevice.class)); in testDisconnectNoAutoConnect() 371 verify(mA2dpService, timeout(CONNECT_OTHER_PROFILES_TIMEOUT_WAIT_MILLIS).times(2)).connect( in testReconnectOnPartialConnect_PreviousPartialFail() 545 verify(mHeadsetService, times(0)).setConnectionPolicy(eq(testDevices[0]), anyInt()); in testSetConnectionPolicyMultipleDevices() 546 verify(mA2dpService, times(0)).setConnectionPolicy(eq(testDevices[0]), anyInt()); in testSetConnectionPolicyMultipleDevices() [all …]
|
D | AdapterServiceTest.java | 186 .times(callNumber)).onBluetoothStateChange(prevState, currState); in verifyStateChange() 203 verify(mMockContext, timeout(GATT_START_TIME_MS).times( in doEnable() 218 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doEnable() 229 verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times(2 * invocationNumber + 2)) in doEnable() 249 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable() 264 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable() 333 verify(mMockContext, timeout(GATT_START_TIME_MS).times(1)).startService(any()); in testGattStartTimeout() 342 .times(2)).startService(any()); in testGattStartTimeout() 365 verify(mMockContext, timeout(ONE_SECOND_MS).times(5)).startService(any()); in testGattStopTimeout() 378 verify(mMockContext, timeout(ONE_SECOND_MS).times(6)).startService(any()); in testGattStopTimeout() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 48 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/ |
D | SystemNavigationGestureSettingsTest.java | 43 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/apps/Launcher3/tests/src/com/android/launcher3/widget/ |
D | WidgetsListAdapterTest.java | 20 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/ |
D | BatteryInfoTest.java | 29 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/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
D | VmsClientManagerTest.java | 33 import static org.mockito.Mockito.times; 282 verify(mSystemClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testSystemUserUnlocked_BindFailed() 294 verify(mSystemClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testSystemUserUnlocked_BindException() 351 verify(mUserClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testUserUnlocked_BindFailed() 363 verify(mUserClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testUserUnlocked_UserBindFailed() 375 verify(mUserClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testUserUnlocked_BindException() 409 verify(mSystemClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testUserUnlocked_SystemRebind_BindFailed() 428 verify(mSystemClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testUserUnlocked_SystemRebind_BindException() 883 verify(mPackageManager, times(2)).getNameForUid(anyInt()); in testAddSubscriber_MultipleClients_MultiplePackages() 1050 private void verifySystemBind(int times) { in verifySystemBind() argument [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | ActiveSubsciptionsListenerTest.java | 22 import static org.mockito.Mockito.times; 136 verify(mListener, times(1)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled() 139 verify(mListener, times(2)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled() 145 verify(mListener, times(2)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled() 163 verify(mListener, times(1)).onChanged(); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 168 verify(mListener, times(1)).onChanged(); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 190 verify(mSubscriptionManager, times(numberOfAccess)).getActiveSubscriptionInfoList(); in start_alwaysFetchAndCacheResult() 202 verify(mSubscriptionManager, times(numberOfAccess)).getActiveSubscriptionInfoList(); in start_alwaysFetchAndCacheResult()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/ |
D | WebViewAppPickerTest.java | 30 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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachineTest.java | 174 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()
|
D | A2dpCodecConfigTest.java | 586 verify(mA2dpNativeInterface, times(0)).setCodecConfigPreference(mTestDevice, in testDisableOptionalCodecs() 596 verify(mA2dpNativeInterface, times(++invokedCounter)) in testDisableOptionalCodecs() 618 verify(mA2dpNativeInterface, times(1)) in testEnableOptionalCodecs() 627 verify(mA2dpNativeInterface, times(1)) in testEnableOptionalCodecs() 708 verify(mA2dpNativeInterface, times(0)).setCodecConfigPreference(mTestDevice, in testCodecParametersChangeHelper() 731 verify(mA2dpNativeInterface, times(invokeNative ? 1 : 0)) in testCodecParametersChangeHelper() 741 verify(mA2dpNativeInterface, times(invokeNative ? 2 : 0)) in testCodecParametersChangeHelper() 771 verify(mA2dpNativeInterface, times(invokeNative ? 1 : 0)) in testCodecSpecificParametersChangeHelper() 800 verify(mA2dpNativeInterface, times(0)) in testCodecPriorityChangeHelper() 820 verify(mA2dpNativeInterface, times(0)) in testCodecPriorityChangeHelper() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | BluetoothDeviceConnectionPolicyTest.java | 161 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()
|