/system/core/base/include/android-base/ |
macros.h | 58 // The arraysize(arr) macro returns the # of elements in an array arr. 60 // used in defining new arrays, for example. If you use arraysize on 63 // One caveat is that arraysize() doesn't accept any array of an 69 // This template function declaration is used in defining arraysize. 75 #define arraysize(array) (sizeof(ArraySizeHelper(array))) macro 77 // ARRAYSIZE_UNSAFE performs essentially the same calculation as arraysize, 79 // functions. It's less safe than arraysize as it accepts some 80 // (although not all) pointers. Therefore, you should use arraysize
|
/system/core/init/ |
capabilities.cpp | 117 if (cap_set_flag(caps.get(), CAP_INHERITABLE, arraysize(value), value, CAP_SET) != 0 || 118 cap_set_flag(caps.get(), CAP_PERMITTED, arraysize(value), value, CAP_SET) != 0) { 127 if (cap_set_flag(caps.get(), CAP_PERMITTED, arraysize(value), value, CAP_SET) != 0 || 128 cap_set_flag(caps.get(), CAP_EFFECTIVE, arraysize(value), value, CAP_SET) != 0) {
|
/external/libmojo/base/android/ |
jni_array_unittest.cc | 22 const size_t kLen = arraysize(kBytes); 68 const size_t kLen = arraysize(kInts); 96 const size_t kLen = arraysize(kLongs); 135 const size_t kLen = arraysize(kFloats); 147 const size_t kLen = arraysize(kInts); 169 const size_t kLen = arraysize(kInt64s); 197 const size_t kLen = arraysize(kInt64s); 224 const size_t kLen = arraysize(kFloats); 300 const size_t kLen0 = arraysize(kInts0); 305 const size_t kLen1 = arraysize(kInts1) [all...] |
/external/webrtc/talk/media/base/ |
streamparams_unittest.cc | 30 #include "webrtc/base/arraysize.h" 58 for (size_t i = 0; i < arraysize(ssrc_groups); ++i) { 59 for (size_t j = 0; j < arraysize(ssrc_groups); ++j) { 96 CreateStreamParamsWithSsrcGroup("XYZ", kSsrcs2, arraysize(kSsrcs2)); 111 CreateStreamParamsWithSsrcGroup("XYZ", kSsrcs2, arraysize(kSsrcs2)); 120 CreateStreamParamsWithSsrcGroup("ABC", kSsrcs1, arraysize(kSsrcs1)); 122 CreateStreamParamsWithSsrcGroup("ABC", kSsrcs2, arraysize(kSsrcs2)); 124 CreateStreamParamsWithSsrcGroup("Abc", kSsrcs2, arraysize(kSsrcs2)); 126 CreateStreamParamsWithSsrcGroup("abc", kSsrcs2, arraysize(kSsrcs2)); 129 for (size_t i = 0; i < arraysize(sps); ++i) [all...] |
/art/runtime/arch/arm64/ |
context_arm64.h | 53 DCHECK_LT(reg, arraysize(gprs_)); 58 DCHECK_LT(reg, arraysize(gprs_));
|
instruction_set_features_arm64.cc | 48 arraysize(arm64_variants_with_a53_835769_bug), 60 if (!FindVariantInArray(arm64_known_variants, arraysize(arm64_known_variants), variant)) {
|
/system/core/adb/ |
adb_utils_test.cpp | 48 DWORD cch = arraysize(profiles_dir); 65 DWORD cch = arraysize(profiles_dir);
|
/external/libchrome/base/strings/ |
string_util_unittest.cc | 95 const std::string array_string(array, arraysize(array)); 102 const std::string array_string(array, arraysize(array)); 169 const std::string array_string(array, arraysize(array)); 183 const std::string array_string(array, arraysize(array)); 233 for (size_t i = 0; i < arraysize(trim_cases); ++i) { 252 for (size_t i = 0; i < arraysize(trim_cases_ascii); ++i) { 287 for (size_t i = 0; i < arraysize(collapse_cases); ++i) { 319 for (size_t i = 0; i < arraysize(collapse_cases_ascii); ++i) { 406 const size_t string_length = arraysize(char_ascii) - 1; 421 const size_t string_length = arraysize(char16_ascii) - 1 [all...] |
stringprintf.cc | 61 int result = vsnprintfT(stack_buf, arraysize(stack_buf), format, ap_copy); 64 if (result >= 0 && result < static_cast<int>(arraysize(stack_buf))) { 71 int mem_length = arraysize(stack_buf);
|
stringprintf_unittest.cc | 82 for (size_t i = 0; i < arraysize(src); i++) 86 for (size_t i = 0; i < arraysize(srcw); i++) 107 for (size_t i = 0; i < arraysize(src); i++)
|
sys_string_conversions_unittest.cc | 172 for (size_t i = 0; i < arraysize(kConvertRoundtripCases); ++i) { 180 for (size_t i = 0; i < arraysize(kConvertRoundtripCases); ++i) { 187 for (size_t i = 0; i < arraysize(kConvertRoundtripCases); ++i) {
|
/art/compiler/ |
compiled_method_test.cc | 34 for (size_t i = 0; i != arraysize(elems); ++i) { 35 for (size_t j = 0; j != arraysize(elems); ++j) { 41 for (size_t i = 0; i != arraysize(elems); ++i) { 42 for (size_t j = 0; j != arraysize(elems); ++j) { 177 constexpr size_t last_index = arraysize(patches) - 1u; 179 for (size_t i = 0; i != arraysize(patches); ++i) { 180 for (size_t j = 0; j != arraysize(patches); ++j) { 186 for (size_t i = 0; i != arraysize(patches); ++i) { 187 for (size_t j = 0; j != arraysize(patches); ++j) {
|
/art/compiler/jni/quick/mips/ |
calling_convention_mips.cc | 148 if (fpr_index < arraysize(kManagedDArgumentRegisters)) { 155 if (fpr_index < arraysize(kManagedFArgumentRegisters)) { 168 if (gpr_index < arraysize(kManagedCoreArgumentRegisters) - 1) { 171 } else if (gpr_index == arraysize(kManagedCoreArgumentRegisters) - 1) { 179 if (gpr_index < arraysize(kManagedCoreArgumentRegisters)) {
|
/art/runtime/arch/x86/ |
instruction_set_features_x86.cc | 88 bool has_SSSE3 = FindVariantInArray(x86_variants_with_ssse3, arraysize(x86_variants_with_ssse3), 91 arraysize(x86_variants_with_sse4_1), 94 arraysize(x86_variants_with_sse4_2), 100 arraysize(x86_variants_with_popcnt), 104 bool known_variant = FindVariantInArray(x86_known_variants, arraysize(x86_known_variants),
|
/external/google-breakpad/src/processor/ |
stackwalker_address_list_unittest.cc | 62 #define arraysize(f) (sizeof(f) / sizeof(*f)) macro 108 ASSERT_EQ(arraysize(kDummyFrames), frames->size()); 109 for (size_t i = 0; i < arraysize(kDummyFrames); ++i) { 129 StackwalkerAddressList walker(kDummyFrames, arraysize(kDummyFrames), 163 StackwalkerAddressList walker(kDummyFrames, arraysize(kDummyFrames),
|
/external/regex-re2/re2/testing/ |
filtered_re2_test.cc | 175 for (int i = 0; i < arraysize(atom_tests); i++) { 179 for (nregexp = 0; nregexp < arraysize(t->regexps); nregexp++) 182 for (natom = 0; natom < arraysize(t->atoms); natom++) 218 for (nregexp = 0; nregexp < arraysize(t->regexps); nregexp++) 237 for (nregexp = 0; nregexp < arraysize(t->regexps); nregexp++)
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
rent_a_codec_unittest.cc | 12 #include "webrtc/base/arraysize.h" 126 arraysize(encoded), encoded)) 133 arraysize(encoded), encoded)) 138 info = rac.GetEncoderStack()->Encode(0, audio, arraysize(encoded), encoded); 150 info = rac.GetEncoderStack()->Encode(1, audio, arraysize(encoded), encoded); 156 info = rac.GetEncoderStack()->Encode(2, audio, arraysize(encoded), encoded);
|
/external/autotest/client/deps/glbench/src/ |
main.cc | 169 for (unsigned int i = 0; i < arraysize(tests); i++) 176 for (unsigned int i = 0; i < arraysize(tests); i++) { 190 for (unsigned int i = 0; i < arraysize(tests); i++) {
|
/external/libchrome/base/ |
file_version_info_unittest.cc | 101 ASSERT_EQ(arraysize(kDLLNames), arraysize(kExpected)); 103 for (size_t i = 0; i < arraysize(kDLLNames); ++i) {
|
/external/v8/src/runtime/ |
runtime.cc | 94 for (size_t i = 0; i < arraysize(kIntrinsicFunctions); ++i) { 123 for (size_t i = 0; i < arraysize(kIntrinsicFunctions); ++i) { 142 size_t function_count = arraysize(kIntrinsicFunctions);
|
/external/webrtc/webrtc/base/ |
httpcommon-inl.h | 14 #include "webrtc/base/arraysize.h" 84 asccpyn(protocol, arraysize(protocol), secure_ ? "https://" : "http://"); 95 asccpyn(format, arraysize(format), ":%hu"); 96 sprintfn(port, arraysize(port), format, port_);
|
/external/eigen/test/ |
mapstride.cpp | 21 Index arraysize = 3*size; local 23 Scalar* a_array = internal::aligned_new<Scalar>(arraysize+1); 48 internal::aligned_delete(a_array, arraysize+1); 61 Index arraysize = 2*(rows+4)*(cols+4); local 63 Scalar* a_array1 = internal::aligned_new<Scalar>(arraysize+1); 146 internal::aligned_delete(a_array1, arraysize+1);
|
/system/core/base/ |
logging.cpp | 103 DWORD nchars = GetModuleFileNameA(nullptr, longname, arraysize(longname)); 104 if ((nchars >= arraysize(longname)) || (nchars == 0)) { 163 static_assert(arraysize(kLogSeverityToKernelLogLevel) == android::base::FATAL + 1, 203 static_assert(arraysize(log_characters) - 1 == FATAL + 1, 232 static_assert(arraysize(kLogSeverityToAndroidLogPriority) == FATAL + 1, 243 static_assert(arraysize(kLogIdToAndroidLogId) == SYSTEM + 1,
|
/art/compiler/jni/ |
jni_cfi_test.cc | 106 expected_asm_##isa + arraysize(expected_asm_##isa)); \ 108 expected_cfi_##isa + arraysize(expected_cfi_##isa)); \
|
/art/runtime/ |
java_vm_ext_test.cc | 51 jint ok = JNI_GetCreatedJavaVMs(vms_buf, arraysize(vms_buf), &num_vms); 64 jint ok = JNI_GetCreatedJavaVMs(vms_buf, arraysize(vms_buf), &num_vms);
|