diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2016-01-27 19:47:40 +0900 |
---|---|---|
committer | MyungKi Lee <mk5004.lee@samsung.com> | 2016-02-01 02:27:40 -0800 |
commit | 7e4247371f62327d4d4ce5bae883c140c83a4534 (patch) | |
tree | a3486dc94fa9081f0d7af10bd305a746db8306bd /tool | |
parent | 22f7518bfb43e44e0820071e7ab495535cc09eb6 (diff) | |
download | aul-1-7e4247371f62327d4d4ce5bae883c140c83a4534.tar.gz aul-1-7e4247371f62327d4d4ce5bae883c140c83a4534.tar.bz2 aul-1-7e4247371f62327d4d4ce5bae883c140c83a4534.zip |
Add aul_app_get_all_running_app_info func
This API use to get all running application list, including sub app.
Change-Id: Icd4cd3df43acf752f10045d4df57f054cc3c4801
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
Diffstat (limited to 'tool')
-rw-r--r-- | tool/aul_test.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tool/aul_test.c b/tool/aul_test.c index 3010d089..15badd7e 100644 --- a/tool/aul_test.c +++ b/tool/aul_test.c @@ -255,6 +255,26 @@ int get_allpkg_test() return aul_app_get_running_app_info(iterfunc, NULL); } +int iterfunc_status(const aul_app_info *info, void *data) +{ + printf("\t==========================\n"); + printf("\t pid: %d\n", info->pid); + printf("\t appid: %s\n", info->appid); + printf("\t app_path: %s\n", info->app_path); + printf("\t pkgid: %s\n", info->pkgid); + printf("\t status: %d\n", info->status); + printf("\t is_sub_app : %d\n", info->is_sub_app); + printf("\t==========================\n"); + + return 0; +} + +int get_all_app_test() +{ + static int num = 0; + printf("[aul_app_get_all_running_app_info %d test] \n", num++); + return aul_app_get_all_running_app_info(iterfunc_status, NULL); +} int get_app_bypid_test() { int pid = 0; @@ -564,6 +584,8 @@ static test_func_t test_func[] = { "[usage] is_run <pkgname>"}, {"getallpkg", get_allpkg_test, "aul_app_get_running_app_info test", "[usage] getallpkg all"}, + {"getallappstatus", get_all_app_test, "aul_app_get_all_running_app_info test", + "[usage] getallappstatus "}, {"get_app_bypid", get_app_bypid_test, "aul_app_get_appid_bypid test", "[usage] get_app_bypid <pid>"}, {"get_pkg_bypid", get_pkg_bypid_test, "aul_app_get_pkgid_bypid test", |