TombstoneUtils
public
class
TombstoneUtils
extends Object
java.lang.Object
|
↳ |
com.android.sts.common.util.TombstoneUtils
|
Contains helper functions and shared constants for crash parsing.
Summary
Nested classes |
class |
TombstoneUtils.Config
|
class |
TombstoneUtils.Signals
|
Public constructors
TombstoneUtils
public TombstoneUtils ()
Public methods
assertNoSecurityCrashes
public static void assertNoSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones,
TombstoneUtils.Config config)
Parameters |
tombstones |
List |
config |
TombstoneUtils.Config |
getMainThread
public static Optional<TombstoneProtos.Thread> getMainThread (TombstoneProtos.Tombstone tombstone)
Parameters |
tombstone |
TombstoneProtos.Tombstone |
Returns |
Optional<TombstoneProtos.Thread> |
|
getProcessFilename
public static Optional<String> getProcessFilename (TombstoneProtos.Tombstone tombstone)
returns the filename of the process. e.g. "/system/bin/mediaserver" returns "mediaserver"
Parameters |
tombstone |
TombstoneProtos.Tombstone |
getSecurityCrashes
public static List<TombstoneProtos.Tombstone> getSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones,
TombstoneUtils.Config config)
Parameters |
tombstones |
List : a list of tombstones to check |
config |
TombstoneUtils.Config : crash detection configuration object |
Returns |
List<TombstoneProtos.Tombstone> |
a list of tombstones that are security-related
|
isSecurityCrash
public static boolean isSecurityCrash (TombstoneProtos.Tombstone tombstone,
TombstoneUtils.Config config)
Determines if a tombstone is likely to be security-related against the given configuration.
Parameters |
tombstone |
TombstoneProtos.Tombstone : the tombstone to check |
config |
TombstoneUtils.Config : crash detection configuration object |
Returns |
boolean |
if the tombstone is security-related
|
withAssertNoSecurityCrashes
public static AutoCloseable withAssertNoSecurityCrashes (ITestDevice device,
TombstoneUtils.Config config)
Parameters |
device |
ITestDevice |
config |
TombstoneUtils.Config |
Throws |
DeviceNotAvailableException |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-11-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2022-11-18 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-18 UTC."]]