Lines Matching refs:uid
36 static android::status_t GetMountPath(uid_t uid, const std::string& name, std::string* path) { in GetMountPath() argument
47 *path = StringPrintf("/mnt/appfuse/%d_%s", uid, name.c_str()); in GetMountPath()
73 static android::status_t RunCommand(const std::string& command, uid_t uid, const std::string& path, in RunCommand() argument
77 << uid; in RunCommand()
105 int MountAppFuse(uid_t uid, int mountId, android::base::unique_fd* device_fd) { in MountAppFuse() argument
110 if (GetMountPath(uid, name, &path) != android::OK) { in MountAppFuse()
136 return RunCommand("mount", uid, path, device_fd->get()); in MountAppFuse()
139 int UnmountAppFuse(uid_t uid, int mountId) { in UnmountAppFuse() argument
144 if (GetMountPath(uid, name, &path) != android::OK) { in UnmountAppFuse()
149 return RunCommand("unmount", uid, path, -1 /* device_fd */); in UnmountAppFuse()
152 int OpenAppFuseFile(uid_t uid, int mountId, int fileId, int flags) { in OpenAppFuseFile() argument
157 if (GetMountPath(uid, name, &mountPoint) != android::OK) { in OpenAppFuseFile()