APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv Class EPDSystem

extends Object
Class Inheritance
Imports
com.sun.glass.utils.NativeLibLoader, java.nio.ByteOrder, .IntBuffer, java.text.MessageFormat

A Java-language interface to the device API of the Electrophoretic Display Controller (EPDC) frame buffer driver. EPDSystem is a singleton. Its instance is obtained by calling the EPDSystem#getEPDSystem method. This class also extends LinuxSystem.FbVarScreenInfo to provide all of the fields in fb_var_screeninfo, defined in linux/fb.h.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
EPDSystem.FbVarScreenInfo

Wraps the entire C structure fb_var_screeninfo, defined in linux/fb.h.

pack-priv static class
EPDSystem.IntStructure

A structure for passing the pointer to an integer in an IOCTL call.

pack-priv static class
EPDSystem.MxcfbUpdateData

Wraps the C structure mxcfb_update_data, defined in mxcfb.h.

pack-priv static class
EPDSystem.MxcfbWaveformModes

Wraps the C structure mxcfb_waveform_modes, defined in mxcfb.h.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
AUTO_UPDATE_MODE_AUTOMATIC_MODE

Automatic mode, in which updates are generated automatically by the driver when it detects that pages in a frame buffer memory region have been modified.

pack-priv static final int
AUTO_UPDATE_MODE_REGION_MODE

Region update mode, in which updates to the display must be submitted with an IOCTL call to MXCFB_SEND_UPDATE.

pack-priv static final int
EPDC_FLAG_ENABLE_INVERSION

An update flag to enable inversion of all pixels in the updated region.

pack-priv static final int
EPDC_FLAG_FORCE_MONOCHROME

An update flag to enable black-and-white posterization of all pixels in the updated region.

pack-priv static final int
EPDC_FLAG_USE_DITHERING_Y1

An update flag to enable dithering of an 8-bit grayscale frame buffer to 1-bit black and white, if supported by the driver or hardware.

pack-priv static final int
EPDC_FLAG_USE_DITHERING_Y4

An update flag to enable dithering of an 8-bit grayscale frame buffer to 4-bit grayscale, if supported by the driver or hardware.

pack-priv static final int
FB_ACTIVATE_FORCE

The value for FbVarScreenInfo#setActivate to ensure that the EPDC driver receives the initialization request.

pack-priv static final int
FB_POWERDOWN_DISABLE

The power-down delay value to disable the powering down of the EPDC and display power supplies.

pack-priv static final int
FB_ROTATE_CCW

The value for FbVarScreenInfo#setRotate to set the frame buffer rotation to 90-degrees counter-clockwise (upright portrait mode).

pack-priv static final int
FB_ROTATE_CW

The value for FbVarScreenInfo#setRotate to set the frame buffer rotation to 90-degrees clockwise (upside-down portrait mode).

pack-priv static final int
FB_ROTATE_UD

The value for FbVarScreenInfo#setRotate to set the frame buffer rotation to 180-degrees upside-down (upside-down landscape mode).

pack-priv static final int
FB_ROTATE_UR

The value for FbVarScreenInfo#setRotate to set the frame buffer rotation to un-rotated (upright landscape mode).

pack-priv static final int
GRAYSCALE_8BIT

The value for FbVarScreenInfo#setGrayscale to set the frame buffer to an 8-bit grayscale pixel format.

pack-priv static final int
GRAYSCALE_8BIT_INVERTED

The value for FbVarScreenInfo#setGrayscale to set the frame buffer to an inverted 8-bit grayscale pixel format.

private static final EPDSystem
pack-priv final int
MXCFB_GET_PWRDOWN_DELAY

The IOCTL request code to get the current power-down delay value from the driver.

pack-priv final int
MXCFB_SEND_UPDATE

The IOCTL request code to update a region of the frame buffer to the display.

pack-priv final int
MXCFB_SET_AUTO_UPDATE_MODE

The IOCTL request code to select between automatic and region update mode.

pack-priv final int
MXCFB_SET_PWRDOWN_DELAY

The IOCTL request code to set the delay between the completion of all updates in the driver and when the driver should power down the EPDC and display power supplies.

pack-priv final int
MXCFB_SET_TEMPERATURE

The IOCTL request code to set the temperature used by the EPDC driver in subsequent panel updates.

pack-priv final int
MXCFB_SET_UPDATE_SCHEME

The IOCTL request code to select a scheme for the flow of updates within the driver.

pack-priv final int
MXCFB_SET_WAVEFORM_MODES

The IOCTL request code to define a mapping for common waveform modes.

pack-priv final int
MXCFB_WAIT_FOR_UPDATE_COMPLETE

The IOCTL request code to block and wait for a previous update to complete.

private final LinuxSystem
pack-priv static final int
TEMP_USE_AMBIENT

The temperature value that requests the driver to use the ambient temperature of the device.

pack-priv static final int
UPDATE_MODE_FULL

Full update mode, which applies the waveform to all pixels in a given region.

pack-priv static final int
UPDATE_MODE_PARTIAL

Partial update mode, which applies the waveform to only the pixels that change in a given region.

pack-priv static final int
UPDATE_SCHEME_QUEUE

Queue update scheme, which uses a work queue to handle the processing of updates asynchronously.

pack-priv static final int
UPDATE_SCHEME_QUEUE_AND_MERGE

Queue and Merge update scheme, which adds a merging step to the Queue update scheme.

pack-priv static final int
UPDATE_SCHEME_SNAPSHOT

Snapshot update scheme, which processes the contents of the frame buffer immediately and stores the update in a memory buffer internal to the driver.

pack-priv static final int
WAVEFORM_MODE_A2

Animation waveform (0x0 or 0xF to 0x0 or 0xF in ~120 ms).

pack-priv static final int
WAVEFORM_MODE_AUTO

Auto waveform mode, which requests the driver to select the actual waveform mode automatically based on the contents of the updated region.

pack-priv static final int
WAVEFORM_MODE_DU

Direct update waveform (0x0...0xF to 0x0 or 0xF in ~260 ms).

pack-priv static final int
WAVEFORM_MODE_GC16

Gray 16-level waveform (0x0...0xF to 0x0...0xF in ~760 ms).

pack-priv static final int
WAVEFORM_MODE_GC4

Gray 4-level waveform (0x0...0xF to 0x0, 0x5, 0xA, or 0xF in ~500 ms).

pack-priv static final int
WAVEFORM_MODE_INIT

Initialization waveform (0x0...0xF to 0xF in ~4000 ms).

Constructor Summary

AccessConstructor and Description
private
EPDSystem()

Creates the single instance of EPDSystem.

Method Summary

Modifier and TypeMethod and Description
pack-priv static EPDSystem

Returns:

the EPDSystem instance
getEPDSystem
()

Obtains the single instance of EPDSystem.

pack-priv native int

Returns:

0 if successful; otherwise -1 with errno set appropriately
ioctl
(long
an open file descriptor
fd
,
int
a device-dependent request code
request
,
int
the integer value
value
)

Calls the ioctl system function, passing a write integer parameter.

pack-priv void
loadLibrary()

Loads the native libraries required to make system calls using this EPDSystem instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait