sdk/emulator/emulator-manager.git
8 years agovm list table: change to 'Platform' class from 'BaseImage'
jihye424.kim [Sat, 13 Feb 2016 02:32:22 +0000 (11:32 +0900)]
vm list table: change to 'Platform' class from 'BaseImage'

Change-Id: I3f85024a1c4779e3fb8cd5ea114d5a932f7d22e4
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agovm proeprty: add platform variable to vm property value
jihye424.kim [Sat, 13 Feb 2016 02:07:58 +0000 (11:07 +0900)]
vm proeprty: add platform variable to vm property value

Change-Id: I2b90b700748bc25f58127a4e305f10afebed4122
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoplatform dialog: set default name from selected base platform
jihye424.kim [Fri, 12 Feb 2016 09:46:07 +0000 (18:46 +0900)]
platform dialog: set default name from selected base platform

Change-Id: I6db04463cf451ee2a753ff3d526a48863551430e
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agocustom platform: create dialog to make custom platform
jihye424.kim [Fri, 12 Feb 2016 06:53:44 +0000 (15:53 +0900)]
custom platform: create dialog to make custom platform

- remove 'profile' item
- add 'profile', 'arch', 'skin shape' label to 'platform' item

Change-Id: I1fe2c8dbdd4a2df2a44b6bfcabd8d17ab843b32c
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoplatform image table: add new platform image table
jihye424.kim [Fri, 12 Feb 2016 04:16:43 +0000 (13:16 +0900)]
platform image table: add new platform image table

- base image table -> platform image table
- use new platform, profile class

Change-Id: If156177597a9f02318ad802dfb158b83b4c81b56
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoplatform: add new platform list and platform class
jihye424.kim [Thu, 11 Feb 2016 09:50:16 +0000 (18:50 +0900)]
platform: add new platform list and platform class

- remove 'BaseImage' class
- platform class -> Base Image + Profile + Version

Change-Id: I75aec5e39cc661ea5a4eac774fc7b2c430c9bc03
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoplatform: move old platform sources to 'back up package'
jihye424.kim [Thu, 11 Feb 2016 07:36:25 +0000 (16:36 +0900)]
platform: move old platform sources to 'back up package'

Change-Id: I9aa125e9d50a1b547835b4075bac9d710d868a2d
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoVM-property: remove VMPropertyConfiguration in VMProperty
Minkee Lee [Thu, 11 Feb 2016 05:07:40 +0000 (14:07 +0900)]
VM-property: remove VMPropertyConfiguration in VMProperty

'VMPropertyConfiguration' is wrapper of a class
'EmulatorConfiguration' (XML object) and it provides converting
between 'EmulatorConfiguration' and 'VMPropertyValue' (internal object).

A 'VMProperty' doesn't need to hold a 'VMPropertyConfiguration'
because 'VMPropertyConfiguration' is a kind of helper class.
So I remove it and provide it as a static function.

Refactoring)
'VMPropertyConfiguration' is seperated into two class.
 - VMPropertyValueCreator, VMConfigurationCreator

Change-Id: I2a52bebeed7fde24dcaca860c43c475b3208a3e9
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agooption: add new option class for 'force_pat'
Minkee Lee [Fri, 5 Feb 2016 06:43:28 +0000 (15:43 +0900)]
option: add new option class for 'force_pat'

- This option is for graphic performance improvement
- Plugins can use this option if they need

Change-Id: I6215f8083c370f289d4b6bba2eed7638eeea9898
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoVM-property: set VMPropertyValue early
Minkee Lee [Thu, 4 Feb 2016 13:12:20 +0000 (22:12 +0900)]
VM-property: set VMPropertyValue early

Change-Id: I55333be372172204b27432196edac66e947eb402
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoVM-property: deprecate some getter function
Minkee Lee [Thu, 4 Feb 2016 12:01:53 +0000 (21:01 +0900)]
VM-property: deprecate some getter function

Some getter functions of class "VMPropertyConfiguration" should
have private access. So I deprecate these functions and
use getter functions of class "VMPropertyValue" instead.

Deprecated functions will be changed to 'private' later.

Change-Id: I7b2dbe9e9ddfc1491c089ccd74ba721fe8f9b49c
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoVM-property: deprecate some members
Minkee Lee [Thu, 4 Feb 2016 09:17:20 +0000 (18:17 +0900)]
VM-property: deprecate some members

1. Deprecate some getter functions in class "VMProperty".
   "VMPropertyValue" should be used instead of "VMProperty".

