Lines Matching refs:arg

29 static int do_ping(char **arg, char reply[REPLY_MAX])  in do_ping()  argument
34 static int do_install(char **arg, char reply[REPLY_MAX]) in do_install() argument
36 return install(arg[0], atoi(arg[1]), atoi(arg[2]), arg[3]); /* pkgname, uid, gid, seinfo */ in do_install()
39 static int do_dexopt(char **arg, char reply[REPLY_MAX]) in do_dexopt() argument
42 return dexopt(arg[0], atoi(arg[1]), atoi(arg[2]), arg[3], arg[4], atoi(arg[5]), 0); in do_dexopt()
45 static int do_mark_boot_complete(char **arg, char reply[REPLY_MAX]) in do_mark_boot_complete() argument
47 return mark_boot_complete(arg[0] /* instruction set */); in do_mark_boot_complete()
50 static int do_move_dex(char **arg, char reply[REPLY_MAX]) in do_move_dex() argument
52 return move_dex(arg[0], arg[1], arg[2]); /* src, dst, instruction_set */ in do_move_dex()
55 static int do_rm_dex(char **arg, char reply[REPLY_MAX]) in do_rm_dex() argument
57 return rm_dex(arg[0], arg[1]); /* pkgname, instruction_set */ in do_rm_dex()
60 static int do_remove(char **arg, char reply[REPLY_MAX]) in do_remove() argument
62 return uninstall(arg[0], atoi(arg[1])); /* pkgname, userid */ in do_remove()
65 static int do_rename(char **arg, char reply[REPLY_MAX]) in do_rename() argument
67 return renamepkg(arg[0], arg[1]); /* oldpkgname, newpkgname */ in do_rename()
70 static int do_fixuid(char **arg, char reply[REPLY_MAX]) in do_fixuid() argument
72 return fix_uid(arg[0], atoi(arg[1]), atoi(arg[2])); /* pkgname, uid, gid */ in do_fixuid()
75 static int do_free_cache(char **arg, char reply[REPLY_MAX]) /* TODO int:free_size */ in do_free_cache() argument
77 return free_cache((int64_t)atoll(arg[0])); /* free_size */ in do_free_cache()
80 static int do_rm_cache(char **arg, char reply[REPLY_MAX]) in do_rm_cache() argument
82 return delete_cache(arg[0], atoi(arg[1])); /* pkgname, userid */ in do_rm_cache()
85 static int do_rm_code_cache(char **arg, char reply[REPLY_MAX]) in do_rm_code_cache() argument
87 return delete_code_cache(arg[0], atoi(arg[1])); /* pkgname, userid */ in do_rm_code_cache()
90 static int do_get_size(char **arg, char reply[REPLY_MAX]) in do_get_size() argument
99 res = get_size(arg[0], atoi(arg[1]), arg[2], arg[3], arg[4], arg[5], in do_get_size()
100 arg[6], &codesize, &datasize, &cachesize, &asecsize); in do_get_size()
111 static int do_rm_user_data(char **arg, char reply[REPLY_MAX]) in do_rm_user_data() argument
113 return delete_user_data(arg[0], atoi(arg[1])); /* pkgname, userid */ in do_rm_user_data()
116 static int do_mk_user_data(char **arg, char reply[REPLY_MAX]) in do_mk_user_data() argument
118 return make_user_data(arg[0], atoi(arg[1]), atoi(arg[2]), arg[3]); in do_mk_user_data()
122 static int do_mk_user_config(char **arg, char reply[REPLY_MAX]) in do_mk_user_config() argument
124 return make_user_config(atoi(arg[0])); /* userid */ in do_mk_user_config()
127 static int do_rm_user(char **arg, char reply[REPLY_MAX]) in do_rm_user() argument
129 return delete_user(atoi(arg[0])); /* userid */ in do_rm_user()
132 static int do_movefiles(char **arg, char reply[REPLY_MAX]) in do_movefiles() argument
137 static int do_linklib(char **arg, char reply[REPLY_MAX]) in do_linklib() argument
139 return linklib(arg[0], arg[1], atoi(arg[2])); in do_linklib()
142 static int do_idmap(char **arg, char reply[REPLY_MAX]) in do_idmap() argument
144 return idmap(arg[0], arg[1], atoi(arg[2])); in do_idmap()
147 static int do_restorecon_data(char **arg, char reply[REPLY_MAX] __attribute__((unused))) in do_restorecon_data() argument
149 return restorecon_data(arg[0], arg[1], atoi(arg[2])); in do_restorecon_data()
153 static int do_patchoat(char **arg, char reply[REPLY_MAX]) { in do_patchoat() argument
155 return dexopt(arg[0], atoi(arg[1]), atoi(arg[2]), arg[3], arg[4], 0, 1); in do_patchoat()
161 int (*func)(char **arg, char reply[REPLY_MAX]);
235 char *arg[TOKEN_MAX+1]; in execute() local
247 arg[0] = cmd; in execute()
252 arg[n] = cmd; in execute()
262 if (!strcmp(cmds[i].name,arg[0])) { in execute()
267 ret = cmds[i].func(arg + 1, reply); in execute()
272 ALOGE("unsupported command '%s'\n", arg[0]); in execute()