diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-07-01 17:59:27 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2011-07-01 19:08:15 -0700 |
commit | 2e0b543c09fad0f588b2eb65863ff881efa31546 (patch) | |
tree | 3e70ca325b0a427ef82f61713d630f1d456d98c9 /include | |
parent | 975749c55ebd0358690e40ee5cc824dc4e6a3cf1 (diff) | |
download | frameworks_native-2e0b543c09fad0f588b2eb65863ff881efa31546.zip frameworks_native-2e0b543c09fad0f588b2eb65863ff881efa31546.tar.gz frameworks_native-2e0b543c09fad0f588b2eb65863ff881efa31546.tar.bz2 |
Workaround apps that make assumptions about pointer ids.
Modified the touch input mapper to assign pointer ids sequentially
starting from 0 instead of using the tracking id or slot index
supplied by the driver. Applications should not depend on this
ordering but some do. (sigh)
Bug: 4980884
Change-Id: I0dfeb3ac27c57a7102a13c960c760e2a02eb7669
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/BitSet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/BitSet.h b/include/utils/BitSet.h index de748b5..600017e 100644 --- a/include/utils/BitSet.h +++ b/include/utils/BitSet.h @@ -44,6 +44,9 @@ struct BitSet32 { // Returns true if the bit set does not contain any marked bits. inline bool isEmpty() const { return ! value; } + // Returns true if the bit set does not contain any unmarked bits. + inline bool isFull() const { return value == 0xffffffff; } + // Returns true if the specified bit is marked. inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } |