อุปกรณ์ FlashPreparer
public abstract class DeviceFlashPreparer
extends BaseTargetPreparer
implements IConfigurationReceiver
ITargetPreparer
ที่กะพริบภาพบนฮาร์ดแวร์ Android ทางกายภาพ
สรุป
ผู้รับเหมาก่อสร้างสาธารณะ
อุปกรณ์ FlashPreparer
public DeviceFlashPreparer ()
วิธีการสาธารณะ
public IBuildInfo getBuild (TestInformation testInfo)
รวม getBuildInfo เพื่อให้เรามีการเปลี่ยนแปลงเพื่อแทนที่มันสำหรับสถานการณ์เฉพาะ
พารามิเตอร์ |
---|
testInfo | TestInformation |
คือเปิดใช้งานแบบFlashingแบบเพิ่มหน่วยแล้ว
public boolean isIncrementalFlashingEnabled ()
คือIncreamentalFlashingForceDisabled
public boolean isIncrementalFlashingForceDisabled ()
setAllowCrossReleaseFlashing
public void setAllowCrossReleaseFlashing (boolean allowCrossReleaseFlashing)
พารามิเตอร์ |
---|
allowCrossReleaseFlashing | boolean |
setAllowUnzipBaseline
public void setAllowUnzipBaseline (boolean allowUnzipBaseline)
พารามิเตอร์ |
---|
allowUnzipBaseline | boolean |
setApplySnapshot
public void setApplySnapshot (boolean applySnapshot)
พารามิเตอร์ |
---|
applySnapshot | boolean |
ตั้งค่าคอนฟิก
public void setConfiguration (IConfiguration configuration)
แทรก IConfiguration
ที่ใช้งานอยู่
พารามิเตอร์ |
---|
configuration | IConfiguration |
public void setUp (TestInformation testInfo)
พารามิเตอร์ |
---|
testInfo | TestInformation |
public void tearDown (TestInformation testInfo,
Throwable e)
พารามิเตอร์ |
---|
testInfo | TestInformation |
e | Throwable |
วิธีการที่ได้รับการป้องกัน
ตรวจสอบDeviceProductType
protected void checkDeviceProductType (ITestDevice device,
IDeviceBuildInfo deviceBuild)
ตรวจสอบได้ก่อนที่จะกะพริบเพื่อให้แน่ใจว่าอุปกรณ์เป็นไปตามที่คาดไว้เมื่อเปรียบเทียบกับข้อมูลบิวด์
รับอุปกรณ์บูตรอเวลา
protected long getDeviceBootWaitTime ()
รับเวลารอการบูตอุปกรณ์
getHostOptions
protected IHostOptions getHostOptions ()
รับอินสแตนซ์ IHostOptions
เพื่อใช้งาน
เปิดเผยสำหรับการทดสอบหน่วย
รายงาน FlashMetrics
protected void reportFlashMetrics (String branch,
String buildFlavor,
String buildId,
String serial,
long queueTime,
long flashingTime,
CommandStatus flashingStatus)
รายงานข้อมูลเวลากะพริบของอุปกรณ์ไปยังแบ็กเอนด์เมตริก
พารามิเตอร์ |
---|
branch | String : สาขาที่กำเนิดอุปกรณ์ |
buildFlavor | String : รสชาติบิลด์ของบิลด์อุปกรณ์ |
buildId | String : หมายเลขบิลด์ของบิลด์อุปกรณ์ |
serial | String : หมายเลขซีเรียลของอุปกรณ์ |
queueTime | long : เวลาที่ใช้ในการรอขีดจำกัดแบบกะพริบเพื่อให้พร้อมใช้งาน |
flashingTime | long : เวลาที่ใช้ในไฟล์ zip รูปภาพของอุปกรณ์กระพริบ |
flashingStatus | CommandStatus : สถานะการดำเนินการของคำสั่งที่กระพริบ |
setSkipPostFlashBuildIdCheck
protected void setSkipPostFlashBuildIdCheck (boolean skipPostFlashBuildIdCheck)
พารามิเตอร์ |
---|
skipPostFlashBuildIdCheck | boolean |
setUseIncreationalFlashing
protected void setUseIncrementalFlashing (boolean incrementalFlashing)
พารามิเตอร์ |
---|
incrementalFlashing | boolean |