/system/bt/bta/ar/ |
D | bta_ar.cc | 43 uint8_t mask = 0; in bta_ar_id() local 45 mask = BTA_AR_AV_MASK; in bta_ar_id() 47 mask = BTA_AR_AVK_MASK; in bta_ar_id() 50 return mask; in bta_ar_id() 97 uint8_t mask = 0; in bta_ar_reg_avdt() local 101 mask = BTA_AR_AV_MASK; in bta_ar_reg_avdt() 104 mask = BTA_AR_AVK_MASK; in bta_ar_reg_avdt() 110 if (mask) { in bta_ar_reg_avdt() 117 bta_ar_cb.avdt_registered |= mask; in bta_ar_reg_avdt() 131 uint8_t mask = 0; in bta_ar_dereg_avdt() local [all …]
|
/system/netd/server/ |
D | RouteController.cpp | 262 uint32_t table, uint32_t fwmark, uint32_t mask, in modifyIpRule() argument 266 if (fwmark & ~mask) { in modifyIpRule() 267 ALOGE("mask 0x%x does not select all the bits set in fwmark 0x%x", mask, fwmark); in modifyIpRule() 317 { &FRATTR_FWMARK, mask ? sizeof(FRATTR_FWMARK) : 0 }, in modifyIpRule() 318 { &fwmark, mask ? sizeof(fwmark) : 0 }, in modifyIpRule() 319 { &FRATTR_FWMASK, mask ? sizeof(FRATTR_FWMASK) : 0 }, in modifyIpRule() 320 { &mask, mask ? sizeof(mask) : 0 }, in modifyIpRule() 349 uint32_t fwmark, uint32_t mask, const char* iif, in modifyIpRule() argument 351 return modifyIpRule(action, priority, FR_ACT_TO_TBL, table, fwmark, mask, iif, oif, uidStart, in modifyIpRule() 356 uint32_t fwmark, uint32_t mask) { in modifyIpRule() argument [all …]
|
D | WakeupController.h | 69 uint32_t mark, uint32_t mask); 74 uint32_t mark, uint32_t mask); 78 const std::string& prefix, uint32_t mark, uint32_t mask);
|
D | NetdConstants.cpp | 153 sigset_t mask; in blockSigpipe() local 155 sigemptyset(&mask); in blockSigpipe() 156 sigaddset(&mask, SIGPIPE); in blockSigpipe() 157 if (sigprocmask(SIG_BLOCK, &mask, nullptr) != 0) in blockSigpipe()
|
D | WakeupController.cpp | 195 uint32_t mark, uint32_t mask) { in addInterface() argument 196 return execIptables("-A", ifName, prefix, mark, mask); in addInterface() 200 uint32_t mark, uint32_t mask) { in delInterface() argument 201 return execIptables("-D", ifName, prefix, mark, mask); in delInterface() 205 const std::string& prefix, uint32_t mark, uint32_t mask) { in execIptables() argument 215 prefix.c_str(), NetlinkManager::NFLOG_WAKEUP_GROUP, kBatch, mark, mask, kRateLimit); in execIptables()
|
D | RouteControllerTest.cpp | 103 uint32_t mask = ~Fwmark::getUidBillingMask(); in TEST_F() local 111 mask)}); in TEST_F() 118 mask)}); in TEST_F()
|
D | Process.cpp | 83 sigset_t mask; in blockSigPipe() local 85 sigemptyset(&mask); in blockSigPipe() 86 sigaddset(&mask, SIGPIPE); in blockSigPipe() 87 if (sigprocmask(SIG_BLOCK, &mask, nullptr) != 0) { in blockSigPipe()
|
/system/core/init/ |
D | keychords.cpp | 146 Keychords::Mask mask(EV_KEY); in GeteventEnable() local 147 mask.SetBit(EV_KEY); in GeteventEnable() 150 msg.codes_size = mask.bytesize(); in GeteventEnable() 151 msg.codes_ptr = reinterpret_cast<uintptr_t>(mask.data()); in GeteventEnable() 159 Keychords::Mask mask; in GeteventEnable() local 162 mask.resize(code); in GeteventEnable() 163 mask.SetBit(code); in GeteventEnable() 167 current_.resize(mask.size()); in GeteventEnable() 168 Keychords::Mask available(mask.size()); in GeteventEnable() 171 if (!(available & mask)) return false; in GeteventEnable() [all …]
|
/system/extras/ext4_utils/include/ext4_utils/ |
D | jbd2.h | 117 …e JBD2_HAS_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature… argument 118 …2_HAS_RO_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_r… argument 119 …BD2_HAS_INCOMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_… argument
|
D | ext4.h | 472 #define EXT4_HAS_COMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask… argument 473 #define EXT4_HAS_RO_COMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le3… argument 474 #define EXT4_HAS_INCOMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(… argument 475 #define EXT4_SET_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) argument 476 #define EXT4_SET_RO_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32… argument 477 #define EXT4_SET_INCOMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(m… argument 478 #define EXT4_CLEAR_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(ma… argument 479 #define EXT4_CLEAR_RO_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_l… argument 480 #define EXT4_CLEAR_INCOMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_incompat &= ~cpu_to_le3… argument
|
/system/netd/libnetdutils/include/netdutils/ |
D | Math.h | 27 inline constexpr const T mask(const int shift) { in mask() function 34 return (x + mask<T>(shift)) & ~mask<T>(shift); in align()
|
/system/chre/apps/chqts/src/shared/ |
D | dumb_allocator.cc | 42 for (uint32_t mask = 1; slot < mSlotCount; slot++, mask <<= 1) { in alloc() local 43 if ((mAllocatedSlots & mask) == 0) { in alloc() 45 mAllocatedSlots |= mask; in alloc()
|
/system/media/alsa_utils/ |
D | alsa_format.c | 86 enum pcm_format get_pcm_format_for_mask(struct pcm_mask* mask) in get_pcm_format_for_mask() argument 88 int num_slots = ARRAY_SIZE(mask->bits); in get_pcm_format_for_mask() 89 int bits_per_slot = sizeof(mask->bits[0]) * 8; in get_pcm_format_for_mask() 99 if (table_index >= 2 && (mask->bits[slot_index] & bit_mask) != 0) { in get_pcm_format_for_mask()
|
D | alsa_logging.c | 31 void log_pcm_mask(const char* mask_name, struct pcm_mask* mask) in log_pcm_mask() argument 33 const size_t num_slots = ARRAY_SIZE(mask->bits); in log_pcm_mask() 34 const size_t bits_per_slot = (sizeof(mask->bits[0]) * 8); in log_pcm_mask() 47 strcat(buff, (mask->bits[slot_index] & bit_mask) != 0 ? "1" : "0"); in log_pcm_mask()
|
/system/core/logd/ |
D | SerializedFlushToStateTest.cpp | 89 for (uint32_t mask = 0; mask < max_mask; ++mask) { in TestAllReading() local 90 auto state = SerializedFlushToState{sequence, mask}; in TestAllReading() 92 TestReading(sequence, mask, state); in TestAllReading() 105 for (uint32_t mask = 1; mask < max_mask; ++mask) { in TestAllReadingWithFutureMessages() local 107 auto state = SerializedFlushToState{sequence, mask}; in TestAllReadingWithFutureMessages() 111 TestReading(sequence, mask, state); in TestAllReadingWithFutureMessages()
|
/system/core/libpixelflinger/codeflinger/ |
D | GGLAssembler.cpp | 157 const int mask = 1<<i; in scanline_core() local 163 info.masked = !!(masking & mask); in scanline_core() 172 info.replaced = !!(mTextureMachine.replaced & mask); in scanline_core() 178 mBlending |= (info.blend ? mask : 0); in scanline_core() 179 mMasking |= (mCbFormat.c[i].h && info.masked) ? mask : 0; in scanline_core() 180 fbComponents |= mCbFormat.c[i].h ? mask : 0; in scanline_core() 262 const int mask = GGL_DITHER_SIZE-1; in scanline_core() local 264 AND(AL, 0, parts.dither.reg, parts.count.reg, imm(mask)); in scanline_core() 521 need_extract |= (mTextureMachine.mask != mTextureMachine.replaced); in build_incoming_component() 606 if ((tmu.mask & component_mask) && in build_incoming_component() [all …]
|
D | texturing.cpp | 125 parts.packed = (!mTextureMachine.mask && !mBlending in init_iterated_color() 142 uint32_t mask = 0; in init_iterated_color() local 149 mask |= ((1<<(h-l))-1) << l; in init_iterated_color() 154 if (mMasking && ((mask & size)==0)) { in init_iterated_color() 170 mask, bits); in init_iterated_color() 266 mTextureMachine.mask = 0; in decodeTMUNeeds() 273 tmu.mask = 0; in decodeTMUNeeds() 291 tmu.mask = 0; in decodeTMUNeeds() 296 if (tmu.format.c[0].h) tmu.mask |= 0x1; in decodeTMUNeeds() 297 if (tmu.format.c[1].h) tmu.mask |= 0x2; in decodeTMUNeeds() [all …]
|
D | load_store.cpp | 121 const int mask = ((1<<maskLen)-1) << l; in extract() local 122 if (isValidImmediate(mask)) { in extract() 123 AND(AL, 0, d.reg, s, imm(mask)); // component = packed & mask; in extract() 124 } else if (isValidImmediate(~mask)) { in extract() 125 BIC(AL, 0, d.reg, s, imm(~mask)); // component = packed & mask; in extract() 273 const uint32_t mask = ((1<<dbits)-1) << offset; in downshift() local 274 if (isValidImmediate(mask) || isValidImmediate(~mask)) { in downshift() 275 build_and_immediate(ireg, s.reg, mask, 32); in downshift() 284 const uint32_t mask = ((1<<sbits)-1) << sl; in downshift() local 285 if (isValidImmediate(mask) || isValidImmediate(~mask)) { in downshift() [all …]
|
/system/core/libutils/ |
D | Unicode.cpp | 144 char32_t mask, to_ignore_mask; in utf32_at_internal() local 147 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80; in utf32_at_internal() 148 (first_char & mask); in utf32_at_internal() 149 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf32_at_internal() 153 to_ignore_mask |= mask; in utf32_at_internal() 378 int32_t mask, to_ignore_mask; in utf8_length() local 381 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0x80; in utf8_length() 382 num_to_read < 5 && (first_char & mask); in utf8_length() 383 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf8_length() 394 to_ignore_mask |= mask; in utf8_length()
|
/system/core/libpixelflinger/ |
D | clear.cpp | 27 static void ggl_clear(void* c, GGLbitfield mask); 92 static void ggl_clear(void* con, GGLbitfield mask) in ggl_clear() argument 109 mask &= ~GGL_COLOR_BUFFER_BIT; in ggl_clear() 112 mask &= ~GGL_DEPTH_BUFFER_BIT; in ggl_clear() 115 mask &= ~GGL_STENCIL_BUFFER_BIT; in ggl_clear() 117 if (mask & GGL_COLOR_BUFFER_BIT) { in ggl_clear() 133 if (mask & GGL_DEPTH_BUFFER_BIT) { in ggl_clear()
|
D | pixelflinger.cpp | 518 int mask = 0; in ggl_colorMask() local 519 if (a) mask |= 1 << GGLFormat::ALPHA; in ggl_colorMask() 520 if (r) mask |= 1 << GGLFormat::RED; in ggl_colorMask() 521 if (g) mask |= 1 << GGLFormat::GREEN; in ggl_colorMask() 522 if (b) mask |= 1 << GGLFormat::BLUE; in ggl_colorMask() 523 if (c->state.mask.color != mask) { in ggl_colorMask() 524 c->state.mask.color = mask; in ggl_colorMask() 532 if (c->state.mask.depth != flag?1:0) { in ggl_depthMask() 533 c->state.mask.depth = flag?1:0; in ggl_depthMask() 538 static void ggl_stencilMask(void* con, GGLuint mask) in ggl_stencilMask() argument [all …]
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | bitalloc.c | 266 uint32_t mask; in adjustToFitBitpool() local 268 mask = 0x7F7F7F7F + ((n & 0x40404040) >> 6); in adjustToFitBitpool() 269 n &= mask; in adjustToFitBitpool() 270 mask = 0x0F0F0F0F + ((n & 0x10101010) >> 4); in adjustToFitBitpool() 271 n &= mask; in adjustToFitBitpool() 272 mask = (((n + 0x0E0E0E0E) >> 4) | 0x1E1E1E1E); in adjustToFitBitpool() 273 n &= mask; in adjustToFitBitpool()
|
/system/bt/stack/btm/ |
D | btm_pm.cc | 103 tBTM_STATUS BTM_PmRegister(uint8_t mask, uint8_t* p_pm_id, in BTM_PmRegister() argument 108 if (mask & BTM_PM_DEREG) { in BTM_PmRegister() 110 btm_cb.pm_reg_db[*p_pm_id].mask = BTM_PM_REC_NOT_USED; in BTM_PmRegister() 116 if (btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) { in BTM_PmRegister() 118 if (mask & BTM_PM_REG_NOTIF) { in BTM_PmRegister() 122 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister() 203 (btm_cb.pm_reg_db[pm_id].mask & BTM_PM_REG_SET)) || in BTM_SetPowerMode() 211 btm_cb.pm_reg_db[temp_pm_id].mask |= BTM_PM_REG_SET; in BTM_SetPowerMode() 355 (btm_cb.pm_reg_db[btm_cb.pm_pend_id].mask & BTM_PM_REG_NOTIF)) { in btm_pm_reset() 361 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED; in btm_pm_reset() [all …]
|
/system/bt/gd/packet/parser/fields/ |
D | scalar_field.cc | 81 uint64_t mask = 0; in GenExtractor() local 83 mask <<= 1; in GenExtractor() 84 mask |= 1; in GenExtractor() 86 s << "extracted_value &= 0x" << std::hex << mask << std::dec << ";"; in GenExtractor()
|
/system/bt/gd/packet/ |
D | bit_inserter.cc | 39 uint8_t mask = static_cast<uint8_t>(0xff) >> (8 - num_saved_bits_); in insert_bits() local 40 saved_bits_ = static_cast<uint8_t>(new_value) & mask; in insert_bits()
|