Home
last modified time | relevance | path

Searched refs:selector (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java108 UiSelector selector = new UiSelector().text(mContext.getString(R.string.search_bar_hint)); in assertSearchBarShow() local
109 UiObject searchHint = mDevice.findObject(selector); in assertSearchBarShow()
240 UiSelector selector = new UiSelector().text("Couldn't download"); in findDownloadRetryDialog() local
241 UiObject title = mDevice.findObject(selector); in findDownloadRetryDialog()
247 UiSelector selector = new UiSelector().text("Rename"); in findFileRenameDialog() local
248 UiObject title = mDevice.findObject(selector); in findFileRenameDialog()
254 UiSelector selector = new UiSelector().text(mContext.getString(R.string.name_conflict)); in findRenameErrorMessage() local
255 UiObject title = mDevice.findObject(selector); in findRenameErrorMessage()
280 UiSelector selector = new UiSelector().text(label); in findMenuLabelWithName() local
281 return mDevice.findObject(selector); in findMenuLabelWithName()
[all …]
DBots.java94 protected UiObject2 find(BySelector selector) { in find() argument
95 mDevice.wait(Until.findObject(selector), mTimeout); in find()
96 return mDevice.findObject(selector); in find()
105 final UiSelector selector = new UiSelector() in findObject() local
108 return mDevice.findObject(selector); in findObject()
/packages/apps/Car/Radio/src/com/android/car/radio/storage/
DFavorite.java38 public final ProgramSelector selector; field in Favorite
43 Favorite(@NonNull IdentifierEntity primaryId, @NonNull ProgramSelector selector, in Favorite() argument
45 if (!primaryId.sameAs(selector.getPrimaryId())) { in Favorite()
51 this.selector = selector; in Favorite()
62 return new Program(selector, name); in toProgram()
DRadioStorage.java90 @NonNull ProgramSelector selector) { in isFavorite() argument
91 return favorites.contains(new Program(selector, "")); in isFavorite()
99 public boolean isFavorite(@NonNull ProgramSelector selector) { in isFavorite() argument
105 return isFavorite(favorites, selector); in isFavorite()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DZonePickerSettingsTest.java195 private UiObject2 wait(BySelector selector) throws UiObjectNotFoundException { in wait() argument
196 UiObject2 item = mDevice.wait(Until.findObject(selector), TIMEOUT); in wait()
197 assertUiObjectFound(item, selector); in wait()
201 private static void assertUiObjectFound(UiObject2 obj, BySelector selector) in assertUiObjectFound() argument
204 throw newUiObjectNotFoundException(selector); in assertUiObjectFound()
209 private static void assertUiObjectFound(UiObject obj, UiSelector selector) in assertUiObjectFound() argument
212 throw newUiObjectNotFoundException(selector); in assertUiObjectFound()
216 private static UiObjectNotFoundException newUiObjectNotFoundException(Object selector) { in newUiObjectNotFoundException() argument
218 String.format("UI object not found: %s", selector.toString())); in newUiObjectNotFoundException()
DStorageWizardTest.java125 private UiObject2 waitFor(BySelector selector) throws UiObjectNotFoundException { in waitFor() argument
126 return waitFor(selector, TIMEOUT); in waitFor()
129 private UiObject2 waitForLong(BySelector selector) throws UiObjectNotFoundException { in waitForLong() argument
130 return waitFor(selector, TIMEOUT_LONG); in waitForLong()
133 private UiObject2 waitFor(BySelector selector, long timeout) throws UiObjectNotFoundException { in waitFor() argument
134 final UiObject2 item = mDevice.wait(Until.findObject(selector), timeout); in waitFor()
138 throw new UiObjectNotFoundException(selector.toString()); in waitFor()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManagerNestedClassesTest.java109 PropertySelector selector = new PropertySelector(emailSelector); in PropertySelector_checkVCardSelector_atLeastOnePropertyExists_returnsTrue() local
111 assertThat(selector.checkVCardSelector(vCard, "0")).isTrue(); in PropertySelector_checkVCardSelector_atLeastOnePropertyExists_returnsTrue()
122 PropertySelector selector = new PropertySelector(organizationSelector); in PropertySelector_checkVCardSelector_atLeastOnePropertyExists_returnsFalse() local
124 assertThat(selector.checkVCardSelector(vCard, "0")).isFalse(); in PropertySelector_checkVCardSelector_atLeastOnePropertyExists_returnsFalse()
135 PropertySelector selector = new PropertySelector(fullNameAndEmailSelector); in PropertySelector_checkVCardSelector_allPropertiesExist_returnsTrue() local
137 assertThat(selector.checkVCardSelector(vCard, "1")).isTrue(); in PropertySelector_checkVCardSelector_allPropertiesExist_returnsTrue()
148 PropertySelector selector = new PropertySelector(fullNameAndOrganizationSelector); in PropertySelector_checkVCardSelector_allPropertiesExist_returnsFalse() local
150 assertThat(selector.checkVCardSelector(vCard, "1")).isFalse(); in PropertySelector_checkVCardSelector_allPropertiesExist_returnsFalse()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DMediaCodecAudioDecoder.java50 public MediaCodecAudioDecoder(MediaCodecSelector selector) { in MediaCodecAudioDecoder() argument
51 mSelector = selector; in MediaCodecAudioDecoder()
58 public static boolean supportMimeType(MediaCodecSelector selector, String mimeType) { in supportMimeType() argument
59 if (selector == null) { in supportMimeType()
62 return getDecoderInfo(selector, mimeType) != null; in supportMimeType()
65 private static DecoderInfo getDecoderInfo(MediaCodecSelector selector, String mimeType) { in getDecoderInfo() argument
67 return selector.getDecoderInfo(mimeType, false); in getDecoderInfo()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java1183 void waitUntilLauncherObjectGone(BySelector selector) { in waitUntilLauncherObjectGone() argument
1184 waitUntilGoneBySelector(makeLauncherSelector(selector)); in waitUntilLauncherObjectGone()
1206 UiObject2 waitForSystemUiObject(BySelector selector) { in waitForSystemUiObject() argument
1208 Until.findObject(selector), WAIT_TIME_MS); in waitForSystemUiObject()
1209 assertNotNull("Can't find a systemui object with selector: " + selector, object); in waitForSystemUiObject()
1233 UiObject2 findObjectInContainer(UiObject2 container, BySelector selector) { in findObjectInContainer() argument
1235 return container.findObject(selector); in findObjectInContainer()
1278 UiObject2 waitForObjectInContainer(UiObject2 container, BySelector selector) { in waitForObjectInContainer() argument
1279 return waitForObjectsInContainer(container, selector).get(0); in waitForObjectInContainer()
1284 UiObject2 container, BySelector selector) { in waitForObjectsInContainer() argument
[all …]
DLaunchable.java64 private LaunchedAppState launch(BySelector selector) { in launch() argument
74 return assertAppLaunched(selector); in launch()
100 protected LaunchedAppState assertAppLaunched(BySelector selector) { in assertAppLaunched() argument
102 "App didn't start: (" + selector + ")", in assertAppLaunched()
103 mLauncher.getDevice().wait(Until.hasObject(selector), in assertAppLaunched()
DQsb.java59 BySelector selector = By.pkg(ASSISTANT_APP_PACKAGE); in launchAssistant() local
61 "assistant app didn't start: (" + selector + ")", in launchAssistant()
62 mLauncher.getDevice().wait(Until.hasObject(selector), in launchAssistant()
DWidget.java157 BySelector selector = By.text(acceptsConfig ? "OK" : "Cancel"); in dragWidgetToWorkspace() local
159 .wait(Until.findObject(selector), LauncherInstrumentation.WAIT_TIME_MS) in dragWidgetToWorkspace()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DRadioTunerExt.java149 public void tune(@NonNull ProgramSelector selector, @Nullable TuneCallback resultCb) { in tune() argument
153 mOperationSelector = selector; in tune()
158 mTuner.tune(selector); in tune()
216 private void onTuneFailed(int result, @Nullable ProgramSelector selector) { in onTuneFailed() argument
220 if ((mOperationSelector == null) != (selector == null)) return; in onTuneFailed()
222 if (!isMatching(mOperationSelector, selector)) return; in onTuneFailed()
DTunerCallbackAdapterExt.java63 void onTuneFailed(int result, @Nullable ProgramSelector selector); in onTuneFailed() argument
112 public void onTuneFailed(int result, @Nullable ProgramSelector selector) { in onTuneFailed() argument
115 cb.onTuneFailed(result, selector); in onTuneFailed()
117 mHandler.post(() -> mCallback.onTuneFailed(result, selector)); in onTuneFailed()
/packages/apps/Car/Radio/src/com/android/car/radio/media/
DTunerSession.java209 ProgramSelector selector = mBrowseTree.parseMediaId(mediaId); in onPlayFromMediaId() local
210 if (selector != null) { in onPlayFromMediaId()
211 mAppService.tune(selector); in onPlayFromMediaId()
220 ProgramSelector selector = ProgramSelectorExt.fromUri(uri); in onPlayFromUri() local
221 if (selector != null) { in onPlayFromUri()
222 mAppService.tune(selector); in onPlayFromUri()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DHeaderTextSelector.java34 public HeaderTextSelector(TextView text, Selector selector) { in HeaderTextSelector() argument
36 checkArgument(selector != null); in HeaderTextSelector()
38 mSelector = selector; in HeaderTextSelector()
/packages/modules/Bluetooth/system/blueberry/tests/pbat/
Dbluetooth_acceptance_suite.py42 selector = config.user_params.get('acceptance_test_selector')
43 if selector:
44 selected_tests = selector.split(',')
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DHTMLViewerActivity.java150 Intent selector = intent.getSelector(); in shouldOverrideUrlLoading() local
151 if (selector != null) { in shouldOverrideUrlLoading()
152 selector.addCategory(Intent.CATEGORY_BROWSABLE); in shouldOverrideUrlLoading()
153 selector.setComponent(null); in shouldOverrideUrlLoading()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DSeriesRecordingDetailsFragment.java340 ClassPresenterSelector selector = new ClassPresenterSelector();
341 selector.addClassPresenter(RecordedProgram.class, mRecordedProgramPresenter);
346 selector, BaseProgram.EPISODE_COMPARATOR::compare, seasonNumber));
355 PresenterSelector selector,
358 super(selector, comparator);
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DUiDeviceAsserts.java109 UiDevice uiDevice, UiObject2 container, BySelector selector, Direction direction) { in assertNavigateTo() argument
137 if (focusedChild.hasObject(selector)) { in assertNavigateTo()
146 Assert.fail("Could not find item with " + selector); in assertNavigateTo()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java317 final boolean vcardType21, int needSendBody, int pbSize, byte[] selector, in getSelectedPhonebookNameList() argument
320 PropertySelector vcardselector = new PropertySelector(selector); in getSelectedPhonebookNameList()
814 boolean ignorefilter, byte[] filter, byte[] selector, String vcardselectorop) { in composeContactsAndSendSelectedVCards() argument
822 PropertySelector vcardselector = new PropertySelector(selector); in composeContactsAndSendSelectedVCards()
934 boolean ignorefilter, byte[] filter, byte[] selector, String vcardselectorop, in composeCallLogsAndSendSelectedVCards() argument
946 PropertySelector vcardselector = new PropertySelector(selector); in composeCallLogsAndSendSelectedVCards()
1182 PropertySelector(byte[] selector) { in PropertySelector() argument
1183 this.mSelector = selector; in PropertySelector()
1225 private boolean checkBit(int attrBit, byte[] selector) { in checkBit() argument
1230 return ((selector[mSelector.length - offset] >> (attrBit % 8)) & 0x01) != 0; in checkBit()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocalePickerWithRegionActivity.java41 final LocalePickerWithRegion selector = LocalePickerWithRegion.createLanguagePicker( in onCreate() local
46 .replace(R.id.content_frame, selector) in onCreate()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DImageCaptureManager.java637 Selector<ImageCaptureManager.CapturedImage> selector;
641 selector = new Selector<ImageCaptureManager.CapturedImage>() {
651 selector = new Selector<ImageCaptureManager.CapturedImage>() {
679 selector);
/packages/apps/Car/systemlibs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/
DProgram.java41 public Program(@NonNull ProgramSelector selector, @NonNull String name) { in Program() argument
42 mSelector = Objects.requireNonNull(selector); in Program()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmSelectionActivity.kt27 import com.android.deskclock.widget.selector.AlarmSelection
28 import com.android.deskclock.widget.selector.AlarmSelectionAdapter

123