Home
last modified time | relevance | path

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

12345678910

/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.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()
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);
/system/tools/hidl/test/hidl_test/
Dhidl_test_helper4 …| CLIENT64_SERVER32 | CLIENT32_SERVER64] configures whether to run 32-bit or 64-bit versions of th…
28 echo "Running $1-bit client with $2-bit servers"
34 failed_test_cases+=("$1-bit client with $2-bit servers")
/system/extras/ext4_utils/
Dext4_utils.cpp57 int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit() argument
59 if (bitmap[bit / 8] & (1 << (bit % 8))) in bitmap_get_bit()
65 void bitmap_clear_bit(u8 *bitmap, u32 bit) in bitmap_clear_bit() argument
67 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.c384 uint32_t bit, ormask; \
388 bit = ormask & -ormask; /* get lowest bit */ \
389 ormask ^= bit; /* remove lowest bit */ \
390 if ((dmask) & bit) { \
391 *(dst)++ = (smask) & bit ? *(src)++ : (zero); \
507 uint32_t bit, ormask = src_mask | dst_mask; in memcpy_by_index_array_initialization() local
510 bit = ormask & -ormask; /* get lowest bit */ in memcpy_by_index_array_initialization()
511 ormask ^= bit; /* remove lowest bit */ in memcpy_by_index_array_initialization()
512 if (src_mask & dst_mask & bit) { /* matching channel */ in memcpy_by_index_array_initialization()
514 } else if (src_mask & bit) { /* source channel only */ in memcpy_by_index_array_initialization()
/system/core/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/libhidl/transport/base/1.0/
Dtypes.hal23 * arch: 64bit or 32bit
/system/core/libpixelflinger/
Dfixed.cpp101 GGLfixed bit = 0x800000; in gglSqrtx() local
104 GGLfixed temp = bit + (r<<1); in gglSqrtx()
108 r += bit; in gglSqrtx()
112 } while (bit>>=1); in gglSqrtx()
/system/bt/stack/btm/
Dbtm_ble_privacy.cc141 uint8_t bit; in btm_ble_clear_irk_index() local
145 bit = index % 8; in btm_ble_clear_irk_index()
146 btm_cb.ble_ctr_cb.irk_list_mask[byte] &= (~(1 << bit)); in btm_ble_clear_irk_index()
162 uint8_t bit; in btm_ble_find_irk_index() local
166 bit = i % 8; in btm_ble_find_irk_index()
168 if ((btm_cb.ble_ctr_cb.irk_list_mask[byte] & (1 << bit)) == 0) { in btm_ble_find_irk_index()
169 btm_cb.ble_ctr_cb.irk_list_mask[byte] |= (1 << bit); in btm_ble_find_irk_index()
/system/keymaster/
DAndroid.bp45 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
135 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
182 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
221 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
268 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
309 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
/system/tools/aidl/docs/
Dconstants.md17 These map to appropriate 32 bit integer class constants in Java and C++ (e.g.
/system/tools/hidl/test/java_test/
Dhidl_test_java9 echo "Testing $SIZE bit native client/server"
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h130 int bitmap_get_bit(u8 *bitmap, u32 bit); // vold
/system/gatekeeper/
DAndroid.bp41 clang_cflags: ["-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"],
/system/sepolicy/prebuilts/api/26.0/public/
Dnetd.te16 # the setgid bit should be cleared, regardless of whether the setgid
17 # bit was even set. We do not appear to truly need this capability
/system/ca-certificates/files/
D0d69c7e1.027 Public-Key: (256 bit)
D7a7c655d.026 Public-Key: (256 bit)
/system/ca-certificates/google/files/
D0d69c7e1.027 Public-Key: (256 bit)

12345678910