Home
last modified time | relevance | path

Searched refs:stateDescription (Results 1 – 25 of 28) sorted by relevance

12

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DQSTileViewImpl.kt453 val stateDescription = StringBuilder() regex
458 stateDescription.append(stateText)
461 stateDescription.append(", ")
462 stateDescription.append(getUnavailableText(state.spec))
464 if (!TextUtils.isEmpty(state.stateDescription)) {
465 stateDescription.append(", ")
466 stateDescription.append(state.stateDescription)
468 state.stateDescription != lastStateDescription) {
469 stateDescriptionDeltas = state.stateDescription
473 setStateDescription(stateDescription.toString())
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
H A DCustomTileStatePersisterTest.kt63 stateDescription == other.stateDescription
97 stateDescription = TEST_STATE_DESCRIPTION
114 stateDescription = TEST_STATE_DESCRIPTION
H A DCustomTileTest.kt231 val stateDescription = "test_state_description" regex
238 this.stateDescription = stateDescription
267 assertEquals(stateDescription, tileState.stateDescription)
277 stateDescription = "test_state_description"
H A DTileRequestDialogTest.kt147 assertThat(tile.stateDescription).isEqualTo("")
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
H A DQSTile.java167 @Nullable public CharSequence stateDescription; field in QSTile.State
208 || !Objects.equals(other.stateDescription, stateDescription) in copyTo()
226 other.stateDescription = stateDescription; in copyTo()
254 sb.append(",stateDescription=").append(stateDescription); in toStringBuilder()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/view/
H A DSeekBarWithIconButtonsViewTest.java182 final CharSequence stateDescription = mSeekbar.getStateDescription(); in setProgressStateLabels_getExpectedStateDescriptionOnInitialization() local
185 assertThat(stateDescription).isEqualTo(stateLabels[currentProgress]); in setProgressStateLabels_getExpectedStateDescriptionOnInitialization()
196 final CharSequence stateDescription = mSeekbar.getStateDescription(); in setProgressStateLabels_progressChanged_getExpectedStateDescription() local
199 assertThat(stateDescription).isEqualTo(stateLabels[currentProgress]); in setProgressStateLabels_progressChanged_getExpectedStateDescription()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DQuickAccessWalletTileTest.java289 assertNotNull(state.stateDescription); in testHandleUpdateState_walletIsUpdating()
300 assertNotNull(state.stateDescription); in testHandleUpdateState_walletIsUpdating()
314 assertNotNull(state.stateDescription); in testHandleUpdateState_hasCard_deviceLocked_tileInactive()
328 assertNotNull(state.stateDescription); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive()
344 assertNotNull(state.stateDescription); in testHandleUpdateState_noCard_tileInactive()
356 assertNull(state.stateDescription); in testHandleUpdateState_qawServiceUnavailable_tileUnavailable()
368 assertNull(state.stateDescription); in testHandleUpdateState_qawFeatureUnavailable_tileUnavailable()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DCustomTileStatePersister.kt100 stateDescription = json.getStringOrNull(STATE_DESCRIPTION)
119 .put(STATE_DESCRIPTION, stateDescription)
H A DTileRequestDialog.kt82 tile.stateDescription = ""
H A DCustomTile.java474 state.stateDescription = mTile.getStateDescription(); in handleUpdateState()
476 state.stateDescription = null; in handleUpdateState()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DControlAdapter.kt237 this::stateDescription,
247 private fun stateDescription(favorite: Boolean): CharSequence? { regex
280 itemView.stateDescription = stateDescription(favorite)
346 info.stateDescription = stateRetriever(isFavorite)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCastTile.java261 state.stateDescription = ""; in handleUpdateState()
271 state.stateDescription = state.stateDescription + "," in handleUpdateState()
298 state.stateDescription = state.stateDescription + ", " + state.secondaryLabel; in handleUpdateState()
H A DBluetoothTile.java163 state.stateDescription = ""; in handleUpdateState()
171 state.stateDescription = in handleUpdateState()
177 state.stateDescription = state.secondaryLabel; in handleUpdateState()
181 state.stateDescription = mContext.getString(R.string.accessibility_not_connected); in handleUpdateState()
H A DFlashlightTile.java125 state.stateDescription = ""; in handleUpdateState()
129 state.stateDescription = state.secondaryLabel; in handleUpdateState()
H A DDeviceControlsTile.kt146 state.stateDescription = state.secondaryLabel
H A DInternetTile.java577 state.stateDescription = minimalStateDescription.toString(); in handleUpdateWifiState()
621 state.stateDescription = ""; in handleUpdateCellularState()
623 state.stateDescription = state.secondaryLabel; in handleUpdateCellularState()
H A DHotspotTile.java176 state.stateDescription = state.secondaryLabel; in handleUpdateState()
H A DRotationLockTile.java166 state.stateDescription = state.secondaryLabel; in handleUpdateState()
H A DQuickAccessWalletTile.java168 state.stateDescription = state.secondaryLabel; in handleUpdateState()
/aosp14/frameworks/base/core/java/android/service/quicksettings/
H A DTile.java208 public void setStateDescription(@Nullable CharSequence stateDescription) { in setStateDescription() argument
209 this.mStateDescription = stateDescription; in setStateDescription()
/aosp14/frameworks/base/core/java/com/android/internal/accessibility/dialog/
H A DAccessibilityTarget.java123 public void setStateDescription(CharSequence stateDescription) { in setStateDescription() argument
124 mStateDescription = stateDescription; in setStateDescription()
/aosp14/frameworks/base/core/java/android/widget/
H A DCompoundButton.java185 public void setStateDescription(@Nullable CharSequence stateDescription) { in setStateDescription() argument
186 mCustomStateDescription = stateDescription; in setStateDescription()
187 if (stateDescription == null) { in setStateDescription()
190 super.setStateDescription(stateDescription); in setStateDescription()
/aosp14/frameworks/base/services/core/java/com/android/server/rollback/
H A DRollback.java229 @RollbackState int state, String stateDescription, boolean restoreUserDataInProgress, in Rollback() argument
238 mStateDescription = stateDescription; in Rollback()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSTileViewImplTest.kt383 assertThat(tileView.stateDescription?.contains(unavailableString)).isTrue()
/aosp14/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityNodeInfo.java3365 public void setStateDescription(@Nullable CharSequence stateDescription) { in setStateDescription() argument
3367 mStateDescription = (stateDescription == null) ? null in setStateDescription()
3368 : stateDescription.subSequence(0, stateDescription.length()); in setStateDescription()

12