/packages/apps/Car/systemlibs/tools/rro/ |
D | resource_utils.py | 67 resources = set() 74 add_resource_to_set(resources, 79 add_resource_to_set(resources, resource) 86 add_resource_to_set(resources, resource) 87 return resources 161 resources = set() 162 add_resource_to_set(resources, Resource('layout_optimizationLevel', 'attr')) 163 add_resource_to_set(resources, Resource('constraintSet', 'attr')) 164 add_resource_to_set(resources, Resource('barrierDirection', 'attr')) 165 add_resource_to_set(resources, Resource('constraint_referenced_ids', 'attr')) [all …]
|
D | generate-overlays.py | 52 resources = get_all_resources(args.resourcePath) 54 resources.remove(Resource('overlays', 'xml')) 59 resources = resources.intersection( 61 generate_overlays_file(resources, args.outputFile) 63 def generate_overlays_file(resources, output_file): argument 64 resources = sorted(resources, key=lambda x: x.type + x.name) 68 for resource in resources:
|
D | generate-overlayable.py | 55 resources = set() 57 resources |= get_all_resources(path, args.excludeFiles) 58 generate_overlayable_file(resources, args.targetName, args.policyType, args.outputFile) 60 def generate_overlayable_file(resources, target_name, policy_type, output_file): argument 61 resources = sorted(resources, key=lambda x: x.type + x.name) 69 for resource in resources:
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | ResourcesUtil.java | 28 Resources resources = context.getPackageManager() in getString() local 30 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getString() 32 return resources.getString(id); in getString() 42 Resources resources = context.getPackageManager() in getBoolean() local 44 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getBoolean() 46 return resources.getBoolean(id); in getBoolean() 58 Resources resources = context.getPackageManager() in getQuantityString() local 60 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getQuantityString() 62 return resources.getQuantityString(id, count, formatArgs); in getQuantityString() 72 Resources resources = context.getPackageManager() in getString() local [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/ |
D | ResourcesUtil.java | 28 Resources resources = context.getPackageManager() in getString() local 30 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getString() 32 return resources.getString(id); in getString() 42 Resources resources = context.getPackageManager() in getBoolean() local 44 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getBoolean() 46 return resources.getBoolean(id); in getBoolean() 58 Resources resources = context.getPackageManager() in getQuantityString() local 60 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getQuantityString() 62 return resources.getQuantityString(id, count, formatArgs); in getQuantityString() 72 Resources resources = context.getPackageManager() in getString() local [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AndroidManifestConfigParserTest.java | 48 Resources resources = in testGetAdServicesConfigResourceId_valid() local 50 int resId = AndroidManifestConfigParser.getAdServicesConfigResourceId(parser, resources); in testGetAdServicesConfigResourceId_valid() 53 assertThat(resources.getResourceEntryName(resId)).isEqualTo(RESOURCE_NAME); in testGetAdServicesConfigResourceId_valid() 54 assertThat(resources.getResourceTypeName(resId)).isEqualTo(RESOURCE_TYPE); in testGetAdServicesConfigResourceId_valid() 61 Resources resources = in testGetAdServicesConfigResourceId_attrOrderChange_valid() local 63 int resId = AndroidManifestConfigParser.getAdServicesConfigResourceId(parser, resources); in testGetAdServicesConfigResourceId_attrOrderChange_valid() 66 assertThat(resources.getResourceEntryName(resId)).isEqualTo(RESOURCE_NAME); in testGetAdServicesConfigResourceId_attrOrderChange_valid() 67 assertThat(resources.getResourceTypeName(resId)).isEqualTo(RESOURCE_TYPE); in testGetAdServicesConfigResourceId_attrOrderChange_valid() 75 Resources resources = in testGetAdServicesConfigResourceId_withPropertyNameRef_valid() local 77 int resId = AndroidManifestConfigParser.getAdServicesConfigResourceId(parser, resources); in testGetAdServicesConfigResourceId_withPropertyNameRef_valid() [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/modules/Permission/SafetyCenter/Config/java/com/android/safetycenter/config/ |
D | SafetyCenterConfigParser.java | 107 public static SafetyCenterConfig parseXmlResource(InputStream in, Resources resources) in parseXmlResource() argument 110 requireNonNull(resources); in parseXmlResource() 120 SafetyCenterConfig safetyCenterConfig = parseSafetyCenterConfig(parser, resources); in parseXmlResource() 134 XmlPullParser parser, Resources resources) in parseSafetyCenterConfig() argument 144 builder.addSafetySourcesGroup(parseSafetySourcesGroup(parser, resources)); in parseSafetyCenterConfig() 158 XmlPullParser parser, Resources resources) in parseSafetySourcesGroup() argument 170 resources)); in parseSafetySourcesGroup() local 178 resources)); in parseSafetySourcesGroup() local 186 resources)); in parseSafetySourcesGroup() local 194 resources)); in parseSafetySourcesGroup() local [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/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/ |
D | ParserConfigOverlayTest.kt | 39 val inputStream = context.resources.openRawResource(R.raw.config_valid_not_overlayable) in <lambda>() 42 SafetyCenterConfigParser.parseXmlResource(inputStream, context.resources) in <lambda>() 48 assertThat(context.resources.getResourceName(safetySourcesGroup.titleResId)) in <lambda>() 50 assertThat(context.resources.getString(safetySourcesGroup.titleResId)).isEqualTo("Base") in <lambda>() 52 assertThat(context.resources.getResourceName(safetySourcesGroup.summaryResId)) in <lambda>() 54 assertThat(context.resources.getString(safetySourcesGroup.summaryResId)) in <lambda>() 60 assertThat(context.resources.getResourceName(safetySource.titleResId)) in <lambda>() 62 assertThat(context.resources.getString(safetySource.titleResId)).isEqualTo("Reference") in <lambda>() 66 assertThat(context.resources.getResourceName(safetySource.summaryResId)) in <lambda>() 68 assertThat(context.resources.getString(safetySource.summaryResId)).isEqualTo("Overlay") in <lambda>() [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/ |
D | DevicePolicyResources.kt | 45 @ApplicationOwned private val resources: Resources, constant in com.android.intentresolver.data.repository.DevicePolicyResources 48 private val policyResources = devicePolicyManager.resources 53 resources.getString(R.string.resolver_personal_tab) in <lambda>() 61 resources.getString(R.string.resolver_work_tab) in <lambda>() 69 resources.getString(R.string.resolver_personal_tab_accessibility) in <lambda>() 77 resources.getString(R.string.resolver_work_tab_accessibility) in <lambda>() 83 devicePolicyManager.resources.getString(FORWARD_INTENT_TO_PERSONAL) { in <lambda>() 84 resources.getString(R.string.forward_intent_to_owner) in <lambda>() 90 resources.getString(R.string.forward_intent_to_work) in <lambda>() 98 resources.getString(R.string.resolver_no_personal_apps_available) in <lambda>() [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 …]
|
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/util/ |
D | WallpaperParserImplTest.kt | 54 private lateinit var resources: Resources variable in com.android.wallpaper.util.WallpaperParserImplTest 62 resources = context.resources in setup() 63 partnerProvider.resources = resources in setup() 76 resources.getIdentifier(PartnerProvider.WALLPAPER_RES_ID, "xml", packageName) in parseXMLForSystemCategories_shouldReturnCategories() 78 val parser: XmlResourceParser = resources.getXml(wallpapersResId) in parseXMLForSystemCategories_shouldReturnCategories() 93 val wallpapersResId: Int = resources.getIdentifier("invalid_wallpapers", "xml", packageName) in parseInvalidXMLForSystemCategories_shouldReturnEmptyCategories() 95 val parser: XmlResourceParser = resources.getXml(wallpapersResId) in parseInvalidXMLForSystemCategories_shouldReturnEmptyCategories() 110 resources.getIdentifier("exception_wallpapers", "xml", packageName) in parseInvalidXMLForSystemCategories_shouldThrowException() 112 val parser: XmlResourceParser = resources.getXml(wallpapersResId) in parseInvalidXMLForSystemCategories_shouldThrowException()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | ContactDataHandler.java | 58 public ContactDataHandler(Resources resources) { in ContactDataHandler() argument 61 mHandlers.put(Email.CONTENT_ITEM_TYPE, new EmailDataHandler(resources)); in ContactDataHandler() 63 mHandlers.put(Phone.CONTENT_ITEM_TYPE, new PhoneHandler(resources)); in ContactDataHandler() 64 mHandlers.put(StructuredPostal.CONTENT_ITEM_TYPE, new StructuredPostalHandler(resources)); in ContactDataHandler() 67 mHandlers.put(Relation.CONTENT_ITEM_TYPE, new RelationDataHandler(resources)); in ContactDataHandler() 180 @NonNull Resources resources, in ContactPointDataHandler() 184 mResources = Objects.requireNonNull(resources); in ContactPointDataHandler() 232 protected abstract String getTypeLabel(Resources resources, int type, String label); in getTypeLabel() argument 250 public EmailDataHandler(@NonNull Resources resources) { in EmailDataHandler() argument 251 super(resources, COLUMNS, Email.TYPE, Email.LABEL); in EmailDataHandler() [all …]
|
/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/com/android/car/carlauncher/datasources/ |
D | ControlCenterMirroringDataSourceImplTest.kt | 61 private val resources = RuntimeEnvironment.getApplication().resources in <lambda>() constant in com.android.car.carlauncher.datasources.ControlCenterMirroringDataSourceImplTest 83 resources, in <lambda>() 100 resources.getString(R.string.config_msg_mirroring_service_pkg_name), in <lambda>() 101 resources.getString(R.string.config_msg_mirroring_service_class_name) in <lambda>() 115 resources, in <lambda>() 138 resources, in <lambda>() 172 resources, in <lambda>() 201 resources.getInteger(R.integer.config_msg_unregister_mirroring_pkg_code) in <lambda>() 211 resources, in <lambda>() 240 resources.getInteger(R.integer.config_msg_send_mirroring_pkg_code) in <lambda>() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/ |
D | NearbyShareModuleTest.kt | 39 TestableResources(resources) in Context() 42 .resources 53 val resources = in valueIsAbsent_whenUnset() constant 56 val componentName = NearbyShareModule.nearbyShareComponent(resources, secureSettings) in valueIsAbsent_whenUnset() 63 val resources = in defaultValue_readFromResources() constant 71 val nearbyShareComponent = NearbyShareModule.nearbyShareComponent(resources, secureSettings) in defaultValue_readFromResources() 82 val resources = in secureSettings_overridesDefault() constant 90 val nearbyShareComponent = NearbyShareModule.nearbyShareComponent(resources, secureSettings) in secureSettings_overridesDefault()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | Util.kt | 43 val resources: Resources? = packageContext?.getResources() in getResourceUri() constant 44 getResourceUri(resources, packageContext?.getPackageName(), res) in getResourceUri() 53 val resources: Resources? = in getResourceUri() constant 55 getResourceUri(resources, appInfo?.packageName, res) in getResourceUri() 66 private fun getResourceUri(resources: Resources?, appPkg: String?, res: Int): Uri { in getResourceUri() 67 val resPkg: String? = resources?.getResourcePackageName(res) in getResourceUri() 68 val type: String? = resources?.getResourceTypeName(res) in getResourceUri() 69 val name: String? = resources?.getResourceEntryName(res) in getResourceUri()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/ |
D | KidsNavLayoutter.kt | 34 resources: Resources, 43 resources, 53 val iconSize: Int = resources.getDimensionPixelSize(DIMEN_TASKBAR_ICON_SIZE_KIDS) in layoutButtons() 54 val buttonWidth: Int = resources.getDimensionPixelSize(DIMEN_TASKBAR_NAV_BUTTONS_WIDTH_KIDS) in layoutButtons() 56 resources.getDimensionPixelSize(DIMEN_TASKBAR_NAV_BUTTONS_HEIGHT_KIDS) in layoutButtons() 58 resources.getDimensionPixelSize(DIMEN_TASKBAR_NAV_BUTTONS_CORNER_RADIUS_KIDS) in layoutButtons() 73 resources.getDimensionPixelSize(DIMEN_TASKBAR_HOME_BUTTON_LEFT_MARGIN_KIDS) in layoutButtons() 80 resources.getDimensionPixelSize(DIMEN_TASKBAR_BACK_BUTTON_LEFT_MARGIN_KIDS) in layoutButtons() 106 resources.getDimensionPixelSize(R.dimen.taskbar_contextual_button_padding) in layoutButtons()
|
D | NavButtonLayoutFactory.kt | 64 resources: Resources, in getUiLayoutter() 84 resources, in getUiLayoutter() 95 resources, in getUiLayoutter() 106 resources, in getUiLayoutter() 118 resources, in getUiLayoutter() 132 resources, in getUiLayoutter() 144 resources, in getUiLayoutter() 155 resources, in getUiLayoutter()
|
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/ |
D | DockItemViewHolder.kt | 66 private val staticIconStrokeWidth = itemView.resources 68 private val defaultIconColor = itemView.resources.getColor( 83 itemView.resources.getValue( 92 dynamicIconStrokeWidth = itemView.resources 94 excitedIconStrokeWidth = itemView.resources 96 staticIconStrokeColor = itemView.resources.getColor( 100 excitedIconStrokeColor = itemView.resources.getColor( 104 restrictedIconStrokeColor = itemView.resources.getColor( 117 exciteAnimationDuration = itemView.resources 122 resources = this.itemView.resources,
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AndroidManifestConfigParser.java | 66 @NonNull XmlResourceParser parser, @NonNull Resources resources) in getAdServicesConfigResourceId() argument 74 Objects.requireNonNull(resources); in getAdServicesConfigResourceId() 86 getResourceIdIfAdServicesProperty(parser, resources); in getAdServicesConfigResourceId() 106 @NonNull XmlResourceParser parser, @NonNull Resources resources) { in getResourceIdIfAdServicesProperty() argument 113 isAdServicesProperty = isAdServicesPropertyName(attributeVal, resources); in getResourceIdIfAdServicesProperty() 149 @Nullable String name, @NonNull Resources resources) { in isAdServicesPropertyName() argument 151 final String resolvedName = resolvePropertyName(name.strip(), resources); in isAdServicesPropertyName() 168 private static String resolvePropertyName(@NonNull String name, @NonNull Resources resources) { in resolvePropertyName() argument 170 return resId.isPresent() ? resources.getString(resId.get()) : name; in resolvePropertyName()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/ |
D | ClockViewFactoryImpl.kt | 48 private val resources = appContext.resources in <lambda>() constant in com.android.customization.picker.clock.ui.view.ClockViewFactoryImpl 98 resources.getDimensionPixelSize( in <lambda>() 110 getStatusBarHeight(appContext.resources) + in <lambda>() 111 appContext.resources.getDimensionPixelSize( in <lambda>() 116 appContext.resources.getDimensionPixelSize( in <lambda>() 180 registry.createExampleClock(clockId).also { it?.initialize(resources, 0f, 0f) } in <lambda>() 187 resources in <lambda>() 198 resources in <lambda>() 230 resources.getDimensionPixelSize( in <lambda>() 234 resources.getDimensionPixelSize( in <lambda>() [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/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/ |
D | ClockColorViewModel.kt | 41 fun getPresetColorMap(resources: Resources): Map<String, ClockColorViewModel> { in <lambda>() 42 val ids = resources.getStringArray(R.array.clock_color_ids) in <lambda>() 43 val names = resources.obtainTypedArray(R.array.clock_color_names) in <lambda>() 44 val colors = resources.obtainTypedArray(R.array.clock_colors) in <lambda>() 45 val colorToneMinList = resources.obtainTypedArray(R.array.clock_color_tone_min) in <lambda>() 46 val colorToneMaxList = resources.obtainTypedArray(R.array.clock_color_tone_max) in <lambda>()
|