/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceDataStoreTest.java | 30 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/media/src/android/media/cts/ |
D | AudioRecordAppOpTest.java | 23 import static org.mockito.ArgumentMatchers.eq; 91 .only()).onOpActiveChanged(eq(OP_RECORD_AUDIO), in testRecordAppOps() 92 eq(uid), eq(packageName), eq(true)); in testRecordAppOps() 109 .only()).onOpActiveChanged(eq(OP_RECORD_AUDIO), in testRecordAppOps() 110 eq(uid), eq(packageName), eq(false)); in testRecordAppOps()
|
D | BassBoostTest.java | 52 BassBoost eq = null; in test0_0ConstructorAndRelease() local 54 eq = new BassBoost(0, getSessionId()); in test0_0ConstructorAndRelease() 56 assertTrue("invalid effect ID", (eq.getId() != 0)); in test0_0ConstructorAndRelease() 66 if (eq != null) { in test0_0ConstructorAndRelease() 67 eq.release(); in test0_0ConstructorAndRelease()
|
D | EqualizerTest.java | 52 Equalizer eq = null; in test0_0ConstructorAndRelease() local 54 eq = new Equalizer(0, getSessionId()); in test0_0ConstructorAndRelease() 56 assertTrue("invalid effect ID", (eq.getId() != 0)); in test0_0ConstructorAndRelease() 65 if (eq != null) { in test0_0ConstructorAndRelease() 66 eq.release(); in test0_0ConstructorAndRelease()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | EffectBundleTest.java | 277 Equalizer eq = null; in eqSetParamProperties() local 281 eq = new Equalizer(0 /*priority*/, mp.getAudioSessionId()); in eqSetParamProperties() 294 AudioEffect af = eq; in eqSetParamProperties() 307 if (eq != null) { in eqSetParamProperties() 308 eq.release(); in eqSetParamProperties() 319 Equalizer eq = null; in eqGetParamFreqRangeCommand() local 323 eq = new Equalizer(0 /*priority*/, mp.getAudioSessionId()); in eqGetParamFreqRangeCommand() 337 AudioEffect af = eq; in eqGetParamFreqRangeCommand() 358 if (eq != null) { in eqGetParamFreqRangeCommand() 359 eq.release(); in eqGetParamFreqRangeCommand() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsAppOpsTests.java | 31 import static org.mockito.ArgumentMatchers.eq; 105 .only()).onOpActiveChanged(eq(OP_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed() 106 eq(uid), eq(packageName), eq(true)); in testSystemAlertWindowAppOpsInitiallyAllowed() 121 .only()).onOpActiveChanged(eq(OP_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed() 122 eq(uid), eq(packageName), eq(false)); in testSystemAlertWindowAppOpsInitiallyAllowed() 139 .onOpActiveChanged(eq(OP_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed()
|
/cts/tests/app/src/android/app/cts/ |
D | FragmentReceiveResultTest.java | 59 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk() 71 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled() 83 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk() 95 .onActivityResult(eq(40), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartIntentSenderForResultCanceled()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | DialerFilterTest.java | 23 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 …]
|
D | AdapterViewTest.java | 27 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()
|
D | SeekBarTest.java | 21 import static org.mockito.Mockito.eq; 99 verify(mockChangeListener, atLeastOnce()).onProgressChanged(eq(mSeekBar), anyInt(), in testSetOnSeekBarChangeListener() 100 eq(true)); in testSetOnSeekBarChangeListener() 109 verify(mockChangeListener, atLeastOnce()).onProgressChanged(eq(mSeekBar), anyInt(), in testSetOnSeekBarChangeListener() 110 eq(true)); in testSetOnSeekBarChangeListener()
|
D | AbsListViewTest.java | 31 import static org.mockito.Mockito.eq; 236 verify(mockScrollListener, atLeastOnce()).onScroll(eq(mListView), in testSetOnScrollListener() 238 eq(COUNTRY_LIST.length)); in testSetOnScrollListener() 250 verify(mockScrollListener, atLeastOnce()).onScrollStateChanged(eq(mListView), in testSetOnScrollListener() 270 verify(mockScrollListener, atLeastOnce()).onScroll(eq(mListView), in testFling() 271 firstVisibleItemCaptor.capture(), anyInt(), eq(COUNTRY_LIST.length)); in testFling() 278 verify(mockScrollListener, atLeastOnce()).onScroll(eq(mListView), in testFling() 279 firstVisibleItemCaptor.capture(), anyInt(), eq(COUNTRY_LIST.length)); in testFling() 1040 any(ActionMode.class), eq(2), eq(2L), eq(true)); in testCheckedItemsUnderMultipleModalChoiceMode() 1048 any(ActionMode.class), eq(4), eq(4L), eq(true)); in testCheckedItemsUnderMultipleModalChoiceMode() [all …]
|
D | AutoCompleteTextViewTest.java | 37 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() 891 eq(0), eq(0L)); in testPerformCompletionWithDPad() 940 eq(1), eq(1L)); in testPerformCompletionExplicit() 946 eq(0), eq(0), eq(WORDS[1].length())); in testPerformCompletionExplicit()
|
D | ExpandableListViewTest.java | 27 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()
|
D | ListPopupWindowTest.java | 28 import static org.mockito.Mockito.eq; 531 any(AdapterView.class), any(View.class), eq(2), eq(2L)); in testItemClicks() 542 any(AdapterView.class), any(), eq(1), eq(1L)); in testItemClicks() 637 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testAccessSelection() 653 any(AdapterView.class), any(View.class), eq(3), eq(3L)); in testAccessSelection() 740 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testListSelectionWithDPad() 750 any(AdapterView.class), any(View.class), eq(2), eq(2L)); in testListSelectionWithDPad() 760 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testListSelectionWithDPad() 770 any(AdapterView.class), any(View.class), eq(0), eq(0L)); in testListSelectionWithDPad() 832 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testCreateOnDragListener()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraSessionUtils.java | 186 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/admin/src/android/admin/cts/ |
D | DeviceAdminReceiverTest.java | 28 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/ |
D | CharSequenceTransformationTest.java | 21 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() 149 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("...3456"))); in testCreditCardObfuscator() 166 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("****"))); in testReplaceAllByOne() 183 verify(template, never()).setCharSequence(eq(0), any(), any()); in testPartialMatchIsIgnored() 203 verify(template).setCharSequence(eq(0), any(), in userNameObfuscator() 223 verify(template, never()).setCharSequence(eq(0), any(), any()); in testMismatch() 246 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("ACB"))); in testFieldsAreAppliedInOrder()
|
D | DateTransformationTest.java | 21 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/ |
D | SliceManagerTest.java | 20 import static org.mockito.ArgumentMatchers.eq; 79 verify(LocalSliceProvider.sProxy, timeout(2000)).onSlicePinned(eq(BASE_URI)); in testPinSlice() 86 verify(LocalSliceProvider.sProxy, timeout(2000)).onSlicePinned(eq(BASE_URI)); in testUnpinSlice() 90 verify(LocalSliceProvider.sProxy, timeout(2000)).onSliceUnpinned(eq(BASE_URI)); in testUnpinSlice() 100 verify(LocalSliceProvider.sProxy, timeout(2000)).onSlicePinned(eq(longerUri)); in testPinList() 125 verify(LocalSliceProvider.sProxy).onMapIntentToUri(eq(intent)); in testMapIntentToUri() 142 verify(LocalSliceProvider.sProxy).onCreatePermissionRequest(eq(uri)); in testOnCreatePermissionSlice()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FlashlightTest.java | 87 onTorchModeChanged(anyString(), eq(false)); in testSetTorchModeOnOff() 91 times(1)).onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff() 117 onTorchModeChanged(anyString(), eq(true)); in testSetTorchModeOnOff() 121 onTorchModeChanged(anyString(), eq(false)); in testSetTorchModeOnOff() 156 onTorchModeChanged(anyString(), eq(false)); in testTorchCallback() 158 onTorchModeChanged(anyString(), eq(true)); in testTorchCallback() 204 onTorchModeChanged(anyString(), eq(true)); in testCameraDeviceOpenAfterTorchOn() 212 onTorchModeChanged(anyString(), eq(false)); in testCameraDeviceOpenAfterTorchOn() 214 onTorchModeChanged(anyString(), eq(false)); in testCameraDeviceOpenAfterTorchOn()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsMouseUtil.java | 20 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()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsMouseUtil.java | 20 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()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityMagnificationTest.java | 23 import static org.mockito.Mockito.eq; 131 eq(controller), any(Region.class), eq(scale), anyFloat(), anyFloat()); in testListener() 137 eq(controller), any(Region.class), eq(1.0f), anyFloat(), anyFloat()); in testListener()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_BaseSavedStateTest.java | 23 import static org.mockito.Matchers.eq; 104 verify(superState).writeToParcel(eq(dest), eq(flags)); in testWriteToParcel()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverWrapTest.java | 23 import static org.mockito.ArgumentMatchers.eq; 203 doReturn(CURSOR).when(mProvider).query(eq(URI), eq(ARG_ARRAY), any(), any()); in testQuery() 211 doReturn(ASSET_FD).when(mProvider).openTypedAssetFile(eq(URI), any(), any(), eq(SIGNAL)); in testLoadThumbnail()
|