Merge remote-tracking branch 'github/master' into tizen
authorTizenAPI-Bot <tizenapi@samsung.com>
Fri, 18 Jan 2019 00:07:21 +0000 (00:07 +0000)
committerTizenAPI-Bot <tizenapi@samsung.com>
Fri, 18 Jan 2019 00:07:21 +0000 (00:07 +0000)
src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs [changed mode: 0644->0755]
src/Tizen.Applications.WatchApplication/Tizen.Applications.CoreBackend/WatchCoreBackend.cs [changed mode: 0755->0644]
src/Tizen.Applications.WidgetApplication/Tizen.Applications.CoreBackend/WidgetCoreBackend.cs [changed mode: 0755->0644]
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAdapter.cs
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAudio.cs
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs

old mode 100644 (file)
new mode 100755 (executable)
index 732c37c..b2c48c4
@@ -112,18 +112,13 @@ namespace Tizen.Applications
             _backend.AddEventHandler<RegionFormatChangedEventArgs>(EventType.RegionFormatChanged, OnRegionFormatChanged);
             _backend.AddEventHandler<DeviceOrientationEventArgs>(EventType.DeviceOrientationChanged, OnDeviceOrientationChanged);
 
-            string[] argsClone = null;
-
-            if (args == null)
-            {
-                argsClone = new string[1];
-            }
-            else
+            string[] argsClone = new string[args.Length + 1];
+            if (args.Length > 1)
             {
-                argsClone = new string[args.Length + 1];
                 args.CopyTo(argsClone, 1);
             }
             argsClone[0] = string.Empty;
+
             _backend.Run(argsClone);
         }
 
old mode 100755 (executable)
new mode 100644 (file)
index 01f0bc1..a244b2c
@@ -116,6 +116,8 @@ namespace Tizen.Applications.CoreBackend
 
         public void Run(string[] args)
         {
+            TizenSynchronizationContext.Initialize();
+
             Interop.Watch.ErrorCode err = Interop.Watch.ErrorCode.None;
 
             err = Interop.Watch.AddEventHandler(out _lowMemoryEventHandle, Interop.Watch.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero);
old mode 100755 (executable)
new mode 100644 (file)
index eee864b..e05eaa2
@@ -109,6 +109,8 @@ namespace Tizen.Applications.CoreBackend
 
         public void Run(string[] args)
         {
+            TizenSynchronizationContext.Initialize();
+
             Interop.Widget.ErrorCode err = Interop.Widget.ErrorCode.None;
             err = Interop.Widget.AddEventHandler(out _lowMemoryEventHandle, Interop.Widget.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero);
             if (err != Interop.Widget.ErrorCode.None)
index b23b03a..2cb8354 100644 (file)
@@ -373,7 +373,7 @@ namespace Tizen.Network.Bluetooth
         }
 
         /// <summary>
-        /// Enables the local Bluetooth adapter, asynchronously.
+        /// Enables the local Bluetooth adapter asynchronously.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         /// <feature>http://tizen.org/feature/network.bluetooth</feature>
@@ -387,7 +387,7 @@ namespace Tizen.Network.Bluetooth
         }
 
         /// <summary>
-        /// Disables the local Bluetooth adapter, asynchronously.
+        /// Disables the local Bluetooth adapter asynchronously.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         /// <feature>http://tizen.org/feature/network.bluetooth</feature>
@@ -415,7 +415,7 @@ namespace Tizen.Network.Bluetooth
         }
 
         /// <summary>
-        /// Enables the discoverable mode.
+        /// Enables the discoverable mode for the duration.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         /// <param name="duration">The duration until the discoverable mode is to be disabled(in seconds).</param>
index 8a20ab2..67277b3 100644 (file)
@@ -108,7 +108,7 @@ namespace Tizen.Network.Bluetooth
         }
 
         /// <summary>
-        /// Opens a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device, asynchronously.
+        /// Opens a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device asynchronously.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         /// <feature>http://tizen.org/feature/network.bluetooth</feature>
@@ -123,7 +123,7 @@ namespace Tizen.Network.Bluetooth
         }
 
         /// <summary>
-        /// Closes a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device, asynchronously.
+        /// Closes a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device asynchronously.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         /// <feature>http://tizen.org/feature/network.bluetooth</feature>
index 91ca0ff..ded75cd 100644 (file)
@@ -794,7 +794,7 @@ namespace Tizen.Network.Bluetooth {
                 serviceDataPtr = Marshal.AllocHGlobal(data.DataLength);
                 Marshal.Copy(data.Data, 0, serviceDataPtr, data.DataLength);
 
-                for (int i = 0; i < 3; i++)
+                for (int i = 0; i < data.DataLength; i++)
                     Log.Error (Globals.LogTag, " service data is  " + data.Data [i]);
                 int ret = Interop.Bluetooth.AddAdvertisingServiceData(GetHandle(), packetType,
                     data.Uuid, serviceDataPtr, data.DataLength);