/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/ |
PropertiesTableModel.java | 19 import com.android.hierarchyviewer.scene.ViewNode; 26 private List<ViewNode.Property> properties; 27 private List<ViewNode.Property> privateProperties = new ArrayList<ViewNode.Property>(); 29 public PropertiesTableModel(ViewNode node) { 34 private void loadPrivateProperties(ViewNode node) { 37 ViewNode p = node.parent; 44 ViewNode.Property property = new ViewNode.Property(); 49 property = new ViewNode.Property() [all...] |
ViewsTreeModel.java | 19 import com.android.hierarchyviewer.scene.ViewNode; 26 private final ViewNode root; 28 public ViewsTreeModel(ViewNode root) { 37 return ((ViewNode) o).children.get(i); 41 return ((ViewNode) o).children.size(); 45 ViewNode node = (ViewNode) child; 54 return ((ViewNode) parent).children.indexOf(child);
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
Helper.java | 26 import android.app.assist.AssistStructure.ViewNode; 226 private static void dump(StringBuffer buffer, ViewNode node, String prefix, int childId) { 260 static ViewNode findNodeByResourceId(AssistStructure structure, String resourceId) { 265 final ViewNode rootNode = windowNode.getRootViewNode(); 266 final ViewNode node = findNodeByResourceId(rootNode, resourceId); 277 static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { 279 ViewNode node = findNodeByResourceId(context.getStructure(), resourceId); 290 static ViewNode findNodeByResourceId(ViewNode node, String resourceId) { 297 final ViewNode found = findNodeByResourceId(node.getChildAt(i), resourceId) [all...] |
ViewAttributesTest.java | 181 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, 213 AssistStructure.ViewNode doubleNestedView; 214 AssistStructure.ViewNode secondDoubleNestedView; 237 AssistStructure.ViewNode tripleNestedView = doubleNestedView.getChildAt(0); 249 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, 263 AssistStructure.ViewNode nestedView = outerView.getChildAt(0); 269 AssistStructure.ViewNode doubleNestedView;
|
MultipleFragmentLoginTest.java | 29 import android.app.assist.AssistStructure.ViewNode; 132 ViewNode editText1Node = findNodeByResourceId(structure1, "editText1"); 139 ViewNode editText2Node = findNodeByResourceId(structure1, "editText2"); 189 ViewNode editText3Node = findNodeByResourceId(structure2, "editText3"); 192 ViewNode editText4Node = findNodeByResourceId(structure2, "editText4"); 195 ViewNode editText5Node = findNodeByResourceId(structure2, "editText5");
|
FatActivityTest.java | 39 import android.app.assist.AssistStructure.ViewNode; 94 final ViewNode inputContainer = 98 final ViewNode input = inputContainer.getChildAt(0);
|
VirtualContainerActivityTest.java | 34 import android.app.assist.AssistStructure.ViewNode; 107 final ViewNode usernameLabel = findNodeByResourceId(request.structure, ID_USERNAME_LABEL); 108 final ViewNode username = findNodeByResourceId(request.structure, ID_USERNAME); 109 final ViewNode passwordLabel = findNodeByResourceId(request.structure, ID_PASSWORD_LABEL); 110 final ViewNode password = findNodeByResourceId(request.structure, ID_PASSWORD);
|
CannedFillResponse.java | 22 import android.app.assist.AssistStructure.ViewNode; 117 FillResponse asFillResponse(Function<String, ViewNode> nodeResolver) { 326 Dataset asDataset(Function<String, ViewNode> nodeResolver) { 334 final ViewNode node = nodeResolver.apply(resourceId);
|
/packages/experimental/FillService/src/foo/bar/fill/ |
FillService.java | 24 import android.app.assist.AssistStructure.ViewNode; 79 ViewNode username = findUsername(structure); 80 ViewNode password = findPassword(structure); 183 ViewNode username = findUsername(structure); 184 ViewNode password = findPassword(structure); 187 static ViewNode findUsername(AssistStructure structure) { 194 static ViewNode findPassword(AssistStructure structure) { 201 private static ViewNode findByPredicate(AssistStructure structure, 202 Predicate<ViewNode> predicate) { 206 ViewNode root = window.getRootViewNode() [all...] |
AuthActivity.java | 6 import android.app.assist.AssistStructure.ViewNode; 27 ViewNode username = FillService.findUsername(structure); 28 ViewNode password = FillService.findPassword(structure);
|
/frameworks/base/core/java/android/service/autofill/ |
FillContext.java | 24 import android.app.assist.AssistStructure.ViewNode; 54 * Lookup table AutofillId->ViewNode to speed up {@link #findViewNodesByAutofillIds} 57 @Nullable private ArrayMap<AutofillId, AssistStructure.ViewNode> mViewNodeLookupTable; 108 * Finds {@link ViewNode ViewNodes} that have the requested ids. 116 @NonNull public ViewNode[] findViewNodesByAutofillIds(@NonNull AutofillId[] ids) { 117 final LinkedList<ViewNode> nodesToProcess = new LinkedList<>(); 118 final ViewNode[] foundNodes = new AssistStructure.ViewNode[ids.length]; 143 final ViewNode node = nodesToProcess.removeFirst(); 181 * Finds the {@link ViewNode} that has the requested {@code id}, if any [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
LayoutRenderer.java | 20 import com.android.hierarchyviewer.scene.ViewNode; 78 ViewNode root = scene.getRoot(); 94 ViewNode node = (ViewNode) selection.iterator().next(); 97 ViewNode p = node.parent; 112 private void drawChildren(Graphics g, ViewNode root, int x, int y) { 114 for (ViewNode node : root.children) { 139 ViewNode root = scene.getRoot(); 152 ViewNode hit = findChild(root, root, x, y); 158 private ViewNode findChild(ViewNode root, ViewNode besthit, int x, int y) [all...] |
CaptureRenderer.java | 19 import com.android.hierarchyviewer.scene.ViewNode; 25 private ViewNode node; 28 CaptureRenderer(ImageIcon icon, ViewNode node) {
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
ViewHierarchyLoader.java | 64 Stack<ViewNode> stack = new Stack<ViewNode>(); 67 ViewNode lastNode = null; 89 lastNode = new ViewNode(); 103 final ViewNode parent = stack.peek(); 136 private static void updateIndices(ViewNode root) { 141 for (ViewNode node : root.children) { 154 private static void loadProperties(ViewNode node, String data) { 160 ViewNode.Property property = new ViewNode.Property() [all...] |
ViewNode.java | 26 public class ViewNode { 33 public ViewNode parent; 34 public List<ViewNode> children = new ArrayList<ViewNode>(); 149 final ViewNode other = (ViewNode) obj; 200 void nodeStateChanged(ViewNode node); 201 void nodeIndexChanged(ViewNode node);
|
ViewHierarchyScene.java | 38 public class ViewHierarchyScene extends GraphScene<ViewNode, String> { 39 private ViewNode root; 53 public ViewNode getRoot() { 57 void setRoot(ViewNode root) { 62 protected Widget attachNodeWidget(ViewNode node) { 70 private Widget createBox(ViewNode node, String nodeName, String id) { 127 protected void attachEdgeSourceAnchor(String edge, ViewNode oldSourceNode, ViewNode sourceNode) { 136 protected void attachEdgeTargetAnchor(String edge, ViewNode oldTargetNode, ViewNode targetNode) [all...] |
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/ |
StructureParser.java | 19 import android.app.assist.AssistStructure.ViewNode; 31 * parses the hierarchy and collects autofill metadata from {@link ViewNode}s along the way. 52 * Traverse AssistStructure and add ViewNode metadata to a flat list. 60 ViewNode view = node.getRootViewNode(); 65 private void parseLocked(boolean forFill, ViewNode viewNode) { 66 if (viewNode.getAutofillHints() != null && viewNode.getAutofillHints().length > 0) { 69 mAutofillFields.add(new AutofillFieldMetadata(viewNode)); 72 (viewNode.getAutofillHints(), new FilledAutofillField(viewNode)) [all...] |
AutofillFieldMetadata.java | 18 import android.app.assist.AssistStructure.ViewNode; 24 * A stripped down version of a {@link ViewNode} that contains only autofill-relevant metadata. It 25 * also contains a {@code mSaveType} flag that is calculated based on the {@link ViewNode}]'s 36 public AutofillFieldMetadata(ViewNode view) { 66 * When the {@link ViewNode} is a list that the user needs to choose a string from (i.e. a
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
ViewLoader.java | 29 protected Map<String, ViewNode> viewNodesByLayoutName = new HashMap<String, ViewNode>(); 41 ViewNode topLevelNode = new ViewNode("top-level", new HashMap<String, String>(), isSystem); 50 private void processChildren(NodeList childNodes, ViewNode parent) { 57 private void processNode(Node node, ViewNode parent) { 73 ViewNode viewNode = new ViewNode(name, attrMap, parent.isSystem); 74 if (parent != null) parent.addChild(viewNode); [all...] |
/frameworks/base/core/java/android/app/assist/ |
AssistStructure.java | 169 ViewNode node; 240 void pushViewStackEntry(ViewNode node, int pos) { 256 void writeView(ViewNode child, Parcel out, PooledStringWriter pwriter, int levelAdj) { 265 if ((flags&ViewNode.FLAGS_HAS_CHILDREN) != 0) { 283 ViewNode child = mCurViewStackEntry.node.mChildren[mCurViewStackEntry.curChild]; 316 ViewNode root = win.mRoot; 421 int mTextColor = ViewNode.TEXT_COLOR_UNDEFINED; 422 int mTextBackgroundColor = ViewNode.TEXT_COLOR_UNDEFINED; 433 return mTextBackgroundColor == ViewNode.TEXT_COLOR_UNDEFINED 479 final ViewNode mRoot [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/service/ |
StructureParser.java | 19 import android.app.assist.AssistStructure.ViewNode; 46 * Traverse AssistStructure and add ViewNode metadata to a flat list. 54 ViewNode view = node.getRootViewNode(); 59 private void parseLocked(ViewNode viewNode) { 60 if (viewNode.getAutofillHints() != null && viewNode.getAutofillHints().length > 0) { 62 mAutofillFields.add(new AutofillField(viewNode)); 64 .set(viewNode.getAutofillHints(), SavedAutofillValue.fromViewNode(viewNode)); [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/service/ |
StructureParser.java | 19 import android.app.assist.AssistStructure.ViewNode; 46 * Traverse AssistStructure and add ViewNode metadata to a flat list. 54 ViewNode view = node.getRootViewNode(); 59 private void parseLocked(ViewNode viewNode) { 60 if (viewNode.getAutofillHints() != null && viewNode.getAutofillHints().length > 0) { 62 mAutofillFields.add(new AutofillField(viewNode)); 64 .set(viewNode.getAutofillHints(), SavedAutofillValue.fromViewNode(viewNode)); [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. 45 * Traverse AssistStructure and add ViewNode metadata to a flat list. 58 private fun parseLocked(forFill: Boolean, viewNode: ViewNode) { 59 viewNode.autofillHints?.let { autofillHints -> 62 autofillFields.add(AutofillFieldMetadata(viewNode)) 64 filledAutofillFieldCollection.setAutofillValuesForHints(viewNode.autofillHints, 65 FilledAutofillField(viewNode)) 69 val childrenSize = viewNode.childCoun [all...] |
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/ |
FilledAutofillField.kt | 24 class FilledAutofillField(viewNode: AssistStructure.ViewNode) { 30 viewNode.autofillValue?.let { autofillValue -> 33 viewNode.autofillOptions?.let { autofillOptions ->
|