HomeSort by relevance Sort by last modified time
    Searched refs:mResources (Results 26 - 50 of 126) sorted by null

12 3 4 5 6

  /packages/wallpapers/Basic/src/com/android/wallpaper/
RenderScriptScene.java 29 protected Resources mResources;
40 mResources = res;
58 return mResources;
  /packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
RenderScriptScene.java 31 protected Resources mResources;
42 mResources = res;
60 return mResources;
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/
RenderScriptScene.java 30 protected Resources mResources;
41 mResources = res;
59 return mResources;
  /cts/tests/tests/content/src/android/content/res/cts/
PluralResourcesTest.java 34 private Resources mResources;
39 mResources = mContext.getResources();
44 config.updateFrom(mResources.getConfiguration());
46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config);
  /packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
StringResourceMap.java 38 private final List<StringResource> mResources;
60 mResources = Collections.unmodifiableList(handler.mResources);
62 for (final StringResource res : mResources) {
69 return mResources;
85 final ArrayList<StringResource> mResources = new ArrayList<StringResource>();
130 mResources.add(new StringResource(mName, value, comment));
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
AnimationDrawableTest.java 50 private Resources mResources;
60 mResources = activity.getResources();
183 Drawable frame = mResources.getDrawable(R.drawable.failed);
201 Drawable drawable = mResources.getDrawable(R.drawable.testimage);
206 drawable = mResources.getDrawable(R.drawable.pass);
211 drawable = mResources.getDrawable(R.drawable.scenery);
286 mAnimationDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
299 mAnimationDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
317 mAnimationDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
334 mAnimationDrawable.inflate(mResources, null, Xml.asAttributeSet(parser))
    [all...]
NinePatchDrawableTest.java 52 private Resources mResources;
57 mResources = getInstrumentation().getTargetContext().getResources();
68 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0);
69 String name = mResources.getResourceName(R.drawable.ninepatch_0);
143 NinePatchDrawable npd = (NinePatchDrawable) mResources.getDrawable(R.drawable.ninepatch_0);
151 npd = (NinePatchDrawable) mResources.getDrawable(R.drawable.ninepatch_1);
289 new NinePatchDrawable(mResources, bitmap, new byte[1000], null, "TESTNAME");
293 XmlResourceParser parser = mResources.getXml(R.drawable.ninepatchdrawable);
299 ninePatchDrawable.inflate(mResources, parser, attrs);
308 (NinePatchDrawable) mResources.getDrawable(R.drawable.ninepatchdrawable)
    [all...]
StateListDrawableTest.java 43 private Resources mResources;
52 mResources = getInstrumentation().getTargetContext().getResources();
160 mStateListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
181 mStateListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
199 mStateListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
214 mStateListDrawable.inflate(mResources, null, Xml.asAttributeSet(parser));
220 mStateListDrawable.inflate(mResources, parser, null);
228 (StateListDrawable) mResources.getDrawable(R.drawable.statelistdrawable);
230 (StateListDrawable) mResources.getDrawable(R.drawable.statelistdrawable);
232 (StateListDrawable) mResources.getDrawable(R.drawable.statelistdrawable)
    [all...]
