ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
NativePocCrashAsserter
public
class
NativePocCrashAsserter
extends Object
implements
NativePocAsserter
java.lang.Object
|
↳ |
com.android.sts.common.NativePocCrashAsserter
|
สรุป
เมธอดสาธารณะ
assertNoCrash
public static NativePocAsserter assertNoCrash ()
แสดงผล NativePocAsserter ที่ตรวจสอบว่า Poc ไม่มีปัญหาข้อขัดข้องด้านความปลอดภัย
assertNoCrash
public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)
แสดงผล NativePocAsserter ที่ตรวจสอบว่าไม่พบข้อขัดข้องด้านความปลอดภัยตาม TombstoneUtils.Config ที่ระบุ
พารามิเตอร์ |
config |
TombstoneUtils.Config |
assertNoCrashIn
public static NativePocAsserter assertNoCrashIn (String... patterns)
แสดงผล NativePocAsserter ที่ตรวจสอบกระบวนการที่แสดงเพื่อหาข้อขัดข้องด้านความปลอดภัย
พารามิเตอร์ |
patterns |
String |
withAutoCloseable
public AutoCloseable withAutoCloseable (NativePoc nativePoc,
ITestDevice device)
เรียกใช้ก่อน PoC ทำงาน แสดงผล AutoCloseable ที่ปิดหลังจาก PoC เสร็จสิ้น
พารามิเตอร์ |
nativePoc |
NativePoc |
device |
ITestDevice |
คิกรีเทิร์น |
AutoCloseable |
|
การโยน |
DeviceNotAvailableException |
|
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-26 UTC
[null,null,["อัปเดตล่าสุด 2025-03-26 UTC"],[],[]]