Home
last modified time | relevance | path

Searched refs:mResources (Results 1 – 19 of 19) 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/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.java39 private final Resources mResources; field in TypedArray
78 return mResources; in getResources()
319 ColorStateList csl = mResources.loadColorStateList( in getColor()
342 return mResources.loadColorStateList(value, value.resourceId); in getColorStateList()
395 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimension()
427 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimensionPixelOffset()
460 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimensionPixelSize()
488 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getLayoutDimension()
517 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getLayoutDimension()
601 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()
144 mResources = null; in ScaleAnimation()
171 mResources = null; in ScaleAnimation()
211 mResources = null; in ScaleAnimation()
248 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.java80 private static Resources mResources; field in ZygoteInit
342 mResources = Resources.getSystem(); in preloadResources()
343 mResources.startPreloading(); in preloadResources()
348 TypedArray ar = mResources.obtainTypedArray( in preloadResources()
355 ar = mResources.obtainTypedArray( in preloadResources()
361 mResources.finishPreloading(); in preloadResources()
385 mResources.getColorStateList(id); in preloadColorStateLists()
408 Drawable dr = mResources.getDrawable(id); in preloadDrawables()
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java41 private Resources mResources; field in FindActionModeCallback
60 mResources = context.getResources(); in FindActionModeCallback()
138 mMatches.setText(mResources.getString( in findAll()
158 String template = mResources.getQuantityString( in updateMatchesString()
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallerInfoTest.java142 private Resources mResources; field in CallerInfoTest.MockContext
146 mResources = new MockResources(); in MockContext()
156 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()
408 return addInternal(0, 0, 0, mResources.getString(titleRes)); in add()
416 return addInternal(group, id, categoryOrder, mResources.getString(title)); in add()
424 return addSubMenu(0, 0, 0, mResources.getString(titleRes)); in addSubMenu()
436 return addSubMenu(group, id, categoryOrder, mResources.getString(title)); in addSubMenu()
714 && mResources.getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS in setShortcutsVisibleInner()
715 && mResources.getBoolean( in setShortcutsVisibleInner()
727 return mResources; in getResources()
/frameworks/base/core/java/android/app/
DContextImpl.java147 private Resources mResources; field in ContextImpl
473 return mResources.getAssets(); in getAssets()
478 return mResources; in getResources()
527 mTheme = mResources.newTheme(); in getTheme()
1419 mMainThread.getPackageInfo(packageName, mResources.getCompatibilityInfo(), flags); in createPackageContext()
1423 c.init(pi, null, mMainThread, mResources, mBasePackageName); in createPackageContext()
1424 if (c.mResources != null) { in createPackageContext()
1477 mResources = context.mResources; in ContextImpl()
1493 mResources = mPackageInfo.getResources(mainThread); in init()
1495 if (mResources != null && container != null in init()
[all …]
DLoadedApk.java83 Resources mResources; field in LoadedApk
140 mResources = ActivityThread.mSystemContext.getResources(); in LoadedApk()
160 mResources = systemContext.getResources(); in LoadedApk()
454 if (mResources == null) { in getResources()
455 mResources = mainThread.getTopLevelResources(mResDir, this); in getResources()
457 return mResources; in getResources()
DActivityThread.java1535 if (packageInfo != null && (packageInfo.mResources == null in getPackageInfo()
1536 || packageInfo.mResources.getAssets().isUpToDate())) { in getPackageInfo()
1614 if (packageInfo == null || (packageInfo.mResources != null in getPackageInfo()
1615 && !packageInfo.mResources.getAssets().isUpToDate())) { in getPackageInfo()
/frameworks/base/services/input/
DPointerController.cpp267 ? mResources.spotTouch : mResources.spotHover; in setSpots()
495 ? mLocked.pointerIcon : mResources.spotAnchor); in updatePointerLocked()
575 mPolicy->loadPointerResources(&mResources); in loadResources()
DPointerController.h212 PointerResources mResources; variable
/frameworks/base/libs/utils/
DAssetManager.cpp116 mResources(NULL), mConfig(new ResTable_config), in AssetManager()
130 delete mResources; in ~AssetManager()
597 ResTable* rt = mResources; in getResTable()
606 if (mResources != NULL) { in getResTable()
607 return mResources; in getResTable()
668 mResources = rt = new ResTable(); in getResTable()
671 LOGV("Installing resource asset %p in to table %p\n", ass, mResources); in getResTable()
691 mResources = rt = new ResTable(); in getResTable()
698 ResTable* res = mResources; in updateResourceParamsLocked()
750 ResTable* res = mResources; in getLocales()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLTextureViewActivity.java134 private final Resources mResources; field in GLTextureViewActivity.RenderThread
145 mResources = resources; in RenderThread()
266 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); in loadTexture()
/frameworks/base/include/utils/
DAssetManager.h354 mutable ResTable* mResources; variable
/frameworks/base/core/java/android/view/
DView.java2377 private final Resources mResources; field in View
2691 mResources = context != null ? context.getResources() : null; in View()
3126 mResources = null; in View()
7137 final float dpi = mResources.getDisplayMetrics().densityDpi;
11302 return mResources;
11588 d = mResources.getDrawable(resid);