/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 101 private final Resources mResources; field in PhotoTable 131 mResources = getResources(); in PhotoTable() 132 mInset = mResources.getDimensionPixelSize(R.dimen.photo_inset); in PhotoTable() 133 mDropPeriod = mResources.getInteger(R.integer.table_drop_period); in PhotoTable() 134 mFastDropPeriod = mResources.getInteger(R.integer.fast_drop); in PhotoTable() 135 mNowDropDelay = mResources.getInteger(R.integer.now_drop); in PhotoTable() 136 mImageRatio = mResources.getInteger(R.integer.image_ratio) / 1000000f; in PhotoTable() 137 mTableRatio = mResources.getInteger(R.integer.table_ratio) / 1000000f; in PhotoTable() 138 mImageRotationLimit = (float) mResources.getInteger(R.integer.max_image_rotation); in PhotoTable() 139 mThrowSpeed = mResources.getDimension(R.dimen.image_throw_speed); in PhotoTable() [all …]
|
D | PhotoSource.java | 94 protected final Resources mResources; field in PhotoSource 110 mResources = context.getResources(); in PhotoSource() 112 mMaxQueueSize = mResources.getInteger(R.integer.image_queue_size); in PhotoSource() 113 mMaxCropRatio = mResources.getInteger(R.integer.max_crop_ratio) / 1000000f; in PhotoSource() 114 mBadImageSkipLimit = mResources.getInteger(R.integer.bad_image_skip_limit); in PhotoSource()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardBuilder.java | 137 protected final Resources mResources; field in KeyboardBuilder 148 mResources = res; in KeyboardBuilder() 162 final XmlResourceParser parser = mResources.getXml(xmlId); in load() 233 final TypedArray keyAttr = mResources.obtainAttributes(Xml.asAttributeSet(parser), in parseKeyboardAttributes() 290 job.runInLocale(mResources, locale); in parseKeyboardAttributes() 295 final String[] data = mResources.getStringArray(resourceId); in parseKeyboardAttributes() 344 final TypedArray a = mResources.obtainAttributes(Xml.asAttributeSet(parser), in parseRowAttributes() 353 return new KeyboardRow(mResources, mParams, parser, mCurrentY); in parseRowAttributes() 404 final Key key = new Key(mResources, mParams, row, parser); in parseKey() 421 final Key.Spacer spacer = new Key.Spacer(mResources, mParams, row, parser); in parseSpacer() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 564 protected final Resources mResources; field in DayView 658 mResources = context.getResources(); in DayView() 659 mCreateNewEventString = mResources.getString(R.string.event_create); in DayView() 660 mNewEventHintString = mResources.getString(R.string.day_view_new_event_hint); in DayView() 663 DATE_HEADER_FONT_SIZE = (int) mResources.getDimension(R.dimen.date_header_text_size); in DayView() 664 DAY_HEADER_FONT_SIZE = (int) mResources.getDimension(R.dimen.day_label_text_size); in DayView() 665 ONE_DAY_HEADER_HEIGHT = (int) mResources.getDimension(R.dimen.one_day_header_height); in DayView() 666 DAY_HEADER_BOTTOM_MARGIN = (int) mResources.getDimension(R.dimen.day_header_bottom_margin); in DayView() 667 EXPAND_ALL_DAY_BOTTOM_MARGIN = (int) mResources.getDimension(R.dimen.all_day_bottom_margin); in DayView() 668 HOURS_TEXT_SIZE = (int) mResources.getDimension(R.dimen.hours_text_size); in DayView() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSet.java | 202 private final Resources mResources; field in KeyboardLayoutSet.Builder 212 mResources = context.getResources(); in Builder() 232 mResources, R.array.keyboard_heights); in setDefaultKeyboardSize() 235 keyboardHeight = mResources.getDimension(R.dimen.keyboardHeight); in setDefaultKeyboardSize() 238 * mResources.getDisplayMetrics().density; in setDefaultKeyboardSize() 240 final float maxKeyboardHeight = mResources.getFraction( in setDefaultKeyboardSize() 242 float minKeyboardHeight = mResources.getFraction( in setDefaultKeyboardSize() 247 minKeyboardHeight = -mResources.getFraction( in setDefaultKeyboardSize() 297 final String packageName = mResources.getResourcePackageName( in build() 300 final int xmlId = mResources.getIdentifier(keyboardLayoutSetName, "xml", packageName); in build() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaAdapter.java | 43 private final Resources mResources; field in AgendaAdapter 86 mResources = context.getResources(); in AgendaAdapter() 87 mNoTitleLabel = mResources.getString(R.string.no_title_label); in AgendaAdapter() 88 mDeclinedColor = mResources.getColor(R.color.agenda_item_declined_color); in AgendaAdapter() 89 mStandardColor = mResources.getColor(R.color.agenda_item_standard_color); in AgendaAdapter() 90 mWhereDeclinedColor = mResources.getColor(R.color.agenda_item_where_declined_text_color); in AgendaAdapter() 91 mWhereColor = mResources.getColor(R.color.agenda_item_where_text_color); in AgendaAdapter() 95 COLOR_CHIP_ALL_DAY_HEIGHT = mResources.getInteger(R.integer.color_chip_all_day_height); in AgendaAdapter() 96 COLOR_CHIP_HEIGHT = mResources.getInteger(R.integer.color_chip_height); in AgendaAdapter() 98 mScale = mResources.getDisplayMetrics().density; in AgendaAdapter()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | CircleTimerView.java | 38 private Resources mResources; field in CircleTimerView 118 mResources = c.getResources(); in init() 119 mCircleXCenterLeftPadding = (mResources.getDimension(R.dimen.timer_circle_width) in init() 120 - mResources.getDimension(R.dimen.timer_circle_diameter)) / 2; in init() 121 mStrokeSize = mResources.getDimension(R.dimen.circletimer_circle_size); in init() 122 mDiamondStrokeSize = mResources.getDimension(R.dimen.circletimer_diamond_size); in init() 123 mMarkerStrokeSize = mResources.getDimension(R.dimen.circletimer_marker_size); in init() 128 mWhiteColor = mResources.getColor(R.color.clock_white); in init() 129 mRedColor = mResources.getColor(R.color.clock_red); in init() 130 mScreenDensity = mResources.getDisplayMetrics().density; in init()
|
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/ |
D | RecurrencePickerDialog.java | 264 private Resources mResources; field in RecurrencePickerDialog 646 mResources = getResources(); in onCreateView() 685 mEndNeverStr = mResources.getString(R.string.recurrence_end_continously); in onCreateView() 686 mEndDateLabel = mResources.getString(R.string.recurrence_end_date_label); in onCreateView() 687 mEndCountLabel = mResources.getString(R.string.recurrence_end_count_label); in onCreateView() 739 mMonthRepeatByDayOfWeekStrs[0] = mResources.getStringArray(R.array.repeat_by_nth_sun); in onCreateView() 740 mMonthRepeatByDayOfWeekStrs[1] = mResources.getStringArray(R.array.repeat_by_nth_mon); in onCreateView() 741 mMonthRepeatByDayOfWeekStrs[2] = mResources.getStringArray(R.array.repeat_by_nth_tues); in onCreateView() 742 mMonthRepeatByDayOfWeekStrs[3] = mResources.getStringArray(R.array.repeat_by_nth_wed); in onCreateView() 743 mMonthRepeatByDayOfWeekStrs[4] = mResources.getStringArray(R.array.repeat_by_nth_thurs); in onCreateView() [all …]
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallTypeIconsView.java | 39 private Resources mResources; field in CallTypeIconsView 49 mResources = new Resources(context); in CallTypeIconsView() 63 mWidth += drawable.getIntrinsicWidth() + mResources.iconMargin; in add() 81 return mResources.incoming; in getCallTypeDrawable() 83 return mResources.outgoing; in getCallTypeDrawable() 85 return mResources.missed; in getCallTypeDrawable() 87 return mResources.voicemail; in getCallTypeDrawable() 106 left = right + mResources.iconMargin; in onDraw()
|
D | PhoneNumberHelper.java | 30 private final Resources mResources; field in PhoneNumberHelper 33 mResources = resources; in PhoneNumberHelper() 60 return mResources.getString(R.string.unknown); in getDisplayNumber() 63 return mResources.getString(R.string.private_num); in getDisplayNumber() 66 return mResources.getString(R.string.payphone); in getDisplayNumber() 69 return mResources.getString(R.string.voicemail); in getDisplayNumber()
|
D | CallLogListItemHelper.java | 37 private final Resources mResources; field in CallLogListItemHelper 49 mResources = resources; in CallLogListItemHelper() 98 return mResources.getString(R.string.description_call, recipient); in getCallActionDescription() 107 mResources.getString(R.string.description_call_log_play_button)); in configurePlaySecondaryAction()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreferenceCategory.java | 58 private final Resources mResources; field in StorageVolumePreferenceCategory 125 mResources = context.getResources(); in StorageVolumePreferenceCategory() 255 mMountTogglePreference.setTitle(mResources.getString(R.string.sd_eject)); in updatePreferencesFromState() 256 mMountTogglePreference.setSummary(mResources.getString(R.string.sd_eject_summary)); in updatePreferencesFromState() 261 mMountTogglePreference.setTitle(mResources.getString(R.string.sd_mount)); in updatePreferencesFromState() 262 mMountTogglePreference.setSummary(mResources.getString(R.string.sd_mount_summary)); in updatePreferencesFromState() 265 mMountTogglePreference.setTitle(mResources.getString(R.string.sd_mount)); in updatePreferencesFromState() 266 mMountTogglePreference.setSummary(mResources.getString(R.string.sd_insert_summary)); in updatePreferencesFromState() 283 mResources.getString(R.string.mtp_ptp_mode_summary)); in updatePreferencesFromState() 288 mFormatPreference.setSummary(mResources.getString(R.string.mtp_ptp_mode_summary)); in updatePreferencesFromState() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
D | ProjectPickerAdapter.java | 52 private Resources mResources; field in ProjectPickerAdapter 65 mResources = context.getResources(); in ProjectPickerAdapter() 68 mItemWidth = (int) mResources.getDimension(R.dimen.project_picker_item_width); in ProjectPickerAdapter() 69 mItemHeight = (int) mResources.getDimension(R.dimen.project_picker_item_height); in ProjectPickerAdapter() 70 mOverlayHeight = (int) mResources.getDimension( in ProjectPickerAdapter() 72 mOverlayVerticalInset = (int) mResources.getDimension( in ProjectPickerAdapter() 74 mOverlayHorizontalInset = (int) mResources.getDimension( in ProjectPickerAdapter() 177 paint.setTextSize((int) mResources.getDimension(R.dimen.project_picker_item_font_size)); in drawBottomOverlay() 219 final Bitmap newProjectIcon = BitmapFactory.decodeResource(mResources, in renderNewProjectThumbnail()
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/ |
D | Visualization5RS.java | 155 mScript = new ScriptC_many(mRS, mResources, R.raw.many); in createScript() 169 mTextures[0] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.background, in createScript() 173 mTextures[1] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.frame, in createScript() 177 mTextures[2] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_on, in createScript() 181 mTextures[3] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_off, in createScript() 185 mTextures[4] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.needle, in createScript() 189 mTextures[5] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.black, in createScript() 193 mTextures[6] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.albumart, in createScript() 197 mTextures[7] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.fire, in createScript()
|
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/ |
D | StringResourceMap.java | 38 private final List<StringResource> mResources; field in StringResourceMap 60 mResources = Collections.unmodifiableList(handler.mResources); in StringResourceMap() 62 for (final StringResource res : mResources) { in StringResourceMap() 69 return mResources; in getResources() 85 final ArrayList<StringResource> mResources = new ArrayList<StringResource>(); field in StringResourceMap.StringResourceHandler 130 mResources.add(new StringResource(mName, value, comment)); in endElement()
|
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
D | HoloSpiralRS.java | 66 private Resources mResources = null; field in HoloSpiralRS 74 mResources = resources; in init() 100 mScript = new ScriptC_holo_spiral(mRS, mResources, R.raw.holo_spiral); in createScript() 121 backgroundBuilder.setShader(mResources, R.raw.vertex_background); in createVertexPrograms() 127 geometryBuilder.setShader(mResources, R.raw.vertex_geometry); in createVertexPrograms() 137 backgroundBuilder.setShader(mResources, R.raw.fragment_background); in createFragmentPrograms() 142 geometryBuilder.setShader(mResources, R.raw.fragment_geometry); in createFragmentPrograms() 183 mResources, R.drawable.points_red_green, null); in createTextures()
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/ |
D | Visualization4RS.java | 95 mScript = new ScriptC_vu(mRS, mResources, R.raw.vu); in createScript() 111 mTextures[0] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.background, in createScript() 115 mTextures[1] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.frame, in createScript() 119 mTextures[2] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_on, in createScript() 123 mTextures[3] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_off, in createScript() 127 mTextures[4] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.needle, in createScript() 131 mTextures[5] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.black, in createScript()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterBorder.java | 33 private Resources mResources = null; field in ImageFilterBorder 77 if (mResources != resources) { in setResources() 78 mResources = resources; in setResources() 85 if (drawable == null && mResources != null && rsc != 0) { in getDrawable() 86 … drawable = new BitmapDrawable(mResources, BitmapFactory.decodeResource(mResources, rsc)); in getDrawable()
|
D | ImageFilterFx.java | 28 private Resources mResources = null; field in ImageFilterFx 53 if (getParameters() == null || mResources == null) { in apply() 70 mFxBitmap = BitmapFactory.decodeResource(mResources, mFxBitmapId, o); in apply() 88 mResources = resources; in setResources()
|
/packages/apps/Dialer/src/com/android/dialer/ |
D | PhoneCallDetailsHelper.java | 43 private final Resources mResources; field in PhoneCallDetailsHelper 59 mResources = resources; in PhoneCallDetailsHelper() 100 numberFormattedLabel = Phone.getTypeLabel(mResources, details.numberType, in setPhoneCallDetails() 113 numberText = mResources.getString(R.string.call_log_empty_gecode); in setPhoneCallDetails() 139 mResources.getString(R.string.recentCalls_addToContact)); in setCallDetailsHeader() 173 text = mResources.getString( in setCallCountAndDate()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | CaptureAnimManager.java | 70 private Resources mResources; field in CaptureAnimManager 83 mResources = ctx.getResources(); in CaptureAnimManager() 111 mMarginRight = mResources.getDimensionPixelSize(R.dimen.capture_margin_right); in setAnimationGeometry() 112 mMarginTop = mResources.getDimensionPixelSize(R.dimen.capture_margin_top); in setAnimationGeometry() 113 mSize = mResources.getDimensionPixelSize(R.dimen.capture_size); in setAnimationGeometry() 114 mShadowSize = mResources.getDimensionPixelSize(R.dimen.capture_border); in setAnimationGeometry()
|
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/ |
D | MagicSmokeRS.java | 264 Bitmap in = BitmapFactory.decodeResource(mResources, id, opts); in loadBitmap() 327 mScript = new ScriptC_clouds(mRS, mResources, R.raw.clouds); in createScript() 334 builder.setShader(mResources, R.raw.pv5tex); in createScript() 341 builder.setShader(mResources, R.raw.pv4tex); in createScript() 371 builder.setShader(mResources, R.raw.pf5tex); in createScript() 383 builder.setShader(mResources, R.raw.pf4tex); in createScript()
|
/packages/apps/Email/src/com/android/email/ |
D | ResourceHelper.java | 32 private final Resources mResources; field in ResourceHelper 40 mResources = mContext.getResources(); in ResourceHelper() 42 mAccountColorArray = mResources.obtainTypedArray(R.array.combined_view_account_colors); in ResourceHelper() 43 mAccountColors = mResources.getIntArray(R.array.combined_view_account_colors); in ResourceHelper()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | SubtypeSwitcher.java | 47 private /* final */ Resources mResources; field in SubtypeSwitcher 92 if (mResources != null) { in initialize() 95 mResources = context.getResources(); in initialize() 162 final Locale systemLocale = mResources.getConfiguration().locale; in onSubtypeChanged()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
D | NexusRS.java | 91 mScript = new ScriptC_nexus(mRS, mResources, R.raw.nexus); in createScript() 109 mode = mResources.getInteger(R.integer.nexus_mode); in createState() 122 return Allocation.createFromBitmapResource(mRS, mResources, id, in loadTexture() 128 Bitmap b = BitmapFactory.decodeResource(mResources, id, mOptionsARGB); in loadTextureARGB()
|