Home
last modified time | relevance | path

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

123

/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DQueryController.java127 public int getPatternCount(UiSelector selector) { in getPatternCount() argument
128 findAccessibilityNodeInfo(selector, true /*counting*/); in getPatternCount()
137 public AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector) { in findAccessibilityNodeInfo() argument
138 return findAccessibilityNodeInfo(selector, false); in findAccessibilityNodeInfo()
141 protected AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector, in findAccessibilityNodeInfo() argument
147 Log.d(LOG_TAG, "Searching: " + selector); in findAccessibilityNodeInfo()
157 UiSelector uiSelector = new UiSelector(selector); in findAccessibilityNodeInfo()
215 private AccessibilityNodeInfo translateCompoundSelector(UiSelector selector, in translateCompoundSelector() argument
221 if(selector.hasContainerSelector()) in translateCompoundSelector()
223 if(selector.getContainerSelector().hasContainerSelector()) { in translateCompoundSelector()
[all …]
DUiSelector.java76 UiSelector(UiSelector selector) { in UiSelector() argument
77 mSelectorAttributes = selector.cloneSelector().mSelectorAttributes; in UiSelector()
95 static UiSelector patternBuilder(UiSelector selector) { in patternBuilder() argument
96 if (!selector.hasPatternSelector()) { in patternBuilder()
97 return new UiSelector().patternSelector(selector); in patternBuilder()
99 return selector; in patternBuilder()
533 public UiSelector childSelector(UiSelector selector) { in childSelector() argument
534 return buildSelector(SELECTOR_CHILD, selector); in childSelector()
537 private UiSelector patternSelector(UiSelector selector) { in patternSelector() argument
538 return buildSelector(SELECTOR_PATTERN, selector); in patternSelector()
[all …]
DUiScrollable.java93 protected boolean exists(UiSelector selector) { in exists() argument
94 if(getQueryController().findAccessibilityNodeInfo(selector) != null) { in exists()
259 public boolean scrollIntoView(UiSelector selector) throws UiObjectNotFoundException { in scrollIntoView() argument
260 Tracer.trace(selector); in scrollIntoView()
262 UiSelector childSelector = getSelector().childSelector(selector); in scrollIntoView()
DUiObject.java80 public UiObject(UiSelector selector) { in UiObject() argument
81 mSelector = selector; in UiObject()
123 public UiObject getChild(UiSelector selector) throws UiObjectNotFoundException { in getChild() argument
124 Tracer.trace(selector); in getChild()
125 return new UiObject(getSelector().childSelector(selector)); in getChild()
137 public UiObject getFromParent(UiSelector selector) throws UiObjectNotFoundException { in getFromParent() argument
138 Tracer.trace(selector); in getFromParent()
139 return new UiObject(getSelector().fromParent(selector)); in getFromParent()
DUiCollection.java34 public UiCollection(UiSelector selector) { in UiCollection() argument
35 super(selector); in UiCollection()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouteSelector.java135 public boolean contains(MediaRouteSelector selector) { in contains() argument
136 if (selector != null) { in contains()
138 selector.ensureControlCategories(); in contains()
139 return mControlCategories.containsAll(selector.mControlCategories); in contains()
225 public Builder(@NonNull MediaRouteSelector selector) { in Builder() argument
226 if (selector == null) { in Builder()
230 selector.ensureControlCategories(); in Builder()
231 if (!selector.mControlCategories.isEmpty()) { in Builder()
232 mControlCategories = new ArrayList<String>(selector.mControlCategories); in Builder()
286 public Builder addSelector(@NonNull MediaRouteSelector selector) { in addSelector() argument
[all …]
DMediaRouteDiscoveryRequest.java40 public MediaRouteDiscoveryRequest(MediaRouteSelector selector, boolean activeScan) { in MediaRouteDiscoveryRequest() argument
41 if (selector == null) { in MediaRouteDiscoveryRequest()
46 mSelector = selector; in MediaRouteDiscoveryRequest()
47 mBundle.putBundle(KEY_SELECTOR, selector.asBundle()); in MediaRouteDiscoveryRequest()
DMediaRouter.java360 public RouteInfo updateSelectedRoute(@NonNull MediaRouteSelector selector) { in updateSelectedRoute() argument
361 if (selector == null) { in updateSelectedRoute()
367 Log.d(TAG, "updateSelectedRoute: " + selector); in updateSelectedRoute()
370 if (!route.isDefaultOrBluetooth() && !route.matchesSelector(selector)) { in updateSelectedRoute()
446 public boolean isRouteAvailable(@NonNull MediaRouteSelector selector, int flags) { in isRouteAvailable() argument
447 if (selector == null) { in isRouteAvailable()
452 return sGlobal.isRouteAvailable(selector, flags); in isRouteAvailable()
468 public void addCallback(MediaRouteSelector selector, Callback callback) { in addCallback() argument
469 addCallback(selector, callback, 0); in addCallback()
565 public void addCallback(@NonNull MediaRouteSelector selector, @NonNull Callback callback, in addCallback() argument
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DListViewCompat.java124 Drawable selector = getSelector(); in updateSelectorStateCompat() local
125 if (selector != null && shouldShowSelectorCompat()) { in updateSelectorStateCompat()
126 selector.setState(getDrawableState()); in updateSelectorStateCompat()
140 final Drawable selector = getSelector(); in drawSelectorCompat() local
141 if (selector != null) { in drawSelectorCompat()
142 selector.setBounds(mSelectorRect); in drawSelectorCompat()
143 selector.draw(canvas); in drawSelectorCompat()
191 Drawable selector = getSelector(); in positionSelectorLikeTouchCompat() local
192 if (selector != null && position != INVALID_POSITION) { in positionSelectorLikeTouchCompat()
193 DrawableCompat.setHotspot(selector, x, y); in positionSelectorLikeTouchCompat()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteChooserDialogFragment.java77 public void setRouteSelector(MediaRouteSelector selector) { in setRouteSelector() argument
78 if (selector == null) { in setRouteSelector()
83 if (!mSelector.equals(selector)) { in setRouteSelector()
84 mSelector = selector; in setRouteSelector()
90 args.putBundle(ARGUMENT_SELECTOR, selector.asBundle()); in setRouteSelector()
95 dialog.setRouteSelector(selector); in setRouteSelector()
DMediaRouteActionProvider.java167 public void setRouteSelector(@NonNull MediaRouteSelector selector) { in setRouteSelector() argument
168 if (selector == null) { in setRouteSelector()
172 if (!mSelector.equals(selector)) { in setRouteSelector()
183 if (!selector.isEmpty()) { in setRouteSelector()
184 mRouter.addCallback(selector, mCallback); in setRouteSelector()
186 mSelector = selector; in setRouteSelector()
190 mButton.setRouteSelector(selector); in setRouteSelector()
DMediaRouteDiscoveryFragment.java80 public void setRouteSelector(MediaRouteSelector selector) { in setRouteSelector() argument
81 if (selector == null) { in setRouteSelector()
86 if (!mSelector.equals(selector)) { in setRouteSelector()
87 mSelector = selector; in setRouteSelector()
93 args.putBundle(ARGUMENT_SELECTOR, selector.asBundle()); in setRouteSelector()
DMediaRouteButton.java162 public void setRouteSelector(MediaRouteSelector selector) { in setRouteSelector() argument
163 if (selector == null) { in setRouteSelector()
167 if (!mSelector.equals(selector)) { in setRouteSelector()
172 if (!selector.isEmpty()) { in setRouteSelector()
173 mRouter.addCallback(selector, mCallback); in setRouteSelector()
176 mSelector = selector; in setRouteSelector()
DMediaRouteChooserDialog.java117 public void setRouteSelector(@NonNull MediaRouteSelector selector) { in setRouteSelector() argument
118 if (selector == null) { in setRouteSelector()
122 if (!mSelector.equals(selector)) { in setRouteSelector()
123 mSelector = selector; in setRouteSelector()
127 mRouter.addCallback(selector, mCallback, in setRouteSelector()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
DBaseBot.java54 protected UiObject2 find(BySelector selector) { in find() argument
55 mDevice.wait(Until.findObject(selector), mTimeout); in find()
56 return mDevice.findObject(selector); in find()
65 final UiSelector selector = new UiSelector() in findObject() local
68 return mDevice.findObject(selector); in findObject()
DUiBot.java179 UiSelector selector = new UiSelector().text("Couldn't download"); in findDownloadRetryDialog() local
180 UiObject title = mDevice.findObject(selector); in findDownloadRetryDialog()
198 UiSelector selector = new UiSelector().text(label); in findMenuLabelWithName() local
199 return mDevice.findObject(selector); in findMenuLabelWithName()
218 UiSelector selector = new UiSelector().className("android.widget.ImageButton") in findMenuMoreOptions() local
221 return mDevice.findObject(selector); in findMenuMoreOptions()
/frameworks/base/tools/split-select/
DSplitSelector_test.cpp48 SplitSelector selector(splits); in TEST() local
50 bestSplits.merge(selector.getBestSplits(targetSplit)); in TEST()
56 KeyedVector<SplitDescription, sp<Rule> > rules = selector.getRules(); in TEST()
DMain.cpp67 const SplitSelector selector(splits); in select() local
68 return selector.getBestSplits(target); in select()
77 const SplitSelector selector(allSplits); in generate() local
78 KeyedVector<SplitDescription, sp<Rule> > rules(selector.getRules()); in generate()
/frameworks/base/core/java/android/security/net/config/
DDirectoryCertificateSource.java140 private Set<X509Certificate> findCerts(X500Principal subj, CertSelector selector) {
155 if (selector.match(cert)) {
165 private X509Certificate findCert(X500Principal subj, CertSelector selector) {
179 if (selector.match(cert)) {
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DUtils.java43 private static UiObject2 waitForActivity(Instrumentation instrumentation, BySelector selector) { in waitForActivity() argument
45 UiObject2 window = device.wait(Until.findObject(selector), WAIT_FOR_ACTIVITY_TIMEOUT); in waitForActivity()
47 throw new RuntimeException(selector.toString() + " has not been started."); in waitForActivity()
/frameworks/base/docs/html/guide/topics/resources/
Dcolor-list-resource.jd23 <item>} element inside a single {@code <selector>} element. Each {@code <item>}
52 &lt;<a href="#selector-element">selector</a> xmlns:android="http://schemas.android.com/apk/res/andr…
62 &lt;/selector>
70 <dt id="selector-element"><code>&lt;selector&gt;</code></dt>
82 child of a <code>&lt;selector&gt;</code> element.
134 &lt;selector xmlns:android="http://schemas.android.com/apk/res/android">
140 &lt;/selector>
/frameworks/base/docs/html-intl/intl/ja/training/tv/playback/
Ddetails.jd87 ClassPresenterSelector selector = new ClassPresenterSelector();
92 selector.addClassPresenter(DetailsOverviewRow.class, rowPresenter);
93 selector.addClassPresenter(ListRow.class,
95 mRowsAdapter = new ArrayObjectAdapter(selector);
/frameworks/base/core/java/com/android/internal/app/
DLocalePickerWithRegion.java216 LocalePickerWithRegion selector = LocalePickerWithRegion.createCountryPicker( in onListItemClick() local
218 if (selector != null) { in onListItemClick()
221 .replace(getId(), selector).addToBackStack(null) in onListItemClick()
/frameworks/base/docs/html-intl/intl/ja/training/tv/start/
Dnavigation.jd116 &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
124 &lt;/selector&gt;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerPrepareForDropTest.java89 for (SelectTargetChildren selector : selectors) { in params()
91 variations.add(new Object[]{config, selector}); in params()

123