Home | History | Annotate | Download | only in vold

Lines Matching refs:Volume

38               Volume(vm, label, mount_point) {
49 setState(Volume::State_NoMedia);
82 setState(Volume::State_Shared);
86 setState(Volume::State_Idle);
164 setState(Volume::State_Idle);
170 setState(Volume::State_Pending);
173 snprintf(msg, sizeof(msg), "Volume %s %s disk inserted (%d:%d)",
221 if (getState() != Volume::State_Formatting) {
222 setState(Volume::State_Idle);
243 SLOGI("Volume %s disk has changed", getLabel());
259 if (getState() != Volume::State_Formatting) {
261 setState(Volume::State_Idle);
263 setState(Volume::State_Pending);
271 SLOGD("Volume %s %s partition %d:%d changed\n", getLabel(), getMountpoint(), major, minor);
279 SLOGD("Volume %s %s disk %d:%d removed\n", getLabel(), getMountpoint(), major, minor);
280 snprintf(msg, sizeof(msg), "Volume %s %s disk removed (%d:%d)",
284 setState(Volume::State_NoMedia);
293 SLOGD("Volume %s %s partition %d:%d removed\n", getLabel(), getMountpoint(), major, minor);
302 if (state != Volume::State_Mounted && state != Volume::State_Shared) {
311 snprintf(msg, sizeof(msg), "Volume %s %s bad removal (%d:%d)",
320 if (Volume::unmountVol(true, false)) {
321 SLOGE("Failed to unmount volume on bad removal (%s)",
327 } else if (state == Volume::State_Shared) {
329 snprintf(msg, sizeof(msg), "Volume %s bad removal (%d:%d)",
335 SLOGE("Failed to unshare volume on bad removal (%s)",
386 SLOGE("Cannot change path if there are more than one for a volume\n");