Home
last modified time | relevance | path

Searched refs:SpriteIcon (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/libs/input/tests/
DPointerController_test.cpp55 virtual void loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId displayId) override;
59 std::map<PointerIconStyle, SpriteIcon>* outResources,
70 void loadPointerIconForType(SpriteIcon* icon, int32_t cursorType);
77 void MockPointerControllerPolicyInterface::loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId) { in loadPointerIcon()
91 std::map<PointerIconStyle, SpriteIcon>* outResources, in loadAdditionalMouseResources()
93 SpriteIcon icon; in loadAdditionalMouseResources()
137 void MockPointerControllerPolicyInterface::loadPointerIconForType(SpriteIcon* icon, int32_t type) { in loadPointerIconForType()
240 setIcon(AllOf(Field(&SpriteIcon::style, in TEST_F()
242 Field(&SpriteIcon::hotSpotX, hotspot.first), in TEST_F()
243 Field(&SpriteIcon::hotSpotY, hotspot.second)))); in TEST_F()
[all …]
/frameworks/base/libs/input/
DPointerControllerContext.h45 SpriteIcon spotHover;
46 SpriteIcon spotTouch;
47 SpriteIcon spotAnchor;
51 std::vector<SpriteIcon> animationFrames;
75 virtual void loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId displayId) = 0;
79 std::map<PointerIconStyle, SpriteIcon>* outResources,
DSpriteIcon.h29 struct SpriteIcon { struct
30 explicit SpriteIcon() = default;
31 explicit SpriteIcon(const graphics::Bitmap& bitmap, PointerIconStyle style, float hotSpotX, in SpriteIcon() function
DMouseCursorController.h60 void setCustomPointerIcon(const SpriteIcon& icon);
89 SpriteIcon pointerIcon;
94 std::map<PointerIconStyle, SpriteIcon> additionalMouseResources;
DSpriteController.h75 virtual void setIcon(const SpriteIcon& icon) = 0;
78 setIcon(SpriteIcon()); in clearIcon()
170 SpriteIcon icon;
205 virtual void setIcon(const SpriteIcon& icon);
DTouchSpotController.h62 void updateSprite(const SpriteIcon* icon, float x, float y, ui::LogicalDisplayId displayId,
67 const SpriteIcon* mLastIcon;
DSpriteIcon.cpp27 bool SpriteIcon::draw(sp<Surface> surface) const { in draw()
DPointerController.h68 void setCustomPointerIcon(const SpriteIcon& icon) override;
199 void setCustomPointerIcon(const SpriteIcon&) override { in setCustomPointerIcon() argument
DAndroid.bp38 "SpriteIcon.cpp",
DTouchSpotController.cpp42 void TouchSpotController::Spot::updateSprite(const SpriteIcon* icon, float newX, float newY, in updateSprite()
110 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 in setSpots()
DMouseCursorController.cpp292 void MouseCursorController::setCustomPointerIcon(const SpriteIcon& icon) { in setCustomPointerIcon()
386 std::map<PointerIconStyle, SpriteIcon>::const_iterator iter = in updatePointerLocked()
DPointerController.cpp284 void PointerController::setCustomPointerIcon(const SpriteIcon& icon) { in setCustomPointerIcon()
DSpriteController.cpp401 void SpriteController::SpriteImpl::setIcon(const SpriteIcon& icon) { in setIcon()
/frameworks/native/services/inputflinger/include/
DPointerControllerInterface.h25 struct SpriteIcon;
143 virtual void setCustomPointerIcon(const SpriteIcon& icon) = 0;
/frameworks/native/services/inputflinger/tests/
DFakePointerController.h27 struct SpriteIcon { struct
47 void setCustomPointerIcon(const SpriteIcon& icon) override; argument
DFakePointerController.cpp72 void FakePointerController::setCustomPointerIcon(const SpriteIcon& icon) { in setCustomPointerIcon()
DPointerChoreographer_test.cpp1645 ASSERT_TRUE(mChoreographer.setPointerIcon(std::make_unique<SpriteIcon>( in TEST_F()
1651 ASSERT_FALSE(mChoreographer.setPointerIcon(std::make_unique<SpriteIcon>( in TEST_F()
1981 ASSERT_TRUE(mChoreographer.setPointerIcon(std::make_unique<SpriteIcon>( in TEST_P()
1987 ASSERT_FALSE(mChoreographer.setPointerIcon(std::make_unique<SpriteIcon>( in TEST_P()
/frameworks/base/libs/input/tests/mocks/
DMockSprite.h30 MOCK_METHOD(void, setIcon, (const SpriteIcon& icon), (override));
/frameworks/native/services/inputflinger/
DPointerChoreographer.h30 struct SpriteIcon;
70 virtual bool setPointerIcon(std::variant<std::unique_ptr<SpriteIcon>, PointerIconStyle> icon,
102 bool setPointerIcon(std::variant<std::unique_ptr<SpriteIcon>, PointerIconStyle> icon,
DPointerChoreographer.cpp77 void setIconForController(const std::variant<std::unique_ptr<SpriteIcon>, PointerIconStyle>& icon, in setIconForController() argument
79 if (std::holds_alternative<std::unique_ptr<SpriteIcon>>(icon)) { in setIconForController()
80 if (std::get<std::unique_ptr<SpriteIcon>>(icon) == nullptr) { in setIconForController()
83 controller.setCustomPointerIcon(*std::get<std::unique_ptr<SpriteIcon>>(icon)); in setIconForController()
771 std::variant<std::unique_ptr<SpriteIcon>, PointerIconStyle> icon, in setPointerIcon() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp233 static SpriteIcon toSpriteIcon(PointerIcon pointerIcon) { in toSpriteIcon()
239 return SpriteIcon(pointerIcon.bitmap, pointerIcon.style, pointerIcon.hotSpotX, in toSpriteIcon()
302 bool setPointerIcon(std::variant<std::unique_ptr<SpriteIcon>, PointerIconStyle> icon,
369 virtual void loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId displayId);
373 std::map<PointerIconStyle, SpriteIcon>* outResources,
1335 std::variant<std::unique_ptr<SpriteIcon>, PointerIconStyle> icon, in setPointerIcon() argument
1632 void NativeInputManager::loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId displayId) { in loadPointerIcon()
1652 std::map<PointerIconStyle, SpriteIcon>* outResources, in loadAdditionalMouseResources()
2484 std::variant<std::unique_ptr<SpriteIcon>, PointerIconStyle> icon; in nativeSetPointerIcon()
2486 icon = std::make_unique<SpriteIcon>(pointerIcon.bitmap.copy( in nativeSetPointerIcon()