/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ResourcesWrapper.java | 46 private final Resources mResources; field in ResourcesWrapper 50 mResources = resources; in ResourcesWrapper() 55 return mResources.getText(id); in getText() 60 return mResources.getQuantityText(id, quantity); in getQuantityText() 65 return mResources.getString(id); in getString() 70 return mResources.getString(id, formatArgs); in getString() 76 return mResources.getQuantityString(id, quantity, formatArgs); in getQuantityString() 81 return mResources.getQuantityString(id, quantity); in getQuantityString() 86 return mResources.getText(id, def); in getText() 91 return mResources.getTextArray(id); in getTextArray() [all …]
|
D | TintManager.java | 110 private final Resources mResources; field in TintManager 132 mResources = new TintResources(context.getResources(), this); in TintManager() 152 drawable = mResources.getDrawable(resId); in getDrawable() 205 Log.d(TAG, "Tinted Drawable ID: " + mResources.getResourceName(resId) + in tintDrawable() 362 return mResources.getColor(mTypedValue.resourceId); in getThemeAttrColor()
|
/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 | ConfigurationBoundResourceCache.java | 32 final Resources mResources; field in ConfigurationBoundResourceCache 40 mResources = resources; in ConfigurationBoundResourceCache() 92 return (T) entry.newInstance(mResources, theme); in get()
|
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() 899 mResources.mTypedArrayPool.release(this); in recycle() 1000 mResources = resources; in TypedArray() 1001 mMetrics = mResources.mMetrics; in TypedArray() 1002 mAssets = mResources.mAssets; in TypedArray()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteInit.java | 93 private static Resources mResources; field in ZygoteInit 392 mResources = Resources.getSystem(); in preloadResources() 393 mResources.startPreloading(); in preloadResources() 398 TypedArray ar = mResources.obtainTypedArray( in preloadResources() 406 ar = mResources.obtainTypedArray( in preloadResources() 413 mResources.finishPreloading(); in preloadResources() 437 if (mResources.getColorStateList(id) == null) { in preloadColorStateLists() 465 if (mResources.getDrawable(id, null) == null) { in preloadDrawables()
|
/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/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/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/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 | 48 private Resources mResources; field in FindActionModeCallback 66 mResources = context.getResources(); in FindActionModeCallback() 181 mMatches.setText(mResources.getQuantityString( in updateMatchesString()
|
/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 | 103 private Resources mResources; field in MaterialProgressDrawable 113 mResources = context.getResources(); in MaterialProgressDrawable() 125 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()
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
D | WebViewContentsClientAdapter.java | 1078 private String[] mResources; field in WebViewContentsClientAdapter.PermissionRequestAdapter 1093 if (mResources == null) { in getResources() 1094 mResources = toPermissionResources(mAwPermissionRequest.getResources()); in getResources() 1096 return mResources; in getResources()
|