LevelListDrawableTest.java 40 private Resources mResources;
49 mResources = getInstrumentation().getTargetContext().getResources();
116 mLevelListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
129 mLevelListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
139 mLevelListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
154 mLevelListDrawable.inflate(mResources, null, Xml.asAttributeSet(parser));
160 mLevelListDrawable.inflate(mResources, parser, null);
DrawableTest.java 49 Resources mResources;
55 mResources = mContext.getResources();
141 source = mResources.openRawResource(R.raw.testimage);
219 assertNull(Drawable.createFromResourceStream(mResources, null, inputEmptyStream,
228 assertNotNull(Drawable.createFromResourceStream(mResources, value, inputStream,
269 assertNull(Drawable.createFromResourceStream(mResources, null, inputEmptyStream,
278 assertNotNull(Drawable.createFromResourceStream(mResources, value, inputStream,
301 XmlPullParser parser = mResources.getXml(R.drawable.gradientdrawable);
302 Drawable drawable = Drawable.createFromXml(mResources, parser);
309 XmlPullParser parser = mResources.getXml(R.drawable.gradientdrawable)
    [all...]
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
GraphicsPerformanceTests.java 125 private Resources mResources;
134 mResources = context.getResources();
135 Assert.assertNotNull(mResources);
145 BitmapFactory.decodeResource(mResources, R.drawable.test16x12);
146 BitmapFactory.decodeResource(mResources, R.drawable.test32x24);
147 BitmapFactory.decodeResource(mResources, R.drawable.test64x48);
148 BitmapFactory.decodeResource(mResources, R.drawable.test128x96);
149 BitmapFactory.decodeResource(mResources, R.drawable.test256x192);
150 BitmapFactory.decodeResource(mResources, R.drawable.test320x240);
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/
ConfigMatchTest.java 53 private ResourceRepository mResources;
71 mResources = new ResourceRepository(folder, false) {
113 addFolder(mResources, defaultConfig, validMemberList);
137 addFolder(mResources, config1, validMemberList);
161 addFolder(mResources, config2, validMemberList);
185 addFolder(mResources, config3, validMemberList);
209 addFolder(mResources, config4, invalidMemberList);
215 mResources = null;
241 ResourceFile result = mResources.getMatchingFile(SEARCHED_FILENAME,
  /development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
SimpleMenu.java 39 private Resources mResources;
45 mResources = context.getResources();
54 return mResources;
62 return addInternal(0, 0, mResources.getString(titleRes));
70 return addInternal(itemId, order, mResources.getString(titleRes));
  /packages/apps/Calendar/src/com/android/calendar/agenda/
AgendaAdapter.java 43 private final Resources mResources;
86 mResources = context.getResources();
87 mNoTitleLabel = mResources.getString(R.string.no_title_label);
88 mDeclinedColor = mResources.getColor(R.color.agenda_item_declined_color);
89 mStandardColor = mResources.getColor(R.color.agenda_item_standard_color);
90 mWhereDeclinedColor = mResources.getColor(R.color.agenda_item_where_declined_text_color);
91 mWhereColor = mResources.getColor(R.color.agenda_item_where_text_color);
95 COLOR_CHIP_ALL_DAY_HEIGHT = mResources.getInteger(R.integer.color_chip_all_day_height);
96 COLOR_CHIP_HEIGHT = mResources.getInteger(R.integer.color_chip_height);
98 mScale = mResources.getDisplayMetrics().density
    [all...]
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/
Visualization4RS.java 95 mScript = new ScriptC_vu(mRS, mResources, R.raw.vu);
111 mTextures[0] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.background,
115 mTextures[1] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.frame,
119 mTextures[2] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_on,
123 mTextures[3] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_off,
127 mTextures[4] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.needle,
131 mTextures[5] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.black,
  /packages/apps/VideoEditor/src/com/android/videoeditor/
ProjectPickerAdapter.java 52 private Resources mResources;
65 mResources = context.getResources();
68 mItemWidth = (int) mResources.getDimension(R.dimen.project_picker_item_width);
69 mItemHeight = (int) mResources.getDimension(R.dimen.project_picker_item_height);
70 mOverlayHeight = (int) mResources.getDimension(
72 mOverlayVerticalInset = (int) mResources.getDimension(
74 mOverlayHorizontalInset = (int) mResources.getDimension(
177 paint.setTextSize((int) mResources.getDimension(R.dimen.project_picker_item_font_size));
219 final Bitmap newProjectIcon = BitmapFactory.decodeResource(mResources,
  /frameworks/base/core/tests/coretests/src/android/view/
InflateTest.java 33 private Resources mResources;
41 mResources = mContext.getResources();
47 // mResources.flushLayoutCache();
60 mResources.flushLayoutCache();
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
AttachmentGridDrawable.java 30 private final Resources mResources;
40 mResources = res;
51 final AttachmentDrawable result = new AttachmentDrawable(mResources, mCache,
  /frameworks/base/core/java/android/content/res/
TypedArray.java 40 private final Resources mResources;
79 return mResources;
320 ColorStateList csl = mResources.loadColorStateList(
343 return mResources.loadColorStateList(value, value.resourceId);
396 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
428 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
461 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
489 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
518 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
602 return mResources.loadDrawable(value, value.resourceId)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
AbsSeekBarTest.java 45 private Resources mResources;
51 mResources = mActivity.getResources();
80 Drawable drawable1 = mResources.getDrawable(R.drawable.scenery);
81 Drawable drawable2 = mResources.getDrawable(R.drawable.pass);
111 Drawable drawable1 = mResources.getDrawable(R.drawable.scenery);
112 Drawable drawable2 = mResources.getDrawable(R.drawable.pass);
113 Drawable drawable3 = mResources.getDrawable(R.drawable.blue);
114 Drawable drawable4 = mResources.getDrawable(R.drawable.black);
  /packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
HoloSpiralRS.java 66 private Resources mResources = null;
74 mResources = resources;
100 mScript = new ScriptC_holo_spiral(mRS, mResources, R.raw.holo_spiral);
121 backgroundBuilder.setShader(mResources, R.raw.vertex_background);
127 geometryBuilder.setShader(mResources, R.raw.vertex_geometry);
137 backgroundBuilder.setShader(mResources, R.raw.fragment_background);
142 geometryBuilder.setShader(mResources, R.raw.fragment_geometry);
183 mResources, R.drawable.points_red_green, null);
  /frameworks/base/core/java/android/view/animation/
ScaleAnimation.java 31 private final Resources mResources;
65 mResources = context.getResources();
146 mResources = null;
173 mResources = null;
214 mResources = null;
265 targetSize = TypedValue.complexToDimension(data, mResources.getDisplayMetrics());
  /packages/apps/Dialer/src/com/android/dialer/
PhoneCallDetailsHelper.java 46 private final Resources mResources;
63 mResources = resources;
109 numberFormattedLabel = Phone.getTypeLabel(mResources, details.numberType,
124 numberText = mResources.getString(R.string.call_log_empty_gecode);
149 mResources.getString(R.string.recentCalls_addToContact));
183 text = mResources.getString(
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
LintJob.java 54 private final List<? extends IResource> mResources;
67 mResources = resources;
98 List<File> files = new ArrayList<File>(mResources.size());
99 for (IResource resource : mResources) {
141 assert !Scope.checkSingleFile(scope) : scope + " with " + mResources;
159 EclipseLintClient.clearMarkers(mResources);
  /development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/
ImageWorker.java 53 protected Resources mResources;
61 mResources = context.getResources();
92 new AsyncDrawable(mResources, mLoadingBitmap, task);
117 mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId);
290 drawable = new BitmapDrawable(mResources, bitmap);
294 drawable = new RecyclingBitmapDrawable(mResources, bitmap);
389 new BitmapDrawable(mResources, mLoadingBitmap));

Completed in 9325 milliseconds

12 3 4 5 6