Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 – 7 of 7) sorted by relevance

/system/bt/stack/include/
Da2dp_codec_api.h738 #define DEFINE_ENUM_FLAG_OPERATORS(bitmask) \ argument
740 inline constexpr bitmask operator&(bitmask X, bitmask Y) { /* NOLINT */ \
741 return static_cast<bitmask>(static_cast<int>(X) & static_cast<int>(Y)); \
743 inline constexpr bitmask operator|(bitmask X, bitmask Y) { /* NOLINT */ \
744 return static_cast<bitmask>(static_cast<int>(X) | static_cast<int>(Y)); \
746 inline constexpr bitmask operator^(bitmask X, bitmask Y) { /* NOLINT */ \
747 return static_cast<bitmask>(static_cast<int>(X) ^ static_cast<int>(Y)); \
749 inline constexpr bitmask operator~(bitmask X) { /* NOLINT */ \
750 return static_cast<bitmask>(~static_cast<int>(X)); \
752 inline bitmask& operator&=(bitmask& X, bitmask Y) { /* NOLINT */ \
[all …]
/system/libfmq/
DEventFlag.cpp110 status_t EventFlag::wake(uint32_t bitmask) { in wake() argument
114 if (bitmask == 0) { in wake()
119 uint32_t old = std::atomic_fetch_or(mEfWordPtr, bitmask); in wake()
125 if ((~old & bitmask) != 0) { in wake()
126 int ret = syscall(__NR_futex, mEfWordPtr, FUTEX_WAKE_BITSET, kIntMax, NULL, NULL, bitmask); in wake()
139 status_t EventFlag::waitHelper(uint32_t bitmask, uint32_t* efState, int64_t timeoutNanoSeconds) { in waitHelper() argument
143 if (bitmask == 0 || efState == nullptr) { in waitHelper()
148 uint32_t old = std::atomic_fetch_and(mEfWordPtr, ~bitmask); in waitHelper()
149 uint32_t setBits = old & bitmask; in waitHelper()
158 uint32_t efWord = old & ~bitmask; in waitHelper()
[all …]
/system/bt/btcore/src/
Ddevice_class.cc58 int bitmask);
59 static void device_class_clr_major_service_(bt_device_class_t* dc, int bitmask);
60 static void device_class_set_major_service_(bt_device_class_t* dc, int bitmask);
156 int bitmask) { in device_class_get_major_service_() argument
157 return (DC(dc)->major_service & bitmask); in device_class_get_major_service_()
161 int bitmask) { in device_class_clr_major_service_() argument
162 DC(dc)->major_service &= ~bitmask; in device_class_clr_major_service_()
166 int bitmask) { in device_class_set_major_service_() argument
167 DC(dc)->major_service |= bitmask; in device_class_set_major_service_()
/system/libfmq/include/fmq/
DEventFlag.h86 status_t wake(uint32_t bitmask);
105 status_t wait(uint32_t bitmask,
134 status_t waitHelper(uint32_t bitmask, uint32_t* efState, int64_t timeOutNanoSeconds);
/system/bt/test/mock/
Dmock_system_libfmq_eventflag.cc82 status_t EventFlag::wait(uint32_t bitmask, uint32_t* efState, in wait() argument
87 status_t EventFlag::waitHelper(uint32_t bitmask, uint32_t* efState, in waitHelper() argument
92 status_t EventFlag::wake(uint32_t bitmask) { in wake() argument
/system/bt/gd/security/
Dpairing_handler_le_secure_connections.cc316 uint32_t bitmask = 0x01; in SecureConnectionsPasskeyEntry() local
317 for (int loop = 0; loop < 20; loop++, bitmask <<= 1) { in SecureConnectionsPasskeyEntry()
319 bool bit_set = ((bitmask & passkey) != 0); in SecureConnectionsPasskeyEntry()
/system/bt/service/doc/
DIBluetoothGattClientCallback.txt49 * |characteristic_id| structure. |properties| contains the bitmask of GATT