DeviceLaunchControlProvider
public
class
DeviceLaunchControlProvider
extends LaunchControlProvider
implements
IDeviceBuildProvider
| java.lang.Object | ||
| ↳ | com.google.android.tradefed.build.LaunchControlProvider | |
| ↳ | com.google.android.tradefed.build.DeviceLaunchControlProvider | |
A LaunchControlProvider สำหรับ IDeviceBuildInfo
สรุป
เครื่องมือสร้างสาธารณะ | |
|---|---|
DeviceLaunchControlProvider()
|
|
เมธอดสาธารณะ | |
|---|---|
void
|
addDownloadKey(RemoteBuildInfo.BuildAttributeKey attrKey)
กำหนดให้ดาวน์โหลดไฟล์ที่มี |
void
|
cleanUp(IBuildInfo info)
ล้างไฟล์บิลด์ชั่วคราว |
static
Set<String>
|
discoverDependencies(IConfiguration config)
ค้นหาทรัพยากร Dependency ของการกำหนดค่า |
void
|
evaluateDeviceImageChanges(RemoteBuildInfo remoteBuild, IFileDownloader downloader, IDeviceBuildInfo localBuild)
ดาวน์โหลดชิ้นส่วนที่จำเป็นเพื่อประเมินว่ารูปภาพอุปกรณ์มีการเปลี่ยนแปลงหรือไม่ |
IBuildInfo
|
getBuild(ITestDevice device)
ดึงข้อมูลสำหรับบิลด์ภายใต้การทดสอบ |
ITestDevice
|
getDevice()
|
static
String
|
getPathForPattern(RemoteBuildInfo buildInfo, String pattern, boolean ignoreSubdir)
วิธีการช่วยเหลือในการรับเส้นทางระยะไกลสำหรับรูปภาพจาก RemoteBuildInfo |
static
String
|
getPathForPattern(RemoteBuildInfo buildInfo, String pattern)
วิธีการช่วยเหลือในการรับเส้นทางระยะไกลสำหรับรูปภาพจาก RemoteBuildInfo |
RemoteBuildInfo
|
getRemoteBuild()
รับการตอบกลับการควบคุมการเปิดตัวโดยไม่ต้องดาวน์โหลดไฟล์ทั้งหมด |
Set<String>
|
reportTestZipFileFilter()
|
void
|
setAltStaticDeviceInfoClass(String altStaticDeviceInfoClass)
|
void
|
setBootstrapBuildInfo(boolean bootstrapBuildInfo)
แสดงสำหรับการทดสอบ |
boolean
|
shouldAutopopulateFilters()
|
void
|
skipDownload(RemoteBuildInfo.BuildAttributeKey attrKey)
ข้ามการดาวน์โหลดไฟล์ที่มี |
วิธีการที่ได้รับการป้องกัน | |
|---|---|
void
|
convertBuildToSigned(RemoteBuildInfo remoteBuild)
แก้ไขพารามิเตอร์ใน |
IBuildInfo
|
downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
ดาวน์โหลดคีย์ไฟล์ที่จำเป็นตามที่กำหนดค่าไว้ใน --download-build-key จาก
remoteBuild และจัดเก็บไว้ใน |
void
|
resolveBuildInfoFromDevice(ITestDevice device)
รับรหัสบิลด์ รสชาติจากอุปกรณ์ และดึงข้อมูลสาขาจากเซิร์ฟเวอร์บิลด์ |
void
|
setDevice(ITestDevice device)
|
เครื่องมือสร้างสาธารณะ
DeviceLaunchControlProvider
public DeviceLaunchControlProvider ()
เมธอดสาธารณะ
addDownloadKey
public void addDownloadKey (RemoteBuildInfo.BuildAttributeKey attrKey)
กำหนดให้ดาวน์โหลดไฟล์ที่มี BuildAttributeKey ที่ระบุ โปรดทราบว่าการยกเว้น
จะมีความสำคัญมากกว่าการรวม ดังนั้นหากไฟล์อยู่ในรายการข้าม ระบบจะไม่ดาวน์โหลดไฟล์ดังกล่าว แม้ว่าจะมีการกล่าวถึงที่นี่ก็ตาม
| พารามิเตอร์ | |
|---|---|
attrKey |
RemoteBuildInfo.BuildAttributeKey |
discoverDependencies
public static Set<String> discoverDependencies (IConfiguration config)
ค้นหาทรัพยากร Dependency ของการกำหนดค่า
| พารามิเตอร์ | |
|---|---|
config |
IConfiguration |
| การคืนสินค้า | |
|---|---|
Set<String> |
|
evaluateDeviceImageChanges
public void evaluateDeviceImageChanges (RemoteBuildInfo remoteBuild, IFileDownloader downloader, IDeviceBuildInfo localBuild)
ดาวน์โหลดชิ้นส่วนที่จำเป็นเพื่อประเมินว่ารูปภาพอุปกรณ์มีการเปลี่ยนแปลงหรือไม่
| พารามิเตอร์ | |
|---|---|
remoteBuild |
RemoteBuildInfo |
downloader |
IFileDownloader |
localBuild |
IDeviceBuildInfo |
getBuild
public IBuildInfo getBuild (ITestDevice device)
ดึงข้อมูลสำหรับบิลด์ภายใต้การทดสอบ
| พารามิเตอร์ | |
|---|---|
device |
ITestDevice: ITestDevice ที่จัดสรรไว้สำหรับการทดสอบ |
| การคืนสินค้า | |
|---|---|
IBuildInfo |
IBuildInfo สำหรับบิลด์ที่อยู่ระหว่างการทดสอบหรือ null หากไม่มีบิลด์
พร้อมสำหรับการทดสอบ |
| ส่ง | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|
getPathForPattern
public static String getPathForPattern (RemoteBuildInfo buildInfo, String pattern, boolean ignoreSubdir)
วิธีการช่วยเหลือในการรับเส้นทางระยะไกลสำหรับรูปภาพจาก RemoteBuildInfo
| พารามิเตอร์ | |
|---|---|
buildInfo |
RemoteBuildInfo: RemoteBuildInfo |
pattern |
String: รูปแบบของเส้นทางระยะไกลสำหรับรูปภาพ |
ignoreSubdir |
boolean: หากเป็นจริง ให้ละเว้นไดเรกทอรีย่อยในรูปแบบ |
| การคืนสินค้า | |
|---|---|
String |
เส้นทางระยะไกล |
getPathForPattern
public static String getPathForPattern (RemoteBuildInfo buildInfo, String pattern)
วิธีการช่วยเหลือในการรับเส้นทางระยะไกลสำหรับรูปภาพจาก RemoteBuildInfo
| พารามิเตอร์ | |
|---|---|
buildInfo |
RemoteBuildInfo: RemoteBuildInfo |
pattern |
String: รูปแบบของเส้นทางระยะไกลสำหรับรูปภาพ |
| การคืนสินค้า | |
|---|---|
String |
เส้นทางระยะไกล |
getRemoteBuild
public RemoteBuildInfo getRemoteBuild ()
รับการตอบกลับการควบคุมการเปิดตัวโดยไม่ต้องดาวน์โหลดไฟล์ทั้งหมด
สร้างขึ้นเพื่อสาธารณะเพื่อให้ความเชี่ยวชาญนอกแพ็กเกจนี้ใช้ได้โดยตรง โดยปกติแล้วควรใช้ getBuild() แทน
| การคืนสินค้า | |
|---|---|
RemoteBuildInfo |
RemoteBuildInfo การตอบกลับจากการควบคุมการเปิดตัว |
| ส่ง | |
|---|---|
BuildRetrievalError |
|
reportTestZipFileFilter
public Set<String> reportTestZipFileFilter ()
| การคืนสินค้า | |
|---|---|
Set<String> |
|
setAltStaticDeviceInfoClass
public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)
| พารามิเตอร์ | |
|---|---|
altStaticDeviceInfoClass |
String |
setBootstrapBuildInfo
public void setBootstrapBuildInfo (boolean bootstrapBuildInfo)
แสดงสำหรับการทดสอบ
shouldAutopopulateFilters
public boolean shouldAutopopulateFilters ()
| การคืนสินค้า | |
|---|---|
boolean |
|
skipDownload
public void skipDownload (RemoteBuildInfo.BuildAttributeKey attrKey)
ข้ามการดาวน์โหลดไฟล์ที่มี BuildAttributeKey ที่ระบุ
| พารามิเตอร์ | |
|---|---|
attrKey |
RemoteBuildInfo.BuildAttributeKey |
วิธีการที่ได้รับการป้องกัน
convertBuildToSigned
protected void convertBuildToSigned (RemoteBuildInfo remoteBuild)
แก้ไขพารามิเตอร์ใน RemoteBuildInfo นี้เพื่ออธิบายบิลด์ที่ลงนาม
| พารามิเตอร์ | |
|---|---|
remoteBuild |
RemoteBuildInfo: RemoteBuildInfo ที่จะแก้ไข |
| ส่ง | |
|---|---|
BuildRetrievalError |
|
downloadBuildFiles
protected IBuildInfo downloadBuildFiles (RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
ดาวน์โหลดคีย์ไฟล์ที่จำเป็นตามที่กำหนดค่าไว้ใน --download-build-key จาก
remoteBuild และจัดเก็บไว้ใน IBuildInfo
| พารามิเตอร์ | |
|---|---|
remoteBuild |
RemoteBuildInfo: การตอบกลับของเซิร์ฟเวอร์ควบคุมการเปิดตัว |
testTargetName |
String: ชื่อเป้าหมายการทดสอบ |
buildName |
String: ชื่อของบิลด์ตามที่กำหนดโดยการควบคุมการเปิดตัว |
downloader |
IFileDownloader: IFileDownloader ที่ใช้ในการดาวน์โหลดไฟล์บิลด์ |
| การคืนสินค้า | |
|---|---|
IBuildInfo |
IBuildInfo ที่มีไฟล์บิลด์เวอร์ชันในพื้นที่ |
| ส่ง | |
|---|---|
BuildRetrievalError |
|
resolveBuildInfoFromDevice
protected void resolveBuildInfoFromDevice (ITestDevice device)
รับรหัสบิลด์ รสชาติจากอุปกรณ์ และดึงข้อมูลสาขาจากเซิร์ฟเวอร์บิลด์
| ส่ง | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|