com.android.ddmlib.log
Class EventLogParser

java.lang.Object
  extended by com.android.ddmlib.log.EventLogParser

public final class EventLogParser
extends Object

Parser for the "event" log.


Constructor Summary
EventLogParser()
           
 
Method Summary
 Map<Integer,EventValueDescription[]> getEventInfoMap()
           
 Map<Integer,String> getTagMap()
           
 boolean init(IDevice device)
          Inits the parser for a specific Device.
 boolean init(String filePath)
          Inits the parser with a specified event-log-tags file.
 boolean init(String[] tagFileContent)
          Inits the parser with the content of a tag file.
 EventContainer parse(LogReceiver.LogEntry entry)
           
 EventContainer parse(String textLogLine)
           
 void saveTags(String filePath)
          Recreates the event-log-tags at the specified file path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLogParser

public EventLogParser()
Method Detail

init

public boolean init(IDevice device)
Inits the parser for a specific Device.

This methods reads the event-log-tags located on the device to find out what tags are being written to the event log and what their format is.

Parameters:
device - The device.
Returns:
true if success, false if failure or cancellation.

init

public boolean init(String[] tagFileContent)
Inits the parser with the content of a tag file.

Parameters:
tagFileContent - the lines of a tag file.
Returns:
true if success, false if failure.

init

public boolean init(String filePath)
Inits the parser with a specified event-log-tags file.

Parameters:
filePath -
Returns:
true if success, false if failure.

parse

public EventContainer parse(LogReceiver.LogEntry entry)

parse

public EventContainer parse(String textLogLine)

getTagMap

public Map<Integer,String> getTagMap()

getEventInfoMap

public Map<Integer,EventValueDescription[]> getEventInfoMap()

saveTags

public void saveTags(String filePath)
              throws IOException
Recreates the event-log-tags at the specified file path.

Parameters:
filePath - the file path to write the file.
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.