Home
last modified time | relevance | path

Searched refs:eq (Results 1 – 25 of 160) sorted by relevance

1234567

/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceDataStoreTest.java30 import static org.mockito.Matchers.eq;
153 verify(mDataStore, atLeastOnce()).getString(eq(KEY), any()); in testDataStoresHierarchy()
173 verify(mDataStore, atLeast(0)).getString(eq(KEY), nullable(String.class)); in putStringTestCommon()
174 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString()); in putStringTestCommon()
186 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnPref()
194 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnMgr()
267 verify(mDataStore, atLeast(0)).getStringSet(eq(KEY), or(isNull(Set.class), any())); in putStringSetTestCommon()
268 verify(mDataStore, atLeastOnce()).putStringSet(eq(KEY), or(isNull(Set.class), any())); in putStringSetTestCommon()
281 verify(mDataStore, atLeastOnce()).getStringSet(eq(KEY), eq(testSet)); in testGetStringSetWithDataStoreOnPref()
290 verify(mDataStore, atLeastOnce()).getStringSet(eq(KEY), eq(testSet)); in testGetStringSetWithDataStoreOnMgr()
[all …]
/cts/tests/tests/permission5/src/android/permission5/cts/
DRuntimePermissionsAppOpTrackingTest.kt50 import org.mockito.Mockito.eq in <lambda>()
464 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
465 eq(recognizerUid), eq(RECEIVER2_PACKAGE_NAME), isNull(), eq(true), in <lambda>()
466 eq(AppOpsManager.ATTRIBUTION_FLAG_ACCESSOR), in <lambda>()
468 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
469 eq(Process.myUid()), eq(context.packageName), eq(ACCESSOR_ATTRIBUTION_TAG), in <lambda>()
470 eq(true), eq(AppOpsManager.ATTRIBUTION_FLAG_INTERMEDIARY), in <lambda>()
472 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
473 eq(receiverUid), eq(RECEIVER_PACKAGE_NAME), eq(RECEIVER_ATTRIBUTION_TAG), in <lambda>()
474 eq(true), eq(AppOpsManager.ATTRIBUTION_FLAG_RECEIVER), in <lambda>()
[all …]
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DMusicRecognitionManagerTest.java31 import static org.mockito.ArgumentMatchers.eq;
142 eq(MusicRecognitionManager.RECOGNITION_FAILED_NO_CONNECTIVITY)); in testOnRecognitionFailed()
156 verify(mCallback, timeout(VERIFY_TIMEOUT_MS)).onRecognitionSucceeded(eq(request), in testOnRecognitionSucceeded()
157 eq(mWatcher.result), eq(null)); in testOnRecognitionSucceeded()
175 verify(mCallback, timeout(VERIFY_TIMEOUT_MS)).onRecognitionSucceeded(eq(request), in testRemovesBindersFromBundle()
176 eq(mWatcher.result), mBundleCaptor.capture()); in testRemovesBindersFromBundle()
199 eq(MusicRecognitionManager.RECOGNITION_FAILED_SERVICE_UNAVAILABLE)); in testDoesntBindToForeignService()
233 .onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in testRecordAudioOpsAreTracked()
234 eq(uid), eq(packageName), eq(expectedAttributionTag), eq(true), in testRecordAudioOpsAreTracked()
247 .onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in testRecordAudioOpsAreTracked()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsAppOpsTests.java29 import static org.mockito.ArgumentMatchers.eq;
107 .only()).onOpActiveChanged(eq(OPSTR_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed()
108 eq(uid), eq(packageName), isNull(), eq(true), anyInt(), anyInt()); in testSystemAlertWindowAppOpsInitiallyAllowed()
123 .only()).onOpActiveChanged(eq(OPSTR_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed()
124 eq(uid), eq(packageName), isNull(), eq(false), anyInt(), anyInt()); in testSystemAlertWindowAppOpsInitiallyAllowed()
141 .onOpActiveChanged(eq(OPSTR_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed()
DWindowInsetsAnimationImeTests.java31 import static org.mockito.ArgumentMatchers.eq;
113 inOrderBar.verify(callback).onPrepare(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping_opposite()
119 inOrderBar.verify(callback).onStart(eq(callback.statusBarAnim), argThat( in testAnimationCallbacks_overlapping_opposite()
123 inOrderIme.verify(callback).onPrepare(eq(callback.imeAnim)); in testAnimationCallbacks_overlapping_opposite()
125 any(), eq(mActivity.mLastWindowInsets)); in testAnimationCallbacks_overlapping_opposite()
127 inOrderIme.verify(callback).onStart(eq(callback.imeAnim), argThat( in testAnimationCallbacks_overlapping_opposite()
131 inOrderBar.verify(callback).onEnd(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping_opposite()
132 inOrderIme.verify(callback).onEnd(eq(callback.imeAnim)); in testAnimationCallbacks_overlapping_opposite()
DWindowInsetsAnimationTests.java32 import static org.mockito.ArgumentMatchers.eq;
126 inOrder.verify(callback).onPrepare(eq(callback.navBarAnim)); in testAnimationCallbacks_overlapping()
132 inOrder.verify(callback).onStart(eq(callback.navBarAnim), argThat( in testAnimationCallbacks_overlapping()
136 inOrder.verify(callback).onPrepare(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping()
138 any(), eq(mActivity.mLastWindowInsets)); in testAnimationCallbacks_overlapping()
140 inOrder.verify(callback).onStart(eq(callback.statusBarAnim), argThat( in testAnimationCallbacks_overlapping()
144 inOrder.verify(callback).onEnd(eq(callback.navBarAnim)); in testAnimationCallbacks_overlapping()
145 inOrder.verify(callback).onEnd(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping()
/cts/tests/tests/security/src/android/security/cts/
DEffectBundleTest.java276 Equalizer eq = null; in eqSetParamProperties() local
280 eq = new Equalizer(0 /*priority*/, mp.getAudioSessionId()); in eqSetParamProperties()
293 AudioEffect af = eq; in eqSetParamProperties()
306 if (eq != null) { in eqSetParamProperties()
307 eq.release(); in eqSetParamProperties()
318 Equalizer eq = null; in eqGetParamFreqRangeCommand() local
322 eq = new Equalizer(0 /*priority*/, mp.getAudioSessionId()); in eqGetParamFreqRangeCommand()
336 AudioEffect af = eq; in eqGetParamFreqRangeCommand()
357 if (eq != null) { in eqGetParamFreqRangeCommand()
358 eq.release(); in eqGetParamFreqRangeCommand()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordAppOpTest.java23 import static org.mockito.ArgumentMatchers.eq;
98 .only()).onOpActiveChanged(eq(OPSTR_RECORD_AUDIO), in testRecordAppOps()
99 eq(uid), eq(packageName), eq(true)); in testRecordAppOps()
116 .only()).onOpActiveChanged(eq(OPSTR_RECORD_AUDIO), in testRecordAppOps()
117 eq(uid), eq(packageName), eq(false)); in testRecordAppOps()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsCbMessageTest.java22 import static org.mockito.ArgumentMatchers.eq;
253 doReturn(0).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
257 doReturn(1).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
261 doReturn(2).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
265 doReturn(3).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
269 doReturn(4).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
273 doReturn(5).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
277 doReturn(6).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
281 doReturn(7).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
285 doReturn(8).when(cursor).getColumnIndexOrThrow(eq( in testCreateFromCursor()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContentProviderOperationTest.java24 import static org.mockito.ArgumentMatchers.eq;
99 when(provider.insert(eq(TEST_URI), eq(TEST_VALUES), eqBundle(TEST_EXTRAS))) in testInsert()
117 when(provider.update(eq(TEST_URI), eq(TEST_VALUES), eqBundle(TEST_EXTRAS_WITH_SQL))) in testUpdate()
134 when(provider.delete(eq(TEST_URI), eqBundle(TEST_EXTRAS_WITH_SQL))) in testDelete()
155 when(provider.query(eq(TEST_URI), eq(new String[] { "test_key" }), in testAssertQuery()
156 eqBundle(TEST_EXTRAS_WITH_SQL), eq(null))) in testAssertQuery()
170 when(provider.call(eq(TEST_URI.getAuthority()), eq(TEST_METHOD), in testCall()
171 eq(TEST_ARG), eqBundle(TEST_EXTRAS))) in testCall()
249 when(provider.call(eq(TEST_URI.getAuthority()), eq(TEST_METHOD), in testExceptionAllowed()
250 eq(TEST_ARG), eqBundle(TEST_EXTRAS))) in testExceptionAllowed()
/cts/tests/app/src/android/app/cts/
DFragmentReceiveResultTest.java61 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk()
73 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled()
85 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk()
97 .onActivityResult(eq(40), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartIntentSenderForResultCanceled()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraSessionUtils.java186 verify(listener, never()).onClosed(eq(session)); in configureAndVerifySession()
187 verify(listener, atLeastOnce()).onConfigured(eq(session)); in configureAndVerifySession()
225 verify(listener, atLeastOnce()).onCaptureStarted(eq(session), eq(request), in captureAndVerifyResult()
227 verify(listener, atLeastOnce()).onCaptureCompleted(eq(session), eq(request), in captureAndVerifyResult()
228 eq(result.first)); in captureAndVerifyResult()
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java23 import static org.mockito.Matchers.eq;
284 verify(mockTextWatcher, times(1)).onTextChanged(sameCharSequence("ANDROID"), eq(0), in testSetLettersWatcher()
285 eq(0), eq(7)); in testSetLettersWatcher()
322 verify(mockTextWatcher, times(1)).onTextChanged(sameCharSequence("12345"), eq(0), in testSetDigitsWatcher()
323 eq(0), eq(5)); in testSetDigitsWatcher()
338 verify(mockTextWatcher, times(1)).onTextChanged(sameCharSequence("ANDROID"), eq(0), in testSetFilterWatcher()
339 eq(0), eq(7)); in testSetFilterWatcher()
348 verify(mockTextWatcher, times(1)).onTextChanged(sameCharSequence("12345"), eq(0), in testSetFilterWatcher()
349 eq(0), eq(5)); in testSetFilterWatcher()
364 verify(mockTextWatcher, times(1)).onTextChanged(sameCharSequence("ANDROID"), eq(0), in testRemoveFilterWatcher()
[all …]
DListPopupWindowTest.java28 import static org.mockito.Mockito.eq;
532 any(AdapterView.class), any(View.class), eq(2), eq(2L)); in testItemClicks()
543 any(AdapterView.class), any(), eq(1), eq(1L)); in testItemClicks()
638 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testAccessSelection()
654 any(AdapterView.class), any(View.class), eq(3), eq(3L)); in testAccessSelection()
741 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testListSelectionWithDPad()
751 any(AdapterView.class), any(View.class), eq(2), eq(2L)); in testListSelectionWithDPad()
761 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testListSelectionWithDPad()
771 any(AdapterView.class), any(View.class), eq(0), eq(0L)); in testListSelectionWithDPad()
811 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testListSelectionWithDPadEnter()
[all …]
DAdapterViewTest.java27 import static org.mockito.Mockito.eq;
274 verify(mockClickListener, times(1)).onItemClick(eq(mAdapterView), any(), in testAccessOnItemClickAndLongClickListener()
275 eq(0), eq(0L)); in testAccessOnItemClickAndLongClickListener()
281 verify(mockLongClickListener, times(1)).onItemLongClick(eq(mAdapterView), any(View.class), in testAccessOnItemClickAndLongClickListener()
282 eq(0), eq(0L)); in testAccessOnItemClickAndLongClickListener()
307 verify(mockSelectedListener, times(1)).onItemSelected(eq(mAdapterView), any(View.class), in testAccessOnItemSelectedListener()
308 eq(1), eq(1L)); in testAccessOnItemSelectedListener()
316 eq(mAdapterView), any(View.class), eq(FRUIT.length - 1), in testAccessOnItemSelectedListener()
317 eq((long) FRUIT.length - 1)); in testAccessOnItemSelectedListener()
DAutoCompleteTextViewTest.java37 import static org.mockito.Mockito.eq;
335 eq(0), eq(0), eq(STRING_TEST.length())); in testOnTextChanged()
340 eq(0), eq(STRING_TEST.length()), eq(STRING_CHECK.length())); in testOnTextChanged()
693 eq(0), eq(0), eq("Text".length())); in testReplaceText()
698 eq(0), eq("Text".length()), eq("Another".length())); in testReplaceText()
883 eq(0), eq(0L)); in testPerformCompletionWithDPad()
893 eq(0), eq(0L)); in testPerformCompletionWithDPad()
901 eq(0), eq(0L)); in testPerformCompletionWithDPad()
950 eq(1), eq(1L)); in testPerformCompletionExplicit()
956 eq(0), eq(0), eq(WORDS[1].length())); in testPerformCompletionExplicit()
DSeekBarTest.java21 import static org.mockito.Mockito.eq;
132 verify(mockChangeListener, atLeastOnce()).onProgressChanged(eq(mSeekBar), anyInt(), in testSetOnSeekBarChangeListener()
133 eq(true)); in testSetOnSeekBarChangeListener()
142 verify(mockChangeListener, atLeastOnce()).onProgressChanged(eq(mSeekBar), anyInt(), in testSetOnSeekBarChangeListener()
143 eq(true)); in testSetOnSeekBarChangeListener()
DAbsListViewTest.java31 import static org.mockito.Mockito.eq;
251 verify(mockScrollListener, atLeastOnce()).onScroll(eq(mListView), in testSetOnScrollListener()
253 eq(COUNTRY_LIST.length)); in testSetOnScrollListener()
265 verify(mockScrollListener, atLeastOnce()).onScrollStateChanged(eq(mListView), in testSetOnScrollListener()
285 verify(mockScrollListener, atLeastOnce()).onScroll(eq(mListView), in testFling()
286 firstVisibleItemCaptor.capture(), anyInt(), eq(COUNTRY_LIST.length)); in testFling()
293 verify(mockScrollListener, atLeastOnce()).onScroll(eq(mListView), in testFling()
294 firstVisibleItemCaptor.capture(), anyInt(), eq(COUNTRY_LIST.length)); in testFling()
1055 any(ActionMode.class), eq(2), eq(2L), eq(true)); in testCheckedItemsUnderMultipleModalChoiceMode()
1063 any(ActionMode.class), eq(4), eq(4L), eq(true)); in testCheckedItemsUnderMultipleModalChoiceMode()
[all …]
DExpandableListViewTest.java27 import static org.mockito.Mockito.eq;
168 verify(mockOnItemClickListener, times(1)).onItemClick(eq(mExpandableListView), in testPerformItemClick()
169 any(), eq(100), eq(99L)); in testPerformItemClick()
313 verify(mockOnGroupClickListener, times(1)).onGroupClick(eq(mExpandableListView), in testSetOnGroupClickListener()
314 any(), eq(0), eq(0L)); in testSetOnGroupClickListener()
332 verify(mockOnChildClickListener, times(1)).onChildClick(eq(mExpandableListView), in testSetOnChildClickListener()
333 any(), eq(0), eq(0), eq(0L)); in testSetOnChildClickListener()
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminReceiverTest.java28 import static org.mockito.Mockito.eq;
93 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED), eq(USER)); in testOnReceivePasswordChanged()
104 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED), eq(USER)); in testOnReceivePasswordFailed()
115 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED), eq(USER)); in testOnReceivePasswordSucceeded()
126 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING), eq(USER)); in testOnReceivePasswordExpiring()
174 eq(DeviceAdminReceiver.BUGREPORT_FAILURE_FAILED_COMPLETING)); in testOnReceiveBugreportFailed()
187 any(), actionEq(ACTION_BUGREPORT_SHARE), eq(BUGREPORT_HASH)); in testOnReceiveBugreportShared()
211 eq(NETWORK_LOGS_TOKEN), eq(NETWORK_LOGS_COUNT)); in testOnReceiveNetworkLogsAvailable()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DCharSequenceTransformationTest.java21 import static org.mockito.ArgumentMatchers.eq;
101 verify(template, never()).setCharSequence(eq(0), any(), any()); in testBadSubst()
130 verify(template, never()).setCharSequence(eq(0), any(), any()); in testUnknownField()
147 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("...3456"))); in testCreditCardObfuscator()
164 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("****"))); in testReplaceAllByOne()
181 verify(template, never()).setCharSequence(eq(0), any(), any()); in testPartialMatchIsIgnored()
201 verify(template).setCharSequence(eq(0), any(), in userNameObfuscator()
221 verify(template, never()).setCharSequence(eq(0), any(), any()); in testMismatch()
244 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("ACB"))); in testFieldsAreAppliedInOrder()
DDateTransformationTest.java21 import static org.mockito.ArgumentMatchers.eq;
67 verify(mTemplate, never()).setCharSequence(eq(0), any(), any()); in testFieldNotFound()
78 verify(mTemplate, never()).setCharSequence(eq(0), any(), any()); in testInvalidAutofillValueType()
96 verify(mTemplate).setCharSequence(eq(0), any(), in testValidAutofillValue()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceManagerTest.java21 import static org.mockito.ArgumentMatchers.eq;
88 verify(LocalSliceProvider.sProxy, timeout(2000)).onSlicePinned(eq(BASE_URI)); in testPinSlice()
96 verify(LocalSliceProvider.sProxy, timeout(2000)).onSlicePinned(eq(BASE_URI)); in testUnpinSlice()
100 verify(LocalSliceProvider.sProxy, timeout(2000)).onSliceUnpinned(eq(BASE_URI)); in testUnpinSlice()
111 verify(LocalSliceProvider.sProxy, timeout(2000)).onSlicePinned(eq(longerUri)); in testPinList()
137 verify(LocalSliceProvider.sProxy).onMapIntentToUri(eq(intent)); in testMapIntentToUri()
156 verify(LocalSliceProvider.sProxy).onCreatePermissionRequest(eq(uri)); in testOnCreatePermissionSlice()
/cts/tests/camera/src/android/hardware/camera2/cts/
DFlashlightTest.java97 onTorchModeChanged(anyString(), eq(false)); in testSetTorchModeOnOff()
101 times(1)).onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff()
127 onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff()
131 onTorchModeChanged(anyString(), eq(false)); in testSetTorchModeOnOff()
167 onTorchModeChanged(anyString(), eq(false)); in testTorchCallback()
169 onTorchModeChanged(anyString(), eq(true)); in testTorchCallback()
216 onTorchModeChanged(anyString(), eq(true)); in testCameraDeviceOpenAfterTorchOn()
224 onTorchModeChanged(anyString(), eq(false)); in testCameraDeviceOpenAfterTorchOn()
226 onTorchModeChanged(anyString(), eq(false)); in testCameraDeviceOpenAfterTorchOn()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsMouseUtil.java20 import static org.mockito.Matchers.eq;
149 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveExit()
156 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveInternal()
158 inOrder.verify(listener, times(moveCount)).onHover(eq(view), in verifyEnterMoveInternal()

1234567