/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/src/com/android/settings/accessibility/ |
D | AccessibilityEditDialogUtils.java | 209 final TextView summary = view.findViewById(R.id.summary); in setupShortcutWidget() local 211 summary.setVisibility(View.GONE); in setupShortcutWidget() 213 summary.setText(summaryText); in setupShortcutWidget() 221 final TextView summary = dialogView.findViewById(R.id.summary); in initSoftwareShortcut() local 222 final int lineHeight = summary.getLineHeight(); in initSoftwareShortcut() 231 final CharSequence summary = context.getText( in initHardwareShortcut() local 233 setupShortcutWidget(dialogView, title, summary, in initHardwareShortcut() 242 final CharSequence summary = context.getText( in initMagnifyShortcut() local 244 setupShortcutWidget(dialogView, title, summary, in initMagnifyShortcut() 290 final String summary = context in getSummaryStringWithIcon() local [all …]
|
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/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilitySettingsTest.java | 125 final CharSequence summary = AccessibilitySettings.getServiceSummary(mContext, in getServiceSummary_serviceCrash_showsStopped() local 128 assertThat(summary).isEqualTo( in getServiceSummary_serviceCrash_showsStopped() 137 final CharSequence summary = AccessibilitySettings.getServiceSummary(mContext, in getServiceSummary_invisibleToggle_shortcutDisabled_showsOffSummary() local 140 assertThat(summary).isEqualTo( in getServiceSummary_invisibleToggle_shortcutDisabled_showsOffSummary() 150 final CharSequence summary = AccessibilitySettings.getServiceSummary(mContext, in getServiceSummary_enableService_showsEnabled() local 153 assertThat(summary).isEqualTo( in getServiceSummary_enableService_showsEnabled() 161 final CharSequence summary = AccessibilitySettings.getServiceSummary(mContext, in getServiceSummary_disableService_showsDisabled() local 164 assertThat(summary).isEqualTo( in getServiceSummary_disableService_showsDisabled() 174 final CharSequence summary = AccessibilitySettings.getServiceSummary(mContext, in getServiceSummary_enableServiceAndHasSummary_showsEnabledSummary() local 177 assertThat(summary).isEqualTo( in getServiceSummary_enableServiceAndHasSummary_showsEnabledSummary() [all …]
|
/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/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBuilderUtilsTest.java | 163 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary() local 165 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary() 176 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull() local 178 assertThat(summary).isNull(); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull() 189 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary() local 191 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary() 202 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary() local 204 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary() 211 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString() local 213 assertThat(summary).isNull(); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 97 public String summary; field in RootInfo 123 summary = null; in reset() 152 summary = DurableUtils.readNullableString(in); in read() 173 DurableUtils.writeNullableString(out, summary); in write() 214 newRoot.summary = root.summary; in copyRootInfo() 235 root.summary = getCursorString(cursor, Root.COLUMN_SUMMARY); in fromRootsCursor() 500 return compareToIgnoreCaseNullable(summary, other.summary); in compareTo() 518 return (TextUtils.isEmpty(summary)) in toDebugString() 520 : "\"" + title + " (" + summary + ")\" @ " + getUri(); in toDebugString() 524 return !TextUtils.isEmpty(summary) ? summary : title; in getDirectoryString()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
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()
|
/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/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | NotificationAccessPreferenceController.java | 151 String summary = service.loadLabel(packageManager).toString(); in onServicesReloaded() local 156 if (title != null && !title.equals(summary)) { in onServicesReloaded() 158 pref.setSummary(summary); in onServicesReloaded() 160 pref.setTitle(summary); in onServicesReloaded() 166 return promptUserToConfirmChange(cn, summary, enable); in onServicesReloaded() 206 String summary = getContext().getResources().getString( in createConfirmGrantDialogFragment() local 210 .setMessage(summary) in createConfirmGrantDialogFragment() 216 String summary = getContext().getResources().getString( in createConfirmRevokeDialogFragment() local 219 .setMessage(summary) in createConfirmRevokeDialogFragment()
|
/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/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/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/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/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/tests/robotests/src/com/android/settings/applications/ |
D | AppPermissionsPreferenceControllerTest.java | 91 final String summary = "Apps using " + permission; in updateSummary_hasOnePermission_shouldSetPermissionAsSummary() local 96 assertThat(mPreference.getSummary()).isEqualTo(summary); in updateSummary_hasOnePermission_shouldSetPermissionAsSummary() 111 final String summary = "Apps using microphone, sms, and phone"; in updateSummary_hasThreePermissions_shouldShowThreePermissionAsSummary() local 112 assertThat(mPreference.getSummary()).isEqualTo(summary); in updateSummary_hasThreePermissions_shouldShowThreePermissionAsSummary() 130 final String summary = "Apps using microphone, contacts, and sms, and more"; in updateSummary_hasFivePermissions_shouldShowThreePermissionsAndMoreAsSummary() local 131 assertThat(mPreference.getSummary()).isEqualTo(summary); in updateSummary_hasFivePermissions_shouldShowThreePermissionsAndMoreAsSummary()
|
/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()
|