Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java107 UiSelector selector = new UiSelector().text(mContext.getString(R.string.search_bar_hint)); in assertSearchBarShow() local
108 UiObject searchHint = mDevice.findObject(selector); in assertSearchBarShow()
231 UiSelector selector = new UiSelector().text("Couldn't download"); in findDownloadRetryDialog() local
232 UiObject title = mDevice.findObject(selector); in findDownloadRetryDialog()
238 UiSelector selector = new UiSelector().text("Rename"); in findFileRenameDialog() local
239 UiObject title = mDevice.findObject(selector); in findFileRenameDialog()
245 UiSelector selector = new UiSelector().text(mContext.getString(R.string.name_conflict)); in findRenameErrorMessage() local
246 UiObject title = mDevice.findObject(selector); in findRenameErrorMessage()
271 UiSelector selector = new UiSelector().text(label); in findMenuLabelWithName() local
272 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()
DDirectoryListBot.java218 BySelector selector = By.hasChild(By.text(label)); in findSelectionHotspot() local
219 UiObject2 parent = mDevice.findObject(list).findObject(selector); in findSelectionHotspot()
225 selector = By.hasDescendant(By.text(label).depth(2)); in findSelectionHotspot()
226 parent = mDevice.findObject(list).findObject(selector); in findSelectionHotspot()
/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/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/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/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.java187 ProgramSelector selector = mBrowseTree.parseMediaId(mediaId); in onPlayFromMediaId() local
188 if (selector != null) { in onPlayFromMediaId()
189 mAppService.tune(selector); in onPlayFromMediaId()
198 ProgramSelector selector = ProgramSelectorExt.fromUri(uri); in onPlayFromUri() local
199 if (selector != null) { in onPlayFromUri()
200 mAppService.tune(selector); in onPlayFromUri()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java713 UiObject2 waitForObjectInContainer(UiObject2 container, BySelector selector) { in waitForObjectInContainer() argument
715 Until.findObject(selector), in waitForObjectInContainer()
717 assertNotNull("Can't find a launcher object id: " + selector + " in container: " + in waitForObjectInContainer()
733 UiObject2 waitForLauncherObject(BySelector selector) { in waitForLauncherObject() argument
734 return waitForObjectBySelector(By.copy(selector).pkg(getLauncherPackageName())); in waitForLauncherObject()
738 UiObject2 tryWaitForLauncherObject(BySelector selector, long timeout) { in tryWaitForLauncherObject() argument
739 return tryWaitForObjectBySelector(By.copy(selector).pkg(getLauncherPackageName()), timeout); in tryWaitForLauncherObject()
747 private UiObject2 waitForObjectBySelector(BySelector selector) { in waitForObjectBySelector() argument
748 final UiObject2 object = mDevice.wait(Until.findObject(selector), WAIT_TIME_MS); in waitForObjectBySelector()
749 assertNotNull("Can't find a launcher object; selector: " + selector, object); in waitForObjectBySelector()
[all …]
DLaunchable.java52 private Background launch(BySelector selector) { in launch() argument
62 "App didn't start: " + selector, in launch()
63 mLauncher.getDevice().wait(Until.hasObject(selector), in launch()
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DHTMLViewerActivity.java145 Intent selector = intent.getSelector(); in shouldOverrideUrlLoading() local
146 if (selector != null) { in shouldOverrideUrlLoading()
147 selector.addCategory(Intent.CATEGORY_BROWSABLE); in shouldOverrideUrlLoading()
148 selector.setComponent(null); in shouldOverrideUrlLoading()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java293 final boolean vcardType21, int needSendBody, int pbSize, byte[] selector, in getSelectedPhonebookNameList() argument
296 PropertySelector vcardselector = new PropertySelector(selector); in getSelectedPhonebookNameList()
791 boolean ignorefilter, byte[] filter, byte[] selector, String vcardselectorop) { in composeContactsAndSendSelectedVCards() argument
799 PropertySelector vcardselector = new PropertySelector(selector); in composeContactsAndSendSelectedVCards()
905 boolean ignorefilter, byte[] filter, byte[] selector, String vcardselectorop, in composeCallLogsAndSendSelectedVCards() argument
917 PropertySelector vcardselector = new PropertySelector(selector); in composeCallLogsAndSendSelectedVCards()
1216 PropertySelector(byte[] selector) { in PropertySelector() argument
1217 this.mSelector = selector; in PropertySelector()
1220 private boolean checkbit(int attrBit, byte[] selector) { in checkbit() argument
1221 int selectorlen = selector.length; in checkbit()
[all …]
/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/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/localepicker/
DLocalePickerWithRegionActivity.java38 final LocalePickerWithRegion selector = LocalePickerWithRegion.createLanguagePicker( in onCreate() local
43 .replace(android.R.id.content, selector) in onCreate()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocalePickerWithRegionActivity.java38 final LocalePickerWithRegion selector = LocalePickerWithRegion.createLanguagePicker( in onCreate() local
43 .replace(android.R.id.content, selector) in onCreate()
/packages/apps/Car/libs/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
DAlarmSelectionActivity.java29 import com.android.deskclock.widget.selector.AlarmSelection;
30 import com.android.deskclock.widget.selector.AlarmSelectionAdapter;
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java694 Intent selector = intent.getSelector(); in startBrowsingIntent() local
695 if (selector != null) { in startBrowsingIntent()
696 selector.addCategory(Intent.CATEGORY_BROWSABLE); in startBrowsingIntent()
697 selector.setComponent(null); in startBrowsingIntent()

12