• Home
  • Raw
  • Download

Lines Matching refs:arg

27 static int do_ping(char **arg, char reply[REPLY_MAX])  in do_ping()  argument
32 static int do_install(char **arg, char reply[REPLY_MAX]) in do_install() argument
34 return install(arg[0], atoi(arg[1]), atoi(arg[2]), arg[3]); /* pkgname, uid, gid, seinfo */ in do_install()
37 static int do_dexopt(char **arg, char reply[REPLY_MAX]) in do_dexopt() argument
40 return dexopt(arg[0], atoi(arg[1]), atoi(arg[2])); in do_dexopt()
43 static int do_move_dex(char **arg, char reply[REPLY_MAX]) in do_move_dex() argument
45 return move_dex(arg[0], arg[1]); /* src, dst */ in do_move_dex()
48 static int do_rm_dex(char **arg, char reply[REPLY_MAX]) in do_rm_dex() argument
50 return rm_dex(arg[0]); /* pkgname */ in do_rm_dex()
53 static int do_remove(char **arg, char reply[REPLY_MAX]) in do_remove() argument
55 return uninstall(arg[0], atoi(arg[1])); /* pkgname, userid */ in do_remove()
58 static int do_rename(char **arg, char reply[REPLY_MAX]) in do_rename() argument
60 return renamepkg(arg[0], arg[1]); /* oldpkgname, newpkgname */ in do_rename()
63 static int do_fixuid(char **arg, char reply[REPLY_MAX]) in do_fixuid() argument
65 return fix_uid(arg[0], atoi(arg[1]), atoi(arg[2])); /* pkgname, uid, gid */ in do_fixuid()
68 static int do_free_cache(char **arg, char reply[REPLY_MAX]) /* TODO int:free_size */ in do_free_cache() argument
70 return free_cache((int64_t)atoll(arg[0])); /* free_size */ in do_free_cache()
73 static int do_rm_cache(char **arg, char reply[REPLY_MAX]) in do_rm_cache() argument
75 return delete_cache(arg[0], atoi(arg[1])); /* pkgname, userid */ in do_rm_cache()
78 static int do_get_size(char **arg, char reply[REPLY_MAX]) in do_get_size() argument
87 res = get_size(arg[0], atoi(arg[1]), arg[2], arg[3], arg[4], arg[5], in do_get_size()
99 static int do_rm_user_data(char **arg, char reply[REPLY_MAX]) in do_rm_user_data() argument
101 return delete_user_data(arg[0], atoi(arg[1])); /* pkgname, userid */ in do_rm_user_data()
104 static int do_mk_user_data(char **arg, char reply[REPLY_MAX]) in do_mk_user_data() argument
106 return make_user_data(arg[0], atoi(arg[1]), atoi(arg[2])); /* pkgname, uid, userid */ in do_mk_user_data()
109 static int do_rm_user(char **arg, char reply[REPLY_MAX]) in do_rm_user() argument
111 return delete_user(atoi(arg[0])); /* userid */ in do_rm_user()
114 static int do_movefiles(char **arg, char reply[REPLY_MAX]) in do_movefiles() argument
119 static int do_linklib(char **arg, char reply[REPLY_MAX]) in do_linklib() argument
121 return linklib(arg[0], arg[1], atoi(arg[2])); in do_linklib()
127 int (*func)(char **arg, char reply[REPLY_MAX]);
195 char *arg[TOKEN_MAX+1]; in execute() local
207 arg[0] = cmd; in execute()
212 arg[n] = cmd; in execute()
222 if (!strcmp(cmds[i].name,arg[0])) { in execute()
227 ret = cmds[i].func(arg + 1, reply); in execute()
232 ALOGE("unsupported command '%s'\n", arg[0]); in execute()