HomeSort by relevance Sort by last modified time
    Searched refs:groupPosition (Results 1 - 25 of 38) sorted by null

1 2

  /frameworks/base/core/java/android/widget/
ExpandableListAdapter.java 50 * @param groupPosition the position of the group for which the children
54 int getChildrenCount(int groupPosition);
59 * @param groupPosition the position of the group
62 Object getGroup(int groupPosition);
67 * @param groupPosition the position of the group that the child resides in
72 Object getChild(int groupPosition, int childPosition);
80 * @param groupPosition the position of the group for which the ID is wanted
83 long getGroupId(int groupPosition);
91 * @param groupPosition the position of the group that contains the child
96 long getChildId(int groupPosition, int childPosition)
    [all...]
HeterogeneousExpandableList.java 45 * @param groupPosition the position of the group for which the type should be returned.
54 int getGroupType(int groupPosition);
61 * @param groupPosition the position of the group that the child resides in
71 int getChildType(int groupPosition, int childPosition);
CursorTreeAdapter.java 92 * @param groupPosition The group whose children will be returned
99 synchronized MyCursorHelper getChildrenCursorHelper(int groupPosition, boolean requestCursor) {
100 MyCursorHelper cursorHelper = mChildrenCursorHelpers.get(groupPosition);
103 if (mGroupCursorHelper.moveTo(groupPosition) == null) return null;
107 mChildrenCursorHelpers.put(groupPosition, cursorHelper);
149 * @param groupPosition The group whose children are being set via this Cursor.
152 public void setChildrenCursor(int groupPosition, Cursor childrenCursor) {
158 MyCursorHelper childrenCursorHelper = getChildrenCursorHelper(groupPosition, false);
167 public Cursor getChild(int groupPosition, int childPosition) {
169 return getChildrenCursorHelper(groupPosition, true).moveTo(childPosition)
    [all...]
BaseExpandableListAdapter.java 63 public void onGroupCollapsed(int groupPosition) {
66 public void onGroupExpanded(int groupPosition) {
111 public int getChildType(int groupPosition, int childPosition) {
125 * @return 0 for any groupPosition, since only one group type count is declared.
127 public int getGroupType(int groupPosition) {
SimpleExpandableListAdapter.java 213 public Object getChild(int groupPosition, int childPosition) {
214 return mChildData.get(groupPosition).get(childPosition);
217 public long getChildId(int groupPosition, int childPosition) {
221 public View getChildView(int groupPosition, int childPosition, boolean isLastChild,
229 bindView(v, mChildData.get(groupPosition).get(childPosition), mChildFrom, mChildTo);
254 public int getChildrenCount(int groupPosition) {
255 return mChildData.get(groupPosition).size();
258 public Object getGroup(int groupPosition) {
259 return mGroupData.get(groupPosition);
266 public long getGroupId(int groupPosition) {
    [all...]
ExpandableListPosition.java 81 static ExpandableListPosition obtainGroupPosition(int groupPosition) {
82 return obtain(GROUP, groupPosition, 0, 0);
85 static ExpandableListPosition obtainChildPosition(int groupPosition, int childPosition) {
86 return obtain(CHILD, groupPosition, childPosition, 0);
ExpandableListView.java 657 * @param groupPosition The group position that was collapsed
659 void onGroupCollapse(int groupPosition);
675 * @param groupPosition The group position that was expanded
677 void onGroupExpand(int groupPosition);
698 * @param groupPosition The group position that was clicked
702 boolean onGroupClick(ExpandableListView parent, View v, int groupPosition,
723 * @param groupPosition The group position that contains the child that
729 boolean onChildClick(ExpandableListView parent, View v, int groupPosition,
823 * @param groupPosition The position of the group that should be selected.
825 public void setSelectedGroup(int groupPosition) {
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
FakeExpandableAdapter.java 93 private AdapterItem getChildItem(int groupPosition, int childPosition) {
94 AdapterItem item = mItems.get(groupPosition);
106 public int getChildrenCount(int groupPosition) {
107 AdapterItem item = mItems.get(groupPosition);
111 public Object getGroup(int groupPosition) {
112 return mItems.get(groupPosition);
115 public Object getChild(int groupPosition, int childPosition) {
116 return getChildItem(groupPosition, childPosition);
119 public View getGroupView(int groupPosition, boolean isExpanded, View convertView,
122 AdapterItem item = mItems.get(groupPosition);
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
PositionTesterContextMenuListener.java 28 private int groupPosition, childPosition;
37 public void expectGroupContextMenu(int groupPosition) {
38 this.groupPosition = groupPosition;
42 public void expectChildContextMenu(int groupPosition, int childPosition) {
43 this.groupPosition = groupPosition;
49 this.groupPosition = flatPosition;
61 if (!areEqual("Wrong flat position", groupPosition, adapterContextMenuInfo.position)) {
79 if (!areEqual("Wrong group position", groupPosition, packedPositionGroup))
    [all...]
BaseExpandableListAdapterTest.java 206 public Object getChild(int groupPosition, int childPosition) {
210 public long getChildId(int groupPosition, int childPosition) {
214 public View getChildView(int groupPosition, int childPosition,
219 public int getChildrenCount(int groupPosition) {
223 public Object getGroup(int groupPosition) {
235 public long getGroupId(int groupPosition) {
239 public View getGroupView(int groupPosition, boolean isExpanded,
248 public boolean isChildSelectable(int groupPosition, int childPosition) {
ExpandableListViewTest.java 638 public int getChildrenCount(int groupPosition) {
639 switch (groupPosition) {
647 public Object getGroup(int groupPosition) {
648 switch (groupPosition) {
656 public Object getChild(int groupPosition, int childPosition) {
657 if (groupPosition == 0 && childPosition == 0)
663 public long getGroupId(int groupPosition) {
667 public long getChildId(int groupPosition, int childPosition) {
675 public View getGroupView(int groupPosition, boolean isExpanded,
680 public View getChildView(int groupPosition, int childPosition
    [all...]
  /packages/apps/Browser/src/com/android/browser/
DateSortedExpandableListAdapter.java 191 * @param groupPosition Position in the ExpandableList's set of groups
194 private int groupPositionToBin(int groupPosition) {
196 if (groupPosition < 0 || groupPosition >= DateSorter.DAY_COUNT) {
204 // the array is empty, in which case the provided groupPosition
206 return groupPosition;
209 while (groupPosition > -1) {
212 groupPosition--;
228 int groupPosition = ExpandableListView.getPackedPositionGroup(
232 return moveCursorToChildPosition(groupPosition, childPosition)
    [all...]
BrowserHistoryPage.java 273 int groupPosition, int childPosition, long id) {
494 void setSelectedGroup(int groupPosition) {
495 mSelectedGroup = groupPosition;
554 public long getChildId(int groupPosition, int childPosition) {
555 if (moveCursorToChildPosition(groupPosition, childPosition)) {
556 Cursor cursor = getCursor(groupPosition);
568 public int getChildrenCount(int groupPosition) {
569 if (groupPosition >= super.getGroupCount()) {
575 return super.getChildrenCount(groupPosition);
592 Cursor getCursor(int groupPosition) {
    [all...]
BrowserBookmarksPage.java 82 public int groupPosition;
177 if (handleContextItem(item.getItemId(), i.groupPosition, i.childPosition)) {
183 public boolean handleContextItem(int itemId, int groupPosition,
186 BrowserBookmarksAdapter adapter = getChildAdapter(groupPosition);
257 BrowserBookmarksAdapter adapter = getChildAdapter(info.groupPosition);
406 private BrowserBookmarksAdapter getChildAdapter(int groupPosition) {
407 return mGrid.getChildAdapter(groupPosition);
410 private BreadCrumbView getBreadCrumbs(int groupPosition) {
411 return mGrid.getBreadCrumbs(groupPosition);
416 int groupPosition, int childPosition, long id)
    [all...]
  /packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DateSortedExpandableListAdapter.java 203 * @param groupPosition Position in the ExpandableList's set of groups
206 private int groupPositionToBin(int groupPosition) {
207 if (groupPosition < 0 || groupPosition >= DateSorter.DAY_COUNT) {
215 // the array is empty, in which case the provided groupPosition
217 return groupPosition;
220 while (groupPosition > -1) {
223 groupPosition--;
239 int groupPosition = ExpandableListView.getPackedPositionGroup(
243 return moveCursorToChildPosition(groupPosition, childPosition)
    [all...]
DateSortedDownloadAdapter.java 43 public View getChildView(int groupPosition, int childPosition,
51 if (!moveCursorToChildPosition(groupPosition, childPosition)) {
56 ExpandableListView.getPackedPositionForChild(groupPosition, childPosition));
  /development/samples/ApiDemos/src/com/example/android/apis/view/
ExpandableList1.java 99 public Object getChild(int groupPosition, int childPosition) {
100 return children[groupPosition][childPosition];
103 public long getChildId(int groupPosition, int childPosition) {
107 public int getChildrenCount(int groupPosition) {
108 return children[groupPosition].length;
125 public View getChildView(int groupPosition, int childPosition, boolean isLastChild,
128 textView.setText(getChild(groupPosition, childPosition).toString());
132 public Object getGroup(int groupPosition) {
133 return groups[groupPosition];
140 public long getGroupId(int groupPosition) {
    [all...]
ExpandableList2.java 66 int groupPosition = (Integer) cookie;
67 mAdapter.setChildrenCursor(groupPosition, cursor);
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
ClusteredSuggestionsAdapter.java 153 public Suggestion getChild(int groupPosition, int childPosition) {
154 SuggestionCursor c = getGroup(groupPosition);
173 public long getChildId(int groupPosition, int childPosition) {
178 public View getChildView(int groupPosition, int childPosition, boolean isLastChild,
180 SuggestionCursor cursor = getGroup(groupPosition);
182 return getView(cursor, childPosition, getCombinedChildId(groupPosition, childPosition),
187 public int getChildrenCount(int groupPosition) {
188 SuggestionCursor group = getGroup(groupPosition);
193 public SuggestionCursor getGroup(int groupPosition) {
194 if (groupPosition < promotedGroupCount())
    [all...]
ClusteredSuggestionsView.java 55 ExpandableListView parent, View v, int groupPosition, long id) {
  /packages/apps/Browser/src/com/android/browser/view/
BookmarkExpandableView.java 200 int groupPosition = (Integer) originalView.getTag(R.id.group_position);
204 groupPosition);
228 public BrowserBookmarksAdapter getChildAdapter(int groupPosition) {
229 return mAdapter.mChildren.get(groupPosition);
240 extraState.groupPosition);
255 int groupPosition = (Integer) v.getTag(R.id.group_position);
257 return getChildAdapter(groupPosition).getItem(childPosition);
269 int groupPosition = (Integer) v.getTag(R.id.group_position);
271 if (mAdapter.getGroupCount() <= groupPosition
272 || mAdapter.mChildren.get(groupPosition).getCount() <= childPosition)
    [all...]
  /frameworks/base/core/java/android/app/
ExpandableListActivity.java 181 public boolean onChildClick(ExpandableListView parent, View v, int groupPosition,
189 public void onGroupCollapse(int groupPosition) {
195 public void onGroupExpand(int groupPosition) {
305 * @param groupPosition The position of the group that contains the child.
311 public boolean setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) {
312 return mList.setSelectedChild(groupPosition, childPosition, shouldExpandGroup);
317 * @param groupPosition The position of the group that should be selected.
319 public void setSelectedGroup(int groupPosition) {
320 mList.setSelectedGroup(groupPosition);
  /cts/tests/src/android/widget/cts/util/
ExpandableListScenario.java 303 public Object getChild(int groupPosition, int childPosition) {
304 return getValueAtPosition(ExpandableListView.getPackedPositionForChild(groupPosition,
308 public long getChildId(int groupPosition, int childPosition) {
309 return mGroups.get(groupPosition).children.get(childPosition).id;
312 public int getChildrenCount(int groupPosition) {
313 return mGroups.get(groupPosition).children.size();
316 public View getChildView(int groupPosition, int childPosition, boolean isLastChild,
318 return getView(ExpandableListView.getPackedPositionForChild(groupPosition,
322 public Object getGroup(int groupPosition) {
323 return getValueAtPosition(ExpandableListView.getPackedPositionForGroup(groupPosition));
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/list/
CustomContactListFilterActivity.java 571 public View getGroupView(int groupPosition, boolean isExpanded, View convertView,
581 final AccountDisplay account = (AccountDisplay)this.getGroup(groupPosition);
594 public View getChildView(int groupPosition, int childPosition, boolean isLastChild,
605 final AccountDisplay account = mAccounts.get(groupPosition);
606 final GroupDelta child = (GroupDelta)this.getChild(groupPosition, childPosition);
627 public Object getChild(int groupPosition, int childPosition) {
628 final AccountDisplay account = mAccounts.get(groupPosition);
639 public long getChildId(int groupPosition, int childPosition) {
640 final GroupDelta child = (GroupDelta)getChild(groupPosition, childPosition);
650 public int getChildrenCount(int groupPosition) {
    [all...]
  /cts/tests/src/android/app/cts/
ExpandableListTestActivity.java 170 public void onGroupCollapse(int groupPosition) {
172 super.onGroupCollapse(groupPosition);
176 public void onGroupExpand(int groupPosition) {
178 super.onGroupExpand(groupPosition);

Completed in 759 milliseconds

1 2