ネストされたクラス |
---|
class | ModulePusher.ModulePushError メインライン モジュールのプッシュ中に致命的なエラーが発生しました。 |
公開メソッド |
---|
void | installModules (ImmutableMultimap<String, File> moduleFiles, boolean factoryReset, boolean disablePackageCache) adb push によってmoduleFiles デバイスにインストールします。 |
保護されたメソッド |
---|
void | checkApexActivated ( ITestDevice device, modules) checkApexActivated ( ITestDevice device, modules) すべての頂点がアクティブになっているかどうかを確認します。 |
Path | getApexPathUnderSystem ( ITestDevice device, String packageName) |
| getModulesFailToActivate ( toInstall, activatedApexes) getModulesFailToActivate ( toInstall, activatedApexes) getModulesFailToActivate ( toInstall, activatedApexes) アクティブ化に失敗したモジュールを取得します。 |
String[] | getPathsOnDevice ( ITestDevice device, String packageName) デバイス上のパッケージのインストール ファイルのパスを取得します。 |
Path[] | getPreloadPaths ( ITestDevice device, File[] moduleFiles, String packageName, int apiLevel) デバイス上のプリロード パッケージのパスを取得します。 |
ImmutableMap<String, String> | parsePackageVersionCodes (String output) 「package:{key} versionCode:{value}」の行をマップに解析します。 |
void | setupDevice ( ITestDevice device) /systemの下にファイルをプッシュする前に、adb rootとデバイスを再マウントします |
void | waitForDeviceToBeResponsive (long waitTime) |
田畑
LINE_BREAK
public static final String LINE_BREAK
パブリック コンストラクター
ModulePusher
public ModulePusher (ITestDevice device,
long waitTimeMs,
long delayWaitingTimeMs)
パラメーター |
---|
device | ITestDevice |
waitTimeMs | long |
delayWaitingTimeMs | long |
公開メソッド
インストールモジュール
public void installModules (ImmutableMultimap<String, File> moduleFiles,
boolean factoryReset,
boolean disablePackageCache)
adb push によってmoduleFiles
デバイスにインストールします。
パラメーター |
---|
moduleFiles | ImmutableMultimap : パッケージ名からパッケージ ファイルへのマルチマップ。分割の場合、基本パッケージは反復順序の最初にある必要があります。 |
factoryReset | boolean : 工場出荷時の状態にリセットしてリロードする場合。 |
disablePackageCache | boolean |
保護されたメソッド
checkApexActivated
protected void checkApexActivated (ITestDevice device,
modules)
すべての頂点がアクティブになっているかどうかを確認します。
パラメーター |
---|
device | ITestDevice : テスト中。 |
modules | |
getApexPathUnderSystem
protected Path getApexPathUnderSystem (ITestDevice device,
String packageName)
パラメーター |
---|
device | ITestDevice |
packageName | String |
getModulesFailToActivate
protected getModulesFailToActivate ( toInstall,
activatedApexes)
アクティブ化に失敗したモジュールを取得します。
パラメーター |
---|
toInstall | |
activatedApexes | : デバイス上のアクティブな頂点のセット |
戻り値 |
---|
| アクティブ化に失敗した入力 apex モジュールの apexinfo を含むリスト。 |
getPathsOnDevice
protected String[] getPathsOnDevice (ITestDevice device,
String packageName)
デバイス上のパッケージのインストール ファイルのパスを取得します。
パラメーター |
---|
device | ITestDevice : テスト中 |
packageName | String : モジュールの |
戻り値 |
---|
String[] | パッケージのすべてのファイルのパス |
getPreloadPaths
protected Path[] getPreloadPaths (ITestDevice device,
File[] moduleFiles,
String packageName,
int apiLevel)
デバイス上のプリロード パッケージのパスを取得します。
分割パッケージの場合、パッケージ dir のパスとそれに続くファイルのパスを返します。結果として、この場合、return のサイズは常に > 1 になります。分割されていないパッケージの場合は、プリロード インストール ファイルのパスを返すだけです。
パラメーター |
---|
device | ITestDevice : テスト中 |
moduleFiles | File : インストールするローカル モジュール ファイル |
packageName | String : モジュールの |
apiLevel | int : デバイスの |
parsePackageVersionCodes
protected ImmutableMap<String, String> parsePackageVersionCodes (String output)
「package:{key} versionCode:{value}」の行をマップに解析します。
戻り値 |
---|
ImmutableMap<String, String> | |
セットアップデバイス
protected void setupDevice (ITestDevice device)
/systemの下にファイルをプッシュする前に、adb rootとデバイスを再マウントします
waitForDeviceToBeResponsive
protected void waitForDeviceToBeResponsive (long waitTime)
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2023-03-30 UTC。
[]
[]