HomeSort by relevance Sort by last modified time
    Searched full:resourceid (Results 51 - 75 of 528) sorted by null

1 23 4 5 6 7 8 91011>>

  /cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
SplitAppTest.java 114 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
115 assertThat(resources.getString(resourceId), equalTo("Feature A String Default"));
130 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
131 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish"));
158 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
159 assertThat(resources.getString(resourceId), equalTo("Feature A String Default"));
161 resourceId = resources.getIdentifier(FEATURE_B_STRING, null, null);
162 assertThat(resources.getString(resourceId), equalTo("Feature B String Default"));
177 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
178 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish"))
    [all...]
  /external/mesa3d/src/glx/
glx_error.c 38 __glXSendError(Display * dpy, int_fast8_t errorCode, uint_fast32_t resourceID,
58 error.resourceID = resourceID;
77 error.resourceID = err->resource_id;
  /packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
SavedNetworkSettingsTest.java 41 // Keys used to lookup resources by name (see the resourceId helper method).
52 private int resourceId(String type, String name) {
72 onView(withText(resourceId(STRING, WIFI_ADD_NETWORK))).check(matches(isDisplayed()))
74 onView(withText(resourceId(STRING, WIFI_NETWORK_LABEL))).check(matches(isDisplayed()));
WifiSettingsUiTest.java 78 // Keys used to lookup resources by name (see the resourceId/resourceString helper methods).
116 private int resourceId(String type, String name) {
120 /** Similar to {@link #resourceId}, but for accessing R.string.<name> values. */
122 return mContext.getResources().getString(resourceId(STRING, name));
191 onView(withText(resourceId(STRING, WIFI_CONFIGURE_SETTINGS_PREFERENCE_TITLE))).check(
202 onView(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL))).check(
213 onView(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL))).check(
224 onView(allOf(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL)),
357 onView(withText(resourceId(STRING, WIFI_PASSWORD))).check(matches(isDisplayed()));
358 onView(withText(resourceId(STRING, WIFI_SHOW_PASSWORD))).check(matches(isDisplayed()))
    [all...]
  /frameworks/base/tools/aapt2/compile/
IdAssigner.cpp 34 static bool AssignId(IDiagnostics* diag, const ResourceId& id,
48 const ResourceId existing_id(pkg->id.value(), type->id ? type->id.value() : 0,
56 std::map<ResourceId, ResourceName> assigned_ids;
69 const ResourceId assigned_id = iter->second;
81 ResourceId resource_id(package->id.value(), type->id.value(),
102 const ResourceId& pre_assigned_id = stable_id_entry.second;
123 // Build a half filled ResourceId object, which will be used to find the
128 ResourceId resource_id(package->id.value(), 0, 0);
131 // Find the closest matching ResourceId that is <= the one with only the
169 resource_id = ResourceId(package->id.value(), type->id.value(), 0)
    [all...]
IdAssigner.h 34 explicit IdAssigner(const std::unordered_map<ResourceName, ResourceId>* map)
40 const std::unordered_map<ResourceName, ResourceId>* assigned_id_map_ = nullptr;
IdAssigner_test.cpp 43 .AddSimple("android:id/foo", ResourceId(0x01010000))
47 .AddSimple("android:attr/fun", ResourceId(0x01040000))
48 .AddSimple("android:attr/foo", ResourceId(0x01040006))
97 .AddSimple("android:attr/foo", ResourceId(0x01040006))
98 .AddSimple("android:attr/bar", ResourceId(0x01040006))
117 std::unordered_map<ResourceName, ResourceId> id_map = {
118 {test::ParseNameOrDie("android:attr/foo"), ResourceId(0x01010002)}};
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DrawableResourceLoader.java 58 * @param resourceId Resource id
61 public boolean isXml(int resourceId) {
62 return documents.containsKey(resourceExtractor.getResourceName(resourceId));
130 * @param resourceId Resource id
133 protected int[] getDrawableIds(int resourceId) {
134 String resourceName = resourceExtractor.getResourceName(resourceId);
155 public boolean isAnimationDrawable(int resourceId) {
156 Document document = documents.get(resourceExtractor.getResourceName(resourceId));
StringArrayResourceLoader.java 24 public String[] getArrayValue(int resourceId) {
25 String resourceName = resourceExtractor.getResourceName(resourceId);
  /frameworks/base/core/java/android/net/
IIpSecService.aidl 36 void releaseSecurityParameterIndex(int resourceId);
40 void closeUdpEncapsulationSocket(int resourceId);
IpSecUdpEncapResponse.java 33 public final int resourceId;
53 out.writeInt(resourceId);
63 resourceId = IpSecManager.INVALID_RESOURCE_ID;
74 resourceId = inResourceId;
81 resourceId = in.readInt();
  /frameworks/layoutlib/bridge/src/android/view/
PointerIcon_Delegate.java 28 int resourceId) {
29 // HACK: This bypasses the problem of having an enum resolved as a resourceId.
  /developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/
MeatAdapter.java 43 * @param resourceId The resource ID for the layout to be used. The layout should contain an
46 public MeatAdapter(LayoutInflater inflater, int resourceId) {
48 mResourceId = resourceId;
63 return Meat.MEATS[position].resourceId;
82 holder.image.setImageResource(meat.resourceId);
  /frameworks/base/core/tests/coretests/src/android/view/
InflateTest.java 58 public void inflateTest(int resourceId) {
59 mView = mInflater.inflate(resourceId, null);
63 public void inflateCachedTest(int resourceId) {
65 mInflater.inflate(resourceId, null);
67 mInflater.inflate(resourceId, null);
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
Bots.java 91 protected UiObject findObject(String resourceId) {
92 final UiSelector object = new UiSelector().resourceId(resourceId);
98 .resourceId(parentResourceId)
99 .childSelector(new UiSelector().resourceId(childResourceId));
  /cts/tests/autofillservice/src/android/autofillservice/cts/
Helper.java 353 static ViewNode findNodeByResourceId(AssistStructure structure, String resourceId) {
354 return findNodeByFilter(structure, resourceId, RESOURCE_ID_FILTER);
360 static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) {
361 return findNodeByFilter(contexts, resourceId, RESOURCE_ID_FILTER);
367 static ViewNode findNodeByResourceId(ViewNode node, String resourceId) {
368 return findNodeByFilter(node, resourceId, RESOURCE_ID_FILTER);
434 final String resourceId = node.getIdEntry();
436 throw new AssertionError("text on sanitized field " + resourceId + ": " + text);
468 static ViewNode assertTextAndValue(AssistStructure structure, String resourceId,
470 final ViewNode node = findNodeByResourceId(structure, resourceId);
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/util/
TestAttributeSet.java 127 public boolean getAttributeBooleanValue(int resourceId, boolean defaultValue) {
134 Integer resourceId = defaultValue;
136 resourceId = resourceExtractor.getResourceId(value);
138 return resourceId == null ? defaultValue : resourceId;
142 public int getAttributeResourceValue(int resourceId, int defaultValue) {
143 String attrName = resourceExtractor.getResourceName(resourceId);
  /frameworks/base/tools/aapt2/link/
AutoVersioner_test.cpp 58 ResourceId(0x7f020000),
60 .AddItem("android:attr/onClick", ResourceId(0x0101026f),
62 .AddItem("android:attr/paddingStart", ResourceId(0x010103b3),
65 ResourceId(0x01010364), util::make_unique<Id>())
66 .AddItem("android:attr/colorAccent", ResourceId(0x01010435),
71 ResourceId(0x7f020000),
73 .AddItem("android:attr/paddingEnd", ResourceId(0x010103b4),
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
PhotoStoreTest.java 125 * @param resourceId The resource ID of the photo file to test.
127 public void runStorageTestForResource(int resourceId, int expectedWidth,
129 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
137 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO);
157 public void runStorageTestForResourceWithCrop(int resourceId, int expectedWidth,
159 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
203 for (int resourceId : resourceIds) {
205 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL),
207 resourceIdToPhotoMap.put(resourceId, photoFileId);
PhotoLoadingTestCase.java 89 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) {
90 PhotoEntry entry = photoResourceCache.get(resourceId);
93 InputStream is = resources.openRawResource(resourceId);
96 photoResourceCache.put(resourceId, entry);
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
Utils.java 88 * @param resourceId
90 public static void showToast(Context context, int resourceId) {
91 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_LONG).show();
  /external/replicaisland/src/com/replica/replicaisland/
TextureLibrary.java 69 * @param resourceID
72 public Texture allocateTexture(int resourceID) {
73 Texture texture = getTextureByResource(resourceID);
75 texture = addTexture(resourceID, -1, 0, 0);
82 public Texture loadTexture(Context context, GL10 gl, int resourceID) {
83 Texture texture = allocateTexture(resourceID);
210 public boolean isTextureLoaded(int resourceID) {
211 return getTextureByResource(resourceID) != null;
216 * @param resourceID The resource ID of a bitmap defined in R.java.
220 public Texture getTextureByResource(int resourceID) {
    [all...]
  /frameworks/base/tools/aapt2/process/
SymbolTable_test.cpp 26 .AddSimple("android:id/foo", ResourceId(0x01020000))
28 .AddValue("android:attr/foo", ResourceId(0x01010000),
45 .AddValue("android:^attr-private/foo", ResourceId(0x01010000),
  /frameworks/base/core/java/android/gesture/
GestureLibraries.java 48 public static GestureLibrary fromRawResource(Context context, @RawRes int resourceId) {
49 return new ResourceGestureLibrary(context, resourceId);
113 public ResourceGestureLibrary(Context context, int resourceId) {
115 mResourceId = resourceId;
  /frameworks/base/core/java/android/text/style/
ImageSpan.java 114 public ImageSpan(Context context, @DrawableRes int resourceId) {
115 this(context, resourceId, ALIGN_BOTTOM);
122 public ImageSpan(Context context, @DrawableRes int resourceId, int verticalAlignment) {
125 mResourceId = resourceId;

Completed in 459 milliseconds

1 23 4 5 6 7 8 91011>>