Home
last modified time | relevance | path

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

12

/cts/libs/input/src/com/android/cts/input/
DHidJsonParser.java87 private JSONArray getJsonArrayFromResource(int resourceId) { in getJsonArrayFromResource() argument
88 String data = readRawResource(resourceId); in getJsonArrayFromResource()
93 "Could not parse resource " + resourceId + ", received: " + data); in getJsonArrayFromResource()
118 public String readRegisterCommand(int resourceId) { in readRegisterCommand() argument
119 return readRawResource(resourceId); in readRegisterCommand()
147 public int readDeviceId(int resourceId) { in readDeviceId() argument
149 JSONObject json = new JSONObject(readRawResource(resourceId)); in readDeviceId()
152 throw new RuntimeException("Could not read device id from resource " + resourceId); in readDeviceId()
160 public List<HidTestData> getTestData(int resourceId) { in getTestData() argument
161 JSONArray json = getJsonArrayFromResource(resourceId); in getTestData()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java120 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureADefault() local
121 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureADefault()
136 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureAPolishLocale() local
137 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish")); in shouldLoadFeatureAPolishLocale()
164 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureBDefault() local
165 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureBDefault()
167 resourceId = resources.getIdentifier(FEATURE_B_STRING, null, null); in shouldLoadFeatureBDefault()
168 assertThat(resources.getString(resourceId), equalTo("Feature B String Default")); in shouldLoadFeatureBDefault()
183 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureBPolishLocale() local
184 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()
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java129 int resourceId = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight() local
131 if (resourceId > 0) { in getStatusBarHeight()
133 .getDimensionPixelSize(resourceId); in getStatusBarHeight()
146 int resourceId = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight() local
148 if (resourceId > 0) { in getNavigationBarHeight()
150 .getDimensionPixelSize(resourceId); in getNavigationBarHeight()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DHelper.java348 public static ViewNode findNodeByResourceId(AssistStructure structure, String resourceId) { in findNodeByResourceId() argument
349 return findNodeByFilter(structure, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
355 public static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { in findNodeByResourceId() argument
356 return findNodeByFilter(contexts, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
362 public static ViewNode findNodeByResourceId(ViewNode node, String resourceId) { in findNodeByResourceId() argument
363 return findNodeByFilter(node, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
408 @NonNull String resourceId) { in findAutofillIdByResourceId() argument
409 final ViewNode node = findNodeByFilter(context.getStructure(), resourceId, in findAutofillIdByResourceId()
411 assertWithMessage("No node for resourceId %s", resourceId).that(node).isNotNull(); in findAutofillIdByResourceId()
481 final String resourceId = node.getIdEntry(); in assertTextIsSanitized() local
[all …]
DFatActivityTest.java222 private ViewNode assertNodeExists(String resourceId, int expectedImportantForAutofill) {
224 final ViewNode node = findNodeByResourceId(mRoot, resourceId);
225 assertWithMessage("no node with resource id '%s'", resourceId).that(node).isNotNull();
226 return assertNode(node, resourceId, expectedImportantForAutofill);
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.java163 private RemoteViews newTemplate(int resourceId) {
164 return new RemoteViews(getContext().getPackageName(), resourceId);
DGridActivity.java170 final String resourceId = getResourceId(line, col); in onCell() local
172 final OneTimeTextWatcher watcher = new OneTimeTextWatcher(resourceId, cell, value); in onCell()
DOnClickActionTest.java187 private void assertInvisible(UiObject2 saveUi, String resourceId) {
188 mUiBot.assertGoneByRelativeId(saveUi, resourceId, Timeouts.UI_TIMEOUT);
/cts/tests/tests/view/src/android/view/cts/
DPrecompiledLayoutTest.java69 private void compareInflation(int resourceId) { in compareInflation() argument
72 View interpreted = mInflater.inflate(resourceId, null); in compareInflation()
76 View precompiled = mInflater.inflate(resourceId, null); in compareInflation()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java50 return new UiSelector().resourceId( in findRootListSelector()
52 new UiSelector().resourceId(getDocumentsUiPackageId() + ":id/roots_list")); in findRootListSelector()
60 final UiSelector hamburger = new UiSelector().resourceId( in revealRoot()
75 final UiSelector selector = new UiSelector().resourceId( in findSearchViewTextField()
77 new UiSelector().resourceId(getDocumentsUiPackageId() + ":id/search_src_text")); in findSearchViewTextField()
96 new UiSelector().resourceId(getDocumentsUiPackageId() + ":id/action_icon_area"); in findActionIcon()
101 final UiSelector docList = new UiSelector().resourceId( in findDocument()
103 new UiSelector().resourceId(getDocumentsUiPackageId() + ":id/dir_list")); in findDocument()
112 … new UiObject(new UiSelector().resourceId("com.android.documentsui:id/option_menu_list")).click(); in findDocument()
124 return new UiObject(new UiSelector().resourceId( in findSaveButton()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java392 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument
397 afd = context.getResources().openRawResourceFd(resourceId); in hasCodecsForResourceCombo()
424 public static boolean hasCodecsForResource(Context context, int resourceId) { in hasCodecsForResource() argument
425 return hasCodecsForResourceCombo(context, resourceId, ALL_AV_TRACKS, null /* mimePrefix */); in hasCodecsForResource()
428 public static boolean checkCodecsForResource(Context context, int resourceId) { in checkCodecsForResource() argument
429 return check(hasCodecsForResource(context, resourceId), "no decoder found"); in checkCodecsForResource()
435 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument
436 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource()
439 public static boolean checkCodecForResource(Context context, int resourceId, int track) { in checkCodecForResource() argument
440 return check(hasCodecForResource(context, resourceId, track), "no decoder found"); in checkCodecForResource()
[all …]
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java624 button = getUiDevice().findObject(new UiSelector().resourceId("android:id/button1")); in answerPrintServicesWarning()
626 button = getUiDevice().findObject(new UiSelector().resourceId("android:id/button2")); in answerPrintServicesWarning()
635 UiObject orientationSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeOrientation()
648 UiObject orientationSpinner = getUiDevice().findObject(new UiSelector().resourceId( in getOrientation()
660 UiObject mediaSizeSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeMediaSize()
674 UiObject colorSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeColor()
687 UiObject colorSpinner = getUiDevice().findObject(new UiSelector().resourceId( in getColor()
699 UiObject duplexSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeDuplex()
712 UiObject copies = getUiDevice().findObject(new UiSelector().resourceId( in changeCopies()
723 UiObject copies = getUiDevice().findObject(new UiSelector().resourceId( in getCopies()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java390 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument
395 afd = context.getResources().openRawResourceFd(resourceId); in hasCodecsForResourceCombo()
422 public static boolean hasCodecsForResource(Context context, int resourceId) { in hasCodecsForResource() argument
423 return hasCodecsForResourceCombo(context, resourceId, ALL_AV_TRACKS, null /* mimePrefix */); in hasCodecsForResource()
426 public static boolean checkCodecsForResource(Context context, int resourceId) { in checkCodecsForResource() argument
427 return check(hasCodecsForResource(context, resourceId), "no decoder found"); in checkCodecsForResource()
433 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument
434 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource()
437 public static boolean checkCodecForResource(Context context, int resourceId, int track) { in checkCodecForResource() argument
438 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/graphics/src/android/graphics/cts/
DColorTest.java95 final int resourceId = pair[1]; in resourceColor() local
99 int observedColor = resources.getColor(resourceId, null); in resourceColor()
107 resources.getValue(resourceId, value, true); in resourceColor()
112 if (expectedColorStateLists.contains(resourceId)) { in resourceColor()
/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java72 tv1.resourceId = 4; in testSetTo()
81 assertEquals(4, tv2.resourceId); in testSetTo()
136 tv.resourceId = 4; in testToString()
175 tv.resourceId = 4; in testCoerceToString1()
/cts/tests/tests/widget/src/android/widget/cts/
DDigitalClockTest.java122 private AttributeSet getAttributeSet(int resourceId) { in getAttributeSet() argument
123 XmlResourceParser parser = mActivity.getResources().getXml(resourceId); in getAttributeSet()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java232 private List<ExpectedPermissionInfo> loadExpectedPermissions(int resourceId) throws Exception { in loadExpectedPermissions() argument
234 try (InputStream in = sContext.getResources().openRawResource(resourceId)) { in loadExpectedPermissions()
278 private Set<String> loadExpectedPermissionGroupNames(int resourceId) throws Exception { in loadExpectedPermissionGroupNames() argument
280 try (InputStream in = sContext.getResources().openRawResource(resourceId)) { in loadExpectedPermissionGroupNames()
/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/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java144 protected void testInputEvents(int resourceId) { in testInputEvents() argument
145 List<HidTestData> tests = mParser.getTestData(resourceId); in testInputEvents()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java554 int resourceId = R.xml.pm_test; in testGetResources() local
557 assertNotNull(mPackageManager.getXml(PACKAGE_NAME, resourceId, appInfo)); in testGetResources()
559 .getResourceName(resourceId)); in testGetResources()
561 resourceId)); in testGetResources()
563 .getResourceName(resourceId)); in testGetResources()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentAnimatorTest.java543 assertEquals(animatorResourceId, fragment.resourceId); in assertFragmentAnimation()
561 int resourceId; field in FragmentAnimatorTest.AnimatorFragment
585 this.resourceId = nextAnim; in onCreateAnimator()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java347 maybeClick(new UiSelector().resourceId(answeringPkg + ":id/shutter_button")); in getImageCaptureIntentResult()
350 maybeClick(new UiSelector().resourceId(answeringPkg + ":id/shutter_button")); in getImageCaptureIntentResult()
352 maybeClick(new UiSelector().resourceId(answeringPkg + ":id/done_button")); in getImageCaptureIntentResult()

12