diff options
author | Tim Kilbourn <tkilbourn@google.com> | 2015-04-08 10:26:18 -0700 |
---|---|---|
committer | Tim Kilbourn <tkilbourn@google.com> | 2015-04-09 10:02:16 -0700 |
commit | 063ff53d0b0a0d670ea0185e687526d8fd302820 (patch) | |
tree | 3b658ea2501e1bf1ed204570a030288b94d67d10 /include/input | |
parent | 82f393aad651fbf06d8c6872ac10a739ff2a3e42 (diff) | |
download | frameworks_native-063ff53d0b0a0d670ea0185e687526d8fd302820.zip frameworks_native-063ff53d0b0a0d670ea0185e687526d8fd302820.tar.gz frameworks_native-063ff53d0b0a0d670ea0185e687526d8fd302820.tar.bz2 |
Pass through availability of audio mic for input devices.
Bug: 15374820
Change-Id: Id2ca6da10165e3a887ebfbb18f663a3bf316ac79
Diffstat (limited to 'include/input')
-rw-r--r-- | include/input/InputDevice.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/input/InputDevice.h b/include/input/InputDevice.h index adf9fb9..1ea69d3 100644 --- a/include/input/InputDevice.h +++ b/include/input/InputDevice.h @@ -73,7 +73,8 @@ public: }; void initialize(int32_t id, int32_t generation, int32_t controllerNumber, - const InputDeviceIdentifier& identifier, const String8& alias, bool isExternal); + const InputDeviceIdentifier& identifier, const String8& alias, bool isExternal, + bool hasMic); inline int32_t getId() const { return mId; } inline int32_t getControllerNumber() const { return mControllerNumber; } @@ -84,6 +85,7 @@ public: return mAlias.isEmpty() ? mIdentifier.name : mAlias; } inline bool isExternal() const { return mIsExternal; } + inline bool hasMic() const { return mHasMic; } inline uint32_t getSources() const { return mSources; } const MotionRange* getMotionRange(int32_t axis, uint32_t source) const; @@ -121,6 +123,7 @@ private: InputDeviceIdentifier mIdentifier; String8 mAlias; bool mIsExternal; + bool mHasMic; uint32_t mSources; int32_t mKeyboardType; sp<KeyCharacterMap> mKeyCharacterMap; |