Home
last modified time | relevance | path

Searched full:verify (Results 1 – 25 of 20655) sorted by relevance

12345678910>>...827

/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/retry/
DResultAggregatorTest.java175 inOrderAgg.verify(mAggListener).setLogSaver(mLogger); in testForwarding()
176 inOrderAgg.verify(mAggListener).invocationStarted(mInvocationContext); in testForwarding()
177 inOrder.verify(mDetailedListener).setLogSaver(mLogger); in testForwarding()
178 inOrder.verify(mDetailedListener).invocationStarted(mInvocationContext); in testForwarding()
179 inOrder.verify(mDetailedListener).logAssociation("before-module-log", beforeModule); in testForwarding()
180 inOrderAgg.verify(mAggListener).testModuleStarted(mModuleContext); in testForwarding()
181 inOrder.verify(mDetailedListener).testModuleStarted(mModuleContext); in testForwarding()
182 inOrder.verify(mDetailedListener) in testForwarding()
185 inOrder.verify(mDetailedListener).testStarted(Mockito.eq(test1), Mockito.anyLong()); in testForwarding()
186 inOrder.verify(mDetailedListener).logAssociation("test1-log", test1Log); in testForwarding()
[all …]
/aosp_15_r20/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
H A DRetriableStreamTest.java40 import static org.mockito.Mockito.verify;
255 inOrder.verify(retriableStreamRecorder).prestart(); in retry_everythingDrained()
256 inOrder.verify(retriableStreamRecorder).newSubstream(0); in retry_everythingDrained()
258 inOrder.verify(mockStream1).setAuthority(AUTHORITY); in retry_everythingDrained()
259 inOrder.verify(mockStream1).setCompressor(COMPRESSOR); in retry_everythingDrained()
260 inOrder.verify(mockStream1).setDecompressorRegistry(DECOMPRESSOR_REGISTRY); in retry_everythingDrained()
261 inOrder.verify(mockStream1).setFullStreamDecompression(false); in retry_everythingDrained()
262 inOrder.verify(mockStream1).setFullStreamDecompression(true); in retry_everythingDrained()
263 inOrder.verify(mockStream1).setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE); in retry_everythingDrained()
264 inOrder.verify(mockStream1).setMessageCompression(true); in retry_everythingDrained()
[all …]
/aosp_15_r20/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DCardEmulationManagerTest.java37 import static org.mockito.Mockito.verify;
191 verify(mRoutingOptionManager).getOffHostRouteEse(); in assertConstructorMethodCalls()
192 verify(mRoutingOptionManager).getOffHostRouteUicc(); in assertConstructorMethodCalls()
193 verify(mRegisteredServicesCache).initialize(); in assertConstructorMethodCalls()
194 verify(mRegisteredNfcFServicesCache).initialize(); in assertConstructorMethodCalls()
195 verify(mWalletRoleObserver).isWalletRoleFeatureEnabled(); in assertConstructorMethodCalls()
196 verify(mWalletRoleObserver).getDefaultWalletRoleHolder(eq(USER_ID)); in assertConstructorMethodCalls()
197 verify(mPreferredServices) in assertConstructorMethodCalls()
199 verify(mRegisteredAidCache) in assertConstructorMethodCalls()
213 verify(mHostEmulationManager).onPollingLoopDetected(mPollingLoopFrameCaptor.capture()); in testPollingLoopDetected()
[all …]
/aosp_15_r20/cts/tests/tests/renderscript/src/android/renderscript/cts/
H A DGetSetTest.java144 private void verify(byte[] a1, byte[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
158 private void verify(short[] a1, short[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
172 private void verify(int[] a1, int[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
186 private void verify(long[] a1, long[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
200 private void verify(float[] a1, float[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
214 private void verify(double[] a1, double[] a2, Allocation alloc, String s, int vsize) { in verify() method in GetSetTest
298 verify(tmp, tmp2, out1DAlloc, "Data mismatch char: ", 1); in testGetSet_char()
300 verify(tmp, tmp2, out1DAlloc, "Data mismatch relaxed char: ", 1); in testGetSet_char()
303 verify(tmp, tmp2, out2DAlloc, "Data mismatch char: ", 1); in testGetSet_char()
305 verify(tmp, tmp2, out2DAlloc, "Data mismatch relaxed char: ", 1); in testGetSet_char()
[all …]
/aosp_15_r20/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/
H A DExpirationHandlerTest.java23 import static org.mockito.Mockito.verify;
275 verify(mockFileGroupsMetadata, times(3)).getAllFreshGroups(); in updateExpiration_noGroups()
276 verify(mockFileGroupsMetadata, times(2)).getAllStaleGroups(); in updateExpiration_noGroups()
277 verify(mockFileGroupsMetadata).removeAllGroupsWithKeys(ImmutableList.of()); in updateExpiration_noGroups()
278 verify(mockFileGroupsMetadata).removeAllStaleGroups(); in updateExpiration_noGroups()
279 verify(mockFileGroupsMetadata).writeStaleGroups(ImmutableList.of()); in updateExpiration_noGroups()
281 verify(mockSharedFilesMetadata).getAllFileKeys(); in updateExpiration_noGroups()
282 verify(mockBackend).exists(baseDownloadDirectoryUri); in updateExpiration_noGroups()
283 verify(mockBackend).children(baseDownloadDirectoryUri); in updateExpiration_noGroups()
284 verify(mockBackend, never()).deleteFile(any()); in updateExpiration_noGroups()
[all …]
/aosp_15_r20/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesAppsearchDeleteJobTest.java37 import static org.mockito.Mockito.verify;
195 verify(jobScheduler).cancel(0); in onCancelJob_shouldNotReschedule()
196 verify(mAdServicesAppsearchDeleteJob).setReschedule(any(), eq(false)); in onCancelJob_shouldNotReschedule()
214 verify(mAdservicesPhFlags).isAppsearchDeleteJobEnabled(); in schedulePeriodic_onDisabledFlag_shouldNotSchedule()
215 verify(jobScheduler, never()).schedule(any()); in schedulePeriodic_onDisabledFlag_shouldNotSchedule()
234 verify(mAdservicesPhFlags).isAppsearchDeleteJobEnabled(); in schedulePeriodic_onExistingJob_shouldNotSchedule()
235 verify(jobScheduler).getPendingJob(anyInt()); in schedulePeriodic_onExistingJob_shouldNotSchedule()
236 verify(jobScheduler, never()).schedule(any()); in schedulePeriodic_onExistingJob_shouldNotSchedule()
260 verify(jobScheduler) in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule()
262 verify(mAdservicesPhFlags) in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule()
[all …]
/aosp_15_r20/packages/services/Telephony/tests/src/com/android/phone/
DImsStateCallbackControllerTest.java42 import static org.mockito.Mockito.verify;
205 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelRegisterThenUnregisterCallback()
221 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelConnectionUnavailable()
226 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_NOT_READY); in testMmTelConnectionUnavailable()
231 verify(mCallback0, times(1)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testMmTelConnectionUnavailable()
247 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelConnectionReady()
248 verify(mCallback0, times(0)).onAvailable(); in testMmTelConnectionReady()
252 verify(mCallback0, atLeastOnce()).onAvailable(); in testMmTelConnectionReady()
268 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelIgnoreDuplicatedConsecutiveReason()
273 verify(mCallback0, times(1)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testMmTelIgnoreDuplicatedConsecutiveReason()
[all …]
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java54 import static org.mockito.Mockito.verify;
313 verify(mWifiDeviceStateChangeManager, atLeastOnce()).registerStateChangeCallback( in setUp()
318 verify(mWifiInjector).makeNetworkRequestStoreData(dataSourceArgumentCaptor.capture()); in setUp()
323 verify(mActiveModeWarden).registerModeChangeCallback( in setUp()
331 verify(mConnectivityManager).registerNetworkProvider( in setUp()
374 verify(mWifiConnectivityManager).setTrustedConnectionAllowed(true); in testHandleNetworkRequestWithNoSpecifier()
393 verify(mWifiConnectivityManager).setTrustedConnectionAllowed(true); in testHandleNetworkReleaseWithNoSpecifier()
397 verify(mWifiConnectivityManager).setTrustedConnectionAllowed(false); in testHandleNetworkReleaseWithNoSpecifier()
422 verify(mConnectivityManager, never()).declareNetworkRequestUnfulfillable(any()); in testHandleAcceptNetworkRequestFromWithUnsupportedSpecifier()
441 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(any()); in testHandleAcceptNetworkRequestWithBand()
[all …]
DDppManagerTest.java68 import static org.mockito.Mockito.verify;
212 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
215 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
216 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
217 verify(mDppMetrics).updateDppConfiguratorInitiatorRequests(); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
218 verify(mDppMetrics).updateDppFailure(eq(EasyConnectStatusCallback in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
225 * Verify that the startDppAsConfiguratorInitiator fails if the network profile
243 verify(mDppCallback).onFailure(eq(EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK), eq(null), in testStartDppAsConfiguratorInitiatorWithoutConfigurableProfile()
266 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorFailAddPeer()
269 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorFailAddPeer()
[all …]
DConcreteClientModeManagerTest.java282 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInScanOnlyModeAndVerifyEnabled()
284 verify(mWifiNative).setWifiNativeInterfaceEventCallback( in startClientInScanOnlyModeAndVerifyEnabled()
286 verify(mWifiInjector, never()).makeClientModeImpl(any(), any(), anyBoolean()); in startClientInScanOnlyModeAndVerifyEnabled()
293 verify(mContext).getSystemService(eq(ConnectivityManager.class)); in startClientInScanOnlyModeAndVerifyEnabled()
294 verify(mContext).getResources(); in startClientInScanOnlyModeAndVerifyEnabled()
298 verify(mListener).onStarted(mClientModeManager); in startClientInScanOnlyModeAndVerifyEnabled()
299 verify(mWifiNative).setScanMode(TEST_INTERFACE_NAME, true); in startClientInScanOnlyModeAndVerifyEnabled()
310 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInConnectModeAndVerifyEnabled()
312 verify(mWifiNative).setWifiNativeInterfaceEventCallback( in startClientInConnectModeAndVerifyEnabled()
314 verify(mWifiNative).switchClientInterfaceToConnectivityMode( in startClientInConnectModeAndVerifyEnabled()
[all …]
DOpenNetworkNotifierTest.java35 import static org.mockito.Mockito.verify;
134 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp()
138 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp()
157 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onCreate_setWifiNetworksAvailableNotificationSettingState()
170 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
181 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_hasOpenNetworks_notificationDisplayed()
183 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_hasOpenNetworks_notificationDisplayed()
185 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed()
195 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed()
208 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed()
[all …]
DWifiNativeInterfaceManagementTest.java40 import static org.mockito.Mockito.verify;
270 mInOrder.verify(mWifiVendorHal).initialize(any()); in setUp()
271 mInOrder.verify(mWificondControl).setOnServiceDeadCallback( in setUp()
273 mInOrder.verify(mWificondControl).tearDownInterfaces(); in setUp()
274 mInOrder.verify(mWifiVendorHal).registerRadioModeChangeHandler(any()); in setUp()
320 verify(mSupplicantStaIfaceHal).isAidlService(); in testSetupClientInterfaceWithQosPolicyFeatureEnabled()
321 verify(mSupplicantStaIfaceHal) in testSetupClientInterfaceWithQosPolicyFeatureEnabled()
531 // Verify STA removal in testTeardownAllInterfaces()
532 verify(mWifiMonitor).stopMonitoring(IFACE_NAME_1); in testTeardownAllInterfaces()
533 verify(mNetdWrapper).unregisterObserver(mNetworkObserverCaptor1.getValue()); in testTeardownAllInterfaces()
[all …]
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java62 import static org.mockito.Mockito.verify;
1162 verify(mTetheringManager).registerTetheringEventCallback(any(Executor.class), in forceP2pEnabled()
1167 verify(mContext).sendBroadcastWithMultiplePermissions(any(), in forceP2pEnabled()
1172 verify(mContext).sendBroadcastWithMultiplePermissions( in forceP2pEnabled()
1175 verify(mContext, never()).sendBroadcastWithMultiplePermissions( in forceP2pEnabled()
1179 verify(mContext, atLeastOnce()).sendBroadcast( in forceP2pEnabled()
1182 verify(mBroadcastOptions, atLeastOnce()) in forceP2pEnabled()
1184 verify(mBroadcastOptions, atLeastOnce()) in forceP2pEnabled()
1219 verify(mWifiNative).setupInterface(any(), any(), eq(expectedRequestorWs)); in checkIsP2pInitWhenClientConnected()
1220 verify(mNetdWrapper).setInterfaceUp(anyString()); in checkIsP2pInitWhenClientConnected()
[all …]
/aosp_15_r20/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/
H A DWatcherTest.java140 // Basic test. Create a leaf and verify that changes to the leaf get notified to in testBasicBehavior()
143 tester.verify(0, "Initial leaf - no registration"); in testBasicBehavior()
145 tester.verify(0, "Updates with no registration"); in testBasicBehavior()
148 tester.verify(1, "Updates with registration"); in testBasicBehavior()
151 tester.verify(3, "Updates with registration"); in testBasicBehavior()
152 // Create a snapshot. Verify that the snapshot matches the in testBasicBehavior()
157 tester.verify(4, "Tick after snapshot"); in testBasicBehavior()
160 // Add the same leaf to more than one tester. Verify that a change to the leaf is seen by in testBasicBehavior()
165 buddy1.verify(0, "Initial leaf - no registration"); in testBasicBehavior()
166 buddy2.verify(0, "Initial leaf - no registration"); in testBasicBehavior()
[all …]
/aosp_15_r20/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java89 import static org.mockito.Mockito.verify;
320 verify(mWifiService).getVerboseLoggingLevel(); in setUp()
371 verify(mWifiService).setCoexUnsafeChannels(unsafeChannels, restrictions); in testSetCoexUnsafeChannelsGoesToWifiServiceImpl()
375 * Verify an IllegalArgumentException if passed a null value for unsafeChannels.
388 * Verify an IllegalArgumentException is thrown if callback is not provided.
397 * Verify an IllegalArgumentException is thrown if executor is not provided.
406 * Verify client provided callback is being called to the right callback.
414 verify(mWifiService).registerCoexCallback(callbackCaptor.capture()); in testAddCoexCallbackAndReceiveEvent()
416 verify(mRunnable).run(); in testAddCoexCallbackAndReceiveEvent()
420 * Verify client provided callback is being called to the right executor.
[all …]
/aosp_15_r20/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
H A DAppStateTrackerTest.java36 import static org.mockito.Mockito.verify;
272 verify(mMockIActivityManager).registerUidObserver( in callStart()
279 verify(mMockIAppOpsService).startWatchingMode( in callStart()
283 verify(mMockPowerManagerInternal).registerLowPowerModeObserver( in callStart()
287 verify(mMockContext, times(2)).registerReceiver( in callStart()
289 verify(mMockAppStandbyInternal).addListener( in callStart()
1038 verify(l, times(0)).updateAllJobs(); in assertNoCallbacks()
1039 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in assertNoCallbacks()
1040 verify(l, times(0)).updateJobsForUidPackage(anyInt(), anyString(), anyBoolean()); in assertNoCallbacks()
1042 verify(l, times(0)).unblockAllUnrestrictedAlarms(); in assertNoCallbacks()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerTest.java88 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
445 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(CONSENT_KEY_FOR_ALL); in testConsentIsGivenAfterEnabling_AppSearchOnly()
464 verify(spyConsentManager, times(0)).setConsentToPpApi(isGiven); in testConsentManager_LazyEnable()
481 verify(spyConsentManager).setConsentToPpApi(isGiven); in testConsentManager_LazyDisabled()
499 verify( in testConsentManagerPreApi_LazyEnable()
506 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable()
523 verify( in testConsentManagerPreApi_LazyDisabled()
529 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled()
534 verify(spyConsentManager, times(wantedNumOfInvocations)).resetTopicsAndBlockedTopics(); in verifyResetApiCalled()
535 verify(spyConsentManager, times(wantedNumOfInvocations)).resetAppsAndBlockedApps(); in verifyResetApiCalled()
[all …]
DConsentManagerV2Test.java79 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
431 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsGivenAfterEnabling_AppSearchOnly()
449 verify(spyConsentManager, times(0)).setConsentToSourceOfTruth(isGiven); in testConsentManager_LazyEnable()
466 verify(spyConsentManager).setConsentToSourceOfTruth(isGiven); in testConsentManager_LazyDisabled()
485 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable()
503 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled()
508 verify(spyConsentManager, times(wantedNumOfInvocations)).resetTopicsAndBlockedTopics(); in verifyResetApiCalled()
509 verify(spyConsentManager, times(wantedNumOfInvocations)).resetAppsAndBlockedApps(); in verifyResetApiCalled()
510 verify(spyConsentManager, times(wantedNumOfInvocations)).resetMeasurement(); in verifyResetApiCalled()
587 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsRevokedAfterDisabling_AppSearchOnly()
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/bundle-logging-bridge/src/test/java/software/amazon/awssdk/thirdparty/org/slf4j/impl/internal/
H A DLoggerAdapterTest.java20 import static org.mockito.Mockito.verify;
47 verify(mockLogger).getName(); in getName_delegatesCall()
54 verify(mockLogger).isTraceEnabled(); in isTraceEnabled_delegatesCall()
58 verify(mockLogger).isTraceEnabled(markerAdapter.getUnshaded()); in isTraceEnabled_delegatesCall()
65 verify(mockLogger).isDebugEnabled(); in isDebugEnabled_delegatesCall()
69 verify(mockLogger).isDebugEnabled(markerAdapter.getUnshaded()); in isDebugEnabled_delegatesCall()
77 verify(mockLogger).isInfoEnabled(); in isInfoEnabled_delegatesCall()
81 verify(mockLogger).isInfoEnabled(markerAdapter.getUnshaded()); in isInfoEnabled_delegatesCall()
88 verify(mockLogger).isWarnEnabled(); in isWarnEnabled_delegatesCall()
92 verify(mockLogger).isWarnEnabled(markerAdapter.getUnshaded()); in isWarnEnabled_delegatesCall()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/customaudience/
DCustomAudienceServiceImplTest.java52 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
223 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally()
229 verify(mCustomAudienceImplMock) in testJoinCustomAudience_runNormally()
234 verify(() -> BackgroundFetchJob.schedule(mFlagsWithAllCheckEnabled)); in testJoinCustomAudience_runNormally()
235 verify(mICustomAudienceCallbackMock).onSuccess(); in testJoinCustomAudience_runNormally()
236 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally()
241 verify(mAppImportanceFilterMock) in testJoinCustomAudience_runNormally()
244 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally()
251 verify(mConsentManagerMock).isFledgeConsentRevokedForAppAfterSettingFledgeUse(any()); in testJoinCustomAudience_runNormally()
252 verify(mFledgeAllowListsFilterMock) in testJoinCustomAudience_runNormally()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java33 import static org.mockito.Mockito.verify;
224 verify(mA2dpService).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActive()
233 verify(mA2dpService, never()).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
237 verify(mA2dpService).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
238 verify(mHeadsetService).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
248 verify(mA2dpService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldBeCalled()
249 verify(mHeadsetService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldBeCalled()
257 verify(mA2dpService).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setSecondA2dpActive()
261 verify(mA2dpService).setActiveDevice(mSecondaryAudioDevice); in secondA2dpConnected_setSecondA2dpActive()
269 verify(mA2dpService).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/
DUxEngineTest.java34 import static org.mockito.Mockito.verify;
154 verify(mUxStatesManager).persistAdServicesStates(adServicesStates); in startTest_uxDisabled()
157 verify(mUxStatesManager).getFlag(KEY_ADSERVICES_ENABLED); in startTest_uxDisabled()
158 verify(mConsentManager, never()).isEntryPointEnabled(); in startTest_uxDisabled()
161 verify(mConsentManager, never()).setUx(UNSUPPORTED_UX); in startTest_uxDisabled()
162 verify(mConsentManager, never()).setEnrollmentChannel(UNSUPPORTED_UX, null); in startTest_uxDisabled()
164 ExtendedMockito.verify( in startTest_uxDisabled()
190 verify(mUxStatesManager).persistAdServicesStates(adServicesStates); in startTest_entryPointDisabled()
193 verify(mUxStatesManager).getFlag(KEY_ADSERVICES_ENABLED); in startTest_entryPointDisabled()
194 verify(mConsentManager).isEntryPointEnabled(); in startTest_entryPointDisabled()
[all …]
/aosp_15_r20/platform_testing/host_runners/utils/tests/src/com/android/runner/utils/
H A DInstrumentationResultProtoParserTest.java21 import static org.mockito.Mockito.verify;
176 inOrder.verify(mMockListener).testRunStarted(RUN_KEY, 0); in testNullProtoFile()
177 inOrder.verify(mMockListener) in testNullProtoFile()
179 inOrder.verify(mMockListener).testRunEnded(0, Collections.emptyMap()); in testNullProtoFile()
181 verify(mMockListener).testRunStarted(RUN_KEY, 0); in testNullProtoFile()
182 verify(mMockListener) in testNullProtoFile()
184 verify(mMockListener).testRunEnded(0, Collections.emptyMap()); in testNullProtoFile()
199 inOrder.verify(mMockListener).testRunStarted(RUN_KEY, 0); in testEmptyProtoFile()
200 inOrder.verify(mMockListener) in testEmptyProtoFile()
202 inOrder.verify(mMockListener).testRunEnded(0, Collections.emptyMap()); in testEmptyProtoFile()
[all …]
/aosp_15_r20/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java31 import static org.mockito.Mockito.verify;
208 verify(mMockContext).bindServiceAsUser(intentCaptor.capture(), any(), eq(expectedFlags), in testBindService()
216 * Verify that if bind is called multiple times, we only call bindService once.
231 verify(mMockContext, times(1)).bindServiceAsUser(any(), any(), anyInt(), any()); in testBindFailureWhenBound()
251 verify(mMockServiceControllerBinder).createMmTelFeature(SLOT_0, SUB_2); in testBindServiceAndConnected()
252 verify(mMockServiceControllerBinder).addFeatureStatusCallback(eq(SLOT_0), in testBindServiceAndConnected()
254 verify(mMockServiceControllerBinder).createRcsFeature(SLOT_0, SUB_2); in testBindServiceAndConnected()
255 verify(mMockServiceControllerBinder).addFeatureStatusCallback(eq(SLOT_0), in testBindServiceAndConnected()
257 verify(mMockCallbacks).imsServiceFeatureCreated(eq(SLOT_0), eq(SUB_2), in testBindServiceAndConnected()
259 verify(mMockCallbacks).imsServiceFeatureCreated(eq(SLOT_0), eq(SUB_2), in testBindServiceAndConnected()
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceSetupTest.java27 import static org.mockito.Mockito.verify;
109 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup()
132 verify(mMockDevice).setSetting("global", "airplane_mode_on", "1"); in testSetup_airplane_mode_on()
133 verify(mMockDevice) in testSetup_airplane_mode_on()
136 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_airplane_mode_on()
147 verify(mMockDevice).setSetting("global", "airplane_mode_on", "0"); in testSetup_airplane_mode_off()
148 verify(mMockDevice) in testSetup_airplane_mode_off()
151 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_airplane_mode_off()
162 verify(mMockDevice).setSetting("global", "mobile_data", "1"); in testSetup_data_on()
163 verify(mMockDevice).executeShellCommand("svc data enable"); in testSetup_data_on()
[all …]

12345678910>>...827