| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private int | |
| private static final int | EVENT_BUFFER_SIZE
EVENT_BUFFER_SIZE controls the maximum number of event lines that can be processed per device in one pulse. |
| private final LinuxEventBuffer. | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | |
| pack-priv short | |
| pack-priv synchronized String | Returns: a string describing the eventReturns a string describing the current event. |
| private synchronized String | |
| pack-priv int | |
| pack-priv synchronized short | Returns: the type of the current event lineReturns the type of the current event line. |
| pack-priv synchronized int | Returns: the value of the current event lineReturns the value of the current event line. |
| pack-priv synchronized boolean | |
| pack-priv synchronized boolean | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized boolean | Returns: true if the event was "SYN SYN_REPORT", false otherwiseA ByteBuffer containing the event to be added. event)Adds a raw Linux event to the buffer. |
| pack-priv synchronized void | reset()
Returns iteration to the event set previously in a call to mark(), or to the beginning of the buffer if no call to mark() was made. |
| pack-priv synchronized void |
| bb | back to summary |
|---|---|
| private final ByteBuffer bb | |
| currentPosition | back to summary |
|---|---|
| private int currentPosition | |
| EVENT_BUFFER_SIZE | back to summary |
|---|---|
| private static final int EVENT_BUFFER_SIZE EVENT_BUFFER_SIZE controls the maximum number of event lines that can be processed per device in one pulse. This value must be greater than the number of lines in the largest event including the terminating EV_SYN SYN_REPORT. However it should not be too large or a flood of events will prevent rendering from happening until the buffer is full. | |
| eventStruct | back to summary |
|---|---|
| private final LinuxEventBuffer. | |
| mark | back to summary |
|---|---|
| private int mark | |
| positionOfLastSync | back to summary |
|---|---|
| private int positionOfLastSync | |
| LinuxEventBuffer | back to summary |
|---|---|
| pack-priv LinuxEventBuffer(int osArchBits) | |
| compact | back to summary |
|---|---|
| pack-priv synchronized void compact() | |
| getEventCode | back to summary |
|---|---|
| pack-priv short getEventCode() Returns the code of the current event line. Call from the application thread.
| |
| getEventDescription | back to summary |
|---|---|
| pack-priv synchronized String getEventDescription() Returns a string describing the current event. Call from the application thread.
| |
| getEventDescription | back to summary |
|---|---|
| private synchronized String getEventDescription(int position) | |
| getEventSize | back to summary |
|---|---|
| pack-priv int getEventSize() | |
| getEventType | back to summary |
|---|---|
| pack-priv synchronized short getEventType() Returns the type of the current event line. Call from the application thread.
| |
| getEventValue | back to summary |
|---|---|
| pack-priv synchronized int getEventValue() Returns the value of the current event line. Call from the application thread.
| |
| hasData | back to summary |
|---|---|
| pack-priv synchronized boolean hasData() Returns true iff another event line is available. Call on the application thread. | |
| hasNextEvent | back to summary |
|---|---|
| pack-priv synchronized boolean hasNextEvent() Returns true iff another event line is available AND it is part of a complete event. Call from the application thread. | |
| mark | back to summary |
|---|---|
| pack-priv synchronized void mark() Sets a mark on the buffer. A future call to reset() will return to this point. | |
| nextEvent | back to summary |
|---|---|
| pack-priv synchronized void nextEvent() Advances to the next event line. Call from the application thread. | |
| put | back to summary |
|---|---|
| pack-priv synchronized boolean put(ByteBuffer event) throws InterruptedException Adds a raw Linux event to the buffer. Blocks if the buffer is full. Checks whether this is a SYN SYN_REPORT event terminator.
| |
| reset | back to summary |
|---|---|
| pack-priv synchronized void reset() Returns iteration to the event set previously in a call to mark(), or to the beginning of the buffer if no call to mark() was made. | |
| startIteration | back to summary |
|---|---|
| pack-priv synchronized void startIteration() | |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public int |
| getCodeIndex | back to summary |
|---|---|
| public int getCodeIndex() | |
| getSize | back to summary |
|---|---|
| public int getSize() | |
| getTypeIndex | back to summary |
|---|---|
| public int getTypeIndex() | |
| getValueIndex | back to summary |
|---|---|
| public int getValueIndex() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public int |
| EventStruct32Bit | back to summary |
|---|---|
| pack-priv EventStruct32Bit() | |
| getCodeIndex | back to summary |
|---|---|
| public int getCodeIndex() Implements com.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Implements com.
| |
| getTypeIndex | back to summary |
|---|---|
| public int getTypeIndex() Implements com.
| |
| getValueIndex | back to summary |
|---|---|
| public int getValueIndex() Implements com.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public int |
| EventStruct64Bit | back to summary |
|---|---|
| pack-priv EventStruct64Bit() | |
| getCodeIndex | back to summary |
|---|---|
| public int getCodeIndex() Implements com.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Implements com.
| |
| getTypeIndex | back to summary |
|---|---|
| public int getTypeIndex() Implements com.
| |
| getValueIndex | back to summary |
|---|---|
| public int getValueIndex() Implements com.
| |