/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | ColorStateListTest.java | 32 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 …]
|
D | GraphicsPerformanceTests.java | 125 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/ |
D | ContextThemeWrapper.java | 33 private Resources mResources; field in ContextThemeWrapper 59 if (mResources != null) { in applyOverrideConfiguration() 70 if (mResources != null) { in getResources() 71 return mResources; in getResources() 74 mResources = super.getResources(); in getResources() 75 return mResources; in getResources() 78 mResources = resc.getResources(); in getResources() 79 return mResources; in getResources()
|
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/ |
D | OverlayBaseTest.java | 15 private Resources mResources; field in OverlayBaseTest 22 mResources = getContext().getResources(); in setUp() 28 input = mResources.openRawResource(resId); in calculateRawResourceChecksum() 43 mResources.updateConfiguration(config, mResources.getDisplayMetrics()); in setLocale() 104 boolean actual = mResources.getBoolean(resId); in assertResource() 110 int actual = mResources.getInteger(resId); in assertResource() 116 String actual = mResources.getString(resId); in assertResource() 122 int[] actual = mResources.getIntArray(resId); in assertResource() 204 XmlResourceParser parser = mResources.getXml(R.xml.integer); in testAppXml() 224 input = mResources.openRawResource(resId); in testAppRaw()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | ResourceRequestKey.java | 29 private Resources mResources; field in ResourceRequestKey 44 mResources = res; in ResourceRequestKey() 55 return mResources.openRawResource(mResId); in createInputStream()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | ExtendedBitmapDrawable.java | 60 private final Resources mResources; field in ExtendedBitmapDrawable 76 mResources = res; in ExtendedBitmapDrawable() 94 … final int fadeOutDurationMs = mResources.getInteger(R.integer.bitmap_fade_animation_duration); in onOptsChanged() 95 mProgressDelayMs = mResources.getInteger(R.integer.bitmap_progress_animation_delay); in onOptsChanged() 99 int placeholderWidth = mResources.getDimensionPixelSize(R.dimen.placeholder_size); in onOptsChanged() 100 int placeholderHeight = mResources.getDimensionPixelSize(R.dimen.placeholder_size); in onOptsChanged() 104 placeholder = constantState.newDrawable(mResources); in onOptsChanged() 120 … mPlaceholder = new Placeholder(placeholder, mResources, placeholderWidth, placeholderHeight, in onOptsChanged() 127 int progressBarSize = mResources.getDimensionPixelSize(R.dimen.progress_bar_size); in onOptsChanged() 128 … mProgress = new Progress(mOpts.progressBar.getConstantState().newDrawable(mResources), mResources, in onOptsChanged()
|
/frameworks/base/core/java/android/view/animation/ |
D | ScaleAnimation.java | 31 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/ |
D | InflateTest.java | 33 private Resources mResources; field in InflateTest 41 mResources = mContext.getResources(); in setUp() 60 mResources.flushLayoutCache(); in inflateTest()
|
/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 62 private final Resources mResources; field in TypedArray 122 return mResources; in getResources() 395 ColorStateList csl = mResources.loadColorStateList( in getColor() 427 return mResources.loadColorStateList(value, value.resourceId); in getColorStateList() 749 return mResources.loadDrawable(value, value.resourceId, mTheme); in getDrawable() 771 return mResources.getTextArray(value.resourceId); in getTextArray() 875 mResources.mTypedArrayPool.release(this); in recycle() 976 mResources = resources; in TypedArray() 977 mMetrics = mResources.mMetrics; in TypedArray() 978 mAssets = mResources.mAssets; in TypedArray()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteInit.java | 91 private static Resources mResources; field in ZygoteInit 388 mResources = Resources.getSystem(); in preloadResources() 389 mResources.startPreloading(); in preloadResources() 394 TypedArray ar = mResources.obtainTypedArray( in preloadResources() 402 ar = mResources.obtainTypedArray( in preloadResources() 409 mResources.finishPreloading(); in preloadResources() 433 if (mResources.getColorStateList(id) == null) { in preloadColorStateLists() 461 if (mResources.getDrawable(id, null) == null) { in preloadDrawables()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | TintManager.java | 107 private final Resources mResources; field in TintManager 128 mResources = new TintResources(context.getResources(), this); in TintManager() 144 drawable = mResources.getDrawable(resId); in getDrawable() 197 Log.d(TAG, "Tinted Drawable ID: " + mResources.getResourceName(resId) + in tintDrawable() 325 return mResources.getColor(mTypedValue.resourceId); in getThemeAttrColor()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 152 mResources(NULL), mConfig(new ResTable_config), in AssetManager() 166 delete mResources; in ~AssetManager() 234 if (mResources != NULL) { in addAssetPath() 391 ResTable* res = mResources; in setLocaleLocked() 610 size_t nextEntryIdx = mResources->getTableCount(); in appendPathToResTable() 667 ALOGV("Installing resource asset %p in to table %p\n", ass, mResources); in appendPathToResTable() 670 mResources->add(sharedRes); in appendPathToResTable() 673 mResources->add(ass, idmap, nextEntryIdx + 1, !shared); in appendPathToResTable() 681 ALOGV("Installing empty resources in to table %p\n", mResources); in appendPathToResTable() 682 mResources->addEmpty(nextEntryIdx + 1); in appendPathToResTable() [all …]
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
D | LayoutLibTestCallback.java | 50 private final Map<ResourceType, Map<String, Integer>> mResources = Maps.newHashMap(); field in LayoutLibTestCallback 67 mResources.put(resType, resName2Id); in initResources() 151 return mResources.get(type).get(name); in getResourceId()
|
/frameworks/base/core/java/android/webkit/ |
D | FindActionModeCallback.java | 46 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/ |
D | MenuBuilder.java | 73 private final Resources mResources; field in MenuBuilder 211 mResources = context.getResources(); in MenuBuilder() 457 return addInternal(0, 0, 0, mResources.getString(titleRes)); in add() 467 return addInternal(group, id, categoryOrder, mResources.getString(title)); in add() 477 return addSubMenu(0, 0, 0, mResources.getString(titleRes)); in addSubMenu() 491 return addSubMenu(group, id, categoryOrder, mResources.getString(title)); in addSubMenu() 782 && mResources.getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS in setShortcutsVisibleInner() 783 && mResources.getBoolean(R.bool.abc_config_showMenuShortcutsWhenKeyboardPresent); in setShortcutsVisibleInner() 794 return mResources; in getResources()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuBuilder.java | 66 private final Resources mResources; field in MenuBuilder 188 mResources = context.getResources(); in MenuBuilder() 434 return addInternal(0, 0, 0, mResources.getString(titleRes)); in add() 442 return addInternal(group, id, categoryOrder, mResources.getString(title)); in add() 450 return addSubMenu(0, 0, 0, mResources.getString(titleRes)); in addSubMenu() 462 return addSubMenu(group, id, categoryOrder, mResources.getString(title)); in addSubMenu() 740 && mResources.getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS in setShortcutsVisibleInner() 741 && mResources.getBoolean( in setShortcutsVisibleInner() 753 return mResources; in getResources()
|
/frameworks/base/libs/input/ |
D | PointerController.cpp | 267 ? mResources.spotTouch : mResources.spotHover; in setSpots() 498 ? mLocked.pointerIcon : mResources.spotAnchor); in updatePointerLocked() 578 mPolicy->loadPointerResources(&mResources); in loadResources()
|
D | PointerController.h | 135 PointerResources mResources; variable
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GLTextureViewActivity.java | 137 private final Resources mResources; field in GLTextureViewActivity.RenderThread 148 mResources = resources; in RenderThread() 270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); in loadTexture()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | MaterialProgressDrawable.java | 104 private Resources mResources; field in MaterialProgressDrawable 114 mResources = context.getResources(); in MaterialProgressDrawable() 126 final DisplayMetrics metrics = mResources.getDisplayMetrics(); in setSizeParameters()
|
/frameworks/base/media/java/android/media/ |
D | MediaRouter.java | 65 final Resources mResources; field in MediaRouter.Static 109 mResources = Resources.getSystem(); in Static() 199 info.mDescription = sStatic.mResources.getText( in updateAudioRoutes() 1404 newRoute.mDescription = sStatic.mResources.getText( in makeWifiDisplayRoute() 1542 return getName(sStatic.mResources); in getName() 1648 mStatus = resId != 0 ? sStatic.mResources.getText(resId) : null; in resolveStatusCode() 2087 setIconDrawable(sStatic.mResources.getDrawable(resId)); in setIconResource() 2397 setIconDrawable(sStatic.mResources.getDrawable(resId)); in setIconResource() 2556 return getName(sStatic.mResources); in getName()
|
/frameworks/base/core/java/android/app/ |
D | LoadedApk.java | 99 Resources mResources; field in LoadedApk 197 mResources = Resources.getSystem(); in LoadedApk() 532 if (mResources == null) { in getResources() 533 mResources = mainThread.getTopLevelResources(mResDir, mSplitResDirs, mOverlayDirs, in getResources() 536 return mResources; in getResources()
|
D | ContextImpl.java | 230 private final Resources mResources; field in ContextImpl 788 return mResources; in getResources() 837 mTheme = mResources.newTheme(); in getTheme() 2096 LoadedApk pi = mMainThread.getPackageInfo(application, mResources.getCompatibilityInfo(), in createApplicationContext() 2103 if (c.mResources != null) { in createApplicationContext() 2128 LoadedApk pi = mMainThread.getPackageInfo(packageName, mResources.getCompatibilityInfo(), in createPackageContextAsUser() 2133 if (c.mResources != null) { in createPackageContextAsUser() 2205 context.mResources.updateConfiguration(context.mResourcesManager.getConfiguration(), in createSystemContext() 2267 mResources = resources; in ContextImpl()
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
D | WebViewContentsClientAdapter.java | 1065 private String[] mResources; field in WebViewContentsClientAdapter.PermissionRequestAdapter 1080 if (mResources == null) { in getResources() 1081 mResources = toPermissionResources(mAwPermissionRequest.getResources()); in getResources() 1083 return mResources; in getResources()
|
/frameworks/base/include/androidfw/ |
D | AssetManager.h | 374 mutable ResTable* mResources; variable
|