/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 42 return mContext.getResources().getInteger(R.integer.max_action_buttons); in getMaxActionButtons() 50 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 56 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs() 61 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs() 68 Resources r = mContext.getResources(); in getTabContainerHeight() 86 return mContext.getResources().getDimensionPixelSize( in getStackedTabMaxWidth()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/ |
D | ActionBarPolicy.java | 46 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons); in getMaxActionButtons() 58 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 64 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs); in hasEmbeddedTabs() 69 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs() 76 Resources r = mContext.getResources(); in getTabContainerHeight() 94 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/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PreviewPageFrame.java | 40 mSelectedElevation = mContext.getResources().getDimension( in PreviewPageFrame() 42 mNotSelectedElevation = mContext.getResources().getDimension( in PreviewPageFrame() 44 mSelectedPageAlpha = mContext.getResources().getFraction( in PreviewPageFrame() 46 mNotSelectedAlpha = mContext.getResources().getFraction( in PreviewPageFrame()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | AbstractDetailsDescriptionPresenter.java | 56 final int titleAscent = view.getResources().getDimensionPixelSize( in ViewHolder() 61 mUnderTitleBaselineMargin = view.getResources().getDimensionPixelSize( in ViewHolder() 63 mUnderSubtitleBaselineMargin = view.getResources().getDimensionPixelSize( in ViewHolder() 66 mTitleLineSpacing = view.getResources().getDimensionPixelSize( in ViewHolder() 68 mBodyLineSpacing = view.getResources().getDimensionPixelSize( in ViewHolder() 71 mBodyMaxLines = view.getResources().getInteger( in ViewHolder() 73 mBodyMinLines = view.getResources().getInteger( in ViewHolder()
|
D | PlaybackControlsRow.java | 225 labels[i] = context.getResources().getString( 227 labels2[i] = context.getResources().getString( 271 labels[i] = labels[i] = context.getResources().getString( 273 labels2[i] = context.getResources().getString( 323 setIcon(context.getResources().getDrawable(R.drawable.lb_ic_more)); 436 drawables[ALL] = new BitmapDrawable(context.getResources(), 438 drawables[ONE] = new BitmapDrawable(context.getResources(), 478 drawables[ON] = new BitmapDrawable(context.getResources(), 516 drawables[ON] = new BitmapDrawable(context.getResources(), 554 drawables[ON] = new BitmapDrawable(context.getResources(), [all …]
|
D | SpeechOrbView.java | 28 Resources resources = context.getResources(); in SpeechOrbView() 49 setOrbIcon(getResources().getDrawable(R.drawable.lb_ic_search_mic)); in showListening() 60 setOrbIcon(getResources().getDrawable(R.drawable.lb_ic_search_mic_out)); in showNotListening()
|
D | SearchOrbView.java | 159 final Resources res = context.getResources(); in SearchOrbView() 167 mFocusedZoom = context.getResources().getFraction( in SearchOrbView() 169 mPulseDurationMs = context.getResources().getInteger( in SearchOrbView() 171 mScaleDurationMs = context.getResources().getInteger( in SearchOrbView() 173 mFocusedZ = context.getResources().getDimensionPixelSize( in SearchOrbView() 175 mUnfocusedZ = context.getResources().getDimensionPixelSize( in SearchOrbView()
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 69 public Resources getResources() { in getResources() method in ContextThemeWrapper 74 mResources = super.getResources(); in getResources() 78 mResources = resc.getResources(); in getResources() 134 mTheme = getResources().newTheme(); in initializeTheme()
|
/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 | 54 final Resources res = context.getResources(); in StatusBarIconView() 82 final Resources res = context.getResources(); in StatusBarIconView() 126 if (icon.number > 0 && getContext().getResources().getBoolean( in set() 129 mNumberBackground = getContext().getResources().getDrawable( in set() 190 r = context.getResources(); in getIcon() 247 final int tooBig = getContext().getResources().getInteger( in placeNumber() 250 str = getContext().getResources().getString( in placeNumber()
|
D | NotificationOverflowIconsView.java | 49 mTintColor = getResources().getColor(R.color.keyguard_overflow_content_color); in onFinishInflate() 50 mIconSize = getResources().getDimensionPixelSize( in onFinishInflate() 74 getResources().getString(R.string.keyguard_more_overflow_text, getChildCount())); in updateMoreText()
|
D | KeyguardIndicationController.java | 101 showTransientIndication(mContext.getResources().getString(transientIndication)); in showTransientIndication() 142 return mContext.getResources().getString(R.string.keyguard_charged); in computePowerIndication() 151 return mContext.getResources().getString( in computePowerIndication() 159 return mContext.getResources().getString(R.string.keyguard_plugged_in); in computePowerIndication()
|
/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/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
D | ColorFilterDimmer.java | 49 context.getResources().getColor(R.color.lb_view_dim_mask_color)); in createDefault() 51 context.getResources().getFraction(R.fraction.lb_view_active_level, 1, 0)); in createDefault() 53 context.getResources().getFraction(R.fraction.lb_view_dimmed_level, 1, 1)); in createDefault()
|
/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()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PropConfig.java | 26 return SystemProperties.getInt(propName, context.getResources().getInteger(resId)); in getInt() 31 return !UNSET.equals(prop) ? prop.split(",") : context.getResources().getStringArray(resId); in getStringArray()
|
/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() 80 Resources res = context.getResources(); in setTheme()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BrightnessMirrorController.java | 95 lp.width = mBrightnessMirror.getResources().getDimensionPixelSize( in updateResources() 97 lp.gravity = mBrightnessMirror.getResources().getInteger( in updateResources() 101 int padding = mBrightnessMirror.getResources().getDimensionPixelSize( in updateResources()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | StackScrollAlgorithm.java | 105 mPaddingBetweenElementsDimmed = context.getResources() in initConstants() 107 mPaddingBetweenElementsNormal = context.getResources() in initConstants() 109 mCollapsedSize = context.getResources() in initConstants() 111 mMaxNotificationHeight = context.getResources() in initConstants() 113 mTopStackPeekSize = context.getResources() in initConstants() 115 mBottomStackPeekSize = context.getResources() in initConstants() 117 mZDistanceBetweenElements = context.getResources() in initConstants() 120 mBottomStackSlowDownLength = context.getResources() in initConstants() 122 mTopStackSlowDownLength = context.getResources() in initConstants() 124 mRoundedRectCornerRadius = context.getResources().getDimensionPixelSize( in initConstants() [all …]
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardStatusView.java | 127 getResources().getDimensionPixelSize(R.dimen.widget_big_font_size)); in onConfigurationChanged() 129 getResources().getDimensionPixelSize(R.dimen.widget_label_font_size)); in onConfigurationChanged() 131 getResources().getDimensionPixelSize(R.dimen.widget_label_font_size)); in onConfigurationChanged() 155 getResources().getString(R.string.keyguard_accessibility_next_alarm, alarm)); in refreshAlarmStatus() 225 final Resources res = context.getResources(); in update()
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | TestWallpaper.java | 107 tpaint.density = getResources().getDisplayMetrics().density; in onCreate() 108 tpaint.setCompatibilityScaling(getResources().getCompatibilityInfo().applicationScale); in onCreate() 110 tpaint.setTextSize(18 * getResources().getDisplayMetrics().scaledDensity); in onCreate() 111 tpaint.setShadowLayer(4 * getResources().getDisplayMetrics().density, 0, 0, 0xff000000); in onCreate() 115 mPadding = (int)(16 * getResources().getDisplayMetrics().density); 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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarHeaderView.java | 214 mClockCollapsedSize = getResources().getDimensionPixelSize(R.dimen.qs_time_collapsed_size); in onConfigurationChanged() 215 mClockExpandedSize = getResources().getDimensionPixelSize(R.dimen.qs_time_expanded_size); in onConfigurationChanged() 223 Resources res = getResources(); in updateClockCollapsedMargin() 227 float largeFactor = (MathUtils.constrain(getResources().getConfiguration().fontScale, 1.0f, in updateClockCollapsedMargin() 239 mCollapsedHeight = getResources().getDimensionPixelSize(R.dimen.status_bar_header_height); in loadDimens() 240 mExpandedHeight = getResources().getDimensionPixelSize( in loadDimens() 243 getResources().getDimensionPixelSize(R.dimen.multi_user_switch_expanded_margin); in loadDimens() 245 getResources().getDimensionPixelSize(R.dimen.multi_user_switch_collapsed_margin); in loadDimens() 247 getResources().getDimensionPixelSize(R.dimen.clock_expanded_bottom_margin); in loadDimens() 250 getResources().getDimensionPixelSize(R.dimen.multi_user_switch_width_collapsed); in loadDimens() [all …]
|
/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()
|