/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | HoverInterceptorView.java | 59 textView.setText(getResources().getString( in onHoverEvent() 63 textView.setText(getResources().getString( in onHoverEvent()
|
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 | 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()
|
D | Tabs2.java | 41 .setIndicator("tab1", getResources().getDrawable(R.drawable.star_big_on)) in onCreate()
|
D | Tabs6.java | 40 .setIndicator("tab1", getResources().getDrawable(R.drawable.star_big_on)) in onCreate()
|
/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/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/ApiDemos/src/com/example/android/apis/graphics/ |
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()
|
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()
|
/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/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/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/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/ |
D | HelloCompute.java | 63 mScript = new ScriptC_mono(mRS, getResources(), R.raw.mono); in createScript() 72 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
|
/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/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | ArticleActivity.java | 51 if (getResources().getBoolean(R.bool.has_two_panes)) { in onCreate()
|
/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()
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | LatinKeyboardView.java | 50 keyboard.setSpaceIcon(getResources().getDrawable(subtype.getIconResId())); in setSubtypeOnSpaceKey()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | PresentationWithMediaRouterActivity.java | 194 mInfoTextView.setText(getResources().getString( in updateContents() 205 mInfoTextView.setText(getResources().getString( in updateContents() 275 Resources r = getContext().getResources(); in onCreate()
|
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/ |
D | PeerActivity.java | 40 tv.setText(getResources().getText(R.string.peer_count).toString() + mPeerCount); in onCreate()
|
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
D | ActionBarHelperBase.java | 182 (int) mActivity.getResources().getDimension( in addActionItemCompatFromMenuItem() 207 final int buttonWidth = mActivity.getResources().getDimensionPixelSize( in addActionItemCompatFromMenuItem() 209 final int buttonHeight = mActivity.getResources().getDimensionPixelSize( in addActionItemCompatFromMenuItem() 254 parser = mActivity.getResources().getXml(menuResId); in loadActionBarMetadata()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ResourcesSample.java | 76 Resources res = context.getResources(); in onCreate()
|