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
375 final ExpandableListPosition pos = getUnflattenedPos(flatListPos).position;
403 if (posMetadata.position.type == ExpandableListPosition.GROUP) {
405 .getGroup(posMetadata.position.groupPos);
406 } else if (posMetadata.position.type == ExpandableListPosition.CHILD) {
407 retValue = mExpandableListAdapter.getChild(posMetadata.position.groupPos,
408 posMetadata.position.childPos);
411 throw new RuntimeException("Flat list position is of unknown type");
421 final long groupId = mExpandableListAdapter.getGroupId(posMetadata.position.groupPos);
424 if (posMetadata.position.type == ExpandableListPosition.GROUP) {
426 } else if (posMetadata.position.type == ExpandableListPosition.CHILD) {
427 final long childId = mExpandableListAdapter.getChildId(posMetadata.position.groupPos,
428 posMetadata.position.childPos);
432 throw new RuntimeException("Flat list position is of unknown type");
444 if (posMetadata.position.type == ExpandableListPosition.GROUP) {
445 retValue = mExpandableListAdapter.getGroupView(posMetadata.position.groupPos,
447 } else if (posMetadata.position.type == ExpandableListPosition.CHILD) {
450 retValue = mExpandableListAdapter.getChildView(posMetadata.position.groupPos,
451 posMetadata.position.childPos, isLastChild, convertView, parent);
454 throw new RuntimeException("Flat list position is of unknown type");
464 final ExpandableListPosition pos = getUnflattenedPos(flatListPos).position;
574 * position (for subsequent exp groups) by accounting for the collapsed
590 * @param groupPos position of the group to collapse
610 * position metadata object.
646 if (posMetadata.position.groupPos < 0) {
676 posMetadata.position.groupPos,
677 mExpandableListAdapter.getGroupId(posMetadata.position.groupPos));
762 * Searches the expandable list adapter for a group position matching the
763 * given group ID. The search starts at the given seed position and then
765 * position, or 2) we run out of time, or 3) we have looked at every
766 * position
792 // first position scanned so far
795 // last position scanned so far
866 * position to either a) group position for groups, or b) child position for
872 /** This group's flat list position */
878 * This group's last child's flat list position, so basically
884 * This group's group position
944 * Data type that contains an expandable list position (can refer to either a group
954 /** Data type to hold the position and its type (child/group) */
955 public ExpandableListPosition position;
974 position = null;
988 pm.position = ExpandableListPosition.obtain(type, groupPos, childPos, flatListPos);