Home
last modified time | relevance | path

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

12

/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.java384 private AttributeSet getAttributeSet(int resourceId) { in getAttributeSet() argument
386 resourceId); in getAttributeSet()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java119 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureADefault() local
120 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureADefault()
135 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureAPolishLocale() local
136 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish")); in shouldLoadFeatureAPolishLocale()
163 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureBDefault() local
164 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureBDefault()
166 resourceId = resources.getIdentifier(FEATURE_B_STRING, null, null); in shouldLoadFeatureBDefault()
167 assertThat(resources.getString(resourceId), equalTo("Feature B String Default")); in shouldLoadFeatureBDefault()
182 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureBPolishLocale() local
183 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish")); in shouldLoadFeatureBPolishLocale()
[all …]
/cts/tests/tests/preference2/src/android/preference2/cts/
DTestUtils.java150 int resourceId = in getMultiWindowFocus() local
153 (resourceId > 0) ? context.getResources().getDimensionPixelSize(resourceId) : 0; in getMultiWindowFocus()
211 int resourceId = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight() local
213 if (resourceId > 0) { in getStatusBarHeight()
215 .getDimensionPixelSize(resourceId); in getStatusBarHeight()
227 int resourceId = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight() local
229 if (resourceId > 0) { in getNavigationBarHeight()
231 .getDimensionPixelSize(resourceId); in getNavigationBarHeight()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DHelper.java284 static ViewNode findNodeByResourceId(AssistStructure structure, String resourceId) { in findNodeByResourceId() argument
285 return findNodeByFilter(structure, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
291 static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { in findNodeByResourceId() argument
292 return findNodeByFilter(contexts, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
298 static ViewNode findNodeByResourceId(ViewNode node, String resourceId) { in findNodeByResourceId() argument
299 return findNodeByFilter(node, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
413 final String resourceId = node.getIdEntry(); in assertTextIsSanitized() local
415 throw new AssertionError("text on sanitized field " + resourceId + ": " + text); in assertTextIsSanitized()
445 static void assertTextOnly(AssistStructure structure, String resourceId, String expectedValue) { in assertTextOnly() argument
446 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertTextOnly()
[all …]
DFatActivityTest.java223 private ViewNode assertNodeExists(String resourceId, int expectedImportantForAutofill) { in assertNodeExists() argument
225 final ViewNode node = findNodeByResourceId(mRoot, resourceId); in assertNodeExists()
226 assertWithMessage("no node with resource id '%s'", resourceId).that(node).isNotNull(); in assertNodeExists()
227 return assertNode(node, resourceId, expectedImportantForAutofill); in assertNodeExists()
DVirtualContainerView.java242 child.setId(1000 + index, packageName, "id", item.resourceId); in onProvideAutofillVirtualStructure()
548 private final String resourceId; field in VirtualContainerView.Item
555 Item(Line line, int id, String resourceId, CharSequence text, boolean editable, in Item() argument
559 this.resourceId = resourceId; in Item()
572 node.setViewIdResourceName(resourceId); in provideAccessibilityNodeInfo()
600 return id + "/" + resourceId + ": " + text + (editable ? " (editable)" : " (read-only)" in toString()
DCustomDescriptionDateTest.java158 private RemoteViews newTemplate(int resourceId) { in newTemplate() argument
159 return new RemoteViews(getContext().getPackageName(), resourceId); in newTemplate()
DGridActivity.java167 final String resourceId = getResourceId(line, col); in onCell() local
169 final OneTimeTextWatcher watcher = new OneTimeTextWatcher(resourceId, cell, value); in onCell()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java554 UiObject message = getUiDevice().findObject(new UiSelector().resourceId( in waitForPrinterUnavailable()
569 .resourceId("com.android.printspooler:id/destination_spinner")); in selectPrinter()
618 button = getUiDevice().findObject(new UiSelector().resourceId("android:id/button1")); in answerPrintServicesWarning()
620 button = getUiDevice().findObject(new UiSelector().resourceId("android:id/button2")); in answerPrintServicesWarning()
629 UiObject orientationSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeOrientation()
642 UiObject orientationSpinner = getUiDevice().findObject(new UiSelector().resourceId( in getOrientation()
654 UiObject mediaSizeSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeMediaSize()
668 UiObject colorSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeColor()
681 UiObject colorSpinner = getUiDevice().findObject(new UiSelector().resourceId( in getColor()
693 UiObject duplexSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeDuplex()
[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.java477 dialog = mDevice.findObject(new UiSelector().resourceId(id)); in UiAlertDialog()
480 new UiSelector().resourceId("com.android.documentsui:id/message")); in UiAlertDialog()
481 yesButton = dialog.getChild(new UiSelector().resourceId("android:id/button1")); in UiAlertDialog()
482 noButton = dialog.getChild(new UiSelector().resourceId("android:id/button2")); in UiAlertDialog()
487 new UiSelector().resourceId("com.android.documentsui:id/do_not_ask_checkbox")); in getDoNotAskAgainCheckBox()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java389 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument
394 afd = context.getResources().openRawResourceFd(resourceId); in hasCodecsForResourceCombo()
421 public static boolean hasCodecsForResource(Context context, int resourceId) { in hasCodecsForResource() argument
422 return hasCodecsForResourceCombo(context, resourceId, ALL_AV_TRACKS, null /* mimePrefix */); in hasCodecsForResource()
425 public static boolean checkCodecsForResource(Context context, int resourceId) { in checkCodecsForResource() argument
426 return check(hasCodecsForResource(context, resourceId), "no decoder found"); in checkCodecsForResource()
432 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument
433 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource()
436 public static boolean checkCodecForResource(Context context, int resourceId, int track) { in checkCodecForResource() argument
437 return check(hasCodecForResource(context, resourceId, track), "no decoder found"); in checkCodecForResource()
[all …]
/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/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/tests/graphics/src/android/graphics/cts/
DColorTest.java89 final int resourceId = pair[1]; in resourceColor() local
93 int observedColor = resources.getColor(resourceId, null); in resourceColor()
101 resources.getValue(resourceId, value, true); in resourceColor()
106 if (expectedColorStateLists.contains(resourceId)) { in resourceColor()
/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/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionsTest.java291 getUiDevice().findObject(new UiSelector().resourceId( in clickAllowButton()
297 getUiDevice().findObject(new UiSelector().resourceId( in clickDenyButton()
302 getUiDevice().findObject(new UiSelector().resourceId( in clickDontAskAgainCheckbox()
308 getUiDevice().findObject(new UiSelector().resourceId( in clickDontAskAgainButton()
426 final int resourceId = mPlatformResources.getIdentifier(labelResName, null, null); in getPermissionLabel() local
427 return mPlatformResources.getString(resourceId); in getPermissionLabel()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java94 public void registerInputDevice(int resourceId) { in registerInputDevice() argument
96 sendHidCommands(resourceId); in registerInputDevice()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java461 int resourceId = R.xml.pm_test; in testGetResources() local
464 assertNotNull(mPackageManager.getXml(PACKAGE_NAME, resourceId, appInfo)); in testGetResources()
466 .getResourceName(resourceId)); in testGetResources()
468 resourceId)); in testGetResources()
470 .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()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java191 private List<PermissionInfo> loadExpectedPermissions(int resourceId) throws Exception { in loadExpectedPermissions() argument
193 try (InputStream in = getContext().getResources().openRawResource(resourceId)) { in loadExpectedPermissions()
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionGroupChange.java99 mUiDevice.findObject(new UiSelector().resourceId( in clickAllowButton()
/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()

12