Lines Matching refs:position

34  * <li> flPos - Flat list position, the position used by ListView
35 * <li> gPos - Group position, the position of a group among all the groups
36 * <li> cPos - Child position, the position of a child among all the children
46 * Internally, this connector translates the flat list position that the
96 * Translates a flat list position to either a) group pos if the specified
97 * flat list position corresponds to a group, or b) child pos if it
102 * @param flPos the flat list position to be translated
103 * @return the group position or child position of the specified flat list
104 * position encompassed in a {@link PositionMetadata} object
134 * then we can calculate the group position of the group we're searching
136 * searched for, then the group being searched for's group position is
137 * the same as the flat list position (since there are no children before
148 * The flat list position is after the current middle group's
149 * last child's flat list position, so search right
154 * The flat list position is before the current middle group's
155 * flat list position, so search left
160 * The flat list position is this middle group's flat list
161 * position, so we've found an exact hit
168 /* The flat list position is a child of the middle group */
171 * Subtract the first child's flat list position from the
172 * specified flat list pos to get the child's position within
182 * If we've reached here, it means the flat list position must be a
194 /** What is its group position in the list of all groups? */
206 * insertion position is after the left group. Also, the
224 * insertion position is before the right group. Also, the
233 * list position to find out how many groups are in between the two
249 * flat list position. If searching for a child and its group is not expanded, this will
251 * position.
253 * @param pos a {@link ExpandableListPosition} representing either a group position
254 * or child position
255 * @return the flat list position encompassed in a {@link PositionMetadata}
272 * insert position is 0 (since the list is empty).
335 * insertion position is after the left group.
353 * insertion position is before the right group. Also, the
376 final ExpandableListPosition pos = metadata.position;
404 if (posMetadata.position.type == ExpandableListPosition.GROUP) {
406 .getGroup(posMetadata.position.groupPos);
407 } else if (posMetadata.position.type == ExpandableListPosition.CHILD) {
408 retValue = mExpandableListAdapter.getChild(posMetadata.position.groupPos,
409 posMetadata.position.childPos);
412 throw new RuntimeException("Flat list position is of unknown type");
422 final long groupId = mExpandableListAdapter.getGroupId(posMetadata.position.groupPos);
425 if (posMetadata.position.type == ExpandableListPosition.GROUP) {
427 } else if (posMetadata.position.type == ExpandableListPosition.CHILD) {
428 final long childId = mExpandableListAdapter.getChildId(posMetadata.position.groupPos,
429 posMetadata.position.childPos);
433 throw new RuntimeException("Flat list position is of unknown type");
445 if (posMetadata.position.type == ExpandableListPosition.GROUP) {
446 retValue = mExpandableListAdapter.getGroupView(posMetadata.position.groupPos,
448 } else if (posMetadata.position.type == ExpandableListPosition.CHILD) {
451 retValue = mExpandableListAdapter.getChildView(posMetadata.position.groupPos,
452 posMetadata.position.childPos, isLastChild, convertView, parent);
455 throw new RuntimeException("Flat list position is of unknown type");
466 final ExpandableListPosition pos = metadata.position;
576 * position (for subsequent exp groups) by accounting for the collapsed
592 * @param groupPos position of the group to collapse
614 * position metadata object.
652 if (posMetadata.position.groupPos < 0) {
682 posMetadata.position.groupPos,
683 mExpandableListAdapter.getGroupId(posMetadata.position.groupPos));
768 * Searches the expandable list adapter for a group position matching the
769 * given group ID. The search starts at the given seed position and then
771 * position, or 2) we run out of time, or 3) we have looked at every
772 * position
798 // first position scanned so far
801 // last position scanned so far
872 * position to either a) group position for groups, or b) child position for
878 /** This group's flat list position */
884 * This group's last child's flat list position, so basically
890 * This group's group position
950 * Data type that contains an expandable list position (can refer to either a group
960 /** Data type to hold the position and its type (child/group) */
961 public ExpandableListPosition position;
980 if (position != null) {
981 position.recycle();
982 position = null;
997 pm.position = ExpandableListPosition.obtain(type, groupPos, childPos, flatListPos);