Home
last modified time | relevance | path

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

12

/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/
DMeat.java24 public int resourceId; field in Meat
27 public Meat(int resourceId, String title) { in Meat() argument
28 this.resourceId = resourceId; in Meat()
DMeatAdapter.java46 public MeatAdapter(LayoutInflater inflater, int resourceId) { in MeatAdapter() argument
48 mResourceId = resourceId; in MeatAdapter()
63 return Meat.MEATS[position].resourceId; in getItemId()
82 holder.image.setImageResource(meat.resourceId); in getView()
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/
DMeat.java24 public int resourceId; field in Meat
27 public Meat(int resourceId, String title) { in Meat() argument
28 this.resourceId = resourceId; in Meat()
DMeatAdapter.java31 public MeatAdapter(LayoutInflater inflater, int resourceId) { in MeatAdapter() argument
33 mResourceId = resourceId; in MeatAdapter()
48 return Meat.MEATS[position].resourceId; in getItemId()
72 holder.image.setImageResource(meat.resourceId); in bindView()
DDetailFragment.java57 public static DetailFragment newInstance(int resourceId, String title, in newInstance() argument
61 args.putInt(ARG_RESOURCE_ID, resourceId); in newInstance()
DFragmentTransitionFragment.java67 DetailFragment.newInstance(meat.resourceId, meat.title, in onItemClick()
/developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
DContentItem.java44 public ContentItem(int type, int resourceId) { in ContentItem() argument
46 contentResourceId = resourceId; in ContentItem()
/developers/build/prebuilts/gradle/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
DContentItem.java44 public ContentItem(int type, int resourceId) { in ContentItem() argument
46 contentResourceId = resourceId; in ContentItem()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/
DUtils.java59 public static void showToast(Context context, int resourceId) { in showToast() argument
60 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_LONG).show(); in showToast()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DUtils.java90 public static void showToast(Context context, int resourceId) { in showToast() argument
91 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_LONG).show(); in showToast()
DRecommendationBuilder.java95 public RecommendationBuilder setSmallIcon(int resourceId) { in setSmallIcon() argument
96 mSmallIcon = resourceId; in setSmallIcon()
DMainFragment.java220 protected void setDefaultBackground(int resourceId) {
221 mDefaultBackground = getResources().getDrawable(resourceId);
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/
DHeuristicsService.java195 String resourceId = node.getIdEntry(); in getHint() local
196 hint = inferHint(node, resourceId); in getHint()
198 Log.d(TAG, "Found hint using resourceId(" + resourceId + "): " + hint); in getHint()
200 } else if (!TextUtils.isEmpty(resourceId)) { in getHint()
201 Log.v(TAG, "No hint using resourceId: " + resourceId); in getHint()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/
DDebugService.java196 String resourceId = node.getIdEntry(); in getHint() local
197 hint = inferHint(node, resourceId); in getHint()
199 Log.d(TAG, "Found hint using resourceId(" + resourceId + "): " + hint); in getHint()
201 } else if (!TextUtils.isEmpty(resourceId)) { in getHint()
202 Log.v(TAG, "No hint using resourceId: " + resourceId); in getHint()
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/util/
DTvUtil.java135 public static Bitmap convertToBitmap(Context context, int resourceId) { in convertToBitmap() argument
136 Drawable drawable = context.getDrawable(resourceId); in convertToBitmap()
149 return BitmapFactory.decodeResource(context.getResources(), resourceId); in convertToBitmap()
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/
DAnalogComplicationConfigRecyclerViewAdapter.java470 public void setDefaultComplicationDrawable(int resourceId) { in setDefaultComplicationDrawable() argument
472 mDefaultComplicationDrawable = context.getDrawable(resourceId); in setDefaultComplicationDrawable()
597 public void setIcon(int resourceId) { in setIcon() argument
599 mMoreOptionsImageView.setImageDrawable(context.getDrawable(resourceId)); in setIcon()
626 public void setIcon(int resourceId) { in setIcon() argument
629 context.getDrawable(resourceId), null, null, null); in setIcon()
760 public void setIcon(int resourceId) { in setIcon() argument
763 context.getDrawable(resourceId), null, null, null); in setIcon()
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/
DAnalogComplicationConfigRecyclerViewAdapter.java469 public void setDefaultComplicationDrawable(int resourceId) { in setDefaultComplicationDrawable() argument
471 mDefaultComplicationDrawable = context.getDrawable(resourceId); in setDefaultComplicationDrawable()
596 public void setIcon(int resourceId) { in setIcon() argument
598 mMoreOptionsImageView.setImageDrawable(context.getDrawable(resourceId)); in setIcon()
625 public void setIcon(int resourceId) { in setIcon() argument
628 context.getDrawable(resourceId), null, null, null); in setIcon()
759 public void setIcon(int resourceId) { in setIcon() argument
762 context.getDrawable(resourceId), null, null, null); in setIcon()
/developers/build/prebuilts/gradle/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
DGeofenceTransitionsIntentService.java116 private void showToast(final Context context, final int resourceId) { in showToast() argument
121 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_SHORT).show(); in showToast()
/developers/samples/android/deprecated/wearable/wear/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
DGeofenceTransitionsIntentService.java116 private void showToast(final Context context, final int resourceId) { in showToast() argument
121 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_SHORT).show(); in showToast()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/recommendation/
DRecommendationBuilder.java103 public RecommendationBuilder setSmallIcon(int resourceId) { in setSmallIcon() argument
104 mSmallIcon = resourceId; in setSmallIcon()
/developers/build/prebuilts/gradle/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
DDragSourceFragment.java217 private void copyImageResourceToFile(int resourceId, File filePath) { in copyImageResourceToFile() argument
218 Bitmap image = BitmapFactory.decodeResource(getResources(), resourceId); in copyImageResourceToFile()
/developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
DDragSourceFragment.java217 private void copyImageResourceToFile(int resourceId, File filePath) { in copyImageResourceToFile() argument
218 Bitmap image = BitmapFactory.decodeResource(getResources(), resourceId); in copyImageResourceToFile()
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
DRichTvInputService.java458 public final int resourceId; field in RichTvInputService.ProgramInfo
462 … TvContentRating[] contentRatings, String videoUrl, int videoType, int resourceId) { in ProgramInfo() argument
470 this.resourceId = resourceId; in ProgramInfo()
/developers/build/prebuilts/gradle/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/
DDeviceControlActivity.java229 private void updateConnectionState(final int resourceId) { in updateConnectionState() argument
233 mConnectionState.setText(resourceId); in updateConnectionState()
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/
DDeviceControlActivity.java229 private void updateConnectionState(final int resourceId) { in updateConnectionState() argument
233 mConnectionState.setText(resourceId); in updateConnectionState()

12