Home
last modified time | relevance | path

Searched refs:mResources (Results 1 – 5 of 5) sorted by relevance

/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DContactPhotoBinder.java47 private final Resources mResources; field in ContactPhotoBinder
53 mResources = mContext.getResources(); in ContactPhotoBinder()
55 mDefault = mResources.getDrawable(R.drawable.ic_contact_picture); in ContactPhotoBinder()
59 mPhotoSize = (int) (PHOTO_SIZE_DIP * mResources.getDisplayMetrics().density + 0.5f); in ContactPhotoBinder()
80 d = new BitmapDrawable(mResources, bitmap); in bind()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageWorker.java53 protected Resources mResources; field in ImageWorker
61 mResources = context.getResources(); in ImageWorker()
97 new AsyncDrawable(mResources, mLoadingBitmap, task); in loadImage()
138 mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId); in setLoadingImage()
322 drawable = new BitmapDrawable(mResources, bitmap); in doInBackground()
326 drawable = new RecyclingBitmapDrawable(mResources, bitmap); in doInBackground()
442 new BitmapDrawable(mResources, mLoadingBitmap)); in setImageDrawable()
DImageResizer.java95 return decodeSampledBitmapFromResource(mResources, resId, mImageWidth, in processBitmap()
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageLoader.java52 private Resources mResources; field in ImageLoader
55 mResources = context.getResources(); in ImageLoader()
90 new AsyncDrawable(mResources, mLoadingBitmap, task); in loadImage()
102 mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId); in setLoadingImage()
318 new BitmapDrawable(mResources, bitmap) in setImageBitmap()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java339 private final Resources mResources; field in GameControllerInput.SummaryAdapter
354 mResources = resources; in SummaryAdapter()
357 mResources.getString(R.string.game_controller_input_heading_device)); in SummaryAdapter()
359 mResources.getString(R.string.game_controller_input_label_device_name)); in SummaryAdapter()
362 mResources.getString(R.string.game_controller_input_heading_axes)); in SummaryAdapter()
364 mResources.getString(R.string.game_controller_input_heading_keys)); in SummaryAdapter()
410 column.setContent(mResources.getString(state.isKeyPressed(i) in show()