/frameworks/native/libs/ui/include/ui/ |
D | LogicalDisplayId.h | 28 struct LogicalDisplayId : ftl::Constructible<LogicalDisplayId, int32_t>, struct 29 ftl::Equatable<LogicalDisplayId>, 30 ftl::Orderable<LogicalDisplayId> { 39 static const LogicalDisplayId INVALID; argument 40 static const LogicalDisplayId DEFAULT; argument 43 constexpr inline LogicalDisplayId LogicalDisplayId::INVALID{-1}; 44 constexpr inline LogicalDisplayId LogicalDisplayId::DEFAULT{0}; 46 inline std::ostream& operator<<(std::ostream& stream, LogicalDisplayId displayId) { 54 struct hash<android::ui::LogicalDisplayId> { 55 size_t operator()(const android::ui::LogicalDisplayId& displayId) const {
|
/frameworks/native/services/inputflinger/ |
D | PointerChoreographer.h | 58 virtual void setDefaultMouseDisplayId(ui::LogicalDisplayId displayId) = 0; 61 ui::LogicalDisplayId associatedDisplayId = ui::LogicalDisplayId::INVALID) = 0; 62 virtual FloatPoint getMouseCursorPosition(ui::LogicalDisplayId displayId) = 0; 71 ui::LogicalDisplayId displayId, DeviceId deviceId) = 0; 76 virtual void setPointerIconVisibility(ui::LogicalDisplayId displayId, bool visible) = 0; 81 virtual void setFocusedDisplay(ui::LogicalDisplayId displayId) = 0; 95 void setDefaultMouseDisplayId(ui::LogicalDisplayId displayId) override; 98 ui::LogicalDisplayId associatedDisplayId) override; 99 FloatPoint getMouseCursorPosition(ui::LogicalDisplayId displayId) override; 103 ui::LogicalDisplayId displayId, DeviceId deviceId) override; [all …]
|
D | PointerChoreographer.cpp | 68 std::optional<std::tuple<ui::LogicalDisplayId, FloatPoint>> change, in notifyPointerDisplayChange() argument 90 std::unordered_set<ui::LogicalDisplayId> getPrivacySensitiveDisplaysFromWindowInfos( in getPrivacySensitiveDisplaysFromWindowInfos() 92 std::unordered_set<ui::LogicalDisplayId> privacySensitiveDisplays; in getPrivacySensitiveDisplaysFromWindowInfos() 137 mDefaultMouseDisplayId(ui::LogicalDisplayId::DEFAULT), 138 mNotifiedPointerDisplayId(ui::LogicalDisplayId::INVALID), 141 mCurrentFocusedDisplay(ui::LogicalDisplayId::DEFAULT), 199 ui::LogicalDisplayId targetDisplay = args.displayId; in fadeMouseCursorOnKeyPress() 200 if (targetDisplay == ui::LogicalDisplayId::INVALID) { in fadeMouseCursorOnKeyPress() 303 if (args.displayId == ui::LogicalDisplayId::INVALID) { in processDrawingTabletEventLocked() 466 const std::unordered_set<ui::LogicalDisplayId>& privacySensitiveDisplays) { in onPrivacySensitiveDisplaysChangedLocked() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | FakePointerController.h | 40 const std::map<ui::LogicalDisplayId, std::vector<int32_t>>& getSpots(); 44 ui::LogicalDisplayId getDisplayId() const override; 48 void setSkipScreenshotFlagForDisplay(ui::LogicalDisplayId displayId) override; 52 void assertViewportSet(ui::LogicalDisplayId displayId); 55 void assertSpotCount(ui::LogicalDisplayId displayId, int32_t count); 60 void assertIsSkipScreenshotFlagSet(ui::LogicalDisplayId displayId); 61 void assertIsSkipScreenshotFlagNotSet(ui::LogicalDisplayId displayId); 73 ui::LogicalDisplayId displayId) override; 80 std::optional<ui::LogicalDisplayId> mDisplayId; 85 std::map<ui::LogicalDisplayId, std::vector<int32_t>> mSpotsByDisplay; [all …]
|
D | InputDispatcher_test.cpp | 75 constexpr ui::LogicalDisplayId DISPLAY_ID = ui::LogicalDisplayId::DEFAULT; 76 constexpr ui::LogicalDisplayId SECOND_DISPLAY_ID = ui::LogicalDisplayId{1}; 132 ui::LogicalDisplayId::INVALID, INVALID_HMAC, AKEY_EVENT_ACTION_DOWN, 0, in getTestKeyEvent() 256 ui::LogicalDisplayId::INVALID, INVALID_HMAC, in TEST_F() 266 ui::LogicalDisplayId::INVALID, INVALID_HMAC, AKEY_EVENT_ACTION_MULTIPLE, 0, in TEST_F() 442 ui::LogicalDisplayId displayId) in FakeMonitorReceiver() 447 void consumeKeyDown(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeKeyDown() 459 void consumeMotionDown(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeMotionDown() 464 void consumeMotionMove(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeMotionMove() 469 void consumeMotionUp(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeMotionUp() [all …]
|
D | FakePointerController.cpp | 35 const std::map<ui::LogicalDisplayId, std::vector<int32_t>>& FakePointerController::getSpots() { in getSpots() 54 ui::LogicalDisplayId FakePointerController::getDisplayId() const { in getDisplayId() 56 return ui::LogicalDisplayId::INVALID; in getDisplayId() 79 void FakePointerController::setSkipScreenshotFlagForDisplay(ui::LogicalDisplayId displayId) { in setSkipScreenshotFlagForDisplay() 89 void FakePointerController::assertViewportSet(ui::LogicalDisplayId displayId) { in assertViewportSet() 104 void FakePointerController::assertSpotCount(ui::LogicalDisplayId displayId, int32_t count) { in assertSpotCount() 130 void FakePointerController::assertIsSkipScreenshotFlagSet(ui::LogicalDisplayId displayId) { in assertIsSkipScreenshotFlagSet() 134 void FakePointerController::assertIsSkipScreenshotFlagNotSet(ui::LogicalDisplayId displayId) { in assertIsSkipScreenshotFlagNotSet() 180 ui::LogicalDisplayId displayId) { in setSpots()
|
D | FakeWindows.h | 82 std::optional<ui::LogicalDisplayId> expectedDisplayId, 122 const std::string name, ui::LogicalDisplayId displayId, 125 sp<FakeWindowHandle> clone(ui::LogicalDisplayId displayId); 253 inline void consumeKeyDown(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { 258 inline void consumeKeyUp(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { 264 ui::LogicalDisplayId expectedDisplayId = ui::LogicalDisplayId::DEFAULT, 272 ui::LogicalDisplayId expectedDisplayId = ui::LogicalDisplayId::DEFAULT, 280 ui::LogicalDisplayId expectedDisplayId = ui::LogicalDisplayId::DEFAULT, 286 std::optional<ui::LogicalDisplayId> expectedDisplayId = std::nullopt, 298 ui::LogicalDisplayId expectedDisplayId = ui::LogicalDisplayId::DEFAULT, [all …]
|
D | FocusResolver_test.cpp | 77 ASSERT_EQ(ui::LogicalDisplayId{request.displayId}, changes->displayId); in TEST() 172 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, in TEST() 177 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, {window}); in TEST() 181 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, {mirror}); in TEST() 185 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, {}); in TEST() 207 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, windows); in TEST() 212 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, windows); in TEST() 236 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, windows); in TEST() 260 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, windows); in TEST() 265 changes = focusResolver.setInputWindows(ui::LogicalDisplayId{request.displayId}, windows); in TEST() [all …]
|
D | GestureConverter_test.cpp | 95 converter.setDisplayId(ui::LogicalDisplayId::DEFAULT); in TEST_F() 111 WithDisplayId(ui::LogicalDisplayId::DEFAULT))))); in TEST_F() 120 WithDisplayId(ui::LogicalDisplayId::DEFAULT))))); in TEST_F() 127 converter.setDisplayId(ui::LogicalDisplayId::DEFAULT); in TEST_F() 143 WithDisplayId(ui::LogicalDisplayId::DEFAULT))))); in TEST_F() 149 converter.setDisplayId(ui::LogicalDisplayId::DEFAULT); in TEST_F() 174 WithDisplayId(ui::LogicalDisplayId::DEFAULT))))); in TEST_F() 187 WithDisplayId(ui::LogicalDisplayId::DEFAULT))))); in TEST_F() 205 WithDisplayId(ui::LogicalDisplayId::DEFAULT))))); in TEST_F() 211 converter.setDisplayId(ui::LogicalDisplayId::DEFAULT); in TEST_F() [all …]
|
D | PointerChoreographer_test.cpp | 50 constexpr ui::LogicalDisplayId DISPLAY_ID = ui::LogicalDisplayId{5}; 51 constexpr ui::LogicalDisplayId ANOTHER_DISPLAY_ID = ui::LogicalDisplayId{10}; 67 ui::LogicalDisplayId associatedDisplayId) { in generateTestDeviceInfo() 77 static std::vector<DisplayViewport> createViewports(std::vector<ui::LogicalDisplayId> displayIds) { in createViewports() 138 .WillByDefault([this](ui::LogicalDisplayId displayId, const FloatPoint& position) { in SetUp() 173 void assertPointerDisplayIdNotified(ui::LogicalDisplayId displayId) { in assertPointerDisplayIdNotified() 193 std::optional<ui::LogicalDisplayId> mPointerDisplayIdNotified; 250 ui::LogicalDisplayId::INVALID)}}); in TEST_F() 258 ui::LogicalDisplayId::INVALID)}}); in TEST_F() 270 ui::LogicalDisplayId::INVALID)}}); in TEST_F() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | FocusResolver.h | 52 sp<IBinder> getFocusedWindowToken(ui::LogicalDisplayId displayId) const; 57 ui::LogicalDisplayId displayId; 61 ui::LogicalDisplayId displayId, 68 void displayRemoved(ui::LogicalDisplayId displayId); 109 std::unordered_map<ui::LogicalDisplayId /* displayId */, NamedToken> 114 std::unordered_map<ui::LogicalDisplayId /* displayId */, android::gui::FocusRequest> 119 std::unordered_map<ui::LogicalDisplayId /* displayId */, Focusability> 123 ui::LogicalDisplayId displayId, const std::string& reason, const sp<IBinder>& token, 125 std::optional<android::gui::FocusRequest> getFocusRequest(ui::LogicalDisplayId displayId);
|
D | InputDispatcher.h | 117 ui::LogicalDisplayId displayId, 119 void setFocusedDisplay(ui::LogicalDisplayId displayId) override; 124 ui::LogicalDisplayId displayId) override; 130 ui::LogicalDisplayId displayId) override; 135 base::Result<std::unique_ptr<InputChannel>> createInputMonitor(ui::LogicalDisplayId displayId, 142 void setDisplayEligibilityForPointerCapture(ui::LogicalDisplayId displayId, 147 void displayRemoved(ui::LogicalDisplayId displayId) override; 160 bool isPointerInWindow(const sp<IBinder>& token, ui::LogicalDisplayId displayId, 254 ui::LogicalDisplayId displayId, float x, float y, bool isStylus = false, 257 ui::LogicalDisplayId displayId, const sp<android::gui::WindowInfoHandle>& touchedWindow, [all …]
|
D | InputState.h | 39 bool isHovering(DeviceId deviceId, uint32_t source, ui::LogicalDisplayId displayId) const; 93 ui::LogicalDisplayId displayId{ui::LogicalDisplayId::INVALID}; 105 ui::LogicalDisplayId displayId{ui::LogicalDisplayId::INVALID};
|
D | FocusResolver.cpp | 44 sp<IBinder> FocusResolver::getFocusedWindowToken(ui::LogicalDisplayId displayId) const { in getFocusedWindowToken() 49 std::optional<FocusRequest> FocusResolver::getFocusRequest(ui::LogicalDisplayId displayId) { in getFocusRequest() 61 ui::LogicalDisplayId displayId, const std::vector<sp<WindowInfoHandle>>& windows) { in setInputWindows() 97 const ui::LogicalDisplayId displayId = ui::LogicalDisplayId{request.displayId}; in setFocusedWindow() 195 ui::LogicalDisplayId displayId, const std::string& reason, const sp<IBinder>& newFocus, in updateFocusedWindow() 242 void FocusResolver::displayRemoved(ui::LogicalDisplayId displayId) { in displayRemoved()
|
/frameworks/base/libs/input/ |
D | PointerControllerContext.h | 75 virtual void loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId displayId) = 0; 77 ui::LogicalDisplayId displayId) = 0; 81 ui::LogicalDisplayId displayId) = 0; 106 void clearSpotsByDisplay(ui::LogicalDisplayId displayId); 116 void addAnimationCallback(ui::LogicalDisplayId displayId, 118 void removeAnimationCallback(ui::LogicalDisplayId displayId); 141 void addCallback(ui::LogicalDisplayId displayId, std::function<bool(nsecs_t)> callback); 142 void removeCallback(ui::LogicalDisplayId displayId); 153 std::unordered_map<ui::LogicalDisplayId, std::function<bool(nsecs_t)>> callbacks;
|
D | PointerController.h | 58 ui::LogicalDisplayId getDisplayId() const override; 65 BitSet32 spotIdBits, ui::LogicalDisplayId displayId) override; 69 void setSkipScreenshotFlagForDisplay(ui::LogicalDisplayId displayId) override; 113 ui::LogicalDisplayId pointerDisplayId = ui::LogicalDisplayId::INVALID; 116 std::unordered_map<ui::LogicalDisplayId, TouchSpotController> spotControllers; 117 std::unordered_set<ui::LogicalDisplayId> displaysToSkipScreenshot; 136 const ui::Transform& getTransformForDisplayLocked(ui::LogicalDisplayId displayId) const 153 void setSpots(const PointerCoords*, const uint32_t*, BitSet32, ui::LogicalDisplayId) override { in setSpots() argument 181 ui::LogicalDisplayId getDisplayId() const override { in getDisplayId() 217 void setSpots(const PointerCoords*, const uint32_t*, BitSet32, ui::LogicalDisplayId) override { in setSpots() argument
|
D | SpriteController.h | 98 virtual void setDisplayId(ui::LogicalDisplayId displayId) = 0; 118 using ParentSurfaceProvider = std::function<sp<SurfaceControl>(ui::LogicalDisplayId)>; 177 ui::LogicalDisplayId displayId{ui::LogicalDisplayId::DEFAULT}; 211 virtual void setDisplayId(ui::LogicalDisplayId displayId); 276 sp<SurfaceControl> obtainSurface(int32_t width, int32_t height, ui::LogicalDisplayId displayId,
|
/frameworks/native/services/inputflinger/dispatcher/include/ |
D | InputDispatcherInterface.h | 95 ui::LogicalDisplayId displayId, 102 virtual void setFocusedDisplay(ui::LogicalDisplayId displayId) = 0; 133 ui::LogicalDisplayId displayId) = 0; 160 ui::LogicalDisplayId displayId) = 0; 184 ui::LogicalDisplayId displayId, const std::string& name, gui::Pid pid) = 0; 210 virtual void setDisplayEligibilityForPointerCapture(ui::LogicalDisplayId displayId, 222 virtual void displayRemoved(ui::LogicalDisplayId displayId) = 0; 238 virtual bool isPointerInWindow(const sp<IBinder>& token, ui::LogicalDisplayId displayId,
|
/frameworks/base/libs/input/tests/ |
D | PointerController_test.cpp | 55 virtual void loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId displayId) override; 57 ui::LogicalDisplayId displayId) override; 61 ui::LogicalDisplayId displayId) override; 77 void MockPointerControllerPolicyInterface::loadPointerIcon(SpriteIcon* icon, ui::LogicalDisplayId) { in loadPointerIcon() argument 83 ui::LogicalDisplayId) { in loadPointerResources() argument 92 std::map<PointerIconStyle, PointerAnimation>* outAnimationResources, ui::LogicalDisplayId) { in loadAdditionalMouseResources() argument 179 void ensureDisplayViewportIsSet(ui::LogicalDisplayId displayId = ui::LogicalDisplayId::DEFAULT); 212 void PointerControllerTest::ensureDisplayViewportIsSet(ui::LogicalDisplayId displayId) { in ensureDisplayViewportIsSet() 342 ui::LogicalDisplayId::DEFAULT); in TEST_F() 346 mPointerController->setSkipScreenshotFlagForDisplay(ui::LogicalDisplayId::DEFAULT); in TEST_F() [all …]
|
/frameworks/native/services/inputflinger/include/ |
D | NotifyArgsBuilders.h | 58 MotionArgsBuilder& displayId(ui::LogicalDisplayId displayId) { in displayId() 154 ui::LogicalDisplayId mDisplayId{ui::LogicalDisplayId::DEFAULT}; 190 KeyArgsBuilder& displayId(ui::LogicalDisplayId displayId) { in displayId() 239 ui::LogicalDisplayId mDisplayId{ui::LogicalDisplayId::DEFAULT};
|
D | NotifyArgs.h | 64 ui::LogicalDisplayId displayId{ui::LogicalDisplayId::INVALID}; 77 uint32_t source, ui::LogicalDisplayId displayId, uint32_t policyFlags, 94 ui::LogicalDisplayId displayId{ui::LogicalDisplayId::INVALID}; 126 uint32_t source, ui::LogicalDisplayId displayId, uint32_t policyFlags,
|
D | PointerControllerInterface.h | 128 BitSet32 spotIdBits, ui::LogicalDisplayId displayId) = 0; 134 virtual ui::LogicalDisplayId getDisplayId() const = 0; 148 virtual void setSkipScreenshotFlagForDisplay(ui::LogicalDisplayId displayId) = 0;
|
D | InputReaderBase.h | 128 ui::LogicalDisplayId defaultPointerDisplayId; 138 std::set<ui::LogicalDisplayId> displaysWithMousePointerAccelerationDisabled; 246 defaultPointerDisplayId(ui::LogicalDisplayId::DEFAULT), in InputReaderConfiguration() 279 std::optional<DisplayViewport> getDisplayViewportById(ui::LogicalDisplayId displayId) const; 367 virtual bool canDispatchToDisplay(int32_t deviceId, ui::LogicalDisplayId displayId) = 0; 478 ui::LogicalDisplayId associatedDisplayId = ui::LogicalDisplayId::INVALID) = 0;
|
/frameworks/native/include/input/ |
D | InputEventBuilders.h | 85 MotionEventBuilder& displayId(ui::LogicalDisplayId displayId) { in displayId() 161 ui::LogicalDisplayId mDisplayId{ui::LogicalDisplayId::DEFAULT}; 211 KeyEventBuilder& displayId(ui::LogicalDisplayId displayId) { in displayId() 250 ui::LogicalDisplayId mDisplayId{ui::LogicalDisplayId::DEFAULT};
|
/frameworks/native/libs/gui/include/gui/ |
D | DisplayInfo.h | 32 ui::LogicalDisplayId displayId = ui::LogicalDisplayId::INVALID;
|