diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-08-27 15:03:37 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-08-30 10:29:41 -0700 |
commit | 9685194fc94510a33201aee9b80c23f206ccfe67 (patch) | |
tree | 7a58f5b42c47df2f49df7c6cb55cd0b8a30bec67 /libcutils/multiuser.c | |
parent | 84ac402fa1860817ed100d189b0613f8c4b0ef2a (diff) | |
download | system_core-9685194fc94510a33201aee9b80c23f206ccfe67.zip system_core-9685194fc94510a33201aee9b80c23f206ccfe67.tar.gz system_core-9685194fc94510a33201aee9b80c23f206ccfe67.tar.bz2 |
File-system utilities for installd and zygote.
Bug: 7008879
Change-Id: Ia54b8d4ad434e8973f235e2a4728651814bef8a9
Diffstat (limited to 'libcutils/multiuser.c')
-rw-r--r-- | libcutils/multiuser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcutils/multiuser.c b/libcutils/multiuser.c index 3c86cee..7c74bb8 100644 --- a/libcutils/multiuser.c +++ b/libcutils/multiuser.c @@ -16,14 +16,14 @@ #include <cutils/multiuser.h> -userid_t multiuser_getUserId(uid_t uid) { +userid_t multiuser_get_user_id(uid_t uid) { return uid / MULTIUSER_APP_PER_USER_RANGE; } -appid_t multiuser_getAppId(uid_t uid) { +appid_t multiuser_get_app_id(uid_t uid) { return uid % MULTIUSER_APP_PER_USER_RANGE; } -uid_t multiuser_getUid(userid_t userId, appid_t appId) { +uid_t multiuser_get_uid(userid_t userId, appid_t appId) { return userId * MULTIUSER_APP_PER_USER_RANGE + (appId % MULTIUSER_APP_PER_USER_RANGE); } |