Lines Matching refs:volId
255 binder::Status VoldNativeService::mount(const std::string& volId, int32_t mountFlags, in mount() argument
258 CHECK_ARGUMENT_ID(volId); in mount()
261 auto vol = VolumeManager::Instance()->findVolume(volId); in mount()
263 return error("Failed to find volume " + volId); in mount()
282 binder::Status VoldNativeService::unmount(const std::string& volId) { in unmount() argument
284 CHECK_ARGUMENT_ID(volId); in unmount()
287 auto vol = VolumeManager::Instance()->findVolume(volId); in unmount()
289 return error("Failed to find volume " + volId); in unmount()
294 binder::Status VoldNativeService::format(const std::string& volId, const std::string& fsType) { in format() argument
296 CHECK_ARGUMENT_ID(volId); in format()
299 auto vol = VolumeManager::Instance()->findVolume(volId); in format()
301 return error("Failed to find volume " + volId); in format()
306 static binder::Status pathForVolId(const std::string& volId, std::string* path) { in pathForVolId() argument
307 if (volId == "private" || volId == "null") { in pathForVolId()
310 auto vol = VolumeManager::Instance()->findVolume(volId); in pathForVolId()
312 return error("Failed to find volume " + volId); in pathForVolId()
315 return error("Volume " + volId + " not private"); in pathForVolId()
318 return error("Volume " + volId + " not mounted"); in pathForVolId()
322 return error("Volume " + volId + " missing path"); in pathForVolId()
329 const std::string& volId, const android::sp<android::os::IVoldTaskListener>& listener) { in benchmark() argument
331 CHECK_ARGUMENT_ID(volId); in benchmark()
335 auto status = pathForVolId(volId, &path); in benchmark()
389 binder::Status VoldNativeService::destroyObb(const std::string& volId) { in destroyObb() argument
391 CHECK_ARGUMENT_ID(volId); in destroyObb()
394 return translate(VolumeManager::Instance()->destroyObb(volId)); in destroyObb()
412 binder::Status VoldNativeService::destroyStubVolume(const std::string& volId) { in destroyStubVolume() argument
414 CHECK_ARGUMENT_ID(volId); in destroyStubVolume()
417 return translate(VolumeManager::Instance()->destroyStubVolume(volId)); in destroyStubVolume()