Home
last modified time | relevance | path

Searched refs:hasBit (Results 1 – 4 of 4) sorted by relevance

/aosp14/system/core/libutils/
H A DBitSet_test.cpp44 EXPECT_TRUE(tmp.hasBit(2) && tmp.hasBit(4)); in TEST_F()
50 EXPECT_TRUE(b1.hasBit(2) && b1.hasBit(4)); in TEST_F()
66 EXPECT_TRUE(b1.hasBit(2) && b1.hasBit(4) && b1.hasBit(6)); in TEST_F()
86 EXPECT_TRUE(b2.hasBit(3) && b2.hasBit(6) && b2.hasBit(9)); in TEST_F()
94 EXPECT_TRUE(b1.hasBit(0) && b1.hasBit(1)); in TEST_F()
98 EXPECT_TRUE(b1.hasBit(0) && b1.hasBit(1) && b1.hasBit(2)); in TEST_F()
172 EXPECT_TRUE(b1.hasBit(20) && b1.hasBit(40)); in TEST_F()
188 EXPECT_TRUE(b1.hasBit(20) && b1.hasBit(40) && b1.hasBit(60)); in TEST_F()
208 EXPECT_TRUE(b2.hasBit(30) && b2.hasBit(60) && b2.hasBit(63)); in TEST_F()
216 EXPECT_TRUE(b1.hasBit(0) && b1.hasBit(1)); in TEST_F()
[all …]
H A DBitSet_fuzz.cpp30 [](T bs, uint32_t val) -> void { bs.hasBit(val); }, in getOperationsForType()
/aosp14/system/core/libutils/include/utils/
H A DBitSet.h67 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit() function
69 static inline bool hasBit(uint32_t value, uint32_t n) { return value & valueForBit(n); } in hasBit() function
211 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit() function
213 static inline bool hasBit(uint64_t value, uint32_t n) { return value & valueForBit(n); } in hasBit() function
/aosp14/frameworks/base/libs/input/
H A DTouchSpotController.cpp123 if (spot->id != Spot::INVALID_ID && !spotIdBits.hasBit(spot->id)) { in setSpots()