Home
last modified time | relevance | path

Searched refs:hotSpotX (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/libs/input/
DSpriteIcon.h31 explicit SpriteIcon(const graphics::Bitmap& bitmap, PointerIconStyle style, float hotSpotX, in SpriteIcon()
35 hotSpotX(hotSpotX), in SpriteIcon()
41 float hotSpotX{};
DSpriteController.cpp226 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites()
247 p.writeFloat(update.state.icon.hotSpotX); in doUpdateSprites()
407 if (!mLocked.state.icon.isValid() || mLocked.state.icon.hotSpotX != icon.hotSpotX || in setIcon()
410 mLocked.state.icon.hotSpotX = icon.hotSpotX; in setIcon()
/frameworks/base/libs/input/tests/
DPointerController_test.cpp140 icon->hotSpotX = hotSpot.first; in loadPointerIconForType()
242 Field(&SpriteIcon::hotSpotX, hotspot.first), in TEST_F()
257 Field(&SpriteIcon::hotSpotX, hotspot.first), in TEST_F()
284 Field(&SpriteIcon::hotSpotX, hotspot.first), in TEST_F()
294 float hotSpotX = 15; in TEST_F() local
299 icon.hotSpotX = hotSpotX; in TEST_F()
306 Field(&SpriteIcon::hotSpotX, hotSpotX), in TEST_F()
/frameworks/base/core/jni/
Dandroid_view_PointerIcon.h38 float hotSpotX; member
49 hotSpotX = 0; in reset()
Dandroid_view_PointerIcon.cpp53 icon.hotSpotX = env->GetFloatField(pointerIconObj, gPointerIconClassInfo.mHotSpotX); in android_view_PointerIcon_toNative()
/frameworks/base/core/java/android/view/
DPointerIcon.java323 public static @NonNull PointerIcon create(@NonNull Bitmap bitmap, float hotSpotX, in create() argument
328 validateHotSpot(bitmap, hotSpotX, hotSpotY, false /* isScaled */); in create()
332 icon.mHotSpotX = hotSpotX; in create()
488 final float hotSpotX; in loadResource() local
496 hotSpotX = a.getDimension(com.android.internal.R.styleable.PointerIcon_hotSpotX, 0) in loadResource()
568 validateHotSpot(bitmap, hotSpotX, hotSpotY, true /* isScaled */); in loadResource()
571 mHotSpotX = hotSpotX; in loadResource()
582 private static void validateHotSpot(Bitmap bitmap, float hotSpotX, float hotSpotY, in validateHotSpot() argument
586 if (hotSpotX < 0 || (isScaled ? (int) hotSpotX > bitmap.getWidth() in validateHotSpot()
587 : hotSpotX >= bitmap.getWidth())) { in validateHotSpot()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp239 return SpriteIcon(pointerIcon.bitmap, pointerIcon.style, pointerIcon.hotSpotX, in toSpriteIcon()
1670 pointerIcon.hotSpotX, pointerIcon.hotSpotY, in loadAdditionalMouseResources()
1674 pointerIcon.style, pointerIcon.hotSpotX, in loadAdditionalMouseResources()
2488 pointerIcon.style, pointerIcon.hotSpotX, in nativeSetPointerIcon()
/frameworks/base/core/api/
Dcurrent.txt949 field public static final int hotSpotX = 16844055; // 0x1010517
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt75272 Lcom/android/internal/R$attr;->hotSpotX:I