Loading include/input/InputApplication.h +5 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,11 @@ public: return mInfo.token ? mInfo.dispatchingTimeout : defaultValue; } inline std::chrono::nanoseconds getDispatchingTimeout( std::chrono::nanoseconds defaultValue) const { return mInfo.token ? std::chrono::nanoseconds(mInfo.dispatchingTimeout) : defaultValue; } inline sp<IBinder> getApplicationToken() const { return mInfo.token; } Loading include/input/InputWindow.h +5 −0 Original line number Diff line number Diff line Loading @@ -222,6 +222,11 @@ public: return mInfo.token ? mInfo.dispatchingTimeout : defaultValue; } inline std::chrono::nanoseconds getDispatchingTimeout( std::chrono::nanoseconds defaultValue) const { return mInfo.token ? std::chrono::nanoseconds(mInfo.dispatchingTimeout) : defaultValue; } /** * Requests that the state of this object be updated to reflect * the most current available information about the application. Loading libs/nativewindow/include/android/native_window.h +6 −2 Original line number Diff line number Diff line Loading @@ -236,7 +236,11 @@ int32_t ANativeWindow_getBuffersDataSpace(ANativeWindow* window) __INTRODUCED_IN /** Compatibility value for ANativeWindow_setFrameRate. */ enum ANativeWindow_FrameRateCompatibility { /** * There are no inherent restrictions on the frame rate of this window. * There are no inherent restrictions on the frame rate of this window. When * the system selects a frame rate other than what the app requested, the * app will be able to run at the system frame rate without requiring pull * down. This value should be used when displaying game content, UIs, and * anything that isn't video. */ ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT = 0, /** Loading @@ -246,7 +250,7 @@ enum ANativeWindow_FrameRateCompatibility { * to do pull down or use some other technique to adapt to the system's * frame rate. The user experience is likely to be worse (e.g. more frame * stuttering) than it would be if the system had chosen the app's requested * frame rate. * frame rate. This value should be used for video content. */ ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_FIXED_SOURCE = 1 }; Loading services/inputflinger/dispatcher/Entry.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,12 @@ EventEntry::~EventEntry() { releaseInjectionState(); } std::string EventEntry::getDescription() const { std::string result; appendDescription(result); return result; } void EventEntry::release() { refCount -= 1; if (refCount == 0) { Loading services/inputflinger/dispatcher/Entry.h +2 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,8 @@ struct EventEntry { virtual void appendDescription(std::string& msg) const = 0; std::string getDescription() const; protected: EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags); virtual ~EventEntry(); Loading Loading
include/input/InputApplication.h +5 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,11 @@ public: return mInfo.token ? mInfo.dispatchingTimeout : defaultValue; } inline std::chrono::nanoseconds getDispatchingTimeout( std::chrono::nanoseconds defaultValue) const { return mInfo.token ? std::chrono::nanoseconds(mInfo.dispatchingTimeout) : defaultValue; } inline sp<IBinder> getApplicationToken() const { return mInfo.token; } Loading
include/input/InputWindow.h +5 −0 Original line number Diff line number Diff line Loading @@ -222,6 +222,11 @@ public: return mInfo.token ? mInfo.dispatchingTimeout : defaultValue; } inline std::chrono::nanoseconds getDispatchingTimeout( std::chrono::nanoseconds defaultValue) const { return mInfo.token ? std::chrono::nanoseconds(mInfo.dispatchingTimeout) : defaultValue; } /** * Requests that the state of this object be updated to reflect * the most current available information about the application. Loading
libs/nativewindow/include/android/native_window.h +6 −2 Original line number Diff line number Diff line Loading @@ -236,7 +236,11 @@ int32_t ANativeWindow_getBuffersDataSpace(ANativeWindow* window) __INTRODUCED_IN /** Compatibility value for ANativeWindow_setFrameRate. */ enum ANativeWindow_FrameRateCompatibility { /** * There are no inherent restrictions on the frame rate of this window. * There are no inherent restrictions on the frame rate of this window. When * the system selects a frame rate other than what the app requested, the * app will be able to run at the system frame rate without requiring pull * down. This value should be used when displaying game content, UIs, and * anything that isn't video. */ ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT = 0, /** Loading @@ -246,7 +250,7 @@ enum ANativeWindow_FrameRateCompatibility { * to do pull down or use some other technique to adapt to the system's * frame rate. The user experience is likely to be worse (e.g. more frame * stuttering) than it would be if the system had chosen the app's requested * frame rate. * frame rate. This value should be used for video content. */ ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_FIXED_SOURCE = 1 }; Loading
services/inputflinger/dispatcher/Entry.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,12 @@ EventEntry::~EventEntry() { releaseInjectionState(); } std::string EventEntry::getDescription() const { std::string result; appendDescription(result); return result; } void EventEntry::release() { refCount -= 1; if (refCount == 0) { Loading
services/inputflinger/dispatcher/Entry.h +2 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,8 @@ struct EventEntry { virtual void appendDescription(std::string& msg) const = 0; std::string getDescription() const; protected: EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags); virtual ~EventEntry(); Loading