/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 44 return mContext.getResources().getInteger(R.integer.max_action_buttons); in getMaxActionButtons() 49 ((mContext.getResources().getConfiguration().uiMode & in showsOverflowMenuButton() 55 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 61 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs() 66 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs() 73 Resources r = mContext.getResources(); in getTabContainerHeight() 91 return mContext.getResources().getDimensionPixelSize( in getStackedTabMaxWidth()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/ |
D | ActionBarPolicy.java | 44 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons); in getMaxActionButtons() 53 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 59 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs() 66 Resources r = mContext.getResources(); in getTabContainerHeight() 83 return mContext.getResources().getDimensionPixelSize( in getStackedTabMaxWidth()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 65 app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai, in init() 66 getResources().getConfiguration().screenLayout, in init() 67 getResources().getConfiguration().smallestScreenWidthDp, false)); in init() 170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); in addBitmapDrawable() 171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable() 182 final Drawable d = getResources().getDrawable(resource); in addResourceDrawable() 204 final Drawable d = getResources().getDrawable(resource); in addNinePatchResourceDrawable() 217 bitmap = BitmapFactory.decodeResource(getResources(), id); in loadAndPrintDpi() 221 bitmap = BitmapFactory.decodeResource(getResources(), id, opts); in loadAndPrintDpi() 237 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in onMeasure()
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 73 public Resources getResources() { in getResources() method in ContextThemeWrapper 78 mResources = super.getResources(); in getResources() 82 mResources = resc.getResources(); in getResources() 138 mTheme = getResources().newTheme(); in initializeTheme()
|
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/ |
D | PlaybackView.java | 56 getPaint().setColor(getResources().getColor(colorId)); in TileDrawable() 136 mGraphs.draw(canvas, mTempShapes, mRenderStrings, getResources()); in onDraw() 141 return getResources().getString(R.string.format_stat_name, in statString() 142 getResources().getString(labelId), value); in statString() 145 return getResources().getString(formatStringId, in tileString() 191 getResources().getColor(R.color.inval_region_start), in setFrame() 192 getResources().getColor(R.color.inval_region_stop)); in setFrame()
|
D | ProfileActivity.java | 100 if (movementStr == getResources().getString(R.string.movement_auto_scroll)) { in onItemSelected() 104 } else if (movementStr == getResources().getString(R.string.movement_manual)) { in onItemSelected() 108 } else if (movementStr == getResources().getString(R.string.movement_timed)) { in onItemSelected() 282 getResources().getString(R.string.movement_auto_scroll), in onCreate() 283 getResources().getString(R.string.movement_manual), in onCreate() 284 getResources().getString(R.string.movement_timed) in onCreate()
|
/frameworks/base/core/java/android/content/ |
D | SyncActivityTooManyDeletes.java | 63 getResources().getText(R.string.sync_really_delete), in onCreate() 64 getResources().getText(R.string.sync_undo_deletes), in onCreate() 65 getResources().getText(R.string.sync_do_nothing) in onCreate() 80 getResources().getText(R.string.sync_too_many_deletes_desc); in onCreate()
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | CompareActivity.java | 58 ResourceModifiers.init(getResources()); in onCreateCommon() 65 int width = getResources().getDimensionPixelSize(R.dimen.layer_width); in onCreateCommon() 66 int height = getResources().getDimensionPixelSize(R.dimen.layer_height); in onCreateCommon() 70 mErrorCalculator = new ErrorCalculator(getApplicationContext(), getResources()); in onCreateCommon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarIconView.java | 56 final Resources res = context.getResources(); in StatusBarIconView() 82 final Resources res = context.getResources(); in StatusBarIconView() 128 if (icon.number > 0 && mContext.getResources().getBoolean( in set() 131 mNumberBackground = getContext().getResources().getDrawable( in set() 192 r = context.getResources(); in getIcon() 249 final int tooBig = mContext.getResources().getInteger( in placeNumber() 252 str = mContext.getResources().getString( in placeNumber()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | BitmapsAlphaActivity.java | 52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView() 54 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView() 58 mBitmap3 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset3, opts); in BitmapsView()
|
D | BitmapsActivity.java | 63 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView() 64 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView() 71 … Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts); in BitmapsView()
|
D | StackActivity.java | 41 getResources().getDrawable(R.drawable.sunset1), in onCreate() 42 getResources().getDrawable(R.drawable.sunset2), in onCreate()
|
D | MipMapActivity.java | 52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); in BitmapsView() 53 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); in BitmapsView()
|
D | BitmapsRectActivity.java | 50 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView() 51 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MutateDrawable.java | 34 ok.setBackgroundDrawable(getResources().getDrawable( in onCreate() 39 cancel.setBackgroundDrawable(getResources().getDrawable( in onCreate()
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 162 myWebView.loadData(getResources().getString(R.string.connection_error), in showErrorPage() 198 return getResources().getString(R.string.connection_error); in doInBackground() 200 return getResources().getString(R.string.xml_error); in doInBackground() 230 htmlString.append("<h3>" + getResources().getString(R.string.page_title) + "</h3>"); in loadXmlFromNetwork() 231 htmlString.append("<em>" + getResources().getString(R.string.updated) + " " + in loadXmlFromNetwork()
|
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/ |
D | ComputePerf.java | 44 mLT = new LaunchTest(mRS, getResources()); in onCreate() 59 mMandel = new Mandelbrot(mRS, getResources()); in onCreate()
|
/frameworks/base/core/java/android/text/style/ |
D | ImageSpan.java | 64 ? new BitmapDrawable(context.getResources(), b) in ImageSpan() 139 drawable = new BitmapDrawable(mContext.getResources(), bitmap); in getDrawable() 148 drawable = mContext.getResources().getDrawable(mResourceId); in getDrawable()
|
/frameworks/base/core/java/android/app/ |
D | Presentation.java | 202 public Resources getResources() { in getResources() method in Presentation 203 return getContext().getResources(); in getResources() 284 return dm.equalsPhysical(getResources().getDisplayMetrics()); in isConfigurationStillValid()
|
/frameworks/base/services/java/com/android/server/ |
D | BatteryService.java | 154 mCriticalBatteryLevel = mContext.getResources().getInteger( in BatteryService() 156 mLowBatteryWarningLevel = mContext.getResources().getInteger( in BatteryService() 158 mLowBatteryCloseWarningLevel = mContext.getResources().getInteger( in BatteryService() 160 mShutdownBatteryTemperature = mContext.getResources().getInteger( in BatteryService() 696 mBatteryLowARGB = context.getResources().getInteger( in Led() 698 mBatteryMediumARGB = context.getResources().getInteger( in Led() 700 mBatteryFullARGB = context.getResources().getInteger( in Led() 702 mBatteryLedOn = context.getResources().getInteger( in Led() 704 mBatteryLedOff = context.getResources().getInteger( in Led()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuItemImpl.java | 118 String lang = menu.getContext().getResources().getConfiguration().locale.toString(); in MenuItemImpl() 122 sPrependShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 124 sEnterShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 126 sDeleteShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 128 sSpaceShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 388 Drawable icon = mMenu.getResources().getDrawable(mIconResId); in getIcon()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardParserTests.java | 93 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_simple_1); in testSimple() 111 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_nest); in testNest() 145 getContext().getResources().openRawResource(R.raw.v21_multiple_entry); in testParseOne() 186 inputStream = getContext().getResources().openRawResource(R.raw.v21_multiple_entry); in testParseOne()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | PropertyNodesVerifier.java | 47 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType); in verify() 52 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), in verify()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | TextViewWithCircularIndicator.java | 49 Resources res = context.getResources(); in TextViewWithCircularIndicator() 52 mItemIsSelectedText = context.getResources().getString(R.string.item_is_selected); in TextViewWithCircularIndicator()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | CircleView.java | 50 Resources res = context.getResources(); in CircleView() 64 Resources res = context.getResources(); in initialize()
|