/frameworks/native/cmds/installd/ |
D | installd.h | 132 const char* pkgname, 136 const char *pkgname, 146 const char* pkgname, 150 int is_valid_package_name(const char* pkgname); 192 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo); 193 int uninstall(const char *pkgname, userid_t userid); 195 int fix_uid(const char *pkgname, uid_t uid, gid_t gid); 196 int delete_user_data(const char *pkgname, userid_t userid); 197 int make_user_data(const char *pkgname, uid_t uid, userid_t userid); 199 int delete_cache(const char *pkgname, userid_t userid); [all …]
|
D | commands.c | 31 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo) in install() argument 43 if (create_pkg_path(pkgdir, pkgname, PKG_DIR_POSTFIX, 0)) { in install() 48 if (create_pkg_path(libsymlink, pkgname, PKG_LIB_POSTFIX, 0)) { in install() 53 if (create_pkg_path_in_dir(applibdir, &android_app_lib_dir, pkgname, PKG_DIR_POSTFIX)) { in install() 94 if (selinux_android_setfilecon2(pkgdir, pkgname, seinfo, uid) < 0) { in install() 111 int uninstall(const char *pkgname, userid_t userid) in uninstall() argument 115 if (create_pkg_path(pkgdir, pkgname, PKG_DIR_POSTFIX, userid)) in uninstall() 139 int fix_uid(const char *pkgname, uid_t uid, gid_t gid) in fix_uid() argument 150 if (create_pkg_path(pkgdir, pkgname, PKG_DIR_POSTFIX, 0)) { in fix_uid() 176 int delete_user_data(const char *pkgname, userid_t userid) in delete_user_data() argument [all …]
|
D | utils.c | 23 const char* pkgname, in create_pkg_path_in_dir() argument 28 const size_t pkgname_len = strlen(pkgname); in create_pkg_path_in_dir() 33 if (is_valid_package_name(pkgname) < 0) { in create_pkg_path_in_dir() 45 || append_and_increment(&dst, pkgname, &dst_size) < 0 in create_pkg_path_in_dir() 59 const char *pkgname, in create_pkg_path() argument 98 return create_pkg_path_in_dir(path, &dir, pkgname, postfix); in create_pkg_path() 153 const char* pkgname, in create_move_path() argument 157 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1) in create_move_path() 162 sprintf(path, "%s%s%s/%s", android_data_dir.path, PRIMARY_USER_PREFIX, pkgname, leaf); in create_move_path() 170 int is_valid_package_name(const char* pkgname) { in is_valid_package_name() argument [all …]
|
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 267 char pkgname[pkgnameSize + 1]; in TEST_F() local 268 memset(pkgname, 'a', pkgnameSize); in TEST_F() 269 pkgname[pkgnameSize] = '\0'; in TEST_F() 271 EXPECT_EQ(0, create_pkg_path(path, pkgname, "", 0)) in TEST_F() 276 EXPECT_STREQ(pkgname, path + offset) in TEST_F() 285 char pkgname[pkgnameSize + 1]; in TEST_F() local 286 memset(pkgname, 'a', pkgnameSize); in TEST_F() 287 pkgname[pkgnameSize] = '\0'; in TEST_F() 289 EXPECT_EQ(-1, create_pkg_path(path, pkgname, "", 0)) in TEST_F()
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | FragmentActivity.java | 732 String pkgname; in viewToString() local 735 pkgname="app"; in viewToString() 738 pkgname="android"; in viewToString() 741 pkgname = r.getResourcePackageName(id); in viewToString() 747 out.append(pkgname); in viewToString()
|
/frameworks/base/core/java/android/view/ |
D | View.java | 4019 String pkgname; in toString() local 4022 pkgname="app"; in toString() 4025 pkgname="android"; in toString() 4028 pkgname = r.getResourcePackageName(id); in toString() 4034 out.append(pkgname); in toString()
|