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 yerleştirilmiş sınıflar

class TombstoneUtils.Config

 

class TombstoneUtils.Signals

 

Herkese açık kurucular

TombstoneUtils()

Herkese açık 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 mezar taşının, belirli bir yapılandırmaya karşı güvenlikle ilgili olup olmadığını belirler.

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

Herkese açık kurucular

TombstoneUtils

public TombstoneUtils ()

Herkese açık yöntemler

assertNoSecurityCrashes

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

İlerlemeler
Optional<TombstoneProtos.Thread>

getProcessFilename

public static Optional<String> getProcessFilename (TombstoneProtos.Tombstone tombstone)

İşlemin dosya adını döndürür. Ör. "/system/bin/mediaserver" "mediaserver" değerini döndürür.

Parametreler
tombstone TombstoneProtos.Tombstone

İlerlemeler
Optional<String>

getSecurityCrashes

public static List<TombstoneProtos.Tombstone> getSecurityCrashes (List<TombstoneProtos.Tombstone> tombstones, 
                TombstoneUtils.Config config)

Parametreler
tombstones List: Kontrol edilecek yer işaretlerinin listesi

config TombstoneUtils.Config: kilitlenme algılama yapılandırma nesnesi

İlerlemeler
List<TombstoneProtos.Tombstone> Güvenlikle ilgili işaret taşlarının listesi

isSecurityCrash

public static boolean isSecurityCrash (TombstoneProtos.Tombstone tombstone, 
                TombstoneUtils.Config config)

Bir mezar taşının, belirli bir yapılandırmaya karşı güvenlikle ilgili olup olmadığını belirler.

Parametreler
tombstone TombstoneProtos.Tombstone: Kontrol edilecek tombstone

config TombstoneUtils.Config: kilitlenme algılama yapılandırma nesnesi

İlerlemeler
boolean Mezar taşı güvenlikle ilgiliyse

withAssertNoSecurityCrashes

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

Parametreler
device ITestDevice

config TombstoneUtils.Config

İlerlemeler
AutoCloseable

Atışlar
DeviceNotAvailableException