CpuThrottlingWaiter

public class CpuThrottlingWaiter
extends BaseTargetPreparer

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


An 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> a Map ที่มีเส้นทางไปยัง sysfs cpuinfo เป็นคีย์ และความถี่สูงสุดที่เกี่ยวข้องเป็น ค่า

ส่ง
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException