Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 260) sorted by relevance

1234567891011

/system/sepolicy/tools/sepolicy-analyze/
Dattribute.c11 unsigned int bit; in retrieve_mapping() local
14 ebitmap_for_each_bit(&policydb->type_attr_map[dat->s.value - 1], n, bit) { in retrieve_mapping()
15 if (!ebitmap_node_get_bit(n, bit)) in retrieve_mapping()
17 if (!strcmp(policydb->p_type_val_to_name[bit], name)) in retrieve_mapping()
19 printf("%s\n", policydb->p_type_val_to_name[bit]); in retrieve_mapping()
22 ebitmap_for_each_bit(&policydb->attr_type_map[dat->s.value - 1], n, bit) { in retrieve_mapping()
23 if (!ebitmap_node_get_bit(n, bit)) in retrieve_mapping()
25 printf("%s\n", policydb->p_type_val_to_name[bit]); in retrieve_mapping()
Dperm.c10 unsigned int bit; in list_permissive() local
15 ebitmap_for_each_bit(&policydb->permissive_map, n, bit) in list_permissive()
17 if (ebitmap_node_get_bit(n, bit)) { in list_permissive()
18 printf("%s\n", policydb->p_type_val_to_name[bit -1]); in list_permissive()
Dneverallow.c30 unsigned int bit; in read_typeset() local
144 for (bit = 0; bit < policydb->p_types.nprim; bit++) { in read_typeset()
145 if (ebitmap_get_bit(&typeset->negset, bit)) in read_typeset()
147 if (policydb->type_val_to_struct[bit] && in read_typeset()
148 policydb->type_val_to_struct[bit]->flavor == TYPE_ATTRIB) in read_typeset()
150 if (ebitmap_set_bit(&typeset->types, bit, 1)) in read_typeset()
155 ebitmap_for_each_bit(&typeset->negset, n, bit) { in read_typeset()
156 if (!ebitmap_node_get_bit(n, bit)) in read_typeset()
158 if (ebitmap_set_bit(&typeset->types, bit, 0)) in read_typeset()
163 for (bit = 0; bit < policydb->p_types.nprim; bit++) { in read_typeset()
[all …]
/system/sepolicy/tests/
Dsepol_wrap.cpp95 unsigned int bit; member
111 out->bit = 0; in init_type_iter()
135 out->bit = ebitmap_start(&db->attr_type_map[out->d->s.value - 1], &out->n); in init_type_iter()
138 out->bit = ebitmap_start(&db->type_attr_map[out->d->s.value - 1], &out->n); in init_type_iter()
166 for (; i->bit < i->length; i->bit = ebitmap_next(&i->n, i->bit)) { in get_type()
167 if (!ebitmap_node_get_bit(i->n, i->bit)) { in get_type()
173 while (i->bit < i->length && in get_type()
175 && db->type_val_to_struct[i->bit]->flavor != TYPE_ATTRIB) in get_type()
177 && db->type_val_to_struct[i->bit]->flavor != TYPE_TYPE))) { in get_type()
178 i->bit++; in get_type()
[all …]
/system/libvintf/include/vintf/
DCheckFlags.h28 #define VINTF_CHECK_FLAGS_FIELD(name, bit) \ argument
29 [[nodiscard]] constexpr Type enable##name() const { return Type(mValue | (1 << bit)); } \
30 [[nodiscard]] constexpr Type disable##name() const { return Type(mValue & ~(1 << bit)); } \
31 constexpr bool is##name##Enabled() const { return mValue & (1 << bit); }
DSerializeFlags.h31 #define VINTF_SERIALIZE_FLAGS_FIELD(name, bit) \ argument
32 constexpr Type enable##name() const { return Type(mValue | (1 << bit)); } \
33 constexpr Type disable##name() const { return Type(mValue & ~(1 << bit)); } \
34 constexpr bool is##name##Enabled() const { return mValue & (1 << bit); }
/system/core/init/
Dkeychords.h46 explicit Mask(size_t bit = 0);
48 void SetBit(size_t bit, bool value = true);
49 bool GetBit(size_t bit) const;
54 void resize(size_t bit);
Dkeychords.cpp50 Keychords::Mask::Mask(size_t bit) : bits_((bit + sizeof(mask_t) - 1) / sizeof(mask_t), 0) {} in Mask() argument
52 void Keychords::Mask::SetBit(size_t bit, bool value) { in SetBit() argument
53 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in SetBit()
56 bits_[idx] |= mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t))); in SetBit()
58 bits_[idx] &= ~(mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in SetBit()
62 bool Keychords::Mask::GetBit(size_t bit) const { in GetBit()
63 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in GetBit()
64 return bits_[idx] & (mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in GetBit()
79 void Keychords::Mask::resize(size_t bit) { in resize() argument
80 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in resize()
/system/chre/util/include/chre/util/
Dmacros.h37 #define IS_BIT_SET(value, bit) (((value) & (bit)) == (bit)) argument
/system/core/libutils/
DBitSet_fuzz.cpp51 void runOperationFor32Bit(android::BitSet32 bs, uint32_t bit, uint8_t operation) { in runOperationFor32Bit() argument
52 thirtyTwoBitOps[operation](bs, bit); in runOperationFor32Bit()
64 uint32_t bit = dataProvider.ConsumeIntegral<uint32_t>(); in LLVMFuzzerTestOneInput() local
66 thirtyTwoBitOps[op % thirtyTwoBitOps.size()](b1, bit); in LLVMFuzzerTestOneInput()
67 sixtyFourBitOps[op % sixtyFourBitOps.size()](b2, bit); in LLVMFuzzerTestOneInput()
/system/core/libstats/socket_lazy/
DAndroid.bp34 // 32bit and 64bit architectures.
/system/core/libstats/pull_lazy/
DAndroid.bp38 // 32bit and 64bit architectures.
/system/extras/memory_replay/traces/
DTRACES37 Process Type: 64 bit
48 Process Type: 64 bit
59 Process Type: 64 bit
71 Process Type: 32 bit
/system/extras/ext4_utils/
Dext4_utils.cpp57 int bitmap_get_bit(u8* bitmap, u32 bit) { in bitmap_get_bit() argument
58 if (bitmap[bit / 8] & (1 << (bit % 8))) return 1; in bitmap_get_bit()
63 void bitmap_clear_bit(u8* bitmap, u32 bit) { in bitmap_clear_bit() argument
64 bitmap[bit / 8] &= ~(1 << (bit % 8)); in bitmap_clear_bit()
Dmke2fs.conf19 features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize
/system/media/audio_utils/
Dprimitives.c410 uint32_t bit, ormask; \
414 bit = ormask & -ormask; /* get lowest bit */ \
415 ormask ^= bit; /* remove lowest bit */ \
416 if ((dmask) & bit) { \
417 *(dst)++ = (smask) & bit ? *(src)++ : (zero); \
533 uint32_t bit, ormask = src_mask | dst_mask; in memcpy_by_index_array_initialization() local
536 bit = ormask & -ormask; /* get lowest bit */ in memcpy_by_index_array_initialization()
537 ormask ^= bit; /* remove lowest bit */ in memcpy_by_index_array_initialization()
538 if (src_mask & dst_mask & bit) { /* matching channel */ in memcpy_by_index_array_initialization()
540 } else if (src_mask & bit) { /* source channel only */ in memcpy_by_index_array_initialization()
/system/libhidl/transport/base/1.0/
Dtypes.hal23 * arch: 64bit or 32bit
/system/memory/libmemunreachable/
DAllocator.cpp253 unsigned int bit = __builtin_ffs(free_bitmap_[i]) - 1; in Alloc() local
254 assert(free_bitmap_[i] & (1U << bit)); in Alloc()
255 free_bitmap_[i] &= ~(1U << bit); in Alloc()
256 unsigned int n = i * 32 + bit; in Alloc()
277 unsigned int bit = n % 32; in Free() local
280 assert(!(free_bitmap_[i] & (1U << bit))); in Free()
281 free_bitmap_[i] |= 1U << bit; in Free()
/system/core/code_coverage/seccomp_policy/
Dcode_coverage.policy.def5 // size specific: __LP64__ for 64 bit, else 32 bit
/system/bt/stack/btm/
Dbtm_ble_privacy.cc143 uint8_t bit; in btm_ble_clear_irk_index() local
147 bit = index % 8; in btm_ble_clear_irk_index()
148 btm_cb.ble_ctr_cb.irk_list_mask[byte] &= (~(1 << bit)); in btm_ble_clear_irk_index()
164 uint8_t bit; in btm_ble_find_irk_index() local
168 bit = i % 8; in btm_ble_find_irk_index()
170 if ((btm_cb.ble_ctr_cb.irk_list_mask[byte] & (1 << bit)) == 0) { in btm_ble_find_irk_index()
171 btm_cb.ble_ctr_cb.irk_list_mask[byte] |= (1 << bit); in btm_ble_find_irk_index()
/system/bt/gd/rust/hci/src/
Dcontroller.rs237 ($($id:ident => $page:literal : $bit:literal),*) => {
248 $($id: *supported.get($page).unwrap_or(&0) & (1 << $bit) != 0,)*
288 ($($id:ident => $bit:literal),*) => {
299 $($id: supported & (1 << $bit) != 0,)*
/system/extras/simpleperf/
Detm_branch_list.proto32 // Each bit represents a branch: 0 for not branch, 1 for branch.
33 // Bit 0 comes first, bit 7 comes last.
/system/apex/docs/
Dhowto.md147 32-bit only or 64-bit only), only libraries with the corresponding ABI are
153 * If the device is 32-bit only, only the 32-bit variant of the binary is
156 `TARGET_PREFER_32_BIT_EXECUTABLES=true`, then only the 32-bit variant of the
158 * If the device is 64-bit only, then only the 64-bit variant of the binary is
161 `TARGET_PREFER_32_BIT_EXECUTABLES=true`, then only the 64-bit variant of the
171 * `lib32`: matches with the 32-bit ABI of the device, if supported
172 * `lib64`: matches with the 64-bit ABI of the device, it supported
173 * `prefer32`: matches with the 32-bit ABI of the device, if support. If 32-bit
174 ABI is not supported, it is matched with the 64-bit ABI.
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h121 int bitmap_get_bit(u8* bitmap, u32 bit); // vold
/system/gatekeeper/
DAndroid.bp46 clang_cflags: ["-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"],

1234567891011