Searched defs:filename (Results 1 - 25 of 47) sorted by last modified time

12

/system/security/keystore/
H A Dkeystore.cpp349 ResponseCode encryptBlob(const char* filename, AES_KEY *aes_key, Entropy* entropy) { argument
391 return (rename(tmpFileName, filename) == 0) ? NO_ERROR : SYSTEM_ERROR;
394 ResponseCode decryptBlob(const char* filename, AES_KEY *aes_key) { argument
395 int in = open(filename, O_RDONLY);
442 const uint8_t* filename; member in struct:__anon570
592 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type) { argument
593 ResponseCode rc = keyBlob->decryptBlob(filename, &mMasterKeyDecryption);
600 upgrade(filename, keyBlob, version, type);
611 ResponseCode put(const char* filename, Blob* keyBlob) { argument
612 return keyBlob->encryptBlob(filename,
615 addGrant(const char* filename, const Value* uidValue) argument
630 removeGrant(const char* filename, const Value* uidValue) argument
646 hasGrant(const char* filename, const uid_t uid) const argument
650 importKey(const Value* key, const char* filename) argument
742 isKeyFile(const char* filename) argument
748 getGrant(const char* filename, uid_t uid) const argument
775 upgrade(const char* filename, Blob* blob, const uint8_t oldVersion, const BlobType type) argument
808 importBlobAsKey(Blob* blob, const char* filename) argument
897 char filename[NAME_MAX]; local
940 char filename[NAME_MAX]; local
954 char filename[NAME_MAX]; local
961 char filename[NAME_MAX]; local
972 char filename[NAME_MAX]; local
985 char filename[NAME_MAX]; local
1063 char filename[NAME_MAX]; local
1096 char filename[NAME_MAX]; local
1151 char filename[NAME_MAX]; local
1255 char filename[NAME_MAX]; local
1267 char filename[NAME_MAX]; local
1278 char filename[NAME_MAX]; local
[all...]
/system/vold/
H A DLoop.cpp42 char filename[256]; local
48 sprintf(filename, "/dev/block/loop%d", i);
50 if ((fd = open(filename, O_RDWR)) < 0) {
52 SLOGE("Unable to open %s (%s)", filename, strerror(errno));
66 SLOGE("Unable to get loop status for %s (%s)", filename,
71 asprintf(&tmp, "%s %d %lld:%lld %llu %lld:%lld %lld 0x%x {%s} {%s}", filename, li.lo_number,
84 char filename[256]; local
92 sprintf(filename, "/dev/block/loop%d", i);
94 if ((fd = open(filename, O_RDWR)) < 0) {
96 SLOGE("Unable to open %s (%s)", filename, strerro
130 char filename[256]; local
[all...]
H A DVolume.cpp132 char filename[255]; local
134 snprintf(filename, sizeof(filename), "%s/autorun.inf", SEC_STGDIR);
135 if (!access(filename, F_OK)) {
138 * Ensure the filename is all lower-case so
142 rename(filename, filename);
143 Process::killProcessesWithOpenFiles(filename, 2);
144 if (unlink(filename)) {
145 SLOGE("Failed to remove %s (%s)", filename, strerro
[all...]
H A DVolumeManager.cpp497 int VolumeManager::fixupAsecPermissions(const char *id, gid_t gid, const char* filename) { argument
562 const bool privateFile = !strcmp(ftsent->fts_name, filename);
/system/core/adb/
H A Dadb_auth_host.c260 static int get_user_keyfilepath(char *filename, size_t len) argument
293 return snprintf(filename, len, format, android_dir, ADB_KEY_FILE);
304 D("Error getting user key filename");
389 D("Error getting user key filename");
H A Dcommandline.c687 const char* filename = strcpy(default_name, "./backup.ab"); local
695 fprintf(stderr, "adb: -f passed with no filename\n");
698 filename = argv[i+1];
707 /* bare "adb backup" or "adb backup -f filename" are not valid invocations */
710 adb_unlink(filename);
711 mkdirs((char *)filename);
712 outFd = adb_creat(filename, 0640);
714 fprintf(stderr, "adb: unable to open file %s\n", filename);
724 D("backup. filename=%s buf=%s\n", filename, bu
741 const char* filename; local
1491 delete_file(transport_type transport, char* serial, char* filename) argument
1505 get_basename(const char* filename) argument
1516 check_file(const char* filename) argument
[all...]
/system/core/cpio/
H A Dmkbootfs.c278 static void read_canned_config(char* filename) argument
287 FILE* f = fopen(filename, "r");
/system/core/debuggerd/
H A Dgetevent.c97 char *filename; local
113 filename = devname + strlen(devname);
114 *filename++ = '/';
120 strcpy(filename, event->name);
138 char *filename; local
145 filename = devname + strlen(devname);
146 *filename++ = '/';
152 strcpy(filename, de->d_name);
H A Dtombstone.c459 static void dump_log_file(log_t* log, pid_t pid, const char* filename, argument
471 int logfd = open(filename, O_RDONLY | O_NONBLOCK);
473 XLOG("Unable to open %s: %s\n", filename, strerror(errno));
518 tailOnly ? "tail end of " : "", filename);
/system/core/fastboot/
H A Dengine.c299 char *filename = tempnam(getenv("TEMP"), "fastboot-format.img"); local
300 fd = open(filename, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0644);
301 unlink(filename);
/system/core/fs_mgr/
H A Dfs_mgr.c97 static int wait_for_file(const char *filename, int timeout) argument
103 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
/system/core/init/
H A Dbootchart.c66 proc_read(const char* filename, char* buff, size_t buffsize) argument
69 int fd = open(filename, O_RDONLY);
254 char filename[32]; local
261 snprintf(filename,sizeof(filename),"/proc/%d/cmdline",pid);
262 proc_read(filename, cmdline, sizeof(cmdline));
265 snprintf(filename,sizeof(filename),"/proc/%d/stat",pid);
266 fd = open(filename,O_RDONLY);
H A Dbuiltins.c137 static int insmod(const char *filename, char *options) argument
143 module = read_file(filename, &size);
H A Dinit_parser.c45 const char *filename; member in struct:import
306 state->line, state->filename);
311 import->filename = strdup(conf_file);
313 INFO("found import '%s', adding to import list", import->filename);
352 state.filename = fn;
392 INFO("importing '%s'", import->filename);
393 ret = init_parse_config_file(import->filename);
396 import->filename, fn);
H A Dparser.h32 const char *filename; member in struct:parse_state
H A Dutil.c360 int wait_for_file(const char *filename, int timeout) argument
366 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
/system/core/libcorkscrew/
H A Dsymbol_table.c56 symbol_table_t* load_symbol_table(const char *filename) { argument
58 ALOGV("Loading symbol table from '%s'.", filename);
60 int fd = open(filename, O_RDONLY);
/system/core/libcutils/
H A Dsched_policy.c122 char* filename; local
127 filename = "/dev/cpuctl/tasks";
128 system_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
130 SLOGV("open of %s failed: %s\n", filename, strerror(errno));
134 filename = "/dev/cpuctl/apps/tasks";
135 fg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
137 SLOGE("open of %s failed: %s\n", filename, strerror(errno));
140 filename = "/dev/cpuctl/apps/bg_non_interactive/tasks";
141 bg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
143 SLOGE("open of %s failed: %s\n", filename, strerro
[all...]
H A Dtzstrftime.c738 char filename[FILENAME_MAX]; local
767 if (sizeof filename <
771 (void) sprintf(filename, "%s/%s/%s", locale_home, name, lc_time);
772 fd = open(filename, O_RDONLY);
778 (void) sprintf(filename, "%s/%s/%s", locale_home,
780 fd = open(filename, O_RDONLY);
/system/core/libsparse/
H A Dbacked_block.c35 char *filename; member in struct:backed_block::__anon460::__anon462
84 return bb->file.filename;
117 free(bb->file.filename);
224 if (a->file.filename != b->file.filename ||
324 int backed_block_add_file(struct backed_block_list *bbl, const char *filename, argument
335 bb->file.filename = strdup(filename);
H A Dsimg2simg.c52 char filename[4096]; local
92 ret = snprintf(filename, sizeof(filename), "%s.%d", argv[2], i);
93 if (ret >= (int)sizeof(filename)) {
98 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
H A Dsparse.c67 const char *filename, int64_t file_offset, unsigned int len,
70 return backed_block_add_file(s->backed_block_list, filename, file_offset,
66 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument
/system/core/run-as/
H A Dpackage.c68 /* Open 'filename' and map it into our address-space.
73 map_file(const char* filename, size_t* filesize) argument
83 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY));
/system/core/toolbox/
H A Dcat.c50 static const char *filename; variable
119 perror(filename);
130 filename = "stdin";
142 filename = *argv++;
181 fprintf(stderr,"%s: invalid length\n", filename);
192 filename = "stdin";
221 filename = *argv++;
H A Dgetevent.c266 char filename[PATH_MAX]; local
277 snprintf(filename, sizeof(filename), "%s/%s/rdesc", dirname, de->d_name);
279 file = fopen(filename, "r");
411 char *filename; local
427 filename = devname + strlen(devname);
428 *filename++ = '/';
434 strcpy(filename, event->name);
452 char *filename; local
459 filename
[all...]

Completed in 2116 milliseconds

12