private AtomicInteger heartbeatCount;
private boolean isTerminated;
private boolean isSensorDaemonStarted;
+ private boolean isSdbDaemonStarted;
private boolean isRamdump;
private TimerTask heartbeatExecutor;
private Timer heartbeatTimer;
sendThread.start();
- int width = config.getArgInt( ArgsConstants.RESOLUTION_WIDTH );
- int height = config.getArgInt( ArgsConstants.RESOLUTION_HEIGHT );
- int scale = SkinUtil.getValidScale( config );
+ int width = config.getArgInt(ArgsConstants.RESOLUTION_WIDTH);
+ int height = config.getArgInt(ArgsConstants.RESOLUTION_HEIGHT);
+ int scale = SkinUtil.getValidScale(config);
// short rotation = config.getSkinPropertyShort( SkinPropertiesConstants.WINDOW_ROTATION,
// EmulatorConfig.DEFAULT_WINDOW_ROTATION );
// has to be portrait mode at first booting time
short rotation = EmulatorConfig.DEFAULT_WINDOW_ROTATION;
- StartData startData = new StartData(initialData, width, height, scale, rotation);
+ StartData startData =
+ new StartData(initialData, width, height, scale, rotation);
logger.info("StartData" + startData);
sendToQEMU(SendCommand.SEND_START, startData, false);
- } catch ( IOException e ) {
- logger.log( Level.SEVERE, e.getMessage(), e );
+ } catch (IOException e) {
+ logger.log(Level.SEVERE, e.getMessage(), e);
terminate();
return;
}
- boolean ignoreHeartbeat = config.getArgBoolean( ArgsConstants.TEST_HEART_BEAT_IGNORE );
+ boolean ignoreHeartbeat =
+ config.getArgBoolean(ArgsConstants.TEST_HEART_BEAT_IGNORE);
if (ignoreHeartbeat) {
logger.info("Ignore Skin heartbeat.");
}
case SENSOR_DAEMON_START: {
logger.info("received SENSOR_DAEMON_START from QEMU.");
+
synchronized (this) {
isSensorDaemonStarted = true;
}
break;
}
+ case SDB_DAEMON_START: {
+ logger.info("received SDB_DAEMON_START from QEMU.");
+
+ synchronized (this) {
+ isSdbDaemonStarted = true;
+ }
+ break;
+ }
case DRAW_FRAME: {
//logger.info("received DRAW_FRAME from QEMU.");
return isSensorDaemonStarted;
}
+ public synchronized boolean isSdbDaemonStarted() {
+ return isSdbDaemonStarted;
+ }
+
public synchronized void setRamdumpFlag(boolean flag) {
isRamdump = flag;
}
SEND_BOOTING_PROGRESS = 5,
SEND_BRIGHTNESS_VALUE = 6,
SEND_SENSOR_DAEMON_START = 800,
+ SEND_SDB_DAEMON_START = 801,
SEND_DRAW_FRAME = 900,
SEND_SHUTDOWN = 999,
};
static int client_sock = 0;
static int stop_server = 0;
static int is_sensord_initialized = 0;
+static int is_sdbd_initialized = 0;
static int ready_server = 0;
static int ignore_heartbeat = 0;
static int is_force_close_client = 0;
}
}
+void notify_sdb_daemon_start(void)
+{
+ INFO("notify_sensor_daemon_start\n");
+
+ is_sdbd_initialized = 1;
+ if (client_sock) {
+ if (0 > send_skin_header_only(
+ client_sock, SEND_SDB_DAEMON_START, 1)) {
+
+ ERR("fail to send SEND_SDB_DAEMON_START to skin.\n");
+ }
+ }
+}
+
void notify_sensor_daemon_start(void)
{
INFO("notify_sensor_daemon_start\n");