/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/ |
ClientParser.java | 27 import static android.app.assist.AssistStructure.ViewNode; 45 * Traverses through the {@link AssistStructure} and does something at each {@link ViewNode}. 47 * @param processor contains action to be performed on each {@link ViewNode}. 53 AssistStructure.ViewNode viewNode = structure.getWindowNodeAt(i).getRootViewNode(); 54 traverseRoot(viewNode, processor); 59 private void traverseRoot(AssistStructure.ViewNode viewNode, NodeProcessor processor) { 60 processor.processNode(viewNode); 61 int childrenSize = viewNode.getChildCount() [all...] |
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/ |
ClientParser.java | 27 import static android.app.assist.AssistStructure.ViewNode; 45 * Traverses through the {@link AssistStructure} and does something at each {@link ViewNode}. 47 * @param processor contains action to be performed on each {@link ViewNode}. 53 AssistStructure.ViewNode viewNode = structure.getWindowNodeAt(i).getRootViewNode(); 54 traverseRoot(viewNode, processor); 59 private void traverseRoot(AssistStructure.ViewNode viewNode, NodeProcessor processor) { 60 processor.processNode(viewNode); 61 int childrenSize = viewNode.getChildCount() [all...] |
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
FatActivityTest.java | 48 import android.app.assist.AssistStructure.ViewNode; 59 private ViewNode mRoot; 112 final ViewNode inputContainer = assertNodeExists(ID_INPUT_CONTAINER, 115 final ViewNode input = inputContainer.getChildAt(0); 192 final ViewNode inputContainer = assertNodeExists(ID_INPUT_CONTAINER, 195 final ViewNode input = inputContainer.getChildAt(0); 222 private ViewNode assertNodeExists(String resourceId, int expectedImportantForAutofill) { 224 final ViewNode node = findNodeByResourceId(mRoot, resourceId); 229 private ViewNode assertNodeWithTextExists(String text, int expectedImportantForAutofill) { 230 final ViewNode node = findNodeByText(mRoot, text) [all...] |
DuplicateIdActivityTest.java | 30 import android.app.assist.AssistStructure.ViewNode; 73 private AssistStructure.ViewNode[] findViews(InstrumentedAutoFillService.FillRequest request, 78 AssistStructure.ViewNode rootNode = windowNode.getRootViewNode(); 81 final ViewNode[] viewNodes = new AssistStructure.ViewNode[expectedCount]; 107 final AssistStructure.ViewNode[] views1 = findViews(request1, 2); 108 final AssistStructure.ViewNode view1 = views1[0]; 109 final AssistStructure.ViewNode view2 = views1[1]; 145 final AssistStructure.ViewNode[] views2 = findViews(request3, 3); 146 final AssistStructure.ViewNode recreatedView1 = views2[0] [all...] |
WebViewActivityTest.java | 26 import android.app.assist.AssistStructure.ViewNode; 140 final ViewNode webViewNode = 146 final ViewNode usernameNode = 156 final ViewNode passwordNode = 210 final ViewNode usernameNode = Helper.findNodeByHtmlName(saveRequest.structure, 212 final ViewNode passwordNode = Helper.findNodeByHtmlName(saveRequest.structure, 251 final ViewNode usernameNode = Helper.findNodeByHtmlName(fillRequest.structure, 256 final ViewNode passwordNode = Helper.findNodeByHtmlName(fillRequest.structure, 284 final ViewNode usernameNode2 = Helper.findNodeByHtmlName(saveRequest.structure, 286 final ViewNode passwordNode2 = Helper.findNodeByHtmlName(saveRequest.structure [all...] |
Helper.java | 35 import android.app.assist.AssistStructure.ViewNode; 138 private static final NodeFilter<ViewNode> RESOURCE_ID_FILTER = (node, id) -> { 142 private static final NodeFilter<ViewNode> HTML_NAME_FILTER = (node, id) -> { 146 private static final NodeFilter<ViewNode> HTML_NAME_OR_RESOURCE_ID_FILTER = (node, id) -> { 150 private static final NodeFilter<ViewNode> TEXT_FILTER = (node, id) -> { 154 private static final NodeFilter<ViewNode> AUTOFILL_HINT_FILTER = (node, id) -> { 158 private static final NodeFilter<ViewNode> WEBVIEW_FORM_FILTER = (node, id) -> { 231 private static void dump(@NonNull StringBuilder builder, @NonNull ViewNode node, 296 public static ViewNode findNodeByFilter(@NonNull AssistStructure structure, @NonNull Object id, 297 @NonNull NodeFilter<ViewNode> filter) [all...] |
VirtualContainerActivityCompatModeTest.java | 36 import android.app.assist.AssistStructure.ViewNode; 95 protected void assertUrlBarIsSanitized(ViewNode urlBar) { 120 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); 145 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); 146 final ViewNode urlBar2 = findNodeByResourceId(request.structure, ID_URL_BAR2); 217 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 218 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); 219 final ViewNode urlBar = findNodeByResourceId(saveRequest.structure, ID_URL_BAR);
|
MutableAutofillIdTest.java | 31 import android.app.assist.AssistStructure.ViewNode; 72 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); 113 final ViewNode node1Request2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); 148 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); 209 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); 240 final ViewNode node1Request2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); 258 final ViewNode newNode1Context1 = findNodeByResourceId(structure1, ID_L1C1); 262 final ViewNode node2Context1 = findNodeByResourceId(structure1, ID_L1C2); 269 final ViewNode newNode1Context2 = findNodeByResourceId(structure2, ID_L1C1); 273 final ViewNode node2Context2 = findNodeByResourceId(structure2, ID_L1C2) [all...] |
ViewAttributesTest.java | 189 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, 220 AssistStructure.ViewNode doubleNestedView; 221 AssistStructure.ViewNode secondDoubleNestedView; 244 AssistStructure.ViewNode tripleNestedView = doubleNestedView.getChildAt(0); 256 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, 270 AssistStructure.ViewNode nestedView = outerView.getChildAt(0); 276 AssistStructure.ViewNode doubleNestedView;
|
MultipleFragmentLoginTest.java | 27 import android.app.assist.AssistStructure.ViewNode; 125 ViewNode editText1Node = findNodeByResourceId(structure1, "editText1"); 132 ViewNode editText2Node = findNodeByResourceId(structure1, "editText2"); 182 ViewNode editText3Node = findNodeByResourceId(saveStructure2, "editText3"); 185 ViewNode editText4Node = findNodeByResourceId(saveStructure2, "editText4"); 188 ViewNode editText5Node = findNodeByResourceId(saveStructure2, "editText5");
|
LoginWithStringsActivityTest.java | 35 import android.app.assist.AssistStructure.ViewNode; 127 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 129 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME);
|
VirtualContainerActivityTest.java | 38 import android.app.assist.AssistStructure.ViewNode; 192 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); 193 final ViewNode usernameLabel = findNodeByResourceId(request.structure, ID_USERNAME_LABEL); 194 final ViewNode username = findNodeByResourceId(request.structure, ID_USERNAME); 195 final ViewNode passwordLabel = findNodeByResourceId(request.structure, ID_PASSWORD_LABEL); 196 final ViewNode password = findNodeByResourceId(request.structure, ID_PASSWORD); 591 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 592 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); 789 protected void assertLabel(ViewNode node, String expectedValue) { 798 protected void assertUrlBarIsSanitized(ViewNode urlBar) [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/ |
Util.java | 20 import android.app.assist.AssistStructure.ViewNode; 117 private static void dumpNode(StringBuilder builder, String prefix, ViewNode node, int childNumber) { 193 public static ViewNode findNodeByFilter(@NonNull List<FillContext> contexts, @NonNull Object id, 196 ViewNode node = findNodeByFilter(context.getStructure(), id, filter); 207 public static ViewNode findNodeByFilter(@NonNull AssistStructure structure, @NonNull Object id, 213 final ViewNode rootNode = windowNode.getRootViewNode(); 214 final ViewNode node = findNodeByFilter(rootNode, id, filter); 225 public static ViewNode findNodeByFilter(@NonNull ViewNode node, @NonNull Object id, 233 final ViewNode found = findNodeByFilter(node.getChildAt(i), id, filter) [all...] |
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/ |
Util.java | 20 import android.app.assist.AssistStructure.ViewNode; 117 private static void dumpNode(StringBuilder builder, String prefix, ViewNode node, int childNumber) { 193 public static ViewNode findNodeByFilter(@NonNull List<FillContext> contexts, @NonNull Object id, 196 ViewNode node = findNodeByFilter(context.getStructure(), id, filter); 207 public static ViewNode findNodeByFilter(@NonNull AssistStructure structure, @NonNull Object id, 213 final ViewNode rootNode = windowNode.getRootViewNode(); 214 final ViewNode node = findNodeByFilter(rootNode, id, filter); 225 public static ViewNode findNodeByFilter(@NonNull ViewNode node, @NonNull Object id, 233 final ViewNode found = findNodeByFilter(node.getChildAt(i), id, filter) [all...] |
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/ |
ViewNodeTest.java | 32 import android.view.contentcapture.ViewNode; 33 import android.view.contentcapture.ViewNode.ViewStructureImpl; 61 ViewNode node = structure.getNode(); 89 ViewNode node = structure.getNode(); 113 ViewNode node = structure.getNode(); 135 ViewNode node = structure.getNode(); 158 final ViewNode node = structure.getNode(); 161 final ViewNode clone = cloneThroughParcel(node); 175 final ViewNode node = structure.getNode(); 178 ViewNode clone = cloneThroughParcel(node) [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/ |
AutofillFieldMetadata.kt | 18 import android.app.assist.AssistStructure.ViewNode; 24 * A stripped down version of a [ViewNode] that contains only autofill-relevant metadata. It also 25 * contains a `saveType` flag that is calculated based on the [ViewNode]'s autofill hints. 27 class AutofillFieldMetadata(view: ViewNode) { 42 * When the [ViewNode] is a list that the user needs to choose a string from (i.e. a spinner),
|
StructureParser.kt | 19 import android.app.assist.AssistStructure.ViewNode 28 * parses the hierarchy and collects autofill metadata from {@link ViewNode}s along the way. 44 * Traverse AssistStructure and add ViewNode metadata to a flat list. 55 private fun parseLocked(forFill: Boolean, viewNode: ViewNode) { 56 viewNode.autofillHints?.let { autofillHints -> 59 autofillFields.add(AutofillFieldMetadata(viewNode)) 61 filledAutofillFieldCollection.add(FilledAutofillField(viewNode)) 65 val childrenSize = viewNode.childCount 67 parseLocked(forFill, viewNode.getChildAt(i) [all...] |
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/ |
AutofillFieldMetadata.kt | 18 import android.app.assist.AssistStructure.ViewNode; 24 * A stripped down version of a [ViewNode] that contains only autofill-relevant metadata. It also 25 * contains a `saveType` flag that is calculated based on the [ViewNode]'s autofill hints. 27 class AutofillFieldMetadata(view: ViewNode) { 42 * When the [ViewNode] is a list that the user needs to choose a string from (i.e. a spinner),
|
StructureParser.kt | 19 import android.app.assist.AssistStructure.ViewNode 28 * parses the hierarchy and collects autofill metadata from {@link ViewNode}s along the way. 44 * Traverse AssistStructure and add ViewNode metadata to a flat list. 55 private fun parseLocked(forFill: Boolean, viewNode: ViewNode) { 56 viewNode.autofillHints?.let { autofillHints -> 59 autofillFields.add(AutofillFieldMetadata(viewNode)) 61 filledAutofillFieldCollection.add(FilledAutofillField(viewNode)) 65 val childrenSize = viewNode.childCount 67 parseLocked(forFill, viewNode.getChildAt(i) [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/ |
ClientViewMetadataBuilder.java | 58 private void parseWebDomain(AssistStructure.ViewNode viewNode, StringBuilder validWebDomain) { 59 String webDomain = viewNode.getWebDomain(); 73 private void parseNode(AssistStructure.ViewNode root, List<String> allHints,
|
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/ |
FilledAutofillField.kt | 26 class FilledAutofillField(viewNode: AssistStructure.ViewNode) { 36 val autofillHints = viewNode.autofillHints.filter(AutofillHelper::isValidHint).toTypedArray() 39 viewNode.autofillValue?.let { 42 viewNode.autofillOptions?.let { autofillOptions ->
|
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/ |
ClientViewMetadataBuilder.java | 58 private void parseWebDomain(AssistStructure.ViewNode viewNode, StringBuilder validWebDomain) { 59 String webDomain = viewNode.getWebDomain(); 73 private void parseNode(AssistStructure.ViewNode root, List<String> allHints,
|
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/ |
FilledAutofillField.kt | 26 class FilledAutofillField(viewNode: AssistStructure.ViewNode) { 36 val autofillHints = viewNode.autofillHints.filter(AutofillHelper::isValidHint).toTypedArray() 39 viewNode.autofillValue?.let { 42 viewNode.autofillOptions?.let { autofillOptions ->
|
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/ |
HeuristicsService.java | 22 import android.app.assist.AssistStructure.ViewNode; 138 * <p>An autofillable field is a {@link ViewNode} whose {@link #getHint(ViewNode)} metho 145 ViewNode node = structure.getWindowNodeAt(i).getRootViewNode(); 152 * Adds any autofillable view from the {@link ViewNode} and its descendants to the map. 155 @NonNull ViewNode node) { 174 protected String getHint(@NonNull ViewNode node) { 226 protected String inferHint(ViewNode node, @Nullable String string) {
|
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/ |
DebugService.java | 22 import android.app.assist.AssistStructure.ViewNode; 139 * <p>An autofillable field is a {@link ViewNode} whose {@link #getHint(ViewNode)} metho 146 ViewNode node = structure.getWindowNodeAt(i).getRootViewNode(); 153 * Adds any autofillable view from the {@link ViewNode} and its descendants to the map. 156 @NonNull ViewNode node) { 175 protected String getHint(@NonNull ViewNode node) { 227 protected String inferHint(ViewNode node, @Nullable String actualHint) {
|