Home
last modified time | relevance | path

Searched refs:getResources (Results 1 – 25 of 127) sorted by relevance

123456

/development/samples/ApiDemos/src/com/example/android/apis/view/
DHoverInterceptorView.java59 textView.setText(getResources().getString( in onHoverEvent()
63 textView.setText(getResources().getString( in onHoverEvent()
DHover.java80 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()
DSecureView.java112 String[] messages = getResources().getStringArray(R.array.secure_view_clicked); in setClickedAction()
118 .setNeutralButton(getResources().getString( in setClickedAction()
133 .setNeutralButton(getResources().getString( in setTouchFilter()
DSplitTouchView.java56 String[] responses = getResources().getStringArray(R.array.cheese_responses);
59 String message = getResources().getString(R.string.split_touch_view_cheese_toast,
DList14.java56 mIcon1 = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon48x48_1); in EfficientAdapter()
57 mIcon2 = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon48x48_2); in EfficientAdapter()
DTabs2.java41 .setIndicator("tab1", getResources().getDrawable(R.drawable.star_big_on)) in onCreate()
DTabs6.java40 .setIndicator("tab1", getResources().getDrawable(R.drawable.star_big_on)) in onCreate()
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/
DBitmapAllocation.java62 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/
DCompatTabEclair.java38 mText = mActivity.getResources().getText(resId); in setText()
44 mIcon = mActivity.getResources().getDrawable(resId); in setIcon()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapDecode.java69 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()
DDensityActivity.java140 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/
DBitmapScaling.java46 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/
DCrossFading.java55 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/
DAdapters.java503 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/
DNetworkActivity.java162 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/
DHelloCompute.java63 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/
DPictureViewer.java64 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/
DArticleActivity.java51 if (getResources().getBoolean(R.bool.has_two_panes)) { in onCreate()
/development/apps/WidgetPreview/src/com/android/widgetpreview/
DWidgetPreviewActivity.java200 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/
DCubeWallpaper2.java117 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/
DLatinKeyboardView.java50 keyboard.setSpaceIcon(getResources().getDrawable(subtype.getIconResId())); in setSubtypeOnSpaceKey()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPresentationWithMediaRouterActivity.java194 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/
DPeerActivity.java40 tv.setText(getResources().getText(R.string.peer_count).toString() + mPeerCount); in onCreate()
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DActionBarHelperBase.java182 (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/
DResourcesSample.java76 Resources res = context.getResources(); in onCreate()

123456