Loading Android.bp +6 −0 Original line number Diff line number Diff line Loading @@ -125,3 +125,9 @@ filegroup { srcs: ["aidl/android/hardware/display/IDeviceProductInfoConstants.aidl"], path: "aidl", } dirgroup { name: "trusty_dirgroup_frameworks_native", dirs: ["libs/binder"], visibility: ["//trusty/vendor/google/aosp/scripts"], } cmds/dumpstate/DumpstateInternal.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ bool DropRootUser() { const uint32_t cap_syslog_mask = CAP_TO_MASK(CAP_SYSLOG); const uint32_t cap_syslog_index = CAP_TO_INDEX(CAP_SYSLOG); bool has_cap_syslog = (capdata[cap_syslog_index].effective & cap_syslog_mask) != 0; bool has_cap_syslog = (capdata[cap_syslog_index].permitted & cap_syslog_mask) != 0; memset(&capdata, 0, sizeof(capdata)); if (has_cap_syslog) { Loading include/audiomanager/AudioManager.h +5 −1 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ enum { PLAYER_MUTE_PLAYBACK_RESTRICTED = (1 << 3), PLAYER_MUTE_CLIENT_VOLUME = (1 << 4), PLAYER_MUTE_VOLUME_SHAPER = (1 << 5), PLAYER_MUTE_PORT_VOLUME = (1 << 6), }; struct mute_state_t { Loading @@ -74,6 +75,8 @@ struct mute_state_t { bool muteFromClientVolume = false; /** Flag used when volume is muted by volume shaper. */ bool muteFromVolumeShaper = false; /** Flag used when volume is muted by port volume. */ bool muteFromPortVolume = false; explicit operator int() const { Loading @@ -83,6 +86,7 @@ struct mute_state_t { result |= muteFromPlaybackRestricted * PLAYER_MUTE_PLAYBACK_RESTRICTED; result |= muteFromClientVolume * PLAYER_MUTE_CLIENT_VOLUME; result |= muteFromVolumeShaper * PLAYER_MUTE_VOLUME_SHAPER; result |= muteFromPortVolume * PLAYER_MUTE_PORT_VOLUME; return result; } Loading include/input/InputDevice.h +5 −6 Original line number Diff line number Diff line Loading @@ -266,6 +266,7 @@ class InputDeviceInfo { public: InputDeviceInfo(); InputDeviceInfo(const InputDeviceInfo& other); InputDeviceInfo& operator=(const InputDeviceInfo& other); ~InputDeviceInfo(); struct MotionRange { Loading Loading @@ -315,13 +316,11 @@ public: inline const InputDeviceViewBehavior& getViewBehavior() const { return mViewBehavior; } inline void setKeyCharacterMap(const std::shared_ptr<KeyCharacterMap> value) { mKeyCharacterMap = value; inline void setKeyCharacterMap(std::unique_ptr<KeyCharacterMap> value) { mKeyCharacterMap = std::move(value); } inline const std::shared_ptr<KeyCharacterMap> getKeyCharacterMap() const { return mKeyCharacterMap; } inline const KeyCharacterMap* getKeyCharacterMap() const { return mKeyCharacterMap.get(); } inline void setVibrator(bool hasVibrator) { mHasVibrator = hasVibrator; } inline bool hasVibrator() const { return mHasVibrator; } Loading Loading @@ -364,7 +363,7 @@ private: std::optional<KeyboardLayoutInfo> mKeyboardLayoutInfo; uint32_t mSources; int32_t mKeyboardType; std::shared_ptr<KeyCharacterMap> mKeyCharacterMap; std::unique_ptr<KeyCharacterMap> mKeyCharacterMap; std::optional<InputDeviceUsiVersion> mUsiVersion; ui::LogicalDisplayId mAssociatedDisplayId{ui::LogicalDisplayId::INVALID}; bool mEnabled; Loading include/input/InputEventBuilders.h +3 −0 Original line number Diff line number Diff line Loading @@ -250,6 +250,9 @@ class MotionEventBuilder { public: MotionEventBuilder(int32_t action, int32_t source) { mAction = action; if (mAction == AMOTION_EVENT_ACTION_CANCEL) { mFlags |= AMOTION_EVENT_FLAG_CANCELED; } mSource = source; mEventTime = systemTime(SYSTEM_TIME_MONOTONIC); mDownTime = mEventTime; Loading Loading
Android.bp +6 −0 Original line number Diff line number Diff line Loading @@ -125,3 +125,9 @@ filegroup { srcs: ["aidl/android/hardware/display/IDeviceProductInfoConstants.aidl"], path: "aidl", } dirgroup { name: "trusty_dirgroup_frameworks_native", dirs: ["libs/binder"], visibility: ["//trusty/vendor/google/aosp/scripts"], }
cmds/dumpstate/DumpstateInternal.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ bool DropRootUser() { const uint32_t cap_syslog_mask = CAP_TO_MASK(CAP_SYSLOG); const uint32_t cap_syslog_index = CAP_TO_INDEX(CAP_SYSLOG); bool has_cap_syslog = (capdata[cap_syslog_index].effective & cap_syslog_mask) != 0; bool has_cap_syslog = (capdata[cap_syslog_index].permitted & cap_syslog_mask) != 0; memset(&capdata, 0, sizeof(capdata)); if (has_cap_syslog) { Loading
include/audiomanager/AudioManager.h +5 −1 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ enum { PLAYER_MUTE_PLAYBACK_RESTRICTED = (1 << 3), PLAYER_MUTE_CLIENT_VOLUME = (1 << 4), PLAYER_MUTE_VOLUME_SHAPER = (1 << 5), PLAYER_MUTE_PORT_VOLUME = (1 << 6), }; struct mute_state_t { Loading @@ -74,6 +75,8 @@ struct mute_state_t { bool muteFromClientVolume = false; /** Flag used when volume is muted by volume shaper. */ bool muteFromVolumeShaper = false; /** Flag used when volume is muted by port volume. */ bool muteFromPortVolume = false; explicit operator int() const { Loading @@ -83,6 +86,7 @@ struct mute_state_t { result |= muteFromPlaybackRestricted * PLAYER_MUTE_PLAYBACK_RESTRICTED; result |= muteFromClientVolume * PLAYER_MUTE_CLIENT_VOLUME; result |= muteFromVolumeShaper * PLAYER_MUTE_VOLUME_SHAPER; result |= muteFromPortVolume * PLAYER_MUTE_PORT_VOLUME; return result; } Loading
include/input/InputDevice.h +5 −6 Original line number Diff line number Diff line Loading @@ -266,6 +266,7 @@ class InputDeviceInfo { public: InputDeviceInfo(); InputDeviceInfo(const InputDeviceInfo& other); InputDeviceInfo& operator=(const InputDeviceInfo& other); ~InputDeviceInfo(); struct MotionRange { Loading Loading @@ -315,13 +316,11 @@ public: inline const InputDeviceViewBehavior& getViewBehavior() const { return mViewBehavior; } inline void setKeyCharacterMap(const std::shared_ptr<KeyCharacterMap> value) { mKeyCharacterMap = value; inline void setKeyCharacterMap(std::unique_ptr<KeyCharacterMap> value) { mKeyCharacterMap = std::move(value); } inline const std::shared_ptr<KeyCharacterMap> getKeyCharacterMap() const { return mKeyCharacterMap; } inline const KeyCharacterMap* getKeyCharacterMap() const { return mKeyCharacterMap.get(); } inline void setVibrator(bool hasVibrator) { mHasVibrator = hasVibrator; } inline bool hasVibrator() const { return mHasVibrator; } Loading Loading @@ -364,7 +363,7 @@ private: std::optional<KeyboardLayoutInfo> mKeyboardLayoutInfo; uint32_t mSources; int32_t mKeyboardType; std::shared_ptr<KeyCharacterMap> mKeyCharacterMap; std::unique_ptr<KeyCharacterMap> mKeyCharacterMap; std::optional<InputDeviceUsiVersion> mUsiVersion; ui::LogicalDisplayId mAssociatedDisplayId{ui::LogicalDisplayId::INVALID}; bool mEnabled; Loading
include/input/InputEventBuilders.h +3 −0 Original line number Diff line number Diff line Loading @@ -250,6 +250,9 @@ class MotionEventBuilder { public: MotionEventBuilder(int32_t action, int32_t source) { mAction = action; if (mAction == AMOTION_EVENT_ACTION_CANCEL) { mFlags |= AMOTION_EVENT_FLAG_CANCELED; } mSource = source; mEventTime = systemTime(SYSTEM_TIME_MONOTONIC); mDownTime = mEventTime; Loading