Loading include/input/Input.h +2 −3 Original line number Diff line number Diff line Loading @@ -382,7 +382,6 @@ struct PointerCoords { // window scale. The global scale will be applied to TOUCH/TOOL_MAJOR/MINOR // axes, however the window scaling will not. void scale(float globalScale, float windowXScale, float windowYScale); void applyOffset(float xOffset, float yOffset); void transform(const ui::Transform& transform); Loading Loading @@ -572,7 +571,7 @@ public: inline float getYOffset() const { return mTransform.ty(); } inline ui::Transform getTransform() const { return mTransform; } inline const ui::Transform& getTransform() const { return mTransform; } int getSurfaceRotation() const; Loading @@ -590,7 +589,7 @@ public: void setCursorPosition(float x, float y); ui::Transform getRawTransform() const { return mRawTransform; } inline const ui::Transform& getRawTransform() const { return mRawTransform; } static inline bool isValidCursorPosition(float x, float y) { return !isnan(x) && !isnan(y); } Loading libs/gui/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ cc_library_static { host_supported: true, srcs: [ ":guiconstants_aidl", ":inputconstants_aidl", "android/gui/DisplayInfo.aidl", "android/gui/FocusRequest.aidl", "android/gui/InputApplicationInfo.aidl", Loading libs/gui/SurfaceComposerClient.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -1104,7 +1104,8 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setFlags } if ((mask & layer_state_t::eLayerOpaque) || (mask & layer_state_t::eLayerHidden) || (mask & layer_state_t::eLayerSecure) || (mask & layer_state_t::eLayerSkipScreenshot) || (mask & layer_state_t::eEnableBackpressure)) { (mask & layer_state_t::eEnableBackpressure) || (mask & layer_state_t::eLayerIsDisplayDecoration)) { s->what |= layer_state_t::eFlagsChanged; } s->flags &= ~mask; Loading libs/gui/WindowInfo.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,10 @@ bool WindowInfo::isSpy() const { return inputFeatures.test(Feature::SPY); } bool WindowInfo::interceptsStylus() const { return inputFeatures.test(Feature::INTERCEPTS_STYLUS); } bool WindowInfo::overlaps(const WindowInfo* other) const { return frameLeft < other->frameRight && frameRight > other->frameLeft && frameTop < other->frameBottom && frameBottom > other->frameTop; Loading libs/gui/include/gui/LayerState.h +1 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ struct layer_state_t { // set. This blocks the client until all the buffers have been presented. If the buffers // have presentation timestamps, then we may drop buffers. eEnableBackpressure = 0x100, // ENABLE_BACKPRESSURE eLayerIsDisplayDecoration = 0x200, // DISPLAY_DECORATION }; enum { Loading Loading
include/input/Input.h +2 −3 Original line number Diff line number Diff line Loading @@ -382,7 +382,6 @@ struct PointerCoords { // window scale. The global scale will be applied to TOUCH/TOOL_MAJOR/MINOR // axes, however the window scaling will not. void scale(float globalScale, float windowXScale, float windowYScale); void applyOffset(float xOffset, float yOffset); void transform(const ui::Transform& transform); Loading Loading @@ -572,7 +571,7 @@ public: inline float getYOffset() const { return mTransform.ty(); } inline ui::Transform getTransform() const { return mTransform; } inline const ui::Transform& getTransform() const { return mTransform; } int getSurfaceRotation() const; Loading @@ -590,7 +589,7 @@ public: void setCursorPosition(float x, float y); ui::Transform getRawTransform() const { return mRawTransform; } inline const ui::Transform& getRawTransform() const { return mRawTransform; } static inline bool isValidCursorPosition(float x, float y) { return !isnan(x) && !isnan(y); } Loading
libs/gui/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ cc_library_static { host_supported: true, srcs: [ ":guiconstants_aidl", ":inputconstants_aidl", "android/gui/DisplayInfo.aidl", "android/gui/FocusRequest.aidl", "android/gui/InputApplicationInfo.aidl", Loading
libs/gui/SurfaceComposerClient.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -1104,7 +1104,8 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setFlags } if ((mask & layer_state_t::eLayerOpaque) || (mask & layer_state_t::eLayerHidden) || (mask & layer_state_t::eLayerSecure) || (mask & layer_state_t::eLayerSkipScreenshot) || (mask & layer_state_t::eEnableBackpressure)) { (mask & layer_state_t::eEnableBackpressure) || (mask & layer_state_t::eLayerIsDisplayDecoration)) { s->what |= layer_state_t::eFlagsChanged; } s->flags &= ~mask; Loading
libs/gui/WindowInfo.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,10 @@ bool WindowInfo::isSpy() const { return inputFeatures.test(Feature::SPY); } bool WindowInfo::interceptsStylus() const { return inputFeatures.test(Feature::INTERCEPTS_STYLUS); } bool WindowInfo::overlaps(const WindowInfo* other) const { return frameLeft < other->frameRight && frameRight > other->frameLeft && frameTop < other->frameBottom && frameBottom > other->frameTop; Loading
libs/gui/include/gui/LayerState.h +1 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ struct layer_state_t { // set. This blocks the client until all the buffers have been presented. If the buffers // have presentation timestamps, then we may drop buffers. eEnableBackpressure = 0x100, // ENABLE_BACKPRESSURE eLayerIsDisplayDecoration = 0x200, // DISPLAY_DECORATION }; enum { Loading