Home
last modified time | relevance | path

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

12345

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DWrapContentBasicTest.java86 View[] children = createMockChildren(3); in setDimensionsFromChildren() local
88 verify(mLayoutManager).setMeasuredDimension(children[0].getWidth(), in setDimensionsFromChildren()
89 children[0].getHeight()); in setDimensionsFromChildren()
95 View[] children = createMockChildren(3); in setDimensionsFromChildrenAnsSpec1() local
98 verify(mLayoutManager).setMeasuredDimension(children[0].getWidth(), 111); in setDimensionsFromChildrenAnsSpec1()
104 View[] children = createMockChildren(3); in setDimensionsFromChildrenAnsSpec2() local
107 verify(mLayoutManager).setMeasuredDimension(111, children[0].getHeight()); in setDimensionsFromChildrenAnsSpec2()
113 View[] children = createMockChildren(3); in setDimensionsFromChildrenAnsSpec3() local
114 children[0].layout(0, 0, 100, 100); in setDimensionsFromChildrenAnsSpec3()
115 children[1].layout(-5, 0, 100, 100); in setDimensionsFromChildrenAnsSpec3()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DDocumentsProviderHelper.java155 List<DocumentInfo> children = listChildren(parentUri); in assertChildCount() local
156 assertEquals("Incorrect file count after copy", expected, children.size()); in assertChildCount()
160 List<DocumentInfo> children = listChildren(parentId); in assertChildCount() local
161 assertEquals("Incorrect file count after copy", expected, children.size()); in assertChildCount()
169 List<DocumentInfo> children = listChildren(parentUri); in assertHasFile() local
170 for (DocumentInfo child : children) { in assertHasFile()
175 fail("Could not find file named=" + name + " in children " + children); in assertHasFile()
188 List<DocumentInfo> children = listChildren(parentUri); in assertHasDirectory() local
189 for (DocumentInfo child : children) { in assertHasDirectory()
194 fail("Could not find name=" + name + " in children " + children); in assertHasDirectory()
[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/av/media/libstagefright/webm/
DWebmFrameThread.cpp109 List<sp<WebmElement> >& children) { in initCluster()
110 CHECK(!frames.empty() && children.empty()); in initCluster()
115 children.clear(); in initCluster()
116 children.push_back(clusterTimecode); in initCluster()
119 void WebmFrameSinkThread::writeCluster(List<sp<WebmElement> >& children) { in writeCluster() argument
121 CHECK_GE(children.size(), 2); in writeCluster()
124 sp<WebmElement> cluster = new WebmMaster(kMkvCluster, children); in writeCluster()
126 children.clear(); in writeCluster()
139 List<sp<WebmElement> > children; in flushFrames() local
140 initCluster(frames, clusterTimecodeL, children); in flushFrames()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DSPVerifier.java94 Iterator<Asn1Object> children = sequence.getChildren().iterator(); in LogoTypeImage() local
97 castObject(children.next(), Asn1Constructed.class).getChildren().iterator(); in LogoTypeImage()
115 if (children.hasNext()) { in LogoTypeImage()
117 castObject(children.next(), Asn1Constructed.class).getChildren().iterator(); in LogoTypeImage()
196 Iterator<Asn1Object> children = sequence.getChildren().iterator(); in HashAlgAndValue() local
197 mJCEName = OidMappings.getJCEName(getFirstInner(children.next(), Asn1Oid.class)); in HashAlgAndValue()
198 mHash = castObject(children.next(), Asn1Octets.class).getOctets(); in HashAlgAndValue()
236 Iterator<Asn1Object> children = container.getChildren().iterator(); in getFirstInner() local
237 if (!children.hasNext()) { in getFirstInner()
240 return castObject(children.next(), klass); in getFirstInner()
[all …]
/frameworks/base/core/java/android/view/
DViewGroup.java1069 final View[] children = mChildren; in hasFocusable() local
1072 final View child = children[i]; in hasFocusable()
1094 final View[] children = mChildren; in addFocusables() local
1097 final View child = children[i]; in addFocusables()
1156 final View[] children = mChildren; in findViewsWithText() local
1158 View child = children[i]; in findViewsWithText()
1179 final View[] children = mChildren; in findViewByAccessibilityIdTraversal() local
1181 View child = children[i]; in findViewByAccessibilityIdTraversal()
1195 final View[] children = mChildren; in dispatchWindowFocusChanged() local
1197 children[i].dispatchWindowFocusChanged(hasFocus); in dispatchWindowFocusChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/
DLockGuard.java67 public ArraySet<Object> children = new ArraySet<>(0, true); field in LockGuard.LockInfo
93 for (int i = 0; i < info.children.size(); i++) { in guard()
94 final Object child = info.children.valueAt(i); in guard()
113 sKnown.valueAt(i).children.add(lock); in guard()
143 for (int j = 0; j < info.children.size(); j++) { in dump()
144 pw.println(" Child " + lockToString(info.children.valueAt(j))); in dump()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMOTree.java28 Iterator<XMLNode> children = node.getChildren().iterator(); in MOTree() local
32 while (children.hasNext()) { in MOTree()
33 XMLNode child = children.next(); in MOTree()
36 children.remove(); in MOTree()
128 List<XMLNode> children = new ArrayList<>(); in buildNode() local
149 if (!children.isEmpty()) in buildNode()
171 children.add(child); in buildNode()
184 for (XMLNode child : children) { in buildNode()
188 if (!children.isEmpty()) in buildNode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupManager.java99 group.children.remove(removed); in onEntryRemovedInternal()
104 if (group.children.isEmpty()) { in onEntryRemovedInternal()
121 group.children.add(added); in onEntryAdded()
127 if (!group.children.isEmpty()) { in onEntryAdded()
129 (HashSet<NotificationData.Entry>) group.children.clone(); in onEntryAdded()
150 && (group.children.size() == 1 in updateSuppression()
151 || (group.children.size() == 0 in updateSuppression()
232 int realChildren = group != null ? group.children.size() : 0; in getTotalNumberOfChildren()
276 if (group.children.isEmpty()) { in isChildInGroupWithSummary()
296 return !group.children.isEmpty(); in isSummaryOfGroup()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
DMOTree.java31 Iterator<XMLNode> children = node.getChildren().iterator(); in MOTree() local
35 while (children.hasNext()) { in MOTree()
36 XMLNode child = children.next(); in MOTree()
39 children.remove(); in MOTree()
124 List<XMLNode> children = new ArrayList<>(); in buildNode() local
145 if (!children.isEmpty()) in buildNode()
167 children.add(child); in buildNode()
180 for (XMLNode child : children) { in buildNode()
184 if (!children.isEmpty()) in buildNode()
/frameworks/base/sax/java/android/sax/
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()
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()
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/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DBrowseFragment.java74 public void onChildrenLoaded(String parentId, List<MediaBrowserCompat.MediaItem> children,
78 if (page < 0 || pageSize != PAGE_SIZE || children == null
79 || children.size() > PAGE_SIZE) {
85 if (children.size() == 0) {
89 mMediaItems.addAll(children);
92 for (MediaBrowserCompat.MediaItem item : children) {
103 if (children.size() < PAGE_SIZE) {
114 public void onChildrenLoaded(String parentId, List<MediaBrowserCompat.MediaItem> children) {
117 mMediaItems.addAll(children);
/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/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java77 int children = getChildCount(); in onMeasure() local
78 int rows = (children + mNumColumns - 1) / mNumColumns; in onMeasure()
81 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onMeasure()
107 int children = getChildCount(); in onLayout() local
108 int rows = (children + mNumColumns - 1) / mNumColumns; in onLayout()
114 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onLayout()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp144 if (!currentParent->children.empty()) { in characterDataHandler()
145 Node* lastChild = currentParent->children.back().get(); in characterDataHandler()
336 if (node->children.empty()) { in findRootElement()
340 node = node->children.front().get(); in findRootElement()
347 children.push_back(std::move(child)); in addChild()
366 for (auto& childNode : children) { in findChildWithAttribute()
369 if (child->children.empty()) { in findChildWithAttribute()
372 child = child->children[0].get(); in findChildWithAttribute()
393 for (auto& childNode : children) { in getChildElements()
396 if (child->children.empty()) { in getChildElements()
[all …]
/frameworks/base/libs/hwui/
DDisplayList.cpp40 , children(stdAllocator) in DisplayList()
90 size_t index = children.size(); in addChild()
91 children.push_back(op); in addChild()
/frameworks/support/media-compat/api24/android/support/v4/media/
DMediaBrowserCompatApi24.java43 void onChildrenLoaded(@NonNull String parentId, List<?> children, @NonNull Bundle options); in onChildrenLoaded() argument
55 List<MediaBrowser.MediaItem> children, @NonNull Bundle options) { in onChildrenLoaded() argument
56 mSubscriptionCallback.onChildrenLoaded(parentId, children, options); in onChildrenLoaded()
/frameworks/base/tools/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()
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/
DStressProvider.java97 ArrayList<StubDocument> children = new ArrayList<StubDocument>(); in onCreate() local
98 mChildDocuments.put(STRESS_ROOT_1_DOC_ID, children); in onCreate()
102 children.add(document); in onCreate()
105 children = new ArrayList<StubDocument>(); in onCreate()
106 mChildDocuments.put(STRESS_ROOT_2_DOC_ID, children); in onCreate()
117 children.add(document); in onCreate()
/frameworks/base/test-runner/src/android/test/
DTestRunner.java287 String[] children = getChildren(method); in run() local
288 run(children); in run()
565 String[] children = getChildren(m); in getChildren() local
567 String[] allChildren = new String[testChildren.length + children.length]; in getChildren()
568 System.arraycopy(children, 0, allChildren, 0, children.length); in getChildren()
569 … System.arraycopy(testChildren, 0, allChildren, children.length, testChildren.length); in getChildren()
572 return children; in getChildren()
693 String[] children = getChildren(method); in countTests() local
695 for (String child : children) { in countTests()
/frameworks/base/services/core/java/com/android/server/firewall/
DFilterList.java27 protected final ArrayList<Filter> children = new ArrayList<Filter>(); field in FilterList
39 children.add(filter); in readChild()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DArgListExpr.java34 public ArgListExpr(int id, Iterable<Expr> children) { in ArgListExpr() argument
35 super(children); in ArgListExpr()
/frameworks/base/docs/html/guide/topics/ui/layout/
Dlinear.jd21 <p>{@link android.widget.LinearLayout} is a view group that aligns all children in a single
28 <p>All children of a {@link android.widget.LinearLayout} are
32 android.widget.LinearLayout LinearLayout} respects <em>margin</em>s between children
40 <h3>Equally weighted children</h3>
57 <em>weight</em> to individual children with the <a
64 assigned to children in the proportion of their declared weight. Default

12345