summaryrefslogtreecommitdiff
path: root/cmds/installd/utils.h
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2017-01-10 04:53:00 +0000
committer android-build-merger <android-build-merger@google.com> 2017-01-10 04:53:00 +0000
commit78ef6e13966b830d111f18702948d77cfa2634a7 (patch)
treee4be20ebdc39b9ad30589907bdc44a36fd4fa3ca /cmds/installd/utils.h
parentf4f0b805b515df3e64928e0b80929e66cee11cde (diff)
parent4e4e8ab3a48e5ce760d795be6bb4b0490cfd5d32 (diff)
Merge "Methods to calculate user and external disk usage." am: 4d9746d7a3 am: 15e80e0436 am: e5281b7f9b
am: 4e4e8ab3a4 Change-Id: I954e87563f1a8222be418221657e730ffda51814
Diffstat (limited to 'cmds/installd/utils.h')
-rw-r--r--cmds/installd/utils.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/cmds/installd/utils.h b/cmds/installd/utils.h
index ff041183cb..f2f0cbb030 100644
--- a/cmds/installd/utils.h
+++ b/cmds/installd/utils.h
@@ -30,6 +30,9 @@
#include <installd_constants.h>
+#define MEASURE_DEBUG 0
+#define MEASURE_EXTERNAL 0
+
namespace android {
namespace installd {
@@ -86,13 +89,16 @@ std::string create_data_user_de_package_path(const char* volume_uuid,
userid_t user, const char* package_name);
std::string create_data_media_path(const char* volume_uuid, userid_t userid);
+std::string create_data_media_obb_path(const char* volume_uuid, const char* package_name);
std::string create_data_media_package_path(const char* volume_uuid, userid_t userid,
const char* data_type, const char* package_name);
std::string create_data_misc_legacy_path(userid_t userid);
-std::string create_data_user_profiles_path(userid_t userid);
+std::string create_data_user_profile_path(userid_t userid);
std::string create_data_user_profile_package_path(userid_t user, const char* package_name);
+
+std::string create_data_ref_profile_path();
std::string create_data_ref_profile_package_path(const char* package_name);
std::string create_data_dalvik_cache_path();
@@ -103,7 +109,7 @@ std::string create_primary_profile(const std::string& profile_dir);
std::vector<userid_t> get_known_users(const char* volume_uuid);
int calculate_tree_size(const std::string& path, int64_t* size,
- gid_t include_gid = 0, gid_t exclude_gid = 0);
+ int32_t include_gid = -1, int32_t exclude_gid = -1, bool exclude_apps = false);
int create_user_config_path(char path[PKG_PATH_MAX], userid_t userid);