Home
last modified time | relevance | path

Searched refs:resourceId (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/autofillservice/src/android/autofillservice/cts/
DHelper.java260 static ViewNode findNodeByResourceId(AssistStructure structure, String resourceId) { in findNodeByResourceId() argument
266 final ViewNode node = findNodeByResourceId(rootNode, resourceId); in findNodeByResourceId()
277 static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { in findNodeByResourceId() argument
279 ViewNode node = findNodeByResourceId(context.getStructure(), resourceId); in findNodeByResourceId()
290 static ViewNode findNodeByResourceId(ViewNode node, String resourceId) { in findNodeByResourceId() argument
291 if (resourceId.equals(node.getIdEntry())) { in findNodeByResourceId()
297 final ViewNode found = findNodeByResourceId(node.getChildAt(i), resourceId); in findNodeByResourceId()
347 final String resourceId = node.getIdEntry(); in assertTextIsSanitized() local
349 throw new AssertionError("text on sanitized field " + resourceId + ": " + text); in assertTextIsSanitized()
381 static ViewNode assertTextAndValue(AssistStructure structure, String resourceId, in assertTextAndValue() argument
[all …]
DCannedFillResponse.java333 final String resourceId = entry.getKey(); in asDataset() local
334 final ViewNode node = nodeResolver.apply(resourceId); in asDataset()
336 throw new AssertionError("No node with resource id " + resourceId); in asDataset()
340 final RemoteViews presentation = mFieldPresentations.get(resourceId); in asDataset()
378 public Builder setField(String resourceId, String text) { in setField() argument
379 return setField(resourceId, AutofillValue.forText(text)); in setField()
385 public Builder setField(String resourceId, int index) { in setField() argument
386 return setField(resourceId, AutofillValue.forList(index)); in setField()
392 public Builder setField(String resourceId, boolean toggled) { in setField() argument
393 return setField(resourceId, AutofillValue.forToggle(toggled)); in setField()
[all …]
DVirtualContainerView.java204 child.setId(1000 + index, packageName, "id", item.resourceId); in onProvideAutofillVirtualStructure()
338 private final String resourceId; field in VirtualContainerView.Item
344 Item(Line line, int id, String resourceId, CharSequence text, boolean editable, in Item() argument
348 this.resourceId = resourceId; in Item()
356 return id + "/" + resourceId + ": " + text + (editable ? " (editable)" : " (read-only)" in toString()
DGridActivity.java154 final String resourceId = getResourceId(line, col); in onCell() local
156 final OneTimeTextWatcher watcher = new OneTimeTextWatcher(resourceId, cell, value); in onCell()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java114 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureADefault() local
115 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureADefault()
130 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureAPolishLocale() local
131 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish")); in shouldLoadFeatureAPolishLocale()
158 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureBDefault() local
159 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureBDefault()
161 resourceId = resources.getIdentifier(FEATURE_B_STRING, null, null); in shouldLoadFeatureBDefault()
162 assertThat(resources.getString(resourceId), equalTo("Feature B String Default")); in shouldLoadFeatureBDefault()
177 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureBPolishLocale() local
178 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish")); in shouldLoadFeatureBPolishLocale()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DIntent_ShortcutIconResourceTest.java32 final int resourceId = android.content.cts.R.string.notify; field in Intent_ShortcutIconResourceTest
43 resourceId); in testToString()
45 resourceId); in testToString()
53 resourceId); in testFromContext()
55 resourceId); in testFromContext()
DContextTest.java348 private AttributeSet getAttributeSet(int resourceId) { in getAttributeSet() argument
350 resourceId); in getAttributeSet()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java509 UiObject destinationSpinner = sUiDevice.findObject(new UiSelector().resourceId( in selectPrinter()
559 button = sUiDevice.findObject(new UiSelector().resourceId("android:id/button1")); in answerPrintServicesWarning()
561 button = sUiDevice.findObject(new UiSelector().resourceId("android:id/button2")); in answerPrintServicesWarning()
568 UiObject orientationSpinner = sUiDevice.findObject(new UiSelector().resourceId( in changeOrientation()
581 UiObject orientationSpinner = sUiDevice.findObject(new UiSelector().resourceId( in getOrientation()
592 UiObject mediaSizeSpinner = sUiDevice.findObject(new UiSelector().resourceId( in changeMediaSize()
605 UiObject colorSpinner = sUiDevice.findObject(new UiSelector().resourceId( in changeColor()
618 UiObject colorSpinner = sUiDevice.findObject(new UiSelector().resourceId( in getColor()
629 UiObject duplexSpinner = sUiDevice.findObject(new UiSelector().resourceId( in changeDuplex()
642 UiObject copies = sUiDevice.findObject(new UiSelector().resourceId( in changeCopies()
[all …]
DPrintServicesTest.java397 .findObject(new UiSelector().resourceId(
618 UiObject moreInfoButton = getUiDevice().findObject(new UiSelector().resourceId(
DPrinterInfoTest.java343 UiObject destinationSpinner = getUiDevice().findObject(new UiSelector().resourceId( in printerInfos()
DPrinterCapabilitiesChangeTest.java166 UiObject message = getUiDevice().findObject(new UiSelector().resourceId( in waitForPrinterUnavailable()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java371 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument
376 afd = context.getResources().openRawResourceFd(resourceId); in hasCodecsForResourceCombo()
403 public static boolean hasCodecsForResource(Context context, int resourceId) { in hasCodecsForResource() argument
404 return hasCodecsForResourceCombo(context, resourceId, ALL_AV_TRACKS, null /* mimePrefix */); in hasCodecsForResource()
407 public static boolean checkCodecsForResource(Context context, int resourceId) { in checkCodecsForResource() argument
408 return check(hasCodecsForResource(context, resourceId), "no decoder found"); in checkCodecsForResource()
414 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument
415 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource()
418 public static boolean checkCodecForResource(Context context, int resourceId, int track) { in checkCodecForResource() argument
419 return check(hasCodecForResource(context, resourceId, track), "no decoder found"); in checkCodecForResource()
[all …]
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java52 return new UiSelector().resourceId( in findRootListSelector()
54 new UiSelector().resourceId("com.android.documentsui:id/roots_list")); in findRootListSelector()
62 final UiSelector hamburger = new UiSelector().resourceId( in revealRoot()
91 new UiSelector().resourceId("com.android.documentsui:id/eject_icon"); in findEjectIcon()
96 final UiSelector docList = new UiSelector().resourceId( in findDocument()
98 new UiSelector().resourceId("com.android.documentsui:id/dir_list")); in findDocument()
110 return new UiObject(new UiSelector().resourceId("com.android.documentsui:id/container_save") in findSaveButton()
111 .childSelector(new UiSelector().resourceId("android:id/button1"))); in findSaveButton()
115 return new UiObject(new UiSelector().resourceId("android:id/button1")); in findPositiveButton()
598 UiObject okButton = new UiObject(new UiSelector().resourceId("android:id/button1")); in testCreateWebLink()
DScopedDirectoryAccessClientTest.java369 dialog = mDevice.findObject(new UiSelector().resourceId(id)); in UiAlertDialog()
372 new UiSelector().resourceId("com.android.documentsui:id/message")); in UiAlertDialog()
373 yesButton = dialog.getChild(new UiSelector().resourceId("android:id/button1")); in UiAlertDialog()
374 noButton = dialog.getChild(new UiSelector().resourceId("android:id/button2")); in UiAlertDialog()
379 new UiSelector().resourceId("com.android.documentsui:id/do_not_ask_checkbox")); in getDoNotAskAgainCheckBox()
/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java69 tv1.resourceId = 4; in testSetTo()
78 assertEquals(4, tv2.resourceId); in testSetTo()
133 tv.resourceId = 4; in testToString()
172 tv.resourceId = 4; in testCoerceToString1()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java76 public static void showToast(Context context, int resourceId) { in showToast() argument
77 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_LONG).show(); in showToast()
/cts/tests/tests/preference2/src/android/preference2/cts/
DTestUtils.java143 int resourceId = in getMultiWindowFocus() local
146 (resourceId > 0) ? context.getResources().getDimensionPixelSize(resourceId) : 0; in getMultiWindowFocus()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionsTest.java214 getUiDevice().findObject(new UiSelector().resourceId( in clickAllowButton()
220 getUiDevice().findObject(new UiSelector().resourceId( in clickDenyButton()
225 getUiDevice().findObject(new UiSelector().resourceId( in clickDontAskAgainCheckbox()
231 getUiDevice().findObject(new UiSelector().resourceId( in clickDontAskAgainButton()
348 final int resourceId = mPlatformResources.getIdentifier(labelResName, null, null); in getPermissionLabel() local
349 return mPlatformResources.getString(resourceId); in getPermissionLabel()
/cts/tests/tests/widget/src/android/widget/cts/
DDigitalClockTest.java121 private AttributeSet getAttributeSet(int resourceId) { in getAttributeSet() argument
122 XmlResourceParser parser = mActivity.getResources().getXml(resourceId); in getAttributeSet()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java447 int resourceId = R.xml.pm_test; in testGetResources() local
450 assertNotNull(mPackageManager.getXml(PACKAGE_NAME, resourceId, appInfo)); in testGetResources()
452 .getResourceName(resourceId)); in testGetResources()
454 resourceId)); in testGetResources()
456 .getResourceName(resourceId)); in testGetResources()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreUiTest.java201 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); in testImageCapture()
204 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); in testImageCapture()
206 maybeClick(new UiSelector().resourceId(pkg + ":id/done_button")); in testImageCapture()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackSurroundTest.java466 SamplePlayerShorts(int sampleRate, int encoding, int channelConfig, @RawRes int resourceId) in SamplePlayerShorts() argument
469 mData = loadRawResourceShorts(resourceId); in SamplePlayerShorts()
500 SamplePlayerBytes(int sampleRate, int encoding, int channelConfig, @RawRes int resourceId) in SamplePlayerBytes() argument
503 mData = loadRawResourceBytes(resourceId); in SamplePlayerBytes()
DVideoDecoderPerfTest.java83 private void decode(String name, int resourceId, MediaFormat format) throws Exception { in decode() argument
98 measuredFps[i] = doDecode(name, resourceId, width, height, s, i, maxTimeMs); in decode()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentAnimatorTest.java542 assertEquals(animatorResourceId, fragment.resourceId); in assertFragmentAnimation()
560 int resourceId; field in FragmentAnimatorTest.AnimatorFragment
584 this.resourceId = nextAnim; in onCreateAnimator()
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/
DCapturedActivity.java106 UiSelector acceptButtonSelector = new UiSelector().resourceId("android:id/button1"); in dismissPermissionDialog()

12