summaryrefslogtreecommitdiffstats
path: root/services/inputflinger/InputReader.h
diff options
context:
space:
mode:
authorTim Kilbourn <tkilbourn@google.com>2015-04-08 10:26:18 -0700
committerTim Kilbourn <tkilbourn@google.com>2015-04-09 10:02:16 -0700
commit063ff53d0b0a0d670ea0185e687526d8fd302820 (patch)
tree3b658ea2501e1bf1ed204570a030288b94d67d10 /services/inputflinger/InputReader.h
parent82f393aad651fbf06d8c6872ac10a739ff2a3e42 (diff)
downloadframeworks_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 'services/inputflinger/InputReader.h')
-rw-r--r--services/inputflinger/InputReader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/inputflinger/InputReader.h b/services/inputflinger/InputReader.h
index 34f20af..7a514e0 100644
--- a/services/inputflinger/InputReader.h
+++ b/services/inputflinger/InputReader.h
@@ -555,6 +555,9 @@ public:
inline bool isExternal() { return mIsExternal; }
inline void setExternal(bool external) { mIsExternal = external; }
+ inline void setMic(bool hasMic) { mHasMic = hasMic; }
+ inline bool hasMic() const { return mHasMic; }
+
inline bool isIgnored() { return mMappers.isEmpty(); }
void dump(String8& dump);
@@ -618,6 +621,7 @@ private:
uint32_t mSources;
bool mIsExternal;
+ bool mHasMic;
bool mDropUntilNextSync;
typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code);