Home
last modified time | relevance | path

Searched refs:choices (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java330 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"}; in testMeasure_shortChoices() local
333 ViewGroup expectedView = buildExpectedView(choices, 1); in testMeasure_shortChoices()
336 setSmartReplies(choices); in testMeasure_shortChoices()
347 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"}; in testLayout_shortChoices() local
350 ViewGroup expectedView = buildExpectedView(choices, 1); in testLayout_shortChoices()
355 setSmartReplies(choices); in testLayout_shortChoices()
367 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello\neveryone", "Bye"}; in testMeasure_choiceWithTwoLines() local
370 ViewGroup expectedView = buildExpectedView(choices, 2); in testMeasure_choiceWithTwoLines()
373 setSmartReplies(choices); in testMeasure_choiceWithTwoLines()
384 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello\neveryone", "Bye"}; in testLayout_choiceWithTwoLines() local
[all …]
DInflatedSmartRepliesTest.java155 assertThat(smartReplyState.getSmartReplies().choices) in chooseSmartRepliesAndActions_appGeneratedSmartReplies()
173 assertThat(smartReplyState.getSmartReplies().choices) in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
196 assertThat(smartReplyState.getSmartReplies().choices) in chooseSmartRepliesAndActions_sysGeneratedSmartReplies()
295 assertThat(smartReplyState.getSmartReplies().choices) in chooseSmartRepliesAndActions_appGenPreferredOverSysGen()
344 assertThat(smartReplyState.getSmartReplies().choices) in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartRepliesUnaffected()
407 assertThat(smartReplyState.getSmartReplies().choices) in chooseSmartRepliesAndActions_screenPinningModeEnabled_suggestionsUnaffected()
/frameworks/base/core/java/android/app/
DRemoteInput.java126 private RemoteInput(String resultKey, CharSequence label, CharSequence[] choices, in RemoteInput() argument
131 this.mChoices = choices; in RemoteInput()
261 public Builder setChoices(@Nullable CharSequence[] choices) { in setChoices() argument
262 if (choices == null) { in setChoices()
265 mChoices = new CharSequence[choices.length]; in setChoices()
266 for (int i = 0; i < choices.length; i++) { in setChoices()
267 mChoices[i] = Notification.safeCharSequence(choices[i]); in setChoices()
DNotification.java6431 CharSequence[] choices = r.getChoices(); in hasValidRemoteInput() local
6432 if (r.getAllowFreeFormInput() || (choices != null && choices.length != 0)) { in hasValidRemoteInput()
/frameworks/base/core/java/android/hardware/camera2/utils/
DListUtils.java87 public static <T> T listSelectFirstFrom(List<T> list, T[] choices) { in listSelectFirstFrom() argument
92 for (T choice : choices) { in listSelectFirstFrom()
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMainActivity.java391 private static Size chooseVideoSize(Size[] choices) { in chooseVideoSize() argument
392 for (Size size : choices) { in chooseVideoSize()
398 return choices[choices.length - 1]; in chooseVideoSize()
401 private static Size chooseOptimalSize(Size[] choices, int width, int height, Size aspectRatio) { in chooseOptimalSize() argument
405 for (Size option : choices) { in chooseOptimalSize()
417 return choices[0]; in chooseOptimalSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DNotifUiAdjustment.kt91 (areDifferent(it.first.choices, it.second.choices)) in areDifferent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DInflatedSmartReplyState.kt32 get() = smartReplies?.choices ?: emptyList()
DSmartReplyView.java821 public final List<CharSequence> choices; field in SmartReplyView.SmartReplies
824 public SmartReplies(@NonNull List<CharSequence> choices, @NonNull RemoteInput remoteInput, in SmartReplies() argument
826 this.choices = choices; in SmartReplies()
DSmartReplyStateInflater.kt149 smartReplies.choices.asSequence().mapIndexed { index, choice -> in inflateSmartReplyState()
210 if (pair.first.choices?.isNotEmpty() == true) in inflateSmartReplyState()
212 pair.first.choices.asList(), in inflateSmartReplyState()
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java90 static Size chooseBigEnoughSize(Size[] choices, int width, int height) { in chooseBigEnoughSize() argument
93 for (Size option : choices) { in chooseBigEnoughSize()
104 return choices[0]; in chooseBigEnoughSize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java238 private RemoteInput createRemoteInput(String resultKey, String label, CharSequence[] choices) { in createRemoteInput() argument
239 return new RemoteInput.Builder(resultKey).setLabel(label).setChoices(choices).build(); in createRemoteInput()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenerServiceTest.java344 ArrayList<CharSequence> choices = new ArrayList<>(); in getSmartReplies() local
346 choices.add("choice_" + key + "_" + i); in getSmartReplies()
348 return choices; in getSmartReplies()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationRankingUpdateTest.java272 ArrayList<CharSequence> choices = new ArrayList<>(); in getSmartReplies() local
274 choices.add("choice_" + key + "_" + i); in getSmartReplies()
276 return choices; in getSmartReplies()
/frameworks/av/media/codec2/hal/services/
DAndroid.bp85 // If a specific architecture is targeted, multiple choices are not needed.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationContentView.java1620 int numSmartReplies = smartReplies == null ? 0 : smartReplies.choices.size();
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt46297 field public java.lang.String[] choices;