/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 43 return mContext.getResources().getInteger(R.integer.max_action_buttons); in getMaxActionButtons() 51 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 57 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs() 62 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs() 69 Resources r = mContext.getResources(); in getTabContainerHeight() 87 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/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/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarIconView.java | 55 final Resources res = context.getResources(); in StatusBarIconView() 81 final Resources res = context.getResources(); in StatusBarIconView() 132 if (icon.number > 0 && mContext.getResources().getBoolean( in set() 135 mNumberBackground = getContext().getResources().getDrawable( in set() 174 r = context.getResources(); in getIcon() 231 final int tooBig = mContext.getResources().getInteger( in placeNumber() 234 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 | BitmapsRectActivity.java | 50 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView() 51 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
|
D | TransparentListActivity.java | 82 getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.gradient)); in onCreate() 112 final Resources r = getContext().getResources(); in getView()
|
/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()
|
D | DrawableBgMinSize.java | 58 mBackgroundDrawable = getResources().getDrawable(R.drawable.drawable_background); in onCreate() 59 mBigBackgroundDrawable = getResources().getDrawable(R.drawable.big_drawable_background); 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/tests/RenderScriptTests/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/services/java/com/android/server/ |
D | BatteryService.java | 133 mCriticalBatteryLevel = mContext.getResources().getInteger( in BatteryService() 135 mLowBatteryWarningLevel = mContext.getResources().getInteger( in BatteryService() 137 mLowBatteryCloseWarningLevel = mContext.getResources().getInteger( in BatteryService() 563 mBatteryLowARGB = mContext.getResources().getInteger( in Led() 565 mBatteryMediumARGB = mContext.getResources().getInteger( in Led() 567 mBatteryFullARGB = mContext.getResources().getInteger( in Led() 569 mBatteryLedOn = mContext.getResources().getInteger( in Led() 571 mBatteryLedOff = mContext.getResources().getInteger( in Led()
|
/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/base/core/java/android/server/ |
D | BluetoothAdapterStateMachine.java | 230 } else if (mContext.getResources().getBoolean in processMessage() 469 if (mContext.getResources().getBoolean in processMessage() 478 if (mContext.getResources().getBoolean in processMessage() 497 if (mContext.getResources().getBoolean in processMessage() 508 if (mContext.getResources().getBoolean in processMessage() 640 if (!mContext.getResources().getBoolean in processMessage() 659 if (mContext.getResources().getBoolean in processMessage()
|
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | IntruderAlertView.java | 72 float densityScale = getResources().getDisplayMetrics().density; in onAttachedToWindow() 127 float densityScale = getResources().getDisplayMetrics().density; in onConfigurationChanged() 166 Drawable bg = getResources().getDrawable(R.drawable.intruder_row_bg); in applyIntruderContent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarWindowView.java | 52 int minHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_min_height); in onAttachedToWindow() 53 int maxHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_max_height); in onAttachedToWindow()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuItemImpl.java | 119 sPrependShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 121 sEnterShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 123 sDeleteShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 125 sSpaceShortcutLabel = menu.getContext().getResources().getString( in MenuItemImpl() 385 Drawable icon = mMenu.getResources().getDrawable(mIconResId); in getIcon()
|
/frameworks/base/services/java/com/android/server/am/ |
D | LaunchWarningWindow.java | 48 text.setText(context.getResources().getString(R.string.launch_warning_replace, in LaunchWarningWindow() 53 text.setText(context.getResources().getString(R.string.launch_warning_original, in LaunchWarningWindow()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceInflater.java | 77 intent = Intent.parseIntent(getContext().getResources(), parser, attrs); in onCreateCustomFromTag() 91 getContext().getResources().parseBundleExtra(EXTRA_TAG_NAME, attrs, in onCreateCustomFromTag()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | PatternUnlockScreen.java | 227 + ", new config=" + getResources().getConfiguration()); in onAttachedToWindow() 229 if (getResources().getConfiguration().orientation != mCreationOrientation) { in onAttachedToWindow() 230 mCallback.recreateMe(getResources().getConfiguration()); in onAttachedToWindow() 242 + ", new config=" + getResources().getConfiguration()); in onConfigurationChanged()
|