/system/netd/libnetdutils/include/netdutils/ |
H A D | Math.h | 27 inline constexpr const T mask(const int shift) { function in namespace:android::netdutils 34 return (x + mask<T>(shift)) & ~mask<T>(shift);
|
/system/core/toolbox/upstream-netbsd/lib/libutil/ |
H A D | raise_default_signal.c | 56 * The original signal mask and signal handler is restored on exit 67 sigset_t origmask, fullmask, mask; local 79 (sigemptyset(&mask) == -1) || 80 (sigaddset(&mask, sig) == -1)) 95 (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)) 107 /* Restore the original mask */
|
/system/bt/service/common/bluetooth/ |
H A D | scan_filter.cc | 63 const Uuid& mask) { 65 service_uuid_mask_.reset(new Uuid(mask)); 62 SetServiceUuidWithMask(const Uuid& service_uuid, const Uuid& mask) argument
|
/system/media/alsa_utils/ |
H A D | alsa_format.c | 83 * Scans the provided format mask and returns the first non-8 bit sample 86 enum pcm_format get_pcm_format_for_mask(struct pcm_mask* mask) argument 88 int num_slots = ARRAY_SIZE(mask->bits); 89 int bits_per_slot = sizeof(mask->bits[0]) * 8; 99 if (table_index >= 2 && (mask->bits[slot_index] & bit_mask) != 0) {
|
H A D | alsa_logging.c | 31 void log_pcm_mask(const char* mask_name, struct pcm_mask* mask) argument 33 const size_t num_slots = ARRAY_SIZE(mask->bits); 34 const size_t bits_per_slot = (sizeof(mask->bits[0]) * 8); 47 strcat(buff, (mask->bits[slot_index] & bit_mask) != 0 ? "1" : "0"); 56 ALOGV("%s: mask:%s", mask_name, buff);
|
/system/bt/service/test/ |
H A D | parcelable_unittest.cc | 124 Uuid mask = Uuid::GetRandom(); local 125 filter.SetServiceUuidWithMask(uuid, mask);
|
/system/bt/stack/include/ |
H A D | profiles_api.h | 45 /* security mask definitions (tBT_SECURITY) */ 72 uint8_t mask; member in struct:__anon1261
|
/system/chre/apps/chqts/src/general_test/ |
H A D | send_event_test.cc | 108 uint8_t mask = static_cast<uint8_t>(1 << num); local 109 if ((sCallbacksInvoked & mask) != 0) { 113 sCallbacksInvoked |= mask;
|
/system/core/libpixelflinger/ |
H A D | clear.cpp | 27 static void ggl_clear(void* c, GGLbitfield mask); 92 static void ggl_clear(void* con, GGLbitfield mask) argument 109 mask &= ~GGL_COLOR_BUFFER_BIT; 112 mask &= ~GGL_DEPTH_BUFFER_BIT; 115 mask &= ~GGL_STENCIL_BUFFER_BIT; 117 if (mask & GGL_COLOR_BUFFER_BIT) { 133 if (mask & GGL_DEPTH_BUFFER_BIT) {
|
H A D | buffer.cpp | 177 uint32_t mask = 0; local 188 if (h && (c->state.mask.color & component_mask)) { 189 mask |= (((1<<(h-l))-1)<<l); 200 if ((c->state.mask.color != 0xF) || 211 v &= mask; 213 v |= (d & ~mask);
|
/system/bt/bta/ar/ |
H A D | bta_ar.cc | 37 * Description This function maps sys_id to ar id mask. 43 uint8_t mask = 0; local 45 mask = BTA_AR_AV_MASK; 47 mask = BTA_AR_AVK_MASK; 50 return mask; 97 uint8_t mask = 0; local 101 mask = BTA_AR_AV_MASK; 104 mask = BTA_AR_AVK_MASK; 113 if (mask) { 117 bta_ar_cb.avdt_registered |= mask; 131 uint8_t mask = 0; local 184 uint8_t mask = bta_ar_id(sys_id); local 204 uint8_t mask = bta_ar_id(sys_id); local 224 uint8_t mask = bta_ar_id(sys_id); local 272 uint8_t mask = bta_ar_id(sys_id); local [all...] |
/system/bt/stack/rfcomm/ |
H A D | port_utils.cc | 247 /* save event mask and callback */ 248 uint32_t mask = p_port->ev_mask; local 255 p_port->ev_mask = mask; 379 * Returns event mask to be returned to the application 411 * Returns event mask to be returned to the application
|
H A D | rfc_ts_frames.cc | 393 tPORT_STATE* p_pars, uint16_t mask) { 420 *p_data++ = (mask & 0xFF); 421 *p_data++ = (mask >> 8); 392 rfc_send_rpn(tRFC_MCB* p_mcb, uint8_t dlci, bool is_command, tPORT_STATE* p_pars, uint16_t mask) argument
|
/system/core/libpixelflinger/codeflinger/ |
H A D | Arm64Disassembler.cpp | 35 uint32_t mask; member in struct:disasm_table_entry_t 91 uint32_t mask = (1 << width) - 1; local 92 return ((instr >> lsb) & mask); 284 if((code & entry->mask) == entry->value)
|
H A D | load_store.cpp | 121 const int mask = ((1<<maskLen)-1) << l; local 122 if (isValidImmediate(mask)) { 123 AND(AL, 0, d.reg, s, imm(mask)); // component = packed & mask; 124 } else if (isValidImmediate(~mask)) { 125 BIC(AL, 0, d.reg, s, imm(~mask)); // component = packed & mask; 266 // we need to mask the high bits (and possibly the lowbits too) 267 // and we might be able to use immediate mask. 273 const uint32_t mask local 284 const uint32_t mask = ((1<<sbits)-1) << sl; local [all...] |
H A D | disassem.c | 109 u_int mask; member in struct:arm32_insn 316 if ((insn & i_ptr->mask) == i_ptr->pattern) { 329 if ((i_ptr->mask & 0xf0000000) == 0xf0000000)
|
/system/netd/server/ |
H A D | NetdConstants.cpp | 161 sigset_t mask; local 163 sigemptyset(&mask); 164 sigaddset(&mask, SIGPIPE); 165 if (sigprocmask(SIG_BLOCK, &mask, NULL) != 0)
|
H A D | WakeupController.cpp | 195 uint32_t mark, uint32_t mask) { 196 return execIptables("-A", ifName, prefix, mark, mask); 200 uint32_t mark, uint32_t mask) { 201 return execIptables("-D", ifName, prefix, mark, mask); 205 const std::string& prefix, uint32_t mark, uint32_t mask) { 215 prefix.c_str(), NetlinkManager::NFLOG_WAKEUP_GROUP, kBatch, mark, mask, kRateLimit); 194 addInterface(const std::string& ifName, const std::string& prefix, uint32_t mark, uint32_t mask) argument 199 delInterface(const std::string& ifName, const std::string& prefix, uint32_t mark, uint32_t mask) argument 204 execIptables(const std::string& action, const std::string& ifName, const std::string& prefix, uint32_t mark, uint32_t mask) argument
|
/system/bt/embdrv/sbc/decoder/srce/ |
H A D | bitalloc.c | 203 * sign bit into bit 0, adding this to 0x7F give us a mask of 0x80 210 * to create a mask that zeroes bits 0 .. 3 if bit 4 is set. 214 * Allocations of 1 are disallowed. Add and shift creates a mask that 266 uint32_t mask; local 268 mask = 0x7F7F7F7F + ((n & 0x40404040) >> 6); 269 n &= mask; 270 mask = 0x0F0F0F0F + ((n & 0x10101010) >> 4); 271 n &= mask; 272 mask = (((n + 0x0E0E0E0E) >> 4) | 0x1E1E1E1E); 273 n &= mask; [all...] |
/system/bt/stack/srvc/ |
H A D | srvc_dis.cc | 430 tDIS_ATTR_MASK mask) { 445 dis_cb.request_mask = mask; 429 DIS_ReadDISInfo(const RawAddress& peer_bda, tDIS_READ_CBACK* p_cback, tDIS_ATTR_MASK mask) argument
|
/system/core/libutils/ |
H A D | Unicode.cpp | 57 // -> (00-7f) 7bit. Bit mask for the first byte is 0x00000000 59 // -> (c0-df)(80-bf) 11bit. Bit mask is 0x000000C0 61 // -> (e0-ef)(80-bf)(80-bf) 16bit. Bit mask is 0x000000E0 63 // -> (f0-f7)(80-bf)(80-bf)(80-bf) 21bit. Bit mask is 0x000000F0 140 char32_t mask, to_ignore_mask; local 143 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80; 144 (first_char & mask); 145 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { 149 to_ignore_mask |= mask; [all...] |
/system/core/sdcard/ |
H A D | sdcard.cpp | 102 mode_t mask, bool derive_gid, bool default_normal, bool use_esdfs) { 112 fsuid, fsgid, new_opts.c_str(), mask, userid, gid); 125 gid_t gid, mode_t mask) { 126 std::string opts = android::base::StringPrintf("mask=%d,gid=%d", mask, gid); 147 bool multi_user, userid_t userid, gid_t gid, mode_t mask, 150 return sdcardfs_setup(source_path, dest_path, fsuid, fsgid, multi_user, userid, gid, mask, 153 return sdcardfs_setup_bind_remount(default_path, dest_path, gid, mask); 100 sdcardfs_setup(const std::string& source_path, const std::string& dest_path, uid_t fsuid, gid_t fsgid, bool multi_user, userid_t userid, gid_t gid, mode_t mask, bool derive_gid, bool default_normal, bool use_esdfs) argument 124 sdcardfs_setup_bind_remount(const std::string& source_path, const std::string& dest_path, gid_t gid, mode_t mask) argument 145 sdcardfs_setup_secondary(const std::string& default_path, const std::string& source_path, const std::string& dest_path, uid_t fsuid, gid_t fsgid, bool multi_user, userid_t userid, gid_t gid, mode_t mask, bool derive_gid, bool default_normal, bool use_esdfs) argument
|
/system/extras/simpleperf/ |
H A D | cpu_hotplug_test.cpp | 345 cpu_set_t mask; local 346 CPU_ZERO(&mask); 347 CPU_SET(arg->spin_cpu, &mask); 350 sched_setaffinity(arg->tid, sizeof(mask), &mask);
|
/system/media/audio_utils/ |
H A D | fifo.cpp | 54 uint32_t mask = mFrameCountP2 - 1; local 55 ALOG_ASSERT((index & mask) < mFrameCount); 57 if ((index & mask) + increment >= mFrameCount) { 61 ALOG_ASSERT((index & mask) < mFrameCount); 80 uint32_t mask = mFrameCountP2 - 1; local 81 uint32_t rearOffset = rear & mask; 82 uint32_t frontOffset = front & mask; 91 uint32_t genDiff = (rear & ~mask) - (front & ~mask);
|
/system/nfc/src/nfa/ee/ |
H A D | nfa_ee_main.cc | 158 uint8_t mask; local 170 mask = nfa_ee_ecb_to_mask(p_cb); 176 if (nfa_ee_cb.ee_cfged & mask) { 191 if (nfa_ee_cb.ee_cfged & mask) { 373 ** Description Given a ecb, return the bit mask to be used in 380 uint8_t mask; local 384 mask = 1 << index; 386 return mask;
|