Home
last modified time | relevance | path

Searched refs:children (Results 1 – 25 of 132) sorted by relevance

123456

/frameworks/base/cmds/statsd/tests/condition/
DCombinationConditionTracker_test.cpp30 vector<int> children; in TEST() local
31 children.push_back(0); in TEST()
32 children.push_back(1); in TEST()
33 children.push_back(2); in TEST()
40 EXPECT_EQ(evaluateCombinationCondition(children, operation, conditionResults), in TEST()
48 vector<int> children; in TEST() local
49 children.push_back(0); in TEST()
50 children.push_back(1); in TEST()
51 children.push_back(2); in TEST()
58 EXPECT_FALSE(evaluateCombinationCondition(children, operation, conditionResults)); in TEST()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java69 final SortedMap<String, Node> children = new TreeMap<String, Node>(); field in FieldMaskTree.Node
111 if (!createNewBranch && node != root && node.children.isEmpty()) { in addFieldPath()
115 if (node.children.containsKey(part)) { in addFieldPath()
116 node = node.children.get(part); in addFieldPath()
120 node.children.put(part, tmp); in addFieldPath()
125 node.children.clear(); in addFieldPath()
143 if (root.children.isEmpty()) { in toFieldMask()
155 if (node.children.isEmpty()) { in getFieldPaths()
159 for (Entry<String, Node> entry : node.children.entrySet()) { in getFieldPaths()
169 if (root.children.isEmpty()) { in intersectFieldPath()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemGroup.java75 private final List<ItemHierarchy> children = new ArrayList<>(); field in ItemGroup
117 children.add(child); in addChild()
133 final int childIndex = identityIndexOf(children, child); in removeChild()
138 children.remove(childIndex); in removeChild()
150 if (children.isEmpty()) { in clear()
156 for (ItemHierarchy item : children) { in clear()
160 children.clear(); in clear()
173 ItemHierarchy item = children.get(itemIndex); in getItemAt()
192 return getChildPosition(identityIndexOf(children, child)); in getChildPosition()
199 int childCount = children.size(); in getChildPosition()
[all …]
/frameworks/ml/nn/tools/systrace_parser/parser/
Dtree.py52 for c in node.children:
64 for c in node.children:
89 for c in node.children:
135 for c in node.children:
169 for c in node.children:
181 return not self.root.children
188 self.children = []
234 for c in self.children:
241 for c in self.children:
250 self.children.append(node)
[all …]
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/
DIndentingPrintWriterBenchmark.java101 public ArrayList<Node> children; field in IndentingPrintWriterBenchmark.Node
105 public static Node build(String name, Node... children) { in build() argument
108 if (children != null && children.length > 0) { in build()
109 node.children = Lists.newArrayList(children); in build()
129 if (children != null) { in dumpDirect()
130 for (Node child : children) { in dumpDirect()
141 if (children != null) { in dumpIndenting()
143 for (Node child : children) { in dumpIndenting()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dfield_mask_util.cc197 if (root_.children.empty()) { in MergeMessage()
206 if (root_.children.empty()) { in TrimMessage()
219 for (map<string, Node*>::iterator it = children.begin(); in ClearChildren()
220 it != children.end(); ++it) { in ClearChildren()
223 children.clear(); in ClearChildren()
226 map<string, Node*> children; member
269 if (node->children.empty()) { in MergeToFieldMask()
277 for (map<string, Node*>::const_iterator it = node->children.begin(); in MergeToFieldMask()
278 it != node->children.end(); ++it) { in MergeToFieldMask()
292 if (!new_branch && node != &root_ && node->children.empty()) { in AddPath()
[all …]
/frameworks/base/cmds/incidentd/src/
DPrivacy.cpp39 << " children=" << ((void*)children) << " policy=" << ((int)policy) << "}"; in toString()
44 if (p->children == NULL) return NULL; in lookup()
45 for (int i = 0; p->children[i] != NULL; i++) { // NULL-terminated. in lookup()
46 if (p->children[i]->field_id == fieldId) return p->children[i]; in lookup()
48 if (p->children[i]->field_id > fieldId) return NULL; in lookup()
/frameworks/av/media/libstagefright/webm/
DWebmFrameThread.cpp117 List<sp<WebmElement> >& children) { in initCluster()
118 CHECK(!frames.empty() && children.empty()); in initCluster()
123 children.clear(); in initCluster()
124 children.push_back(clusterTimecode); in initCluster()
127 void WebmFrameSinkThread::writeCluster(List<sp<WebmElement> >& children) { in writeCluster() argument
129 CHECK_GE(children.size(), 2u); in writeCluster()
132 sp<WebmElement> cluster = new WebmMaster(kMkvCluster, children); in writeCluster()
134 children.clear(); in writeCluster()
147 List<sp<WebmElement> > children; in flushFrames() local
148 initCluster(frames, clusterTimecodeL, children); in flushFrames()
[all …]
/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp653 vector<int> children; in TEST() local
654 children.push_back(0); in TEST()
655 children.push_back(1); in TEST()
656 children.push_back(2); in TEST()
663 EXPECT_FALSE(combinationMatch(children, operation, matcherResults)); in TEST()
670 EXPECT_TRUE(combinationMatch(children, operation, matcherResults)); in TEST()
677 vector<int> children; in TEST() local
678 children.push_back(0); in TEST()
679 children.push_back(1); in TEST()
680 children.push_back(2); in TEST()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupManager.java124 group.children.remove(removed.key); in onEntryRemovedInternal()
129 if (group.children.isEmpty()) { in onEntryRemovedInternal()
155 NotificationEntry existing = group.children.get(added.key); in onEntryAdded()
165 group.children.put(added.key, added); in onEntryAdded()
171 if (!group.children.isEmpty()) { in onEntryAdded()
173 = new ArrayList<>(group.children.values()); in onEntryAdded()
196 && (group.children.size() == 1 in updateSuppression()
197 || (group.children.size() == 0 in updateSuppression()
278 int realChildren = group != null ? group.children.size() : 0; in getTotalNumberOfChildren()
319 if (group.children.isEmpty()) { in isChildInGroupWithSummary()
[all …]
/frameworks/base/core/java/android/view/
DViewGroup.java1264 final View[] children = mChildren; in hasFocusableChild() local
1267 final View child = children[i]; in hasFocusableChild()
1304 final View[] children = new View[mChildrenCount]; in addFocusables() local
1308 children[count++] = child; in addFocusables()
1311 FocusFinder.sort(children, 0, count, this, isLayoutRtl()); in addFocusables()
1313 children[i].addFocusables(views, direction, focusableMode); in addFocusables()
1422 final View[] children = mChildren; in findViewsWithText() local
1424 View child = children[i]; in findViewsWithText()
1445 final View[] children = mChildren; in findViewByAccessibilityIdTraversal() local
1447 View child = children[i]; in findViewByAccessibilityIdTraversal()
[all …]
/frameworks/base/cmds/statsd/src/condition/
Dcondition_util.cpp41 ConditionState evaluateCombinationCondition(const std::vector<int>& children, in evaluateCombinationCondition() argument
50 for (auto childIndex : children) { in evaluateCombinationCondition()
79 newCondition = children.empty() ? ConditionState::kUnknown : in evaluateCombinationCondition()
80 ((conditionCache[children[0]] == ConditionState::kFalse) ? in evaluateCombinationCondition()
/frameworks/base/sax/java/android/sax/
DChildren.java25 Child[] children = new Child[16]; field in Children
34 Child current = children[index]; in getOrCreate()
38 children[index] = current; in getOrCreate()
69 Child current = children[index]; in get()
DElement.java37 Children children; field in Element
70 if (children == null) { in getChild()
71 children = new Children(); in getChild()
74 return children.getOrCreate(this, uri, localName); in getChild()
156 if (children != null) { in setEndTextElementListener()
DRootElement.java130 Children children = current.children; in startElement() local
131 if (children != null) { in startElement()
132 Element child = children.get(uri, localName); in startElement()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DAsn1Node.java259 private Asn1Node(int tag, List<Asn1Node> children) { in Asn1Node() argument
262 mChildren = children; in Asn1Node()
265 int size = children.size(); in Asn1Node()
267 mDataLength += children.get(i).mEncodedLength; in Asn1Node()
313 List<Asn1Node> children = node.getChildren(); in getChild() local
314 int size = children.size(); in getChild()
317 Asn1Node child = children.get(i); in getChild()
346 List<Asn1Node> children = getChildren(); in getChildren() local
347 if (children.isEmpty()) { in getChildren()
351 int size = children.size(); in getChildren()
[all …]
/frameworks/base/startop/view_compiler/
Ddex_layout_compiler.h48 parent_stack_.back().children.push_back(entry); in VisitEndTag()
55 std::vector<ViewEntry> children; member
59 builder_->StartView(view.name, !view.children.empty()); in GenerateCode()
60 for (const auto& child : view.children) { in GenerateCode()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaPlayerStressTest.java129 String[] children = MediaNames.NETWORK_VIDEO_FILES; in testVideoPlayback() local
132 children = dir.list(); in testVideoPlayback()
134 if (children == null) { in testVideoPlayback()
138 for (int i = 0; i < children.length; i++) { in testVideoPlayback()
140 String filename = children[i]; in testVideoPlayback()
/frameworks/base/services/core/java/com/android/server/
DLockGuard.java89 public ArraySet<Object> children = new ArraySet<>(0, true); field in LockGuard.LockInfo
118 for (int i = 0; i < info.children.size(); i++) { in guard()
119 final Object child = info.children.valueAt(i); in guard()
138 sKnown.valueAt(i).children.add(lock); in guard()
243 for (int j = 0; j < info.children.size(); j++) { in dump()
244 pw.println(" Child " + lockToString(info.children.valueAt(j))); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java73 int children = getChildCount(); in onMeasure() local
74 int rows = (children + mNumColumns - 1) / mNumColumns; in onMeasure()
77 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onMeasure()
103 int children = getChildCount(); in onLayout() local
104 int rows = (children + mNumColumns - 1) / mNumColumns; in onLayout()
110 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onLayout()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtils.java174 List<Element> children = getXmlDirectChildren(parent, tag); in getXmlNodeContents() local
175 if ((children.size() == 0 && mustExist != MUST_EXIST_UNENFORCED) in getXmlNodeContents()
176 || children.size() > 1) { in getXmlNodeContents()
180 if (children.size() == 0) { in getXmlNodeContents()
183 parent = children.get(0); in getXmlNodeContents()
210 List<Element> children = new ArrayList<>(); in getXmlDirectChildren() local
215 children.add((Element) node); in getXmlDirectChildren()
218 return children; in getXmlDirectChildren()
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceRefcountedResourceTest.java90 RefcountedResource... children) { in getTestRefcountedResource() argument
91 return getTestRefcountedResource(new Binder(), children); in getTestRefcountedResource()
96 IBinder binder, RefcountedResource... children) { in getTestRefcountedResource() argument
99 .new RefcountedResource<IResource>(mock(IResource.class), binder, children)); in getTestRefcountedResource()
331 Set<RefcountedResource<IResource>> children = new HashSet<>(); in fuzzTest() local
334 children.add(resources.get(childIndex)); in fuzzTest()
339 children.toArray(new RefcountedResource[children.size()])); in fuzzTest()
/frameworks/base/tools/aapt2/
DDominatorTree.h64 inline const std::vector<std::unique_ptr<Node>>& children() const { in children() function
91 for (auto& child : root->children()) { in VisitTree()
100 for (auto& child : node->children()) { in VisitNode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSectionsManagerTest.java251 private void setStackState(ChildType... children) { in setStackState() argument
252 when(mNssl.getChildCount()).thenReturn(children.length); in setStackState()
253 for (int i = 0; i < children.length; i++) { in setStackState()
255 switch (children[i]) { in setStackState()
265 .thenReturn(children[i] == ChildType.HIPRI); in setStackState()
267 .thenReturn(children[i] == ChildType.HIPRI); in setStackState()
272 throw new RuntimeException("Unknown ChildType: " + children[i]); in setStackState()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeExpandableAdapter.java72 List<DataBindingItem> children = dataBindingItem.getChildren(); in createItems() local
76 if (children.size() > 0) { in createItems()
88 if (children.size() > 0) { in createItems()
105 List<AdapterItem> children = item.getChildren(); in getChildItem() local
106 return children.get(childPosition); in getChildItem()

123456