2. Change access modifier and add some getter functions.
   (baseImage in class "VMPropertyValue")

Change-Id: Id0861bda2d171ef644075b7f269bde7fe6072154
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoprofile-list: init profile-list in console mode
Minkee Lee [Wed, 3 Feb 2016 09:17:23 +0000 (18:17 +0900)]
profile-list: init profile-list in console mode

Change-Id: I88e6bd534b6d40c7e471601f3fb5878db74b2841
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoVM-property: change setting base-image
Minkee Lee [Thu, 4 Feb 2016 07:47:54 +0000 (16:47 +0900)]
VM-property: change setting base-image

Change base image setting time.

Change-Id: I01842e3c741e3daca3ec6f67307fb1d69fba2c6f
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoVM-property: remove duplicated variable
Minkee Lee [Wed, 3 Feb 2016 06:24:03 +0000 (15:24 +0900)]
VM-property: remove duplicated variable

- "baseImagePath" in VMPropertyValue is removed.
  We can get this value from an object "baseImage".

- Some settings are moved to class "VMPropertyConfiguration".

Change-Id: I294393dd79799cb45cb48aea100ff8d47db54b9a
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoVM-monitor: check a VM's state before change
Minkee Lee [Wed, 3 Feb 2016 06:09:33 +0000 (15:09 +0900)]
VM-monitor: check a VM's state before change

When a monitor changes VM's state to READY, it is need to check
if VM's state is already set to READY by another monitor.

Change-Id: Ibdbb06dffd926ba35ade7dcc3645947dada59135
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoskin: recover a removed function
Minkee Lee [Wed, 3 Feb 2016 04:32:03 +0000 (13:32 +0900)]
skin: recover a removed function

This function is being used in plug-in. (deprecated)

Change-Id: I35dcfd4b6be399a3fec3275ca432ca3e89e9e8fe
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoplatform: fix finding a default property
Minkee Lee [Wed, 3 Feb 2016 04:11:42 +0000 (13:11 +0900)]
platform: fix finding a default property

Compare image name with a file name. (not full-path)

Change-Id: Ib637c6e3b6346fd255f47d62a28271fd33f57fe8
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agorefactoring: change option name ("defaultValue")
Minkee Lee [Tue, 2 Feb 2016 05:45:23 +0000 (14:45 +0900)]
refactoring: change option name ("defaultValue")

Change "createDefault" to "defaultValue".
It means an initial value of UI widget.

Change-Id: If9e109ae46e16384c8f699b7422882108fd1ddce
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agorefactoring: fix function name ("isLesserThan")
Minkee Lee [Tue, 2 Feb 2016 05:37:49 +0000 (14:37 +0900)]
refactoring: fix function name ("isLesserThan")

Change 'l' to 'L'.

Change-Id: I8879b4db6cd8de80f1ab1af6217dd7c497caf016
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agooption: add suspend support option (experimental)
Minkee Lee [Tue, 2 Feb 2016 04:21:35 +0000 (13:21 +0900)]
option: add suspend support option (experimental)

Change-Id: I4a07007647d531250149f2fd17c10194f17d147c
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agooption: add viewer type option (experimental)
Minkee Lee [Tue, 2 Feb 2016 01:34:25 +0000 (10:34 +0900)]
option: add viewer type option (experimental)

A user can select "Native" or "Web".

Change-Id: I1e00975e04a508e6676bd8dce27e1c9c0b89b780
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agooption: fix direct-rendering option
Minkee Lee [Tue, 2 Feb 2016 04:55:52 +0000 (13:55 +0900)]
option: fix direct-rendering option

1. Do nothing if version is under 2.3.2.
2. If a user cannot select an option in UI, option is
regarded as true. (Default is qt-enable)

Change-Id: I9c2d229851278611e7cfde680304e9716b98f7e1
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agotemplate: convert old template
Minkee Lee [Tue, 2 Feb 2016 04:52:25 +0000 (13:52 +0900)]
template: convert old template

Convert old template to common template structure.
It is needed to find specific item in template.

Change-Id: Ia3ad5657e86cd32287963c075596b615ed9d9c05
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agooption: add direct-rendering option (experimental)
Minkee Lee [Fri, 29 Jan 2016 09:20:19 +0000 (18:20 +0900)]
option: add direct-rendering option (experimental)

- Add direct-rendering option in UI
- Show "experimental" text in title bar

Change-Id: Id8014f50a8541d14ee85c88ba80fa444f7038986
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoImageButton: use array instead of Collection
SeokYeon Hwang [Fri, 5 Feb 2016 04:36:20 +0000 (13:36 +0900)]
ImageButton: use array instead of Collection

