Lines Matching refs:structure

593  * themselves rather than by putting them in a separate structure.
7788 * Called when assist structure is being retrieved from a view as part of
7790 * @param structure Fill in with structured view data. The default implementation
7793 public void onProvideStructure(ViewStructure structure) {
7794 onProvideStructureForAssistOrAutofill(structure, false, 0);
7800 * <p>The structure should contain at least the following properties:
7808 * <p>It's also recommended to set the following properties - the more properties the structure
7810 * using the structure:
7849 * {@link ViewGroup#isImportantForAutofill()} predecessor view included in the structure.
7861 * @param structure fill in with structured view data for autofill purposes.
7866 public void onProvideAutofillStructure(ViewStructure structure, @AutofillFlags int flags) {
7867 onProvideStructureForAssistOrAutofill(structure, true, flags);
7870 private void onProvideStructureForAssistOrAutofill(ViewStructure structure,
7883 structure.setId(id, pkg, type, entry);
7885 structure.setId(id, null, null, null);
7893 structure.setAutofillType(autofillType);
7894 structure.setAutofillHints(getAutofillHints());
7895 structure.setAutofillValue(getAutofillValue());
7897 structure.setImportantForAutofill(getImportantForAutofill());
7923 structure.setDimens(ignoredParentLeft + mLeft, ignoredParentTop + mTop, mScrollX, mScrollY,
7927 structure.setTransformation(getMatrix());
7929 structure.setElevation(getZ());
7931 structure.setVisibility(getVisibility());
7932 structure.setEnabled(isEnabled());
7934 structure.setClickable(true);
7937 structure.setFocusable(true);
7940 structure.setFocused(true);
7943 structure.setAccessibilityFocused(true);
7946 structure.setSelected(true);
7949 structure.setActivated(true);
7952 structure.setLongClickable(true);
7955 structure.setCheckable(true);
7957 structure.setChecked(true);
7961 structure.setOpaque(true);
7964 structure.setContextClickable(true);
7966 structure.setClassName(getAccessibilityClassName().toString());
7967 structure.setContentDescription(getContentDescription());
7971 * Called when assist structure is being retrieved from a view as part of
7973 * generate additional virtual structure under this view. The defaullt implementation
7978 public void onProvideVirtualStructure(ViewStructure structure) {
7979 onProvideVirtualStructureCompat(structure, false);
7985 * @param structure The structure to populate.
7986 * @param forAutofill Whether the structure is needed for autofill.
7988 private void onProvideVirtualStructureCompat(ViewStructure structure, boolean forAutofill) {
7996 structure.setChildCount(1);
7997 final ViewStructure root = structure.newChild(0);
8007 * <p>This method should be used when the view manages a virtual structure under this view. For
8015 * identifying the children in the virtual structure.
8021 * <li>Set the autofill properties of the child structure as defined by
8039 * <li>Call {@link AutofillManager#commit()} when the autofill context of the view structure
8042 * <li>Call {@link AutofillManager#cancel()} when the autofill context of the view structure
8050 * structure.
8062 * @param structure fill in with virtual children data for autofill purposes.
8067 public void onProvideAutofillVirtualStructure(ViewStructure structure, int flags) {
8069 onProvideVirtualStructureCompat(structure, true);
8496 private void populateVirtualStructure(ViewStructure structure,
8499 structure.setId(AccessibilityNodeInfo.getVirtualDescendantId(info.getSourceNodeId()),
8501 Rect rect = structure.getTempRect();
8503 structure.setDimens(rect.left, rect.top, 0, 0, rect.width(), rect.height());
8504 structure.setVisibility(VISIBLE);
8505 structure.setEnabled(info.isEnabled());
8507 structure.setClickable(true);
8510 structure.setFocusable(true);
8513 structure.setFocused(true);
8516 structure.setAccessibilityFocused(true);
8519 structure.setSelected(true);
8522 structure.setLongClickable(true);
8525 structure.setCheckable(true);
8527 structure.setChecked(true);
8531 structure.setContextClickable(true);
8534 structure.setAutofillId(new AutofillId(getAutofillId(),
8538 structure.setClassName(cname != null ? cname.toString() : null);
8539 structure.setContentDescription(info.getContentDescription());
8543 structure.setMaxTextLength(maxTextLength);
8545 structure.setHint(info.getHintText());
8550 structure.setText(text, info.getTextSelectionStart(), info.getTextSelectionEnd());
8554 structure.setDataIsSensitive(true);
8556 structure.setAutofillType(AUTOFILL_TYPE_TEXT);
8557 structure.setAutofillValue(AutofillValue.forText(text));
8563 structure.setInputType(inputType);
8565 structure.setDataIsSensitive(false);
8570 structure.setChildCount(NCHILDREN);
8579 ViewStructure child = structure.newChild(i);
8591 public void dispatchProvideStructure(ViewStructure structure) {
8592 dispatchProvideStructureForAssistOrAutofill(structure, false, 0);
8597 * when an Assist structure is being created as part of an autofill request.
8601 * <li>Sets the {@link AutofillId} in the structure.
8615 * {@code super.dispatchProvideAutofillStructure(structure, flags)} or explicitly
8616 * set the {@link AutofillId} in the structure (for example, by calling
8617 * {@code structure.setAutofillId(getAutofillId())}).
8619 * set, all views in the structure should be considered important for autofill,
8624 * structure - skipping non-important views optimizes the overall autofill performance.
8627 * @param structure fill in with structured view data for autofill purposes.
8632 public void dispatchProvideAutofillStructure(@NonNull ViewStructure structure,
8634 dispatchProvideStructureForAssistOrAutofill(structure, true, flags);
8637 private void dispatchProvideStructureForAssistOrAutofill(ViewStructure structure,
8640 structure.setAutofillId(getAutofillId());
8641 onProvideAutofillStructure(structure, flags);
8642 onProvideAutofillVirtualStructure(structure, flags);
8644 onProvideStructure(structure);
8645 onProvideVirtualStructure(structure);
8647 structure.setClassName(getAccessibilityClassName().toString());
8648 structure.setAssistBlocked(true);
22861 * resorting to another data structure.
22892 * without resorting to another data structure.