Lines Matching defs:state

111      * Internal vold volume state constants
181 // true if we should fake MEDIA_MOUNTED state for external storage
203 * Mounted OBB tracking information. Used to track the current state of all
498 String state = states[i];
500 if (state.equals(Environment.MEDIA_UNMOUNTED)) {
506 } else if (state.equals(Environment.MEDIA_SHARED)) {
508 * Bootstrap UMS enabled state since vold indicates
574 private void updatePublicVolumeState(String path, String state) {
577 oldState = mVolumeStates.put(path, state);
579 if (state.equals(oldState)) {
580 Slog.w(TAG, String.format("Duplicate state transition (%s -> %s) for %s",
581 state, state, path));
585 Slog.d(TAG, "volume state changed for " + path + " (" + oldState + " -> " + state + ")");
588 // Update state on PackageManager, but only of real events
590 if (Environment.MEDIA_UNMOUNTED.equals(state)) {
600 } else if (Environment.MEDIA_MOUNTED.equals(state)) {
609 bl.mListener.onStorageStateChanged(path, oldState, state);
633 * Determine media state and UMS detection status
640 // FMT: <label> <mountpoint> <state>
642 String state = Environment.MEDIA_REMOVED;
646 state = Environment.MEDIA_REMOVED;
648 state = Environment.MEDIA_UNMOUNTED;
650 state = Environment.MEDIA_MOUNTED;
653 state = Environment.MEDIA_SHARED;
656 throw new Exception(String.format("Unexpected state %d", st));
659 if (state != null) {
660 if (DEBUG_EVENTS) Slog.i(TAG, "Updating valid state " + state);
661 updatePublicVolumeState(path, state);
665 Slog.e(TAG, "Error processing initial volume state", e);
696 * One of the volumes we're managing has changed state.
697 * Format: "NNN Volume <label> <path> state changed
740 * This event gets trumped if we're already in BAD_REMOVAL state
799 if (DEBUG_EVENTS) Slog.i(TAG, "updating volume state for media bad removal nofs and unmountable");
805 if (DEBUG_EVENTS) Slog.i(TAG, "updating volume state checking");
809 if (DEBUG_EVENTS) Slog.i(TAG, "updating volume state mounted");
816 if (DEBUG_EVENTS) Slog.i(TAG, "Updating volume state media mounted");
855 if (DEBUG_EVENTS) Slog.i(TAG, " updating volume state :: media nofs");
863 if (DEBUG_EVENTS) Slog.i(TAG, "updating volume state media corrupt");
891 * to make sure we dont end up in an instable state and kill some core
909 // Redundant probably. But no harm in updating state again.
1233 String state = mVolumeStates.get(path);
1235 if (state.equals(Environment.MEDIA_SHARED)) {
1244 } else if (state.equals(Environment.MEDIA_CHECKING)) {
1251 while (state.equals(Environment.MEDIA_CHECKING) && (retries-- >=0)) {
1258 state = Environment.getExternalStorageState();
1265 if (state.equals(Environment.MEDIA_MOUNTED)) {
1338 * The mountVolume() call will have set the storage state and sent the necessary
1351 * @return state of the volume at the specified mount point
1355 String state = mVolumeStates.get(mountPoint);
1356 if (state == null) {
1359 state = Environment.MEDIA_REMOVED;
1365 return state;
1614 * Because a mounted container has active internal state which cannot be
1979 * The binder died before we could link it, so clean up our state
2109 Slog.i(TAG, "Flushing all OBB state for path " + path);
2131 Slog.i(TAG, "Removing state for " + obbState.filename);