Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/device/google/gs-common/touch/lsi/
Ddump_lsi.sh2 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/common/libs/utils/
Dfiles.cpp65 bool FileExists(const std::string& path, bool follow_symlinks) { in FileExists() argument
67 return (follow_symlinks ? stat : lstat)(path.c_str(), &st) == 0; in FileExists()
70 bool FileHasContent(const std::string& path) { in FileHasContent() argument
71 return FileSize(path) > 0; in FileHasContent()
74 Result<std::vector<std::string>> DirectoryContents(const std::string& path) { in DirectoryContents() argument
76 std::unique_ptr<DIR, int(*)(DIR*)> dir(opendir(path.c_str()), closedir); in DirectoryContents()
77 CF_EXPECT(dir != nullptr, "Could not read from dir \"" << path << "\""); in DirectoryContents()
85 bool DirectoryExists(const std::string& path, bool follow_symlinks) { in DirectoryExists() argument
87 if ((follow_symlinks ? stat : lstat)(path.c_str(), &st) == -1) { in DirectoryExists()
118 Result<void> ChangeGroup(const std::string& path, in ChangeGroup() argument
[all …]
Dfiles.h28 bool FileExists(const std::string& path, bool follow_symlinks = true);
29 bool FileHasContent(const std::string& path);
30 Result<std::vector<std::string>> DirectoryContents(const std::string& path);
31 bool DirectoryExists(const std::string& path, bool follow_symlinks = true);
36 Result<void> ChangeGroup(const std::string& path,
38 bool CanAccess(const std::string& path, const int mode);
39 bool IsDirectoryEmpty(const std::string& path);
40 bool RecursivelyRemoveDirectory(const std::string& path);
42 off_t FileSize(const std::string& path);
47 bool MakeFileExecutable(const std::string& path);
[all …]
/device/google/cuttlefish/host/commands/assemble_cvd/
Dclean.cc35 Result<void> CleanPriorFiles(const std::string& path, in CleanPriorFiles() argument
37 if (preserving.count(cpp_basename(path))) { in CleanPriorFiles()
38 LOG(DEBUG) << "Preserving: " << path; in CleanPriorFiles()
42 if (lstat(path.c_str(), &statbuf) < 0) { in CleanPriorFiles()
47 return CF_ERRNO("Could not stat \"" << path); in CleanPriorFiles()
51 LOG(DEBUG) << "Deleting: " << path; in CleanPriorFiles()
52 if (unlink(path.c_str()) < 0) { in CleanPriorFiles()
53 return CF_ERRNO("Could not unlink \"" << path << "\""); in CleanPriorFiles()
57 std::unique_ptr<DIR, int(*)(DIR*)> dir(opendir(path.c_str()), closedir); in CleanPriorFiles()
59 return CF_ERRNO("Could not clean \"" << path << "\""); in CleanPriorFiles()
[all …]
/device/google/gs-common/touch/focaltech/
Ddump_focaltech.sh2 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/linaro/dragonboard/qcom/rmtfs/
Dsharedmem.c59 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/generic/vulkan-cereal/stream-servers/vulkan/
DVulkanDispatch.cpp30 static void setIcdPath(const std::string& path) { in setIcdPath() argument
31 if (android::base::pathExists(path.c_str())) { in setIcdPath()
36 android::base::setEnvironmentVariable("VK_ICD_FILENAMES", path); in setIcdPath()
129 auto path = android::base::getEnvironmentVariable("ANDROID_EMU_VK_LOADER_PATH"); in getLoaderPath() local
130 if (!path.empty()) { in getLoaderPath()
131 return path; in getLoaderPath()
135 auto path = pj({directory, "testlib64", VULKAN_LOADER_FILENAME}); in getLoaderPath() local
137 return path; in getLoaderPath()
143 auto path = pj({directory, "lib64", "vulkan", VULKAN_LOADER_FILENAME}); in getLoaderPath()
145 return path; in getLoaderPath()
[all …]
/device/linaro/dragonboard/qcom/tqftpserv/
Dtranslate.c74 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/google/barbet/vibrator/drv2624/tests/
Dtest-hwapi.cpp64 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/bramble/vibrator/drv2624/tests/
Dtest-hwapi.cpp64 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/redfin/vibrator/drv2624/tests/
Dtest-hwapi.cpp64 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/sunfish/vibrator/drv2624/tests/
Dtest-hwapi.cpp65 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/gs-common/touch/syna/
Ddump_syna.sh2 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/generic/goldfish-opengl/fuchsia/
Dreleasepackage.py23 dir_path = os.path.dirname(os.path.realpath(__file__))
27 fuchsia_root = os.path.abspath(os.path.join(dir_path, "../../../"))
28 fx_path = os.path.join(fuchsia_root, "scripts/fx")
31 release_dir = os.path.abspath(args.release_dir)
33 release_dir = os.path.join(fuchsia_root, "out/default")
35 if not os.path.exists(release_dir):
92 full_name = os.path.join(package_dir, file_name)
94 source_file_name = os.path.join(release_dir, target_name)
106 debug_source_file_name = os.path.join(release_dir, debug_target_name)
114 debug_output_dir = os.path.join(debug_dir, build_id[:2])
[all …]
/device/google/gs-common/storage/
Ddump_storage.sh30 path="/dev/sys/block/bootdevice/err_stats";
31 for node in `ls $path/* | grep -v reset_err_status`
38 path="/dev/sys/block/bootdevice/io_stats"
40 str=$(cat $path/*_start); arr=($str);
42 str=$(cat $path/*_complete); arr=($str);
44 str=$(cat $path/*_maxdiff); arr=($str);
48 path="/dev/sys/block/bootdevice/req_stats"
50 str=$(cat $path/*_min); arr=($str);
52 str=$(cat $path/*_max); arr=($str);
54 str=$(cat $path/*_avg); arr=($str);
[all …]
/device/generic/vulkan-cereal/gl-host-common/opengl/
DEmuglBackendScanner_unittest.cpp36 static void make_dir(const std::string& path) { in make_dir() argument
37 EXPECT_EQ(0, ::android_mkdir(path.c_str(), 0755)); in make_dir()
40 static void make_subdir(const std::string& path, const char* subdir) { in make_subdir() argument
41 std::string dir = path; in make_subdir()
48 std::string path = dir; in make_subfile() local
49 path.append("/"); in make_subfile()
50 path.append(file); in make_subfile()
51 int fd = ::open(path.c_str(), O_WRONLY|O_CREAT, 0755); in make_subfile()
62 std::vector<std::string> names = EmuglBackendScanner::scanDir(myDir.path()); in TEST()
69 std::string libDir(myDir.path()); in TEST()
[all …]
/device/google/felix/vibrator/cs40l26/tests/
Dtest-hwapi.cpp54 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/cuttlefish/host/libs/websocket/
Dwebsocket_server.cpp33 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/contexthub/firmware/os/core/
Dsyscall.c33 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/
Ddump_gti1.sh2 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
Ddump_gti0.sh2 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/linaro/hikey/power/
Dpower_hikey.c97 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/generic/goldfish/tools/
Dmk_combined_img.py43 param = os.path.expandvars(param)
53 sizeByMb = str(math.ceil(os.path.getsize(line[0]) / 1024 / 1024))
130 output_filename = os.path.expandvars(args.output)
138 if not os.path.exists(config_filename):
148 if os.path.exists(output_filename) and len(partitions) == 2:
158 … prebuilt_gpt_dir = os.path.dirname(os.path.abspath( __file__ )) + "/prebuilt/gpt/" + gptprefix
161 if os.path.exists(gpt_head) and os.path.exists(gpt_tail):
180 offset = os.path.getsize(output_filename)
189 offset = os.path.getsize(output_filename)
195 offset = os.path.getsize(output_filename) // 1024 // 1024
/device/linaro/hikey-kernel/hikey960/5.10/
DBUILD_INFO79 "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/generic/goldfish-opengl/system/hwc3/
DDevice.cpp46 const std::string path = getPmemPath(); in loadPersistentKeyValues() local
47 if (path.empty()) { in loadPersistentKeyValues()
53 if (!::android::base::ReadFileToString(path, &content)) { in loadPersistentKeyValues()
55 path.c_str()); in loadPersistentKeyValues()
67 path.c_str(), error.c_str()); in loadPersistentKeyValues()
75 const std::string path = getPmemPath(); in savePersistentKeyValues() local
76 if (path.empty()) { in savePersistentKeyValues()
82 if (!::android::base::WriteStringToFile(contents, path)) { in savePersistentKeyValues()
84 path.c_str()); in savePersistentKeyValues()

12345678910>>...13