We can use array instead of Collection if size is fixed. Generally
array is faster than Collection.

Change-Id: I0419fff348ded41c0ac6c6b6d863571b2ac43eec
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoresources: we use new Image API now
SeokYeon Hwang [Fri, 5 Feb 2016 03:52:19 +0000 (12:52 +0900)]
resources: we use new Image API now

Change-Id: Ia4785c23a9cb4d8371fc3baa45d035c27c34bf3d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoresources: commonize resource registry
SeokYeon Hwang [Thu, 4 Feb 2016 09:14:33 +0000 (18:14 +0900)]
resources: commonize resource registry

Change-Id: Ib04d6950106a1484a7e2dfdaf4e145a7bffa3cde
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoresources: introduce new wrapper API for providing colors
SeokYeon Hwang [Thu, 4 Feb 2016 08:22:34 +0000 (17:22 +0900)]
resources: introduce new wrapper API for providing colors

Change-Id: I3ab711a620ceb63e46de1a22f7fc3670dfda5a03
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoresources: introduce new wrapper API for providing fonts
SeokYeon Hwang [Thu, 4 Feb 2016 07:26:13 +0000 (16:26 +0900)]
resources: introduce new wrapper API for providing fonts

Change-Id: I48d1f3b883ba6e74ddb918c86a07693662188e05
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoresources: introduce new wrapper API for providing Images
SeokYeon Hwang [Wed, 3 Feb 2016 11:21:30 +0000 (20:21 +0900)]
resources: introduce new wrapper API for providing Images

Change-Id: I2d81702acf3eaf1d3691b47c9de9e23a6ae65cae
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoresources: do not use Collection for fixed number of object
SeokYeon Hwang [Wed, 3 Feb 2016 10:19:21 +0000 (19:19 +0900)]
resources: do not use Collection for fixed number of object

Change-Id: I96c47b65cfb806a996bec859e852e7f6d94614ec
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoplugin: introduce flexible extension structure
SeokYeon Hwang [Wed, 3 Feb 2016 09:03:59 +0000 (18:03 +0900)]
plugin: introduce flexible extension structure

Change-Id: Ia41cccce3638c663ec53d24d756b69a6dac3229d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoresources: correct some class names
SeokYeon Hwang [Wed, 3 Feb 2016 05:48:25 +0000 (14:48 +0900)]
resources: correct some class names

Change-Id: Ie15552216e428eaf157431242f048d22cdbe227f
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoplugin: simplify plugin loader
SeokYeon Hwang [Tue, 2 Feb 2016 10:42:02 +0000 (19:42 +0900)]
plugin: simplify plugin loader

We can use EMPluginLoader itself as a classloader. All we need is a
child-first searching for resources.

Change-Id: Iaecbb3ea15c4599da869a365dee0106a3602951c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agodevice-template: add 216x432 wearable-band template
Minkee Lee [Mon, 1 Feb 2016 10:08:13 +0000 (19:08 +0900)]
device-template: add 216x432 wearable-band template

Change-Id: Iebc3401c216836c8c7aba8ccad423f38e03e0359
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoVMProperty: clean-up unnecessary logics
SeokYeon Hwang [Mon, 1 Feb 2016 08:25:54 +0000 (17:25 +0900)]
VMProperty: clean-up unnecessary logics

Change-Id: I98f0005914c597f4a939e74ddd7e128c8ab4073a
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoECSMonitor: fix BufferUnderFlowException
Minkee Lee [Thu, 28 Jan 2016 12:20:58 +0000 (21:20 +0900)]
ECSMonitor: fix BufferUnderFlowException

1. In selector model, event (SelectionKey) should be removed
after read. Otherwise, BufferUnderFlowException occurs
at next read.

2. Add receive logic for case that a whole message is not
received at once.

Change-Id: I1e76c5b19f13365cf90709c8c2425f1da2406791
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agobackup-log: use a rename command when make a backup log
Minkee Lee [Thu, 28 Jan 2016 12:06:18 +0000 (21:06 +0900)]
backup-log: use a rename command when make a backup log

A rename operation takes less time than copy.
(A file copy takes long time if log file is very large
and it causes emulator-manager and emulator start slowly)

Change-Id: Ib60b131df38a6407a4762ea880a4098fd0c73923
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agovm property: refresh vm property value with a new configuration
jihye424.kim [Sun, 31 Jan 2016 00:28:53 +0000 (09:28 +0900)]
vm property: refresh vm property value with a new configuration

