/system/apex/apexd/ |
D | apex_database_test.cpp | 39 constexpr size_t kCount = arraysize(kLoopName) * arraysize(kPath) * in TEST() 40 arraysize(kMount) * arraysize(kDm); in TEST() 43 const size_t loop_index = i % arraysize(kLoopName); in TEST() 44 const size_t loop_rest = i / arraysize(kLoopName); in TEST() 45 const size_t path_index = loop_rest % arraysize(kPath); in TEST() 46 const size_t path_rest = loop_rest / arraysize(kPath); in TEST() 47 const size_t mount_index = path_rest % arraysize(kMount); in TEST() 48 const size_t mount_rest = path_rest / arraysize(kMount); in TEST() 49 const size_t dm_index = mount_rest % arraysize(kDm); in TEST() 50 const size_t dm_rest = mount_rest / arraysize(kHashtreeLoopName); in TEST() [all …]
|
D | apexd_rollback_utils.h | 52 return logwrap_fork_execvp(arraysize(argv), argv, nullptr, false, LOG_ALOG, in CopyDirectoryRecursive()
|
/system/libziparchive/ |
D | zip_error.cpp | 42 static_assert((-kLastErrorCode + 1) == arraysize(kErrorMessages), in ErrorCodeString() 46 if (idx < arraysize(kErrorMessages)) { in ErrorCodeString()
|
/system/libbase/ |
D | utf8_test.cpp | 54 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()
|
D | logging_splitters.h | 155 static_assert(arraysize(log_characters) - 1 == FATAL + 1, in StderrOutputGenerator()
|
/system/core/libcutils/ |
D | properties_test.cpp | 90 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/core/init/ |
D | capabilities.cpp | 133 if (cap_set_flag(caps.get(), CAP_INHERITABLE, arraysize(value), value, CAP_SET) != 0 || in SetProcCaps() 134 cap_set_flag(caps.get(), CAP_PERMITTED, arraysize(value), value, CAP_SET) != 0) { in SetProcCaps() 143 if (cap_set_flag(caps.get(), CAP_PERMITTED, arraysize(value), value, CAP_SET) != 0 || in SetProcCaps() 144 cap_set_flag(caps.get(), CAP_EFFECTIVE, arraysize(value), value, CAP_SET) != 0) { in SetProcCaps()
|
D | ueventd_test.cpp | 152 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()
|
D | reboot.cpp | 158 logwrap_fork_execvp(arraysize(f2fs_argv), f2fs_argv, &st, false, LOG_KLOG, true, in DoFsck() 166 logwrap_fork_execvp(arraysize(ext4_argv), ext4_argv, &st, false, LOG_KLOG, true, in DoFsck() 206 if (logwrap_fork_execvp(arraysize(vdc_argv), vdc_argv, &status, false, LOG_KLOG, true, in CallVdc() 270 logwrap_fork_execvp(arraysize(lsof_argv), lsof_argv, &status, false, LOG_KLOG, true, in DumpUmountDebuggingInfo() 367 logwrap_fork_execvp(arraysize(vdc_argv), vdc_argv, &status, false, LOG_KLOG, in RebootMonitorThread() 566 if (logwrap_fork_execvp(arraysize(args), args, &status, false, LOG_KLOG, true, nullptr) != 0) { in UnmountAllApexes() 963 for (size_t i = 0; i < arraysize(boot->command); ++i) { in CommandIsPresent()
|
D | subcontext.cpp | 126 int nr = TEMP_FAILURE_RETRY(poll(ufd, arraysize(ufd), -1)); in MainLoop()
|
/system/logging/liblog/ |
D | properties.cpp | 131 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/debuggerd/libdebuggerd/ |
D | scudo.cpp | 108 for (size_t i = 0; i < arraysize(report->allocation_trace) && report->allocation_trace[i]; ++i) { in FillInCause() 115 for (size_t i = 0; i < arraysize(report->deallocation_trace) && report->deallocation_trace[i]; in FillInCause() 196 for (size_t i = 0; i < arraysize(report->allocation_trace) && report->allocation_trace[i]; in DumpReport() 208 for (size_t i = 0; i < arraysize(report->deallocation_trace) && report->deallocation_trace[i]; in DumpReport()
|
/system/core/libutils/ |
D | Timers.cpp | 40 static_assert(clock_id_max == arraysize(clocks)); in systemTime()
|
/system/libbase/include/android-base/ |
D | macros.h | 76 #define arraysize(array) (sizeof(ArraySizeHelper(array))) macro
|
/system/memory/libmemunreachable/ |
D | Allocator.cpp | 252 assert(i < arraysize(free_bitmap_)); in Alloc() 260 assert(page / 32 < arraysize(dirty_pages_)); in Alloc() 279 assert(i < arraysize(free_bitmap_)); in Free()
|
/system/core/fs_mgr/ |
D | fs_mgr_format.cpp | 114 rc = logwrap_fork_execvp(arraysize(e2fsdroid_args), e2fsdroid_args, nullptr, false, LOG_KLOG, in format_ext4()
|
/system/logging/liblog/tests/ |
D | liblog_host_test.cpp | 38 static_assert(arraysize(log_characters) - 1 == ANDROID_LOG_SILENT, in MakeLogPattern()
|
/system/core/libprocessgroup/ |
D | sched_policy.cpp | 230 static_assert(arraysize(kSchedPolicyNames) == SP_CNT, "missing name"); in get_sched_policy_name()
|
/system/core/healthd/ |
D | healthd_mode_charger_test.cpp | 149 *frames = arraysize(multi); in ExpectChargerResAt()
|
/system/core/libappfuse/ |
D | FuseBuffer.cc | 104 result = TEMP_FAILURE_RETRY(writev(fd, vec, arraysize(vec))); in WriteInternal()
|
/system/logging/logd/ |
D | LogTags.cpp | 582 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()
|
D | logd_test.cpp | 383 unsigned long ns[arraysize(benchmarks)]; in TEST() 388 for (unsigned i = 0; i < arraysize(ns); ++i) { in TEST()
|
/system/core/sdcard/ |
D | sdcard.cpp | 94 minijail_set_supplementary_gids(j.get(), arraysize(kGroups), kGroups); in drop_privs()
|
/system/nvram/hal/tests/ |
D | nvram_hal_test.cc | 92 &kDefaultControls[arraysize(kDefaultControls)]), in ScopedNvramSpace() 279 &kDefaultControls[0], &kDefaultControls[arraysize(kDefaultControls)]); in TEST()
|
/system/security/ondevice-signing/ |
D | VerityUtils.cpp | 265 int argc = arraysize(argv); in addCertToFsVerityKeyring()
|