Lines Matching full:userid
56 * a certain userid. Returns 0 on success, and -1 on failure.
61 userid_t userid)
65 if (userid == 0) {
70 userid_len = snprintf(NULL, 0, "%d", userid);
86 if (userid != 0) {
87 int ret = snprintf(dst, dst_size, "%d/", userid);
102 * Create the path name for user data for a certain userid.
106 userid_t userid)
110 if (userid == 0) {
115 userid_len = snprintf(NULL, 0, "%d/", userid);
127 if (userid != 0) {
132 int ret = snprintf(dst, dst_size, "%d/", userid);
134 ALOGE("Error appending userid to path");
142 * Create the path name for media for a certain userid.
145 int create_user_media_path(char path[PATH_MAX], userid_t userid) {
146 if (snprintf(path, PATH_MAX, "%s%d", android_media_dir.path, userid) > PATH_MAX) {
155 userid_t userid)
996 int ensure_media_user_dirs(userid_t userid) {
1000 // Ensure /data/media/<userid> exists
1001 create_user_media_path(media_user_path, userid);