Change-Id: I361e986b30c23800463d98c226e36b5b7fa92480
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agovm list table: add 'remove table item' and 'add table item' method
jihye424.kim [Sun, 31 Jan 2016 00:09:04 +0000 (09:09 +0900)]
vm list table: add 'remove table item' and 'add table item' method

- old: add table item each profile
- new: add table item each vm property
-- add 'remove table item' method
-- move methods of handling vmproperty to 'VMListTableViewer'

Change-Id: I611f5fbf29e35088897733680faf17aee766467e
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agomonitoring: fix bugs in ECSMonitor
SeokYeon Hwang [Fri, 29 Jan 2016 08:30:28 +0000 (17:30 +0900)]
monitoring: fix bugs in ECSMonitor

Pre-launched emulator might not be detected as it is running, because of
wrong comparison between different object.

Change-Id: Id28cb290df65967aa08dab2b9a294b797e496365
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoVMProperty: prepare for property file corruption
SeokYeon Hwang [Fri, 29 Jan 2016 06:21:30 +0000 (15:21 +0900)]
VMProperty: prepare for property file corruption

Always truncate property file before re-writing.
If property file is corrupted, we can handle it now.

Change-Id: Id35a4bf452a769bf4af8abcddd0eeb89312323ef
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomonitoring: FileWatcher starts after all profiles are ready
SeokYeon Hwang [Fri, 29 Jan 2016 04:50:29 +0000 (13:50 +0900)]
monitoring: FileWatcher starts after all profiles are ready

Change-Id: I20e52667de87bb526d2738ab215ed219a3b2699c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agooption: fix checking network connect type
Minkee Lee [Fri, 29 Jan 2016 05:34:22 +0000 (14:34 +0900)]
option: fix checking network connect type

Except a "bridge", the other values should be regarded as
a NAT because it's default.

Change-Id: I17c1b231ecfd011274c06e578e6c68e97adf448b
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
8 years agoproxy option: move hostProxy variable
jihye424.kim [Wed, 27 Jan 2016 06:21:22 +0000 (15:21 +0900)]
proxy option: move hostProxy variable

- move hostProxy variable to getHostProxy()
-- execute check-net program one time if getHostProxy is called several times

Change-Id: I78c69b19222874007044889ddf3954b8a3624e91
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoVMKeeper: add property modified event
SeokYeon Hwang [Thu, 28 Jan 2016 04:24:32 +0000 (13:24 +0900)]
VMKeeper: add property modified event

If VM is modified by outside EmulatorManager UI, we should refresh VM
in the list. So we add property modified event.

Change-Id: I65ff967170e2c989f06ff3b7646305dbfa7965d9
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomonitoring: modified posix lock to shared
Sangho Park [Wed, 27 Jan 2016 08:36:24 +0000 (17:36 +0900)]
monitoring: modified posix lock to shared

Current posix file locking method has two problems.
1. An emulator can think that other emulator is running even
though no emulator runs and just the manager locks the file.
2. An emulator manager can think that an emulator is running
even though no emulator runs and just other manager locks the file.

Changing the lock by shared can eliminate the above 2 problems if
the emulator checks the type of lock. With qemu patch, the problems
can be avoided.

Change-Id: Id24b51a241890da781546186e2efb9f1b7346a48
Signed-off-by: Sangho Park <sangho.p@samsung.com>
8 years agovm-property: set VMWorker correctly
minkee.lee [Tue, 26 Jan 2016 05:32:22 +0000 (14:32 +0900)]
vm-property: set VMWorker correctly

Set plugin's VMWorker instead of VMWorkerCommon.

Change-Id: I102740952b1f27ec800113cea91dc76e33375d6e
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
(cherry picked from commit afa8b855953550cfc6f8f75b254c5a61390b840f)

8 years agoskin: support multiple skin shape
minkee.lee [Mon, 25 Jan 2016 14:11:31 +0000 (23:11 +0900)]
skin: support multiple skin shape

Skin (info.ini) is changed to define multiple skin shape.
So, emulator-manager should support it.

Change-Id: If55b12e52c506fd85ee502cc22f651f8a72b4bf2
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agooption: use variable in "host_ip" option
minkee.lee [Wed, 27 Jan 2016 07:25:02 +0000 (16:25 +0900)]
option: use variable in "host_ip" option

In "vm_launch.conf" file,
- host_ip=10.0.2.2 --> host_ip=${host_ip}

