Home
last modified time | relevance | path

Searched refs:groupPosition (Results 1 – 12 of 12) sorted by relevance

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeExpandableAdapter.java102 private AdapterItem getChildItem(int groupPosition, int childPosition) { in getChildItem() argument
103 AdapterItem item = mItems.get(groupPosition); in getChildItem()
117 public int getChildrenCount(int groupPosition) { in getChildrenCount() argument
118 AdapterItem item = mItems.get(groupPosition); in getChildrenCount()
123 public Object getGroup(int groupPosition) { in getGroup() argument
124 return mItems.get(groupPosition); in getGroup()
128 public Object getChild(int groupPosition, int childPosition) { in getChild() argument
129 return getChildItem(groupPosition, childPosition); in getChild()
133 public View getGroupView(int groupPosition, boolean isExpanded, View convertView, in getGroupView() argument
136 AdapterItem item = mItems.get(groupPosition); in getGroupView()
[all …]
/frameworks/base/core/java/android/widget/
DExpandableListAdapter.java54 int getChildrenCount(int groupPosition); in getChildrenCount() argument
62 Object getGroup(int groupPosition); in getGroup() argument
72 Object getChild(int groupPosition, int childPosition); in getChild() argument
83 long getGroupId(int groupPosition); in getGroupId() argument
96 long getChildId(int groupPosition, int childPosition); in getChildId() argument
125 View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent); in getGroupView() argument
145 View getChildView(int groupPosition, int childPosition, boolean isLastChild, in getChildView() argument
155 boolean isChildSelectable(int groupPosition, int childPosition); in isChildSelectable() argument
172 void onGroupExpanded(int groupPosition); in onGroupExpanded() argument
179 void onGroupCollapsed(int groupPosition); in onGroupCollapsed() argument
DCursorTreeAdapter.java99 synchronized MyCursorHelper getChildrenCursorHelper(int groupPosition, boolean requestCursor) { in getChildrenCursorHelper() argument
100 MyCursorHelper cursorHelper = mChildrenCursorHelpers.get(groupPosition); in getChildrenCursorHelper()
103 if (mGroupCursorHelper.moveTo(groupPosition) == null) return null; in getChildrenCursorHelper()
107 mChildrenCursorHelpers.put(groupPosition, cursorHelper); in getChildrenCursorHelper()
152 public void setChildrenCursor(int groupPosition, Cursor childrenCursor) { in setChildrenCursor() argument
158 MyCursorHelper childrenCursorHelper = getChildrenCursorHelper(groupPosition, false); in setChildrenCursor()
167 public Cursor getChild(int groupPosition, int childPosition) { in getChild() argument
169 return getChildrenCursorHelper(groupPosition, true).moveTo(childPosition); in getChild()
172 public long getChildId(int groupPosition, int childPosition) { in getChildId() argument
173 return getChildrenCursorHelper(groupPosition, true).getId(childPosition); in getChildId()
[all …]
DSimpleExpandableListAdapter.java213 public Object getChild(int groupPosition, int childPosition) { in getChild() argument
214 return mChildData.get(groupPosition).get(childPosition); in getChild()
217 public long getChildId(int groupPosition, int childPosition) { in getChildId() argument
221 public View getChildView(int groupPosition, int childPosition, boolean isLastChild, in getChildView() argument
229 bindView(v, mChildData.get(groupPosition).get(childPosition), mChildFrom, mChildTo); in getChildView()
254 public int getChildrenCount(int groupPosition) { in getChildrenCount() argument
255 return mChildData.get(groupPosition).size(); in getChildrenCount()
258 public Object getGroup(int groupPosition) { in getGroup() argument
259 return mGroupData.get(groupPosition); in getGroup()
266 public long getGroupId(int groupPosition) { in getGroupId() argument
[all …]
DBaseExpandableListAdapter.java63 public void onGroupCollapsed(int groupPosition) { in onGroupCollapsed() argument
66 public void onGroupExpanded(int groupPosition) { in onGroupExpanded() argument
111 public int getChildType(int groupPosition, int childPosition) { in getChildType() argument
127 public int getGroupType(int groupPosition) { in getGroupType() argument
DExpandableListPosition.java81 static ExpandableListPosition obtainGroupPosition(int groupPosition) { in obtainGroupPosition() argument
82 return obtain(GROUP, groupPosition, 0, 0); in obtainGroupPosition()
85 static ExpandableListPosition obtainChildPosition(int groupPosition, int childPosition) { in obtainChildPosition() argument
86 return obtain(CHILD, groupPosition, childPosition, 0); in obtainChildPosition()
DExpandableListView.java802 void onGroupCollapse(int groupPosition); in onGroupCollapse() argument
821 void onGroupExpand(int groupPosition); in onGroupExpand() argument
847 boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, in onGroupClick() argument
875 boolean onChildClick(ExpandableListView parent, View v, int groupPosition, in onChildClick() argument
974 public void setSelectedGroup(int groupPosition) { in setSelectedGroup() argument
976 .obtainGroupPosition(groupPosition); in setSelectedGroup()
995 … public boolean setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) { in setSelectedChild() argument
997 groupPosition, childPosition); in setSelectedChild()
1006 expandGroup(groupPosition); in setSelectedChild()
1031 public boolean isGroupExpanded(int groupPosition) { in isGroupExpanded() argument
[all …]
DHeterogeneousExpandableList.java54 int getGroupType(int groupPosition); in getGroupType() argument
71 int getChildType(int groupPosition, int childPosition); in getChildType() argument
DExpandableListConnector.java704 public boolean isGroupExpanded(int groupPosition) { in isGroupExpanded() argument
709 if (groupMetadata.gPos == groupPosition) { in isGroupExpanded()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DBenchmarkListAdapter.java51 public int getChildrenCount(int groupPosition) { in getChildrenCount() argument
52 return mRegistry.getBenchmarkCount(groupPosition); in getChildrenCount()
56 public Object getGroup(int groupPosition) { in getGroup() argument
57 return mRegistry.getBenchmarkGroup(groupPosition); in getGroup()
61 public Object getChild(int groupPosition, int childPosition) { in getChild() argument
62 BenchmarkGroup benchmarkGroup = mRegistry.getBenchmarkGroup(groupPosition); in getChild()
72 public long getGroupId(int groupPosition) { in getGroupId() argument
73 return groupPosition; in getGroupId()
77 public long getChildId(int groupPosition, int childPosition) { in getChildId() argument
87 …public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent… in getGroupView() argument
[all …]
/frameworks/base/core/java/android/app/
DExpandableListActivity.java180 public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, in onChildClick() argument
188 public void onGroupCollapse(int groupPosition) { in onGroupCollapse() argument
194 public void onGroupExpand(int groupPosition) { in onGroupExpand() argument
310 … public boolean setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) { in setSelectedChild() argument
311 return mList.setSelectedChild(groupPosition, childPosition, shouldExpandGroup); in setSelectedChild()
318 public void setSelectedGroup(int groupPosition) { in setSelectedGroup() argument
319 mList.setSelectedGroup(groupPosition); in setSelectedGroup()
/frameworks/ex/common/java/com/android/common/widget/
DGroupingListAdapter.java55 private int groupPosition; field in GroupingListAdapter.PositionMetadata
352 metadata.groupPosition = i; in obtainPositionMetadata()
413 mGroupMetadata[mPositionMetadata.groupPosition] &= ~EXPANDED_GROUP_MASK; in toggleGroup()
415 mGroupMetadata[mPositionMetadata.groupPosition] |= EXPANDED_GROUP_MASK; in toggleGroup()