透過集合功能整理內容
你可以依據偏好儲存及分類內容。
頓斯頓公共事業
public
class
TombstoneUtils
extends Object
java.lang.Object
|
↳ |
com.android.sts.common.util.TombstoneUtils
|
包含用於當機剖析的輔助函式和共用常數。
摘要
公用建構函式
頓斯頓公共事業
public TombstoneUtils ()
公用方法
assertNoSecurityCrash
public static void assertNoSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones,
TombstoneUtils.Config config)
參數 |
tombstones |
List |
config |
TombstoneUtils.Config |
getMainThread
public static Optional<TombstoneProtos.Thread> getMainThread (TombstoneProtos.Tombstone tombstone)
參數 |
tombstone |
TombstoneProtos.Tombstone |
傳回 |
Optional<TombstoneProtos.Thread> |
|
getProcessFilename
public static Optional<String> getProcessFilename (TombstoneProtos.Tombstone tombstone)
會傳回處理程序的檔案名稱。例如:「/system/bin/mediaserver」傳回「mediaserver」
參數 |
tombstone |
TombstoneProtos.Tombstone |
getSecurityCrashes
public static List<TombstoneProtos.Tombstone> getSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones,
TombstoneUtils.Config config)
參數 |
tombstones |
List :要檢查的空值清單 |
config |
TombstoneUtils.Config :當機偵測設定物件 |
傳回 |
List<TombstoneProtos.Tombstone> |
一系列與安全性相關的空值標記
|
isSecurityCrash
public static boolean isSecurityCrash (TombstoneProtos.Tombstone tombstone,
TombstoneUtils.Config config)
判斷空值標記是否可能與指定設定有關。
參數 |
tombstone |
TombstoneProtos.Tombstone :要檢查的墓碑 |
config |
TombstoneUtils.Config :當機偵測設定物件 |
withAssertNoSecurityCrash
public static AutoCloseable withAssertNoSecurityCrashes (ITestDevice device,
TombstoneUtils.Config config)
參數 |
device |
ITestDevice |
config |
TombstoneUtils.Config |
擲回 |
DeviceNotAvailableException |
|
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2024-08-23 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u4e0a\u6b21\u66f4\u65b0\u6642\u9593\uff1a2024-08-23 (\u4e16\u754c\u6a19\u6e96\u6642\u9593)\u3002"}
[[["容易理解","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"]],["上次更新時間:2024-08-23 (世界標準時間)。"]]