For this, make a new function and change a VMNameOption
to use new function.

(This is applied from 2.3.2)

Change-Id: I7e25974f0b71d64ef3f30808342bb3e66cfbe0dc
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agooption: remove SWT skin option from 3.0
minkee.lee [Wed, 27 Jan 2016 06:47:22 +0000 (15:47 +0900)]
option: remove SWT skin option from 3.0

From tizen-3.0, skin option is removed in "vm_launch.conf" file.
(SWT skin is not used from 3.0)

Change-Id: Ifb2e6af952e33487f60282905f220dfe5c9bd515
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agoabout: move initialization code to 'getInstance' method
jihye424.kim [Mon, 18 Jan 2016 10:30:59 +0000 (19:30 +0900)]
about: move initialization code to 'getInstance' method

Change-Id: I7816301f48114ea8a1f5f048e41182aac32dd842
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoskin: fix skin combo list
minkee.lee [Mon, 25 Jan 2016 13:19:51 +0000 (22:19 +0900)]
skin: fix skin combo list

- Assigning list to variable 'skinList' occurs not intended
multiple reference and it can cause unpredictable result.
- Fix adding template's skin to combo-list.

Change-Id: Idaa04d73f84c089e301d7c5d7f52b9a9d4f10e88
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agoskin: fix selected skin's index
minkee.lee [Mon, 25 Jan 2016 13:02:50 +0000 (22:02 +0900)]
skin: fix selected skin's index

Change-Id: I4986729d7185e0398f5ed6c55b586248d902ac35
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agoremote manager: separate remote manager and cli
jihye424.kim [Mon, 18 Jan 2016 09:36:34 +0000 (18:36 +0900)]
remote manager: separate remote manager and cli

- remote manager: get/set remote ip, port ...
- cli
-- make command for emulator manager in sever
-- process command from emulator manager in client

Change-Id: I3fb9a14618002263ff46bbe0774c9b9d452aac45
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoVMProperty: remove "lastModified" in VMProperty
SeokYeon Hwang [Mon, 25 Jan 2016 14:41:00 +0000 (23:41 +0900)]
VMProperty: remove "lastModified" in VMProperty

Last modified time is meaningless now. Because all VM modification is
applied in real time.

Change-Id: Ia959d36f05b28f1c213581637491ec819a928262
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoemulator list: make emulator list statically for CLI
jihye424.kim [Wed, 20 Jan 2016 10:26:45 +0000 (19:26 +0900)]
emulator list: make emulator list statically for CLI

- make 'VMKeeper' to abstract class
-- ManagedVMKeeper: use monitoring thread
-- DisposableVMKeeper: load vm list from vms directroy each time
- vm property list be chaged to queue from list
-- queue: ConcurrentLinkedQueue(thread-safe queue)
-- list: array list

Change-Id: I3c69b6230dfb0067d3d2604e8e92fca3d569b857
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agomonitoring: improve performance for loading pre-existing VMs
SeokYeon Hwang [Thu, 21 Jan 2016 08:04:41 +0000 (17:04 +0900)]
monitoring: improve performance for loading pre-existing VMs

We use asynchronous logic when searching and loading pre-existing VMs. So
UI loading performance is improved.
VM management is simplified.

Some methods is not needed anymore. We should clean them up.

Change-Id: Ie3eba039d76c3eb5318d33b27b11b2f067ec78bf
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomonitoring: introduce property and availability monitor
SeokYeon Hwang [Sat, 16 Jan 2016 10:37:34 +0000 (19:37 +0900)]
monitoring: introduce property and availability monitor

VMPropertyMonitor watches VM property file is generated or removed.
VMAvailabilityMonitor watches whether VM is available or not.

All monitored target modification is applied immediately. Some
refactoring and clean-up should be followed.

Change-Id: Ia8ddc9924650d63c004015efa4ad1f0d55e2374d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agodisplay-option: fix display option
minkee.lee [Thu, 21 Jan 2016 07:03:34 +0000 (16:03 +0900)]
display-option: fix display option

Option should be checked in both experimental and normal mode.

Change-Id: I0a33071e06f989fb1cf00d1398a0d54c67ca3f8c
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agodisplay-option: fix DPI and size value
minkee.lee [Tue, 19 Jan 2016 09:38:17 +0000 (18:38 +0900)]
display-option: fix DPI and size value

- Set DPI in VM detail dialog.
- Set correct size in VM modify dialog.

