Home
last modified time | relevance | path

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

12345678

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationTargetsHelperTest.kt37 val children = notificationTestHelper.createGroup(3).childrenContainer in notificationTargetsHelper() constant
38 val swiped = children.attachedChildren[0] in notificationTargetsHelper()
50 before = children.notificationHeaderWrapper, // group header in notificationTargetsHelper()
52 after = children.attachedChildren[1], in notificationTargetsHelper()
59 val children = notificationTestHelper.createGroup(3).childrenContainer in targetsForMiddleNotificationInGroup() constant
60 val swiped = children.attachedChildren[1] in targetsForMiddleNotificationInGroup()
72 before = children.attachedChildren[0], in targetsForMiddleNotificationInGroup()
74 after = children.attachedChildren[2], in targetsForMiddleNotificationInGroup()
81 val children = notificationTestHelper.createGroup(3).childrenContainer in targetsForLastNotificationInGroup() constant
82 val swiped = children.attachedChildren[2] in targetsForLastNotificationInGroup()
[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/base/services/core/java/com/android/server/notification/
DGroupHelper.java93 @NonNull final ArrayMap<String, NotificationAttributes> children) { in getAutogroupSummaryFlags() argument
94 boolean allChildrenHasFlag = children.size() > 0; in getAutogroupSummaryFlags()
96 for (int i = 0; i < children.size(); i++) { in getAutogroupSummaryFlags()
97 if (!hasAnyFlag(children.valueAt(i).flags, ALL_CHILDREN_FLAG)) { in getAutogroupSummaryFlags()
100 if (hasAnyFlag(children.valueAt(i).flags, ANY_CHILDREN_FLAGS)) { in getAutogroupSummaryFlags()
101 anyChildFlagSet |= (children.valueAt(i).flags & ANY_CHILDREN_FLAGS); in getAutogroupSummaryFlags()
157 final ArrayMap<String, NotificationAttributes> children = in maybeGroup() local
163 children.put(sbn.getKey(), attr); in maybeGroup()
164 mUngroupedNotifications.put(packageKey, children); in maybeGroup()
166 if (children.size() >= mAutoGroupAtCount || autogroupSummaryExists) { in maybeGroup()
[all …]
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/
DIndentingPrintWriterBenchmark.java104 public ArrayList<Node> children; field in IndentingPrintWriterBenchmark.Node
108 public static Node build(String name, Node... children) { in build() argument
111 if (children != null && children.length > 0) { in build()
112 node.children = Lists.newArrayList(children); in build()
132 if (children != null) { in dumpDirect()
133 for (Node child : children) { in dumpDirect()
144 if (children != null) { in dumpIndenting()
146 for (Node child : children) { in dumpIndenting()
/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/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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/render/
DNodeSpecBuilderTest.kt318 for (i in 0 until desiredTree.children.size) { in checkNode()
319 if (i >= actualTree.children.size) { in checkNode()
323 checkNode(desiredTree.children[i], actualTree.children[i]) in checkNode()
341 vararg children: NotificationEntry in group()
349 .setChildren(children.asList()) in group()
354 for (child in children) { in group()
360 private fun tree(vararg children: NodeSpecImpl): NodeSpecImpl { in tree()
361 return node(rootController, *children) in tree()
364 private fun node(view: NodeController, vararg children: NodeSpecImpl): NodeSpecImpl { in node()
366 node.children.addAll(children) in node()
[all …]
DShadeViewDifferTest.kt227 private fun applySpecAndCheck(vararg children: SpecBuilder) { in applySpecAndCheck()
228 applySpecAndCheck(node(rootController, *children).build()) in applySpecAndCheck()
233 val children = spec.children in checkMatchesSpec() constant
234 for (i in children.indices) { in checkMatchesSpec()
235 val childSpec = children[i] in checkMatchesSpec()
245 if (childSpec.children.isNotEmpty()) { in checkMatchesSpec()
319 private val children: Array<out SpecBuilder> constant in SpecBuilder
325 for (childBuilder in children) { in build()
326 spec.children.add(childBuilder.build(spec)) in build()
333 private fun node(controller: NodeController, vararg children: SpecBuilder): SpecBuilder { in node()
[all …]
/frameworks/base/core/java/android/view/
DViewGroup.java1289 final View[] children = mChildren; in hasFocusableChild() local
1292 final View child = children[i]; in hasFocusableChild()
1329 final View[] children = new View[mChildrenCount]; in addFocusables() local
1333 children[count++] = child; in addFocusables()
1336 FocusFinder.sort(children, 0, count, this, isLayoutRtl()); in addFocusables()
1338 children[i].addFocusables(views, direction, focusableMode); in addFocusables()
1447 final View[] children = mChildren; in findViewsWithText() local
1449 View child = children[i]; in findViewsWithText()
1470 final View[] children = mChildren; in findViewByAccessibilityIdTraversal() local
1472 View child = children[i]; in findViewByAccessibilityIdTraversal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/
DNodeController.kt97 val children: List<NodeSpec> in offerToKeepInParentForAnimation() constant
104 override val children = mutableListOf<NodeSpec>() constant in com.android.systemui.statusbar.notification.collection.render.NodeSpecImpl
116 if (tree.children.isNotEmpty()) { in treeSpecToStrHelper()
118 for (child in tree.children) { in treeSpecToStrHelper()
DNodeSpecBuilder.kt55 root.children.add(NodeSpecImpl(root, mediaContainerController)) in <lambda>()
75 root.children.add(NodeSpecImpl(root, headerController)) in <lambda>()
89 root.children.add(buildNotifNode(root, entry)) in <lambda>()
107 .apply { entry.children.forEach { children.add(buildNotifNode(this, it)) } } in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/
DMultiPackageVerifyingSession.java46 MultiPackageVerifyingSession(VerifyingSession parent, List<VerifyingSession> children) in MultiPackageVerifyingSession() argument
49 if (children.size() == 0) { in MultiPackageVerifyingSession()
53 mChildVerifyingSessions = children; in MultiPackageVerifyingSession()
55 for (int i = 0; i < children.size(); i++) { in MultiPackageVerifyingSession()
56 final VerifyingSession childVerifyingSession = children.get(i); in MultiPackageVerifyingSession()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/
DRenderNotificationListInteractor.kt84 val childModels = entry.children.map { it.toModel() } in buildActiveNotificationsStore()
89 children = childModels in buildActiveNotificationsStore()
115 for (child in entry.children) { in buildActiveNotificationsStore()
244 children: List<ActiveNotificationModel>, in createOrReuse()
246 return groups[key]?.takeIf { it.isCurrent(key, summary, children) } in createOrReuse()
247 ?: ActiveNotificationGroupModel(key, summary, children) in createOrReuse()
253 children: List<ActiveNotificationModel>, in ActiveNotificationGroupModel()
258 children != this.children -> false in ActiveNotificationGroupModel()
/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/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/services/core/java/com/android/server/
DLockGuard.java88 public ArraySet<Object> children = new ArraySet<>(0, true); field in LockGuard.LockInfo
117 for (int i = 0; i < info.children.size(); i++) { in guard()
118 final Object child = info.children.valueAt(i); in guard()
137 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/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/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DDynamicChildBindController.java75 List<NotificationEntry> children = groupNotifs.get(entry); in updateContentViews() local
76 if (children == null) { in updateContentViews()
83 for (int j = 0; j < children.size(); j++) { in updateContentViews()
84 NotificationEntry childEntry = children.get(j); in updateContentViews()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/domain/interactor/
DRenderNotificationsListInteractorTest.kt72 children = in <lambda>()
117 children = expected.map { (key, rank) -> mockNotificationEntry(key, rank) }, in <lambda>()
129 children: List<NotificationEntry>, in mockGroupEntry()
134 whenever(this.children).thenReturn(children) in mockGroupEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java83 int children = getChildCount(); in onMeasure() local
84 int rows = (children + mNumColumns - 1) / mNumColumns; in onMeasure()
87 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onMeasure()
113 int children = getChildCount(); in onLayout() local
114 int rows = (children + mNumColumns - 1) / mNumColumns; in onLayout()
120 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onLayout()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DGroupHelperTest.java155 ArrayMap<String, NotificationAttributes> children = new ArrayMap<>(); in testGetAutogroupSummaryFlags_noChildren() local
157 assertEquals(BASE_FLAGS, mGroupHelper.getAutogroupSummaryFlags(children)); in testGetAutogroupSummaryFlags_noChildren()
162 ArrayMap<String, NotificationAttributes> children = new ArrayMap<>(); in testGetAutogroupSummaryFlags_oneOngoing() local
163 children.put("a", getNotificationAttributes(0)); in testGetAutogroupSummaryFlags_oneOngoing()
164 children.put("b", getNotificationAttributes(FLAG_ONGOING_EVENT)); in testGetAutogroupSummaryFlags_oneOngoing()
165 children.put("c", getNotificationAttributes(FLAG_BUBBLE)); in testGetAutogroupSummaryFlags_oneOngoing()
168 mGroupHelper.getAutogroupSummaryFlags(children)); in testGetAutogroupSummaryFlags_oneOngoing()
173 ArrayMap<String, NotificationAttributes> children = new ArrayMap<>(); in testGetAutogroupSummaryFlags_oneOngoingNoClear() local
174 children.put("a", getNotificationAttributes(0)); in testGetAutogroupSummaryFlags_oneOngoingNoClear()
175 children.put("b", getNotificationAttributes(FLAG_ONGOING_EVENT | FLAG_NO_CLEAR)); in testGetAutogroupSummaryFlags_oneOngoingNoClear()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardStatusViewTest.kt11 import com.android.systemui.util.children
28 get() = statusViewContainer.children.filter { it != mediaView } in <lambda>()
54 statusViewContainer.children.forEach { assertThat(it.translationY).isEqualTo(translationY) } in setChildrenTranslationYIncludeMediaView()

12345678