/device/google/cuttlefish/common/libs/utils/ |
D | files.cpp | 80 bool FileExists(const std::string& path, bool follow_symlinks) { in FileExists() argument 82 return (follow_symlinks ? stat : lstat)(path.c_str(), &st) == 0; in FileExists() 85 Result<dev_t> FileDeviceId(const std::string& path) { in FileDeviceId() argument 88 stat(path.c_str(), &out) == 0, in FileDeviceId() 91 path, strerror(errno)); in FileDeviceId() 101 Result<ino_t> FileInodeNumber(const std::string& path) { in FileInodeNumber() argument 104 stat(path.c_str(), &out) == 0, in FileInodeNumber() 107 path, strerror(errno)); in FileInodeNumber() 145 bool FileHasContent(const std::string& path) { in FileHasContent() argument 146 return FileSize(path) > 0; in FileHasContent() [all …]
|
D | files.h | 29 bool FileExists(const std::string& path, bool follow_symlinks = true); 30 Result<dev_t> FileDeviceId(const std::string& path); 33 Result<ino_t> FileInodeNumber(const std::string& path); 39 bool FileHasContent(const std::string& path); 40 Result<std::vector<std::string>> DirectoryContents(const std::string& path); 41 bool DirectoryExists(const std::string& path, bool follow_symlinks = true); 46 Result<void> ChangeGroup(const std::string& path, 48 bool CanAccess(const std::string& path, const int mode); 49 bool IsDirectoryEmpty(const std::string& path); 50 Result<void> RecursivelyRemoveDirectory(const std::string& path); [all …]
|
/device/google/gs-common/touch/lsi/ |
D | dump_lsi.sh | 2 path="/sys/devices/virtual/sec/tsp" 5 echo "force_touch_active,2,1" > $path/cmd && cat $path/cmd_result 8 cat $path/fw_version 11 cat $path/status 14 echo "get_mis_cal_info" > $path/cmd && cat $path/cmd_result 17 echo "run_delta_read_all" > $path/cmd && cat $path/cmd_result 20 echo "run_self_delta_read_all" > $path/cmd && cat $path/cmd_result 23 echo "run_rawdata_read_type,3" > $path/cmd && cat $path/cmd_result 26 echo "run_rawdata_read_type,5" > $path/cmd && cat $path/cmd_result 29 echo "run_rawdata_read_type,19" > $path/cmd && cat $path/cmd_result [all …]
|
/device/google/cuttlefish_vmm/qemu/third_party/.cargo/ |
D | config.toml | 2 anyhow = { path = "rust/crates/anyhow" } qkey 3 autocfg = { path = "rust/crates/autocfg" } qkey 4 bitflags = { path = "rust/crates/bitflags" } qkey 5 byteorder = { path = "rust/crates/byteorder" } qkey 6 cfg-if = { path = "rust/crates/cfg-if" } qkey 7 libc = { path = "rust/crates/libc" } qkey 8 log = { path = "rust/crates/log" } qkey 9 memoffset = { path = "rust/crates/memoffset" } qkey 10 nix = { path = "rust/crates/nix" } qkey 11 once_cell = { path = "rust/crates/once_cell" } qkey [all …]
|
/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | clean.cc | 36 Result<void> CleanPriorFiles(const std::string& path, in CleanPriorFiles() argument 38 if (preserving.count(cpp_basename(path))) { in CleanPriorFiles() 39 LOG(DEBUG) << "Preserving: " << path; in CleanPriorFiles() 43 if (lstat(path.c_str(), &statbuf) < 0) { in CleanPriorFiles() 48 return CF_ERRNO("Could not stat \"" << path); in CleanPriorFiles() 52 LOG(DEBUG) << "Deleting: " << path; in CleanPriorFiles() 53 if (unlink(path.c_str()) < 0) { in CleanPriorFiles() 54 return CF_ERRNO("Could not unlink \"" << path << "\""); in CleanPriorFiles() 58 std::unique_ptr<DIR, int(*)(DIR*)> dir(opendir(path.c_str()), closedir); in CleanPriorFiles() 60 return CF_ERRNO("Could not clean \"" << path << "\""); in CleanPriorFiles() [all …]
|
/device/linaro/dragonboard/shared/utils/rmtfs/ |
D | sharedmem.c | 59 char path[32]; in rmtfs_mem_open_rfsa() local 63 sprintf(path, "/dev/qcom_rmtfs_mem%d", client_id); in rmtfs_mem_open_rfsa() 65 fd = open(path, O_RDWR); in rmtfs_mem_open_rfsa() 68 fprintf(stderr, "failed to open %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_rfsa() 76 fprintf(stderr, "failed to stat %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_rfsa() 97 fprintf(stderr, "failed to parse phys_addr of %s\n", path); in rmtfs_mem_open_rfsa() 104 fprintf(stderr, "failed to parse size of %s\n", path); in rmtfs_mem_open_rfsa() 129 char path[32]; in rmtfs_mem_open_uio() local 133 snprintf(path, sizeof(path), "/dev/qcom_rmtfs_uio%d", client_id); in rmtfs_mem_open_uio() 135 fd = open(path, O_RDWR); in rmtfs_mem_open_uio() [all …]
|
/device/google/gs-common/touch/focaltech/ |
D | dump_focaltech.sh | 2 path="/proc/focaltech_touch" 5 echo 21 > $path/force_active 8 cat $path/FW_Version 11 cat $path/INT_PIN 14 cat $path/selftest/Panel_Differ 17 cat $path/selftest/Rawdata 20 cat $path/selftest/Baseline 23 cat $path/selftest/Noise 26 cat $path/selftest/Rawdata_Uniformity 29 cat $path/selftest/Scap_CB [all …]
|
/device/google/sunfish/vibrator/drv2624/tests/ |
D | test-hwapi.cpp | 65 auto name = std::filesystem::path(n); in SetUp() 66 auto path = std::filesystem::path(mFilesDir.path) / name; in SetUp() local 67 fs_mkdirs(path.c_str(), S_IRWXU); in SetUp() 68 std::ofstream touch{path}; in SetUp() 69 mFileMap[name] = path; in SetUp() 71 prefix = std::filesystem::path(mFilesDir.path) / ""; in SetUp() 76 auto name = std::filesystem::path(n); in SetUp() 77 auto path = std::filesystem::path(mEmptyDir.path) / name; in SetUp() local 78 fs_mkdirs(path.c_str(), S_IRWXU); in SetUp() 79 std::ofstream touch{path}; in SetUp() [all …]
|
/device/google/redfin/vibrator/drv2624/tests/ |
D | test-hwapi.cpp | 64 auto name = std::filesystem::path(n); in SetUp() 65 auto path = std::filesystem::path(mFilesDir.path) / name; in SetUp() local 66 fs_mkdirs(path.c_str(), S_IRWXU); in SetUp() 67 std::ofstream touch{path}; in SetUp() 68 mFileMap[name] = path; in SetUp() 70 prefix = std::filesystem::path(mFilesDir.path) / ""; in SetUp() 75 auto name = std::filesystem::path(n); in SetUp() 76 auto path = std::filesystem::path(mEmptyDir.path) / name; in SetUp() local 77 fs_mkdirs(path.c_str(), S_IRWXU); in SetUp() 78 std::ofstream touch{path}; in SetUp() [all …]
|
/device/google/barbet/vibrator/drv2624/tests/ |
D | test-hwapi.cpp | 64 auto name = std::filesystem::path(n); in SetUp() 65 auto path = std::filesystem::path(mFilesDir.path) / name; in SetUp() local 66 fs_mkdirs(path.c_str(), S_IRWXU); in SetUp() 67 std::ofstream touch{path}; in SetUp() 68 mFileMap[name] = path; in SetUp() 70 prefix = std::filesystem::path(mFilesDir.path) / ""; in SetUp() 75 auto name = std::filesystem::path(n); in SetUp() 76 auto path = std::filesystem::path(mEmptyDir.path) / name; in SetUp() local 77 fs_mkdirs(path.c_str(), S_IRWXU); in SetUp() 78 std::ofstream touch{path}; in SetUp() [all …]
|
/device/linaro/dragonboard/shared/utils/tqftpserv/ |
D | translate.c | 74 char path[PATH_MAX]; in translate_readonly() local 115 strlen(file) + 1 > sizeof(path)) in translate_readonly() 118 strcpy(path, FIRMWARE_BASE); in translate_readonly() 119 strcat(path, dirname(firmware_value)); in translate_readonly() 120 strcat(path, "/"); in translate_readonly() 121 strcat(path, file); in translate_readonly() 123 fd = open(path, O_RDONLY); in translate_readonly() 128 warn("failed to open %s", path); in translate_readonly() 180 int translate_open(const char *path, int flags) in translate_open() argument 182 if (!strncmp(path, READONLY_PATH, strlen(READONLY_PATH))) in translate_open() [all …]
|
/device/linaro/dragonboard-kernel/android-mainline/ |
D | BUILD_INFO | 50 "path": "build/kernel", 60 "path": "common", 76 "path": "kernel/common-patches", 86 "path": "kernel/tests", 96 "path": "kernel/configs", 106 "path": "common-modules/virtual-device", 120 "path": "prebuilts/clang/host/linux-x86", 134 "path": "prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8", 148 "path": "prebuilts/build-tools", 159 "path": "prebuilts/clang-tools", [all …]
|
/device/linaro/dragonboard-kernel/android-6.6/ |
D | BUILD_INFO | 50 "path": "build/kernel", 63 "path": "build/bazel_common_rules", 73 "path": "common", 83 "path": "kernel/tests", 93 "path": "kernel/configs", 103 "path": "common-modules/virtual-device", 117 "path": "prebuilts/clang/host/linux-x86", 131 "path": "prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8", 145 "path": "prebuilts/build-tools", 156 "path": "prebuilts/clang-tools", [all …]
|
/device/google/cuttlefish/host/libs/websocket/ |
D | websocket_server.cpp | 33 std::string path(len + 1, '\0'); in GetPath() local 34 auto ret = lws_hdr_copy(wsi, path.data(), path.size(), WSI_TOKEN_GET_URI); in GetPath() 37 path.resize(len + 1, '\0'); in GetPath() 39 lws_hdr_copy(wsi, path.data(), path.size(), WSI_TOKEN_HTTP_COLON_PATH); in GetPath() 44 path.resize(len); in GetPath() 45 return path; in GetPath() 147 auto& path = handler_entry.first; in InitializeLwsObjects() local 150 .mountpoint = path.c_str(), in InitializeLwsObjects() 151 .mountpoint_len = static_cast<uint8_t>(path.size()), in InitializeLwsObjects() 226 const std::string& path, in RegisterHandlerFactory() argument [all …]
|
/device/google/felix/vibrator/cs40l26/tests/ |
D | test-hwapi.cpp | 54 auto name = std::filesystem::path(n); in SetUp() 55 auto path = std::filesystem::path(mFilesDir.path) / name; in SetUp() local 56 fs_mkdirs(path.c_str(), S_IRWXU); in SetUp() 57 std::ofstream touch{path}; in SetUp() 58 mFileMap[name] = path; in SetUp() 60 prefix = std::filesystem::path(mFilesDir.path) / ""; in SetUp() 65 auto name = std::filesystem::path(n); in SetUp() 66 auto path = std::filesystem::path(mEmptyDir.path) / name; in SetUp() local 68 prefix = std::filesystem::path(mEmptyDir.path) / ""; in SetUp() 261 std::string value = TemporaryFile().path; in TEST_P() [all …]
|
/device/google/gs-common/touch/syna/ |
D | dump_syna.sh | 2 path=`getprop ro.vendor.touch.dump.sys` 5 echo 21 > $path/force_active 8 cat $path/info 11 echo 12 > $path/get_raw_data && cat $path/get_raw_data 14 echo 13 > $path/get_raw_data && cat $path/get_raw_data 17 echo 14 > $path/get_raw_data && cat $path/get_raw_data 20 echo 20 > $path/force_active
|
/device/linaro/hikey/power/ |
D | power_hikey.c | 97 char path[PROPERTY_VALUE_MAX]; member 106 static int sysfs_write(const char *path, char *s) in sysfs_write() argument 110 int fd = open(path, O_WRONLY); in sysfs_write() 114 ALOGE("Error opening %s: %s\n", path, buf); in sysfs_write() 121 ALOGE("Error writing to %s: %s\n", path, buf); in sysfs_write() 128 static int sysfs_read(const char *path, char *s, int slen) in sysfs_read() argument 131 int fd = open(path, O_RDONLY); in sysfs_read() 134 ALOGE("Error opening %s\n", path); in sysfs_read() 140 ALOGE("Error reading %s\n", path); in sysfs_read() 364 sysfs_write(hikey_cpufreq_clusters[i].path, hikey_cpufreq_clusters[i].low_power_max); in power_set_interactive() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | syscall.c | 33 bool syscallAddTable(uint32_t path, uint32_t level, struct SyscallTable *table) in syscallAddTable() argument 39 uint32_t idx = path >> (32 - *bits); in syscallAddTable() 40 path <<= *bits++; in syscallAddTable() 57 static SyscallFunc* syscallFindHandlerLoc(uint32_t path) in syscallFindHandlerLoc() argument 63 uint32_t idx = path >> (32 - *bits); in syscallFindHandlerLoc() 65 path <<= *bits++; in syscallFindHandlerLoc() 79 bool syscallAddFunc(uint32_t path, SyscallFunc func) in syscallAddFunc() argument 81 SyscallFunc *f = syscallFindHandlerLoc(path); in syscallAddFunc() 90 SyscallFunc syscallGetHandler(uint32_t path) in syscallGetHandler() argument 92 SyscallFunc *f = syscallFindHandlerLoc(path); in syscallGetHandler()
|
/device/google/gs-common/touch/gti/ |
D | dump_gti1.sh | 2 path="/sys/devices/virtual/goog_touch_interface/gti.1" 8 heatmap_path=$path 12 result=$( cat "$path/force_active" 2>&1 ) 18 echo 1 > $path/force_active 34 cat $path/fw_ver 37 cat $path/panel_id 40 cat $path/offload_id 61 cat $path/self_test 69 echo 0 > $path/force_active
|
D | dump_gti0.sh | 2 path="/sys/devices/virtual/goog_touch_interface/gti.0" 8 heatmap_path=$path 12 result=$( cat "$path/force_active" 2>&1 ) 18 echo 1 > $path/force_active 34 cat $path/fw_ver 37 cat $path/panel_id 40 cat $path/offload_id 61 cat $path/self_test 69 echo 0 > $path/force_active
|
/device/generic/goldfish/tools/ |
D | mk_combined_img.py | 37 param = os.path.expandvars(param) 47 sizeByMb = str(math.ceil(os.path.getsize(line[0]) / 1024 / 1024)) 118 output_filename = os.path.expandvars(args.output) 125 if not os.path.exists(config_filename): 134 if os.path.exists(output_filename) and len(partitions) == 2: 142 … prebuilt_gpt_dir = os.path.dirname(os.path.abspath( __file__ )) + "/prebuilt/gpt/" + gptprefix 145 if os.path.exists(gpt_head) and os.path.exists(gpt_tail): 162 offset = os.path.getsize(output_filename) 171 offset = os.path.getsize(output_filename) 177 offset = os.path.getsize(output_filename) // 1024 // 1024
|
/device/linaro/hikey-kernel/hikey960/5.10/ |
D | BUILD_INFO | 79 "path": "build/kernel", 89 "path": "hikey-modules", 105 "path": "common", 115 "path": "kernel/tests", 125 "path": "kernel/configs", 135 "path": "common-modules/virtual-device", 146 "path": "prebuilts/clang/host/linux-x86", 157 "path": "prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8", 168 "path": "prebuilts/build-tools", 179 "path": "prebuilts/kernel-build-tools", [all …]
|
/device/google/cuttlefish_vmm/ |
D | gen_android_bp.py | 164 def gen_android_bp4seccomp(path: Path, arch: Architecture): 167 with open(path, "wt") as out: 173 for path in sorted(seccomp_dir.iterdir()): 178 src=subdir / path.name, 179 filename=path.name, 206 for path in crosvm_binaries(arch): 207 name = re.sub("/bin/|/|-|_bin_", "_", str(path)) 208 if path.stem != "crosvm": 215 srcs=[path], 216 stem=path.name, [all …]
|
/device/linaro/dragonboard-kernel/android-5.10/ |
D | BUILD_INFO | 79 "path": "build/kernel", 89 "path": "hikey-modules", 105 "path": "common", 115 "path": "kernel/tests", 125 "path": "kernel/configs", 135 "path": "common-modules/virtual-device", 146 "path": "prebuilts/clang/host/linux-x86", 157 "path": "prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8", 167 "path": "prebuilts/boot-artifacts", 178 "path": "prebuilts/build-tools", [all …]
|
/device/linaro/dragonboard-kernel/android-6.1/ |
D | BUILD_INFO | 47 "path": "build/kernel", 57 "path": "common", 67 "path": "kernel/tests", 77 "path": "kernel/configs", 87 "path": "common-modules/virtual-device", 98 "path": "prebuilts/clang/host/linux-x86", 109 "path": "prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8", 120 "path": "prebuilts/build-tools", 131 "path": "prebuilts/clang-tools", 142 "path": "prebuilts/kernel-build-tools", [all …]
|