Change-Id: I1c7e68a8f8e052620273fd1da8513b146ae0e4cc
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agotemplate-dialog: enable/disable "Confirm" button
minkee.lee [Fri, 15 Jan 2016 08:38:25 +0000 (17:38 +0900)]
template-dialog: enable/disable "Confirm" button

In template modify dialog, "Confirm" button is enabled
when user modifies value. If there are no changes,
"Confirm" button is disabled.

For this,
- fix equals() of DeviceTemplateValue.
- checkValid() should be called to detect change.
- fix update logic.

Change-Id: If012d4e1a9666c2feec3a823c2d7fd47d7520b12
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agomessage-box: use custom button
minkee.lee [Wed, 13 Jan 2016 10:46:08 +0000 (19:46 +0900)]
message-box: use custom button

Use a custom button instead of SWT default button.
- Add traverse listener for keyboard input.
- Remove setFocus() to title bar when drag.
  (It was unnecessary function call and it steals focus from button)

Change-Id: I4f1f87fba6a0998023cfb212d95d4772cdb8239b
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agodevice-template: add 320x320 wearable template
minkee.lee [Wed, 20 Jan 2016 08:22:03 +0000 (17:22 +0900)]
device-template: add 320x320 wearable template

Change-Id: Icb06e0ce6f9c6779fd780638a65a070d0afd7757
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agodetail-view: fix title width
minkee.lee [Thu, 21 Jan 2016 06:10:04 +0000 (15:10 +0900)]
detail-view: fix title width

Use default title width.

Change-Id: Ief12145fd1cc2306f21d4a01abac6c59e8e7f731
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agovm property: move 'isRemote' method to VMProperty
jihye424.kim [Fri, 15 Jan 2016 08:05:29 +0000 (17:05 +0900)]
vm property: move 'isRemote' method to VMProperty

Change-Id: Icfa7768a8cc152956a339bef79d00ee96e9bf789
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agovms: exception packages are renamed
SeokYeon Hwang [Sat, 16 Jan 2016 05:47:21 +0000 (14:47 +0900)]
vms: exception packages are renamed

Change-Id: Idb5e162fbeb927dd3d999a7aba8bdaa2961cbd7c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomonitoring: generalize StateChangeLister
SeokYeon Hwang [Fri, 15 Jan 2016 05:58:38 +0000 (14:58 +0900)]
monitoring: generalize StateChangeLister

StateChangeListener is now generalized.

Change-Id: I12057e3e97070db2f2d77be5c6bb20a29505168b
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomonitoring: fix bugs and do addidional refatoring
SeokYeon Hwang [Sat, 16 Jan 2016 04:52:03 +0000 (13:52 +0900)]
monitoring: fix bugs and do addidional refatoring

WatchService inside LockFileMonitor is FileWatcher now. It will be used
by other file-based monitoring.
Fixed a bug on LaunchingMonitor when run as CLI. And some codes are
refined.

Change-Id: Ia7d822ededfac958863f52ca5855560335e2836d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomonitoring: introduce new VM monitoring architecture
SeokYeon Hwang [Wed, 13 Jan 2016 08:11:10 +0000 (17:11 +0900)]
monitoring: introduce new VM monitoring architecture

We introduce new running VM monitoring architecture based on
java7 NIO watcher service. It should be more general service, then
we apply this service to others like managing VM lists, ...

Change-Id: I13cc9f50d0508629ac1a8f55ac5c11359b47d386
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agotap-dialog: change to use new message-box
minkee.lee [Wed, 13 Jan 2016 08:39:03 +0000 (17:39 +0900)]
tap-dialog: change to use new message-box

Change-Id: I0d7504b66ab64f3fa7098c1a4ad5e8e396059f8b
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agomessage-dialog: support new message-dialog
minkee.lee [Wed, 13 Jan 2016 08:19:51 +0000 (17:19 +0900)]
message-dialog: support new message-dialog

Open dialog selectively according to UI mode.
(new UI mode or not)

Change-Id: Ifbe2073386cb32e19fa0e9a1a664fde650463a35
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agomessage-box: change default return value
minkee.lee [Tue, 12 Jan 2016 07:19:53 +0000 (16:19 +0900)]
message-box: change default return value

If a user closes message box by pressing ESC key,
the return value was "OK". Now, it is changed to "Cancel".

Change-Id: Ib4b8850568fbc5a18023b8ca89e80b59353aea50
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agodialog: change tap-guide dialog for Windows
minkee.lee [Mon, 11 Jan 2016 08:17:43 +0000 (17:17 +0900)]
dialog: change tap-guide dialog for Windows

