Home
last modified time | relevance | path

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

/system/core/libpackagelistparser/include/packagelistparser/
Dpackagelistparser.h32 typedef struct pkg_info { struct
62 } pkg_info; argument
70 bool packagelist_parse(bool (*callback)(pkg_info* info, void* user_data), void* user_data);
78 bool packagelist_parse_file(const char* path, bool (*callback)(pkg_info* info, void* user_data),
82 void packagelist_free(pkg_info* info);
/system/core/libpackagelistparser/
Dpackagelistparser_test.cpp39 std::vector<pkg_info*> packages; in TEST()
42 [](pkg_info* info, void* user_data) -> bool { in TEST()
43 reinterpret_cast<std::vector<pkg_info*>*>(user_data)->push_back(info); in TEST()
100 std::vector<pkg_info*> packages; in TEST()
103 [](pkg_info* info, void* user_data) -> bool { in TEST()
104 std::vector<pkg_info*>* p = reinterpret_cast<std::vector<pkg_info*>*>(user_data); in TEST()
120 std::vector<pkg_info*> packages; in TEST()
122 [](pkg_info* info, void* user_data) -> bool { in TEST()
123 reinterpret_cast<std::vector<pkg_info*>*>(user_data)->push_back(info); in TEST()
Dpackagelistparser.cpp31 static bool parse_gids(const char* path, size_t line_number, const char* gids, pkg_info* info) { in parse_gids()
65 static bool parse_line(const char* path, size_t line_number, const char* line, pkg_info* info) { in parse_line()
93 bool packagelist_parse_file(const char* path, bool (*callback)(pkg_info*, void*), void* user_data) { in packagelist_parse_file() argument
105 std::unique_ptr<pkg_info, decltype(&packagelist_free)> info( in packagelist_parse_file()
106 static_cast<pkg_info*>(calloc(1, sizeof(pkg_info))), &packagelist_free); in packagelist_parse_file()
120 bool packagelist_parse(bool (*callback)(pkg_info*, void*), void* user_data) { in packagelist_parse() argument
124 void packagelist_free(pkg_info* info) { in packagelist_free()
/system/extras/simpleperf/simpleperf_app_runner/
Dsimpleperf_app_runner.cpp63 pkg_info* info;
66 static bool PackageListParseCallback(pkg_info* info, void* userdata) { in PackageListParseCallback()
76 pkg_info* ReadPackageInfo(const char* pkgname) { in ReadPackageInfo()
188 pkg_info* info = ReadPackageInfo(pkgname); in main()
214 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()
191 pkg_info info = {.name = pkgname}; in main()
/system/logging/logd/
DPkgIds.cpp51 static bool PackageParseCallback(pkg_info* info, void* userdata) { in PackageParseCallback()
161 [](pkg_info* info, void* callback_parameter) { in uidToName()