Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java275 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"}; in testMeasure_shortChoices() local
278 ViewGroup expectedView = buildExpectedView(choices, 1); in testMeasure_shortChoices()
281 setSmartReplies(choices); in testMeasure_shortChoices()
292 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"}; in testLayout_shortChoices() local
295 ViewGroup expectedView = buildExpectedView(choices, 1); in testLayout_shortChoices()
300 setSmartReplies(choices); in testLayout_shortChoices()
312 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello\neveryone", "Bye"}; in testMeasure_choiceWithTwoLines() local
315 ViewGroup expectedView = buildExpectedView(choices, 2); in testMeasure_choiceWithTwoLines()
318 setSmartReplies(choices); in testMeasure_choiceWithTwoLines()
329 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello\neveryone", "Bye"}; in testLayout_choiceWithTwoLines() local
[all …]
DInflatedSmartRepliesTest.java136 assertThat(repliesAndActions.smartReplies.choices).isEqualTo(smartReplies); in chooseSmartRepliesAndActions_appGeneratedSmartReplies()
151 assertThat(repliesAndActions.smartReplies.choices).isEqualTo(smartReplies); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
168 assertThat(repliesAndActions.smartReplies.choices).isEqualTo( in chooseSmartRepliesAndActions_sysGeneratedSmartReplies()
223 assertThat(repliesAndActions.smartReplies.choices).isEqualTo(appGenSmartReplies); in chooseSmartRepliesAndActions_appGenPreferredOverSysGen()
264 assertThat(repliesAndActions.smartReplies.choices).isEqualTo( in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartRepliesUnaffected()
322 assertThat(repliesAndActions.smartReplies.choices).isEqualTo( 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.java5292 CharSequence[] choices = r.getChoices(); in hasValidRemoteInput() local
5293 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/ml/nn/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.h320 inline const T& getRandomChoice(const std::vector<T>& choices) { in getRandomChoice() argument
321 NN_FUZZER_CHECK(!choices.empty()) << "Empty choices!"; in getRandomChoice()
322 std::uniform_int_distribution<size_t> dis(0, choices.size() - 1); in getRandomChoice()
324 return choices[i]; in getRandomChoice()
DRandomVariable.h113 explicit RandomVariableBase(const std::vector<int>& choices);
148 explicit RandomVariable(const std::vector<int>& choices);
DRandomVariable.cpp49 RandomVariableBase::RandomVariableBase(const std::vector<int>& choices) in RandomVariableBase() argument
52 range(choices), in RandomVariableBase()
121 RandomVariable::RandomVariable(const std::vector<int>& choices) in RandomVariable() argument
122 : mVar(new RandomVariableBase(choices)) { in RandomVariable()
/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/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java223 if (smartReplies.choices != null) { in inflateRepliesFromRemoteInput()
224 for (int i = 0; i < smartReplies.choices.length; ++i) { in inflateRepliesFromRemoteInput()
271 CharSequence choice = smartReplies.choices[replyIndex]; in inflateReplyButton()
952 public final CharSequence[] choices; field in SmartReplyView.SmartReplies
955 public SmartReplies(CharSequence[] choices, RemoteInput remoteInput, in SmartReplies() argument
957 this.choices = choices; in SmartReplies()
DInflatedSmartReplies.java293 return smartReplies == null ? new CharSequence[0] : smartReplies.choices; in getSmartReplies()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java196 private RemoteInput createRemoteInput(String resultKey, String label, CharSequence[] choices) { in createRemoteInput() argument
197 return new RemoteInput.Builder(resultKey).setLabel(label).setChoices(choices).build(); in createRemoteInput()
/frameworks/base/startop/scripts/app_startup/
Dapp_startup_runner.py67 … action='append', dest='readaheads', help='which readahead mode to use', choices=('warm', 'cold', …
72 …lter to use. if omitted it does not enforce the app\'s compiler filter', choices=('speed', 'speed-…
Dquery_compiler_filter.py57 …n set to select. defaults to the first one available if not specified.', choices=('arm64', 'arm', …
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenerServiceTest.java358 ArrayList<CharSequence> choices = new ArrayList<>(); in getSmartReplies() local
360 choices.add("choice_" + key + "_" + i); in getSmartReplies()
362 return choices; in getSmartReplies()
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DOperationSignatureUtils.h400 const std::vector<CppType<opType>::type> choices = {__VA_ARGS__}; \
401 PARAMETER_FILL_BUFFER_HELPER(opType, 1, getRandomChoice, choices); \
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationContentView.java1184 mCurrentSmartRepliesAndActions.smartReplies.choices.length));
1298 ? 0 : smartRepliesAndActions.smartReplies.choices.length;
/frameworks/base/proto/src/
Dwifi.proto2576 // Counts occurrences of the number of network choices there were when experiment1 makes the
2578 // The keys are the number of network choices, and the values are the number of occurrences of
2579 // this number of network choices when exp1 and exp2 make the same network selection.
2582 // Counts occurrences of the number of network choices there were when experiment1 makes the
2584 // The keys are the number of network choices, and the values are the number of occurrences of
2585 // this number of network choices when exp1 and exp2 make different network selections.
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt46297 field public java.lang.String[] choices;
/frameworks/base/non-updatable-api/
Dcurrent.txt67572 field public String[] choices;
/frameworks/base/api/
Dcurrent.txt67716 field public String[] choices;