Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java279 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"}; in testMeasure_shortChoices() local
282 ViewGroup expectedView = buildExpectedView(choices, 1); in testMeasure_shortChoices()
285 setSmartReplies(choices); in testMeasure_shortChoices()
296 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello", "Bye"}; in testLayout_shortChoices() local
299 ViewGroup expectedView = buildExpectedView(choices, 1); in testLayout_shortChoices()
304 setSmartReplies(choices); in testLayout_shortChoices()
316 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello\neveryone", "Bye"}; in testMeasure_choiceWithTwoLines() local
319 ViewGroup expectedView = buildExpectedView(choices, 2); in testMeasure_choiceWithTwoLines()
322 setSmartReplies(choices); in testMeasure_choiceWithTwoLines()
333 final CharSequence[] choices = new CharSequence[]{"Hi", "Hello\neveryone", "Bye"}; in testLayout_choiceWithTwoLines() local
[all …]
DInflatedSmartRepliesTest.java140 assertThat(repliesAndActions.smartReplies.choices).isEqualTo(Arrays.asList(smartReplies)); in chooseSmartRepliesAndActions_appGeneratedSmartReplies()
155 assertThat(repliesAndActions.smartReplies.choices).isEqualTo(Arrays.asList(smartReplies)); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
174 assertThat(repliesAndActions.smartReplies.choices).isEqualTo( in chooseSmartRepliesAndActions_sysGeneratedSmartReplies()
231 assertThat(repliesAndActions.smartReplies.choices) in chooseSmartRepliesAndActions_appGenPreferredOverSysGen()
275 assertThat(repliesAndActions.smartReplies.choices).isEqualTo( in chooseSmartRepliesAndActions_lockTaskKioskModeEnabled_smartRepliesUnaffected()
335 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.java5423 CharSequence[] choices = r.getChoices(); in hasValidRemoteInput() local
5424 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.h304 inline const T& getRandomChoice(const std::vector<T>& choices) { in getRandomChoice() argument
305 NN_FUZZER_CHECK(!choices.empty()) << "Empty choices!"; in getRandomChoice()
306 std::uniform_int_distribution<size_t> dis(0, choices.size() - 1); in getRandomChoice()
308 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/startop/scripts/app_startup/
Dapp_startup_runner.py104 choices=('warm', 'cold', 'mlock', 'fadvise'),
113 choices=('speed', 'speed-profile', 'quicken'))
138 type=CompilerType, choices=list(CompilerType),
Drun_app_with_prefetch.py205 choices=('warm', 'cold', 'mlock', 'fadvise'))
Dquery_compiler_filter.py59 …n set to select. defaults to the first one available if not specified.', choices=('arm64', 'arm', …
/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.size(); ++i) { in inflateRepliesFromRemoteInput()
271 CharSequence choice = smartReplies.choices.get(replyIndex); in inflateReplyButton()
952 public final List<CharSequence> choices; field in SmartReplyView.SmartReplies
955 public SmartReplies(List<CharSequence> choices, RemoteInput remoteInput, in SmartReplies() argument
957 this.choices = choices; in SmartReplies()
DInflatedSmartReplies.java293 return smartReplies == null ? Collections.emptyList() : smartReplies.choices; in getSmartReplies()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java221 private RemoteInput createRemoteInput(String resultKey, String label, CharSequence[] choices) { in createRemoteInput() argument
222 return new RemoteInput.Builder(resultKey).setLabel(label).setChoices(choices).build(); in createRemoteInput()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenerServiceTest.java368 ArrayList<CharSequence> choices = new ArrayList<>(); in getSmartReplies() local
370 choices.add("choice_" + key + "_" + i); in getSmartReplies()
372 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/av/media/codec2/hidl/services/
DAndroid.bp68 // If a specific architecture is targeted, multiple choices are not needed.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationContentView.java1234 mCurrentSmartRepliesAndActions.smartReplies.choices.size()));
1410 ? 0 : smartRepliesAndActions.smartReplies.choices.size(); in applySmartReplyView()
/frameworks/opt/net/wifi/service/proto/src/
Dmetrics.proto2895 // Counts occurrences of the number of network choices there were when experiment1 makes the
2897 // The keys are the number of network choices, and the values are the number of occurrences of
2898 // this number of network choices when exp1 and exp2 make the same network selection.
2901 // Counts occurrences of the number of network choices there were when experiment1 makes the
2903 // The keys are the number of network choices, and the values are the number of occurrences of
2904 // this number of network choices when exp1 and exp2 make different network selections.
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt46297 field public java.lang.String[] choices;
/frameworks/base/api/
Dcurrent.txt70185 field public String[] choices;