Home
last modified time | relevance | path

Searched refs:IntentFlag (Results 1 – 3 of 3) sorted by relevance

/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DIntentFlags.java29 enum IntentFlag { enum
59 private Set<IntentFlag> mComplements = new HashSet<>();
60 private Set<IntentFlag> mConflicts = new HashSet<>();
61 private Set<IntentFlag> mRequests = new HashSet<>();
63 IntentFlag(String name, Set<IntentFlag> complements, Set<IntentFlag> conflicts, in IntentFlag() method in IntentFlag
64 Set<IntentFlag> requests) { in IntentFlag()
74 public Set<IntentFlag> getComplements() { in getComplements()
81 public Set<IntentFlag> getConflicts() { in getConflicts()
88 public Set<IntentFlag> getRequests() { in getRequests()
99 protected static Set<IntentFlag> setOf(IntentFlag... flags) { in setOf()
DIntentBuilderView.java186 IntentFlag flag = FlagUtils.getFlagForString(item); in fillCheckBoxLayout()
235 IntentFlag flag = (IntentFlag) compoundButton.getTag(TAG_FLAG); in onCheckedChanged()
263 private void suggestFlags(IntentFlag flag) { in suggestFlags()
265 List<String> suggestions = flag.getComplements().stream().map(IntentFlag::getName) in suggestFlags()
276 IntentFlag flag = (IntentFlag) box.getTag(TAG_FLAG); in hasSuggestion()
341 public void selectFlags(Collection<IntentFlag> flags) { in selectFlags()
342 selectFlags(flags.stream().map(IntentFlag::getName).collect(Collectors.toList())); in selectFlags()
354 private Collection<IntentFlag> getCheckedFlags() { in getCheckedFlags()
355 return getChecked().stream().map(checkBox -> (IntentFlag) checkBox.getTag(TAG_FLAG)) in getCheckedFlags()
359 private void disableFlags(Collection<IntentFlag> flags) { in disableFlags()
[all …]
DFlagUtils.java82 public static List<IntentFlag> getAllIntentFlags() {
83 return Arrays.asList(IntentFlag.values());
168 public static boolean hasIntentFlag(Intent intent, IntentFlag flag) {
348 public static IntentFlag getFlagForString(String stringFlag) {