Home
last modified time | relevance | path

Searched refs:summary (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/packages/apps/Settings/src/com/android/settings/vpn2/
DManageablePreference.java109 String summary = (mState == STATE_NONE ? "" : states[mState]); in updateSummary() local
112 summary = TextUtils.isEmpty(summary) ? insecureString : summary + " / " in updateSummary()
115 SpannableString summarySpan = new SpannableString(summary); in updateSummary()
117 summarySpan.setSpan(new ForegroundColorSpan(colorError), 0, summary.length(), in updateSummary()
122 summary = TextUtils.isEmpty(summary) ? alwaysOnString : summary + " / " in updateSummary()
124 setSummary(summary); in updateSummary()
126 setSummary(summary); in updateSummary()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/model/
DReviewPermissionsViewModelTest.kt115 val summary = model.getSummaryForIndividuallyControlledPermGroup(permGroup) in getSummary_individuallyControllerGroup() constant
119 ), summary) in getSummary_individuallyControllerGroup()
127 val summary = model.getSummaryForFixedByPolicyPermissionGroup(PERMISSION_FOREGROUND, in getSummary_foregroundFixedPolicy() constant
129 assertEquals(SummaryMessage.ENABLED_BY_POLICY_FOREGROUND_ONLY.toPermSummary(), summary) in getSummary_foregroundFixedPolicy()
143 val summary = model.getSummaryForFixedByPolicyPermissionGroup(PERMISSION_FOREGROUND, in getSummary_backgroundFixedPolicy_foregroundRequested() constant
145 assertEquals(SummaryMessage.DISABLED_BY_POLICY_BACKGROUND_ONLY.toPermSummary(), summary) in getSummary_backgroundFixedPolicy_foregroundRequested()
159 val summary = model.getSummaryForFixedByPolicyPermissionGroup(PERMISSION_BACKGROUND, in getSummary_backgroundFixedPolicy() constant
161 assertEquals(SummaryMessage.ENABLED_BY_POLICY_BACKGROUND_ONLY.toPermSummary(), summary) in getSummary_backgroundFixedPolicy()
176 val summary = model.getSummaryForFixedByPolicyPermissionGroup(PERMISSION_FOREGROUND, in getSummary_fullyFixedPolicy_hasForegroundGroup() constant
178 assertEquals(SummaryMessage.ENABLED_BY_POLICY_BACKGROUND_ONLY.toPermSummary(), summary) in getSummary_fullyFixedPolicy_hasForegroundGroup()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DNetworkProviderCallsSmsControllerTest.java185 final StringBuilder summary = new StringBuilder(); in getSummary_invalidSubId_returnUnavailable() local
186 summary.append(DISPLAY_NAME_1) in getSummary_invalidSubId_returnUnavailable()
191 assertTrue(TextUtils.equals(mController.getSummary(), summary)); in getSummary_invalidSubId_returnUnavailable() local
206 final StringBuilder summary = new StringBuilder(); in getSummary_oneIsInvalidSubIdTwoIsValidSubId_returnOneIsUnavailable() local
207 summary.append(DISPLAY_NAME_1) in getSummary_oneIsInvalidSubIdTwoIsValidSubId_returnOneIsUnavailable()
214 assertTrue(TextUtils.equals(mController.getSummary(), summary)); in getSummary_oneIsInvalidSubIdTwoIsValidSubId_returnOneIsUnavailable() local
243 final StringBuilder summary = new StringBuilder(); in getSummary_allSubscriptionsHaveNoPreferredStatus_returnDisplayName() local
244 summary.append(DISPLAY_NAME_1).append(", ").append(DISPLAY_NAME_2); in getSummary_allSubscriptionsHaveNoPreferredStatus_returnDisplayName()
246 assertTrue(TextUtils.equals(mController.getSummary(), summary)); in getSummary_allSubscriptionsHaveNoPreferredStatus_returnDisplayName() local
264 final StringBuilder summary = new StringBuilder(); in getSummary_oneSubscriptionsIsCallPreferredTwoIsSmsPreferred_returnStatus() local
[all …]
DNetworkProviderSimListControllerTest.java173 String summary = setSummaryResId("mobile_network_tap_to_activate", DISPLAY_NAME_1); in getSummary_tapToActivePSim() local
175 assertTrue(TextUtils.equals(mController.getSummary(SUB_ID_1, DISPLAY_NAME_1), summary)); in getSummary_tapToActivePSim() local
188 String summary = setSummaryResId("sim_category_inactive_sim", null); in getSummary_inactivePSim() local
190 assertTrue(TextUtils.equals(mController.getSummary(SUB_ID_1, DISPLAY_NAME_1), summary)); in getSummary_inactivePSim() local
206 final StringBuilder summary = new StringBuilder(); in getSummary_defaultCalls() local
207 summary.append(setSummaryResId("sim_category_active_sim", null)) in getSummary_defaultCalls()
210 assertTrue(TextUtils.equals(mController.getSummary(SUB_ID_1, DISPLAY_NAME_1), summary)); in getSummary_defaultCalls() local
227 final StringBuilder summary = new StringBuilder(); in getSummary_defaultCallsAndSms() local
228 summary.append(setSummaryResId("sim_category_active_sim", null)) in getSummary_defaultCallsAndSms()
231 assertTrue(TextUtils.equals(mController.getSummary(SUB_ID_1, DISPLAY_NAME_1), summary)); in getSummary_defaultCallsAndSms() local
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DWifiUtils.java34 final StringBuilder summary = new StringBuilder(); in buildLoggingSummary() local
39 summary.append(" f=" + info.getFrequency()); in buildLoggingSummary()
45 summary.append(" (" + config.getNetworkSelectionStatus().getNetworkStatusString()); in buildLoggingSummary()
52 summary.append(", "); in buildLoggingSummary()
53 if (hour > 0) summary.append(hour + "h "); in buildLoggingSummary()
54 summary.append(min + "m "); in buildLoggingSummary()
55 summary.append(sec + "s "); in buildLoggingSummary()
57 summary.append(")"); in buildLoggingSummary()
64 summary.append(" ") in buildLoggingSummary()
73 return summary.toString(); in buildLoggingSummary()
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DScreenLockPreferenceDetailsUtilsTest.java113 final String summary = prepareString("unlock_set_unlock_mode_off", "unlockModeOff"); in getSummary_unsecureAndDisabledPattern_shouldReturnUnlockModeOff() local
118 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_unsecureAndDisabledPattern_shouldReturnUnlockModeOff()
123 final String summary = in getSummary_unsecurePattern_shouldReturnUnlockModeNone() local
129 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_unsecurePattern_shouldReturnUnlockModeNone()
134 final String summary = in getSummary_passwordQualitySomething_shouldUnlockModePattern() local
141 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_passwordQualitySomething_shouldUnlockModePattern()
146 final String summary = in getSummary_passwordQualityNumeric_shouldUnlockModePin() local
153 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_passwordQualityNumeric_shouldUnlockModePin()
158 final String summary = prepareString("unlock_set_unlock_mode_pin", "unlockModePin"); in getSummary_passwordQualityNumericComplex_shouldUnlockModePin() local
164 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_passwordQualityNumericComplex_shouldUnlockModePin()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/binder/
DKeyguardQuickAffordanceSectionViewBinder.kt50 viewModel.summary in <lambda>()
52 .collectLatest { summary -> in <lambda>() method
55 viewModel = summary.description, in <lambda>()
58 if (summary.icon1 != null) { in <lambda>()
61 viewModel = summary.icon1, in <lambda>()
64 icon1.isVisible = summary.icon1 != null in <lambda>()
66 if (summary.icon2 != null) { in <lambda>()
69 viewModel = summary.icon2, in <lambda>()
72 icon2.isVisible = summary.icon2 != null in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DSummaryUpdaterTest.java50 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/
DAccessibilityDialogUtils.java286 final TextView summary = view.findViewById(R.id.summary); in setupShortcutWidgetWithTitleAndSummary() local
288 summary.setVisibility(View.GONE); in setupShortcutWidgetWithTitleAndSummary()
290 summary.setText(summaryText); in setupShortcutWidgetWithTitleAndSummary()
291 summary.setMovementMethod(LinkMovementMethod.getInstance()); in setupShortcutWidgetWithTitleAndSummary()
292 summary.setFocusable(false); in setupShortcutWidgetWithTitleAndSummary()
318 final TextView summary = dialogView.findViewById(R.id.summary); in initSoftwareShortcutForSUW() local
319 final int lineHeight = summary.getLineHeight(); in initSoftwareShortcutForSUW()
328 final TextView summary = dialogView.findViewById(R.id.summary); in initSoftwareShortcut() local
329 final int lineHeight = summary.getLineHeight(); in initSoftwareShortcut()
341 final CharSequence summary = context.getText( in initHardwareShortcut() local
[all …]
DItemInfoArrayAdapter.java55 final TextView summary = root.findViewById(R.id.summary); in getView() local
57 summary.setVisibility(View.VISIBLE); in getView()
58 summary.setText(item.mSummary); in getView()
60 summary.setVisibility(View.GONE); in getView()
84 public ItemInfo(@NonNull CharSequence title, @Nullable CharSequence summary, in ItemInfo() argument
87 mSummary = summary; in ItemInfo()
/packages/apps/ThemePicker/tests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModelTest.kt301 fun `summary - affordance selected in both bottom-start and bottom-end`() = in <lambda>()
305 val summary = collectLastValue(underTest.summary) in <lambda>() constant
315 assertThat(summary()) in <lambda>()
330 fun `summary - affordance selected only on bottom-start`() = in <lambda>()
334 val summary = collectLastValue(underTest.summary) in <lambda>() constant
339 assertThat(summary()) in <lambda>()
350 fun `summary - affordance selected only on bottom-end`() = in <lambda>()
354 val summary = collectLastValue(underTest.summary) in <lambda>() constant
362 assertThat(summary()) in <lambda>()
373 fun `summary - no affordances selected`() = in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionPreference.java250 PermissionSummary summary = mViewModel.getSummaryForIndividuallyControlledPermGroup(mGroup); in updateSummaryForIndividuallyControlledPermissionGroup() local
251 setSummary(getContext().getString(getResource(summary.getMsg()), summary.getRevokeCount())); in updateSummaryForIndividuallyControlledPermissionGroup()
260 PermissionSummary summary = mViewModel.getSummaryForPermGroupWithBackgroundPermission( in updateSummaryForPermissionGroupWithBackgroundPermission() local
262 setSummary(getResource(summary.getMsg())); in updateSummaryForPermissionGroupWithBackgroundPermission()
269 PermissionSummary summary = mViewModel.getSummaryForFixedByPolicyPermissionGroup(mState, in updateSummaryForFixedByPolicyPermissionGroup() local
271 if (summary.getMsg() == SummaryMessage.NO_SUMMARY) { in updateSummaryForFixedByPolicyPermissionGroup()
274 if (summary.isEnterprise()) { in updateSummaryForFixedByPolicyPermissionGroup()
275 switch (summary.getMsg()) { in updateSummaryForFixedByPolicyPermissionGroup()
280 getResource(summary.getMsg()))); in updateSummaryForFixedByPolicyPermissionGroup()
286 getResource(summary.getMsg()))); in updateSummaryForFixedByPolicyPermissionGroup()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DListWithEntrySummaryPreferenceTest.java73 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/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDeviceNamePreferenceControllerTest.java111 String summary = "summary"; in refreshUi_connected_setsCarConnectionSummaryAsSummary() local
113 when(mCachedDevice.getCarConnectionSummary()).thenReturn(summary); in refreshUi_connected_setsCarConnectionSummaryAsSummary()
117 assertThat(mPreference.getSummary()).isEqualTo(summary); in refreshUi_connected_setsCarConnectionSummaryAsSummary()
122 String summary = "summary"; in refreshUi_notConnectedsetsCarConnectionSummaryAsSummary() local
124 when(mCachedDevice.getCarConnectionSummary()).thenReturn(summary); in refreshUi_notConnectedsetsCarConnectionSummaryAsSummary()
128 assertThat(mPreference.getSummary()).isEqualTo(summary); in refreshUi_notConnectedsetsCarConnectionSummaryAsSummary()
143 String summary = "summary"; in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary() local
145 when(mCachedDevice.getCarConnectionSummary()).thenReturn(summary); in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary()
151 String expected = new StringJoiner(System.lineSeparator()).add(summary).add( in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary()
DBluetoothDevicePreferenceTest.java102 String summary = "summary"; in onAttached_notConnected_setsCarConnectionSummaryAsSummary() local
104 when(mCachedDevice.getCarConnectionSummary(anyBoolean(), anyBoolean())).thenReturn(summary); in onAttached_notConnected_setsCarConnectionSummaryAsSummary()
108 assertThat(mPreference.getSummary()).isEqualTo(summary); in onAttached_notConnected_setsCarConnectionSummaryAsSummary()
114 String summary = "summary"; in onAttached_connected_setsCarConnectionSummaryAsSummary() local
115 when(mCachedDevice.getCarConnectionSummary(anyBoolean(), anyBoolean())).thenReturn(summary); in onAttached_connected_setsCarConnectionSummaryAsSummary()
119 assertThat(mPreference.getSummary()).isEqualTo(summary); in onAttached_connected_setsCarConnectionSummaryAsSummary()
188 String summary = "summary"; in onDeviceAttributesChanged_refreshesUi() local
189 when(mCachedDevice.getCarConnectionSummary(anyBoolean(), anyBoolean())).thenReturn(summary); in onDeviceAttributesChanged_refreshesUi()
197 assertThat(mPreference.getSummary()).isEqualTo(summary); in onDeviceAttributesChanged_refreshesUi()
/packages/apps/Settings/src/com/android/settings/widget/
DFixedLineSummaryPreference.java55 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()
DSummaryUpdater.java42 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/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DDefaultAppInfo.java38 public final String summary; field in DefaultAppInfo
51 String summary, boolean enabled) { in DefaultAppInfo() argument
58 this.summary = summary; in DefaultAppInfo()
62 String summary, boolean enabled) { in DefaultAppInfo() argument
69 this.summary = summary; in DefaultAppInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java144 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary() local
146 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary()
157 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull() local
159 assertThat(summary).isNull(); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull()
170 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary() local
172 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary()
183 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary() local
185 assertThat(summary).isEqualTo(controllerSummary); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary()
192 final CharSequence summary = SliceBuilderUtils.getSubtitleText(mContext, controller, data); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString() local
194 assertThat(summary).isNull(); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeDurationPreferenceController.java51 String summary; in getSummary() local
54 summary = mContext.getString(R.string.zen_mode_duration_summary_always_prompt); in getSummary()
56 summary = mContext.getString(R.string.zen_mode_duration_summary_forever); in getSummary()
64 summary = msgFormat.format(msgArgs); in getSummary()
71 summary = msgFormat.format(msgArgs); in getSummary()
75 return summary; in getSummary()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyCenterStatus.java125 CharSequence summary = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
126 return new Builder(title, summary)
145 @NonNull CharSequence summary, in SafetyCenterStatus() argument
149 mSummary = summary; in SafetyCenterStatus()
235 public Builder(@NonNull CharSequence title, @NonNull CharSequence summary) { in Builder() argument
237 mSummary = requireNonNull(summary); in Builder()
257 public Builder setSummary(@NonNull CharSequence summary) { in setSummary() argument
258 mSummary = requireNonNull(summary); in setSummary()
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/
DTraceurAppTests.java263 UiObject2 summary = getCategoriesSummary(); in testCorrectCategoriesSummary() local
265 summary.getText().contains("Default")); in testCorrectCategoriesSummary()
271 summary = getCategoriesSummary(); in testCorrectCategoriesSummary()
273 summary.getText().contains("selected")); in testCorrectCategoriesSummary()
278 summary = getCategoriesSummary(); in testCorrectCategoriesSummary()
280 summary.getText().contains("Default")); in testCorrectCategoriesSummary()
294 UiObject2 summary = getCategoriesSummary(); in testRestoreDefaultCategories() local
296 summary.getText().contains("selected")); in testRestoreDefaultCategories()
301 summary = getCategoriesSummary(); in testRestoreDefaultCategories()
303 summary.getText().contains("Default")); in testRestoreDefaultCategories()
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DSettingsUtil.java80 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/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java97 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/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceController.java163 String summary = service.loadLabel(packageManager).toString(); in onServicesReloaded() local
168 if (title != null && !title.equals(summary)) { in onServicesReloaded()
170 pref.setSummary(summary); in onServicesReloaded()
172 pref.setTitle(summary); in onServicesReloaded()
178 return promptUserToConfirmChange(cn, summary, enable); in onServicesReloaded()
223 String summary = getContext().getResources().getString( in createConfirmGrantDialogFragment() local
227 .setMessage(summary) in createConfirmGrantDialogFragment()
233 String summary = getContext().getResources().getString( in createConfirmRevokeDialogFragment() local
236 .setMessage(summary) in createConfirmRevokeDialogFragment()

12345678910>>...14