diff options
| author | 2011-07-01 17:59:27 -0700 | |
|---|---|---|
| committer | 2011-07-01 19:08:15 -0700 | |
| commit | 6894a2947eb1f9d499fd7f1a1ec4e7098e07d25d (patch) | |
| tree | 5aaf199228185826ea5deb9200adfc1633519994 /include/utils/BitSet.h | |
| parent | 63acea6ad4a9316e1450dea47840f45df4aaed25 (diff) | |
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/utils/BitSet.h')
| -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 de748b54f43a..600017e89c34 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); } |