Home
last modified time | relevance | path

Searched refs:contentDescription (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DStatusEvent.kt38 var contentDescription: String? in <lambda>() variable
83 override var contentDescription: String? = "" variable in BatteryEvent
103 override var contentDescription: String? = "" variable in ConnectedDisplayEvent
117 override var contentDescription: String? = null variable in PrivacyEvent
127 v.contentDescription = contentDescription in context()
138 other.contentDescription != contentDescription || in shouldUpdateFromEvent()
148 contentDescription = other.contentDescription in updateFromEvent()
150 privacyChip?.contentDescription = other.contentDescription in updateFromEvent()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/
DModifierExt.kt20 import androidx.compose.ui.semantics.contentDescription
24 fun Modifier.contentDescription(contentDescription: String?) = in contentDescription() method
25 if (contentDescription != null) this.semantics { in contentDescription()
26 this.contentDescription = contentDescription in contentDescription()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DActions.kt34 val contentDescription = stringResource(R.string.abc_action_bar_up_description) in NavigateBack() constant
35 BackAction(contentDescription) { in NavigateBack()
43 val contentDescription = stringResource(R.string.abc_toolbar_collapse_description) in CollapseAction() constant
44 BackAction(contentDescription, onClick) in CollapseAction()
48 private fun BackAction(contentDescription: String, onClick: () -> Unit) { in BackAction()
52 contentDescription = contentDescription, in BackAction()
63 contentDescription = stringResource(R.string.search_menu_title), in SearchAction()
74 contentDescription = stringResource(R.string.abc_searchview_description_clear), in ClearAction()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/material/
DIcon.kt41 contentDescription: String?, in Icon()
54 contentDescription = contentDescription, in Icon()
67 contentDescription: String?, in Icon()
77 contentDescription = contentDescription, in Icon()
90 contentDescription: String?, in Icon()
107 contentDescription = contentDescription, in Icon()
115 contentDescription = contentDescription, in Icon()
DButton.kt46 contentDescription: String, in Button()
56 contentDescription = contentDescription, in Button()
75 contentDescription: String, in Button()
85 contentDescription = contentDescription, in Button()
99 contentDescription: String, in Button()
119 contentDescription = contentDescription, in Button()
/frameworks/base/core/java/android/service/autofill/
DImageTransformation.java92 if (option.contentDescription != null) { in apply()
94 option.contentDescription); in apply()
146 @NonNull CharSequence contentDescription) { in Builder() argument
148 addOption(regex, resId, contentDescription); in Builder()
180 @NonNull CharSequence contentDescription) { in addOption() argument
181 addOptionInternal(regex, resId, Objects.requireNonNull(contentDescription)); in addOption()
186 @Nullable CharSequence contentDescription) { in addOptionInternal() argument
192 mOptions.add(new Option(regex, resId, contentDescription)); in addOptionInternal()
239 contentDescriptions[i] = option.contentDescription; in writeToParcel()
258 final CharSequence contentDescription = contentDescriptions[0];
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/shared/model/
DIcon.kt27 abstract val contentDescription: ContentDescription? constant in com.android.systemui.common.shared.model.Icon
31 override val contentDescription: ContentDescription?, constant in com.android.systemui.common.shared.model.Icon.Loaded
36 override val contentDescription: ContentDescription?, constant in com.android.systemui.common.shared.model.Icon.Resource
41 fun Drawable.asIcon(contentDescription: ContentDescription? = null): Icon =
42 Icon.Loaded(this, contentDescription)
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/binder/
DContentDescriptionViewBinder.kt24 contentDescription: ContentDescription?, in bind()
27 view.contentDescription = in bind()
28 when (contentDescription) { in bind()
30 is ContentDescription.Loaded -> contentDescription.description in bind()
32 view.context.resources.getString(contentDescription.res) in bind()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java46 public CharSequence contentDescription; field in StatusBarIcon
50 CharSequence contentDescription, Type type) { in StatusBarIcon() argument
63 this.contentDescription = contentDescription; in StatusBarIcon()
69 CharSequence contentDescription, Type type) { in StatusBarIcon() argument
71 iconLevel, number, contentDescription, type); in StatusBarIcon()
89 this.iconLevel, this.number, this.contentDescription, this.type); in clone()
108 this.contentDescription = in.readCharSequence(); in readFromParcel()
119 out.writeCharSequence(this.contentDescription); in writeToParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/commons/
DTileExt.kt26 it.contentDescription = contentDescription in Tile()
42 if (otherTile.contentDescription != null) { in setFrom()
43 contentDescription = otherTile.contentDescription in setFrom()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DRootContentDescription.java40 public RootContentDescription(int contentDescription) { in RootContentDescription() argument
41 this.mContentDescription = contentDescription; in RootContentDescription()
77 public void apply(WireBuffer buffer, int contentDescription) { in apply() argument
79 buffer.writeInt(contentDescription); in apply()
84 int contentDescription = buffer.readInt(); in read() local
85 RootContentDescription header = new RootContentDescription(contentDescription); in read()
DClickArea.java53 public ClickArea(int id, int contentDescription, in ClickArea() argument
58 this.mContentDescription = contentDescription; in ClickArea()
105 public void apply(WireBuffer buffer, int id, int contentDescription, in apply() argument
110 buffer.writeInt(contentDescription); in apply()
121 int contentDescription = buffer.readInt(); in read() local
127 ClickArea clickArea = new ClickArea(id, contentDescription, in read()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DAppRepositoryTest.kt55 val contentDescription = produceIconContentDescription() in produceIconContentDescription_workProfile() constant
57 assertThat(contentDescription.value) in produceIconContentDescription_workProfile()
65 val contentDescription = produceIconContentDescription() in produceIconContentDescription_personalProfile() constant
67 assertThat(contentDescription.value).isNull() in produceIconContentDescription_personalProfile()
71 var contentDescription: State<String?> = stateOf(null) in produceIconContentDescription() variable
73 contentDescription = appRepository.produceIconContentDescription(APP) in produceIconContentDescription()
76 return contentDescription in produceIconContentDescription()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DBatteryMeterViewTest.kt70 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in contentDescription_unknown()
83 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in contentDescription_estimate()
99 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in contentDescription_estimateAndBatteryDefender()
113 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in contentDescription_batteryDefender()
122 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in contentDescription_charging()
131 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in contentDescription_notCharging()
141 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in contentDescription_isIncompatibleCharging_notCharging()
155 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in changesFromEstimateToPercent_textAndContentDescriptionChanges_flagOff()
165 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in changesFromEstimateToPercent_textAndContentDescriptionChanges_flagOff()
179 assertThat(mBatteryMeterView.contentDescription).isEqualTo( in changesFromEstimateToPercent_textAndContentDescriptionChanges_flagOn()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/common/
DMediaTttUtilsTest.kt77 assertThat(iconInfo.contentDescription.loadContentDescription(context)) in getIconInfoFromPackageName_nullPackageName_returnsDefault()
92 assertThat(iconInfo.contentDescription.loadContentDescription(context)) in getIconInfoFromPackageName_nullPackageName_isReceiver_returnsDefault()
124 assertThat(iconInfo.contentDescription.loadContentDescription(context)) in getIconInfoFromPackageName_invalidPackageName_returnsDefault()
139 assertThat(iconInfo.contentDescription.loadContentDescription(context)) in getIconInfoFromPackageName_invalidPackageName_isReceiver_returnsDefault()
188 assertThat(iconInfo.contentDescription.loadContentDescription(context)).isEqualTo(APP_NAME) in getIconInfoFromPackageName_validPackageName_returnsAppInfo()
202 assertThat(iconInfo.contentDescription.loadContentDescription(context)) in getIconInfoFromPackageName_validPackageName_isReceiver_returnsAppInfo()
235 val contentDescription = ContentDescription.Loaded("test") in iconInfo_toTintedIcon_loaded() constant
241 contentDescription, in iconInfo_toTintedIcon_loaded()
249 assertThat(tinted.icon).isEqualTo(Icon.Loaded(drawable, contentDescription)) in iconInfo_toTintedIcon_loaded()
255 val contentDescription = ContentDescription.Loaded("test") in iconInfo_toTintedIcon_resource() constant
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DSwitch.kt24 import com.android.settingslib.spa.framework.compose.contentDescription
31 contentDescription: String? = null, in SettingsSwitch()
39 modifier = Modifier.contentDescription(contentDescription),
DText.kt33 import com.android.settingslib.spa.framework.compose.contentDescription
42 contentDescription: String? = null, in SettingsTitle()
49 .contentDescription(contentDescription), in SettingsTitle()
90 contentDescription: String? = null, in SettingsBody()
96 modifier = Modifier.contentDescription(contentDescription), in SettingsBody()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapperTest.kt65 contentDescription: CharSequence? = null, in createUiNightModeTileState()
78 contentDescription, in createUiNightModeTileState()
101 contentDescription = expectedContentDescription in mapsEnabledDataToUnavailableStateWhenOnPowerSave()
121 contentDescription = expectedContentDescription in mapsDisabledDataToUnavailableStateWhenOnPowerSave()
139 contentDescription = expectedLabel in mapsDisabledDataToInactiveState()
158 contentDescription = expectedLabel in mapsEnabledDataToActiveState()
177 contentDescription = expectedLabel in mapsEnabledDataToOnIconState()
196 contentDescription = expectedLabel in mapsDisabledDataToOffIconState()
215 contentDescription = expectedLabel, in supportsClickAndLongClickActionsWhenNotInPowerSaveInNightMode()
239 contentDescription = expectedContentDescription, in supportsOnlyLongClickActionWhenUnavailableInPowerSaveInNightMode()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/
DIcon.kt40 val contentDescription = icon.contentDescription?.load() in Icon() constant
43 Icon(icon.drawable.toBitmap().asImageBitmap(), contentDescription, modifier, tint) in Icon()
45 is Icon.Resource -> Icon(painterResource(icon.res), contentDescription, modifier, tint) in Icon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/
DInternetTileViewModel.kt81 stateDescription = wifiIcon.contentDescription, in <lambda>()
82 contentDescription = ContentDescription.Loaded("$internetLabel,$secondary"), in <lambda>()
96 val cd = loadString(networkTypeIconGroup.contentDescription) in <lambda>()
132 contentDescription = ContentDescription.Loaded(internetLabel), in <lambda>()
137 signalIcon.icon.contentDescription.loadContentDescription(context) in <lambda>()
142 contentDescription = ContentDescription.Loaded(internetLabel), in <lambda>()
183 val secondary = it.contentDescription in <lambda>()
189 contentDescription = secondary, in <lambda>()
207 contentDescription = ContentDescription.Loaded(secondary), in <lambda>()
217 contentDescription = in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/
DChipbarCoordinatorTest.kt145 assertThat(contentDescView.contentDescription.toString()).contains("loadedCD") in displayView_contentDescription_iconHasDescription()
146 assertThat(contentDescView.contentDescription.toString()).contains("text") in displayView_contentDescription_iconHasDescription()
153 Icon.Resource(R.drawable.ic_cake, contentDescription = null), in displayView_contentDescription_iconHasNoDescription()
160 assertThat(contentDescView.contentDescription.toString()).isEqualTo("text") in displayView_contentDescription_iconHasNoDescription()
175 assertThat(contentDescView.contentDescription.toString()).contains("text") in displayView_contentDescription_endIsLoading()
176 assertThat(contentDescView.contentDescription.toString()).contains(loadingDesc) in displayView_contentDescription_endIsLoading()
191 assertThat(contentDescView.contentDescription.toString()).contains("text") in displayView_contentDescription_endNotLoading()
192 assertThat(contentDescView.contentDescription.toString()).doesNotContain(loadingDesc) in displayView_contentDescription_endNotLoading()
201 Icon.Loaded(drawable, contentDescription = ContentDescription.Loaded("loadedCD")), in displayView_loadedIcon_correctlyRendered()
209 assertThat(iconView.contentDescription).isEqualTo("loadedCD") in displayView_loadedIcon_correctlyRendered()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/model/
DInternetTileModel.kt37 val contentDescription: ContentDescription? constant
47 state.contentDescription = contentDescription.loadContentDescription(context) in applyTo()
70 override val contentDescription: ContentDescription? = null, constant in com.android.systemui.statusbar.pipeline.shared.ui.model.InternetTileModel.Active
79 override val contentDescription: ContentDescription? = null, constant in com.android.systemui.statusbar.pipeline.shared.ui.model.InternetTileModel.Inactive
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/common/
DMediaTttUtils.kt67 val contentDescription = in getIconInfoFromPackageName() constant
80 contentDescription, in getIconInfoFromPackageName()
109 val contentDescription: ContentDescription, constant in com.android.systemui.media.taptotransfer.common.IconInfo
121 is MediaTttIcon.Loaded -> Icon.Loaded(icon.drawable, contentDescription) in toTintedIcon()
122 is MediaTttIcon.Resource -> Icon.Resource(icon.res, contentDescription) in toTintedIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/satellite/ui/model/
DSatelliteIconModel.kt40 contentDescription = in fromConnectionState()
61 contentDescription = in fromSignalStrength()
72 contentDescription = in fromSignalStrength()
83 contentDescription = in fromSignalStrength()
/frameworks/base/core/java/android/text/style/
DAccessibilityReplacementSpan.java42 public AccessibilityReplacementSpan(CharSequence contentDescription) { in AccessibilityReplacementSpan() argument
43 this.setContentDescription(contentDescription); in AccessibilityReplacementSpan()
52 final CharSequence contentDescription = p.readCharSequence(); in AccessibilityReplacementSpan() local
53 this.setContentDescription(contentDescription); in AccessibilityReplacementSpan()

12345678910>>...13