Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 25 of 177) sorted by relevance

12345678

/packages/apps/Messaging/src/com/android/messaging/ui/
DConversationDrawables.java74 final Resources resources = mContext.getResources(); in updateDrawables() local
76 mIncomingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_incoming); in updateDrawables()
78 resources.getDrawable(R.drawable.message_bubble_incoming_no_arrow); in updateDrawables()
79 mIncomingErrorBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_error); in updateDrawables()
80 mOutgoingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_outgoing); in updateDrawables()
82 resources.getDrawable(R.drawable.message_bubble_outgoing_no_arrow); in updateDrawables()
83 mAudioPlayButtonDrawable = resources.getDrawable(R.drawable.ic_audio_play); in updateDrawables()
84 mAudioPauseButtonDrawable = resources.getDrawable(R.drawable.ic_audio_pause); in updateDrawables()
86 resources.getDrawable(R.drawable.audio_progress_bar_background_incoming); in updateDrawables()
88 resources.getDrawable(R.drawable.audio_progress_bar_background_outgoing); in updateDrawables()
[all …]
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallTypeHelper.java51 public CallTypeHelper(Resources resources) { in CallTypeHelper() argument
53 mIncomingName = resources.getString(R.string.type_incoming); in CallTypeHelper()
54 mOutgoingName = resources.getString(R.string.type_outgoing); in CallTypeHelper()
55 mMissedName = resources.getString(R.string.type_missed); in CallTypeHelper()
56 mIncomingVideoName = resources.getString(R.string.type_incoming_video); in CallTypeHelper()
57 mOutgoingVideoName = resources.getString(R.string.type_outgoing_video); in CallTypeHelper()
58 mMissedVideoName = resources.getString(R.string.type_missed_video); in CallTypeHelper()
59 mVoicemailName = resources.getString(R.string.type_voicemail); in CallTypeHelper()
60 mRejectedName = resources.getString(R.string.type_rejected); in CallTypeHelper()
61 mBlockedName = resources.getString(R.string.type_blocked); in CallTypeHelper()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DInvariantDeviceProfileTest.java124 Resources resources = getContext().getResources(); in testQsbNormalHeight() local
131 resources.getDisplayMetrics()); in testQsbNormalHeight()
134 resources.getDisplayMetrics()); in testQsbNormalHeight()
142 Point portraitDimens = portraitProfile.getSearchBarDimensForWidgetOpts(resources); in testQsbNormalHeight()
144 Point landscapeDimens = landscapeProfile.getSearchBarDimensForWidgetOpts(resources); in testQsbNormalHeight()
147 resources.getDisplayMetrics())); in testQsbNormalHeight()
158 Resources resources = getContext().getResources(); in testQsbTallHeight() local
165 resources.getDisplayMetrics()); in testQsbTallHeight()
168 resources.getDisplayMetrics()); in testQsbTallHeight()
177 Point portraitDimens = portraitProfile.getSearchBarDimensForWidgetOpts(resources); in testQsbTallHeight()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListItemView.java161 final Resources resources = getContext().getResources(); in onFinishInflate() local
162 mListItemReadColor = resources.getColor(R.color.conversation_list_item_read); in onFinishInflate()
163 mListItemUnreadColor = resources.getColor(R.color.conversation_list_item_unread); in onFinishInflate()
300 public static String buildContentDescription(final Resources resources, in buildContentDescription() argument
329 String primaryContentDescription = resources.getString(resId, senderOrConvName, in buildContentDescription()
343 resources.getString(sSecondaryContentDescription); in buildContentDescription()
367 final Resources resources = getContext().getResources(); in bind() local
394 setContentDescription(buildContentDescription(resources, mData, in bind()
400 mTimestampTextView.setTextColor(resources.getColor(R.color.conversation_list_error)); in bind()
407 mTimestampTextView.setText(resources.getString(failureMessageId)); in bind()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DIconCache.java95 public Drawable getFullResIcon(Resources resources, int iconId, UserHandle user) { in getFullResIcon() argument
98 d = resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
110 Resources resources; in getFullResIcon() local
115 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon()
117 resources = null; in getFullResIcon()
119 if (resources != null) { in getFullResIcon()
121 return getFullResIcon(resources, iconId, user); in getFullResIcon()
132 Resources resources; in getFullResIcon() local
134 resources = mPackageManager.getResourcesForApplication( in getFullResIcon()
137 resources = null; in getFullResIcon()
[all …]
DUserInitializeReceiver.java37 final Resources resources = context.getResources(); in onReceive() local
42 final String packageName = resources.getResourcePackageName(R.array.wallpapers); in onReceive()
44 addWallpapers(resources, packageName, R.array.wallpapers, list); in onReceive()
45 addWallpapers(resources, packageName, R.array.extra_wallpapers, list); in onReceive()
60 private void addWallpapers(Resources resources, String packageName, int resid, in addWallpapers() argument
62 final String[] extras = resources.getStringArray(resid); in addWallpapers()
64 int res = resources.getIdentifier(extra, "drawable", packageName); in addWallpapers()
DWallpaperChooserDialogFragment.java196 final Resources resources = getResources(); in findWallpapers() local
201 final String packageName = resources.getResourcePackageName(R.array.wallpapers); in findWallpapers()
203 addWallpapers(resources, packageName, R.array.wallpapers); in findWallpapers()
204 addWallpapers(resources, packageName, R.array.extra_wallpapers); in findWallpapers()
207 private void addWallpapers(Resources resources, String packageName, int list) { in addWallpapers() argument
208 final String[] extras = resources.getStringArray(list); in addWallpapers()
210 int res = resources.getIdentifier(extra, "drawable", packageName); in addWallpapers()
212 int thumbRes = resources.getIdentifier(extra + "_small", in addWallpapers()
DUtilities.java86 final Resources resources = context.getResources(); in createIconBitmap() local
87 return createIconBitmap(new BitmapDrawable(resources, icon), context); in createIconBitmap()
211 final Resources resources = context.getResources(); in resampleIconBitmap() local
212 return createIconBitmap(new BitmapDrawable(resources, bitmap), context); in resampleIconBitmap()
236 final Resources resources = context.getResources(); in initStatics() local
237 final DisplayMetrics metrics = resources.getDisplayMetrics(); in initStatics()
240 sIconWidth = sIconHeight = (int) resources.getDimension(R.dimen.app_icon_size); in initStatics()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPickerConstants.java35 private Date(Resources resources) { in Date() argument
38 dateSeparator = resources.getString(R.string.date_separator); in Date()
49 private Time(Resources resources) { in Time() argument
53 ampm = resources.getStringArray(R.array.ampm); in Time()
54 timeSeparator = resources.getString(R.string.time_separator); in Time()
74 public static PickerConstants.Date getDateInstance(Resources resources) { in getDateInstance() argument
75 return new Date(resources); in getDateInstance()
78 public static PickerConstants.Time getTimeInstance(Resources resources) { in getTimeInstance() argument
79 return new Time(resources); in getTimeInstance()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardResourceEntry.java167 final Resources resources = Factory.get().getApplicationContext().getResources();
175 Phone.getTypeLabel(resources, phone.getType(), phone.getLabel()).toString(),
186 Phone.getTypeLabel(resources, email.getType(),
195 type = resources.
199 type = resources.getStringArray(android.R.array.postalAddressTypes)[2];
202 type = resources.getStringArray(android.R.array.postalAddressTypes)[2];
220 type = resources.
233 type = resources.getString(Organization.getTypeLabelResource(
237 type = resources.getStringArray(android.R.array.organizationTypes)[1];
240 type = resources.getStringArray(android.R.array.organizationTypes)[1];
[all …]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallUIMaterialColorMapUtils.java16 public InCallUIMaterialColorMapUtils(Resources resources) { in InCallUIMaterialColorMapUtils() argument
17 super(resources); in InCallUIMaterialColorMapUtils()
18 sPrimaryColors = resources.obtainTypedArray(R.array.background_colors); in InCallUIMaterialColorMapUtils()
19 sSecondaryColors = resources.obtainTypedArray(R.array.background_colors_dark); in InCallUIMaterialColorMapUtils()
20 mResources = resources; in InCallUIMaterialColorMapUtils()
50 public static MaterialPalette getDefaultPrimaryAndSecondaryColors(Resources resources) { in getDefaultPrimaryAndSecondaryColors() argument
51 final int primaryColor = resources.getColor(R.color.dialer_theme_color); in getDefaultPrimaryAndSecondaryColors()
52 final int secondaryColor = resources.getColor(R.color.dialer_theme_color_dark); in getDefaultPrimaryAndSecondaryColors()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DUtil.java49 Resources resources = packageContext.getResources(); in getResourceUri() local
50 return getResourceUri(resources, packageContext.getPackageName(), res); in getResourceUri()
59 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo); in getResourceUri() local
60 return getResourceUri(resources, appInfo.packageName, res); in getResourceUri()
70 private static Uri getResourceUri(Resources resources, String appPkg, int res) in getResourceUri() argument
72 String resPkg = resources.getResourcePackageName(res); in getResourceUri()
73 String type = resources.getResourceTypeName(res); in getResourceUri()
74 String name = resources.getResourceEntryName(res); in getResourceUri()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationListService.java108 final Resources resources = mContext.getResources(); in getViewAt() local
112 resources.getString(R.string.message_status_sending) : in getViewAt()
177 final String text = resources.getString( in getViewAt()
183 resources.getColor(R.color.widget_text_color)), in getViewAt()
196 resources.getString(failureMessageId)); in getViewAt()
220 Resources resources = mContext.getResources(); in getSnippetText() local
223 snippetText = resources.getString( in getSnippetText()
226 snippetText = resources.getString(R.string.conversation_list_snippet_picture); in getSnippetText()
228 snippetText = resources.getString(R.string.conversation_list_snippet_video); in getSnippetText()
230 snippetText = resources.getString(R.string.conversation_list_snippet_vcard); in getSnippetText()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSet.java151 public static int getScriptId(final Resources resources, in getScriptId() argument
155 final int scriptId = Builder.readScriptId(resources, subtype); in getScriptId()
341 static int readScriptId(final Resources resources, final InputMethodSubtype subtype) { in readScriptId() argument
344 final int xmlId = getXmlId(resources, layoutSetName); in readScriptId()
345 final XmlResourceParser parser = resources.getXml(xmlId); in readScriptId()
353 return readScriptIdFromTagFeature(resources, parser); in readScriptId()
365 private static int readScriptIdFromTagFeature(final Resources resources, in readScriptIdFromTagFeature() argument
367 final TypedArray featureAttr = resources.obtainAttributes(Xml.asAttributeSet(parser), in readScriptIdFromTagFeature()
393 private static int getXmlId(final Resources resources, final String keyboardLayoutSetName) { in getXmlId() argument
394 final String packageName = resources.getResourcePackageName( in getXmlId()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java51 private Resources resources; field in DbTestUtils.FakeContext
54 FakeContext(ContentResolver contentResolver, Resources resources) { in FakeContext() argument
56 this.resources = resources; in FakeContext()
66 return resources; in getResources()
173 public DbTestUtils(Resources resources) { in DbTestUtils() argument
175 this.context = new FakeContext(contentResolver, resources); in DbTestUtils()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DBitmapWorkerTask.java298 Resources resources = context.getPackageManager()
300 if (resources == null) {
303 final int id = resources.getIdentifier(r.resourceName, null, null);
310 resources.getValue(id, value, true);
314 return resources.getDrawable(id);
316 return resources.openRawResource(id, value);
339 Resources resources =
341 int id = resources.getIdentifier(iconResource.resourceName, null, null);
345 return resources.getDrawable(id);
DDrawableLoader.java322 Resources resources = context.getPackageManager().getResourcesForApplication(r.packageName); in loadDrawable() local
323 if (resources == null) { in loadDrawable()
326 final int id = resources.getIdentifier(r.resourceName, null, null); in loadDrawable()
333 resources.getValue(id, value, true); in loadDrawable()
337 return resources.getDrawable(id); in loadDrawable()
339 return resources.openRawResource(id, value); in loadDrawable()
344 Resources resources = in getDrawable() local
346 int id = resources.getIdentifier(iconResource.resourceName, null, null); in getDrawable()
350 return resources.getDrawable(id); in getDrawable()
/packages/apps/Dialer/src/com/android/dialer/list/
DDialerPhoneNumberListAdapter.java163 final Resources resources = getContext().getResources(); in assignShortcutToView() local
167 text = ContactDisplayUtils.getTtsSpannedPhoneNumber(resources, in assignShortcutToView()
173 text = resources.getString(R.string.search_shortcut_create_new_contact); in assignShortcutToView()
177 text = resources.getString(R.string.search_shortcut_add_to_contact); in assignShortcutToView()
181 text = resources.getString(R.string.search_shortcut_send_sms_message); in assignShortcutToView()
185 text = resources.getString(R.string.search_shortcut_make_video_call); in assignShortcutToView()
189 text = resources.getString(R.string.search_shortcut_block_number); in assignShortcutToView()
/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/
DDialpadView.java147 final Resources resources = getContext().getResources(); in setupKeypad() local
153 final Locale currentLocale = resources.getConfiguration().locale; in setupKeypad()
158 nf = DecimalFormat.getInstance(resources.getConfiguration().locale); in setupKeypad()
171 numberString = resources.getString(R.string.dialpad_pound_number); in setupKeypad()
174 numberString = resources.getString(R.string.dialpad_star_number); in setupKeypad()
181 String letters = resources.getString(letterIds[i]); in setupKeypad()
204 lettersView.setText(resources.getString(letterIds[i])); in setupKeypad()
210 resources.getText(R.string.description_voicemail_button)); in setupKeypad()
214 resources.getText(R.string.description_image_button_plus)); in setupKeypad()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DMaterialColorMapUtils.java31 public MaterialColorMapUtils(Resources resources) { in MaterialColorMapUtils() argument
32 sPrimaryColors = resources.obtainTypedArray( in MaterialColorMapUtils()
34 sSecondaryColors = resources.obtainTypedArray( in MaterialColorMapUtils()
133 public static MaterialPalette getDefaultPrimaryAndSecondaryColors(Resources resources) { in getDefaultPrimaryAndSecondaryColors() argument
134 final int primaryColor = resources.getColor( in getDefaultPrimaryAndSecondaryColors()
136 final int secondaryColor = resources.getColor( in getDefaultPrimaryAndSecondaryColors()
/packages/apps/Launcher3/src/com/android/launcher3/
DIconCache.java138 private Drawable getFullResIcon(Resources resources, int iconId) { in getFullResIcon() argument
141 d = resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
150 Resources resources; in getFullResIcon() local
152 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon()
154 resources = null; in getFullResIcon()
156 if (resources != null) { in getFullResIcon()
158 return getFullResIcon(resources, iconId); in getFullResIcon()
165 Resources resources; in getFullResIcon() local
167 resources = mPackageManager.getResourcesForApplication( in getFullResIcon()
170 resources = null; in getFullResIcon()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java74 final Resources resources = context.getResources(); in StopwatchCircleView() local
75 final float dotDiameter = resources.getDimension(R.dimen.circletimer_dot_size); in StopwatchCircleView()
78 mScreenDensity = resources.getDisplayMetrics().density; in StopwatchCircleView()
79 mStrokeSize = resources.getDimension(R.dimen.circletimer_circle_size); in StopwatchCircleView()
80 mMarkerStrokeSize = resources.getDimension(R.dimen.circletimer_marker_size); in StopwatchCircleView()
83 mRemainderColor = resources.getColor(R.color.clock_white); in StopwatchCircleView()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DCalendarInteractionUtils.java40 Resources resources = context.getResources(); in getDisplayedDatetime() local
51 datetimeString = resources.getString(R.string.today); in getDisplayedDatetime()
53 datetimeString = resources.getString(R.string.tomorrow); in getDisplayedDatetime()
74 datetimeString = resources.getString(R.string.today_at_time_fmt, in getDisplayedDatetime()
78 datetimeString = resources.getString(R.string.tomorrow_at_time_fmt, in getDisplayedDatetime()
84 datetimeString = resources.getString(R.string.date_time_fmt, dateString, in getDisplayedDatetime()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DEmojiAltPhysicalKeyDetector.java123 public EmojiAltPhysicalKeyDetector(@Nonnull final Resources resources) { in EmojiAltPhysicalKeyDetector() argument
127 resources, R.array.keyboard_switcher_emoji); in EmojiAltPhysicalKeyDetector()
138 resources, R.array.keyboard_switcher_symbols_shifted); in EmojiAltPhysicalKeyDetector()
186 @Nonnull final Resources resources, final int resourceId) { in parseHotKeys()
188 final String name = resources.getResourceEntryName(resourceId); in parseHotKeys()
189 final String[] values = resources.getStringArray(resourceId); in parseHotKeys()
/packages/apps/Messaging/src/com/android/messaging/ui/debug/
DDebugSmsMmsFromDumpFileDialogFragment.java82 final Resources resources = getResources(); in onCreateDialog() local
84 builder.setTitle(resources.getString( in onCreateDialog()
87 builder.setTitle(resources.getString( in onCreateDialog()
160 final Resources resources = getResources(); in emailDumpFile() local
167 resources.getString(R.string.email_sms_mms_dump_file_subject)); in emailDumpFile()
169 resources.getString(R.string.email_sms_mms_dump_file_chooser_title))); in emailDumpFile()

12345678