Home
last modified time | relevance | path

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

/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DPictureData.java22 int resourceId; field in PictureData
26 public PictureData(int resourceId, String description, Bitmap thumbnail) { in PictureData() argument
27 this.resourceId = resourceId; in PictureData()
DBitmapUtils.java62 int resourceId = mPhotos[(int) (Math.random() * mPhotos.length)]; in loadPhotos() local
63 Bitmap bitmap = getBitmap(resources, resourceId); in loadPhotos()
66 pictures.add(new PictureData(resourceId, description, thumbnail)); in loadPhotos()
75 static Bitmap getBitmap(Resources resources, int resourceId) { in getBitmap() argument
76 Bitmap bitmap = sBitmapResourceMap.get(resourceId); in getBitmap()
78 bitmap = BitmapFactory.decodeResource(resources, resourceId); in getBitmap()
79 sBitmapResourceMap.put(resourceId, bitmap); in getBitmap()
DActivityAnimations.java119 putExtra(PACKAGE + ".resourceId", info.resourceId).
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/content/
DContentItem.java44 public ContentItem(int type, int resourceId) { in ContentItem() argument
46 contentResourceId = resourceId; in ContentItem()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DClockBackService.java248 int resourceId = message.arg1;
249 playEarcon(resourceId);
380 int resourceId = (feedbackIndex == INDEX_SCREEN_ON) ? R.string.template_screen_on in generateScreenOnOrOffUtternace() local
382 String template = mContext.getString(resourceId); in generateScreenOnOrOffUtternace()
565 Integer resourceId = sSoundsResourceIds.get(earconId); in playEarcon() local
566 if (resourceId != null) { in playEarcon()
568 mTts.addEarcon(earconName, getPackageName(), resourceId); in playEarcon()
DCustomViewAccessibilityActivity.java223 final int textColor = context.getResources().getColor(typedValue.resourceId); in BaseToggleButton()
/development/samples/browseable/Geofencing/Application/src/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()
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/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()
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DDeviceControlActivity.java229 private void updateConnectionState(final int resourceId) { in updateConnectionState() argument
233 mConnectionState.setText(resourceId); in updateConnectionState()
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/
DPlayerSetupActivity.java105 private Button setupButton(int resourceId) { in setupButton() argument
106 Button button = (Button) findViewById(resourceId); in setupButton()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabLayout.java183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabLayout.java183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabLayout.java183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabLayout.java183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabLayout.java183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabLayout.java183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()