Searched defs:packedPosition (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
H A DExpandableListPosition.java89 static ExpandableListPosition obtainPosition(long packedPosition) { argument
90 if (packedPosition == ExpandableListView.PACKED_POSITION_VALUE_NULL) {
95 elp.groupPos = ExpandableListView.getPackedPositionGroup(packedPosition);
96 if (ExpandableListView.getPackedPositionType(packedPosition) ==
99 elp.childPos = ExpandableListView.getPackedPositionChild(packedPosition);
H A DExpandableListView.java59 * {@link ExpandableListContextMenuInfo#packedPosition} being a packed position
753 * @param packedPosition The group and/or child positions to be converted in
759 public int getFlatListPosition(long packedPosition) { argument
761 .obtainPosition(packedPosition));
873 * @param packedPosition The packed position for which to return the type.
878 public static int getPackedPositionType(long packedPosition) { argument
879 if (packedPosition == PACKED_POSITION_VALUE_NULL) {
883 return (packedPosition & PACKED_POSITION_MASK_TYPE) == PACKED_POSITION_MASK_TYPE
892 * @param packedPosition The packed position from which the group position
897 public static int getPackedPositionGroup(long packedPosition) { argument
916 getPackedPositionChild(long packedPosition) argument
1060 ExpandableListContextMenuInfo(View targetView, long packedPosition, long id) argument
1079 public long packedPosition; field in class:ExpandableListView.ExpandableListContextMenuInfo
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DExpandableListScenario.java172 * @param packedPosition The position of the item.
175 public final String getValueAtPosition(long packedPosition) { argument
176 final int type = ExpandableListView.getPackedPositionType(packedPosition);
179 return mGroups.get(ExpandableListView.getPackedPositionGroup(packedPosition))
180 .children.get(ExpandableListView.getPackedPositionChild(packedPosition))
183 return mGroups.get(ExpandableListView.getPackedPositionGroup(packedPosition))
186 throw new IllegalStateException("packedPosition is not a valid position.");
193 * @param packedPosition The packed position.
196 private boolean isOutOfBounds(long packedPosition) { argument
197 final int type = ExpandableListView.getPackedPositionType(packedPosition);
226 getView(long packedPosition, View convertView, ViewGroup parent) argument
253 createView(long packedPosition, int flPos, ViewGroup parent, int desiredHeight) argument
[all...]

Completed in 56 milliseconds