ตั้งแต่ปี 2026 เป็นต้นไป เราจะเผยแพร่ซอร์สโค้ดไปยัง AOSP ในไตรมาสที่ 2 และ 4 เพื่อให้สอดคล้องกับโมเดลการพัฒนาแบบ Trunk Stable และรับประกันความเสถียรของแพลตฟอร์มสำหรับระบบนิเวศ หากต้องการสร้างและมีส่วนร่วมใน AOSP ให้ใช้ android-latest-release android-latest-release สาขา Manifest จะอ้างอิงถึงรุ่นล่าสุดที่พุชไปยัง AOSP เสมอ ดูข้อมูลเพิ่มเติมได้ที่การเปลี่ยนแปลงใน AOSP
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
PushFilePreparer
public
class
PushFilePreparer
extends BaseTargetPreparer
implements
IAbiReceiver,
IDiscoverDependencies,
IInvocationContextReceiver
ITargetPreparer ที่พยายามส่งไฟล์จำนวนเท่าใดก็ได้จากเส้นทางโฮสต์ไปยังเส้นทางอุปกรณ์
ควรดำเนินการ *หลังจาก* แฟลชบิลด์ใหม่และ *หลังจาก* เรียกใช้ DeviceSetup (หากเปิดใช้)
สรุป
เครื่องมือสร้างสาธารณะ
PushFilePreparer
public PushFilePreparer ()
เมธอดสาธารณะ
getAbi
public IAbi getAbi ()
getPushSpecs
public final Map<String, File> getPushSpecs (ITestDevice device)
สร้างรายการไฟล์ที่จะพุช
| พารามิเตอร์ |
device |
ITestDevice |
| การคืนสินค้า |
Map<String, File> |
|
isCleanUpEnabled
public boolean isCleanUpEnabled ()
reportDependencies
public Set<String> reportDependencies ()
resolveRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo,
String fileName)
แก้ไขเส้นทางไฟล์ที่เกี่ยวข้องผ่าน IBuildInfo และไดเรกทอรีกรณีทดสอบ
| พารามิเตอร์ |
buildInfo |
IBuildInfo: ข้อมูลอาร์ติแฟกต์ของบิลด์ |
fileName |
String: เส้นทางไฟล์แบบสัมพัทธ์ที่จะแก้ไข |
| การคืนสินค้า |
File |
ไฟล์จากไดเรกทอรีข้อมูลบิลด์หรือกรอบการทดสอบ |
setAbi
public void setAbi (IAbi abi)
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
| พารามิเตอร์ |
invocationContext |
IInvocationContext |
public void setUp (TestInformation testInfo)
| พารามิเตอร์ |
testInfo |
TestInformation |
shouldAbortOnFailure
public boolean shouldAbortOnFailure ()
เลือกว่าจะยกเลิกเมื่อการพุชล้มเหลวหรือไม่
shouldRemountSystem
public boolean shouldRemountSystem ()
shouldRemountVendor
public boolean shouldRemountVendor ()
public void tearDown (TestInformation testInfo,
Throwable e)
| พารามิเตอร์ |
testInfo |
TestInformation |
e |
Throwable |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2026-06-22 UTC
[null,null,["อัปเดตล่าสุด 2026-06-22 UTC"],[],[]]