Home
last modified time | relevance | path

Searched refs:dst_size (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/cmds/installd/
Dutils.c42 size_t dst_size = PKG_PATH_MAX; in create_pkg_path_in_dir() local
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0 in create_pkg_path_in_dir()
45 || append_and_increment(&dst, pkgname, &dst_size) < 0 in create_pkg_path_in_dir()
46 || append_and_increment(&dst, postfix, &dst_size) < 0) { in create_pkg_path_in_dir()
78 size_t dst_size = sizeof(prefix); in create_pkg_path() local
80 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0 in create_pkg_path()
81 || append_and_increment(&dst, userid_prefix, &dst_size) < 0) { in create_pkg_path()
87 int ret = snprintf(dst, dst_size, "%d/", userid); in create_pkg_path()
119 size_t dst_size = PKG_PATH_MAX; in create_user_path() local
121 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0 in create_user_path()
[all …]
Dinstalld.h192 int append_and_increment(char** dst, const char* src, size_t* dst_size);
/frameworks/native/cmds/installd/tests/
Dinstalld_utils_test.cpp449 size_t dst_size = 10; in TEST_F() local
450 char dst[dst_size]; in TEST_F()
454 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size)) in TEST_F()
460 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size)) in TEST_F()
468 size_t dst_size = 5; in TEST_F() local
469 char dst[dst_size]; in TEST_F()
473 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size)) in TEST_F()
479 EXPECT_EQ(-1, append_and_increment(&dstp, src, &dst_size)) in TEST_F()