OverlayFsUtils
public class OverlayFsUtils
extends TestWatcher
java.lang.객체 |
↳ | org.junit.rules.TestWatcher |
| ↳ | com.android.sts.common.OverlayFsUtils |
읽기 전용 파티션에 쓰기를 활성화하고 완료되면 장치를 재부팅하는 TestWatcher.
요약
필드
PERM_패턴
static final Pattern PERM_PATTERN
공개 생성자
OverlayFsUtils
public OverlayFsUtils (BaseHostJUnit4Test test)
매개변수 |
---|
test | BaseHostJUnit4Test |
공개 방법
anyOverlayFsMounted
public boolean anyOverlayFsMounted ()
던지기 |
---|
DeviceNotAvailableException | |
완성된
public void finished (Description d)
makeWritable
public void makeWritable (String dir,
int megabytes)
목록에서 가장 많이 사용되는 디렉토리 위에 OverlayFS 디렉토리를 마운트합니다.
이것이 성공적으로 반환된 후 디렉토리는 쓰기 가능해야 합니다. 불행히도 overlayfs 마운트 해제가 복잡하므로 정리하려면 장치를 재부팅하십시오.
매개변수 |
---|
dir | String : 쓰기 가능하게 만들 디렉토리. 작은따옴표가 있는 디렉터리는 지원되지 않습니다. |
megabytes | int |
던지기 |
---|
DeviceNotAvailableException | |
IOException | |
IllegalStateException | |