public class SensorLoggerSession extends Object
Constructor and Description |
---|
SensorLoggerSession(long startTimestampMillis,
long startSystemTimeNanos) |
Modifier and Type | Method and Description |
---|---|
void |
addMotionEvent(MotionEvent motionEvent) |
void |
addPhoneEvent(int eventType,
long systemTimeNanos) |
void |
addSensorEvent(SensorEvent eventOrig,
long systemTimeNanos) |
void |
end(long endTimestampMillis,
int result) |
int |
getResult() |
long |
getStartTimestampMillis() |
void |
setTouchArea(int width,
int height) |
void |
setType(int type) |
Session |
toProto() |
String |
toString()
Returns a string representation of the object.
|
public SensorLoggerSession(long startTimestampMillis, long startSystemTimeNanos)
public void setType(int type)
public void end(long endTimestampMillis, int result)
public void addMotionEvent(MotionEvent motionEvent)
public void addSensorEvent(SensorEvent eventOrig, long systemTimeNanos)
public void addPhoneEvent(int eventType, long systemTimeNanos)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public Session toProto()
public void setTouchArea(int width, int height)
public int getResult()
public long getStartTimestampMillis()