Home
last modified time | relevance | path

Searched refs:pkg_info (Results 1 – 5 of 5) sorted by relevance

/system/core/libpackagelistparser/
Dpackagelistparser.c105 struct pkg_info *pkg_info = NULL; in packagelist_parse() local
116 pkg_info = calloc(1, sizeof(*pkg_info)); in packagelist_parse()
117 if (!pkg_info) { in packagelist_parse()
129 pkg_info->name = strdup(cur); in packagelist_parse()
130 if (!pkg_info->name) { in packagelist_parse()
155 pkg_info->uid = (uid_t) tmp; in packagelist_parse()
175 pkg_info->debuggable = (bool) tmp; in packagelist_parse()
183 pkg_info->data_dir = strdup(cur); in packagelist_parse()
184 if (!pkg_info->data_dir) { in packagelist_parse()
194 pkg_info->seinfo = strdup(cur); in packagelist_parse()
[all …]
/system/core/libpackagelistparser/include/packagelistparser/
Dpackagelistparser.h40 typedef struct pkg_info pkg_info; typedef
48 struct pkg_info { struct
69 typedef bool (*pfn_on_package)(pkg_info *info, void *userdata); argument
90 extern void packagelist_free(pkg_info *info);
/system/extras/simpleperf/simpleperf_app_runner/
Dsimpleperf_app_runner.cpp50 pkg_info* info;
53 static bool PackageListParseCallback(pkg_info* info, void* userdata) { in PackageListParseCallback()
63 pkg_info* ReadPackageInfo(const char* pkgname) { in ReadPackageInfo()
168 pkg_info* info = ReadPackageInfo(pkgname); in main()
/system/core/run-as/
Drun-as.cpp63 static bool packagelist_parse_callback(pkg_info* this_package, void* userdata) { in packagelist_parse_callback()
64 pkg_info* p = reinterpret_cast<pkg_info*>(userdata); in packagelist_parse_callback()
196 pkg_info info; in main()
/system/core/logd/
Dmain.cpp216 static bool package_list_parser_cb(pkg_info* info, void* /* userdata */) { in package_list_parser_cb()