Home
last modified time | relevance | path

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

12345678910>>...12

/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java47 private static Resources resources; field in CallTypeIconsView
68 if (resources == null) { in CallTypeIconsView()
69 resources = new Resources(context, false); in CallTypeIconsView()
87 width += drawable.getIntrinsicWidth() + resources.iconMargin; in add()
100 width += resources.videoCall.getIntrinsicWidth() + resources.iconMargin; in setShowVideo()
101 height = Math.max(height, resources.videoCall.getIntrinsicHeight()); in setShowVideo()
118 width += resources.hdCall.getIntrinsicWidth() + resources.iconMargin; in setShowHd()
119 height = Math.max(height, resources.hdCall.getIntrinsicHeight()); in setShowHd()
132 width += resources.wifiCall.getIntrinsicWidth() + resources.iconMargin; in setShowWifi()
133 height = Math.max(height, resources.wifiCall.getIntrinsicHeight()); in setShowWifi()
[all …]
DCallTypeHelper.java59 public CallTypeHelper(Resources resources, Duo duo) { in CallTypeHelper() argument
61 incomingName = resources.getString(R.string.type_incoming); in CallTypeHelper()
62 incomingPulledName = resources.getString(R.string.type_incoming_pulled); in CallTypeHelper()
63 outgoingName = resources.getString(R.string.type_outgoing); in CallTypeHelper()
64 outgoingPulledName = resources.getString(R.string.type_outgoing_pulled); in CallTypeHelper()
65 missedName = resources.getString(R.string.type_missed); in CallTypeHelper()
66 incomingVideoName = resources.getString(R.string.type_incoming_video); in CallTypeHelper()
67 incomingVideoPulledName = resources.getString(R.string.type_incoming_video_pulled); in CallTypeHelper()
68 outgoingVideoName = resources.getString(R.string.type_outgoing_video); in CallTypeHelper()
69 outgoingVideoPulledName = resources.getString(R.string.type_outgoing_video_pulled); in CallTypeHelper()
[all …]
/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/java/com/android/dialer/app/calllog/
DCallLogListItemHelper.java36 private final Resources resources; field in CallLogListItemHelper
49 Resources resources, in CallLogListItemHelper() argument
52 this.resources = resources; in CallLogListItemHelper()
116 resources.getString(R.string.description_video_call_action), nameOrNumber)); in setActionContentDescriptions()
120 resources.getString(R.string.description_create_new_contact_action), nameOrNumber)); in setActionContentDescriptions()
124 resources.getString(R.string.description_add_to_existing_contact_action), in setActionContentDescriptions()
129 resources.getString(R.string.description_details_action), nameOrNumber)); in setActionContentDescriptions()
140 return resources.getString( in getContactBadgeDescription()
143 return resources.getString(R.string.description_contact_details, getNameOrNumber(details)); in getContactBadgeDescription()
190 resources.getString(R.string.description_num_calls, details.callTypes.length)); in getCallDescription()
[all …]
DPhoneCallDetailsHelper.java77 private final Resources resources; field in PhoneCallDetailsHelper
97 public PhoneCallDetailsHelper(Context context, Resources resources, CallLogCache callLogCache) { in PhoneCallDetailsHelper() argument
99 this.resources = resources; in PhoneCallDetailsHelper()
198 resources.getString( in setPhoneCallDetails()
201 accountLabel = resources.getString(R.string.call_log_via_number, details.viaNumber); in setPhoneCallDetails()
231 branding = resources.getString(R.string.voicemail_transcription_branding_text); in setPhoneCallDetails()
236 branding = resources.getString(R.string.voicemail_transcription_in_progress); in setPhoneCallDetails()
239 branding = resources.getString(R.string.voicemail_transcription_failed_no_speech); in setPhoneCallDetails()
243 resources.getString(R.string.voicemail_transcription_failed_language_not_supported); in setPhoneCallDetails()
246 branding = resources.getString(R.string.voicemail_transcription_failed); in setPhoneCallDetails()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMediaView.java113 Resources resources, in showVideoData() argument
118 addDimensionsRow(table, resources, tags); in showVideoData()
122 showCoordiantes(table, resources, coords, geoClickListener); in showVideoData()
134 Resources resources, in showExifData() argument
140 addDimensionsRow(table, resources, tags); in showExifData()
159 resources.getString(R.string.metadata_camera_format, make, model)); in showExifData()
163 table.put(R.string.metadata_aperture, resources.getString( in showExifData()
176 String.format(resources.getString(R.string.metadata_focal_format), length)); in showExifData()
182 String.format(resources.getString(R.string.metadata_iso_format), iso)); in showExifData()
187 showCoordiantes(table, resources, coords, geoClickListener); in showExifData()
[all …]
/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/ui/conversationlist/
DConversationListItemView.java163 final Resources resources = getContext().getResources(); in onFinishInflate() local
164 mListItemReadColor = resources.getColor(R.color.conversation_list_item_read); in onFinishInflate()
165 mListItemUnreadColor = resources.getColor(R.color.conversation_list_item_unread); in onFinishInflate()
306 public static String buildContentDescription(final Resources resources, in buildContentDescription() argument
335 String primaryContentDescription = resources.getString(resId, senderOrConvName, in buildContentDescription()
349 resources.getString(sSecondaryContentDescription); in buildContentDescription()
373 final Resources resources = getContext().getResources(); in bind() local
401 setContentDescription(buildContentDescription(resources, mData, in bind()
407 mTimestampTextView.setTextColor(resources.getColor(R.color.conversation_list_error)); in bind()
414 mTimestampTextView.setText(resources.getString(failureMessageId)); in bind()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapWorkerTask.java259 Resources resources = context.getPackageManager() in loadDrawable() local
261 if (resources == null) { in loadDrawable()
264 resources.updateConfiguration(context.getResources().getConfiguration(), in loadDrawable()
266 final int id = resources.getIdentifier(r.resourceName, null, null); in loadDrawable()
273 resources.getValue(id, value, true); in loadDrawable()
277 return resources.getDrawable(id); in loadDrawable()
279 return resources.openRawResource(id, value); in loadDrawable()
302 Resources resources = in getDrawable() local
304 if (resources == null) { in getDrawable()
307 resources.updateConfiguration(context.getResources().getConfiguration(), in getDrawable()
[all …]
DDrawableLoader.java319 Resources resources = context.getPackageManager() in loadDrawable() local
321 if (resources == null) { in loadDrawable()
324 resources.updateConfiguration(context.getResources().getConfiguration(), 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 resources.updateConfiguration(context.getResources().getConfiguration(), in getDrawable()
348 int id = resources.getIdentifier(iconResource.resourceName, null, null); in getDrawable()
[all …]
DUriUtils.java64 public static String getAndroidResourceUri(Resources resources, int resourceId) { in getAndroidResourceUri() argument
66 + SCHEME_DELIMITER + resources.getResourceName(resourceId) in getAndroidResourceUri()
75 Resources resources = null; in getDrawable() local
77 resources = context.getPackageManager().getResourcesForApplication(r.packageName); in getDrawable()
81 if (resources == null) { in getDrawable()
84 final int id = resources.getIdentifier(r.resourceName, null, null); in getDrawable()
85 return resources.getDrawable(id, null); in getDrawable()
/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/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/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()
177 public DbTestUtils(Resources resources) { in DbTestUtils() argument
179 this.context = new FakeContext(contentResolver, resources); in DbTestUtils()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java196 final Resources resources = context.getResources(); in createSimSelectNotification() local
200 resources.getText(R.string.sim_selection_channel_title), in createSimSelectNotification()
207 .setContentTitle(resources.getText(R.string.sim_notification_title)) in createSimSelectNotification()
208 .setContentText(resources.getText(R.string.sim_notification_summary)) in createSimSelectNotification()
229 final Resources resources = context.getResources(); in createEnableMmsNotification() local
233 resources.getText(R.string.enable_mms_notification_channel_title), in createEnableMmsNotification()
268 final Resources resources = context.getResources(); in createSimCombinationWarningNotification() local
275 CharSequence dualCdmaSimWarningSummary = resources.getString( in createSimCombinationWarningNotification()
280 resources.getText(R.string.dual_cdma_sim_warning_notification_channel_title), in createSimCombinationWarningNotification()
287 .setContentTitle(resources.getText( in createSimCombinationWarningNotification()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDonutView.java77 Resources resources = context.getResources(); in DonutView() local
78 mStrokeWidth = resources.getDimension(R.dimen.storage_donut_thickness); in DonutView()
118 final Locale locale = resources.getConfiguration().locale; in DonutView()
128 resources.getDimension(R.dimen.storage_donut_view_label_text_size)); in DonutView()
136 resources.getDimension(R.dimen.storage_donut_view_percent_text_size)); in DonutView()
239 Resources resources, String percentString, String percentageSignString) { in getPercentageStringSpannable() argument
241 resources.getDimension(R.dimen.storage_donut_view_percent_sign_size) in getPercentageStringSpannable()
242 / resources.getDimension(R.dimen.storage_donut_view_percent_text_size); in getPercentageStringSpannable()
/packages/apps/Settings/src/com/android/settings/widget/
DDonutView.java77 Resources resources = context.getResources(); in DonutView() local
78 mStrokeWidth = resources.getDimension(R.dimen.storage_donut_thickness); in DonutView()
118 final Locale locale = resources.getConfiguration().locale; in DonutView()
128 resources.getDimension(R.dimen.storage_donut_view_label_text_size)); in DonutView()
136 resources.getDimension(R.dimen.storage_donut_view_percent_text_size)); in DonutView()
239 Resources resources, String percentString, String percentageSignString) { in getPercentageStringSpannable() argument
241 resources.getDimension(R.dimen.storage_donut_view_percent_sign_size) in getPercentageStringSpannable()
242 / resources.getDimension(R.dimen.storage_donut_view_percent_text_size); in getPercentageStringSpannable()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java197 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_ShowsChooser()
205 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_Single()
220 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_ArchivedFile()
231 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_Multiple()
248 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_VirtualFiles()
262 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_RegularAndVirtualFiles()
281 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_OmitsPartialFiles()
304 mActivity.resources.setQuickViewerPackage("corptropolis.viewer"); in testDocumentPicked_InArchive_QuickViewable()
323 mActivity.resources.setQuickViewerPackage("corptropolis.viewer"); in testDocumentPicked_PreviewsWhenResourceSet()
417 mActivity.resources.bools.put(R.bool.show_documents_root, false); in testInitLocation_DefaultsToRecent()
[all …]
/packages/apps/Car/libs/
Dresource_generator.py176 def ModifyXml(self, resources, resource_type, resource_dir, tag): argument
179 for resource_values in resources.values():
185 pp.pprint(resources)
189 for resource_name, resource_values in resources.items():
220 resources = { }
251 resources[var_name] = var_values
253 self.ModifyXml(resources, self.DIMENS, resource_dir, self.TAG_DIMEN)
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java115 Resources resources = mContext.getResources(); in CarStorageMonitoringService() local
116 mConfiguration = new Configuration(resources); in CarStorageMonitoringService()
604 Configuration(Resources resources) throws Resources.NotFoundException { in Configuration() argument
605 ioStatsNumSamplesToStore = resources.getInteger(R.integer.ioStatsNumSamplesToStore); in Configuration()
607 1024 * resources.getInteger(R.integer.acceptableWrittenKBytesPerSample); in Configuration()
609 resources.getInteger(R.integer.acceptableFsyncCallsPerSample); in Configuration()
611 resources.getInteger(R.integer.maxExcessiveIoSamplesInWindow); in Configuration()
614 resources.getInteger(R.integer.uptimeHoursIntervalBetweenUptimeDataWrite); in Configuration()
616 resources.getInteger(R.integer.acceptableHoursPerOnePercentFlashWear); in Configuration()
618 1000 * resources.getInteger(R.integer.ioStatsRefreshRateSeconds); in Configuration()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesListPreferenceControllerTest.java63 Resources resources = mock(Resources.class); in getAvailabilityStatus_validLicenses_returnsAvailable() local
64 when(packageManager.getResourcesForApplication(applicationInfo)).thenReturn(resources); in getAvailabilityStatus_validLicenses_returnsAvailable()
66 when(resources.getAssets()).thenReturn(manager); in getAvailabilityStatus_validLicenses_returnsAvailable()
104 Resources resources = mock(Resources.class); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable() local
105 when(packageManager.getResourcesForApplication(applicationInfo)).thenReturn(resources); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
107 when(resources.getAssets()).thenReturn(manager); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpCodecConfig.java169 Resources resources = mContext.getResources(); in assignCodecConfigPriorities() local
170 if (resources == null) { in assignCodecConfigPriorities()
176 value = resources.getInteger(R.integer.a2dp_source_codec_priority_sbc); in assignCodecConfigPriorities()
186 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aac); in assignCodecConfigPriorities()
196 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx); in assignCodecConfigPriorities()
206 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd); in assignCodecConfigPriorities()
216 value = resources.getInteger(R.integer.a2dp_source_codec_priority_ldac); in assignCodecConfigPriorities()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DUsageGraphTest.java48 Resources resources = spy(context.getResources()); in setUp() local
49 doReturn(resources).when(context).getResources(); in setUp()
50 doReturn(5).when(resources).getDimensionPixelSize(R.dimen.usage_graph_line_corner_radius); in setUp()
51 doReturn(1).when(resources).getDimensionPixelSize(R.dimen.usage_graph_line_width); in setUp()
52 doReturn(1).when(resources).getDimensionPixelSize(R.dimen.usage_graph_dot_size); in setUp()
53 doReturn(1).when(resources).getDimensionPixelSize(R.dimen.usage_graph_dot_interval); in setUp()
54 doReturn(1).when(resources).getDimensionPixelSize(R.dimen.usage_graph_divider_size); in setUp()
/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()

12345678910>>...12