/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/test/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/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/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 | 109 tBTM_STATUS BTM_PmRegister(uint8_t mask, uint8_t* p_pm_id, in BTM_PmRegister() argument 114 if (mask & BTM_PM_DEREG) { in BTM_PmRegister() 116 btm_cb.pm_reg_db[*p_pm_id].mask = BTM_PM_REC_NOT_USED; in BTM_PmRegister() 122 if (btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) { in BTM_PmRegister() 124 if (mask & BTM_PM_REG_NOTIF) { in BTM_PmRegister() 128 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister() 211 (btm_cb.pm_reg_db[pm_id].mask & BTM_PM_REG_SET)) || in BTM_SetPowerMode() 219 btm_cb.pm_reg_db[temp_pm_id].mask |= BTM_PM_REG_SET; in BTM_SetPowerMode() 363 (btm_cb.pm_reg_db[btm_cb.pm_pend_id].mask & BTM_PM_REG_NOTIF)) { in btm_pm_reset() 369 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()
|
D | fragmenting_inserter.cc | 45 uint8_t mask = static_cast<uint8_t>(0xff) >> (8 - num_saved_bits_); in insert_bits() local 46 saved_bits_ = static_cast<uint8_t>(new_value) & mask; in insert_bits()
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 101 const in_addr_t mask = (length > 0) ? (~0U) << (IPV4_ADDR_BITS - length) : 0U; in IPPrefix() local 102 mData.ip.v4.s_addr &= htonl(mask); in IPPrefix() 109 const int mask = (length % 8 == 0) ? 0 : 0xff << (8 - length % 8); in IPPrefix() local 110 mData.ip.v6.s6_addr[which] &= mask; in IPPrefix()
|
/system/core/sdcard/ |
D | sdcard.cpp | 103 mode_t mask, bool derive_gid, bool default_normal, bool unshared_obb, in sdcardfs_setup() argument 120 fsuid, fsgid, new_opts.c_str(), mask, userid, gid); in sdcardfs_setup() 133 gid_t gid, mode_t mask) { in sdcardfs_setup_bind_remount() argument 134 std::string opts = android::base::StringPrintf("mask=%d,gid=%d", mask, gid); in sdcardfs_setup_bind_remount() 156 gid_t gid, mode_t mask, bool derive_gid, bool default_normal, in sdcardfs_setup_secondary() argument 159 return sdcardfs_setup(source_path, dest_path, fsuid, fsgid, multi_user, userid, gid, mask, in sdcardfs_setup_secondary() 162 return sdcardfs_setup_bind_remount(default_path, dest_path, gid, mask); in sdcardfs_setup_secondary()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 67 in_addr_t mask = 0; in prefixLengthToIpv4Netmask() local 74 mask = ~mask << (32 - prefix_length); in prefixLengthToIpv4Netmask() 75 mask = htonl(mask); in prefixLengthToIpv4Netmask() 77 return mask; in prefixLengthToIpv4Netmask() 80 int ipv4NetmaskToPrefixLength(in_addr_t mask) in ipv4NetmaskToPrefixLength() argument 83 uint32_t m = (uint32_t)ntohl(mask); in ipv4NetmaskToPrefixLength() 457 int ifc_set_mask(const char *name, in_addr_t mask) in ifc_set_mask() argument 463 init_sockaddr_in(&ifr.ifr_addr, mask); in ifc_set_mask() 476 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength() local 478 init_sockaddr_in(&ifr.ifr_addr, mask); in ifc_set_prefixLength()
|
/system/core/fs_mgr/ |
D | file_wait.cpp | 72 OneShotInotify(const std::string& path, uint32_t mask, 93 OneShotInotify::OneShotInotify(const std::string& path, uint32_t mask, in OneShotInotify() argument 96 mask_(mask), in OneShotInotify() 110 if (mask == IN_CREATE) { in OneShotInotify() 115 if (inotify_add_watch(inotify_fd, watch_path.c_str(), mask) < 0) { in OneShotInotify()
|
/system/chre/apps/test/chqts/src/general_test/ |
D | send_event_test.cc | 107 uint8_t mask = static_cast<uint8_t>(1 << num); in completeCallback() local 108 if ((sCallbacksInvoked & mask) != 0) { in completeCallback() 112 sCallbacksInvoked |= mask; in completeCallback()
|