Home
last modified time | relevance | path

Searched refs:secondaryLabel (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileViewImplTest.kt68 state.secondaryLabel = testString in testSecondaryLabelNotModified_unavailable()
72 assertThat(state.secondaryLabel as CharSequence).isEqualTo(testString) in testSecondaryLabelNotModified_unavailable()
80 state.secondaryLabel = testString in testSecondaryLabelNotModified_booleanInactive()
84 assertThat(state.secondaryLabel as CharSequence).isEqualTo(testString) in testSecondaryLabelNotModified_booleanInactive()
92 state.secondaryLabel = testString in testSecondaryLabelNotModified_booleanActive()
96 assertThat(state.secondaryLabel as CharSequence).isEqualTo(testString) in testSecondaryLabelNotModified_booleanActive()
103 state.secondaryLabel = "" in testSecondaryLabelNotModified_availableNotBoolean_inactive()
107 assertThat(TextUtils.isEmpty(state.secondaryLabel)).isTrue() in testSecondaryLabelNotModified_availableNotBoolean_inactive()
114 state.secondaryLabel = "" in testSecondaryLabelNotModified_availableNotBoolean_active()
118 assertThat(TextUtils.isEmpty(state.secondaryLabel)).isTrue() in testSecondaryLabelNotModified_availableNotBoolean_active()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DCustomizeTileView.kt36 secondaryLabel.visibility = getVisibilityState(secondaryLabel.text)
48 secondaryLabel.visibility = getVisibilityState(state.secondaryLabel) in handleStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileViewImpl.kt91 protected lateinit var secondaryLabel: TextView in <lambda>() variable
153 FontSizeUtils.updateFontSize(secondaryLabel, R.dimen.qs_tile_text_size) in <lambda>()
189 secondaryLabel = labelContainer.requireViewById(R.id.app_label) in <lambda>()
197 secondaryLabel.alpha = 0f in <lambda>()
290 return secondaryLabel in <lambda>()
361 if (TextUtils.isEmpty(state.secondaryLabel)) { in <lambda>()
362 state.secondaryLabel = stateText in <lambda>()
395 if (!Objects.equals(secondaryLabel.text, state.secondaryLabel)) { in <lambda>()
396 secondaryLabel.text = state.secondaryLabel in <lambda>()
397 secondaryLabel.visibility = if (TextUtils.isEmpty(state.secondaryLabel)) { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java124 state.secondaryLabel = mContext.getResources().getString( in handleUpdateState()
128 state.secondaryLabel = mContext.getResources().getString(nightMode in handleUpdateState()
139 state.secondaryLabel = mContext.getResources().getString(nightMode in handleUpdateState()
144 state.secondaryLabel = null; in handleUpdateState()
149 state.contentDescription = TextUtils.isEmpty(state.secondaryLabel) in handleUpdateState()
151 : TextUtils.concat(state.label, ", ", state.secondaryLabel); in handleUpdateState()
DScreenRecordTile.java110 state.secondaryLabel = mContext.getString(R.string.quick_settings_screen_record_stop); in handleUpdateState()
114 state.secondaryLabel = String.format("%d...", countdown); in handleUpdateState()
116 state.secondaryLabel = mContext.getString(R.string.quick_settings_screen_record_start); in handleUpdateState()
118 state.contentDescription = TextUtils.isEmpty(state.secondaryLabel) in handleUpdateState()
120 : TextUtils.concat(state.label, ", ", state.secondaryLabel); in handleUpdateState()
DInternetTile.java404 state.secondaryLabel = getSecondaryLabel(cb.mIsTransient, removeDoubleQuotes(cb.mSsid)); in handleUpdateWifiState()
418 state.secondaryLabel = r.getString(R.string.status_bar_airplane); in handleUpdateWifiState()
422 state.secondaryLabel = in handleUpdateWifiState()
425 state.secondaryLabel = in handleUpdateWifiState()
434 state.secondaryLabel = r.getString(R.string.quick_settings_networks_unavailable); in handleUpdateWifiState()
437 state.secondaryLabel = r.getString(R.string.quick_settings_networks_available); in handleUpdateWifiState()
458 } else if (!TextUtils.isEmpty(state.secondaryLabel)) { in handleUpdateWifiState()
459 minimalContentDescription.append(",").append(state.secondaryLabel); in handleUpdateWifiState()
490 state.secondaryLabel = r.getString(R.string.status_bar_airplane); in handleUpdateCellularState()
494 state.secondaryLabel = r.getString(R.string.quick_settings_networks_unavailable); in handleUpdateCellularState()
[all …]
DQuickAccessWalletTile.java172 state.secondaryLabel = in handleUpdateState()
177 state.secondaryLabel = mSelectedCard.getContentDescription(); in handleUpdateState()
182 state.secondaryLabel = in handleUpdateState()
189 state.stateDescription = state.secondaryLabel; in handleUpdateState()
192 state.secondaryLabel = null; in handleUpdateState()
DAlarmTile.kt91 state.secondaryLabel = formatNextAlarm(it) in <lambda>()
94 state.secondaryLabel = mContext.getString(R.string.qs_alarm_tile_no_alarm) in <lambda>()
97 state.contentDescription = TextUtils.concat(state.label, ", ", state.secondaryLabel) in <lambda>()
DFlashlightTile.java123 state.secondaryLabel = ""; in handleUpdateState()
128 state.secondaryLabel = mContext.getString( in handleUpdateState()
130 state.stateDescription = state.secondaryLabel; in handleUpdateState()
DDeviceControlsTile.kt140 state.secondaryLabel = controlsComponent in handleUpdateState()
144 state.secondaryLabel = mContext.getText(R.string.controls_tile_locked) in handleUpdateState()
146 state.stateDescription = state.secondaryLabel in handleUpdateState()
DCellularTile.java199 state.secondaryLabel = r.getString(R.string.keyguard_missing_sim_message_short); in handleUpdateState()
202 state.secondaryLabel = r.getString(R.string.status_bar_airplane); in handleUpdateState()
205 state.secondaryLabel = appendMobileDataType( in handleUpdateState()
211 state.secondaryLabel = r.getString(R.string.cell_data_off); in handleUpdateState()
219 state.stateDescription = state.secondaryLabel; in handleUpdateState()
DCastTile.java214 state.secondaryLabel = getDeviceName(device); in handleUpdateState()
225 state.secondaryLabel = mContext.getString(R.string.quick_settings_connecting); in handleUpdateState()
232 state.secondaryLabel = ""; in handleUpdateState()
240 state.secondaryLabel = noWifi; in handleUpdateState()
242 state.stateDescription = state.stateDescription + ", " + state.secondaryLabel; in handleUpdateState()
DNightDisplayTile.java150 state.secondaryLabel = getSecondaryLabel(state.value); in handleUpdateState()
151 state.contentDescription = TextUtils.isEmpty(state.secondaryLabel) in handleUpdateState()
153 : TextUtils.concat(state.label, ", ", state.secondaryLabel); in handleUpdateState()
DSensorPrivacyToggleTile.java119 state.secondaryLabel = mContext.getString(R.string.quick_settings_camera_mic_blocked); in handleUpdateState()
121 state.secondaryLabel = mContext.getString(R.string.quick_settings_camera_mic_available); in handleUpdateState()
DDndTile.java238 state.secondaryLabel = TextUtils.emptyIfNull(ZenModeConfig.getDescription(mContext, in handleUpdateState()
248 + state.secondaryLabel; in handleUpdateState()
254 + ", " + state.secondaryLabel; in handleUpdateState()
260 + ", " + state.secondaryLabel; in handleUpdateState()
DHotspotTile.java169 state.secondaryLabel = getSecondaryLabel( in handleUpdateState()
171 state.stateDescription = state.secondaryLabel; in handleUpdateState()
DBluetoothTile.java146 state.secondaryLabel = TextUtils.emptyIfNull( in handleUpdateState()
159 + ", " + state.secondaryLabel; in handleUpdateState()
163 state.stateDescription = state.secondaryLabel; in handleUpdateState()
DWifiTile.java198 state.secondaryLabel = getSecondaryLabel(isTransient, cb.statusLabel); in handleUpdateState()
232 if (!TextUtils.isEmpty(state.secondaryLabel)) { in handleUpdateState()
233 minimalContentDescription.append(",").append(state.secondaryLabel); in handleUpdateState()
DBatterySaverTile.java144 state.secondaryLabel = ""; in handleUpdateState()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java157 public CharSequence secondaryLabel; field in QSTile.State
178 || !Objects.equals(other.secondaryLabel, secondaryLabel) in copyTo()
197 other.secondaryLabel = secondaryLabel; in copyTo()
226 sb.append(",secondaryLabel=").append(secondaryLabel); in toStringBuilder()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DScreenRecordTileTest.java110 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testNotActive()
128 assertTrue(mTile.getState().secondaryLabel.toString().endsWith("...")); in testIsStarting()
152 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testIsRecording()
DQuickAccessWalletTileTest.java310 mContext.getString(R.string.wallet_secondary_label_updating), state.secondaryLabel); in testHandleUpdateState_walletIsUpdating()
323 state.secondaryLabel); in testHandleUpdateState_walletIsUpdating()
339 state.secondaryLabel); in testHandleUpdateState_hasCard_deviceLocked_tileInactive()
355 state.secondaryLabel); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive()
371 state.secondaryLabel); in testHandleUpdateState_noCard_tileInactive()
DCastTileTest.java280 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(device.name)); in testUpdateState_projectionOnly()
304 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(casting.name)); in testUpdateState_castingAndProjection()
328 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(connected.name)); in testUpdateState_connectedAndConnecting()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackHandlerTest.java90 String secondaryLabel = "Secondary label"; in testSignalCallback_setWifiIndicators() local
92 enabled, status, qs, in, out, description, true, secondaryLabel); in testSignalCallback_setWifiIndicators()
108 assertEquals(secondaryLabel, expected.statusLabel); in testSignalCallback_setWifiIndicators()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassificationTest.java89 final String secondaryLabel = "secondaryLabel"; in testParcel() local
94 final RemoteAction remoteAction1 = new RemoteAction(secondaryIcon, secondaryLabel, in testParcel()
126 assertEquals(secondaryLabel, secondaryAction.getTitle()); in testParcel()

12