Home
last modified time | relevance | path

Searched refs:mResources (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java32 private Resources mResources; field in ColorStateListTest
38 mResources = mContext.getResources(); in setUp()
39 mFailureColor = mResources.getColor(R.color.failColor); in setUp()
44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList()
47 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); in testStateIsInList()
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState()
55 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testEmptyState()
60 int defaultColor = mResources.getColor(R.color.color1); in testGetColor()
61 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testGetColor()
66 int defaultColor = mResources.getColor(R.color.color_no_default); in testGetColorWhenListHasNoDefault()
[all …]
DGraphicsPerformanceTests.java125 private Resources mResources; field in GraphicsPerformanceTests.DecodeBitmapTest
134 mResources = context.getResources(); in setUp()
135 Assert.assertNotNull(mResources); in setUp()
145 BitmapFactory.decodeResource(mResources, R.drawable.test16x12); in testDecodeBitmap()
146 BitmapFactory.decodeResource(mResources, R.drawable.test32x24); in testDecodeBitmap()
147 BitmapFactory.decodeResource(mResources, R.drawable.test64x48); in testDecodeBitmap()
148 BitmapFactory.decodeResource(mResources, R.drawable.test128x96); in testDecodeBitmap()
149 BitmapFactory.decodeResource(mResources, R.drawable.test256x192); in testDecodeBitmap()
150 BitmapFactory.decodeResource(mResources, R.drawable.test320x240); in testDecodeBitmap()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java35 private Resources mResources; field in ContextThemeWrapper
63 if (mResources != null) { in applyOverrideConfiguration()
74 if (mResources != null) { in getResources()
75 return mResources; in getResources()
78 mResources = super.getResources(); in getResources()
79 return mResources; in getResources()
82 mResources = resc.getResources(); in getResources()
83 return mResources; in getResources()
DView.java3192 private final Resources mResources; field in View
3438 mResources = context != null ? context.getResources() : null; in View()
3969 mResources = null; in View()
4016 final Resources r = mResources; in toString()
9380 final float dpi = mResources.getDisplayMetrics().densityDpi;
9432 final float dpi = mResources.getDisplayMetrics().densityDpi;
13608 bitmap = Bitmap.createBitmap(mResources.getDisplayMetrics(),
13704 Bitmap bitmap = Bitmap.createBitmap(mResources.getDisplayMetrics(),
14955 return mResources;
15303 d = mResources.getDrawable(resid);
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
DOverlayBaseTest.java10 private Resources mResources; field in OverlayBaseTest
14 mResources = getContext().getResources(); in setUp()
20 input = mResources.openRawResource(resId); in calculateRawResourceChecksum()
36 mResources.updateConfiguration(config, mResources.getDisplayMetrics()); in setLocale()
41 boolean actual = mResources.getBoolean(resId); in assertResource()
47 String actual = mResources.getString(resId); in assertResource()
53 int[] actual = mResources.getIntArray(resId); in assertResource()
/frameworks/base/core/java/android/content/res/
DTypedArray.java40 private final Resources mResources; field in TypedArray
79 return mResources; in getResources()
320 ColorStateList csl = mResources.loadColorStateList( in getColor()
343 return mResources.loadColorStateList(value, value.resourceId); in getColorStateList()
396 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimension()
428 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimensionPixelOffset()
461 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimensionPixelSize()
489 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getLayoutDimension()
518 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getLayoutDimension()
602 return mResources.loadDrawable(value, value.resourceId); in getDrawable()
[all …]
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java31 private final Resources mResources; field in ScaleAnimation
65 mResources = context.getResources(); in ScaleAnimation()
146 mResources = null; in ScaleAnimation()
173 mResources = null; in ScaleAnimation()
214 mResources = null; in ScaleAnimation()
265 targetSize = TypedValue.complexToDimension(data, mResources.getDisplayMetrics()); in resolveScale()
/frameworks/base/core/tests/coretests/src/android/view/
DInflateTest.java33 private Resources mResources; field in InflateTest
41 mResources = mContext.getResources(); in setUp()
60 mResources.flushLayoutCache(); in inflateTest()
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java85 private static Resources mResources; field in ZygoteInit
359 mResources = Resources.getSystem(); in preloadResources()
360 mResources.startPreloading(); in preloadResources()
365 TypedArray ar = mResources.obtainTypedArray( in preloadResources()
373 ar = mResources.obtainTypedArray( in preloadResources()
380 mResources.finishPreloading(); in preloadResources()
404 if (mResources.getColorStateList(id) == null) { in preloadColorStateLists()
432 if (mResources.getDrawable(id) == null) { in preloadDrawables()
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java46 private Resources mResources; field in FindActionModeCallback
64 mResources = context.getResources(); in FindActionModeCallback()
179 mMatches.setText(mResources.getQuantityString( in updateMatchesString()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DMenuBuilder.java58 private final Resources mResources; field in MenuBuilder
194 mResources = context.getResources(); in MenuBuilder()
423 return addInternal(0, 0, 0, mResources.getString(titleRes)); in add()
433 return addInternal(group, id, categoryOrder, mResources.getString(title)); in add()
443 return addSubMenu(0, 0, 0, mResources.getString(titleRes)); in addSubMenu()
457 return addSubMenu(group, id, categoryOrder, mResources.getString(title)); in addSubMenu()
757 && mResources.getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS in setShortcutsVisibleInner()
758 && mResources.getBoolean(R.bool.abc_config_showMenuShortcutsWhenKeyboardPresent); in setShortcutsVisibleInner()
769 return mResources; in getResources()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java66 private final Resources mResources; field in MenuBuilder
188 mResources = context.getResources(); in MenuBuilder()
414 return addInternal(0, 0, 0, mResources.getString(titleRes)); in add()
422 return addInternal(group, id, categoryOrder, mResources.getString(title)); in add()
430 return addSubMenu(0, 0, 0, mResources.getString(titleRes)); in addSubMenu()
442 return addSubMenu(group, id, categoryOrder, mResources.getString(title)); in addSubMenu()
720 && mResources.getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS in setShortcutsVisibleInner()
721 && mResources.getBoolean( in setShortcutsVisibleInner()
733 return mResources; in getResources()
/frameworks/base/services/input/
DPointerController.cpp267 ? mResources.spotTouch : mResources.spotHover; in setSpots()
498 ? mLocked.pointerIcon : mResources.spotAnchor); in updatePointerLocked()
578 mPolicy->loadPointerResources(&mResources); in loadResources()
DPointerController.h212 PointerResources mResources; variable
/frameworks/base/libs/androidfw/
DAssetManager.cpp147 mResources(NULL), mConfig(new ResTable_config), in AssetManager()
161 delete mResources; in ~AssetManager()
628 ResTable* rt = mResources; in getResTable()
637 if (mResources != NULL) { in getResTable()
638 return mResources; in getResTable()
700 mResources = rt = new ResTable(); in getResTable()
703 ALOGV("Installing resource asset %p in to table %p\n", ass, mResources); in getResTable()
724 mResources = rt = new ResTable(); in getResTable()
731 ResTable* res = mResources; in updateResourceParamsLocked()
783 ResTable* res = mResources; in getLocales()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLTextureViewActivity.java137 private final Resources mResources; field in GLTextureViewActivity.RenderThread
148 mResources = resources; in RenderThread()
270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); in loadTexture()
/frameworks/base/media/java/android/media/
DMediaRouter.java65 final Resources mResources; field in MediaRouter.Static
109 mResources = Resources.getSystem(); in Static()
207 info.mDescription = sStatic.mResources.getText( in updateAudioRoutes()
1402 newRoute.mDescription = sStatic.mResources.getText( in makeWifiDisplayRoute()
1540 return getName(sStatic.mResources); in getName()
1646 mStatus = resId != 0 ? sStatic.mResources.getText(resId) : null; in resolveStatusCode()
2084 setIconDrawable(sStatic.mResources.getDrawable(resId)); in setIconResource()
2347 setIconDrawable(sStatic.mResources.getDrawable(resId)); in setIconResource()
2506 return getName(sStatic.mResources); in getName()
/frameworks/base/core/java/android/app/
DLoadedApk.java87 Resources mResources; field in LoadedApk
155 mResources = Resources.getSystem(); in LoadedApk()
479 if (mResources == null) { in getResources()
480 mResources = mainThread.getTopLevelResources(mResDir, in getResources()
483 return mResources; in getResources()
DContextImpl.java199 private final Resources mResources; field in ContextImpl
621 return mResources; in getResources()
670 mTheme = mResources.newTheme(); in getTheme()
1895 LoadedApk pi = mMainThread.getPackageInfo(packageName, mResources.getCompatibilityInfo(), in createPackageContextAsUser()
1900 if (c.mResources != null) { in createPackageContextAsUser()
1972 context.mResources.updateConfiguration(context.mResourcesManager.getConfiguration(), in createSystemContext()
2034 mResources = resources; in ContextImpl()
DActivityThread.java1560 if (packageInfo != null && (packageInfo.mResources == null in getPackageInfo()
1561 || packageInfo.mResources.getAssets().isUpToDate())) { in getPackageInfo()
1640 if (packageInfo == null || (packageInfo.mResources != null in getPackageInfo()
1641 && !packageInfo.mResources.getAssets().isUpToDate())) { in getPackageInfo()
/frameworks/base/include/androidfw/
DAssetManager.h355 mutable ResTable* mResources; variable
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java1139 private Resources mResources; field in MediaRouter.ProviderInfo
1178 if (mResources == null && !mResourcesNotAvailable) { in getResources()
1182 mResources = context.getResources(); in getResources()
1189 return mResources; in getResources()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java442 Resources mResources;
477 mResources = res;
520 return new BufferedInputStream(mResources.openRawResource(mInResId));