Searched refs:path (Results 1 - 25 of 81) sorted by last modified time

1234

/system/vold/
H A DCommandListener.cpp137 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: volume mount <path>", false);
145 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: volume unmount <path> [force|force_and_revert]", false);
160 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: volume format <path>", false);
167 "Usage: volume share <path> <method>", false);
174 "Usage: volume unshare <path> <method>", false);
182 "Usage: volume shared <path> <method>", false);
389 } else if (!strcmp(argv[1], "path")) {
392 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: asec path <container-id>", false);
395 char path[255]; local
397 if (!(rc = vm->getAsecMountPath(argv[2], path, sizeo
407 char path[255]; local
471 char path[255]; local
[all...]
H A DDirectVolume.cpp60 int DirectVolume::addPath(const char *path) { argument
61 mPaths->push_back(strdup(path));
389 * This is to change the sysfs path associated with a partition, in particular,
394 SLOGE("Cannot change path if there are more than one for a volume\n");
401 addPath(new_path); /* Put the new path on the list */
H A DDirectVolume.h48 int addPath(const char *path);
H A DProcess.cpp35 int Process::readSymLink(const char *path, char *link, size_t max) { argument
39 if (lstat(path, &s) < 0)
45 length = readlink(path, link, max- 1);
52 int Process::pathMatchesMountPoint(const char* path, const char* mountPoint) { argument
54 if (length > 1 && strncmp(path, mountPoint, length) == 0) {
59 // there is one in the path to avoid partial matches.
60 return (path[length] == 0 || path[length] == '/');
86 // compute path to process's directory of open files
87 char path[PATH_MA local
139 const char* path = strchr(buffer, '/'); local
155 char path[PATH_MAX]; local
180 killProcessesWithOpenFiles(const char *path, int action) argument
[all...]
H A DProcess.h22 static void killProcessesWithOpenFiles(const char *path, int action);
24 static int checkSymLink(int pid, const char *path, const char *name);
25 static int checkFileMaps(int pid, const char *path);
26 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max);
31 static int readSymLink(const char *path, char *link, size_t max);
32 static int pathMatchesMountPoint(const char *path, const char *mountPoint);
H A DVolume.cpp66 * asec imagefiles. This path will be obscured before the mount is
199 int Volume::createDeviceNode(const char *path, int major, int minor) { argument
202 if (mknod(path, mode, dev) < 0) {
266 bool Volume::isMountpointMounted(const char *path) { argument
281 if (!strcmp(mount_path, path)) {
366 /* We now have the new sysfs path for the decrypted block device, and the
368 * path to the new sysfs path, and continue.
378 // Todo: Either create sys filename from nodepath, or pass in bogus path so
564 int Volume::doUnmount(const char *path, boo argument
[all...]
H A DVolume.h94 int createDeviceNode(const char *path, int major, int minor);
98 bool isMountpointMounted(const char *path);
100 int doUnmount(const char *path, bool force);
H A DVolumeManager.h85 int shareEnabled(const char *path, const char *method, bool *enabled);
H A Dmain.cpp38 static void coldboot(const char *path);
136 static void coldboot(const char *path) argument
138 DIR *d = opendir(path);
/system/bluetooth/bluedroid/
H A Dbluetooth.c50 char path[64]; local
56 snprintf(path, sizeof(path), "/sys/class/rfkill/rfkill%d/type", id);
57 fd = open(path, O_RDONLY);
59 ALOGW("open(%s) failed: %s (%d)\n", path, strerror(errno), errno);
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c100 ** set, then the bd_addr will be read from this path.
746 char path[PROPERTY_VALUE_MAX]; local
752 property_get("ro.bt.bdaddr_path", path, "");
753 if (path[0] == 0)
756 fd = open(path, O_RDONLY);
758 fprintf(stderr, "open(%s) failed: %s (%d)", path, strerror(errno),
765 fprintf(stderr, "read(%s) failed: %s (%d)", path, strerror(errno),
770 fprintf(stderr, "read(%s) unexpected size %d", path, sz);
/system/core/adb/
H A Dadb.c873 char path[PATH_MAX]; local
888 strftime(path, sizeof(path),
891 fd = unix_open(path, O_WRONLY | O_CREAT | O_TRUNC, 0640);
944 /* get path of current program */
948 program_path, /* program path */
989 char path[PATH_MAX];
998 get_my_path(path, PATH_MAX);
1012 int result = execl(path, "adb", "fork-server", "server", NULL);
1125 // Our external storage path ma
[all...]
H A Dadb_auth_client.c107 char *path; local
113 while ((path = *paths++)) {
114 if (!stat(path, &buf)) {
115 D("Loading keys from '%s'\n", path);
116 read_keys(path, &key_list);
H A Dadb_auth_host.c136 char path[PATH_MAX], info[MAX_PAYLOAD]; local
139 ret = snprintf(path, sizeof(path), "%s.pub", private_key_path);
140 if (ret >= (signed)sizeof(path))
149 bfile = BIO_new_file(path, "w");
151 D("Failed to open '%s'\n", path);
155 D("Writing public key to '%s'\n", path);
266 char path[PATH_MAX]; local
269 SHGetFolderPath(NULL, CSIDL_PROFILE, NULL, 0, path);
270 home = path;
299 char path[PATH_MAX]; local
324 char *path; local
383 char path[PATH_MAX]; local
[all...]
H A Dcommandline.c90 " -p <product name or path> - simple product name like 'sooner', or\n"
91 " a relative/absolute path to a product\n"
95 " be an absolute path.\n"
163 " adb get-devpath - prints: <device-path>\n"
665 static int mkdirs(char *path) argument
668 char *x = path + 1;
674 ret = adb_mkdir(path, 0775);
843 * - A relative path from the CWD to the ANDROID_PRODUCT_OUT dir
845 * - An absolute path to the PRODUCT_OUT dir
848 * Given <hint>, try to construct an absolute path t
[all...]
H A Dfile_sync_client.c77 int sync_ls(int fd, const char *path, sync_ls_cb func, void *cookie) argument
83 len = strlen(path);
90 writex(fd, path, len)) {
126 int sync_readtime(int fd, const char *path, unsigned *timestamp) argument
129 int len = strlen(path);
135 writex(fd, path, len)) {
151 static int sync_start_readtime(int fd, const char *path) argument
154 int len = strlen(path);
160 writex(fd, path, len)) {
185 int sync_readmode(int fd, const char *path, unsigne argument
210 write_data_file(int fd, const char *path, syncsendbuf *sbuf) argument
273 write_data_link(int fd, const char *path, syncsendbuf *sbuf) argument
541 do_sync_ls(const char *path) argument
[all...]
H A Dfile_sync_service.c56 static int do_stat(int s, const char *path) argument
63 if(lstat(path, &st)) {
76 static int do_list(int s, const char *path) argument
87 len = strlen(path);
88 memcpy(tmp, path, len);
94 d = opendir(path);
151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) argument
157 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode);
159 mkdirs(path);
160 fd = adb_open_mode(path, O_WRONL
227 handle_send_link(int s, char *path, char *buffer) argument
276 do_send(int s, char *path, char *buffer) argument
319 do_recv(int s, const char *path, char *buffer) argument
[all...]
H A Dfile_sync_service.h80 int do_sync_ls(const char *path);
H A Dsysdeps.h90 static __inline__ int adb_unlink(const char* path) argument
92 int rc = unlink(path);
97 rc = chmod(path, _S_IREAD|_S_IWRITE );
99 rc = unlink(path);
106 static __inline__ int adb_mkdir(const char* path, int mode) argument
108 return _mkdir(path);
113 extern int adb_open(const char* path, int options);
114 extern int adb_creat(const char* path, int mode);
142 static __inline__ int adb_open_mode(const char* path, int options, int mode) argument
144 return adb_open(path, option
147 unix_open(const char* path, int options,...) argument
309 unix_open(const char* path, int options,...) argument
380 adb_unlink(const char* path) argument
387 adb_creat(const char* path, int mode) argument
471 adb_mkdir(const char* path, int mode) argument
482 adb_dirstart(const char* path) argument
487 adb_dirstop(const char* path) argument
[all...]
H A Dsysdeps_win32.c303 int adb_open(const char* path, int options) argument
332 f->fh_handle = CreateFile( path, desiredAccess, shareMode, NULL, OPEN_EXISTING,
337 D( "adb_open: could not open '%s':", path );
345 D( "path not found\n" );
356 snprintf( f->name, sizeof(f->name), "%d(%s)", _fh_to_int(f), path );
357 D( "adb_open: '%s' => fd %d\n", path, _fh_to_int(f) );
362 int adb_creat(const char* path, int mode) argument
372 f->fh_handle = CreateFile( path, GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
378 D( "adb_creat: could not open '%s':", path );
386 D( "path no
[all...]
H A Dusb_vendors.c244 /* builds the path to the adb vendor id file. returns 0 if success */
254 /* fills buff with the path to the adb vendor id file. returns 0 if success */
262 char path[MAX_PATH]; local
263 SHGetFolderPath( NULL, CSIDL_PROFILE, NULL, 0, path);
264 return build_path(buff, len, "%s\\%s\\%s", path);
/system/core/charger/
H A Dcharger.c130 const char *path; member in struct:uevent
245 static int read_file(const char *path, char *buf, size_t sz) argument
250 fd = open(path, O_RDONLY, 0);
272 static int read_file_int(const char *path, int *val) argument
279 ret = read_file(path, buf, sizeof(buf));
327 const char *path, bool online)
338 "/sys/%s/capacity", path);
358 uevent->path = "";
374 uevent->path = msg;
395 uevent->action, uevent->path, ueven
325 add_supply(struct charger *charger, const char *name, const char *type, const char *path, bool online) argument
409 char *path; local
572 coldboot(struct charger *charger, const char *path, const char *event) argument
[all...]
/system/core/cpio/
H A Dmkbootfs.c45 /* Each line in the canned file should be a path plus three ints (uid,
56 static void fix_stat(const char *path, struct stat *s) argument
68 if (strcmp(p->name, path) == 0) {
81 fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode);
/system/core/debuggerd/
H A Dbacktrace.c38 char path[PATH_MAX]; local
43 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
44 if ((fp = fopen(path, "r"))) {
67 char path[PATH_MAX]; local
72 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
73 if ((fp = fopen(path, "r"))) {
H A Ddebuggerd.c160 char path[64]; local
161 snprintf(path, sizeof(path), "/proc/%d/status", tid);
163 FILE* fp = fopen(path, "r");

Completed in 83 milliseconds

1234