Home
last modified time | relevance | path

Searched refs:PointerIcon (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/input/
DPointerIconCache.java19 import static android.view.PointerIcon.DEFAULT_POINTER_SCALE;
20 import static android.view.PointerIcon.POINTER_ICON_VECTOR_STYLE_FILL_BLACK;
33 import android.view.PointerIcon;
56 private final SparseArray<SparseArray<PointerIcon>> mLoadedPointerIconsByDisplayAndType =
65 private @PointerIcon.PointerIconVectorStyleFill int mPointerIconFillStyle =
119 public void setPointerFillStyle(@PointerIcon.PointerIconVectorStyleFill int fillStyle) { in setPointerFillStyle()
132 public @NonNull PointerIcon getLoadedPointerIcon(int displayId, int type) { in getLoadedPointerIcon()
134 SparseArray<PointerIcon> iconsByType = mLoadedPointerIconsByDisplayAndType.get( in getLoadedPointerIcon()
140 PointerIcon icon = iconsByType.get(type); in getLoadedPointerIcon()
145 theme.applyStyle(PointerIcon.vectorFillStyleToResource(mPointerIconFillStyle), in getLoadedPointerIcon()
[all …]
DNativeInputManagerService.java30 import android.view.PointerIcon;
192 boolean setPointerIcon(@NonNull PointerIcon icon, int displayId, int deviceId, int pointerId, in setPointerIcon()
473 public native boolean setPointerIcon(PointerIcon icon, int displayId, int deviceId, in setPointerIcon()
DInputSettingsObserver.java19 import static android.view.PointerIcon.DEFAULT_POINTER_SCALE;
20 import static android.view.PointerIcon.POINTER_ICON_VECTOR_STYLE_FILL_BLACK;
/frameworks/base/core/java/android/view/
DPointerIcon.java61 public final class PointerIcon implements Parcelable { class
171 private static final SparseArray<PointerIcon> SYSTEM_ICONS = new SparseArray<>();
216 private PointerIcon(int type) { in PointerIcon() method in PointerIcon
229 public static @NonNull PointerIcon getSystemIcon(@NonNull Context context, int type) { in getSystemIcon()
241 private static @NonNull PointerIcon getSystemIcon(int type) { in getSystemIcon()
245 PointerIcon icon = SYSTEM_ICONS.get(type); in getSystemIcon()
247 icon = new PointerIcon(type); in getSystemIcon()
258 public static @NonNull PointerIcon getLoadedSystemIcon(@NonNull Context context, int type, in getLoadedSystemIcon()
300 final PointerIcon icon = new PointerIcon(type); in getLoadedSystemIcon()
323 public static @NonNull PointerIcon create(@NonNull Bitmap bitmap, float hotSpotX, in create()
[all …]
DPointerIcon.aidl19 parcelable PointerIcon;
DHandwritingInitiator.java559 public PointerIcon onResolvePointerIcon(Context context, MotionEvent event) { in onResolvePointerIcon()
566 return PointerIcon.getSystemIcon(context, PointerIcon.TYPE_HANDWRITING); in onResolvePointerIcon()
574 return PointerIcon.getSystemIcon(context, PointerIcon.TYPE_HANDWRITING); in onResolvePointerIcon()
/frameworks/base/tests/Input/src/com/android/test/input/
DPointerIconLoadingTest.kt24 import android.view.PointerIcon
89 PointerIcon.vectorFillStyleToResource(PointerIcon.POINTER_ICON_VECTOR_STYLE_FILL_GREEN), in testPointerFillStyle()
93 PointerIcon.getLoadedSystemIcon( in testPointerFillStyle()
95 PointerIcon.TYPE_ARROW, in testPointerFillStyle()
114 PointerIcon.getLoadedSystemIcon( in testPointerScale()
116 PointerIcon.TYPE_ARROW, in testPointerScale()
/frameworks/base/core/java/android/widget/
DImageButton.java27 import android.view.PointerIcon;
107 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon()
112 ? PointerIcon.TYPE_ARROW in onResolvePointerIcon()
113 : PointerIcon.TYPE_HAND; in onResolvePointerIcon()
114 return PointerIcon.getSystemIcon(getContext(), pointerIcon); in onResolvePointerIcon()
DButton.java28 import android.view.PointerIcon;
180 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon()
188 return PointerIcon.getSystemIcon(getContext(), PointerIcon.TYPE_HAND); in onResolvePointerIcon()
DTabWidget.java34 import android.view.PointerIcon;
543 child.setPointerIcon(PointerIcon.getSystemIcon(getContext(), PointerIcon.TYPE_HAND)); in addView()
560 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon()
DSpinner.java47 import android.view.PointerIcon;
943 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon()
947 ? PointerIcon.TYPE_ARROW in onResolvePointerIcon()
948 : PointerIcon.TYPE_HAND; in onResolvePointerIcon()
949 return PointerIcon.getSystemIcon(getContext(), pointerIcon); in onResolvePointerIcon()
DSimpleMonthView.java49 import android.view.PointerIcon;
1046 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon()
1058 ? PointerIcon.TYPE_ARROW in onResolvePointerIcon()
1059 : PointerIcon.TYPE_HAND; in onResolvePointerIcon()
1060 return PointerIcon.getSystemIcon(getContext(), pointerIcon); in onResolvePointerIcon()
/frameworks/base/core/tests/coretests/src/android/widget/
DPointerIconTest.java27 import android.view.PointerIcon;
62 assertOnResolvePointerIconForMouseEvent(R.id.button, PointerIcon.TYPE_HAND); in button_mouse_onResolvePointerIcon_returnsTypeHand()
89 assertOnResolvePointerIconForMouseEvent(R.id.imagebutton, PointerIcon.TYPE_HAND); in imageButton_mouse_onResolvePointerIconreturnsTypeHand()
130 assertOnResolvePointerIconForMouseEvent(R.id.edittext, PointerIcon.TYPE_TEXT); in editText_mouse_onResolvePointerIcon_returnsTypeText()
143 assertOnResolvePointerIconForMouseEvent(R.id.spinner, PointerIcon.TYPE_HAND); in spinner_mouse_onResolvePointerIcon_returnsTypeHand()
170 assertOnResolvePointerIconForMouseEvent(R.id.timepicker, PointerIcon.TYPE_HAND); in radialTimePickerView_mouse_onResolvePointerIcon_returnsTypeHand()
191 assertPointerIconForCalendarView(/* pointerType */ PointerIcon.TYPE_HAND, in calendarView_mouse_onResolvePointerIcon_returnsTypeHand()
226 PointerIcon icon = calendarView.onResolvePointerIcon(event, /* pointerIndex */ 0); in assertPointerIconForCalendarView()
248 PointerIcon icon = view.onResolvePointerIcon(event, /* pointerIndex */ 0); in assertOnResolvePointerIconForMouseEvent()
275 PointerIcon icon = view.onResolvePointerIcon(event, /* pointerIndex */ 0); in assertOnResolvePointerIconReturnNull()
/frameworks/base/core/jni/
Dandroid_view_PointerIcon.h33 struct PointerIcon { struct
34 inline PointerIcon() { reset(); } in PointerIcon() argument
62 PointerIcon android_view_PointerIcon_toNative(JNIEnv* env, jobject pointerIconObj);
Dandroid_view_PointerIcon.cpp46 PointerIcon android_view_PointerIcon_toNative(JNIEnv* env, jobject pointerIconObj) { in android_view_PointerIcon_toNative()
50 PointerIcon icon; in android_view_PointerIcon_toNative()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragResizeInputListener.java51 import android.view.PointerIcon;
287 private int mLastCursorType = PointerIcon.TYPE_DEFAULT;
503 int cursorType = PointerIcon.TYPE_DEFAULT; in updateCursorType()
507 cursorType = PointerIcon.TYPE_HORIZONTAL_DOUBLE_ARROW; in updateCursorType()
511 cursorType = PointerIcon.TYPE_VERTICAL_DOUBLE_ARROW; in updateCursorType()
515 cursorType = PointerIcon.TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW; in updateCursorType()
519 cursorType = PointerIcon.TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW; in updateCursorType()
531 if (mLastCursorType != cursorType || cursorType != PointerIcon.TYPE_DEFAULT) { in updateCursorType()
534 mInputManager.setPointerIcon(PointerIcon.getSystemIcon(mContext, cursorType), in updateCursorType()
/frameworks/base/core/tests/coretests/src/android/view/stylus/
DHandwritingInitiatorTest.java51 import android.view.PointerIcon;
607 PointerIcon icon = mHandwritingInitiator.onResolvePointerIcon(mContext, hoverEvent); in onResolvePointerIcon_withinHWArea_showPointerIcon()
608 assertThat(icon.getType()).isEqualTo(PointerIcon.TYPE_HANDWRITING); in onResolvePointerIcon_withinHWArea_showPointerIcon()
617 PointerIcon icon = mHandwritingInitiator.onResolvePointerIcon(mContext, hoverEvent); in onResolvePointerIcon_withinExtendedHWArea_showPointerIcon()
618 assertThat(icon.getType()).isEqualTo(PointerIcon.TYPE_HANDWRITING); in onResolvePointerIcon_withinExtendedHWArea_showPointerIcon()
631 PointerIcon icon1 = mHandwritingInitiator.onResolvePointerIcon(mContext, hoverEvent1); in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
636 PointerIcon icon2 = mHandwritingInitiator.onResolvePointerIcon(mContext, hoverEvent2); in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
638 assertThat(icon2.getType()).isEqualTo(PointerIcon.TYPE_HANDWRITING); in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
642 PointerIcon icon3 = mHandwritingInitiator.onResolvePointerIcon(mContext, hoverEvent1); in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
643 assertThat(icon3.getType()).isEqualTo(PointerIcon.TYPE_HANDWRITING); in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
[all …]
/frameworks/layoutlib/bridge/src/android/view/
DPointerIcon_Delegate.java27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, in loadResource()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSystemSettingsValidators.java29 import static android.view.PointerIcon.DEFAULT_POINTER_SCALE;
30 import static android.view.PointerIcon.LARGE_POINTER_SCALE;
31 import static android.view.PointerIcon.POINTER_ICON_VECTOR_STYLE_FILL_BEGIN;
32 import static android.view.PointerIcon.POINTER_ICON_VECTOR_STYLE_FILL_END;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDividerView.java19 import static android.view.PointerIcon.TYPE_HORIZONTAL_DOUBLE_ARROW;
20 import static android.view.PointerIcon.TYPE_VERTICAL_DOUBLE_ARROW;
41 import android.view.PointerIcon;
310 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon()
311 return PointerIcon.getSystemIcon(getContext(), in onResolvePointerIcon()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenshotTests.java50 import android.view.PointerIcon;
275 PointerIcon.getSystemIcon(this, PointerIcon.TYPE_NULL)); in onCreate()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DHandwritingModeController.java45 import android.view.PointerIcon;
331 PointerIcon.getSystemIcon(mContext, PointerIcon.TYPE_NOT_SPECIFIED), in startHandwritingSession()
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl45 import android.view.PointerIcon;
150 boolean setPointerIcon(in PointerIcon icon, int displayId, int deviceId, int pointerId, in setPointerIcon()
/frameworks/base/services/core/java/com/android/server/wm/
DDragDropController.java44 import android.view.PointerIcon;
269 PointerIcon.getSystemIcon( in performDrag()
270 mService.mContext, PointerIcon.TYPE_GRABBING), in performDrag()
/frameworks/base/core/java/android/view/flags/
Dview_flags.aconfig25 description: "Feature flag to enable vector drawables in addition to bitmaps for PointerIcon."

12