Home
last modified time | relevance | path

Searched refs:Node (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/
DIndentingPrintWriterBenchmark.java33 private Node mSimple;
34 private Node mComplex;
42 final Node manyChildren = Node.build("ManyChildren", Node.build("1"), Node.build("2"), in setUp()
43 Node.build("3"), Node.build("4"), Node.build("5"), Node.build("6"), Node.build("7"), in setUp()
44 Node.build("8"), Node.build("9"), Node.build("10")); in setUp()
46 mSimple = Node.build("RED"); in setUp()
47 mComplex = Node.build("PARENT", Node.build("RED"), Node.build("GREEN", in setUp()
48 Node.build("BLUE", manyChildren, manyChildren), manyChildren, manyChildren), in setUp()
99 private static class Node { class in IndentingPrintWriterBenchmark
101 public ArrayList<Node> children;
[all …]
/frameworks/compile/mclinker/unittests/
DGCFactoryListTraitsTest.h35 class Node : public llvm::ilist_node<Node> {
43 Node() : m_Init(0), m_Value(0) {} in Node() function
45 Node(unsigned pInit) : m_Init(pInit), m_Value(pInit) {} in Node() function
54 class NodeFactory : public mcld::GCFactory<Node, 0> {
56 NodeFactory() : mcld::GCFactory<Node, 0>(16) {} in NodeFactory()
58 Node* produce(unsigned pInit) { in produce()
59 Node* result = allocate(); in produce()
60 new (result) Node(pInit); in produce()
77 const llvm::iplist<Node, mcld::GCFactoryListTraits<Node> >& getNodeList() in getNodeList()
82 llvm::iplist<Node, mcld::GCFactoryListTraits<Node> >& getNodeList() { in getNodeList()
[all …]
DGraphTest.cpp39 ListDigraph::Node* u1 = graph.addNode(); in TEST_F()
40 ListDigraph::Node* u2 = graph.addNode(); in TEST_F()
41 ListDigraph::Node* u3 = graph.addNode(); in TEST_F()
58 ListDigraph::Node* head = NULL; in TEST_F()
86 ListDigraph::Node* u1 = graph.addNode(); in TEST_F()
87 ListDigraph::Node* u2 = graph.addNode(); in TEST_F()
88 ListDigraph::Node* u3 = graph.addNode(); in TEST_F()
105 ListDigraph::Node* head = NULL; in TEST_F()
133 ListDigraph::Node* u1 = graph.addNode(); in TEST_F()
134 ListDigraph::Node* u2 = graph.addNode(); in TEST_F()
[all …]
DGCFactoryListTraitsTest.cpp17 m_pNodesAlloc = new Node* [10]; in GCFactoryListTraitsTest()
64 llvm::iplist<Node>::const_iterator it = m_pNodeList.begin(); \
93 Node* NewNode = m_NodeFactory.produce(11); in TEST_F()
102 for (llvm::iplist<Node>::const_iterator I = m_pNodeList.begin(), in TEST_F()
/frameworks/base/tools/aapt2/
DDominatorTree.h53 class Node {
55 explicit Node(ResourceConfigValue* value = nullptr, Node* parent = nullptr)
60 inline Node* parent() const { return parent_; } in parent()
64 inline const std::vector<std::unique_ptr<Node>>& children() const { in children()
68 bool TryAddChild(std::unique_ptr<Node> new_child);
71 bool AddChild(std::unique_ptr<Node> new_child);
72 bool Dominates(const Node* other) const;
75 Node* parent_;
76 std::vector<std::unique_ptr<Node>> children_;
78 DISALLOW_COPY_AND_ASSIGN(Node);
[all …]
DDominatorTree.cpp31 util::make_unique<Node>(config.get(), nullptr)); in DominatorTree()
41 bool DominatorTree::Node::TryAddChild(std::unique_ptr<Node> new_child) { in TryAddChild()
50 bool DominatorTree::Node::AddChild(std::unique_ptr<Node> new_child) { in AddChild()
65 [](const std::unique_ptr<Node>& child) -> bool { in AddChild()
83 bool DominatorTree::Node::Dominates(const Node* other) const { in Dominates()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DLegacyPasspointConfigParser.java101 private abstract static class Node { class in LegacyPasspointConfigParser
103 Node(String name) { in Node() method in LegacyPasspointConfigParser.Node
119 public abstract List<Node> getChildren(); in getChildren()
132 private static class InternalNode extends Node {
133 private final List<Node> mChildren;
134 InternalNode(String name, List<Node> children) { in InternalNode()
140 public List<Node> getChildren() { in getChildren()
153 private static class LeafNode extends Node {
161 public List<Node> getChildren() { in getChildren()
200 Node root = buildNode(in); in parseConfig()
[all …]
/frameworks/base/core/java/android/animation/
DAnimatorSet.java74 private ArrayList<Node> mPlayingSet = new ArrayList<Node>();
82 private ArrayMap<Animator, Node> mNodeMap = new ArrayMap<Animator, Node>();
94 private ArrayList<Node> mNodes = new ArrayList<Node>();
118 private Node mRootNode = new Node(mDelayAnim);
306 Node node = mNodes.get(i);
325 Node node = mNodes.get(i);
423 ArrayList<Node> playingSet = new ArrayList<>(mPlayingSet);
573 Node node = mNodes.get(i);
626 Node node = mNodes.get(i);
637 Node node = mNodes.get(i);
[all …]
/frameworks/base/tools/incident_report/
Dgeneric_message.cpp30 Node node; in addInt32()
33 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt32()
39 Node node; in addInt64()
42 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt64()
49 Node node; in addMessage()
52 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addMessage()
59 Node node; in addString()
62 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addString()
Dgeneric_message.h45 struct Node { struct
61 typedef multimap<int32_t,Node>::const_iterator const_iterator; argument
67 multimap<int,Node> mNodes;
/frameworks/base/tools/aapt2/xml/
DXmlDom.h43 class Node {
45 Node* parent = nullptr;
49 std::vector<std::unique_ptr<Node>> children;
51 virtual ~Node() = default;
53 void AppendChild(std::unique_ptr<Node> child);
54 void InsertChild(size_t index, std::unique_ptr<Node> child);
60 virtual std::unique_ptr<Node> Clone(const ElementCloneFunc& el_cloner) = 0;
68 class BaseNode : public Node {
81 std::unique_ptr<Node> Clone(const ElementCloneFunc& el_cloner) override;
124 std::unique_ptr<Node> Clone(const ElementCloneFunc& el_cloner) override;
[all …]
DXmlDom.cpp41 std::unique_ptr<xml::Node> root;
42 std::stack<xml::Node*> node_stack;
78 std::unique_ptr<Node> node) { in AddToStack()
82 Node* this_node = node.get(); in AddToStack()
269 std::unique_ptr<Node> root; in Inflate()
270 std::stack<Node*> node_stack; in Inflate()
280 std::unique_ptr<Node> new_node; in Inflate()
342 Node* this_node = new_node.get(); in Inflate()
359 std::unique_ptr<Node> Namespace::Clone(const ElementCloneFunc& el_cloner) { in Clone()
367 for (const std::unique_ptr<xml::Node>& child : children) { in Clone()
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/
DMetadataRepo.java59 private final Node mRootNode;
75 mRootNode = new Node(DEFAULT_ROOT_SIZE); in MetadataRepo()
89 mRootNode = new Node(DEFAULT_ROOT_SIZE); in MetadataRepo()
163 Node getRootNode() { in getRootNode()
205 static class Node { class in MetadataRepo
206 private SparseArray<Node> mChildren;
209 private Node() { in Node() method in MetadataRepo.Node
212 private Node(final int defaultChildrenSize) { in Node() method in MetadataRepo.Node
216 Node get(final int key) { in get()
225 Node node = get(data.getCodepointAt(start)); in put()
[all …]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DTimePickerDialog.java103 private Node mLegalTimesTree;
605 Node node = mLegalTimesTree;
823 mLegalTimesTree = new Node();
826 Node minuteFirstDigit = new Node(k0, k1, k2, k3, k4, k5);
827 Node minuteSecondDigit = new Node(k0, k1, k2, k3, k4, k5, k6, k7, k8, k9);
832 Node firstDigit = new Node(k0, k1);
836 Node secondDigit = new Node(k0, k1, k2, k3, k4, k5);
842 Node thirdDigit = new Node(k6, k7, k8, k9);
847 secondDigit = new Node(k6, k7, k8, k9);
853 firstDigit = new Node(k2);
[all …]
/frameworks/native/vulkan/libvulkan/
Ddebug_report.h36 struct Node;
45 Node* AddCallback(const VkDebugReportCallbackCreateInfoEXT& info,
48 void RemoveCallback(Node* node, const VkAllocationCallbacks& allocator);
58 static Node* FromHandle(VkDebugReportCallbackEXT handle) { in FromHandle()
59 return reinterpret_cast<Node*>(uintptr_t(handle)); in FromHandle()
62 static VkDebugReportCallbackEXT GetHandle(const Node* node) { in GetHandle()
66 static VkDebugReportCallbackEXT GetDriverHandle(const Node* node) { in GetDriverHandle()
71 struct Node { struct
72 Node* next; argument
83 Node head_; argument
Ddebug_report.cpp22 DebugReportCallbackList::Node* DebugReportCallbackList::AddCallback( in AddCallback()
26 void* mem = allocator.pfnAllocation(allocator.pUserData, sizeof(Node), in AddCallback()
27 alignof(Node), in AddCallback()
34 head_.next = new (mem) Node{head_.next, info.flags, info.pfnCallback, in AddCallback()
41 Node* node, in RemoveCallback()
46 Node* prev = &head_; in RemoveCallback()
64 const Node* node = &head_; in Message()
/frameworks/native/vulkan/api/templates/
Dvulkan_common.tmpl13 {{define "Type.StaticArray"}}{{Node "Type" $.Type.ValueType}}{{end}}
14 {{define "Type.Pointer" }}{{if $.Type.Const}}{{Node "ConstType" $.Type.To}}{{else}}{{Node "Type"…
15 {{define "Type.Slice" }}{{Log "%T %+v" $.Node $.Node}}{{Node "Type" $.Type.To}}*{{end}}
32 {{define "ConstType_Default"}}const {{Node "Type" $.Type}}{{end}}
33 {{define "ConstType.Pointer"}}{{Node "Type" $.Type}} const{{end}}
127 {{define "ArrayPostfix"}}{{Node "ArrayPostfix" $}}{{end}}
161 {{define "ParameterType"}}{{AssertType $ "Parameter"}}{{Node "Type" $}}{{end}}
220 {{Node "Vtbl" (index $.CallParameters 0)}}
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DScriptGroup.java51 private ArrayList<Node> mNodes = new ArrayList<Node>();
82 static class Node { class in ScriptGroup
91 Node mNext;
93 Node(Script s) { in Node() method in ScriptGroup.Node
536 Node n = mNodes.get(ct); in execute()
556 for (Node node : mNodes) { in execute()
620 private ArrayList<Node> mNodes = new ArrayList<Node>();
637 private void validateCycle(Node target, Node original) { in validateCycle()
641 Node tn = findNode(cl.mToK.mScript); in validateCycle()
648 Node tn = findNode(cl.mToF.mScript); in validateCycle()
[all …]
/frameworks/rs/
DrsScriptGroup.cpp54 ScriptGroup::Node::Node(Script *s) { in Node() function in android::renderscript::ScriptGroup::Node
60 ScriptGroup::Node * ScriptGroup::findNode(Script *s) const { in findNode()
63 Node *n = mNodes[ct]; in findNode()
74 bool ScriptGroup::calcOrderRecurse(Node *n, int depth) { in calcOrderRecurse()
83 Node *nt = NULL; in calcOrderRecurse()
99 bool operator() (const ScriptGroup::Node* lhs, in operator ()()
100 const ScriptGroup::Node* rhs) { in operator ()()
111 Node *n = findNode(k->mScript); in calcOrder()
114 n = new Node(k->mScript); in calcOrder()
125 Node *n = findNode(l->mSource->mScript); in calcOrder()
[all …]
DrsScriptGroup.h57 class Node {
59 explicit Node(Script *);
78 std::vector<Node *> mNodes;
98 bool calcOrderRecurse(Node *n, int depth);
100 Node * findNode(Script *s) const;
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
DSdkUtil.java19 import org.w3c.dom.Node;
108 Node node = allClasses.item(j); in buildFullLookup()
109 if (node.getNodeType() != Node.ELEMENT_NODE || !"class" in buildFullLookup()
119 Node child = childNodes.item(i); in buildFullLookup()
120 if (child.getNodeType() != Node.ELEMENT_NODE || !"method" in buildFullLookup()
153 private static int getSince(Node node) { in getSince()
154 final Node since = node.getAttributes().getNamedItem("since"); in getSince()
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DOptimizingLineBreaker.java56 Node[] opt = new Node[numBreaks]; in computeBreaks()
57 opt[0] = new Node(-1, 0, 0, 0, false); in computeBreaks()
58 opt[numBreaks - 1] = new Node(-1, 0, 0, 0, false); in computeBreaks()
67 Node bestBreak = null; in computeBreaks()
85 bestBreak = new Node(pos, opt[pos].mPrevCount + 1, demerits, in computeBreaks()
113 opt[breakIndex] = new Node(lastBreak, lines + 1, 0 /*doesn't matter*/, in computeBreaks()
244 private static class Node { class in OptimizingLineBreaker
253 public Node(int prev, int prevCount, float demerits, float width, boolean hasTabs) { in Node() method in OptimizingLineBreaker.Node
/frameworks/base/tools/aapt2/optimize/
DResourceDeduper.cpp41 using Node = DominatorTree::Node; typedef in aapt::__anoncbc5f1a20111::DominatedKeyValueRemover
46 void VisitConfig(Node* node) { in VisitConfig()
47 Node* parent = node->parent(); in VisitConfig()
/frameworks/base/rs/java/android/renderscript/
DScriptGroup.java74 static class Node { class in ScriptGroup
81 Node mNext;
83 Node(Script s) { in Node() method in ScriptGroup.Node
556 private ArrayList<Node> mNodes = new ArrayList<Node>();
572 private void validateCycle(Node target, Node original) { in validateCycle()
576 Node tn = findNode(cl.mToK.mScript); in validateCycle()
583 Node tn = findNode(cl.mToF.mScript); in validateCycle()
599 private void validateDAGRecurse(Node n, int dagNumber) { in validateDAGRecurse()
610 Node tn = findNode(cl.mToK.mScript); in validateDAGRecurse()
614 Node tn = findNode(cl.mToF.mScript); in validateDAGRecurse()
[all …]
/frameworks/base/libs/hwui/
DVectorDrawable.h97 class ANDROID_API Node {
101 explicit Properties(Node* node) : mNode(node) {} in Properties()
106 Node* mNode;
108 Node(const Node& node) { in Node() function
111 Node() {} in Node() function
121 virtual ~Node(){} in ~Node()
128 class ANDROID_API Path : public Node {
142 explicit PathProperties(Node* node) : Properties(node) {} in PathProperties()
222 explicit FullPathProperties(Node* mNode) : Properties(mNode), mTrimDirty(false) {} in FullPathProperties()
404 class ANDROID_API Group: public Node {
[all …]

123