TombstoneUtils
public class TombstoneUtils
extends Object
java.lang.Object |
↳ | com.android.sts.common.util.TombstoneUtils |
Kilitlenme ayrıştırması için yardımcı işlevler ve paylaşılan sabitler içerir.
Özet
İç içe sınıflar |
---|
class | TombstoneUtils.Config |
class | TombstoneUtils.Signals |
kamu inşaatçılar
TombstoneUtils
public TombstoneUtils ()
Genel yöntemler
iddiaNoSecurityCrashes
public static void assertNoSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones,
TombstoneUtils.Config config)
parametreler |
---|
tombstones | List |
config | TombstoneUtils.Config |
getMainThread
public static Optional<TombstoneProtos.Thread> getMainThread (TombstoneProtos.Tombstone tombstone)
parametreler |
---|
tombstone | TombstoneProtos.Tombstone |
İadeler |
---|
Optional<TombstoneProtos.Thread> | |
getProcessFilename
public static Optional<String> getProcessFilename (TombstoneProtos.Tombstone tombstone)
işlemin dosya adını döndürür. örneğin "/system/bin/mediaserver", "mediaserver" değerini döndürür
parametreler |
---|
tombstone | TombstoneProtos.Tombstone |
getSecurityCrashes
public static List<TombstoneProtos.Tombstone> getSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones,
TombstoneUtils.Config config)
parametreler |
---|
tombstones | List : kontrol edilecek mezar taşlarının listesi |
config | TombstoneUtils.Config : kilitlenme algılama yapılandırma nesnesi |
İadeler |
---|
List<TombstoneProtos.Tombstone> | güvenlikle ilgili mezar taşlarının bir listesi |
isSecurityCrash
public static boolean isSecurityCrash (TombstoneProtos.Tombstone tombstone,
TombstoneUtils.Config config)
Bir kaldırıldı olarak işaretlemenin, verilen yapılandırmaya göre güvenlikle ilgili olup olmayacağını belirler.
parametreler |
---|
tombstone | TombstoneProtos.Tombstone : kontrol edilecek mezar taşı |
config | TombstoneUtils.Config : kilitlenme algılama yapılandırma nesnesi |
İadeler |
---|
boolean | mezar taşı güvenlikle ilgiliyse |
withAssertNoSecurityÇökmeler
public static AutoCloseable withAssertNoSecurityCrashes (ITestDevice device,
TombstoneUtils.Config config)
parametreler |
---|
device | ITestDevice |
config | TombstoneUtils.Config |
Atar |
---|
DeviceNotAvailableException | |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2022-11-18 UTC.
[]
[]