- Apply new UI
- Open new message Box

Conflicts:

src/org/tizen/emulator/manager/ui/renewal/dialog/TapDeviceDialogForWin.java

Change-Id: I0ca8fbfd2aec0a8ac12ac60318995a568c6cac1b
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agopackage: update version (2.4.181)
jihye424.kim [Tue, 19 Jan 2016 06:55:59 +0000 (15:55 +0900)]
package: update version (2.4.181)

Change-Id: I3a5f3959ea27c43002ed7d7fde4454d962f15a1d
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoMerge branch 'develop' into features/new_ui
jihye424.kim [Mon, 18 Jan 2016 09:33:42 +0000 (18:33 +0900)]
Merge branch 'develop' into features/new_ui

Conflicts:
src/org/tizen/emulator/manager/tool/TapUtil.java

Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
Change-Id: Iac43da5987f998e9f1405ac48f8d932937cd5d89

8 years agomain dialog: add minimization mode
jihye424.kim [Mon, 18 Jan 2016 04:26:53 +0000 (13:26 +0900)]
main dialog: add minimization mode

Change-Id: Idfde99a2e72b48082ce31b1656af224e65e4d102
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agocreate viewer: find the next best skin for emulator
jihye424.kim [Mon, 11 Jan 2016 05:48:29 +0000 (14:48 +0900)]
create viewer: find the next best skin for emulator

- if skin of new emulator does not exist
-- find the next best skin for emulator
- found skin
-- resolution of this skin would be different from resolution of new emulator
-- skin shape of this skin would be different from skin shape of new emulator
-- but this skin makes the emulator launchable

Change-Id: I88209ed24b5ee5f67662a8076c25d6d3a65da154
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agonet: check if bridge device is working on Windows
Munkyu Im [Tue, 12 Jan 2016 05:14:33 +0000 (14:14 +0900)]
net: check if bridge device is working on Windows

check bridge interface and if it is not ready
to transmit and receive packets, shows error message.

Change-Id: If9653350eb12b6424981bc596036664a88d923f2
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agonet: add checking IP duplication on bridge network
Munkyu Im [Fri, 8 Jan 2016 07:21:52 +0000 (16:21 +0900)]
net: add checking IP duplication on bridge network

check host and VM's ip and if they are the same,
shows error popup dialog when launch VM.
It can be helpful if it needs maunal bridged setting
like host OS version is Windows8 and above.

Change-Id: Id4387e3572bdbd6ef43cba70ac8a077db47bccc0
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agobuild: change signing tool for Windows EXE
minkee.lee [Fri, 15 Jan 2016 05:10:51 +0000 (14:10 +0900)]
build: change signing tool for Windows EXE

Change-Id: Ic84edee5f619d41a5dd230194847d074f03334f0
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agodialog: change tap-guide dialog for Mac OS
minkee.lee [Fri, 8 Jan 2016 10:02:33 +0000 (19:02 +0900)]
dialog: change tap-guide dialog for Mac OS

- Apply new UI.
- Open new message Box.

Change-Id: Ic34a39d8cf8dbc70c9039817d436e34ae02b6a1c
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agovmbutton: remove painter listener from IVMButtonPainter
jihye424.kim [Mon, 11 Jan 2016 08:02:34 +0000 (17:02 +0900)]
vmbutton: remove painter listener from IVMButtonPainter

- 'PainterListener' is swt function
-- plugin need swt for using IVMButtonPaitner. so, remove this statement from IVMButtonPainter
-- Result: plugin need not swt lib

Change-Id: I1b6616a375a59e4716ab16be8109e5e7a7546c1e
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agocreate viewer: set default skin when selected base image
jihye424.kim [Fri, 8 Jan 2016 10:15:33 +0000 (19:15 +0900)]
create viewer: set default skin when selected base image

- bug: if skin is not null, does not set default skin
-- base image is chanaged to 2.3 base image from 2.4 base image
-- skin is 2.4 skin (not changed to 2.3 skin)
- fix: set default skin when selected base image

Change-Id: Ieaf5eddf18bf392ab11541e26a2bc2eb939c3be3
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agocreate vm: change skin column of table when select skin
jihye424.kim [Fri, 8 Jan 2016 05:52:24 +0000 (14:52 +0900)]
create vm: change skin column of table when select skin

- old: not change skin column of table when select skin in skin item of advanced view
- new: change skin column of table

Change-Id: Ib5b4b91a3262fe38ea00611852b9fa9ceee04580
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoskin item: refresh skin list when selected new base image
jihye424.kim [Wed, 6 Jan 2016 09:20:41 +0000 (18:20 +0900)]
skin item: refresh skin list when selected new base image

Change-Id: I088bcfbf7fefee6f5e307b3002065b942fe31a9d
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agoIP-dialog: change IP address input dialog
minkee.lee [Wed, 6 Jan 2016 13:03:51 +0000 (22:03 +0900)]
IP-dialog: change IP address input dialog

Apply new UI

Change-Id: I4d136b524d76b2ae268bc1362fb302ed61400354
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agotap-dialog: change tap device dialog
minkee.lee [Wed, 6 Jan 2016 12:05:32 +0000 (21:05 +0900)]
tap-dialog: change tap device dialog

Apply new UI to tap device dialog.

Change-Id: I7e918e3bfc84956fc68671556ba7123049c3303b
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agotap: arrange source codes
Munkyu Im [Mon, 4 Jan 2016 08:41:23 +0000 (17:41 +0900)]
tap: arrange source codes

 - improve code readability a little bit.
 - adds non-externalize strings.
 - add externalize string for dialog message.

Change-Id: I4f29282cc287d5d96562cf4240881253937ee961
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agoproxy-dialog: remove duplicated text drawing
minkee.lee [Tue, 5 Jan 2016 12:32:25 +0000 (21:32 +0900)]
proxy-dialog: remove duplicated text drawing

Change-Id: I0e813a32230db7fc69c094863a19324a6b377864
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agopackage: update version (2.4.180)
minkee.lee [Tue, 5 Jan 2016 09:19:57 +0000 (18:19 +0900)]
package: update version (2.4.180)

Change-Id: I463f6f18e16a381e8424ced1dc7ba2e3f2657c09
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agocreate vm table: set disable 'confirm' button
jihye424.kim [Tue, 5 Jan 2016 09:33:09 +0000 (18:33 +0900)]
create vm table: set disable 'confirm' button

- set disable 'confirm' button, when template list is empty

Change-Id: Ie93afbb1a8e277faa12e8d4cabd5bfda20eba56a
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
8 years agonew-UI: enable new-UI as default
minkee.lee [Tue, 5 Jan 2016 06:13:02 +0000 (15:13 +0900)]
new-UI: enable new-UI as default

Old UI is available in debug mode.

Change-Id: I339f7414b3d7f40f20febd03516c8354a25b33bd
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agoproxy-dialog: change proxy dialog
minkee.lee [Tue, 5 Jan 2016 05:21:24 +0000 (14:21 +0900)]
proxy-dialog: change proxy dialog

Apply new UI to proxy dialog.

Change-Id: Ieddb9dc6584c7febb08cc64fa0bc7db9c90fa244
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agoMerge branch 'develop' into features/new_ui
minkee.lee [Tue, 5 Jan 2016 06:06:33 +0000 (15:06 +0900)]
Merge branch 'develop' into features/new_ui

Conflicts:
src/org/tizen/emulator/manager/platform/BaseImage.java
src/org/tizen/emulator/manager/ui/dialog/AboutDialog.java
src/org/tizen/emulator/manager/vms/Creator.java
src/org/tizen/emulator/manager/vms/option/LaunchConfig.java

Change-Id: I3021d3a96717209dcc9ce12bcc0e5906311e3445
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agobuild: update swt version to 4.5
minkee.lee [Mon, 4 Jan 2016 07:10:40 +0000 (16:10 +0900)]
build: update swt version to 4.5

Change-Id: I6428df1872ad34d16cca2f407067b0eec4321609
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agopackage: update version (2.4.179)
minkee.lee [Mon, 4 Jan 2016 05:10:36 +0000 (14:10 +0900)]
package: update version (2.4.179)

Change-Id: Ifa12dab92d62b4ae5424571463e366fc04910783
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agonet: fix float value comparison
Munkyu Im [Thu, 31 Dec 2015 07:48:05 +0000 (16:48 +0900)]
net: fix float value comparison

It could return unexpected result if compare float value with int value.
"Float.compare(a, b)" is better method to compare.

Change-Id: I7edb624846a3848f8e7130004a5e1203eaccfc9e
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agopackage: update version (2.4.178)
minkee.lee [Wed, 30 Dec 2015 08:52:35 +0000 (17:52 +0900)]
package: update version (2.4.178)

Change-Id: I4c571468649675afb9b4074904dd4db02dc65b1a
Signed-off-by: minkee.lee <minkee.lee@samsung.com>