Home
last modified time | relevance | path

Searched refs:verify (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java19 import static org.mockito.Mockito.verify;
46 verify(mCallbacks).disable(eq(0), eq(0), eq(false)); in setup()
60 verify(mCallbacks).setIcon(eq(slot), eq(icon)); in testIcon()
64 verify(mCallbacks).removeIcon(eq(slot)); in testIcon()
73 verify(mCallbacks).disable(eq(state1), eq(state2), eq(true)); in testDisable()
80 verify(mCallbacks).animateExpandNotificationsPanel(); in testExpandNotifications()
87 verify(mCallbacks).animateCollapsePanels(eq(0)); in testCollapsePanels()
95 verify(mCallbacks).animateExpandSettingsPanel(eq(panel)); in testExpandSettings()
103 verify(mCallbacks).setSystemUiVisibility(eq(1), eq(2), eq(3), eq(4), eq(null), eq(r)); in testSetSystemUiVisibility()
110 verify(mCallbacks).topAppWindowChanged(eq(true)); in testTopAppWindowChanged()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java28 import static org.mockito.Mockito.verify;
110 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
129 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound()
146 verify(binder).linkToDeath(any(), anyInt()); in testBindServiceAndConnected()
147 verify(mMockServiceControllerBinder).createImsFeature(eq(1), eq(1)); in testBindServiceAndConnected()
148 verify(mMockServiceControllerBinder).createImsFeature(eq(1), eq(2)); in testBindServiceAndConnected()
149 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(1), in testBindServiceAndConnected()
151 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(2), in testBindServiceAndConnected()
153 verify(mMockProxyCallbacks).imsFeatureCreated(eq(1), eq(1)); in testBindServiceAndConnected()
154 verify(mMockProxyCallbacks).imsFeatureCreated(eq(1), eq(2)); in testBindServiceAndConnected()
[all …]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
DBatchingListUpdateCallbackTest.java19 import static org.mockito.Mockito.verify;
45 verify(mCallback).onInserted(3, 2); in addSimple()
54 verify(mCallback).onInserted(3, 3); in addToSamePos()
63 verify(mCallback).onInserted(3, 6); in addInsidePrevious()
72 verify(mCallback).onInserted(3, 5); in addBefore()
73 verify(mCallback).onInserted(2, 1); in addBefore()
81 verify(mCallback).onRemoved(3, 2); in removeSimple()
90 verify(mCallback).onRemoved(3, 3); in removeSamePosition()
99 verify(mCallback).onRemoved(3, 5); in removeInside()
100 verify(mCallback).onRemoved(4, 2); in removeInside()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DTetherInterfaceStateMachineTest.java23 import static org.mockito.Mockito.verify;
106 verify(mTetherHelper).notifyInterfaceStateChange( in startsOutAvailable()
136 verify(mTetherHelper).notifyInterfaceStateChange( in handlesImmediateInterfaceDown()
147 inOrder.verify(mNMService).tetherInterface(IFACE_NAME); in canBeTethered()
148 inOrder.verify(mTetherHelper).notifyInterfaceStateChange( in canBeTethered()
159 inOrder.verify(mNMService).untetherInterface(IFACE_NAME); in canUnrequestTethering()
160 inOrder.verify(mTetherHelper).notifyInterfaceStateChange( in canUnrequestTethering()
171 inOrder.verify(mNMService).getInterfaceConfig(IFACE_NAME); in canBeTetheredAsUsb()
172 inOrder.verify(mNMService).setInterfaceConfig(IFACE_NAME, mInterfaceConfiguration); in canBeTetheredAsUsb()
173 inOrder.verify(mNMService).tetherInterface(IFACE_NAME); in canBeTetheredAsUsb()
[all …]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DGroupHelperTest.java23 import static org.mockito.Mockito.verify;
82 verify(mCallback, never()).addAutoGroupSummary( in testNoGroup_postingUnderLimit()
84 verify(mCallback, never()).addAutoGroup(anyString()); in testNoGroup_postingUnderLimit()
85 verify(mCallback, never()).removeAutoGroup(anyString()); in testNoGroup_postingUnderLimit()
86 verify(mCallback, never()).removeAutoGroupSummary(anyInt(), anyString()); in testNoGroup_postingUnderLimit()
98 verify(mCallback, never()).addAutoGroupSummary( in testNoGroup_multiPackage()
100 verify(mCallback, never()).addAutoGroup(anyString()); in testNoGroup_multiPackage()
101 verify(mCallback, never()).removeAutoGroup(anyString()); in testNoGroup_multiPackage()
102 verify(mCallback, never()).removeAutoGroupSummary(anyInt(), anyString()); in testNoGroup_multiPackage()
113 verify(mCallback, never()).addAutoGroupSummary(anyInt(), eq(pkg), anyString()); in testNoGroup_multiUser()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DCallbackTest.java24 import static org.mockito.Mockito.verify;
81 verify(mObj, times(1)).onClick(); in testRegularClick()
82 verify(mObj, never()).onClick(any(View.class)); in testRegularClick()
83 verify(mObj, never()).onClickWithParam(any(NotBindableVo.class)); in testRegularClick()
84 verify(mObj, never()).onClickWithParam(any(View.class), any(NotBindableVo.class)); in testRegularClick()
95 verify(mObj, never()).onClick(); in testClickWithCallbackArg()
96 verify(mObj, times(1)).onClick(mBinding.view2); in testClickWithCallbackArg()
97 verify(mObj, never()).onClickWithParam(any(NotBindableVo.class)); in testClickWithCallbackArg()
98 verify(mObj, never()).onClickWithParam(any(View.class), any(NotBindableVo.class)); in testClickWithCallbackArg()
109 verify(mObj, never()).onClick(); in testClickWithAnotherVariableAsArg()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDefaultPhoneNotifierTest.java30 import static org.mockito.Mockito.verify;
81 verify(mTelephonyRegisteryMock).notifyCallForwardingChangedForSubscriber(eq(0), eq(false)); in testNotifyCallForwarding()
86 verify(mTelephonyRegisteryMock).notifyCallForwardingChangedForSubscriber(eq(1), eq(true)); in testNotifyCallForwarding()
94 verify(mTelephonyRegisteryMock).notifyDataActivityForSubscriber(eq(0), in testNotifyDataActivity()
100 verify(mTelephonyRegisteryMock).notifyDataActivityForSubscriber(eq(1), in testNotifyDataActivity()
113 verify(mTelephonyRegisteryMock).notifySignalStrengthForPhoneId(eq(0), eq(0), in testNotifySignalStrength()
120 verify(mTelephonyRegisteryMock).notifySignalStrengthForPhoneId(eq(2), eq(1), in testNotifySignalStrength()
134 verify(mTelephonyRegisteryMock).notifyCellInfoForSubscriber(eq(0), in testNotifyCellInfo()
143 verify(mTelephonyRegisteryMock).notifyMessageWaitingChangedForPhoneId(1, 0, false); in testNotifyMessageWaiting()
147 verify(mTelephonyRegisteryMock).notifyMessageWaitingChangedForPhoneId(2, 0, false); in testNotifyMessageWaiting()
[all …]
DSubscriptionInfoUpdaterTest.java28 import static org.mockito.Mockito.verify;
151 verify(mSubscriptionContent).put(eq(SubscriptionManager.SIM_SLOT_INDEX), in testSimAbsent()
156 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimAbsent()
158 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent()
172 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown()
175 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimUnknown()
177 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimUnknown()
190 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimError()
193 verify(mConfigManager).updateConfigForPhoneId(eq(0), in testSimError()
195 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimError()
[all …]
DCallManagerTest.java44 import static org.mockito.Mockito.verify;
148 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture()); in testBasicDial()
157 verify(mPhone, times(1)).acceptCall(anyInt()); in testBasicAcceptCall()
164 verify(mPhone, times(1)).rejectCall(); in testBasicRejectCall()
170 verify(mPhone, times(0)).sendDtmf(eq('a')); in testSendDtmf()
176 verify(mPhone, times(1)).sendDtmf(eq('a')); in testSendDtmf()
183 verify(mPhone, times(0)).startDtmf(anyChar()); in testStartDtmf()
189 verify(mPhone, times(1)).startDtmf('a'); in testStartDtmf()
196 verify(mPhone, times(0)).stopDtmf(); in testStopDtmf()
202 verify(mPhone, times(1)).stopDtmf(); in testStopDtmf()
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DGuidedStepSupportFragmentTest.java28 import static org.mockito.Mockito.verify;
86 verify(first, times(1)).onCreate(any(Bundle.class)); in nextAndBack()
87 verify(first, times(1)).onCreateGuidance(any(Bundle.class)); in nextAndBack()
88 verify(first, times(1)).onCreateActions(any(List.class), any(Bundle.class)); in nextAndBack()
89 verify(first, times(1)).onCreateButtonActions(any(List.class), any(Bundle.class)); in nextAndBack()
90 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack()
92 verify(first, times(1)).onViewStateRestored(any(Bundle.class)); in nextAndBack()
93 verify(first, times(1)).onStart(); in nextAndBack()
94 verify(first, times(1)).onResume(); in nextAndBack()
97 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
[all …]
DGuidedStepFragmentTest.java25 import static org.mockito.Mockito.verify;
83 verify(first, times(1)).onCreate(any(Bundle.class)); in nextAndBack()
84 verify(first, times(1)).onCreateGuidance(any(Bundle.class)); in nextAndBack()
85 verify(first, times(1)).onCreateActions(any(List.class), any(Bundle.class)); in nextAndBack()
86 verify(first, times(1)).onCreateButtonActions(any(List.class), any(Bundle.class)); in nextAndBack()
87 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack()
89 verify(first, times(1)).onViewStateRestored(any(Bundle.class)); in nextAndBack()
90 verify(first, times(1)).onStart(); in nextAndBack()
91 verify(first, times(1)).onResume(); in nextAndBack()
94 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiVendorHalTest.java184 verify(mHalDeviceManager).registerStatusListener(hdmCallbackCaptor.capture(), any()); in setUp()
198 verify(mHalDeviceManager).start(); in testStartHalSuccessInStaMode()
199 verify(mHalDeviceManager).createStaIface(eq(null), eq(null)); in testStartHalSuccessInStaMode()
200 verify(mHalDeviceManager).getChip(eq(mIWifiStaIface)); in testStartHalSuccessInStaMode()
201 verify(mHalDeviceManager).createRttController(eq(mIWifiStaIface)); in testStartHalSuccessInStaMode()
202 verify(mHalDeviceManager).isReady(); in testStartHalSuccessInStaMode()
203 verify(mHalDeviceManager).isStarted(); in testStartHalSuccessInStaMode()
204 verify(mIWifiStaIface).registerEventCallback(any(IWifiStaIfaceEventCallback.class)); in testStartHalSuccessInStaMode()
205 verify(mIWifiChip).registerEventCallback(any(IWifiChipEventCallback.class)); in testStartHalSuccessInStaMode()
207 verify(mHalDeviceManager, never()).createApIface(eq(null), eq(null)); in testStartHalSuccessInStaMode()
[all …]
DWifiDiagnosticsTest.java30 import static org.mockito.Mockito.verify;
124 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandler()
138 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed()
143 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed()
154 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingDoesNotRegisterLogEventHandlerIfPriorAttemptSucceeded()
158 verify(mWifiNative, never()).setLoggingEventHandler(anyObject()); in startLoggingDoesNotRegisterLogEventHandlerIfPriorAttemptSucceeded()
173 verify(mWifiNative).startLoggingRingBuffer( in startLoggingStopsAndRestartsRingBufferLogging()
176 verify(mWifiNative).startLoggingRingBuffer( in startLoggingStopsAndRestartsRingBufferLogging()
185 verify(mWifiNative, never()).startLoggingRingBuffer( in startLoggingDoesNotStartRingBuffersOnUserBuilds()
199 verify(mWifiNative).resetLogHandler(); in stopLoggingResetsLogHandlerIfHandlerWasRegistered()
[all …]
DSupplicantStaIfaceHalTest.java33 import static org.mockito.Mockito.verify;
472 verify(mISupplicantStaIfaceMock).removeNetwork(SUPPLICANT_NETWORK_ID); in testConnectToNetworkWithDifferentConfigReplacesNetworkInSupplicant()
473 verify(mISupplicantStaIfaceMock) in testConnectToNetworkWithDifferentConfigReplacesNetworkInSupplicant()
486 verify(mISupplicantStaIfaceMock, never()).removeNetwork(anyInt()); in connectToNetworkWithSameNetworkDoesNotRemoveNetworkFromSupplicant()
487 verify(mISupplicantStaIfaceMock, never()) in connectToNetworkWithSameNetworkDoesNotRemoveNetworkFromSupplicant()
523 verify(mISupplicantStaIfaceMock, times(2)).removeNetwork(anyInt()); in testConnectFailureDueToNetworkSaveFailure()
541 verify(mISupplicantStaIfaceMock, times(2)).removeNetwork(anyInt()); in testConnectFailureDueToNetworkSaveException()
612 verify(mISupplicantStaIfaceMock, times(NETWORK_ID_TO_SSID.size())).removeNetwork(anyInt()); in testRemoveAllNetworks()
628 verify(mSupplicantStaNetworkMock).setBssid(eq(testBssid)); in testRemoveAllNetworksWhileConnected()
634 verify(mSupplicantStaNetworkMock, never()).setBssid(eq(testBssid)); in testRemoveAllNetworksWhileConnected()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java33 import static org.mockito.Mockito.verify;
156 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testAwareDataPathInterfaceUpDown()
159 inOrder.verify(mMockAwareDataPathStatemanager).createAllInterfaces(); in testAwareDataPathInterfaceUpDown()
165 inOrder.verify(mMockAwareDataPathStatemanager).onAwareDownCleanupDataPaths(); in testAwareDataPathInterfaceUpDown()
166 inOrder.verify(mMockNative).disable((short) 0); in testAwareDataPathInterfaceUpDown()
168 inOrder.verify(mMockAwareDataPathStatemanager).deleteAllInterfaces(); in testAwareDataPathInterfaceUpDown()
194 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testDisableUsageDisablesApis()
203 inOrder.verify(mMockNative).disable((short) 0); in testDisableUsageDisablesApis()
235 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testDisableUsageFlow()
244 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), in testDisableUsageFlow()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java35 import static org.mockito.Mockito.verify;
223 verify(mNMService, times(1)).getInterfaceConfig(mTestIfname); in verifyInterfaceServingModeStarted()
224 verify(mNMService, times(1)) in verifyInterfaceServingModeStarted()
226 verify(mNMService, times(1)).tetherInterface(mTestIfname); in verifyInterfaceServingModeStarted()
255 verify(mConnectivityManager, atLeastOnce()).isTetheringSupported(); in failingLocalOnlyHotspotLegacyApBroadcast()
288 verify(mNMService, times(1)).setIpForwardingEnabled(true); in workingLocalOnlyHotspotEnrichedApBroadcast()
289 verify(mNMService, times(1)).startTethering(any(String[].class)); in workingLocalOnlyHotspotEnrichedApBroadcast()
291 verify(mWifiManager).updateInterfaceIpState( in workingLocalOnlyHotspotEnrichedApBroadcast()
297 verify(mConnectivityManager, times(1)).registerNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast()
299 verify(mConnectivityManager, times(1)).registerDefaultNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java34 import static org.mockito.Mockito.verify;
159 verify(mImsCT).rejectCall(); in testHandleInCallMmiCommandCallDeflection()
165 verify(mImsCT).hangup(mBackgroundCall); in testHandleInCallMmiCommandCallDeflection()
179 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallWaiting()
186 verify(mImsCT).hangup(any(ImsPhoneCall.class)); in testHandleInCallMmiCommandCallWaiting()
192 verify(mImsCT).switchWaitingOrHoldingAndActive(); in testHandleInCallMmiCommandCallWaiting()
206 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallHold()
213 verify(mImsCT).switchWaitingOrHoldingAndActive(); in testHandleInCallMmiCommandCallHold()
218 verify(mImsCT).acceptCall(ImsCallProfile.CALL_TYPE_VOICE); in testHandleInCallMmiCommandCallHold()
231 verify(mImsCT).conference(); in testHandleInCallMmiCommandMultiparty()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DItemGroupTest.java24 import static org.mockito.Mockito.verify;
71 inOrder.verify(mObserver).onItemRangeInserted(eq(mItemGroup), eq(0), eq(1)); in testGroup()
72 inOrder.verify(mObserver).onItemRangeInserted(eq(mItemGroup), eq(1), eq(1)); in testGroup()
87 verify(mObserver).onItemRangeRemoved(eq(mItemGroup), eq(1), eq(1)); in testRemoveChild()
99 verify(mObserver).onItemRangeRemoved(eq(mItemGroup), eq(0), eq(2)); in testClear()
120 inOrder.verify(mObserver).onItemRangeInserted(eq(parentGroup), eq(0), eq(1)); in testNestedGroup()
121 inOrder.verify(mObserver).onItemRangeInserted(eq(parentGroup), eq(1), eq(2)); in testNestedGroup()
122 inOrder.verify(mObserver).onItemRangeInserted(eq(parentGroup), eq(3), eq(1)); in testNestedGroup()
141 inOrder.verify(mObserver).onItemRangeInserted(eq(parentGroup), eq(0), eq(1)); in testNestedGroupClearNotification()
142 inOrder.verify(mObserver).onItemRangeInserted(eq(parentGroup), eq(1), eq(2)); in testNestedGroupClearNotification()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFingerprintGestureDispatcherTest.java40 import static org.mockito.Mockito.verify;
82 verify(mNonGestureCapturingClient, times(0)) in testOneNonCapturingService_doesNotCrashOrConsumeGestures()
84 verify(mNonGestureCapturingClient, times(0)).onFingerprintGesture(anyInt()); in testOneNonCapturingService_doesNotCrashOrConsumeGestures()
93 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges()
94 verify(mGestureCapturingClient, times(0)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges()
96 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges()
97 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges()
106 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong()
110 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong()
114 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong()
[all …]
/frameworks/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java83 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
85 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
87 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
89 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
92 inOrder.verify(mHandlerSpy, never()).handleMessage(any(Message.class)); in testNoTimeMovement()
115 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove()
117 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove()
120 inOrder.verify(mHandlerSpy, never()).handleMessage(any(Message.class)); in testDelayedDispatchNoTimeMove()
144 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce()
146 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce()
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DParallaxFloatEffectTest.java25 import static org.mockito.Mockito.verify;
80 verify(mTarget, times(1)).update(0f); in testOneVariable()
86 verify(mTarget, times(1)).update(0.25f); in testOneVariable()
92 verify(mTarget, times(1)).update(.5f); in testOneVariable()
98 verify(mTarget, times(1)).update(0.75f); in testOneVariable()
104 verify(mTarget, times(1)).update(1f); in testOneVariable()
110 verify(mTarget, times(1)).update(1f); in testOneVariable()
116 verify(mTarget, times(1)).update(0f); in testOneVariable()
122 verify(mTarget, times(1)).update(1f); in testOneVariable()
128 verify(mTarget, times(1)).update(0f); in testOneVariable()
[all …]
DParallaxIntEffectTest.java22 import static org.mockito.Mockito.verify;
77 verify(mTarget, times(1)).update(0f); in testOneVariable()
83 verify(mTarget, times(1)).update(0.25f); in testOneVariable()
89 verify(mTarget, times(1)).update(.5f); in testOneVariable()
95 verify(mTarget, times(1)).update(0.75f); in testOneVariable()
101 verify(mTarget, times(1)).update(1f); in testOneVariable()
107 verify(mTarget, times(1)).update(1f); in testOneVariable()
113 verify(mTarget, times(1)).update(0f); in testOneVariable()
119 verify(mTarget, times(1)).update(1f); in testOneVariable()
125 verify(mTarget, times(1)).update(0f); in testOneVariable()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerNotificationWarningsTest.java30 import static org.mockito.Mockito.verify;
79 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser()
81 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser()
89 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser()
96 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser()
98 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser()
106 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissLowBatteryNotification_CancelAsUser()
114 verify(mMockNotificationManager) in testShowLowBatteryNotification_Silent()
124 verify(mMockNotificationManager) in testShowLowBatteryNotification_Sound()
133 verify(mMockNotificationManager, times(1)) in testShowHighTemperatureWarning_NotifyAsUser()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DImageReaderTest.java98 verify(mImage1, never()).close(); in testGetLatestImage1()
109 verify(mImage1, atLeastOnce()).close(); in testGetLatestImage2()
110 verify(mImage2, never()).close(); in testGetLatestImage2()
123 verify(mImage1, atLeastOnce()).close(); in testGetLatestImage3()
124 verify(mImage2, atLeastOnce()).close(); in testGetLatestImage3()
125 verify(mImage3, never()).close(); in testGetLatestImage3()
156 verify(mImage1, atLeastOnce()).close(); in testGetLatestImageExceptionalError()
157 verify(mImage2, atLeastOnce()).close(); in testGetLatestImageExceptionalError()
158 verify(mImage3, atLeastOnce()).close(); in testGetLatestImageExceptionalError()
177 verify(mImage1, atLeastOnce()).close(); in testGetLatestImageExceptionalRuntime()
[all …]
/frameworks/opt/setupwizard/library/full-support/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java20 import static org.mockito.Mockito.verify;
67 verify(mObserver).onChanged(); in testNotifyChanged()
77 verify(mObserver).onItemRangeChanged(eq(12), eq(1), eq(null)); in testNotifyItemChangedNoHeader()
89 verify(mObserver).onItemRangeChanged(eq(13), eq(1), eq(null)); in testNotifyItemChangedWithHeader()
99 verify(mObserver).onItemRangeInserted(eq(12), eq(1)); in testNotifyItemInsertedNoHeader()
111 verify(mObserver).onItemRangeInserted(eq(13), eq(1)); in testNotifyItemInsertedWithHeader()
121 verify(mObserver).onItemRangeRemoved(eq(12), eq(1)); in testNotifyItemRemovedNoHeader()
133 verify(mObserver).onItemRangeRemoved(eq(13), eq(1)); in testNotifyItemRemovedWithHeader()
143 verify(mObserver).onItemRangeMoved(eq(12), eq(18), eq(1)); in testNotifyItemMovedNoHeader()
155 verify(mObserver).onItemRangeMoved(eq(13), eq(19), eq(1)); in testNotifyItemMovedWithHeader()

12345678910>>...16