Home
last modified time | relevance | path

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

12

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothActionFragment.java63 int summaryResId, int[] choices, String name, int defaultChoice) { in prepareArgs() argument
68 args.putIntArray(ARG_CHOICES, choices); in prepareArgs()
84 int[] choices = getChoices(); in onCreateActions() local
86 for (int choice : choices) { in onCreateActions()
94 if (choices.length == 0) { in onCreateActions()
108 final int[] choices = getChoices(); in onGuidedActionClicked() local
115 for (int choice : choices) { in onGuidedActionClicked()
188 int[] choices = new int[0]; in getChoices() local
192 choices = tmp; in getChoices()
197 return choices; in getChoices()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoActionPopup.java76 final ArrayList<ChoiceListItem> choices = new ArrayList<ChoiceListItem>(4); in getChoices() local
79 choices.add(new ChoiceListItem(ChoiceListItem.ID_REMOVE, in getChoices()
90 choices.add(new ChoiceListItem(ChoiceListItem.ID_TAKE_PHOTO, takePhotoString)); in getChoices()
92 choices.add(new ChoiceListItem(ChoiceListItem.ID_PICK_PHOTO, pickPhotoString)); in getChoices()
94 return choices; in getChoices()
99 final ArrayList<ChoiceListItem> choices = getChoices(context, mode); in createPopupMenu() local
102 R.layout.select_dialog_item, choices); in createPopupMenu()
108 final ChoiceListItem choice = choices.get(position); in createPopupMenu()
DPhotoSourceDialogFragment.java67 final ArrayList<ChoiceListItem> choices = in onCreateDialog() local
71 final CharSequence[] items = new CharSequence[choices.size()]; in onCreateDialog()
73 items[i] = choices.get(i).toString(); in onCreateDialog()
79 final ChoiceListItem choice = choices.get(which); in onCreateDialog()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DScanResultFragment.java103 String[] choices; in onCreateActions() local
106 choices = getResources().getStringArray(R.array.ut_result_found_choices); in onCreateActions()
109 choices = getResources().getStringArray(R.array.ut_result_not_found_choices); in onCreateActions()
112 for (int i = 0; i < choices.length; ++i) { in onCreateActions()
117 .title(choices[i]) in onCreateActions()
123 .title(choices[i]) in onCreateActions()
DWelcomeFragment.java106 String[] choices = in onCreateActions() local
112 for (int i = 0; i < choices.length - 1; ++i) { in onCreateActions()
114 new GuidedAction.Builder(getActivity()).id(i).title(choices[i]).build()); in onCreateActions()
119 .title(choices[choices.length - 1]) in onCreateActions()
DConnectionTypeFragment.java81 String[] choices = getResources().getStringArray(R.array.ut_connection_choices); in onCreateActions() local
82 int length = choices.length - 1; in onCreateActions()
88 .title(choices[i]) in onCreateActions()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollPreviewFragment.java287 private Size chooseOptimalSize(Size[] choices) { in chooseOptimalSize() argument
288 for (int i = 0; i < choices.length; i++) { in chooseOptimalSize()
289 if (choices[i].getHeight() == MAX_PREVIEW_HEIGHT in chooseOptimalSize()
290 && choices[i].getWidth() == MAX_PREVIEW_WIDTH) { in chooseOptimalSize()
291 return choices[i]; in chooseOptimalSize()
295 return choices[0]; in chooseOptimalSize()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.h324 inline const T& getRandomChoice(const std::vector<T>& choices) { in getRandomChoice() argument
325 NN_FUZZER_CHECK(!choices.empty()) << "Empty choices!"; in getRandomChoice()
326 std::uniform_int_distribution<size_t> dis(0, choices.size() - 1); in getRandomChoice()
328 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()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingCallAudioDialogFragment.java93 String[] choices = in onCreateDialog() local
99 choices, in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java434 private void loadCertificates(Spinner spinner, Collection<String> choices, int firstId, in loadCertificates() argument
440 if (choices == null || choices.size() == 0) { in loadCertificates()
443 myChoices = new String[choices.size() + 1]; in loadCertificates()
446 for (String c : choices) { in loadCertificates()
/packages/apps/Settings/protos/
Dnetwork_mode_choices.proto81 required int32 choices = 2; field
128 // referenced from "choices" field.
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/
DOperationSignatureUtils.h410 const std::vector<CppType<opType>::type> choices = {__VA_ARGS__}; \
411 PARAMETER_FILL_BUFFER_HELPER(opType, 1, getRandomChoice, choices); \
/packages/modules/SdkExtensions/gen_sdk/
Dgen_sdk.py51 choices=['print_binary', 'new_sdk', 'validate'],
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java317 public VerticalListAdapter(ActionListener actionListener, List<ListItem> choices) { in VerticalListAdapter() argument
338 mItems.addAll(choices.toArray(new ListItem[0]), false); in VerticalListAdapter()
/packages/services/Car/tools/cpu_perf/
Dcpu_perf.py70 choices=CPU_FREQ_GOVERNOR,
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java1554 Collection<String> choices, in loadCertificates() argument
1569 if (choices != null && choices.size() != 0) { in loadCertificates()
1570 certs.addAll(choices.stream() in loadCertificates()
DWifiConfigController2.java1586 Collection<String> choices, in loadCertificates() argument
1605 if (choices != null && choices.size() != 0) { in loadCertificates()
1606 certs.addAll(choices.stream() in loadCertificates()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java908 final String[] choices = context.getResources().getStringArray( in addWearableVoiceReplyAction() local
912 setChoices(choices) in addWearableVoiceReplyAction()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DPreprocessingManagerTest.java1432 ArrayList<CharSequence> choices = new ArrayList<>(); in getSmartReplies() local
1434 choices.add("choice_" + key + "_" + i); in getSmartReplies()
1436 return choices; in getSmartReplies()
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto3348 // Counts occurrences of the number of network choices there were when experiment1 makes the
3350 // The keys are the number of network choices, and the values are the number of occurrences of
3351 // this number of network choices when exp1 and exp2 make the same network selection.
3354 // Counts occurrences of the number of network choices there were when experiment1 makes the
3356 // The keys are the number of network choices, and the values are the number of occurrences of
3357 // this number of network choices when exp1 and exp2 make different network selections.
/packages/modules/common/build/
Dmainline_modules_sdks.py1693 choices=[br.name for br in ALL_BUILD_RELEASES],
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/classifier/
Dprecomputed_test_app_list.csv6658 com.pixelberrystudios.choices 10229,10240
/packages/modules/AdServices/adservices/apk/assets/classifier/
Dprecomputed_app_list.csv6658 com.pixelberrystudios.choices 10229,10240

12