ตั้งแต่ปี 2026 เป็นต้นไป เราจะเผยแพร่ซอร์สโค้ดไปยัง AOSP ในไตรมาสที่ 2 และ 4 เพื่อให้สอดคล้องกับโมเดลการพัฒนาที่เสถียรของ Trunk และรับประกันความเสถียรของแพลตฟอร์มสำหรับระบบนิเวศ เราขอแนะนำให้ใช้ android-latest-release แทน aosp-main ในการสร้างและมีส่วนร่วมใน AOSP 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 getPushSpecs (ITestDevice device)
สร้างรายการไฟล์ที่จะพุช
| พารามิเตอร์ |
device |
ITestDevice |
isCleanUpEnabled
public boolean isCleanUpEnabled ()
reportDependencies
public reportDependencies ()
resolveRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo,
String fileName)
แก้ปัญหาเส้นทางไฟล์แบบสัมพัทธ์ผ่านไดเรกทอรี IBuildInfo และไดเรกทอรี Test Case
| พารามิเตอร์ |
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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[]]