FileProtoResultReporter
  public
  
  
  
  class
  FileProtoResultReporter
  
  
  
  
    extends ProtoResultReporter
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
| ↳ | com.android.tradefed.result.proto.FileProtoResultReporter | |
Pelapor proto yang membuang TestRecord ke dalam file.
Ringkasan
Kolom | |
|---|---|
    public
    static
    final
    String | 
    
      PERIODIC_PROTO_WRITING_OPTION
      
  | 
  
    public
    static
    final
    String | 
    
      PROTO_OUTPUT_FILE
      
  | 
  
    public
    static
    final
    String | 
    
      USE_DELIMITED_API
      
  | 
  
Konstruktor publik | |
|---|---|
      
      FileProtoResultReporter()
      
      
     | 
  |
Metode publik | |
|---|---|
        
        
        
        
        
        File
     | 
  
    
      
      getOutputFile()
      
      
     | 
  
        
        
        
        
        
        boolean
     | 
  
    
      
      isPeriodicWriting()
      
      
        Apakah penulisan berkala diaktifkan atau tidak.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      processFinalProto(TestRecordProto.TestRecord finalRecord)
      
      
        Penanganan proto akhir dengan semua hasil.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)
      
      
        Penanganan proto data pengujian pemanggilan parsial setelah   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)
      
      
        Penanganan proto data modul yang telah selesai setelah   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
      
      
        Penanganan proto data operasi yang telah selesai setelah   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      setDelimitedOutput(boolean delimitedOutput)
      
      
     | 
  
        
        
        
        
        
        void
     | 
  
    
      
      setOutputFile(File outputFile)
      
      
     | 
  
        
        
        
        
        
        void
     | 
  
    
      
      setPeriodicWriting(boolean enabled)
      
      
        Mengaktifkan penulisan setiap modul secara terpisah ke file.  | 
  
Metode yang dilindungi | |
|---|---|
        
        
        
        
        
        TestRecordProto.ChildReference
     | 
  
    
      
      createModuleChildReference(TestRecordProto.TestRecord record)
      
      
        Membuat referensi turunan untuk modul.  | 
  
Kolom
PERIODIC_PROTO_WRITING_OPTION
public static final String PERIODIC_PROTO_WRITING_OPTION
PROTO_OUTPUT_FILE
public static final String PROTO_OUTPUT_FILE
USE_DELIMITED_API
public static final String USE_DELIMITED_API
Konstruktor publik
FileProtoResultReporter
public FileProtoResultReporter ()
Metode publik
getOutputFile
public File getOutputFile ()
| Hasil | |
|---|---|
File | 
        |
isPeriodicWriting
public boolean isPeriodicWriting ()
Apakah penulisan berkala diaktifkan atau tidak.
| Hasil | |
|---|---|
boolean | 
        |
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
Penanganan proto akhir dengan semua hasil.
| Parameter | |
|---|---|
finalRecord | 
        
          TestRecordProto.TestRecord: Proto yang telah selesai dengan semua hasil pemanggilan. | 
      
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, 
                IInvocationContext invocationContext)Penanganan proto data pengujian pemanggilan parsial setelah invocationStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.
| Parameter | |
|---|---|
invocationStartRecord | 
        
          TestRecordProto.TestRecord: Proto sebagian yang diisi setelah invocationStart. | 
      
invocationContext | 
        
          IInvocationContext: Pemanggilan IInvocationContext. | 
      
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
Penanganan proto data modul yang telah selesai setelah testModuleEnded() terjadi.
| Parameter | |
|---|---|
moduleRecord | 
        
          TestRecordProto.TestRecord: Proto yang telah selesai yang mewakili modul. | 
      
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord, 
                boolean moduleInProgress)Penanganan proto data operasi yang telah selesai setelah ERROR(/#testRunEnded(long,HashMap))
 terjadi.
| Parameter | |
|---|---|
runRecord | 
        
          TestRecordProto.TestRecord: Proto yang telah selesai yang mewakili operasi. | 
      
moduleInProgress | 
        
          boolean: apakah modul sedang berlangsung atau tidak. | 
      
setDelimitedOutput
public void setDelimitedOutput (boolean delimitedOutput)
| Parameter | |
|---|---|
delimitedOutput | 
        
          boolean  | 
      
setOutputFile
public void setOutputFile (File outputFile)
| Parameter | |
|---|---|
outputFile | 
        
          File  | 
      
setPeriodicWriting
public void setPeriodicWriting (boolean enabled)
Mengaktifkan penulisan setiap modul secara terpisah ke file.
| Parameter | |
|---|---|
enabled | 
        
          boolean  | 
      
Metode yang dilindungi
createModuleChildReference
protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)
Membuat referensi turunan untuk modul.
| Parameter | |
|---|---|
record | 
        
          TestRecordProto.TestRecord  | 
      
| Hasil | |
|---|---|
TestRecordProto.ChildReference | 
        |