Prevent staging multiple sessions on devices not supporting checkpoint am: 8c7142a658

Change-Id: I42c180ae216777624b4ad204466f0f64fccecbb9
This commit is contained in:
Mohammad Samiul Islam
2020-04-01 13:31:05 +00:00
committed by Automerger Merge Worker
4 changed files with 35 additions and 8 deletions

View File

@@ -2304,6 +2304,19 @@ public class StorageManager {
}
}
/**
* Check whether the device supports filesystem checkpoint.
*
* @return true if the device supports filesystem checkpoint, false otherwise.
*/
public boolean isCheckpointSupported() {
try {
return mStorageManager.supportsCheckpoint();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
private final Object mFuseAppLoopLock = new Object();
@GuardedBy("mFuseAppLoopLock")