OverlayFsUtils
public
class
OverlayFsUtils
extends TestWatcher
| java.lang.Object | ||
| ↳ | org.junit.rules.TestWatcher | |
| ↳ | com.android.sts.common.OverlayFsUtils | |
読み取り専用パーティションへの書き込みを有効にし、完了後にデバイスを再起動する TestWatcher。
概要
フィールド | |
|---|---|
static
final
Pattern |
PERM_PATTERN
|
パブリック コンストラクタ | |
|---|---|
OverlayFsUtils(BaseHostJUnit4Test test)
|
|
パブリック メソッド | |
|---|---|
boolean
|
anyOverlayFsMounted()
|
void
|
finished(Description d)
|
void
|
makeWritable(String dir, int megabytes)
リスト内の最も一般的なディレクトリに OverlayFS ディレクトリをマウントします。 |
フィールド
PERM_PATTERN
static final Pattern PERM_PATTERN
パブリック コンストラクタ
OverlayFsUtils
public OverlayFsUtils (BaseHostJUnit4Test test)
| パラメータ | |
|---|---|
test |
BaseHostJUnit4Test |
パブリック メソッド
anyOverlayFsMounted
public boolean anyOverlayFsMounted ()
| 戻り値 | |
|---|---|
boolean |
|
| 例外 | |
|---|---|
DeviceNotAvailableException |
|
終わった
public void finished (Description d)
| パラメータ | |
|---|---|
d |
Description |
makeWritable
public void makeWritable (String dir,
int megabytes)リスト内の最も一般的なディレクトリに OverlayFS ディレクトリをマウントします。
これが正常に返されたら、ディレクトリは書き込み可能になります。残りの作業を行うには、デバイスを再起動します。overlayfs のアンマウントは複雑なため、クリーンアップは再起動後に行います。
| パラメータ | |
|---|---|
dir |
String: 書き込み可能にするディレクトリ。シングル クォーテーションを含むディレクトリはサポートされていません。 |
megabytes |
int |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|
IOException |
|
IllegalStateException |
|