/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
D | ExpandingCells.java | 50 getResources().getString(R.string.short_lorem_ipsum)), in onCreate() 52 getResources().getString(R.string.medium_lorem_ipsum)), in onCreate() 54 getResources().getString(R.string.long_lorem_ipsum)), in onCreate()
|
/development/samples/wearable/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
D | WearableListItemLayout.java | 45 mFadedTextAlpha = getResources().getInteger(R.integer.action_text_faded_alpha) / 100f; in WearableListItemLayout() 46 mFadedCircleColor = getResources().getColor(R.color.wl_gray); in WearableListItemLayout() 47 mChosenCircleColor = getResources().getColor(R.color.wl_blue); in WearableListItemLayout()
|
/development/samples/wearable/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
D | WearableListItemLayout.java | 46 mFadedTextAlpha = getResources().getInteger(R.integer.action_text_faded_alpha) / 100f; in WearableListItemLayout() 47 mFadedCircleColor = getResources().getColor(R.color.wl_gray); in WearableListItemLayout() 48 mChosenCircleColor = getResources().getColor(R.color.wl_blue); in WearableListItemLayout()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | Hover.java | 80 mMessageTextView.setText(Hover.this.getResources().getString( in onCreate() 85 mMessageTextView.setText(Hover.this.getResources().getString( in onCreate() 90 mMessageTextView.setText(Hover.this.getResources().getString( in onCreate()
|
D | HoverInterceptorView.java | 59 textView.setText(getResources().getString( in onHoverEvent() 63 textView.setText(getResources().getString( in onHoverEvent()
|
D | SecureView.java | 112 String[] messages = getResources().getStringArray(R.array.secure_view_clicked); in setClickedAction() 118 .setNeutralButton(getResources().getString( in setClickedAction() 133 .setNeutralButton(getResources().getString( in setTouchFilter()
|
D | SplitTouchView.java | 56 String[] responses = getResources().getStringArray(R.array.cheese_responses); 59 String message = getResources().getString(R.string.split_touch_view_cheese_toast,
|
D | List14.java | 56 mIcon1 = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon48x48_1); in EfficientAdapter() 57 mIcon2 = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon48x48_2); in EfficientAdapter()
|
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/ |
D | BitmapAllocation.java | 62 BitmapFactory.decodeResource(getResources(), R.drawable.a, mBitmapOptions); in onCreate() 68 BitmapFactory.decodeResource(getResources(), R.drawable.a, mBitmapOptions); in onCreate() 84 mCurrentBitmap = BitmapFactory.decodeResource(getResources(), in onCreate()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | DensityActivity.java | 140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); in addBitmapDrawable() 141 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable() 152 final Drawable d = getResources().getDrawable(resource); in addResourceDrawable() 174 final Drawable d = getResources().getDrawable(resource); in addNinePatchResourceDrawable() 187 bitmap = BitmapFactory.decodeResource(getResources(), id); in loadAndPrintDpi() 191 bitmap = BitmapFactory.decodeResource(getResources(), id, opts); in loadAndPrintDpi() 207 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in onMeasure()
|
D | BitmapDecode.java | 69 is = context.getResources().openRawResource(R.drawable.beach); in SampleView() 87 is = context.getResources().openRawResource(R.drawable.frog); in SampleView() 100 mDrawable = context.getResources().getDrawable(R.drawable.button); in SampleView() 103 is = context.getResources().openRawResource(R.drawable.animated_gif); in SampleView()
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
D | CompatTabEclair.java | 38 mText = mActivity.getResources().getText(resId); in setText() 44 mIcon = mActivity.getResources().getDrawable(resId); in setIcon()
|
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/ |
D | SamplePresentation.java | 62 smallText.setText(getResources().getString(R.string.display_name, name)); in onCreate() 74 String s = getResources().getString(R.string.display_color, color); in setColor()
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
D | Adapters.java | 503 parser = context.getResources().getXml(id); in loadAdapter() 509 context.getResources().getResourceEntryName(id)); in loadAdapter() 515 context.getResources().getResourceEntryName(id)); in loadAdapter() 552 c.getResources().getResourceEntryName(id) + " must be a <" + in createAdapterFromXml() 560 " in " + c.getResources().getResourceEntryName(id)); in createAdapterFromXml() 610 mResources = mContext.getResources(); in XmlCursorAdapterParser() 750 context.getResources().getResourceEntryName(mId)); in findBinder() 781 mContext.getResources().getResourceEntryName(mId) + ": " + type, e); in createBinder() 784 mContext.getResources().getResourceEntryName(mId) + ": " + type, e); in createBinder() 787 mContext.getResources().getResourceEntryName(mId) + ": " + type, e); in createBinder() [all …]
|
/development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/ |
D | BitmapScaling.java | 46 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), in onCreate() 67 Bitmap scaledBitmap = BitmapFactory.decodeResource(getResources(), in addScaledImageView()
|
/development/samples/devbytes/animation/CrossFading/src/com/example/android/crossfading/ |
D | CrossFading.java | 55 drawables[0] = new BitmapDrawable(getResources(), bitmap0); in onCreate() 56 drawables[1] = new BitmapDrawable(getResources(), bitmap1); in onCreate()
|
/development/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 162 myWebView.loadData(getResources().getString(R.string.connection_error), in showErrorPage() 198 return getResources().getString(R.string.connection_error); in doInBackground() 200 return getResources().getString(R.string.xml_error); in doInBackground() 230 htmlString.append("<h3>" + getResources().getString(R.string.page_title) + "</h3>"); in loadXmlFromNetwork() 231 htmlString.append("<em>" + getResources().getString(R.string.updated) + " " + in loadXmlFromNetwork()
|
/development/samples/devbytes/animation/SlidingFragments/src/com/example/android/slidingfragments/ |
D | SlidingFragments.java | 151 movingFragmentRotator.setStartDelay(getResources(). in slideBack() 183 getResources().getInteger(R.integer.half_slide_up_down_duration)); in slideForward() 187 s.setStartDelay(getResources().getInteger(R.integer.slide_up_down_duration)); in slideForward()
|
/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/ |
D | PictureViewer.java | 64 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), in onCreate() 66 drawables[i] = new BitmapDrawable(getResources(), bitmap); in onCreate()
|
/development/samples/wearable/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/fragments/ |
D | CounterFragment.java | 52 mDownDrawable = getResources().getDrawable(R.drawable.jump_down_50); in onCreateView() 53 mUpDrawable = getResources().getDrawable(R.drawable.jump_up_50); in onCreateView()
|
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/ |
D | MainActivity.java | 60 builder.setTicker(getResources().getString(R.string.custom_notification)); in createNotification() 80 final String text = getResources().getString(R.string.collapsed, time); in createNotification()
|
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | CardPresenter.java | 36 float density = context.getResources().getDisplayMetrics().density; in setupRowHeights() 74 Drawable drawable = viewHolder.view.getContext().getResources() in onBindViewHolder()
|
/development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/ |
D | ImagePixelization.java | 76 mImageBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.image); in onCreate() 207 return new BitmapDrawable(getResources(), mPixelatedBitmap); in customImagePixelization() 248 BitmapDrawable bitmapDrawable = new BitmapDrawable(getResources(), pixelatedBitmap); in builtInPixelization() 253 return new BitmapDrawable(getResources(), upscaled); in builtInPixelization()
|
/development/apps/WidgetPreview/src/com/android/widgetpreview/ |
D | WidgetPreviewActivity.java | 200 Resources resources = getResources(); in getLauncherCellDimensions() 227 int orientationCode = getResources().getConfiguration().orientation; in buildFile() 229 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { in buildFile() 310 getResources().getString(R.string.email_subject)); in onClick() 312 getResources().getString(R.string.email_body)); in onClick()
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
D | CubeWallpaper2.java | 117 int pid = getResources().getIdentifier(prefix + "points", "array", getPackageName()); in readModel() 118 int lid = getResources().getIdentifier(prefix + "lines", "array", getPackageName()); in readModel() 120 String [] p = getResources().getStringArray(pid); in readModel() 134 String [] l = getResources().getStringArray(lid); in readModel()
|