/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | Grid2.java | 83 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, 84 R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, 85 R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, 86 R.drawable.sample_thumb_6, R.drawable.sample_thumb_7, 87 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, 88 R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, 89 R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, 90 R.drawable.sample_thumb_6, R.drawable.sample_thumb_7, 91 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, 92 R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, [all …]
|
D | List8.java | 83 R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2, 84 R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, 85 R.drawable.sample_thumb_6, R.drawable.sample_thumb_7}; 114 i.setBackgroundResource(R.drawable.picture_frame); in getView()
|
D | StaticPointerIconButton.java | 20 import android.graphics.drawable.BitmapDrawable; 21 import android.graphics.drawable.Drawable; 51 Drawable d = getContext().getDrawable(R.drawable.smile); in onResolvePointerIcon()
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | Directory.java | 25 new DirectoryEntry("Red Balloon", R.drawable.red_balloon), in initializeDirectory() 26 new DirectoryEntry("Green Balloon", R.drawable.green_balloon), in initializeDirectory() 27 new DirectoryEntry("Blue Balloon", R.drawable.blue_balloon)}), in initializeDirectory() 29 new DirectoryEntry("Old school huffy", R.drawable.blue_bike), in initializeDirectory() 30 new DirectoryEntry("New Bikes", R.drawable.rainbow_bike), in initializeDirectory() 31 new DirectoryEntry("Chrome Fast", R.drawable.chrome_wheel)}), in initializeDirectory() 33 new DirectoryEntry("Steampunk Android", R.drawable.punk_droid), in initializeDirectory() 34 new DirectoryEntry("Stargazing Android", R.drawable.stargazer_droid), in initializeDirectory() 35 new DirectoryEntry("Big Android", R.drawable.big_droid) }), in initializeDirectory() 37 new DirectoryEntry("Cupcake", R.drawable.cupcake), in initializeDirectory() [all …]
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/ |
D | RecyclingImageView.java | 20 import android.graphics.drawable.Drawable; 21 import android.graphics.drawable.LayerDrawable; 56 public void setImageDrawable(Drawable drawable) { in setImageDrawable() argument 61 super.setImageDrawable(drawable); in setImageDrawable() 64 notifyDrawable(drawable, true); in setImageDrawable() 76 private static void notifyDrawable(Drawable drawable, final boolean isDisplayed) { in notifyDrawable() argument 77 if (drawable instanceof RecyclingBitmapDrawable) { in notifyDrawable() 79 ((RecyclingBitmapDrawable) drawable).setIsDisplayed(isDisplayed); in notifyDrawable() 80 } else if (drawable instanceof LayerDrawable) { in notifyDrawable() 82 LayerDrawable layerDrawable = (LayerDrawable) drawable; in notifyDrawable()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | DensityActivity.java | 28 import android.graphics.drawable.BitmapDrawable; 29 import android.graphics.drawable.Drawable; 56 addBitmapDrawable(layout, R.drawable.logo120dpi, true); in onCreate() 57 addBitmapDrawable(layout, R.drawable.logo160dpi, true); in onCreate() 58 addBitmapDrawable(layout, R.drawable.logo240dpi, true); in onCreate() 63 addBitmapDrawable(layout, R.drawable.logo120dpi, false); in onCreate() 64 addBitmapDrawable(layout, R.drawable.logo160dpi, false); in onCreate() 65 addBitmapDrawable(layout, R.drawable.logo240dpi, false); in onCreate() 70 addResourceDrawable(layout, R.drawable.logo120dpi); in onCreate() 71 addResourceDrawable(layout, R.drawable.logo160dpi); in onCreate() [all …]
|
/development/samples/MultiResolution/src/com/example/android/multires/ |
D | MultiRes.java | 29 private int[] mPhotoIds = new int[] { R.drawable.sample_0, 30 R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, 31 R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, 32 R.drawable.sample_7 };
|
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/ |
D | BitmapAllocation.java | 52 final int[] imageIDs = {R.drawable.a, R.drawable.b, R.drawable.c, R.drawable.d, in onCreate() 53 R.drawable.e, R.drawable.f}; in onCreate() 62 BitmapFactory.decodeResource(getResources(), R.drawable.a, mBitmapOptions); in onCreate() 68 BitmapFactory.decodeResource(getResources(), R.drawable.a, mBitmapOptions); in onCreate()
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ActivityTransition.java | 24 import android.graphics.drawable.ColorDrawable; 44 R.drawable.ball, 45 R.drawable.block, 46 R.drawable.ducky, 47 R.drawable.jellies, 48 R.drawable.mug, 49 R.drawable.pencil, 50 R.drawable.scissors, 51 R.drawable.woot,
|
D | Transition3d.java | 45 R.drawable.photo1, 46 R.drawable.photo2, 47 R.drawable.photo3, 48 R.drawable.photo4, 49 R.drawable.photo5, 50 R.drawable.photo6
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
D | NinePatchLab.java | 25 import android.graphics.drawable.*; 78 R.drawable.bg_grad_blue, in NPView() 79 R.drawable.bg_grad_green, in NPView() 80 R.drawable.bg_grad_grey, in NPView() 81 R.drawable.bg_grad_red, in NPView() 82 R.drawable.bg_grad_yellow, in NPView() 85 R.drawable.btn_dark_ticks_stretch_multiple, in NPView() 86 R.drawable.btn_dark_ticks_stretch_single, in NPView() 87 R.drawable.btn_transparent_ticks_stretch_multiple, in NPView() 88 R.drawable.btn_transparent_ticks_stretch_single, in NPView() [all …]
|
/development/samples/Home/src/com/example/android/home/ |
D | Wallpaper.java | 46 R.drawable.bg_android_icon, 47 R.drawable.bg_sunrise_icon, 48 R.drawable.bg_sunset_icon, 52 R.drawable.bg_android, 53 R.drawable.bg_sunrise, 54 R.drawable.bg_sunset, 143 i.setBackgroundResource(android.R.drawable.picture_frame); in getView()
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | ImageWorker.java | 23 import android.graphics.drawable.BitmapDrawable; 24 import android.graphics.drawable.ColorDrawable; 25 import android.graphics.drawable.Drawable; 26 import android.graphics.drawable.TransitionDrawable; 245 final Drawable drawable = imageView.getDrawable(); in getBitmapWorkerTask() local 246 if (drawable instanceof AsyncDrawable) { in getBitmapWorkerTask() 247 final AsyncDrawable asyncDrawable = (AsyncDrawable) drawable; in getBitmapWorkerTask() 286 BitmapDrawable drawable = null; in doInBackground() local 322 drawable = new BitmapDrawable(mResources, bitmap); in doInBackground() 326 drawable = new RecyclingBitmapDrawable(mResources, bitmap); in doInBackground() [all …]
|
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/ |
D | GridExampleActivity.java | 30 import android.graphics.drawable.BitmapDrawable; 31 import android.graphics.drawable.Drawable; 85 Drawable drawable = mBackgrounds.get(pt); in getBackgroundForPage() local 86 if (drawable == null) { in getBackgroundForPage() 98 drawable = new BitmapDrawable(mContext.getResources(), bm); in getBackgroundForPage() 99 mBackgrounds.put(pt, drawable); in getBackgroundForPage() 101 return drawable; in getBackgroundForPage()
|
/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/ |
D | PictureViewer.java | 23 import android.graphics.drawable.BitmapDrawable; 39 R.drawable.p1, 40 R.drawable.p2, 41 R.drawable.p3, 42 R.drawable.p4,
|
/development/samples/JetBoy/src/com/example/android/jetboy/ |
D | JetBoyView.java | 367 mTitleBG = BitmapFactory.decodeResource(mRes, R.drawable.title_hori); in JetBoyThread() 374 mBackgroundImageFar = BitmapFactory.decodeResource(mRes, R.drawable.background_a); in JetBoyThread() 376 mLaserShot = BitmapFactory.decodeResource(mRes, R.drawable.laser); in JetBoyThread() 378 mBackgroundImageNear = BitmapFactory.decodeResource(mRes, R.drawable.background_b); in JetBoyThread() 380 mShipFlying[0] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_1); in JetBoyThread() 381 mShipFlying[1] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_2); in JetBoyThread() 382 mShipFlying[2] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_3); in JetBoyThread() 383 mShipFlying[3] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_4); in JetBoyThread() 385 mBeam[0] = BitmapFactory.decodeResource(mRes, R.drawable.intbeam_1); in JetBoyThread() 386 mBeam[1] = BitmapFactory.decodeResource(mRes, R.drawable.intbeam_2); in JetBoyThread() [all …]
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
D | BitmapUtils.java | 26 import android.graphics.drawable.BitmapDrawable; 32 R.drawable.p1, 33 R.drawable.p2, 34 R.drawable.p3, 35 R.drawable.p4
|
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
D | ThumbnailRadioButton.java | 22 import android.graphics.drawable.BitmapDrawable; 23 import android.graphics.drawable.Drawable; 24 import android.graphics.drawable.LayerDrawable; 25 import android.graphics.drawable.ShapeDrawable; 26 import android.graphics.drawable.StateListDrawable; 27 import android.graphics.drawable.shapes.RectShape;
|
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/ |
D | SampleGridPagerAdapter.java | 24 import android.graphics.drawable.ColorDrawable; 25 import android.graphics.drawable.Drawable; 26 import android.graphics.drawable.TransitionDrawable; 99 int resid = R.drawable.bugdroid_large; 128 R.drawable.debug_background_1, 129 R.drawable.debug_background_2, 130 R.drawable.debug_background_3, 131 R.drawable.debug_background_4, 132 R.drawable.debug_background_5
|
/development/samples/SoftKeyboard/src/com/android/inputmethodcommon/ |
D | InputMethodSettingsInterface.java | 25 import android.graphics.drawable.Drawable; 68 public void setSubtypeEnablerIcon(Drawable drawable); in setSubtypeEnablerIcon() argument
|
D | InputMethodSettingsFragment.java | 26 import android.graphics.drawable.Drawable; 89 public void setSubtypeEnablerIcon(Drawable drawable) { in setSubtypeEnablerIcon() argument 90 mSettings.setSubtypeEnablerIcon(drawable); in setSubtypeEnablerIcon()
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
D | PhotoView.java | 23 import android.graphics.drawable.Drawable; 238 public void setImageDrawable(Drawable drawable) { in setImageDrawable() argument 247 if (drawable == null) { in setImageDrawable() 258 super.setImageDrawable(drawable); in setImageDrawable() 330 public void setStatusDrawable(Drawable drawable) { in setStatusDrawable() argument 334 setImageDrawable(drawable); in setStatusDrawable()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | StatusBarNotifications.java | 56 setMood(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message, in onCreate() 64 setMood(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message, in onCreate() 72 setMood(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message, false); in onCreate() 79 setMood(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message, in onCreate() 87 … setMood(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message, true); in onCreate() 94 setMood(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message, true); in onCreate() 101 setMoodView(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message); in onCreate() 108 setMoodView(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message); in onCreate() 115 setMoodView(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message); in onCreate() 259 .setSmallIcon(R.drawable.stat_happy) // the status icon in setDefault()
|
/development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/ |
D | MainWearActivity.java | 121 R.drawable.ic_permission_approved, 0, 0, 0); in onCreate() 226 R.drawable.ic_permission_approved_bw, 0, 0, 0); in onEnterAmbient() 229 R.drawable.ic_permission_denied_bw, 0, 0, 0); in onEnterAmbient() 234 R.drawable.ic_permission_approved_bw, 0, 0, 0); in onEnterAmbient() 237 R.drawable.ic_permission_denied_bw, 0, 0, 0); in onEnterAmbient() 248 R.drawable.ic_permission_approved, 0, 0, 0); in onExitAmbient() 251 R.drawable.ic_permission_denied, 0, 0, 0); in onExitAmbient() 256 R.drawable.ic_permission_approved, 0, 0, 0); in onExitAmbient() 259 R.drawable.ic_permission_denied, 0, 0, 0); in onExitAmbient() 333 R.drawable.ic_permission_approved, 0, 0, 0); in onRequestPermissionsResult() [all …]
|
/development/samples/browseable/WearHighBandwidthNetworking/src/com.example.android.wearable.wear.wearhighbandwidthnetworking/ |
D | MainActivity.java | 280 mConnectivityIcon.setImageResource(R.drawable.ic_cloud_happy); in setUiState() 283 mConnectivityIcon.setImageResource(R.drawable.ic_cloud_sad); in setUiState() 288 mButtonIcon.setImageResource(R.drawable.ic_fast_network); in setUiState() 295 mConnectivityIcon.setImageResource(R.drawable.ic_cloud_disconnected); in setUiState() 306 mConnectivityIcon.setImageResource(R.drawable.ic_cloud_happy); in setUiState() 309 mConnectivityIcon.setImageResource(R.drawable.ic_cloud_sad); in setUiState() 318 mButtonIcon.setImageResource(R.drawable.ic_no_network); in setUiState() 325 mConnectivityIcon.setImageResource(R.drawable.ic_cloud_disconnected); in setUiState() 333 mButtonIcon.setImageResource(R.drawable.ic_wifi_network); in setUiState()
|