/packages/apps/Car/libs/car-ui-lib/tests/apitest/ |
D | auto-generate-resources.py | 70 resources = get_all_resources(os.path.join(ROOT_FOLDER, 'car-ui-lib/src/main/res')) 71 …check_resource_names(resources, get_resources_from_single_file(os.path.join(OUTPUT_FILE_PATH, 'res… 77 compare_resources(old_mapping, resources, os.path.join(OUTPUT_FILE_PATH, 'current.xml')) 80 add_constraintlayout_resources(resources) 81 compare_resources(old_mapping, resources, OVERLAYABLE_OUTPUT_FILE_PATH) 83 generate_current_file(resources, output_file) 84 generate_overlayable_file(resources, OVERLAYABLE_OUTPUT_FILE_PATH) 86 def generate_current_file(resources, output_file='current.xml'): argument 87 resources = sorted(resources, key=lambda x: x.type + x.name) 96 for resource in resources: [all …]
|
/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/Settings/src/com/android/car/settings/profiles/ |
D | ProfileIconProvider.java | 62 public Drawable getRoundedGuestDefaultIcon(Resources resources) { in getRoundedGuestDefaultIcon() argument 63 Bitmap icon = getGuestProfileDefaultIcon(resources); in getRoundedGuestDefaultIcon() 64 return new BitmapDrawable(resources, icon); in getRoundedGuestDefaultIcon() 77 UserManager userManager, Resources resources, UserInfo userInfo) { in assignDefaultIcon() argument 79 ? getGuestProfileDefaultIcon(resources) in assignDefaultIcon() 80 : getProfileDefaultIcon(resources, userInfo.id); in assignDefaultIcon() 109 private Bitmap getProfileDefaultIcon(Resources resources, @UserIdInt int id) { in getProfileDefaultIcon() argument 111 UserIcons.getDefaultUserIcon(resources, id, /* light= */ false)); in getProfileDefaultIcon() 114 private Bitmap getGuestProfileDefaultIcon(Resources resources) { in getGuestProfileDefaultIcon() argument 115 return getProfileDefaultIcon(resources, UserHandle.USER_NULL); in getGuestProfileDefaultIcon()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserIconProvider.java | 64 public Drawable getRoundedGuestDefaultIcon(Resources resources) { in getRoundedGuestDefaultIcon() argument 65 Bitmap icon = getGuestUserDefaultIcon(resources); in getRoundedGuestDefaultIcon() 66 return new BitmapDrawable(resources, icon); in getRoundedGuestDefaultIcon() 89 UserManager userManager, Resources resources, UserInfo userInfo) { in assignDefaultIcon() argument 91 ? getGuestUserDefaultIcon(resources) in assignDefaultIcon() 92 : getUserDefaultIcon(resources, userInfo.id); in assignDefaultIcon() 105 private Bitmap getUserDefaultIcon(Resources resources, @UserIdInt int id) { in getUserDefaultIcon() argument 107 UserIcons.getDefaultUserIcon(resources, id, /* light= */ false)); in getUserDefaultIcon() 110 private Bitmap getGuestUserDefaultIcon(Resources resources) { in getGuestUserDefaultIcon() argument 111 return getUserDefaultIcon(resources, UserHandle.USER_NULL); in getGuestUserDefaultIcon()
|
/packages/apps/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 54 if args.resources is not None: 55 args.resources.sort() 56 hash.update(''.join(args.resources).encode('UTF-8')) 176 if args.resources is not None: 183 resources = map(lambda x: x.split(','), args.resources) 184 for resource in resources: 192 for resource in resources: 270 if args.resources is not None: 272 args.resources = [x for sub in args.resources for x in sub] 277 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/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/ |
D | ConnectivityServiceIntegrationTest.kt | 49 import com.android.connectivity.resources.R in <lambda>() 102 private lateinit var resources: Resources in <lambda>() variable in com.android.server.net.integrationtests.ConnectivityServiceIntegrationTest 170 doReturn(60000).`when`(resources).getInteger(R.integer.config_networkTransitionTimeout) in <lambda>() 171 doReturn("").`when`(resources).getString(R.string.config_networkCaptivePortalServerUrl) in <lambda>() 172 doReturn(arrayOf<String>("test_wlan_wol")).`when`(resources) in <lambda>() 174 doReturn(arrayOf("0,1", "1,3")).`when`(resources) in <lambda>() 176 doReturn(emptyArray<String>()).`when`(resources) in <lambda>() 178 doReturn(intArrayOf(10, 11, 12, 14, 15)).`when`(resources) in <lambda>() 182 doReturn(emptyArray<String>()).`when`(resources).getStringArray( in <lambda>() 184 doReturn(1).`when`(resources).getInteger(R.integer.config_networkAvoidBadWifi) in <lambda>() [all …]
|
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | Utils.kt | 182 SECONDS -> context.resources.getQuantityString(R.plurals.seconds, in getTimeDiffStr() 184 MINUTES -> context.resources.getQuantityString(R.plurals.minutes, in getTimeDiffStr() 186 HOURS -> context.resources.getQuantityString(R.plurals.hours, in getTimeDiffStr() 188 else -> context.resources.getQuantityString(R.plurals.days, in getTimeDiffStr() 200 SECONDS -> context.resources.getQuantityString(R.plurals.duration_used_seconds, in getDurationUsedStr() 202 MINUTES -> context.resources.getQuantityString(R.plurals.duration_used_minutes, in getDurationUsedStr() 204 HOURS -> context.resources.getQuantityString(R.plurals.duration_used_hours, in getDurationUsedStr() 206 else -> context.resources.getQuantityString(R.plurals.duration_used_days, in getDurationUsedStr()
|
/packages/apps/Settings/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverEnableForAllAppsPreferenceController.java | 80 final Resources resources = context.getResources(); in GraphicsDriverEnableForAllAppsPreferenceController() local 81 mPreferenceDefault = resources.getString(R.string.graphics_driver_app_preference_default); in GraphicsDriverEnableForAllAppsPreferenceController() 83 resources.getString(R.string.graphics_driver_app_preference_production_driver); in GraphicsDriverEnableForAllAppsPreferenceController() 85 resources.getString(R.string.graphics_driver_app_preference_prerelease_driver); in GraphicsDriverEnableForAllAppsPreferenceController() 175 final Resources resources = context.getResources(); in constructEntryList() local 182 entryList.add(resources.getString(R.string.graphics_driver_app_preference_default)); in constructEntryList() 186 entryList.add(resources.getString( in constructEntryList() 191 entryList.add(resources.getString( in constructEntryList() 195 entryList.add(resources.getString(R.string.graphics_driver_app_preference_system)); in constructEntryList()
|
/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/tests/robotests/src/com/android/settings/wifi/dpp/ |
D | WifiDppQrCodeGeneratorFragmentTest.java | 126 Resources resources = mock(Resources.class); in createNearbyButtonFromSetting_notNull() local 127 when(resources.getString(anyInt())).thenReturn("Nearby"); in createNearbyButtonFromSetting_notNull() 129 when(resources.getDrawable(anyInt())).thenReturn(drawable); in createNearbyButtonFromSetting_notNull() 131 when(packageManager.getResourcesForActivity(any())).thenReturn(resources); in createNearbyButtonFromSetting_notNull() 148 Resources resources = mock(Resources.class); in createNearbyButtonFromConfig_notNull() local 149 when(resources.getString(anyInt())).thenReturn("Nearby"); in createNearbyButtonFromConfig_notNull() 151 when(resources.getDrawable(anyInt())).thenReturn(drawable); in createNearbyButtonFromConfig_notNull() 153 when(packageManager.getResourcesForActivity(any())).thenReturn(resources); in createNearbyButtonFromConfig_notNull()
|
/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/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | CellularFallbackPreferenceControllerTest.java | 61 final Resources resources = mock(Resources.class); in isAvailable_avoidBadWifiConfigIsFalse_shouldReturnTrue() local 65 doReturn(resources).when(mController).getResourcesForSubId(anyInt()); in isAvailable_avoidBadWifiConfigIsFalse_shouldReturnTrue() 66 when(resources.getInteger( in isAvailable_avoidBadWifiConfigIsFalse_shouldReturnTrue() 75 final Resources resources = mock(Resources.class); in isAvailable_avoidBadWifiConfigIsTrue_shouldReturnFalse() local 79 doReturn(resources).when(mController).getResourcesForSubId(anyInt()); in isAvailable_avoidBadWifiConfigIsTrue_shouldReturnFalse() 80 when(resources.getInteger( in isAvailable_avoidBadWifiConfigIsTrue_shouldReturnFalse()
|
/packages/apps/Car/tests/tools/rro/ |
D | generate-overlayable.py | 55 resources = get_all_resources(args.resourcePath, args.excludeFiles) 56 generate_overlayable_file(resources, args.targetName, args.policyType, args.outputFile) 58 def generate_overlayable_file(resources, target_name, policy_type, output_file): argument 59 resources = sorted(resources, key=lambda x: x.type + x.name) 67 for resource in resources:
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimSelectNotification.java | 212 final Resources resources = context.getResources(); in createSimSelectNotification() local 216 resources.getText(R.string.sim_selection_channel_title), in createSimSelectNotification() 223 .setContentTitle(resources.getText(R.string.sim_notification_title)) in createSimSelectNotification() 224 .setContentText(resources.getText(R.string.sim_notification_summary)) in createSimSelectNotification() 246 final Resources resources = context.getResources(); in createEnableMmsNotification() local 250 resources.getText(R.string.enable_mms_notification_channel_title), in createEnableMmsNotification() 285 final Resources resources = context.getResources(); in createSimCombinationWarningNotification() local 292 CharSequence dualCdmaSimWarningSummary = resources.getString( in createSimCombinationWarningNotification() 297 resources.getText(R.string.dual_cdma_sim_warning_notification_channel_title), in createSimCombinationWarningNotification() 304 .setContentTitle(resources.getText( in createSimCombinationWarningNotification()
|
/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/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | Asset.java | 183 Resources resources = context.getResources(); in loadDrawable() 187 layers[1] = new BitmapDrawable(resources, bitmap); in loadDrawable() 193 transitionDrawable.startTransition(resources.getInteger( in loadDrawable() 229 final Resources resources = context.getResources(); in loadDrawableWithTransition() 250 layers[1] = new BitmapDrawable(resources, newBitmap); in loadDrawableWithTransition() 311 Resources resources = activity.getResources(); in loadPreviewImage() 315 layers[1] = new BitmapDrawable(resources, croppedBitmap); in loadPreviewImage() 321 transitionDrawable.startTransition(resources.getInteger( in loadPreviewImage()
|
/packages/modules/Wifi/service/ServiceWifiResources/ |
D | Android.bp | 17 // APK to hold all the wifi overlayable resources. 35 certificate: ":com.android.wifi.resources.certificate", 39 name: "com.android.wifi.resources.certificate", 40 certificate: "resources-certs/com.android.wifi.resources"
|