Searched defs:mask (Results 1 - 25 of 62) sorted by relevance

123

/system/netd/libnetdutils/include/netdutils/
H A DMath.h27 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 Draise_default_signal.c56 * 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 Dscan_filter.cc63 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 Dalsa_format.c83 * 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 Dalsa_logging.c31 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 Dparcelable_unittest.cc124 Uuid mask = Uuid::GetRandom(); local
125 filter.SetServiceUuidWithMask(uuid, mask);
/system/bt/stack/include/
H A Dprofiles_api.h45 /* security mask definitions (tBT_SECURITY) */
72 uint8_t mask; member in struct:__anon1261
/system/chre/apps/chqts/src/general_test/
H A Dsend_event_test.cc108 uint8_t mask = static_cast<uint8_t>(1 << num); local
109 if ((sCallbacksInvoked & mask) != 0) {
113 sCallbacksInvoked |= mask;
/system/core/libpixelflinger/
H A Dclear.cpp27 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 Dbuffer.cpp177 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 Dbta_ar.cc37 * 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 Dport_utils.cc247 /* 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 Drfc_ts_frames.cc393 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 DArm64Disassembler.cpp35 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 Dload_store.cpp121 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 Ddisassem.c109 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 DNetdConstants.cpp161 sigset_t mask; local
163 sigemptyset(&mask);
164 sigaddset(&mask, SIGPIPE);
165 if (sigprocmask(SIG_BLOCK, &mask, NULL) != 0)
H A DWakeupController.cpp195 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 Dbitalloc.c203 * 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 Dsrvc_dis.cc430 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 DUnicode.cpp57 // -> (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 Dsdcard.cpp102 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 Dcpu_hotplug_test.cpp345 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 Dfifo.cpp54 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 Dnfa_ee_main.cc158 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;

Completed in 605 milliseconds

123