/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigrationBroadcastSendingTest.java | 28 import static org.mockito.ArgumentMatchers.argThat; 90 eq(PERMISSIONS_TO_CHECK), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_noPermissionMatchingApps_noBroadcastSent() 104 eq(PERMISSIONS_TO_CHECK), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_noIntentMatchingApps_noBroadcastSent() 124 eq(PERMISSIONS_TO_CHECK), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_oneConfiguredMigratorAppWithNonNullReceiver_explicitBroadcastSent() 128 anyString(), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_oneConfiguredMigratorAppWithNonNullReceiver_explicitBroadcastSent() 152 eq(PERMISSIONS_TO_CHECK), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_oneConfiguredMigratorAppWithNullReceiver_implicitBroadcastSent() 156 anyString(), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_oneConfiguredMigratorAppWithNullReceiver_implicitBroadcastSent() 180 eq(PERMISSIONS_TO_CHECK), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_oneConfiguredMigratorAppWithoutReceiver_implicitBroadcastSent() 184 anyString(), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_oneConfiguredMigratorAppWithoutReceiver_implicitBroadcastSent() 207 eq(PERMISSIONS_TO_CHECK), argThat(flag -> (flag.getValue() == 0)))) in testBroadcast_oneConfiguredMigratorAppWithMultipleReceivers_implicitBroadcastSent() [all …]
|
D | MigrationTestUtils.java | 19 import static org.mockito.ArgumentMatchers.argThat; 76 argThat( in setResolveActivityResult() 80 argThat(flag -> (flag.getValue() == flags)))) in setResolveActivityResult()
|
D | MigrationCleanerTest.java | 20 import static org.mockito.ArgumentMatchers.argThat; 87 argThat( in verifyMigrationEntityTableCleared() 97 argThat( in verifyPriorityMigrationTableCleared()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | TrustedBiddingDataFetcherTest.java | 27 import static org.mockito.ArgumentMatchers.argThat; 112 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_1, ALL_KEYS)), in testDevOptionDisabled_fetchForMultipleUri() 122 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_2, KEYS_2)), in testDevOptionDisabled_fetchForMultipleUri() 152 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_1, ALL_KEYS)), in testDevOptionDisabled_fetchForMultipleUri() 156 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_2, KEYS_2)), in testDevOptionDisabled_fetchForMultipleUri() 168 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_1, ALL_KEYS)), in testDevOptionDisabled_fetchForMultipleUriWithHeaders() 180 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_2, KEYS_2)), in testDevOptionDisabled_fetchForMultipleUriWithHeaders() 218 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_1, ALL_KEYS)), in testDevOptionDisabled_fetchForMultipleUriWithHeaders() 222 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_2, KEYS_2)), in testDevOptionDisabled_fetchForMultipleUriWithHeaders() 234 argThat(new TestTrustedBiddingDataUriKeysMatcher(PATH_1, KEYS_1)), in testDevOptionDisabled_fetchFailedOrNoResultFromServer() [all …]
|
D | AdBidGeneratorImplTest.java | 58 import static org.mockito.ArgumentMatchers.argThat; 449 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogic() 504 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogic() 560 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderEnabled() 622 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderEnabled() 678 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderDisabled() 737 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderDisabled() 794 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderTakesFirstOfMultipleValues() 856 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderTakesFirstOfMultipleValues() 898 argThat(TRUSTED_BIDDING_SIGNALS_MATCHER), in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithAdCost() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/ |
D | SapRilReceiverTest.java | 48 import static org.mockito.Mockito.argThat; 151 argThat(arg -> (arg instanceof Long) && ((Long) arg == 0))); in binderDied() 164 argThat( in callback_connectResponse() 186 argThat( in callback_disconnectResponse() 208 argThat( in callback_disconnectIndication() 233 argThat( in callback_apduResponse() 259 argThat( in callback_transferAtrResponse() 287 argThat( in callback_powerResponse_powerOff() 314 argThat( in callback_powerResponse_powerOn() 338 argThat( in callback_resetSimResponse() [all …]
|
D | SapRilReceiverHidlTest.java | 47 import static org.mockito.Mockito.argThat; 146 argThat(arg -> (arg instanceof Long) && ((Long) arg == cookie))); in serviceDied() 159 argThat( in callback_connectResponse() 181 argThat( in callback_disconnectResponse() 203 argThat( in callback_disconnectIndication() 232 argThat( in callback_apduResponse() 262 argThat( in callback_transferAtrResponse() 290 argThat( in callback_powerResponse_powerOff() 317 argThat( in callback_powerResponse_powerOn() 341 argThat( in callback_resetSimResponse() [all …]
|
D | SapServerTest.java | 44 import static org.mockito.Mockito.argThat; 184 argThat( in onConnectRequest_whenStateIsConnected_sendsErrorConnectionClientMessage() 200 argThat( in onConnectRequest_whenStateIsCallOngoing_sendsErrorConnectionClientMessage() 252 .sendClientMessage(argThat(sapMsg -> sapMsg.getMsgType() == ID_ERROR_RESP)); in sendRilMessage_whenSapProxyIsNull_sendsErrorClientMessage() 268 .sendClientMessage(argThat(sapMsg -> sapMsg.getMsgType() == ID_ERROR_RESP)); in sendRilMessage_whenIAEIsThrown_sendsErrorClientMessage() 286 .sendClientMessage(argThat(sapMsg -> sapMsg.getMsgType() == ID_ERROR_RESP)); in sendRilMessage_whenRemoteExceptionIsThrown_sendsErrorClientMessage() 313 argThat( in handleRilInd_whenStateIsConnected_callsSendClientMessage() 494 argThat( in sendRilThreadMessage() 513 argThat( in sendClientMessage() 570 .sendRilMessage(argThat(sapMsg -> sapMsg.getMsgType() == ID_CONNECT_REQ)); in handleMessage_forRilConnectMsg_callsSendRilMessage() [all …]
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/ |
D | CarArgumentMatchers.java | 18 import static org.mockito.ArgumentMatchers.argThat; 45 return argThat(new UserInfoMatcher(userId)); in isUserInfo() 52 return argThat(new UserHandleMatcher(userId)); in isUserHandle() 59 return argThat(new IntentMatcher(action, packageName)); in intentFor() 66 return argThat(new PropertyIdMatcher(prop)); in isProperty() 73 return argThat(new PropertyIdMatcher(prop, values)); in isPropertyWithValues()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/ |
D | GattTransportClientProviderTest.java | 24 import static org.mockito.ArgumentMatchers.argThat; 287 argThat(new CharacteristicMatcher(gattCharacteristic)), any(), anyInt()); in setupGattWriteCharacteristic() 514 argThat(new CharacteristicMatcher(CAPABILITIES_CHARACTERSTIC)), in testOnMtuChanged_failed() 532 argThat(new CharacteristicMatcher(CAPABILITIES_CHARACTERSTIC)), in testOnMtuChanged_succeed() 565 argThat(new CharacteristicMatcher(IN_CHARACTERSTIC)), any(), anyInt()); in testSendMessage_charactersticWriteFailed() 579 argThat(new CharacteristicMatcher(IN_CHARACTERSTIC)), any(), anyInt()); in testSendMessage_succeedOnePacket() 582 argThat(new CharacteristicMatcher(IN_CHARACTERSTIC)), in testSendMessage_succeedOnePacket() 622 argThat(new CharacteristicMatcher(IN_CHARACTERSTIC)), in testSendMessage_succeedThreePacket() 649 .readCharacteristic(argThat(new CharacteristicMatcher(mOutCharacterstic))); in notifyAndReadOutCharacteristic() 664 .readCharacteristic(argThat(new CharacteristicMatcher(mOutCharacterstic))); in testOutCharactersticNotifyAndRead_readFailed() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbSessionNotificationManagerTest.java | 33 import static org.mockito.ArgumentMatchers.argThat; 418 argThat(p -> (p.getInt("status_code")) == status)); in testOnRangingOpenFailed() 436 argThat(p -> (p.getInt("status_code")) == status)); in testOnRangingStartFailed() 448 argThat(p -> (p.getInt("status_code")) == expectedStatusCode)); in testOnRangingStartFailedWithUciReasonCode() 531 argThat(p-> p.getInt("status_code") == status)); in testOnRangingStopped() 552 argThat(p -> (p.getInt("status_code")) == status)); in testOnRangingStopFailed() 569 argThat(p -> (p.getInt("status_code")) == status)); in testOnRangingReconfigureFailed() 586 argThat(p -> (p.getInt("status_code")) == status)); in testOnControleeAddFailed() 614 argThat(p -> (p.getInt("status_code")) == status)); in testOnControleeRemoveFailed() 624 argThat(p-> p.getInt("status_code") == status)); in testOnRangingClosed() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/ |
D | EapTtlsTest.java | 29 import static org.mockito.Mockito.argThat; 605 argThat(containsData(SERVER_HELLO_BYTES)), in processAndVerifyServerHello_finalFragment() 606 argThat(containsData(DECRYPTED_EAP_IDENTITY_AVP_BYTES))); in processAndVerifyServerHello_finalFragment() 622 argThat(containsData(SERVER_FINISHED_BYTES)), in processAndVerifyServerFinished() 623 argThat(containsData(DECRYPTED_EAP_IDENTITY_AVP_BYTES))); in processAndVerifyServerFinished() 646 .nextBytes(argThat(arr -> arr.length == PEER_CHALLENGE.length)); in processAndVerifyMsChapV2ChallengeRequest() 663 verify(mMockSecureRandom).nextBytes(argThat(arr -> arr.length == PEER_CHALLENGE.length)); in processAndVerifyMsChapV2ChallengeRequest() 766 .unwrap(argThat(containsData(packetData)), any(ByteBuffer.class)); in setupUnwrap() 777 .wrap(argThat(containsData(applicationData)), any(ByteBuffer.class)); in setupWrap()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/ |
D | SettingsStorageServiceTest.java | 21 import static org.mockito.ArgumentMatchers.argThat; 85 verify(mSettingsStorageServiceImplSpy, atLeastOnce()).sendLocalBroadcast(argThat( in testFormatAsPublic_success_fromPrivate() 115 verify(mSettingsStorageServiceImplSpy, atLeastOnce()).sendLocalBroadcast(argThat( in testFormatAsPublic_success_fromNonPrivate() 141 verify(mSettingsStorageServiceImplSpy, atLeastOnce()).sendLocalBroadcast(argThat( in testFormatAsPublic_failure() 173 verify(mSettingsStorageServiceImplSpy, atLeastOnce()).sendLocalBroadcast(argThat( in testFormatAsPrivate_success() 200 verify(mSettingsStorageServiceImplSpy, atLeastOnce()).sendLocalBroadcast(argThat( in testFormatAsPrivate_failure()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/internal/ |
D | SocketNetlinkMonitorTest.kt | 23 import org.mockito.Mockito.argThat 71 argThat { it.address == LINKADDRV4.address }) in testHandleDeprecatedNetlinkMessage() 80 argThat { it.address == LINKADDRV4.address }) in testHandleDeprecatedNetlinkMessage() 90 argThat { it.address == LINKADDRV4.address }) in testHandleDeprecatedNetlinkMessage()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 23 import static org.mockito.ArgumentMatchers.argThat; 446 verify(preferenceGroup).addPreference(argThat(titleMatches("Acct11"))); in onResume_noAccountChange_shouldNotAddAccountPreference() 447 verify(preferenceGroup).addPreference(argThat(titleMatches("Acct12"))); in onResume_noAccountChange_shouldNotAddAccountPreference() 490 verify(preferenceGroup, times(1)).addPreference(argThat(titleMatches("Acct11"))); in onResume_oneNewAccount_shouldAddOneAccountPreference() 491 verify(preferenceGroup, times(1)).addPreference(argThat(titleMatches("Acct12"))); in onResume_oneNewAccount_shouldAddOneAccountPreference() 492 verify(preferenceGroup, times(1)).addPreference(argThat(titleMatches("Acct13"))); in onResume_oneNewAccount_shouldAddOneAccountPreference() 527 verify(preferenceGroup).addPreference(argThat(titleMatches("Acct1"))); in onResume_oneNewAccountType_shouldAddOneAccountPreference() 567 verify(preferenceGroup, times(1)).addPreference(argThat(titleMatches("Acct11"))); in onResume_oneAccountRemoved_shouldRemoveOneAccountPreference() 568 verify(preferenceGroup, times(1)).addPreference(argThat(titleMatches("Acct12"))); in onResume_oneAccountRemoved_shouldRemoveOneAccountPreference() 569 verify(preferenceGroup, times(1)).removePreference(argThat(titleMatches("Acct12"))); in onResume_oneAccountRemoved_shouldRemoveOneAccountPreference() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | HalPropValueMatcher.java | 22 import static org.mockito.ArgumentMatchers.argThat; 40 return argThat(new PropertyIdMatcher(prop)); in isProperty() 47 return argThat(new PropertyIdMatcher(prop, values)); in isPropertyWithValues()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | AsyncBindingTest.kt | 50 import org.mockito.kotlin.argThat in <lambda>() 124 verify(callbacks, times(1)).bindInflatedItems(argThat { t -> t.size == 2 }) in <lambda>() 129 verify(callbacks, times(1)).bindInflatedItems(argThat { t -> t.size == 3 }) in <lambda>() 149 argThat { t -> in <lambda>() 176 verify(callbacks, times(1)).bindInflatedItems(argThat { t -> t.size == 3 }) in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSNetworkRequestStateStatsMetricsTests.kt | 29 import org.mockito.Mockito.argThat in <lambda>() 58 argThat{req -> req.networkCapabilities.equals( in <lambda>() 80 argThat{req -> req.networkCapabilities.equals( in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsAdvertiserTest.kt | 54 import org.mockito.Mockito.argThat 256 verify(cb).onRegisterServiceSucceeded(eq(SERVICE_ID_1), argThat { it.matches(SERVICE_1) }) in testAddService_OneNetwork() 332 argThat { it.matches(ALL_NETWORKS_SERVICE_SUBTYPE) }) in testAddService_AllNetworksWithSubType() 492 argThat { it.matches(SERVICE_1) }, any()) in testAddService_Conflicts() 494 argThat { it.matches(expectedRenamed) }, any()) in testAddService_Conflicts() 496 argThat { it.matches(LONG_SERVICE_1) }, any()) in testAddService_Conflicts() 498 argThat { it.matches(expectedLongRenamed) }, any()) in testAddService_Conflicts() 500 argThat { it.matches(expectedCaseInsensitiveRenamed) }, any()) in testAddService_Conflicts() 505 verify(cb).onRegisterServiceSucceeded(eq(SERVICE_ID_1), argThat { it.matches(SERVICE_1) }) in testAddService_Conflicts() 511 argThat { it.matches(expectedRenamed) }) in testAddService_Conflicts() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiShellCommandTest.java | 37 import static org.mockito.ArgumentMatchers.argThat; 606 verify(mWifiService).addNetworkSuggestions(argThat(sL -> { in testAddSuggestionWithUntrusted() 611 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithUntrusted() 625 verify(mWifiService).removeNetworkSuggestions(argThat(sL -> { in testAddSuggestionWithUntrusted() 641 verify(mWifiService).addNetworkSuggestions(argThat(sL -> { in testAddSuggestionWithOemPaid() 646 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithOemPaid() 660 verify(mWifiService).removeNetworkSuggestions(argThat(sL -> { in testAddSuggestionWithOemPaid() 676 verify(mWifiService).addNetworkSuggestions(argThat(sL -> { in testAddSuggestionWithOemPrivate() 681 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithOemPrivate() 695 verify(mWifiService).removeNetworkSuggestions(argThat(sL -> { in testAddSuggestionWithOemPrivate() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/ |
D | CarEvsServiceUnitTest.java | 48 import static org.mockito.Mockito.argThat; 505 verify(spiedStatusListener).onStatusChanged(argThat( in testTransitionFromInactiveToActive() 541 verify(spiedStatusListener).onStatusChanged(argThat( in testTransitionFromRequestedToActive() 603 verify(spiedStatusListener).onStatusChanged(argThat( in testTransitionFromUnavailableToRequested() 618 verify(spiedStatusListener).onStatusChanged(argThat( in testTransitionFromInactiveToRequested() 635 verify(spiedStatusListener).onStatusChanged(argThat( in testTransitionFromActiveToRequested() 704 verify(spiedStatusListener).onStatusChanged(argThat( in testDuplicatedDisplayEvent() 801 .onNewFrame(argThat(received -> received.getId() == bufferId)); in testStartActivity() 962 .onNewFrame(argThat(received -> received.getId() == bufferId)); in testRequestToStartVideoTwice() 964 .onNewFrame(argThat(received -> received.getId() == anotherBufferId)); in testRequestToStartVideoTwice() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | InstalledAppCounterTest.java | 25 import static org.mockito.ArgumentMatchers.argThat; 131 argThat(isLaunchIntentFor(packageName)), in expectQueryIntentActivities() 219 argThat(isApplicationInfoFlagsEqualTo( in testCountInstalledApps_archivingDisabled() 241 argThat(isApplicationInfoFlagsEqualTo( in testCountInstalledApps_archivingEnabled() 284 argThat(isApplicationInfoFlagsEqualTo(infoFlags1)), in configurePackageManager() 310 argThat(isApplicationInfoFlagsEqualTo(infoFlags2)), eq(MANAGED_PROFILE_ID)) in configurePackageManager()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | RecentsButtonStateProviderTest.java | 23 import static org.mockito.ArgumentMatchers.argThat; 200 .injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in setUpIntents_onLongClick_recentsNotActive_keyEventSent() 230 verify(mInputManager, never()).injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in setUpIntents_onLongClick_configSetToFalse_recentsNotActive_noKeyEventSent() 254 verify(mInputManager, never()).injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in setUpIntents_onLongClick_recentsActive_noKeyEventSent() 287 verify(mInputManager, never()).injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in getButtonClickListener_onClick_recentsNotActive_noKeyEventSent() 299 .injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in getButtonClickListener_onClick_recentsActive_keyEventSent()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiverTest.java | 26 import static org.mockito.ArgumentMatchers.argThat; 163 argThat( in onReceive_withActionAccept_updatesContents() 183 argThat( in onReceive_withActionDecline_updatesContents() 266 argThat( in onReceive_withActionHide_contentUpdate() 285 argThat( in onReceive_withActionCompleteHide_makeAllVisibilityHidden() 304 argThat( in onReceive_withActionHideCompletedInboundTransfer_makesInboundVisibilityHidden() 323 argThat( in onReceive_withActionHideCompletedOutboundTransfer_makesOutboundVisibilityHidden()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/ |
D | MethodStateTest.java | 43 import static org.mockito.ArgumentMatchers.argThat; 175 doReturn(eapSuccess).when(mockEapMethodStateMachine).process(argThat(eapSuccessMatcher)); in testProcessTransitionToSuccessState() 179 verify(mockEapMethodStateMachine).process(argThat(eapSuccessMatcher)); in testProcessTransitionToSuccessState() 195 doReturn(eapFailure).when(mockEapMethodStateMachine).process(argThat(eapSuccessMatcher)); in testProcessTransitionToFailureState() 199 verify(mockEapMethodStateMachine).process(argThat(eapSuccessMatcher)); in testProcessTransitionToFailureState()
|