Home | History | Annotate | Download | only in widget

Lines Matching defs:packedPosition

60  * {@link ExpandableListContextMenuInfo#packedPosition} being a packed position
904 * @param packedPosition The group and/or child positions to be converted in
910 public int getFlatListPosition(long packedPosition) {
912 .obtainPosition(packedPosition);
1026 * @param packedPosition The packed position for which to return the type.
1031 public static int getPackedPositionType(long packedPosition) {
1032 if (packedPosition == PACKED_POSITION_VALUE_NULL) {
1036 return (packedPosition & PACKED_POSITION_MASK_TYPE) == PACKED_POSITION_MASK_TYPE
1045 * @param packedPosition The packed position from which the group position
1050 public static int getPackedPositionGroup(long packedPosition) {
1052 if (packedPosition == PACKED_POSITION_VALUE_NULL) return -1;
1054 return (int) ((packedPosition & PACKED_POSITION_MASK_GROUP) >> PACKED_POSITION_SHIFT_GROUP);
1064 * @param packedPosition The packed position from which the child position
1069 public static int getPackedPositionChild(long packedPosition) {
1071 if (packedPosition == PACKED_POSITION_VALUE_NULL) return -1;
1074 if ((packedPosition & PACKED_POSITION_MASK_TYPE) != PACKED_POSITION_MASK_TYPE) return -1;
1076 return (int) (packedPosition & PACKED_POSITION_MASK_CHILD);
1127 long packedPosition = pos.getPackedPosition();
1131 return new ExpandableListContextMenuInfo(view, packedPosition, id);
1252 public ExpandableListContextMenuInfo(View targetView, long packedPosition, long id) {
1254 this.packedPosition = packedPosition;
1271 public long packedPosition;