HomeSort by relevance Sort by last modified time
    Searched refs:resourceId (Results 1 - 25 of 124) sorted by null

1 2 3 4 5

  /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
PictureData.java 22 int resourceId;
26 public PictureData(int resourceId, String description, Bitmap thumbnail) {
27 this.resourceId = resourceId;
BitmapUtils.java 62 int resourceId = mPhotos[(int) (Math.random() * mPhotos.length)];
63 Bitmap bitmap = getBitmap(resources, resourceId);
66 pictures.add(new PictureData(resourceId, description, thumbnail));
75 static Bitmap getBitmap(Resources resources, int resourceId) {
76 Bitmap bitmap = sBitmapResourceMap.get(resourceId);
78 bitmap = BitmapFactory.decodeResource(resources, resourceId);
79 sBitmapResourceMap.put(resourceId, bitmap);
  /external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
ResourceEntry.java 30 @VisibleForTesting static final String KEY_RESOURCE_ID = "resourceId";
34 private final int resourceId;
44 int resourceId;
52 resourceId = bundle.getInt(KEY_RESOURCE_ID);
53 return new ResourceEntry(packageName, resourceName, resourceId);
56 public ResourceEntry(String packageName, String resourceName, int resourceId) {
59 this.resourceId = resourceId;
71 return this.resourceId;
83 result.putInt(KEY_RESOURCE_ID, resourceId);
    [all...]
  /developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/
Meat.java 24 public int resourceId;
27 public Meat(int resourceId, String title) {
28 this.resourceId = resourceId;
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);
  /developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/
Meat.java 24 public int resourceId;
27 public Meat(int resourceId, String title) {
28 this.resourceId = resourceId;
MeatAdapter.java 31 public MeatAdapter(LayoutInflater inflater, int resourceId) {
33 mResourceId = resourceId;
48 return Meat.MEATS[position].resourceId;
72 holder.image.setImageResource(meat.resourceId);
  /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/
ScriptListAdapter.java 68 int resourceId;
70 resourceId = R.drawable.folder;
72 resourceId = FeaturedInterpreters.getInterpreterIcon(mContext, script.getName());
73 if (resourceId == 0) {
74 resourceId = R.drawable.sl4a_logo_32;
77 icon.setImageResource(resourceId);
  /cts/tests/tests/content/src/android/content/cts/
Intent_ShortcutIconResourceTest.java 32 final int resourceId = android.content.cts.R.string.notify;
43 resourceId);
45 resourceId);
53 resourceId);
55 resourceId);
  /external/libchrome/base/android/java/src/org/chromium/base/
PackageUtils.java 40 * @param resourceId The id of the resource.
43 public static Bitmap decodeImageResource(String otherPackage, int resourceId) {
47 return BitmapFactory.decodeResource(resources, resourceId);
  /external/droiddriver/src/io/appium/droiddriver/finders/
By.java 61 public static MatchFinder resourceId(int resourceId) {
63 return resourceId(targetContext.getResources().getResourceName(resourceId));
70 public static MatchFinder resourceId(String resourceId) {
71 return new MatchFinder(Predicates.attributeEquals(Attribute.RESOURCE_ID, resourceId));
  /cts/libs/input/src/com/android/cts/input/
HidJsonParser.java 85 * @param resourceId The resourceId that contains the json data (typically inside R.raw)
87 private JSONArray getJsonArrayFromResource(int resourceId) {
88 String data = readRawResource(resourceId);
93 "Could not parse resource " + resourceId + ", received: " + data);
100 * @param id resourceId of the file
115 * @param resourceId the raw resource id that contains the command
118 public String readRegisterCommand(int resourceId) {
119 return readRawResource(resourceId);
144 * @param resourceId resorce file that contains the register command
    [all...]
  /cts/tests/tests/preference/src/android/preference/cts/
TestUtils.java 129 int resourceId = mInstrumentation.getTargetContext().getResources()
131 if (resourceId > 0) {
133 .getDimensionPixelSize(resourceId);
146 int resourceId = mInstrumentation.getTargetContext().getResources()
148 if (resourceId > 0) {
150 .getDimensionPixelSize(resourceId);
  /cts/tests/tests/view/src/android/view/cts/
PrecompiledLayoutTest.java 69 private void compareInflation(int resourceId) {
72 View interpreted = mInflater.inflate(resourceId, null);
76 View precompiled = mInflater.inflate(resourceId, null);
  /cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
SplitAppTest.java 120 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
121 assertThat(resources.getString(resourceId), equalTo("Feature A String Default"));
136 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
137 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish"));
164 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
165 assertThat(resources.getString(resourceId), equalTo("Feature A String Default"));
167 resourceId = resources.getIdentifier(FEATURE_B_STRING, null, null);
168 assertThat(resources.getString(resourceId), equalTo("Feature B String Default"));
183 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null);
184 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish"))
    [all...]
  /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();
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/
Utils.java 59 public static void showToast(Context context, int resourceId) {
60 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_LONG).show();
  /developers/build/prebuilts/gradle/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
ContentItem.java 42 * @param resourceId - Resource ID to use for this item's content
44 public ContentItem(int type, int resourceId) {
46 contentResourceId = resourceId;
  /developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
ContentItem.java 42 * @param resourceId - Resource ID to use for this item's content
44 public ContentItem(int type, int resourceId) {
46 contentResourceId = resourceId;
  /development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/content/
ContentItem.java 42 * @param resourceId - Resource ID to use for this item's content
44 public ContentItem(int type, int resourceId) {
46 contentResourceId = resourceId;
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/res/
NullResourceTable.java 17 public ResName getResName(int resourceId) {
18 System.out.println("getResName(" + resourceId + ")");
  /external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
RoutingResourceTable.java 51 public ResName getResName(int resourceId) {
52 return pickFor(resourceId).getResName(resourceId);
ResourceTable.java 12 ResName getResName(int resourceId);
  /external/droiddriver/manualtest/src/io/appium/droiddriver/manualtest/
ManualTest.java 37 Finder password_edit = By.resourceId("com.google.android.gsf.login:id/password_edit");
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowAlertController.java 66 public void setView(int resourceId) {
67 setView(LayoutInflater.from(RuntimeEnvironment.application).inflate(resourceId, null));

Completed in 7302 milliseconds

1 2 3 4 5