Searched refs:real_path (Results 1 – 5 of 5) sorted by relevance
/frameworks/libs/binary_translation/kernel_api/ |
D | unistd_emulation.cc | 29 const char* real_path = TryReadLinkToMainExecutableRealPath(path); in ReadLinkAtForGuest() local 30 if (!real_path) { in ReadLinkAtForGuest() 36 size_t real_path_len = strlen(real_path); in ReadLinkAtForGuest() 38 memcpy(buf, real_path, buf_size); in ReadLinkAtForGuest() 41 memcpy(buf, real_path, real_path_len + 1); in ReadLinkAtForGuest()
|
D | open_emulation.cc | 239 const char* real_path = nullptr; in OpenatForGuest() local 241 real_path = TryReadLinkToMainExecutableRealPath(path); in OpenatForGuest() 244 if (real_path == nullptr) { in OpenatForGuest() 245 real_path = TryTranslateProcCpuinfoPath(path, host_flags); in OpenatForGuest() 248 return openat(dirfd, real_path != nullptr ? real_path : path, host_flags, mode); in OpenatForGuest()
|
/frameworks/libs/binary_translation/kernel_api/riscv64/ |
D | syscall_emulation.cc | 47 const char* real_path = nullptr; in FstatatForGuest() local 49 real_path = TryReadLinkToMainExecutableRealPath(path); in FstatatForGuest() 51 return syscall(__NR_newfstatat, dirfd, real_path ? real_path : path, buf, flags); in FstatatForGuest()
|
/frameworks/libs/binary_translation/tiny_loader/tests/ |
D | tiny_loader_tests.cc | 54 bool GetTestElfFilepath(const char* name, std::string* real_path, std::string* error_msg) { in GetTestElfFilepath() argument 67 if (!berberis::Realpath(out_path, real_path)) { in GetTestElfFilepath()
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.cpp | 4627 const std::string& real_path = path.empty() ? screenshot_path_ : path; in TakeScreenshot() local 4629 RunCommand("", {"/system/bin/screencap", "-p", real_path}, in TakeScreenshot() 4632 MYLOGD("Screenshot saved on %s\n", real_path.c_str()); in TakeScreenshot() 4634 MYLOGE("Failed to take screenshot on %s\n", real_path.c_str()); in TakeScreenshot()
|