2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
CpuThrottlingWaiter
public
class
CpuThrottlingWaiter
extends BaseTargetPreparer
すべてのコアの最大周波数が利用可能な最高レベルに復元されるまで待機する ITargetPreparer
概要
パブリック コンストラクタ
CpuThrottlingWaiter
public CpuThrottlingWaiter ()
パブリック メソッド
public void setUp (TestInformation testInfo)
パラメータ |
testInfo |
TestInformation |
保護されたメソッド
getCpuMaxFreqs
protected getCpuMaxFreqs (ITestDevice device)
/sys/devices/system/cpu の情報を読み取り、使用可能なコアと各コアで可能な最大周波数を決定します。
パラメータ |
device |
ITestDevice : テスト対象デバイス |
戻り値 |
|
sysfs cpuinfo へのパスをキーとして、対応する最大周波数を値として持つ ERROR(/Map) |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# CpuThrottlingWaiter\n===================\n\n\n`\npublic\n\n\nclass\nCpuThrottlingWaiter\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|-----------------------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.android.tradefed.targetprep.BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html) ||\n| | ↳ | com.android.tradefed.targetprep.CpuThrottlingWaiter |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn [ITargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/ITargetPreparer.html) that waits until max frequency on all cores are restored to highest\nlevel available\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[CpuThrottlingWaiter](../../../../../../reference/tradefed/com/android/tradefed/targetprep/CpuThrottlingWaiter.html#CpuThrottlingWaiter())`() ` |\n\n| ### Public methods ||\n|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[setUp](../../../../../../reference/tradefed/com/android/tradefed/targetprep/CpuThrottlingWaiter.html#setUp(com.android.tradefed.invoker.TestInformation))`(`[TestInformation](../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html)` testInfo) ` |\n\n| ### Protected methods ||\n|-----|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` ` | ` `[getCpuMaxFreqs](../../../../../../reference/tradefed/com/android/tradefed/targetprep/CpuThrottlingWaiter.html#getCpuMaxFreqs(com.android.tradefed.device.ITestDevice))`(`[ITestDevice](../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` device) ` Reads info under /sys/devices/system/cpu to determine cores available, and max frequencies possible for each core |\n\nPublic constructors\n-------------------\n\n### CpuThrottlingWaiter\n\n```\npublic CpuThrottlingWaiter ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### setUp\n\n```\npublic void setUp (TestInformation testInfo)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------------------|\n| `testInfo` | `TestInformation` \u003cbr /\u003e |\n\n| Throws ||\n|----------------------------------------------------------------------------------------------------------------------------------|---|\n| [BuildError](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BuildError.html) | |\n| [DeviceNotAvailableException](../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) | |\n| [TargetSetupError](../../../../../../reference/tradefed/com/android/tradefed/targetprep/TargetSetupError.html) | |\n\nProtected methods\n-----------------\n\n### getCpuMaxFreqs\n\n```\nprotected getCpuMaxFreqs (../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html device)\n```\n\nReads info under /sys/devices/system/cpu to determine cores available, and max frequencies\npossible for each core\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-----------------------------------------|\n| `device` | `ITestDevice`: device under test \u003cbr /\u003e |\n\n| Returns ||\n|---|-------------------------------------------------------------------------------------------------------------------------|\n| | a [ERROR(/Map)](../../../../../../) with paths to sysfs cpuinfo as key, and corresponding max frequency as value \u003cbr /\u003e |\n\n| Throws ||\n|----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| | com.android.tradefed.device.DeviceNotAvailableException |\n| [DeviceNotAvailableException](../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) | |"]]