json.put("focused", wrap(node.isFocused())); json.put("height", wrap(node.getHeight())); json.put("hint", wrap(node.getHint()));
json.put("focused", wrap(node.isFocused())); json.put("height", wrap(node.getHeight())); json.put("hint", wrap(node.getHint()));
.append("focused: ").append(node.isFocused()) .append("\tvisibility").append(node.getVisibility()) .append("\tchecked: ").append(node.isChecked())
.append("focused: ").append(node.isFocused()) .append("\tvisibility").append(node.getVisibility()) .append("\tchecked: ").append(node.isChecked())
private void parseNode(AssistStructure.ViewNode root, List<String> allHints, MutableInt autofillSaveType, List<AutofillId> autofillIds, List<AutofillId> focusedAutofillIds) { String[] hints = root.getAutofillHints(); if (hints != null) { for (String hint : hints) { FieldTypeWithHeuristics fieldTypeWithHints = mFieldTypesByAutofillHint.get(hint); if (fieldTypeWithHints != null && fieldTypeWithHints.fieldType != null) { allHints.add(hint); autofillSaveType.value |= fieldTypeWithHints.fieldType.getSaveInfo(); autofillIds.add(root.getAutofillId()); } } } if (root.isFocused()) { focusedAutofillIds.add(root.getAutofillId()); } } }
private boolean bindDatasetToFocusedNode(FilledAutofillField field, FieldType fieldType, Dataset.Builder builder) { MutableBoolean setValueAtLeastOnce = new MutableBoolean(false); mClientParser.parse((node) -> { if (node.isFocused() && node.getAutofillId() != null) { bindValueToNode(node, field, builder, setValueAtLeastOnce); } }); return setValueAtLeastOnce.value; }