Searched refs:mResources (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DColorStateListTest.java32 private Resources mResources; field in class:ColorStateListTest
38 mResources = mContext.getResources();
39 mFailureColor = mResources.getColor(R.color.failColor);
44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
47 assertEquals(mResources.getColor(R.color.testcolor1), focusColor);
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
55 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor);
60 int defaultColor = mResources.getColor(R.color.color1);
61 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor);
66 int defaultColor = mResources
[all...]
H A DGraphicsPerformanceTests.java125 private Resources mResources; field in class:GraphicsPerformanceTests.DecodeBitmapTest
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);
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java35 private Resources mResources; field in class:ContextThemeWrapper
63 if (mResources != null) {
74 if (mResources != null) {
75 return mResources;
78 mResources = super.getResources();
79 return mResources;
82 mResources = resc.getResources();
83 return mResources;
H A DView.java2986 private final Resources mResources; field in class:View
3226 mResources = context != null ? context.getResources() : null;
3735 mResources = null;
3782 final Resources r = mResources;
8895 final float dpi = mResources.getDisplayMetrics().densityDpi;
8947 final float dpi = mResources.getDisplayMetrics().densityDpi;
12899 bitmap = Bitmap.createBitmap(mResources.getDisplayMetrics(),
12992 Bitmap bitmap = Bitmap.createBitmap(mResources.getDisplayMetrics(),
14134 return mResources;
14468 d = mResources
[all...]
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
H A DOverlayBaseTest.java10 private Resources mResources; field in class:OverlayBaseTest
14 mResources = getContext().getResources();
20 input = mResources.openRawResource(resId);
36 mResources.updateConfiguration(config, mResources.getDisplayMetrics());
41 boolean actual = mResources.getBoolean(resId);
47 String actual = mResources.getString(resId);
53 int[] actual = mResources.getIntArray(resId);
/frameworks/base/core/tests/coretests/src/android/view/
H A DInflateTest.java33 private Resources mResources; field in class:InflateTest
41 mResources = mContext.getResources();
47 // mResources.flushLayoutCache();
60 mResources.flushLayoutCache();
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java39 private final Resources mResources; field in class:TypedArray
78 return mResources;
319 ColorStateList csl = mResources.loadColorStateList(
342 return mResources.loadColorStateList(value, value.resourceId);
395 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
427 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
460 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
488 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
517 data[index+AssetManager.STYLE_DATA], mResources.mMetrics);
601 return mResources
[all...]
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java31 private final Resources mResources; field in class:ScaleAnimation
65 mResources = context.getResources();
146 mResources = null;
173 mResources = null;
214 mResources = null;
265 targetSize = TypedValue.complexToDimension(data, mResources.getDisplayMetrics());
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCallerInfoTest.java142 private Resources mResources; field in class:CallerInfoTest.MockContext
146 mResources = new MockResources();
156 return mResources;
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java82 private static Resources mResources; field in class:ZygoteInit
344 mResources = Resources.getSystem();
345 mResources.startPreloading();
350 TypedArray ar = mResources.obtainTypedArray(
358 ar = mResources.obtainTypedArray(
365 mResources.finishPreloading();
389 if (mResources.getColorStateList(id) == null) {
417 if (mResources.getDrawable(id) == null) {
/frameworks/base/core/java/android/webkit/
H A DFindActionModeCallback.java43 private Resources mResources; field in class:FindActionModeCallback
61 mResources = context.getResources();
168 mMatches.setText(mResources.getQuantityString(
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuBuilder.java66 private final Resources mResources; field in class:MenuBuilder
188 mResources = context.getResources();
408 return addInternal(0, 0, 0, mResources.getString(titleRes));
416 return addInternal(group, id, categoryOrder, mResources.getString(title));
424 return addSubMenu(0, 0, 0, mResources.getString(titleRes));
436 return addSubMenu(group, id, categoryOrder, mResources.getString(title));
714 && mResources.getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS
715 && mResources.getBoolean(
727 return mResources;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLTextureViewActivity.java137 private final Resources mResources; field in class:GLTextureViewActivity.RenderThread
148 mResources = resources;
270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource);
/frameworks/base/core/java/android/app/
H A DContextImpl.java179 private Resources mResources; field in class:ContextImpl
561 return mResources;
610 mTheme = mResources.newTheme();
1735 context.init(mPackageInfo, null, mMainThread, mResources, mBasePackageName, user);
1740 mMainThread.getPackageInfo(packageName, mResources.getCompatibilityInfo(), flags,
1745 c.init(pi, null, mMainThread, mResources, mBasePackageName, user);
1746 if (c.mResources != null) {
1764 c.mResources = mMainThread.getTopLevelResources(
1767 mResources.getCompatibilityInfo());
1787 context.mResources
[all...]
H A DLoadedApk.java88 Resources mResources; field in class:LoadedApk
151 mResources = ActivityThread.mSystemContext.getResources();
171 mResources = systemContext.getResources();
475 if (mResources == null) {
476 mResources = mainThread.getTopLevelResources(mResDir,
479 return mResources;
H A DActivityThread.java1759 // + ": " + packageInfo.mResources.getAssets().isUpToDate());
1760 if (packageInfo != null && (packageInfo.mResources == null
1761 || packageInfo.mResources.getAssets().isUpToDate())) {
1840 if (packageInfo == null || (packageInfo.mResources != null
1841 && !packageInfo.mResources.getAssets().isUpToDate())) {
/frameworks/base/services/input/
H A DPointerController.cpp267 ? mResources.spotTouch : mResources.spotHover;
498 ? mLocked.pointerIcon : mResources.spotAnchor);
578 mPolicy->loadPointerResources(&mResources);
H A DPointerController.h212 PointerResources mResources; member in class:android::PointerController
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp134 mResources(NULL), mConfig(new ResTable_config),
148 delete mResources;
615 ResTable* rt = mResources;
624 if (mResources != NULL) {
625 return mResources;
686 mResources = rt = new ResTable();
689 ALOGV("Installing resource asset %p in to table %p\n", ass, mResources);
709 mResources = rt = new ResTable();
716 ResTable* res = mResources;
768 ResTable* res = mResources;
[all...]
/frameworks/base/media/java/android/media/
H A DMediaRouter.java56 final Resources mResources; field in class:MediaRouter.Static
88 mResources = Resources.getSystem();
985 return getName(sStatic.mResources);
1036 mStatus = resId != 0 ? sStatic.mResources.getText(resId) : null;
1376 setIconDrawable(sStatic.mResources.getDrawable(resId));
1638 setIconDrawable(sStatic.mResources.getDrawable(resId));
1797 return getName(sStatic.mResources);
/frameworks/base/include/androidfw/
H A DAssetManager.h355 mutable ResTable* mResources; member in class:android::AssetManager

Completed in 565 milliseconds