Home
last modified time | relevance | path

Searched refs:any (Results 1 – 25 of 447) sorted by relevance

12345678910>>...18

/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DGuidedStepSupportFragmentTest.java24 import static org.mockito.Mockito.any;
68 }).when(first).onCreateActions(any(List.class), any(Bundle.class)); in nextAndBack()
81 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
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()
91 any(Bundle.class), any(View.class)); in nextAndBack()
92 verify(first, times(1)).onViewStateRestored(any(Bundle.class)); in nextAndBack()
[all …]
DGuidedStepFragmentTest.java21 import static org.mockito.Mockito.any;
65 }).when(first).onCreateActions(any(List.class), any(Bundle.class)); in nextAndBack()
78 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
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()
88 any(Bundle.class), any(View.class)); in nextAndBack()
89 verify(first, times(1)).onViewStateRestored(any(Bundle.class)); in nextAndBack()
[all …]
DPlaybackSupportFragmentTest.java26 import static org.mockito.Matchers.any;
120 verify(selectedListener, times(0)).onItemSelected(any(Presenter.ViewHolder.class), in testSelectedListener()
121 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testSelectedListener()
187 verify(clickedListener, times(0)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
188 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testClickedListener()
197 verify(clickedListener, times(1)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
198 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testClickedListener()
207 verify(clickedListener, times(2)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
208 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testClickedListener()
221 verify(clickedListener, times(3)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
[all …]
DPlaybackFragmentTest.java23 import static org.mockito.Matchers.any;
117 verify(selectedListener, times(0)).onItemSelected(any(Presenter.ViewHolder.class), in testSelectedListener()
118 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testSelectedListener()
184 verify(clickedListener, times(0)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
185 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testClickedListener()
194 verify(clickedListener, times(1)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
195 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testClickedListener()
204 verify(clickedListener, times(2)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
205 any(Object.class), any(RowPresenter.ViewHolder.class), any(Row.class)); in testClickedListener()
218 verify(clickedListener, times(3)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
[all …]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseBasicsTestCase.java27 import static org.mockito.Matchers.any;
125 .onApplyWindowInsets(eq(content), any(WindowInsets.class)); in testOnApplyWindowInsetsReachesContent()
135 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacks()
142 verify(callback).onCreateActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacks()
143 verify(callback).onPrepareActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacks()
148 verify(callback).onDestroyActionMode(any(ActionMode.class)); in testSupportActionModeCallbacks()
159 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacksInvalidate()
172 verify(callback, never()).onCreateActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacksInvalidate()
173 verify(callback).onPrepareActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacksInvalidate()
183 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(false); in testSupportActionModeCallbacksWithFalseOnCreate()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java24 import static org.mockito.Matchers.any;
153 verify(mMockProvider, never()).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsLessThanBufferSize()
158 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsEqualToBufferSize()
165 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsEqualToBufferSize()
170 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsMoreThanBufferSize()
177 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsMoreThanBufferSize()
187 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testFlushAllWithSomeContents()
195 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testFlushAllWithSomeContents()
200 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsAfterFlushAll()
213 verify(mMockProvider, times(8)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsAfterFlushAll()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerNotificationWarningsTest.java26 import static org.mockito.Mockito.any;
80 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_BAD_CHARGER), any(), any()); in testShowInvalidChargerNotification_NotifyAsUser()
82 eq(SystemMessage.NOTE_POWER_LOW), any()); in testShowInvalidChargerNotification_NotifyAsUser()
90 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testDismissInvalidChargerNotification_CancelAsUser()
97 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_POWER_LOW), any(), any()); in testShowLowBatteryNotification_NotifyAsUser()
99 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testShowLowBatteryNotification_NotifyAsUser()
107 eq(SystemMessage.NOTE_POWER_LOW), any()); in testDismissLowBatteryNotification_CancelAsUser()
116 captor.capture(), any()); in testShowLowBatteryNotification_Silent()
126 captor.capture(), any()); in testShowLowBatteryNotification_Sound()
134 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_HIGH_TEMP), any(), any()); in testShowHighTemperatureWarning_NotifyAsUser()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java24 import static org.mockito.Matchers.any;
70 when(mockReplacementSpan.getSize(any(), any(), any(), any(), any())) in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
73 .draw(any(), any(), any(), any(), any(), any(), any(), any(), any()); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java19 import static org.mockito.Matchers.any;
166 when(mockReplacementSpan.getSize(any(), any(), any(), any(), any())) in setByString()
169 .draw(any(), any(), any(), any(), any(), any(), any(), any(), any()); in setByString()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalTest.java20 import static org.mockito.Mockito.any;
113 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad()
114 verify(mISupplicantStaNetworkMock, never()).setPsk(any(byte[].class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad()
116 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad()
127 verify(mISupplicantStaNetworkMock).setPsk(any(byte[].class)); in testPskNetworkWifiConfigurationSaveLoad()
129 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testPskNetworkWifiConfigurationSaveLoad()
132 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testPskNetworkWifiConfigurationSaveLoad()
232 .getSsid(any(ISupplicantStaNetwork.getSsidCallback.class)); in testSsidLoadFailure()
250 }).when(mISupplicantStaNetworkMock).setSsid(any(ArrayList.class)); in testSsidSaveFailure()
407 }).when(mISupplicantStaNetworkMock).sendNetworkEapSimGsmAuthResponse(any(ArrayList.class)); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
[all …]
DWifiNotificationControllerTest.java19 import static org.mockito.Mockito.any;
97 .registerReceiver(broadcastReceiverCaptor.capture(), any(IntentFilter.class)); in setUp()
121 .notifyAsUser(any(), anyInt(), any(), any(UserHandle.class)); in verifyNotificationDisplayed()
132 .notifyAsUser(any(), anyInt(), any(), any(UserHandle.class)); in verifyNotificationDisplayed()
134 .cancelAsUser(any(), anyInt(), any(UserHandle.class)); in verifyNotificationDisplayed()
140 .cancelAsUser(any(), anyInt(), any(UserHandle.class)); in verifyNotificationDisplayed()
159 .notifyAsUser(any(), anyInt(), any(), any(UserHandle.class)); in verifyNotificationNotDisplayed_userHasDisallowConfigWifiRestriction()
DWifiVendorHalTest.java153 when(mHalDeviceManager.getChip(any(IWifiIface.class))) in setUp()
155 when(mHalDeviceManager.createRttController(any(IWifiIface.class))) in setUp()
157 when(mIWifiChip.registerEventCallback(any(IWifiChipEventCallback.class))) in setUp()
160 when(mIWifiStaIface.registerEventCallback(any(IWifiStaIfaceEventCallback.class))) in setUp()
167 when(mIWifiChip.registerEventCallback(any(IWifiChipEventCallback.class))) in setUp()
174 when(mIWifiRttController.registerEventCallback(any(IWifiRttControllerEventCallback.class))) in setUp()
184 verify(mHalDeviceManager).registerStatusListener(hdmCallbackCaptor.capture(), any()); in setUp()
204 verify(mIWifiStaIface).registerEventCallback(any(IWifiStaIfaceEventCallback.class)); in testStartHalSuccessInStaMode()
205 verify(mIWifiChip).registerEventCallback(any(IWifiChipEventCallback.class)); in testStartHalSuccessInStaMode()
226 verify(mHalDeviceManager, never()).createRttController(any(IWifiIface.class)); in testStartHalSuccessInApMode()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DA2dpProfileTest.java41 import static org.mockito.Matchers.any;
72 }).when(mAdapter).getProfileProxy(any(Context.class), any(), eq(BluetoothProfile.A2DP)); in setUp()
81 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio()
85 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio()
89 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio()
96 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled()
100 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled()
108 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled()
110 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in isHighQualityAudioEnabled()
113 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in isHighQualityAudioEnabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/
DPluginInstanceManagerTest.java20 import static org.mockito.Matchers.any;
86 when(mMockManager.getClassLoader(any(), any())) in setup()
108 verify(sMockPlugin).onCreate(any(), any()); in testGetPlugin()
113 when(mMockPm.queryIntentServices(any(), anyInt())).thenReturn( in testNoPlugins()
120 verify(mMockListener, Mockito.never()).onPluginConnected(any(), any()); in testNoPlugins()
130 verify(mMockListener).onPluginConnected(any(), any()); in testPluginCreate()
152 doThrow(new InvalidVersionException("", false)).when(mMockVersionInfo).checkVersion(any()); in testIncorrectVersion()
160 verify(mMockListener, Mockito.never()).onPluginConnected(any(), any()); in testIncorrectVersion()
162 any(), eq(UserHandle.ALL)); in testIncorrectVersion()
181 verify(mMockListener, Mockito.times(2)).onPluginConnected(any(), any()); in testReloadOnChange()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DCallbackTest.java20 import static org.mockito.Mockito.any;
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()
97 verify(mObj, never()).onClickWithParam(any(NotBindableVo.class)); in testClickWithCallbackArg()
98 verify(mObj, never()).onClickWithParam(any(View.class), any(NotBindableVo.class)); in testClickWithCallbackArg()
110 verify(mObj, never()).onClick(any(View.class)); in testClickWithAnotherVariableAsArg()
112 verify(mObj, never()).onClickWithParam(any(View.class), any(NotBindableVo.class)); in testClickWithAnotherVariableAsArg()
124 verify(mObj, never()).onClick(any(View.class)); in testClickWithViewAndAnotherVariableAsArgs()
125 verify(mObj, never()).onClickWithParam(any(NotBindableVo.class)); in testClickWithViewAndAnotherVariableAsArgs()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java176 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
179 any(IServiceNotification.Stub.class))).thenReturn(true); in setUp()
180 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
182 when(mISupplicantP2pIfaceMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
234 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_success()
253 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_failure()
270 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_exception()
582 anyInt(), any(ISupplicantP2pIface.connectCallback.class)); in testConnect_success()
624 any(byte[].class), anyInt(), anyString(), anyBoolean(), anyBoolean(), in testConnect_invalidArguments()
625 anyInt(), any(ISupplicantP2pIface.connectCallback.class)); in testConnect_invalidArguments()
[all …]
DSupplicantP2pIfaceCallbackTest.java108 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_success()
126 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_success()
148 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_invalidArguments()
158 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_invalidArguments()
168 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_invalidArguments()
178 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_invalidArguments()
188 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_invalidArguments()
204 anyString(), any(WifiP2pDevice.class)); in testOnDeviceLost_success()
210 anyString(), any(WifiP2pDevice.class)); in testOnDeviceLost_success()
220 anyString(), any(WifiP2pDevice.class)); in testOnDeviceLost_invalidArguments()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java131 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testCreationAndCloseOfLocalOnlyHotspotReservation()
149 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testLocalOnlyHotspotReservationCallsStopProperlyInTryWithResources()
310 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspot()
321 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspotThrowsSecurityException()
333 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspotThrowsIllegalStateException()
343 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testCorrectLooperIsUsedForHandler()
361 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testMainLooperIsUsedWhenHandlerNotProvided()
380 any(IBinder.class), anyString())).thenReturn(REQUEST_REGISTERED); in testOnStartedIsCalledWithReservation()
407 any(IBinder.class), anyString())).thenReturn(REQUEST_REGISTERED); in testOnStartedIsCalledWithNullConfig()
432 any(IBinder.class), anyString())).thenReturn(REQUEST_REGISTERED); in testOnStoppedIsCalled()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareNativeManagerTest.java21 import static org.mockito.ArgumentMatchers.any;
72 when(mWifiNanIfaceMock.registerEventCallback(any())).thenReturn(mStatusOk); in setUp()
100 mManagerStatusListenerCaptor.capture(), any()); in testControlFlow()
104 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(null); in testControlFlow()
108 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any()); in testControlFlow()
112 mDestroyedListenerCaptor.capture(), any()); in testControlFlow()
116 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testControlFlow()
121 mDestroyedListenerCaptor.capture(), any()); in testControlFlow()
139 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any()); in testControlFlow()
143 mDestroyedListenerCaptor.capture(), any()); in testControlFlow()
DWifiAwareDataPathStateManagerTest.java23 import static org.mockito.ArgumentMatchers.any;
125 when(mMockNative.enableAndConfigure(anyShort(), any(), anyBoolean(), in setUp()
128 when(mMockNative.publish(anyShort(), anyInt(), any())).thenReturn(true); in setUp()
129 when(mMockNative.subscribe(anyShort(), anyInt(), any())) in setUp()
131 when(mMockNative.sendMessage(anyShort(), anyInt(), anyInt(), any(), in setUp()
132 any(), anyInt())).thenReturn(true); in setUp()
135 when(mMockNative.createAwareNetworkInterface(anyShort(), any())).thenReturn(true); in setUp()
136 when(mMockNative.deleteAwareNetworkInterface(anyShort(), any())).thenReturn(true); in setUp()
138 any(), any(), any(), any(), in setUp()
139 any())).thenReturn(true); in setUp()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java41 import static org.mockito.Mockito.any;
84 when(mResources.getColor(anyInt(), any())).thenReturn(0xFF607D8B); in setUp()
114 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNotificationsShownAndCleared()
115 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared()
124 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNoInternetNotificationsNotShownForCellular()
130 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular()
141 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNotificationsNotShownIfNoInternetCapability()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DSpannableBuilderTest.java25 import static org.mockito.Matchers.any;
141 verify((SpanWatcher) mWatcher, never()).onSpanRemoved(any(Spannable.class), in testBlocksSpanCallbacks_forEmojiSpans()
143 verify((SpanWatcher) mWatcher, never()).onSpanAdded(any(Spannable.class), in testBlocksSpanCallbacks_forEmojiSpans()
145 verify((SpanWatcher) mWatcher, never()).onSpanChanged(any(Spannable.class), in testBlocksSpanCallbacks_forEmojiSpans()
149 verify(mWatcher, times(1)).beforeTextChanged(any(CharSequence.class), anyInt(), in testBlocksSpanCallbacks_forEmojiSpans()
151 verify(mWatcher, times(1)).onTextChanged(any(CharSequence.class), anyInt(), anyInt(), in testBlocksSpanCallbacks_forEmojiSpans()
153 verify(mWatcher, times(1)).afterTextChanged(any(Editable.class)); in testBlocksSpanCallbacks_forEmojiSpans()
173 verify((SpanWatcher) mWatcher, times(1)).onSpanRemoved(any(Spannable.class), in testDoesNotBlockSpanCallbacks_forNonEmojiSpans()
177 verify(mWatcher, times(1)).beforeTextChanged(any(CharSequence.class), anyInt(), anyInt(), in testDoesNotBlockSpanCallbacks_forNonEmojiSpans()
179 verify(mWatcher, times(1)).onTextChanged(any(CharSequence.class), anyInt(), anyInt(), in testDoesNotBlockSpanCallbacks_forNonEmojiSpans()
[all …]
DEmojiInputFilterTest.java25 import static org.mockito.Matchers.any;
64 verify(mEmojiCompat, never()).process(any(CharSequence.class)); in testFilter_withNullSource()
65 verify(mEmojiCompat, never()).process(any(CharSequence.class), anyInt(), anyInt()); in testFilter_withNullSource()
71 when(mEmojiCompat.process(any(Spannable.class), anyInt(), anyInt())) in testFilter_withString()
83 when(mEmojiCompat.process(any(Spannable.class), anyInt(), anyInt())).thenReturn(testString); in testFilter_withSpannable()
102 verify(mEmojiCompat, times(0)).process(any(Spannable.class), anyInt(), anyInt()); in testFilter_whenEmojiCompatLoading()
103 verify(mEmojiCompat, times(1)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testFilter_whenEmojiCompatLoading()
114 verify(mEmojiCompat, times(0)).process(any(Spannable.class), anyInt(), anyInt()); in testFilter_whenEmojiCompatLoadFailed()
115 verify(mEmojiCompat, times(0)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testFilter_whenEmojiCompatLoadFailed()
/frameworks/support/design/tests/src/android/support/design/widget/
DCoordinatorLayoutTest.java28 import static org.mockito.Matchers.any;
94 .onApplyWindowInsets(same(col), same(view), any(WindowInsetsCompat.class)); in testSetFitSystemWindows()
122 .onApplyWindowInsets(same(col), same(view), any(WindowInsetsCompat.class)); in testSetFitSystemWindows()
135 .onApplyWindowInsets(same(col), same(view), any(WindowInsetsCompat.class)); in testSetFitSystemWindows()
530 any(View.class), // target in testNestedScrollingDispatchesToBehavior()
531 any(View.class), // direct child target in testNestedScrollingDispatchesToBehavior()
532 any(int.class)); // axes in testNestedScrollingDispatchesToBehavior()
538 any(View.class), // target in testNestedScrollingDispatchesToBehavior()
539 any(View.class), // direct child target in testNestedScrollingDispatchesToBehavior()
540 any(int.class)); // axes in testNestedScrollingDispatchesToBehavior()
[all …]
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
DBasePrintTest.java49 import static org.mockito.Matchers.any;
155 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks()
160 any(List.class)); in createMockPrinterDiscoverySessionCallbacks()
167 any(List.class)); in createMockPrinterDiscoverySessionCallbacks()
171 any(PrinterId.class)); in createMockPrinterDiscoverySessionCallbacks()
175 any(PrinterId.class), any(CancellationSignal.class), in createMockPrinterDiscoverySessionCallbacks()
176 any(CustomPrinterIconCallback.class)); in createMockPrinterDiscoverySessionCallbacks()
180 any(PrinterId.class)); in createMockPrinterDiscoverySessionCallbacks()
194 doCallRealMethod().when(service).setService(any(PrintService.class)); in createMockPrintServiceCallbacks()
202 doAnswer(onPrintJobQueued).when(service).onPrintJobQueued(any(PrintJob.class)); in createMockPrintServiceCallbacks()
[all …]

12345678910>>...18