Searched defs:choices (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/utils/
H A DListUtils.java77 * Return the first item from {@code choices} that is contained in the {@code list}.
79 * <p>Choices with an index closer to 0 get higher priority. If none of the {@code choices}
82 * @param list a list of objects which may or may not contain one or more of the choices
83 * @param choices an array of objects which should be used to select an item from
85 * @return the first item from {@code choices} contained in {@code list}, otherwise {@code null}
87 public static <T> T listSelectFirstFrom(List<T> list, T[] choices) { argument
92 for (T choice : choices) {
/frameworks/base/tools/preload2/src/com/android/preload/ui/
H A DIUI.java39 <T> T showChoiceDialog(String title, String message, T[] choices); argument
H A DSwingUI.java206 public <T> T showChoiceDialog(String title, String message, T[] choices) { argument
218 choices,
219 choices[0]);
H A DSequenceUI.java189 public <T> T showChoiceDialog(String title, String message, T[] choices) { argument
193 for (T t : choices) {
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
H A DCameraTooActivity.java83 * Given {@code choices} of {@code Size}s supported by a camera, chooses the smallest one whose
85 * @param choices The list of sizes that the camera supports for the intended output class
90 static Size chooseBigEnoughSize(Size[] choices, int width, int height) { argument
93 for (Size option : choices) {
104 return choices[0];
/frameworks/base/core/java/android/app/
H A DRemoteInput.java93 /** The user selected one of the choices from {@link #getChoices}. */
109 private RemoteInput(String resultKey, CharSequence label, CharSequence[] choices, argument
113 this.mChoices = choices;
135 * Get possible input choices. This can be {@code null} if there are no choices to present.
164 * choices in {@link #getChoices}. An {@link IllegalArgumentException} is thrown
214 * Specifies choices available to the user to satisfy this input.
216 * <p>Note: Starting in Android P, these choices will always be shown on phones if the app's
217 * target SDK is >= P. However, these choices may also be rendered on other types of devices
220 * @param choices a
226 setChoices(@ullable CharSequence[] choices) argument
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DSmartReplyViewTest.java195 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"};
197 // All choices should be displayed as SINGLE-line smart reply buttons.
198 ViewGroup expectedView = buildExpectedView(choices, 1);
201 setRepliesFromRemoteInput(choices);
212 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"};
214 // All choices should be displayed as SINGLE-line smart reply buttons.
215 ViewGroup expectedView = buildExpectedView(choices, 1);
220 setRepliesFromRemoteInput(choices);
232 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello\neveryone", "Bye"};
234 // All choices shoul
374 setRepliesFromRemoteInput(CharSequence[] choices) argument
382 buildExpectedView(CharSequence[] choices, int lineCount) argument
[all...]
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DRemoteInput.java57 RemoteInput(String resultKey, CharSequence label, CharSequence[] choices, argument
61 this.mChoices = choices;
83 * Get possible input choices. This can be {@code null} if there are no choices to present.
108 * choices in {@link #getChoices}. An {@link IllegalArgumentException} is thrown
155 * Specifies choices available to the user to satisfy this input.
156 * @param choices an array of pre-defined choices for users input.
161 public Builder setChoices(CharSequence[] choices) { argument
162 mChoices = choices;
[all...]

Completed in 160 milliseconds