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 ()

Genel yöntemler

static void assertNoSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones, TombstoneUtils.Config config)
static Optional<TombstoneProtos.Thread> getMainThread (TombstoneProtos.Tombstone tombstone)
static Optional<String> getProcessFilename (TombstoneProtos.Tombstone tombstone)

işlemin dosya adını döndürür.

static List<TombstoneProtos.Tombstone> getSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones, TombstoneUtils.Config config)
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.

static AutoCloseable withAssertNoSecurityCrashes (ITestDevice device, TombstoneUtils.Config config)

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

İadeler
Optional<String>

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

İadeler
AutoCloseable

Atar
DeviceNotAvailableException