/system/core/libutils/include/utils/ |
D | Flattenable.h | 39 template<size_t N> 41 static_assert(!(N & (N - 1)), "Can only align to a power of 2."); in align() 42 return (size + (N-1)) & ~(N-1); in align() 45 template<size_t N> 47 static_assert(!(N & (N - 1)), "Can only align to a power of 2."); in align() 49 buffer = reinterpret_cast<void*>((uintptr_t(buffer) + (N-1)) & ~(N-1)); in align() 53 template<size_t N> 55 static_assert(!(N & (N - 1)), "Can only align to a power of 2."); in align() 57 buffer = reinterpret_cast<void*>((uintptr_t(buffer) + (N-1)) & ~(N-1)); in align()
|
D | String16.h | 33 template <size_t N> 163 template <size_t N> 166 static_assert(N - 1 < kIsSharedBufferAllocated, "StaticString16 too long!"); 167 constexpr StaticData() : size(N - 1), data{0} {} in StaticData() 169 char16_t data[N]; 171 constexpr StaticData(const StaticData<N>&) = default; 177 template <size_t N> 178 static constexpr const StaticData<N> makeStaticData(const char16_t (&s)[N]) { in makeStaticData() argument 179 StaticData<N> r; in makeStaticData() 183 for (size_t i = 0; i < N - 1; ++i) r.data[i] = s[i]; in makeStaticData() [all …]
|
/system/bt/common/ |
D | id_generator.h | 22 template <std::size_t N> 31 for (std::size_t i = 0; i < N; i++) { in GetNext() 44 std::array<bool, N> in_use_; 47 template <std::size_t N> 48 int IdGenerator<N>::ALL_USED = -1;
|
/system/sepolicy/private/ |
D | mls_macros | 3 # gen_cats(N) 5 # declares categores c0 to c(N-1) 16 # gen_sens(N) 18 # declares sensitivites s0 to s(N-1) with dominance 19 # in increasing numeric order with s0 lowest, s(N-1) highest 38 # gen_levels(N,M) 40 # levels from s0 to (N-1) with categories c0 to (M-1)
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | mls_macros | 3 # gen_cats(N) 5 # declares categores c0 to c(N-1) 16 # gen_sens(N) 18 # declares sensitivites s0 to s(N-1) with dominance 19 # in increasing numeric order with s0 lowest, s(N-1) highest 38 # gen_levels(N,M) 40 # levels from s0 to (N-1) with categories c0 to (M-1)
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | mls_macros | 3 # gen_cats(N) 5 # declares categores c0 to c(N-1) 16 # gen_sens(N) 18 # declares sensitivites s0 to s(N-1) with dominance 19 # in increasing numeric order with s0 lowest, s(N-1) highest 38 # gen_levels(N,M) 40 # levels from s0 to (N-1) with categories c0 to (M-1)
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | mls_macros | 3 # gen_cats(N) 5 # declares categores c0 to c(N-1) 16 # gen_sens(N) 18 # declares sensitivites s0 to s(N-1) with dominance 19 # in increasing numeric order with s0 lowest, s(N-1) highest 38 # gen_levels(N,M) 40 # levels from s0 to (N-1) with categories c0 to (M-1)
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | mls_macros | 3 # gen_cats(N) 5 # declares categores c0 to c(N-1) 16 # gen_sens(N) 18 # declares sensitivites s0 to s(N-1) with dominance 19 # in increasing numeric order with s0 lowest, s(N-1) highest 38 # gen_levels(N,M) 40 # levels from s0 to (N-1) with categories c0 to (M-1)
|
/system/sepolicy/reqd_mask/ |
D | mls_macros | 3 # gen_cats(N) 5 # declares categores c0 to c(N-1) 16 # gen_sens(N) 18 # declares sensitivites s0 to s(N-1) with dominance 19 # in increasing numeric order with s0 lowest, s(N-1) highest 38 # gen_levels(N,M) 40 # levels from s0 to (N-1) with categories c0 to (M-1)
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | mls_macros | 3 # gen_cats(N) 5 # declares categores c0 to c(N-1) 16 # gen_sens(N) 18 # declares sensitivites s0 to s(N-1) with dominance 19 # in increasing numeric order with s0 lowest, s(N-1) highest 38 # gen_levels(N,M) 40 # levels from s0 to (N-1) with categories c0 to (M-1)
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 76 template <typename T, size_t N> inline size_t array_size(const T (&a)[N]) { in array_size() argument 83 template <typename T, size_t N> inline size_t array_length(const T (&)[N]) { in array_length() argument 84 return N; in array_length() 104 template <typename T, size_t N> inline T* dup_array(const T (&a)[N]) { in dup_array() argument 105 return dup_array(a, N); in dup_array() 117 template <typename T, size_t N> inline void copy_array(const T (&arr)[N], T* dest) { in copy_array() argument 118 for (size_t i = 0; i < N; ++i) in copy_array() 127 template <typename T, size_t N> inline bool array_contains(const T (&a)[N], T val) { in array_contains() argument 128 for (size_t i = 0; i < N; ++i) { in array_contains() 172 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() argument [all …]
|
/system/chre/apps/test/chqts/src/shared/ |
D | array_length.h | 30 template <typename T, size_t N> 31 constexpr size_t arrayLength(T (&)[N]) { in arrayLength() argument 32 return N; in arrayLength()
|
/system/tools/aidl/ |
D | ast_java.cpp | 69 size_t N = arguments.size(); in WriteArgumentList() local 70 for (size_t i = 0; i < N; i++) { in WriteArgumentList() 72 if (i != N - 1) { in WriteArgumentList() 138 int N = this->statements.size(); in Write() local 139 for (int i = 0; i < N; i++) { in Write() 295 int N = this->cases.size(); in Write() local 296 if (N > 0) { in Write() 297 for (int i = 0; i < N; i++) { in Write() 318 int N = this->cases.size(); in Write() local 319 for (int i = 0; i < N; i++) { in Write() [all …]
|
/system/libhwbinder/ |
D | Static.cpp | 40 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines() argument 43 if (N != 1) ALOGI("WARNING: writeLines N=%zu\n", N); in writeLines()
|
D | BpHwBinder.cpp | 76 const size_t N = mObjects.size(); in kill() local 77 ALOGV("Killing %zu objects in manager %p", N, this); in kill() 78 for (size_t i=0; i<N; i++) { in kill() 165 const size_t N = mObituaries ? mObituaries->size() : 0; in unlinkToDeath() local 166 for (size_t i=0; i<N; i++) { in unlinkToDeath() 214 const size_t N = obits->size(); in sendObituary() local 215 for (size_t i=0; i<N; i++) { in sendObituary()
|
/system/core/libutils/ |
D | String16.cpp | 160 const size_t N = other.size(); in setTo() local 161 if (begin >= N) { in setTo() 166 if ((begin+len) > N) len = N-begin; in setTo() 167 if (begin == 0 && len == N) { in setTo() 408 const size_t N = size(); in makeLower() local 411 for (size_t i=0; i<N; i++) { in makeLower() 430 const size_t N = size(); in replaceAll() local 433 for (size_t i=0; i<N; i++) { in replaceAll() 451 const size_t N = size(); in remove() local 452 if (begin >= N) { in remove() [all …]
|
/system/extras/boottime_tools/io_analysis/ |
D | check_verity.py | 31 N = len(l) 38 average_io = sum_io / N 39 average_verity = sum_verity / N 40 average_total = sum_total / N 48 sigma_io = math.sqrt(var_io / N) 49 sigma_verity = math.sqrt(var_verity / N) 50 sigma_total = math.sqrt(var_total / N)
|
/system/iorap/src/common/ |
D | macros.h | 33 …e46, e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61, e62, e63, N, ...) N argument 48 #define IORAP_PP_MAP_IMPL(N, FN, sep, ...) IORAP_PP_CONCAT(IORAP_PP_MAP_IMPL_, N)(FN, sep, __VA_ARG… argument
|
/system/core/base/include/android-base/ |
D | macros.h | 73 template <typename T, size_t N> 74 char(&ArraySizeHelper(T(&array)[N]))[N]; // NOLINT(readability/casting)
|
/system/media/audio_utils/include/audio_utils/ |
D | Statistics.h | 259 template <size_t N> 260 explicit constexpr Statistics(const T (&a)[N], A alpha = A(1.)) 364 const int64_t N = getN(); 365 if (N == 0) return "unavail"; 369 if (N > 1) { 511 const auto N = getN(); 512 if (N == 0) return "unavail"; 516 if (N > 1) { 748 template <typename T, size_t N> 749 constexpr T max(const T (&a)[N]) { [all …]
|
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/ |
D | TreeNode.java | 114 public interface Visitor<N extends TreeNode<N>> { 115 void visit(N node); in visit()
|
/system/core/libappfuse/include/libappfuse/ |
D | FuseBuffer.h | 75 template <size_t N> 76 struct FuseResponseBase : public FuseMessage<FuseResponseBase<N>> { 88 char read_data[N];
|
/system/gatekeeper/include/gatekeeper/ |
D | gatekeeper_utils.h | 43 template <typename T, size_t N> inline size_t array_length(const T (&)[N]) { in array_length() argument 44 return N; in array_length()
|
/system/vold/ |
D | CryptoType.h | 80 template <typename T, size_t N> 81 constexpr size_t array_length(T (&)[N]) { in array_length() argument 82 return N; in array_length()
|
/system/connectivity/wificond/net/ |
D | nl80211_attribute.h | 116 template <size_t N> 117 class NL80211Attr<std::array<uint8_t, N>> : public BaseNL80211Attr { 119 NL80211Attr(int id, const std::array<uint8_t, N>& raw_buffer) in NL80211Attr() 126 std::array<uint8_t, N> GetValue() const { in GetValue() 127 std::array<uint8_t, N> arr; in GetValue() 128 std::copy_n(data_.data() + NLA_HDRLEN, N, arr.begin()); in GetValue()
|