[Device] Apply SE Usability Review
authorjh5.cho <jh5.cho@samsung.com>
Mon, 30 May 2016 08:26:39 +0000 (17:26 +0900)
committerPraveen Gattu <gattu.p@samsung.com>
Tue, 31 May 2016 05:11:10 +0000 (10:41 +0530)
  - BatteryChangingStateChangedEventArgs, change the property name from Changing to IsCharging
  - Use Color class insted of using unsigned int type of color

Change-Id: Id6b9e3afae7e8bd628a435377444e7d52732690f
Signed-off-by: Praveen Gattu <gattu.p@samsung.com>
Tizen.System/Device/Battery.cs [changed mode: 0644->0755]
Tizen.System/Device/DeviceEventArgs.cs
Tizen.System/Device/Led.cs [changed mode: 0644->0755]
Tizen.System/Tizen.System.csproj [changed mode: 0644->0755]
packaging/csapi-system.spec

old mode 100644 (file)
new mode 100755 (executable)
index 40f0ad9..f26dba5
@@ -241,7 +241,7 @@ namespace Tizen.System
                         bool val = (value.ToInt32() == 1);
                         BatteryChargingStateChangedEventArgs e = new BatteryChargingStateChangedEventArgs()
                         {
-                            Charging = val
+                            IsCharging = val
                         };
                         s_chargingStateChanged?.Invoke(null, e);
                         return true;
index 1e2d94d..6812c39 100644 (file)
@@ -25,7 +25,7 @@ namespace Tizen.System
         /// <summary>
         /// The charging state of the battery. Charging is of type boolean which indicates true/false based on currrent charging status.
         /// </summary>
-        public bool Charging { get; internal set; }
+        public bool IsCharging { get; internal set; }
     }
 
     // Display
old mode 100644 (file)
new mode 100755 (executable)
index d17044e..5eb0f5a
@@ -1,5 +1,5 @@
 using System;
-
+using Tizen.UI;
 namespace Tizen.System
 {
     /// <summary>
@@ -56,10 +56,10 @@ namespace Tizen.System
         /// The Color value
         /// The first byte means opaque and the other 3 bytes are RGB values.
         /// </param>
-        public static void Play(int on, int off, uint color)
+        public static void Play(int on, int off, Color color)
         {
             //looks like only blink option is supported. So hard coded to default blink option.
-            DeviceError res = (DeviceError)Interop.Device.DeviceLedPlayCustom(on, off, color, 1);
+            DeviceError res = (DeviceError)Interop.Device.DeviceLedPlayCustom(on, off, Convert.ToUInt32(color.Argb), 1);
             if (res != DeviceError.None)
             {
                 throw DeviceExceptionFactory.CreateException(res, "failed to play Led.");
old mode 100644 (file)
new mode 100755 (executable)
index b4a29b4..6b0f8d3
@@ -53,6 +53,9 @@
     <Reference Include="Tizen">
       <HintPath>..\..\tizen\Tizen\bin\Debug\Tizen.dll</HintPath>
     </Reference>
+    <Reference Include="Tizen.UI">
+      <HintPath>..\..\uifw\Tizen.UI\bin\Debug\Tizen.UI.dll</HintPath>
+    </Reference>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="Device\Battery.cs" />
index c8b9fc1..c1b3aa6 100755 (executable)
@@ -17,6 +17,7 @@ BuildRequires: mono-devel
 
 # P/Invoke Dependencies
 BuildRequires: pkgconfig(csapi-tizen)
+BuildRequires: pkgconfig(csapi-uifw)
 BuildRequires: pkgconfig(capi-system-device)
 BuildRequires: pkgconfig(capi-system-runtime-info)
 BuildRequires: pkgconfig(capi-system-info)