Home
last modified time | relevance | path

Searched refs:arraysize (Results 1 – 25 of 40) sorted by relevance

12

/system/apex/apexd/
Dapex_database_test.cpp47 constexpr size_t kCount = arraysize(kLoopName) * arraysize(kPath) * in TEST()
48 arraysize(kMount) * arraysize(kDm); in TEST()
51 const size_t loop_index = i % arraysize(kLoopName); in TEST()
52 const size_t loop_rest = i / arraysize(kLoopName); in TEST()
53 const size_t path_index = loop_rest % arraysize(kPath); in TEST()
54 const size_t path_rest = loop_rest / arraysize(kPath); in TEST()
55 const size_t mount_index = path_rest % arraysize(kMount); in TEST()
56 const size_t mount_rest = path_rest / arraysize(kMount); in TEST()
57 const size_t dm_index = mount_rest % arraysize(kDm); in TEST()
58 const size_t dm_rest = mount_rest / arraysize(kHashtreeLoopName); in TEST()
[all …]
Dapexd_rollback_utils.h52 return logwrap_fork_execvp(arraysize(argv), argv, nullptr, false, LOG_ALOG, in CopyDirectoryRecursive()
Dapex_classpath.cpp71 auto rc = logwrap_fork_execvp(arraysize(argv), argv, nullptr, false, LOG_ALOG, in DeriveClassPath()
/system/libbase/
Dutf8_test.cpp54 EXPECT_EQ(wide.length() - (arraysize(after_wide) - 1), wide.find(after_wide)); in TEST()
122 for (size_t i = 0; i < arraysize(kConvertRoundtripCases); ++i) { in TEST()
171 for (size_t i = 0; i < arraysize(convert_cases); i++) { in TEST()
240 for (size_t i = 0; i < arraysize(convert_cases); i++) { in TEST()
281 for (size_t i = 0; i < arraysize(convert_cases); i++) { in TEST()
327 memcpy(WriteInto(&multistring16, arraysize(multi16)), multi16, in TEST()
329 EXPECT_EQ(arraysize(multi16) - 1, multistring16.length()); in TEST()
331 memcpy(WriteInto(&expected, arraysize(multi)), multi, sizeof(multi)); in TEST()
332 EXPECT_EQ(arraysize(multi) - 1, expected.length()); in TEST()
334 EXPECT_EQ(arraysize(multi) - 1, converted.length()); in TEST()
Dlogging_splitters.h159 static_assert(arraysize(log_characters) - 1 == FATAL + 1, in StderrOutputGenerator()
/system/libziparchive/
Dzip_error.cpp42 static_assert((-kLastErrorCode + 1) == arraysize(kErrorMessages), in ErrorCodeString()
46 if (idx < arraysize(kErrorMessages)) { in ErrorCodeString()
/system/core/libcutils/
Dproperties_test.cpp90 for (size_t i = 0; i < arraysize(mValue); ++i) { in ResetValue()
273 for (size_t i = 0; i < arraysize(valuesNeither); ++i) { in TEST_F()
322 ASSERT_EQ(arraysize(setValues), arraysize(getValues)); in TEST_F()
324 for (size_t i = 0; i < arraysize(setValues); ++i) { in TEST_F()
369 ASSERT_EQ(arraysize(setValues), arraysize(getValues)); in TEST_F()
371 for (size_t i = 0; i < arraysize(setValues); ++i) { in TEST_F()
/system/bpf/loader/
DBpfLoader.cpp82 .allowedProgTypesLength = arraysize(kPlatformAllowedProgTypes),
89 .allowedProgTypesLength = arraysize(kUprobestatsAllowedProgTypes),
96 .allowedProgTypesLength = arraysize(kVendorAllowedProgTypes),
DBpfLoadTest.cpp74 .allowedProgTypesLength = arraysize(kAllowed), in SetUp()
/system/logging/liblog/
Dproperties.cpp131 for (size_t i = 0; i < arraysize(tag_cache); ++i) { in __android_log_level()
136 for (size_t i = 0; i < arraysize(global_cache); ++i) { in __android_log_level()
154 for (size_t i = 0; i < arraysize(tag_cache); ++i) { in __android_log_level()
164 for (size_t i = 0; i < arraysize(tag_cache); ++i) { in __android_log_level()
199 for (size_t i = 0; i < arraysize(global_cache); ++i) { in __android_log_level()
/system/core/init/
Dcapabilities.cpp127 if (cap_set_flag(caps.get(), CAP_INHERITABLE, arraysize(value), value, CAP_SET) != 0 || in SetProcCaps()
128 cap_set_flag(caps.get(), CAP_PERMITTED, arraysize(value), value, CAP_SET) != 0) { in SetProcCaps()
137 if (cap_set_flag(caps.get(), CAP_PERMITTED, arraysize(value), value, CAP_SET) != 0 || in SetProcCaps()
138 cap_set_flag(caps.get(), CAP_EFFECTIVE, arraysize(value), value, CAP_SET) != 0) { in SetProcCaps()
Dueventd_test.cpp152 for (size_t i = 0; i < arraysize(files_and_modes); ++i) { in TEST()
168 for (size_t i = 0; i < arraysize(files_and_modes); ++i) { in TEST()
Dreboot.cpp160 logwrap_fork_execvp(arraysize(f2fs_argv), f2fs_argv, &st, false, LOG_KLOG, true, in DoFsck()
168 logwrap_fork_execvp(arraysize(ext4_argv), ext4_argv, &st, false, LOG_KLOG, true, in DoFsck()
208 if (logwrap_fork_execvp(arraysize(vdc_argv), vdc_argv, &status, false, LOG_KLOG, true, in CallVdc()
272 logwrap_fork_execvp(arraysize(lsof_argv), lsof_argv, &status, false, LOG_KLOG, true, in DumpUmountDebuggingInfo()
369 logwrap_fork_execvp(arraysize(vdc_argv), vdc_argv, &status, false, LOG_KLOG, in RebootMonitorThread()
598 if (logwrap_fork_execvp(arraysize(args), args, &status, false, LOG_KLOG, true, nullptr) != 0) { in UnmountAllApexes()
1016 for (size_t i = 0; i < arraysize(boot->command); ++i) { in CommandIsPresent()
/system/core/libutils/
DTimers.cpp38 static_assert(clock_id_max == arraysize(clocks)); in systemTime()
/system/core/debuggerd/libdebuggerd/
Dscudo.cpp120 for (size_t i = 0; i < arraysize(report->allocation_trace) && report->allocation_trace[i]; ++i) { in FillInCause()
127 for (size_t i = 0; i < arraysize(report->deallocation_trace) && report->deallocation_trace[i]; in FillInCause()
/system/libbase/include/android-base/
Dmacros.h76 #define arraysize(array) (sizeof(ArraySizeHelper(array))) macro
/system/core/fs_mgr/
Dfs_mgr_format.cpp118 rc = logwrap_fork_execvp(arraysize(e2fsdroid_args), e2fsdroid_args, nullptr, false, LOG_KLOG, in format_ext4()
/system/security/ondevice-signing/
Dodsign_main.cpp122 logwrap_fork_execvp(arraysize(argv), argv, nullptr, false, LOG_ALOG, false, nullptr); in compileArtifacts()
129 logwrap_fork_execvp(arraysize(argv), argv, nullptr, false, LOG_ALOG, false, nullptr); in checkArtifacts()
345 logwrap_fork_execvp(arraysize(argv), argv, nullptr, false, LOG_ALOG, false, nullptr); in getComposInfo()
/system/memory/libmemunreachable/
DAllocator.cpp246 assert(i < arraysize(free_bitmap_)); in Alloc()
269 assert(i < arraysize(free_bitmap_)); in Free()
/system/logging/liblog/tests/
Dliblog_host_test.cpp38 static_assert(arraysize(log_characters) - 1 == ANDROID_LOG_SILENT, in MakeLogPattern()
/system/core/libprocessgroup/
Dsched_policy.cpp240 static_assert(arraysize(kSchedPolicyNames) == SP_CNT, "missing name"); in get_sched_policy_name()
/system/core/healthd/
Dhealthd_mode_charger_test.cpp150 *frames = arraysize(multi); in ExpectChargerResAt()
/system/logging/logd/
DLogTags.cpp582 TEMP_FAILURE_RETRY(writev(pmsg_fd, Vec, arraysize(Vec))); in WritePmsgEventLogTags()
585 TEMP_FAILURE_RETRY(writev(pmsg_fd, Vec, arraysize(Vec))); in WritePmsgEventLogTags()
589 TEMP_FAILURE_RETRY(writev(pmsg_fd, Vec, arraysize(Vec))); in WritePmsgEventLogTags()
/system/core/libappfuse/
DFuseBuffer.cc104 result = TEMP_FAILURE_RETRY(writev(fd, vec, arraysize(vec))); in WriteInternal()
/system/core/sdcard/
Dsdcard.cpp94 minijail_set_supplementary_gids(j.get(), arraysize(kGroups), kGroups); in drop_privs()

12