/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallTypeIconsView.java | 47 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 …]
|
D | CallTypeHelper.java | 59 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/ |
D | ConversationDrawables.java | 74 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/ |
D | CallLogListItemHelper.java | 36 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 …]
|
D | PhoneCallDetailsHelper.java | 77 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/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 47 if args.resources is not None: 48 args.resources.sort() 49 hash = sha1(''.join(args.resources) + args.package) 170 if args.resources is not None: 177 resources = map(lambda x: x.split(','), args.resources) 178 for resource in resources: 186 for resource in resources: 259 if args.resources is not None: 261 args.resources = [x for sub in args.resources for x in sub] 266 if args.dir is None and args.resources is None: [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MediaView.java | 113 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/ |
D | Util.java | 49 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/ |
D | ConversationListItemView.java | 163 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/Messaging/src/com/android/messaging/datamodel/media/ |
D | VCardResourceEntry.java | 167 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/ |
D | WidgetConversationListService.java | 108 final Resources resources = mContext.getResources(); in getViewAt() local 112 resources.getString(R.string.message_status_sending) : in getViewAt() 176 final String text = resources.getString( in getViewAt() 182 resources.getColor(R.color.widget_text_color)), in getViewAt() 195 resources.getString(failureMessageId)); in getViewAt() 219 Resources resources = mContext.getResources(); in getSnippetText() local 222 snippetText = resources.getString( in getSnippetText() 225 snippetText = resources.getString(R.string.conversation_list_snippet_picture); in getSnippetText() 227 snippetText = resources.getString(R.string.conversation_list_snippet_video); in getSnippetText() 229 snippetText = resources.getString(R.string.conversation_list_snippet_vcard); in getSnippetText()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | DbTestUtils.java | 51 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/ |
D | SimSelectNotification.java | 197 final Resources resources = context.getResources(); in createSimSelectNotification() local 201 resources.getText(R.string.sim_selection_channel_title), in createSimSelectNotification() 208 .setContentTitle(resources.getText(R.string.sim_notification_title)) in createSimSelectNotification() 209 .setContentText(resources.getText(R.string.sim_notification_summary)) in createSimSelectNotification() 230 final Resources resources = context.getResources(); in createEnableMmsNotification() local 234 resources.getText(R.string.enable_mms_notification_channel_title), in createEnableMmsNotification() 269 final Resources resources = context.getResources(); in createSimCombinationWarningNotification() local 276 CharSequence dualCdmaSimWarningSummary = resources.getString( in createSimCombinationWarningNotification() 281 resources.getText(R.string.dual_cdma_sim_warning_notification_channel_title), in createSimCombinationWarningNotification() 288 .setContentTitle(resources.getText( in createSimCombinationWarningNotification()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | CellularFallbackPreferenceControllerTest.java | 63 final Resources resources = mock(Resources.class); in isAvailable_avoidBadWifiConfigIsFalse_shouldReturnTrue() local 67 doReturn(resources).when(mController).getResourcesForSubId(anyInt()); in isAvailable_avoidBadWifiConfigIsFalse_shouldReturnTrue() 68 when(resources.getInteger( in isAvailable_avoidBadWifiConfigIsFalse_shouldReturnTrue() 77 final Resources resources = mock(Resources.class); in isAvailable_avoidBadWifiConfigIsTrue_shouldReturnFalse() local 81 doReturn(resources).when(mController).getResourcesForSubId(anyInt()); in isAvailable_avoidBadWifiConfigIsTrue_shouldReturnFalse() 82 when(resources.getInteger( in isAvailable_avoidBadWifiConfigIsTrue_shouldReturnFalse()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSet.java | 151 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/Settings/src/com/android/settings/widget/ |
D | DonutView.java | 77 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | DonutView.java | 77 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/Car/libs/ |
D | resource_generator.py | 176 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/ |
D | CarStorageMonitoringService.java | 115 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/ |
D | ModuleLicensesListPreferenceControllerTest.java | 63 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/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | ActionHandlerTest.java | 198 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_ShowsChooser() 206 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_Single() 221 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_ArchivedFile() 232 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_Multiple() 249 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_VirtualFiles() 263 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_RegularAndVirtualFiles() 282 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_OmitsPartialFiles() 305 mActivity.resources.setQuickViewerPackage("corptropolis.viewer"); in testDocumentPicked_InArchive_QuickViewable() 324 mActivity.resources.setQuickViewerPackage("corptropolis.viewer"); in testDocumentPicked_PreviewsWhenResourceSet() 430 mActivity.resources.bools.put(R.bool.show_documents_root, false); in testInitLocation_DefaultsToRecent() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | UsageGraphTest.java | 48 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/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpCodecConfig.java | 178 Resources resources = mContext.getResources(); in assignCodecConfigPriorities() local 179 if (resources == null) { in assignCodecConfigPriorities() 185 value = resources.getInteger(R.integer.a2dp_source_codec_priority_sbc); in assignCodecConfigPriorities() 195 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aac); in assignCodecConfigPriorities() 205 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx); in assignCodecConfigPriorities() 215 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd); in assignCodecConfigPriorities() 225 value = resources.getInteger(R.integer.a2dp_source_codec_priority_ldac); in assignCodecConfigPriorities()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | MaterialColorMapUtils.java | 34 public MaterialColorMapUtils(Resources resources) { in MaterialColorMapUtils() argument 35 sPrimaryColors = resources.obtainTypedArray( in MaterialColorMapUtils() 37 sSecondaryColors = resources.obtainTypedArray( in MaterialColorMapUtils() 136 public static MaterialPalette getDefaultPrimaryAndSecondaryColors(Resources resources) { in getDefaultPrimaryAndSecondaryColors() argument 137 final int primaryColor = resources.getColor( in getDefaultPrimaryAndSecondaryColors() 139 final int secondaryColor = resources.getColor( in getDefaultPrimaryAndSecondaryColors()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | EmojiAltPhysicalKeyDetector.java | 123 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()
|