CpuThrottlingWaiter

public class CpuThrottlingWaiter
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
  com.android.tradefed.targetprep.CpuThrottlingWaiter


모든 코어의 최대 주파수가 사용 가능한 최고 수준으로 복원될 때까지 기다리는 ITargetPreparer입니다.

요약

공개 생성자

CpuThrottlingWaiter()

공개 메서드

void setUp(TestInformation testInfo)

보호된 메서드

Map<String, String> getCpuMaxFreqs(ITestDevice device)

/sys/devices/system/cpu 아래의 정보를 읽어 사용 가능한 코어와 각 코어에 가능한 최대 주파수 를 확인합니다.

공개 생성자

CpuThrottlingWaiter

public CpuThrottlingWaiter ()

공개 메서드

setUp

public void setUp (TestInformation testInfo)

매개변수
testInfo TestInformation

생성 값
BuildError
DeviceNotAvailableException
TargetSetupError

보호된 메서드

getCpuMaxFreqs

protected Map<String, String> getCpuMaxFreqs (ITestDevice device)

/sys/devices/system/cpu 아래의 정보를 읽어 사용 가능한 코어와 각 코어에 가능한 최대 주파수 를 확인합니다.

매개변수
device ITestDevice: 테스트 중인 기기

반환
Map<String, String> sysfs cpuinfo 경로를 키로, 상응하는 최대 주파수를 값으로 갖는 Map

생성 값
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException