/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | Helper.java | 260 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 …]
|
D | CannedFillResponse.java | 333 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 …]
|
D | VirtualContainerView.java | 204 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()
|
D | GridActivity.java | 154 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/ |
D | SplitAppTest.java | 114 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/ |
D | Intent_ShortcutIconResourceTest.java | 32 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()
|
D | ContextTest.java | 348 private AttributeSet getAttributeSet(int resourceId) { in getAttributeSet() argument 350 resourceId); in getAttributeSet()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | BasePrintTest.java | 509 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 …]
|
D | PrintServicesTest.java | 397 .findObject(new UiSelector().resourceId( 618 UiObject moreInfoButton = getUiDevice().findObject(new UiSelector().resourceId(
|
D | PrinterInfoTest.java | 343 UiObject destinationSpinner = getUiDevice().findObject(new UiSelector().resourceId( in printerInfos()
|
D | PrinterCapabilitiesChangeTest.java | 166 UiObject message = getUiDevice().findObject(new UiSelector().resourceId( in waitForPrinterUnavailable()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 371 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/ |
D | DocumentsClientTest.java | 52 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()
|
D | ScopedDirectoryAccessClientTest.java | 369 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/ |
D | TypedValueTest.java | 69 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/ |
D | Utils.java | 76 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/ |
D | TestUtils.java | 143 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/ |
D | BasePermissionsTest.java | 214 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/ |
D | DigitalClockTest.java | 121 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/ |
D | PackageManagerTest.java | 447 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/ |
D | MediaStoreUiTest.java | 201 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/ |
D | AudioTrackSurroundTest.java | 466 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()
|
D | VideoDecoderPerfTest.java | 83 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/ |
D | FragmentAnimatorTest.java | 542 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/ |
D | CapturedActivity.java | 106 UiSelector acceptButtonSelector = new UiSelector().resourceId("android:id/button1"); in dismissPermissionDialog()
|