Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSTileViewImplTest.kt68 state.secondaryLabel = testString
80 state.secondaryLabel = testString
92 state.secondaryLabel = testString
103 state.secondaryLabel = ""
114 state.secondaryLabel = ""
125 state.secondaryLabel = ""
138 state.secondaryLabel = ""
151 state.secondaryLabel = ""
242 state.secondaryLabel = ""
248 state.secondaryLabel = ""
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DCustomizeTileView.kt36 secondaryLabel.visibility = getVisibilityState(secondaryLabel.text)
48 secondaryLabel.visibility = getVisibilityState(state.secondaryLabel)
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DQSTileViewImpl.kt104 protected lateinit var secondaryLabel: TextView
209 secondaryLabel = labelContainer.requireViewById(R.id.app_label)
217 secondaryLabel.alpha = 0f
321 return secondaryLabel
422 if (TextUtils.isEmpty(state.secondaryLabel)) {
423 state.secondaryLabel = stateText
456 if (!Objects.equals(secondaryLabel.text, state.secondaryLabel)) {
457 secondaryLabel.text = state.secondaryLabel
458 secondaryLabel.visibility = if (TextUtils.isEmpty(state.secondaryLabel)) {
482 secondaryLabel.currentTextColor,
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A 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()
H A DInternetTile.java429 state.secondaryLabel = r.getString(R.string.status_bar_airplane); in handleUpdateWifiState()
433 state.secondaryLabel = in handleUpdateWifiState()
436 state.secondaryLabel = in handleUpdateWifiState()
448 state.secondaryLabel = r.getString(R.string.quick_settings_networks_available); in handleUpdateWifiState()
469 } else if (!TextUtils.isEmpty(state.secondaryLabel)) { in handleUpdateWifiState()
470 minimalContentDescription.append(",").append(state.secondaryLabel); in handleUpdateWifiState()
501 state.secondaryLabel = r.getString(R.string.status_bar_airplane); in handleUpdateCellularState()
508 state.secondaryLabel = r.getString(R.string.quick_settings_networks_available); in handleUpdateCellularState()
512 state.secondaryLabel = appendMobileDataType(cb.mDataSubscriptionName, in handleUpdateCellularState()
521 state.stateDescription = state.secondaryLabel; in handleUpdateCellularState()
[all …]
H A DScreenRecordTile.java120 state.secondaryLabel = mContext.getString(R.string.quick_settings_screen_record_stop); in handleUpdateState()
124 state.secondaryLabel = String.format("%d...", countdown); in handleUpdateState()
126 state.secondaryLabel = mContext.getString(R.string.quick_settings_screen_record_start); in handleUpdateState()
128 state.contentDescription = TextUtils.isEmpty(state.secondaryLabel) in handleUpdateState()
130 : TextUtils.concat(state.label, ", ", state.secondaryLabel); in handleUpdateState()
H A DQuickAccessWalletTile.java166 state.secondaryLabel = in handleUpdateState()
171 state.secondaryLabel = mSelectedCard.getContentDescription(); in handleUpdateState()
176 state.secondaryLabel = in handleUpdateState()
183 state.stateDescription = state.secondaryLabel; in handleUpdateState()
186 state.secondaryLabel = null; in handleUpdateState()
H A DAlarmTile.kt91 state.secondaryLabel = formatNextAlarm(it)
94 state.secondaryLabel = mContext.getString(R.string.qs_alarm_tile_no_alarm)
97 state.contentDescription = TextUtils.concat(state.label, ", ", state.secondaryLabel)
H A DDeviceControlsTile.kt129 state.secondaryLabel = controlsComponent
133 state.secondaryLabel = mContext.getText(R.string.controls_tile_locked)
135 state.stateDescription = state.secondaryLabel
H A DFlashlightTile.java123 state.secondaryLabel = ""; in handleUpdateState()
128 state.secondaryLabel = mContext.getString( in handleUpdateState()
130 state.stateDescription = state.secondaryLabel; in handleUpdateState()
H A DCellularTile.java200 state.secondaryLabel = r.getString(R.string.keyguard_missing_sim_message_short); in handleUpdateState()
203 state.secondaryLabel = r.getString(R.string.status_bar_airplane); in handleUpdateState()
206 state.secondaryLabel = appendMobileDataType( in handleUpdateState()
212 state.secondaryLabel = r.getString(R.string.cell_data_off); in handleUpdateState()
220 state.stateDescription = state.secondaryLabel; in handleUpdateState()
H A DCastTile.java240 state.secondaryLabel = getDeviceName(device); in handleUpdateState()
251 state.secondaryLabel = mContext.getString(R.string.quick_settings_connecting); in handleUpdateState()
258 state.secondaryLabel = ""; in handleUpdateState()
267 state.secondaryLabel = noWifi; in handleUpdateState()
270 state.stateDescription = state.stateDescription + ", " + state.secondaryLabel; in handleUpdateState()
H A 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()
H A 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()
H A DDndTile.java265 state.secondaryLabel = TextUtils.emptyIfNull(ZenModeConfig.getDescription(mContext, in handleUpdateState()
275 + state.secondaryLabel; in handleUpdateState()
281 + ", " + state.secondaryLabel; in handleUpdateState()
287 + ", " + state.secondaryLabel; in handleUpdateState()
H A DHotspotTile.java170 state.secondaryLabel = getSecondaryLabel( in handleUpdateState()
172 state.stateDescription = state.secondaryLabel; in handleUpdateState()
H A DBluetoothTile.java146 state.secondaryLabel = TextUtils.emptyIfNull( in handleUpdateState()
159 + ", " + state.secondaryLabel; in handleUpdateState()
163 state.stateDescription = state.secondaryLabel; in handleUpdateState()
H A DWifiTile.java199 state.secondaryLabel = getSecondaryLabel(isTransient, cb.statusLabel); in handleUpdateState()
233 if (!TextUtils.isEmpty(state.secondaryLabel)) { in handleUpdateState()
234 minimalContentDescription.append(",").append(state.secondaryLabel); in handleUpdateState()
/aosp12/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
H A DCallbackHandlerTest.java86 String secondaryLabel = "Secondary label"; in testSignalCallback_setWifiIndicators() local
88 enabled, status, qs, in, out, description, true, secondaryLabel); in testSignalCallback_setWifiIndicators()
104 assertEquals(secondaryLabel, expected.statusLabel); in testSignalCallback_setWifiIndicators()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DScreenRecordTileTest.java121 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testNotActive()
147 assertTrue(mTile.getState().secondaryLabel.toString().endsWith("...")); in testIsStarting()
171 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testIsRecording()
H A DQuickAccessWalletTileTest.java313 mContext.getString(R.string.wallet_secondary_label_updating), state.secondaryLabel); in testHandleUpdateState_walletIsUpdating()
326 state.secondaryLabel); in testHandleUpdateState_walletIsUpdating()
342 state.secondaryLabel); in testHandleUpdateState_hasCard_deviceLocked_tileInactive()
358 state.secondaryLabel); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive()
374 state.secondaryLabel); in testHandleUpdateState_noCard_tileInactive()
H A DCastTileTest.java285 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(device.name)); in testUpdateState_projectionOnly()
309 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(casting.name)); in testUpdateState_castingAndProjection()
333 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(connected.name)); in testUpdateState_connectedAndConnecting()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
H A DDomainMatcher.java129 List<String> secondaryLabel = Utils.splitDomain(domain); in DomainMatcher() local
130 mRoot.addDomain(secondaryLabel.iterator(), MATCH_SECONDARY); in DomainMatcher()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
H A 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