Lines Matching refs:PointerIcon
43 public final class PointerIcon implements Parcelable {
44 private static final String TAG = "PointerIcon";
140 private static final PointerIcon gNullIcon = new PointerIcon(TYPE_NULL);
141 private static final SparseArray<PointerIcon> gSystemIcons = new SparseArray<PointerIcon>();
154 private PointerIcon(int type) {
166 public static PointerIcon getNullIcon() {
179 public static PointerIcon getDefaultIcon(@NonNull Context context) {
193 public static PointerIcon getSystemIcon(@NonNull Context context, int type) {
202 PointerIcon icon = gSystemIcons.get(type);
225 icon = new PointerIcon(type);
257 public static PointerIcon create(@NonNull Bitmap bitmap, float hotSpotX, float hotSpotY) {
263 PointerIcon icon = new PointerIcon(TYPE_CUSTOM);
291 public static PointerIcon load(@NonNull Resources resources, @XmlRes int resourceId) {
296 PointerIcon icon = new PointerIcon(TYPE_CUSTOM);
311 public PointerIcon load(@NonNull Context context) {
320 PointerIcon result = new PointerIcon(mType);
331 public static final Parcelable.Creator<PointerIcon> CREATOR
332 = new Parcelable.Creator<PointerIcon>() {
333 public PointerIcon createFromParcel(Parcel in) {
341 PointerIcon icon = new PointerIcon(type);
349 return PointerIcon.create(bitmap, hotSpotX, hotSpotY);
352 public PointerIcon[] newArray(int size) {
353 return new PointerIcon[size];
380 if (other == null || !(other instanceof PointerIcon)) {
384 PointerIcon otherIcon = (PointerIcon) other;
408 parser, com.android.internal.R.styleable.PointerIcon);