/system/core/fastboot/ |
H A D | fs.cpp | 33 static int exec_e2fs_cmd(const char* path, char* const argv[]) { argument 78 static int exec_e2fs_cmd(const char* path, char* const argv[]) { 83 execvp(path, argv); 87 fprintf(stderr, "%s failed with fork %s\n", path, strerror(errno)); 91 fprintf(stderr, "%s failed with waitpid %s\n", path, strerror(errno)); 98 fprintf(stderr, "%s failed with status %d\n", path, ret);
|
/system/update_engine/scripts/ |
H A D | paycheck.py | 16 lib_dir = os.path.join(os.path.dirname(__file__), 'lib') 17 if os.path.exists(lib_dir) and os.path.isdir(lib_dir): 18 sys.path.insert(1, lib_dir) 92 trace_opts.add_option('--bspatch-path', metavar='FILE', 149 parser.error('--bspatch-path can only be used when applying payloads') 157 if os.path.isfile(default_meta_sig):
|
/system/core/sdcard/ |
H A D | fuse.cpp | 102 /* Gets the absolute path to a node into the provided buffer. 104 * Populates 'buf' with the path and returns the length of the path on success, 105 * or returns -1 if the path is too long for the provided buffer. 138 /* Finds the absolute path of a file within a given directory. 139 * Performs a case-insensitive search for the file and sets the buffer to the path 141 * the buffer to the path that the file would have, assuming the name were case-sensitive. 143 * Populates 'buf' with the path and returns the actual name (within 'buf') on success, 144 * or returns NULL if the path is too long for the provided buffer. 146 static char* find_file_within(const char* path, cons argument 229 touch(char* path, mode_t mode) argument 508 fuse_reply_entry(struct fuse* fuse, __u64 unique, struct node* parent, const char* name, const char* actual_name, const char* path) argument 537 fuse_reply_attr(struct fuse* fuse, __u64 unique, const struct node* node, const char* path) argument 638 char path[PATH_MAX]; local 661 char path[PATH_MAX]; local 999 char path[PATH_MAX]; local 1089 char path[PATH_MAX]; local 1164 char path[PATH_MAX]; local 1282 char path[PATH_MAX]; local [all...] |
/system/tools/hidl/ |
H A D | generateCpp.cpp | 404 std::string path = outputPath; local 405 path.append(mCoordinator->convertPackageRootToPath(mPackage)); 406 path.append(mCoordinator->getPackagePath(mPackage, true /* relative */)); 407 path.append(ifaceName); 408 path.append(".h"); 410 CHECK(Coordinator::MakeParentHierarchy(path)); 411 FILE *file = fopen(path.c_str(), "w"); 569 std::string path = outputPath; local 570 path.append(mCoordinator->convertPackageRootToPath(mPackage)); 571 path 832 std::string path = outputPath; local 963 std::string path = outputPath; local 1067 std::string path = outputPath; local 1992 std::string path = outputPath; local [all...] |
H A D | Coordinator.cpp | 59 void Coordinator::addDefaultPackagePath(const std::string& root, const std::string& path) { argument 62 mPackageRootPaths.push_back(path); 95 std::string path = getAbsolutePackagePath(fqName); local 97 path.append(fqName.name()); 98 path.append(".hal"); 100 AST *ast = new AST(this, path); 122 path.c_str()); 131 path.c_str(), 139 path.c_str(), 148 path 583 MakeParentHierarchy(const std::string &path) argument [all...] |
H A D | main.cpp | 524 std::string path = outputPath; 525 path.append(coordinator->getPackagePath(packageFQName, false /* relative */)); 526 path.append("Android.mk"); 528 CHECK(Coordinator::MakeParentHierarchy(path)); 529 FILE *file = fopen(path.c_str(), "w"); 836 std::string path = outputPath; 837 path.append(coordinator->getPackagePath(packageFQName, false /* relative */)); 838 path.append("Android.bp"); 840 CHECK(Coordinator::MakeParentHierarchy(path)); 841 FILE *file = fopen(path [all...] |
/system/extras/simpleperf/scripts/ |
H A D | simpleperf_report_lib.py | 185 """ Set the path of record file, like perf.data.""" 193 """ Set the file path to a copy of the /proc/kallsyms file (for off device decoding) """ 226 def GetBuildIdForPath(self, path): 227 build_id = self._GetBuildIdForPathFunc(self.getInstance(), _char_pt(path)) 243 self.perf_data_path = os.path.join(os.path.dirname(get_script_dir()), 245 if not os.path.isfile(self.perf_data_path): 296 subprocess.check_call(['python', os.path.realpath(__file__), '--test-one']) 297 subprocess.check_call(['python3', os.path.realpath(__file__), '--test-one'])
|
/system/extras/libfec/ |
H A D | fec_open.cpp | 507 /* opens `path' using given options and returns a fec_handle in `handle' if 509 int fec_open(struct fec_handle **handle, const char *path, int mode, int flags, argument 512 check(path); 516 debug("path = %s, mode = %d, flags = %d, roots = %d", path, mode, flags, 521 error("failed to open '%s': (unsupported mode %d)", path, mode); 546 f->fd = TEMP_FAILURE_RETRY(open(path, mode | O_CLOEXEC)); 549 error("failed to open '%s': %s", path, strerror(errno)); 554 error("failed to get size for '%s': %s", path, strerror(errno)); 561 debug("error-correcting codes not found from '%s'", path); [all...] |
/system/core/bootstat/ |
H A D | boot_event_record_store_test.cpp | 71 // Recursively deletes the directory at |path|. 72 void DeleteDirectory(const std::string& path) { argument 74 ScopedDIR dir(opendir(path.c_str()), closedir); 84 const std::string entry_path = path + "/" + entry_name; 92 rmdir(path.c_str()); 105 store_path_ = std::string(store_dir_.path) + "/"; 122 // the directory and the path to the directory, which is stored in 126 // The path to the temporary directory used by the BootEventRecordStore to 205 // Empty path.
|
/system/extras/ext4_utils/ |
H A D | make_ext4fs.c | 126 char *path = NULL; local 129 asprintf(&path, "%slost+found", dir_path); 130 if (selabel_lookup(sehnd, &secontext, path, S_IFDIR) < 0) { 131 error("cannot lookup security context for %s", path); 136 free(path); 146 full_path is an absolute or relative path, with a trailing slash, to the 149 dir_path is an absolute path, with trailing slash, to the same directory 202 asprintf(&dentries[i].path, "%s%s", dir_path, namelist[i]->d_name); 229 fs_config_func(dentries[i].path, dir, target_out_path, &uid, &gid, &mode, &capabilities); 240 if (selabel_lookup(sehnd, &dentries[i].secon, dentries[i].path, sta [all...] |
/system/sepolicy/tests/ |
H A D | policy.py | 7 # Check whether the regex will match a file path starting with the provided 10 # Compares regex entries in file_contexts with a path prefix. Regex entries 50 # Check that path prefixes that match MatchPrefix, and do not Match 229 for path in FcPaths: 230 if not os.path.exists(path): 231 sys.exit("file_contexts file " + path + " does not exist.") 232 fd = open(path, "r")
|
/system/core/run-as/ |
H A D | run-as.cpp | 68 static bool check_directory(const char* path, uid_t uid) { argument 70 if (TEMP_FAILURE_RETRY(lstat(path, &st)) == -1) return false; 73 if (strcmp("/data/user/0", path) == 0) return true; 87 // This function is used to check the data directory path for safety. 90 // path is properly owned by the user ID. 92 // The path should be absolute. 96 // directory separators in the input path and 97 // checking each sub-path independently. 185 // Check that the data directory path is valid.
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
H A D | file.c | 237 grep_open(const char *path) argument 243 if (path == NULL) { 247 } else if ((f->fd = open(path, O_RDONLY)) == -1) {
|
/system/update_engine/ |
H A D | connection_manager.cc | 129 // Shill uses the "/" service path to indicate that it is not connected. 155 const dbus::ObjectPath& path, 160 shill_proxy_->GetServiceForPath(path); 193 << path.value() << "). Returning default kUnknown value."; 154 GetServicePathProperties( const dbus::ObjectPath& path, ConnectionType* out_type, ConnectionTethering* out_tethering) argument
|
/system/update_engine/payload_consumer/ |
H A D | bzip_extent_writer_unittest.cc | 45 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); 80 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); 127 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output));
|
/system/core/init/ |
H A D | ueventd_test.cpp | 77 return std::pair(dir.path + "/gid_"s + std::to_string(gid), gid); 109 files_and_contexts.emplace_back(dir.path + "/context_"s + context, context);
|
/system/extras/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 609 char path[MAX_PATH]; local 611 strcpy(path, kTestDir); 616 // Go deeper by appending onto current path 617 snprintf(path + strlen(path), MAX_PATH - strlen(path), "/dir%d", i); 618 mkdir(path, S_IRWXU); 621 strcpy(filepath, path); 622 int pathlen = strlen(path);
|
/system/libvintf/test/ |
H A D | vintf_object_tests.cpp | 173 .WillByDefault(Invoke([vendorManifestXml](const std::string& path, std::string& fetched) { 174 (void)path; 179 .WillByDefault(Invoke([systemManifestXml](const std::string& path, std::string& fetched) { 180 (void)path; 185 .WillByDefault(Invoke([vendorMatrixXml](const std::string& path, std::string& fetched) { 186 (void)path; 191 .WillByDefault(Invoke([systemMatrixXml](const std::string& path, std::string& fetched) { 192 (void)path;
|
/system/media/brillo/audio/audioservice/ |
H A D | audio_volume_handler.h | 169 // |path| is the file that contains the initial volume state. 170 void GetInitialVolumeState(const base::FilePath& path); 179 // Set the file path for testing. 181 // |path| to use while running tests. 182 void SetVolumeFilePathForTesting(const base::FilePath& path);
|
/system/update_engine/common/ |
H A D | prefs_unittest.cc | 47 prefs_dir_ = temp_dir_.path(); 64 base::FilePath path; local 65 EXPECT_TRUE(prefs_.file_storage_.GetFileNameForKey(kAllvalidCharsKey, &path)); 66 EXPECT_EQ(prefs_dir_.Append(kAllvalidCharsKey).value(), path.value()); 70 base::FilePath path; local 71 EXPECT_FALSE(prefs_.file_storage_.GetFileNameForKey("ABC abc", &path)); 75 base::FilePath path; local 76 EXPECT_FALSE(prefs_.file_storage_.GetFileNameForKey("", &path));
|
/system/extras/simpleperf/ |
H A D | dso.cpp | 132 BuildId Dso::FindExpectedBuildIdForPath(const std::string& path) { argument 133 auto it = build_id_map_.find(path); 149 Dso::Dso(DsoType type, const std::string& path, bool force_64bit) argument 151 path_(path), 152 debug_file_path_(path), 171 } else if (path == "[vdso]") { 173 debug_file_path_ = vdso_64bit_->path; 175 debug_file_path_ = vdso_32bit_->path; 178 size_t pos = path.find_last_of("/\\"); 180 file_name_ = path [all...] |
/system/media/audio_utils/ |
H A D | tinysndfile.c | 65 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) argument 67 FILE *stream = fopen(path, "rb"); 70 fprintf(stderr, "fopen %s failed errno %d\n", path, errno); 297 static SNDFILE *sf_open_write(const char *path, SF_INFO *info) argument 309 FILE *stream = fopen(path, "w+b"); 312 fprintf(stderr, "fopen %s failed errno %d\n", path, errno); 377 SNDFILE *sf_open(const char *path, int mode, SF_INFO *info) argument 379 if (path == NULL || info == NULL) { 381 fprintf(stderr, "path=%p info=%p\n", path, inf [all...] |
/system/vold/ |
H A D | Ext4Crypt.cpp | 264 static bool ensure_policy(const std::string& raw_ref, const std::string& path) { argument 270 if (e4crypt_policy_ensure(path.c_str(), 273 LOG(ERROR) << "Failed to set policy on: " << path; 442 for (auto const path: get_ce_key_paths(get_ce_key_directory_path(user_id))) { 443 success &= android::vold::destroyKey(path); 455 static bool emulated_lock(const std::string& path) { argument 456 if (chmod(path.c_str(), 0000) != 0) { 457 PLOG(ERROR) << "Failed to chmod " << path; 461 if (setfilecon(path.c_str(), "u:object_r:storage_stub_file:s0") != 0) { 462 PLOG(WARNING) << "Failed to setfilecon " << path; 469 emulated_unlock(const std::string& path, mode_t mode) argument 701 e4crypt_secdiscard(const char* path) argument [all...] |
/system/core/debuggerd/libdebuggerd/include/ |
H A D | utility.h | 86 void read_with_default(const char* path, char* buf, size_t len, const char* default_value);
|
/system/core/fs_mgr/include_fstab/fstab/ |
H A D | fstab.h | 74 struct fstab_rec* fs_mgr_get_entry_for_mount_point(struct fstab* fstab, const char* path);
|