Loading services/inputflinger/InputListener.cpp +10 −10 Original line number Diff line number Diff line Loading @@ -28,12 +28,12 @@ namespace android { NotifyConfigurationChangedArgs::NotifyConfigurationChangedArgs( uint32_t sequenceNum, nsecs_t eventTime) : NotifyArgs(sequenceNum), eventTime(eventTime) { NotifyArgs(sequenceNum, eventTime) { } NotifyConfigurationChangedArgs::NotifyConfigurationChangedArgs( const NotifyConfigurationChangedArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime) { NotifyArgs(other.sequenceNum, other.eventTime) { } bool NotifyConfigurationChangedArgs::operator==(const NotifyConfigurationChangedArgs& rhs) const { Loading @@ -51,14 +51,14 @@ NotifyKeyArgs::NotifyKeyArgs(uint32_t sequenceNum, nsecs_t eventTime, int32_t de uint32_t source, int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime) : NotifyArgs(sequenceNum), eventTime(eventTime), deviceId(deviceId), source(source), NotifyArgs(sequenceNum, eventTime), deviceId(deviceId), source(source), displayId(displayId), policyFlags(policyFlags), action(action), flags(flags), keyCode(keyCode), scanCode(scanCode), metaState(metaState), downTime(downTime) { } NotifyKeyArgs::NotifyKeyArgs(const NotifyKeyArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), deviceId(other.deviceId), NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId), source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), action(other.action), flags(other.flags), keyCode(other.keyCode), scanCode(other.scanCode), Loading Loading @@ -95,7 +95,7 @@ NotifyMotionArgs::NotifyMotionArgs(uint32_t sequenceNum, nsecs_t eventTime, int3 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime, const std::vector<TouchVideoFrame>& videoFrames) : NotifyArgs(sequenceNum), eventTime(eventTime), deviceId(deviceId), source(source), NotifyArgs(sequenceNum, eventTime), deviceId(deviceId), source(source), displayId(displayId), policyFlags(policyFlags), action(action), actionButton(actionButton), flags(flags), metaState(metaState), buttonState(buttonState), Loading @@ -110,7 +110,7 @@ NotifyMotionArgs::NotifyMotionArgs(uint32_t sequenceNum, nsecs_t eventTime, int3 } NotifyMotionArgs::NotifyMotionArgs(const NotifyMotionArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), deviceId(other.deviceId), NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId), source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), action(other.action), actionButton(other.actionButton), flags(other.flags), metaState(other.metaState), buttonState(other.buttonState), Loading Loading @@ -170,12 +170,12 @@ void NotifyMotionArgs::notify(const sp<InputListenerInterface>& listener) const NotifySwitchArgs::NotifySwitchArgs(uint32_t sequenceNum, nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues, uint32_t switchMask) : NotifyArgs(sequenceNum), eventTime(eventTime), policyFlags(policyFlags), NotifyArgs(sequenceNum, eventTime), policyFlags(policyFlags), switchValues(switchValues), switchMask(switchMask) { } NotifySwitchArgs::NotifySwitchArgs(const NotifySwitchArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), policyFlags(other.policyFlags), NotifyArgs(other.sequenceNum, other.eventTime), policyFlags(other.policyFlags), switchValues(other.switchValues), switchMask(other.switchMask) { } Loading @@ -196,11 +196,11 @@ void NotifySwitchArgs::notify(const sp<InputListenerInterface>& listener) const NotifyDeviceResetArgs::NotifyDeviceResetArgs( uint32_t sequenceNum, nsecs_t eventTime, int32_t deviceId) : NotifyArgs(sequenceNum), eventTime(eventTime), deviceId(deviceId) { NotifyArgs(sequenceNum, eventTime), deviceId(deviceId) { } NotifyDeviceResetArgs::NotifyDeviceResetArgs(const NotifyDeviceResetArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), deviceId(other.deviceId) { NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId) { } bool NotifyDeviceResetArgs::operator==(const NotifyDeviceResetArgs& rhs) const { Loading services/inputflinger/include/InputListener.h +4 −7 Original line number Diff line number Diff line Loading @@ -32,10 +32,12 @@ class InputListenerInterface; /* Superclass of all input event argument objects */ struct NotifyArgs { uint32_t sequenceNum; nsecs_t eventTime; inline NotifyArgs() : sequenceNum(0) { } inline NotifyArgs() : sequenceNum(0), eventTime(0) { } inline explicit NotifyArgs(uint32_t sequenceNum) : sequenceNum(sequenceNum) { } inline explicit NotifyArgs(uint32_t sequenceNum, nsecs_t eventTime) : sequenceNum(sequenceNum), eventTime(eventTime) { } virtual ~NotifyArgs() { } Loading @@ -45,7 +47,6 @@ struct NotifyArgs { /* Describes a configuration change event. */ struct NotifyConfigurationChangedArgs : public NotifyArgs { nsecs_t eventTime; inline NotifyConfigurationChangedArgs() { } Loading @@ -63,7 +64,6 @@ struct NotifyConfigurationChangedArgs : public NotifyArgs { /* Describes a key event. */ struct NotifyKeyArgs : public NotifyArgs { nsecs_t eventTime; int32_t deviceId; uint32_t source; int32_t displayId; Loading Loading @@ -93,7 +93,6 @@ struct NotifyKeyArgs : public NotifyArgs { /* Describes a motion event. */ struct NotifyMotionArgs : public NotifyArgs { nsecs_t eventTime; int32_t deviceId; uint32_t source; int32_t displayId; Loading Loading @@ -146,7 +145,6 @@ struct NotifyMotionArgs : public NotifyArgs { /* Describes a switch event. */ struct NotifySwitchArgs : public NotifyArgs { nsecs_t eventTime; uint32_t policyFlags; uint32_t switchValues; uint32_t switchMask; Loading @@ -169,7 +167,6 @@ struct NotifySwitchArgs : public NotifyArgs { /* Describes a device reset event, such as when a device is added, * reconfigured, or removed. */ struct NotifyDeviceResetArgs : public NotifyArgs { nsecs_t eventTime; int32_t deviceId; inline NotifyDeviceResetArgs() { } Loading Loading
services/inputflinger/InputListener.cpp +10 −10 Original line number Diff line number Diff line Loading @@ -28,12 +28,12 @@ namespace android { NotifyConfigurationChangedArgs::NotifyConfigurationChangedArgs( uint32_t sequenceNum, nsecs_t eventTime) : NotifyArgs(sequenceNum), eventTime(eventTime) { NotifyArgs(sequenceNum, eventTime) { } NotifyConfigurationChangedArgs::NotifyConfigurationChangedArgs( const NotifyConfigurationChangedArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime) { NotifyArgs(other.sequenceNum, other.eventTime) { } bool NotifyConfigurationChangedArgs::operator==(const NotifyConfigurationChangedArgs& rhs) const { Loading @@ -51,14 +51,14 @@ NotifyKeyArgs::NotifyKeyArgs(uint32_t sequenceNum, nsecs_t eventTime, int32_t de uint32_t source, int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime) : NotifyArgs(sequenceNum), eventTime(eventTime), deviceId(deviceId), source(source), NotifyArgs(sequenceNum, eventTime), deviceId(deviceId), source(source), displayId(displayId), policyFlags(policyFlags), action(action), flags(flags), keyCode(keyCode), scanCode(scanCode), metaState(metaState), downTime(downTime) { } NotifyKeyArgs::NotifyKeyArgs(const NotifyKeyArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), deviceId(other.deviceId), NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId), source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), action(other.action), flags(other.flags), keyCode(other.keyCode), scanCode(other.scanCode), Loading Loading @@ -95,7 +95,7 @@ NotifyMotionArgs::NotifyMotionArgs(uint32_t sequenceNum, nsecs_t eventTime, int3 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime, const std::vector<TouchVideoFrame>& videoFrames) : NotifyArgs(sequenceNum), eventTime(eventTime), deviceId(deviceId), source(source), NotifyArgs(sequenceNum, eventTime), deviceId(deviceId), source(source), displayId(displayId), policyFlags(policyFlags), action(action), actionButton(actionButton), flags(flags), metaState(metaState), buttonState(buttonState), Loading @@ -110,7 +110,7 @@ NotifyMotionArgs::NotifyMotionArgs(uint32_t sequenceNum, nsecs_t eventTime, int3 } NotifyMotionArgs::NotifyMotionArgs(const NotifyMotionArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), deviceId(other.deviceId), NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId), source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), action(other.action), actionButton(other.actionButton), flags(other.flags), metaState(other.metaState), buttonState(other.buttonState), Loading Loading @@ -170,12 +170,12 @@ void NotifyMotionArgs::notify(const sp<InputListenerInterface>& listener) const NotifySwitchArgs::NotifySwitchArgs(uint32_t sequenceNum, nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues, uint32_t switchMask) : NotifyArgs(sequenceNum), eventTime(eventTime), policyFlags(policyFlags), NotifyArgs(sequenceNum, eventTime), policyFlags(policyFlags), switchValues(switchValues), switchMask(switchMask) { } NotifySwitchArgs::NotifySwitchArgs(const NotifySwitchArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), policyFlags(other.policyFlags), NotifyArgs(other.sequenceNum, other.eventTime), policyFlags(other.policyFlags), switchValues(other.switchValues), switchMask(other.switchMask) { } Loading @@ -196,11 +196,11 @@ void NotifySwitchArgs::notify(const sp<InputListenerInterface>& listener) const NotifyDeviceResetArgs::NotifyDeviceResetArgs( uint32_t sequenceNum, nsecs_t eventTime, int32_t deviceId) : NotifyArgs(sequenceNum), eventTime(eventTime), deviceId(deviceId) { NotifyArgs(sequenceNum, eventTime), deviceId(deviceId) { } NotifyDeviceResetArgs::NotifyDeviceResetArgs(const NotifyDeviceResetArgs& other) : NotifyArgs(other.sequenceNum), eventTime(other.eventTime), deviceId(other.deviceId) { NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId) { } bool NotifyDeviceResetArgs::operator==(const NotifyDeviceResetArgs& rhs) const { Loading
services/inputflinger/include/InputListener.h +4 −7 Original line number Diff line number Diff line Loading @@ -32,10 +32,12 @@ class InputListenerInterface; /* Superclass of all input event argument objects */ struct NotifyArgs { uint32_t sequenceNum; nsecs_t eventTime; inline NotifyArgs() : sequenceNum(0) { } inline NotifyArgs() : sequenceNum(0), eventTime(0) { } inline explicit NotifyArgs(uint32_t sequenceNum) : sequenceNum(sequenceNum) { } inline explicit NotifyArgs(uint32_t sequenceNum, nsecs_t eventTime) : sequenceNum(sequenceNum), eventTime(eventTime) { } virtual ~NotifyArgs() { } Loading @@ -45,7 +47,6 @@ struct NotifyArgs { /* Describes a configuration change event. */ struct NotifyConfigurationChangedArgs : public NotifyArgs { nsecs_t eventTime; inline NotifyConfigurationChangedArgs() { } Loading @@ -63,7 +64,6 @@ struct NotifyConfigurationChangedArgs : public NotifyArgs { /* Describes a key event. */ struct NotifyKeyArgs : public NotifyArgs { nsecs_t eventTime; int32_t deviceId; uint32_t source; int32_t displayId; Loading Loading @@ -93,7 +93,6 @@ struct NotifyKeyArgs : public NotifyArgs { /* Describes a motion event. */ struct NotifyMotionArgs : public NotifyArgs { nsecs_t eventTime; int32_t deviceId; uint32_t source; int32_t displayId; Loading Loading @@ -146,7 +145,6 @@ struct NotifyMotionArgs : public NotifyArgs { /* Describes a switch event. */ struct NotifySwitchArgs : public NotifyArgs { nsecs_t eventTime; uint32_t policyFlags; uint32_t switchValues; uint32_t switchMask; Loading @@ -169,7 +167,6 @@ struct NotifySwitchArgs : public NotifyArgs { /* Describes a device reset event, such as when a device is added, * reconfigured, or removed. */ struct NotifyDeviceResetArgs : public NotifyArgs { nsecs_t eventTime; int32_t deviceId; inline NotifyDeviceResetArgs() { } Loading