/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 254 List<String> summary = new ArrayList<>(); in refreshSensorInfoText() local 260 summary.add(getContext().getString(R.string.sensor_speed, in refreshSensorInfoText() 265 summary.add(getContext().getString(R.string.sensor_rpm, in refreshSensorInfoText() 270 summary.add(getContext().getString(R.string.sensor_odometer, in refreshSensorInfoText() 275 summary.add(getFuelLevel(value)); in refreshSensorInfoText() 278 summary.add(getFuelDoorOpen(value)); in refreshSensorInfoText() 281 summary.add(getContext().getString(R.string.sensor_ignition_status, in refreshSensorInfoText() 287 summary.add(getContext().getString(R.string.sensor_parking_brake, in refreshSensorInfoText() 293 summary.add(getContext().getString(R.string.sensor_gear, in refreshSensorInfoText() 298 summary.add(getContext().getString(R.string.sensor_night, in refreshSensorInfoText() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | SummaryUpdaterTest.java | 50 final String summary = "initialized"; in notifyChangeIfNeeded_fistTimeInit_shouldNotifyChange() local 51 mSummaryUpdater.setTestSummary(summary); in notifyChangeIfNeeded_fistTimeInit_shouldNotifyChange() 54 verify(mListener).onSummaryChanged(summary); in notifyChangeIfNeeded_fistTimeInit_shouldNotifyChange() 85 String summary; field in SummaryUpdaterTest.SummaryListener 88 public void onSummaryChanged(String summary) { in onSummaryChanged() argument 89 this.summary = summary; in onSummaryChanged() 114 private void setTestSummary(String summary) { in setTestSummary() argument 115 mTestSummary = summary; in setTestSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | ListWithEntrySummaryPreferenceTest.java | 73 TextView summary = adapter.getView(i, null, null).findViewById(R.id.summary); in initialize_defaultEntries_shouldDisplayDefaultEntries() local 75 assertThat(summary.getText()).isEqualTo(mDefaultEntrySummaries[i]); in initialize_defaultEntries_shouldDisplayDefaultEntries() 92 TextView summary = adapter.getView(i, null, null).findViewById(R.id.summary); in setEntries_customEntries_shouldUpdateEntries() local 94 assertThat(summary.getText()).isEqualTo(mCustomEntrySummaries[i]); in setEntries_customEntries_shouldUpdateEntries() 117 TextView summary = adapter.getView(i, null, null).findViewById(R.id.summary); in onSaveAndRestoreInstanceState_resumePreference_shouldNotChangeEntries() local 119 assertThat(summary.getText()).isEqualTo(mCustomEntrySummaries[i]); in onSaveAndRestoreInstanceState_resumePreference_shouldNotChangeEntries()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | NotificationAccessPreferenceController.java | 148 String summary = service.loadLabel(packageManager).toString(); in onServicesReloaded() local 153 if (title != null && !title.equals(summary)) { in onServicesReloaded() 155 pref.setSummary(summary); in onServicesReloaded() 157 pref.setTitle(summary); in onServicesReloaded() 163 return promptUserToConfirmChange(cn, summary, enable); in onServicesReloaded() 203 String summary = getContext().getResources().getString( in createConfirmGrantDialogFragment() local 207 .setMessage(summary) in createConfirmGrantDialogFragment() 213 String summary = getContext().getResources().getString( in createConfirmRevokeDialogFragment() local 216 .setMessage(summary) in createConfirmRevokeDialogFragment()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBuilderUtilsTest.java | 216 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary() local 218 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary() 229 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull() local 231 assertThat(summary).isNull(); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull() 242 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary() local 244 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary() 255 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary() local 257 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary() 264 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString() local 266 assertThat(summary).isNull(); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenModeDurationPreferenceController.java | 46 String summary; in getSummary() local 49 summary = mContext.getString(R.string.zen_mode_duration_summary_always_prompt); in getSummary() 51 summary = mContext.getString(R.string.zen_mode_duration_summary_forever); in getSummary() 55 summary = mContext.getResources().getQuantityString( in getSummary() 58 summary = mContext.getResources().getString( in getSummary() 63 return summary; in getSummary()
|
D | RingtonePreferenceControllerBase.java | 56 final CharSequence summary; in updateSummary() local 58 summary = mContext.getString(com.android.internal.R.string.ringtone_silent); in updateSummary() 60 summary = Ringtone.getTitle( in updateSummary() 63 if (summary != null) { in updateSummary() 64 ThreadUtils.postOnMainThread(() -> preference.setSummary(summary)); in updateSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenModeDurationPreferenceController.java | 46 String summary; in getSummary() local 49 summary = mContext.getString(R.string.zen_mode_duration_summary_always_prompt); in getSummary() 51 summary = mContext.getString(R.string.zen_mode_duration_summary_forever); in getSummary() 55 summary = mContext.getResources().getQuantityString( in getSummary() 58 summary = mContext.getResources().getString( in getSummary() 63 return summary; in getSummary()
|
D | RingtonePreferenceControllerBase.java | 56 final CharSequence summary; in updateSummary() local 58 summary = null; in updateSummary() 60 summary = Ringtone.getTitle( in updateSummary() 63 if (summary != null) { in updateSummary() 64 ThreadUtils.postOnMainThread(() -> preference.setSummary(summary)); in updateSummary()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | FixedLineSummaryPreference.java | 55 TextView summary = (TextView) holder.findViewById(android.R.id.summary); in onBindViewHolder() local 56 if (summary != null) { in onBindViewHolder() 57 summary.setMinLines(mSummaryLineCount); in onBindViewHolder() 58 summary.setMaxLines(mSummaryLineCount); in onBindViewHolder() 59 summary.setEllipsize(TruncateAt.END); in onBindViewHolder()
|
D | SummaryUpdater.java | 42 void onSummaryChanged(String summary); in onSummaryChanged() argument 62 String summary = getSummary(); in notifyChangeIfNeeded() local 63 if (!TextUtils.equals(mSummary, summary)) { in notifyChangeIfNeeded() 64 mSummary = summary; in notifyChangeIfNeeded() 66 mListener.onSummaryChanged(summary); in notifyChangeIfNeeded()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | FixedLineSummaryPreference.java | 55 TextView summary = (TextView) holder.findViewById(android.R.id.summary); in onBindViewHolder() local 56 if (summary != null) { in onBindViewHolder() 57 summary.setMinLines(mSummaryLineCount); in onBindViewHolder() 58 summary.setMaxLines(mSummaryLineCount); in onBindViewHolder() 59 summary.setEllipsize(TruncateAt.END); in onBindViewHolder()
|
D | SummaryUpdater.java | 42 void onSummaryChanged(String summary); in onSummaryChanged() argument 62 String summary = getSummary(); in notifyChangeIfNeeded() local 63 if (!TextUtils.equals(mSummary, summary)) { in notifyChangeIfNeeded() 64 mSummary = summary; in notifyChangeIfNeeded() 66 mListener.onSummaryChanged(summary); in notifyChangeIfNeeded()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 93 public String summary; field in RootInfo 118 summary = null; in reset() 142 summary = DurableUtils.readNullableString(in); in read() 162 DurableUtils.writeNullableString(out, summary); in write() 199 root.summary = getCursorString(cursor, Root.COLUMN_SUMMARY); in fromRootsCursor() 440 return compareToIgnoreCaseNullable(summary, other.summary); in compareTo() 457 return (TextUtils.isEmpty(summary)) in toDebugString() 459 : "\"" + title + " (" + summary + ")\" @ " + getUri(); in toDebugString() 463 return !TextUtils.isEmpty(summary) ? summary : title; in getDirectoryString()
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
D | SettingsUtil.java | 80 CharSequence summary = context.getString(R.string.ringtone_unknown); in updateRingtoneName() local 83 summary = context.getString(R.string.ringtone_silent); in updateRingtoneName() 91 summary = title; in updateRingtoneName() 99 summary = context.getString(R.string.default_notification_description, summary); in updateRingtoneName() 101 handler.sendMessage(handler.obtainMessage(msg, summary)); in updateRingtoneName()
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | SettingsUtil.java | 81 CharSequence summary = context.getString(R.string.ringtone_unknown); in getRingtoneName() local 84 summary = context.getString(R.string.ringtone_silent); in getRingtoneName() 92 summary = title; in getRingtoneName() 100 summary = context.getString(R.string.default_notification_description, summary); in getRingtoneName() 102 handler.sendMessage(handler.obtainMessage(msg, summary)); in getRingtoneName()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/backup/ |
D | BackupSettingsHelper.java | 111 String summary = getSummaryFromBackupTransport(); in getSummaryForBackupSettings() local 112 if (summary == null) { in getSummaryForBackupSettings() 113 summary = mContext.getString(R.string.backup_configure_account_default_summary); in getSummaryForBackupSettings() 115 return summary; in getSummaryForBackupSettings() 244 String summary = in getSummaryFromBackupTransport() local 248 "Received the backup settings summary from backup transport: " + summary); in getSummaryFromBackupTransport() 250 return summary; in getSummaryFromBackupTransport()
|
/packages/apps/Settings/src/com/android/settings/backup/ |
D | BackupSettingsHelper.java | 111 String summary = getSummaryFromBackupTransport(); in getSummaryForBackupSettings() local 112 if (summary == null) { in getSummaryForBackupSettings() 113 summary = mContext.getString(R.string.backup_configure_account_default_summary); in getSummaryForBackupSettings() 115 return summary; in getSummaryForBackupSettings() 244 String summary = in getSummaryFromBackupTransport() local 248 "Received the backup settings summary from backup transport: " + summary); in getSummaryFromBackupTransport() 250 return summary; in getSummaryFromBackupTransport()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ColorPreference.java | 103 final CharSequence summary = getSummary(); in onBindViewHolder() local 104 if (!TextUtils.isEmpty(summary)) { in onBindViewHolder() 105 previewImage.setContentDescription(summary); in onBindViewHolder() 135 final TextView summary = (TextView) view.findViewById(R.id.summary); in onBindListItem() local 136 summary.setText(title); in onBindListItem()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | ColorPreference.java | 103 final CharSequence summary = getSummary(); in onBindViewHolder() local 104 if (!TextUtils.isEmpty(summary)) { in onBindViewHolder() 105 previewImage.setContentDescription(summary); in onBindViewHolder() 135 final TextView summary = (TextView) view.findViewById(R.id.summary); in onBindListItem() local 136 summary.setText(title); in onBindListItem()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/ |
D | PreventRingingParentPreferenceController.java | 48 int summary; in getSummary() local 51 summary = R.string.prevent_ringing_option_vibrate_summary; in getSummary() 54 summary = R.string.prevent_ringing_option_mute_summary; in getSummary() 57 summary = R.string.prevent_ringing_option_none_summary; in getSummary() 59 return mContext.getText(summary); in getSummary()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | PreventRingingParentPreferenceController.java | 48 int summary; in getSummary() local 51 summary = R.string.prevent_ringing_option_vibrate_summary; in getSummary() 54 summary = R.string.prevent_ringing_option_mute_summary; in getSummary() 57 summary = R.string.prevent_ringing_option_none_summary; in getSummary() 59 return mContext.getText(summary); in getSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | ManageablePreference.java | 88 String summary = (mState == STATE_NONE ? "" : states[mState]); in updateSummary() local 91 summary = TextUtils.isEmpty(summary) ? alwaysOnString : res.getString( in updateSummary() 92 R.string.join_two_unrelated_items, summary, alwaysOnString); in updateSummary() 94 setSummary(summary); in updateSummary()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | ManageablePreference.java | 88 String summary = (mState == STATE_NONE ? "" : states[mState]); in updateSummary() local 91 summary = TextUtils.isEmpty(summary) ? alwaysOnString : res.getString( in updateSummary() 92 R.string.join_two_unrelated_items, summary, alwaysOnString); in updateSummary() 94 setSummary(summary); in updateSummary()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceNamePreferenceControllerTest.java | 117 String summary = "summary"; in refreshUi_setsCarConnectionSummaryAsSummary() local 118 when(mDevice.getCarConnectionSummary()).thenReturn(summary); in refreshUi_setsCarConnectionSummaryAsSummary() 122 assertThat(mPreference.getSummary()).isEqualTo(summary); in refreshUi_setsCarConnectionSummaryAsSummary() 137 String summary = "summary"; in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary() local 138 when(mDevice.getCarConnectionSummary()).thenReturn(summary); in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary() 144 String expected = new StringJoiner(System.lineSeparator()).add(summary).add( in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary()
|