platform/core/csapi/tizenfx.git
11 months agoUse Marshal.FreeHGlobal() instead of Libc.Free() (#5636)
hjhun [Wed, 18 Oct 2023 05:38:58 +0000 (14:38 +0900)]
Use Marshal.FreeHGlobal() instead of Libc.Free() (#5636)

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months ago[NUI] Add ModelPivotPoint property
seungho baek [Wed, 15 Nov 2023 14:21:42 +0000 (23:21 +0900)]
[NUI] Add ModelPivotPoint property

Signed-off-by: seungho baek <sbsh.baek@samsung.com>
12 months ago[NUI][API11] Version up 22252
Eunki, Hong [Wed, 15 Nov 2023 02:24:23 +0000 (11:24 +0900)]
[NUI][API11] Version up 22252

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Remove old frame range if we set marker + Minor fix up when marker invalid
Eunki Hong [Tue, 14 Nov 2023 15:39:16 +0000 (00:39 +0900)]
[NUI] Remove old frame range if we set marker + Minor fix up when marker invalid

LottieAnimationView cache both frame range as int, and marker.
But two API set same property - PlayRange.

So if some code like below thing was not working well

```
  // Let "marker" frame range is 10~20

  lottieView.SetMinMaxFrame(30, 40); // play range become 30~40
  lottieView.SetMinMaxFrameByMarker(marker); // play range become 10~20
  lottieView.SetMinMaxFrame(30, 40); // play range need to be 30~40 again, but it didn't due to the cache.
```

To avoid like above case, let we clean cache explicit parameter.

Also, Let we add some more error check if app use invalid marker
(Lottie file not loaded, or marker is invalid.)

In this case, let we just follow minMaxSetTypes.NotSetByUser logic then.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months ago[NUI.Scene3D] Fix exception when ModelNode don't have ModelNode as child
Eunki, Hong [Tue, 14 Nov 2023 08:17:11 +0000 (17:17 +0900)]
[NUI.Scene3D] Fix exception when ModelNode don't have ModelNode as child

If ModelNode don't have ModelNod as child, it might have
some null handle exception when we DownCast to ModelNode.
(For example, user try to get child ModelNode, but failed.)

Currently, a lots of app don't consider ModelNode now. But in future
we might need to add something under each ModelNode.

To make Scene3D more safety, let we check null or invalidate,
and then get/set the value internally.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Add AliveCount property to get currently alived View number
dongsug.song [Tue, 14 Nov 2023 13:14:33 +0000 (22:14 +0900)]
[NUI] Add AliveCount property to get currently alived View number

12 months ago[NUI] Support EncodedImageBuffer ImageType property + Upgrade EncodedImageBuffer...
Eunki, Hong [Tue, 14 Nov 2023 03:53:06 +0000 (12:53 +0900)]
[NUI] Support EncodedImageBuffer ImageType property + Upgrade EncodedImageBuffer demo

Let we allow to give the type of buffer s.t. what buffer is mean.
We can load svg and lottie image as encoded image buffer now.

+

Let we make EncodedImageBuffer can be created at worker thread.
And make the demo to load buffer asynchronously.

This patch have dependency with below dali patch :

https://review.tizen.org/gerrit/c/platform/core/uifw/dali-csharp-binder/+/301314

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Change SetMinAndMaxFrameByMarker behavior + Fix some async cases
Eunki, Hong [Tue, 14 Nov 2023 09:25:53 +0000 (18:25 +0900)]
[NUI] Change SetMinAndMaxFrameByMarker behavior + Fix some async cases

Let we allow to call SetMinAndMaxFrameByMarker API even if load is not finished.
Instead, let we just call some log if the file is not loaded yet.

Plus, Some API (GetContentInfo, GetMarkerInfo) might cache wrong values
when we use async load

Before try to get correct value, let we check whether the resource is
loaded or not.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] DetachAccessibleObject at Dispose time well
Eunki, Hong [Fri, 10 Nov 2023 07:53:52 +0000 (16:53 +0900)]
[NUI] DetachAccessibleObject at Dispose time well

There was several problem when we call DaliAccessibilityDetachAccessibleObject
at Dispose(bool) function

 - It will detach accessibility even if view doesn't owned the handle memory
 - Dispose(bool) can be called at worker thread (during GC) so we need to check thread here

I make to DaliAccessibilityDetachAccessibleObject function at Dispose(DisposeTypes)
that we can ensure it called at main thread clearly.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Fix TotalFrame getter bug when async load
Eunki, Hong [Fri, 10 Nov 2023 10:37:15 +0000 (19:37 +0900)]
[NUI] Fix TotalFrame getter bug when async load

There was some bug when we try to get TotalFrame when async load json file.

DALi engine side default total frame number is 0, and NUI is -1.
So, if we try to get TotalFrame from dali which is still loading, it will
cache the internal total frame as 0. After than, we can never get valid value.

To avoid this problem, we have 2 choice

1. Wait until async load finished, and then get total frame at dali side.
2. Just get 0 for now, and try again when total frame cached as 0.

Solution 1 need some time to resolve it. So now just make 2.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoAdd Front Buffer Rendering Sample (#5735)
Chihun Jeong [Fri, 10 Nov 2023 08:35:09 +0000 (17:35 +0900)]
Add Front Buffer Rendering Sample (#5735)

Co-authored-by: ANZ1217 <chihun.jeong@samsung.com>
12 months ago[NUI] Remove build warning due to unusing API
Eunki, Hong [Thu, 9 Nov 2023 07:46:28 +0000 (16:46 +0900)]
[NUI] Remove build warning due to unusing API

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Support LottieAnimationView file load asynchronously
Eunki, Hong [Thu, 9 Nov 2023 01:37:38 +0000 (10:37 +0900)]
[NUI] Support LottieAnimationView file load asynchronously

Current LottieAnimationView implement their own ViewCreation logic.

For example, ImageView.ResourceUrl = ~~ didn't change synchronously option.
But LottieAnimationView.ResourceUrl = ~~~ make synchronously option as true hardly.

So, there is no way to make asynchronously load lottie file.

To support it, let we cherry-pick new option of SynchronousLoading.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI.XamlBuild] Remove unused event : Element.DescendantAdded / Removed
Eunki, Hong [Tue, 7 Nov 2023 12:58:10 +0000 (21:58 +0900)]
[NUI.XamlBuild] Remove unused event : Element.DescendantAdded / Removed

Those API was useless if we don't need to invoke those events.
And those try to climb-up to parent root every Add / Remove API.

It will spend heavy time if the scene tree is complex.

Those event handerl are internal, and nobody use them.
So just remove codes.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Support to get Marker list information from lottie
Eunki, Hong [Tue, 7 Nov 2023 11:55:41 +0000 (20:55 +0900)]
[NUI] Support to get Marker list information from lottie

Let we allow to get the list of markers what current lottie image has now.

And also, Implement min/max frame index by marker, which is legacy
feature of VD FLUX code.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Supports to build ModelNode Tree
seungho baek [Tue, 7 Nov 2023 11:39:44 +0000 (20:39 +0900)]
[NUI] Supports to build ModelNode Tree

Signed-off-by: seungho baek <sbsh.baek@samsung.com>
12 months ago[NUI] Add FrontBufferRendering in WindowData (#5725)
Chihun Jeong [Tue, 7 Nov 2023 12:07:08 +0000 (21:07 +0900)]
[NUI] Add FrontBufferRendering in WindowData (#5725)

* [NUI] Add FrontBufferRendering in WindowData

* Add [EditorBrowsable(EditorBrowsableState.Never)] on every public value

---------

Co-authored-by: ANZ1217 <chihun.jeong@samsung.com>
12 months ago[System.Feedback] Add internal API to support get ids
Yunhee Seo [Wed, 8 Nov 2023 07:07:00 +0000 (16:07 +0900)]
[System.Feedback] Add internal API to support get ids

Allows getting feedback theme id array supported.

This is newly added to System.Feedback.
- public uint[] GetThemeIdsInternal(FeedbackType type)
     -> It returns the available id array defined in the conf file according to feedback type.

Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 months ago[System.Feedback] Change feedback theme api name index to id
Yunhee Seo [Wed, 8 Nov 2023 04:58:33 +0000 (13:58 +0900)]
[System.Feedback] Change feedback theme api name index to id

As policies dealing with feedback themes have changed from index to id-base selection,
API naming also changed from index to id.
Feedback themes are no longer treated sequentially, also not dependent on index.
It is managed through a unique id.

Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 months ago[Build] Modify the script that generates the TFM list (#5703)
JongHeonChoi [Mon, 13 Nov 2023 02:05:32 +0000 (11:05 +0900)]
[Build] Modify the script that generates the TFM list (#5703)

12 months ago[System] Add power internal APIs
Yunhee Seo [Thu, 2 Nov 2023 12:53:34 +0000 (21:53 +0900)]
[System] Add power internal APIs

Allows using native power internal APIs.

These are newly added to System/Device/Power
- public static void ConfirmWaitCallback(UInt64 wait_callback_id)
-> It informs the deviced that it is okay to take actual action to change state.
- public static void CancelWaitCallback(UInt64 wait_callback_id)
-> It informs the deviced of that it needs to undo the current transition.
- public static int ChangeState(PowerState state, int timeout_sec)
-> It Sends a request for changing power state asynchronously with timeout sec.
- public static int CheckRebootAllowed()
-> It checks if reboot is possible on the current device state.
- public static PowerTransitionReason GetWakeupReason()
-> It returns power wake up reason.
- public static PowerLockState GetLockState(PowerLock type)
-> It returns the status of power lock(locked/unlocked).

To notify callback event, 4 types EventHandler is added.
- public static event EventHandler<PowerStateChangeRequestEventArgs> StartStateChangeRequestCallback
- public static event EventHandler<PowerStateChangeRequestEventArgs> NormalStateChangeRequestCallback
- public static event EventHandler<PowerStateChangeRequestEventArgs> SleepStateChangeRequestCallback
- public static event EventHandler<PowerStateChangeRequestEventArgs> PoweroffStateChangeRequestCallback
- public static event EventHandler<PowerStateChangeRequestEventArgs> RebootStateChangeRequestCallback
- public static event EventHandler<PowerStateChangeRequestEventArgs> ExitStateChangeRequestCallback
-> With this eventhandler, it is possible to get event from ChangeState handling.
For example,
1. Add callback event to NormalStateChangeRequestCallback.
2. Request power state change with ChangeState(PowerState.Normal, timeout_sec)
3. After power state change request done, it returns result as invoke callback event.

- public static event EventHandler<PowerStateWaitEventArgs> StartStateWaitCallback
- public static event EventHandler<PowerStateWaitEventArgs> NormalStateWaitCallback
- public static event EventHandler<PowerStateWaitEventArgs> SleepStateWaitCallback
- public static event EventHandler<PowerStateWaitEventArgs> PoweroffStateWaitCallback
- public static event EventHandler<PowerStateWaitEventArgs> RebootStateWaitCallback
- public static event EventHandler<PowerStateWaitEventArgs> ExitStateWaitCallback
-> As adding event callback to above eventhandler, it is possible to get event
    when the power state changes to Specific Power state.
For example,
1. Add callback event to SleepStateWaitCallback.
2. When the power state changes to Sleep state, callback event will be invoked.

- public static event EventHandler<PowerTransientStateWaitEventArgs> TransientResumingEarlyStateWaitCallback
- public static event EventHandler<PowerTransientStateWaitEventArgs> TransientResumingStateWaitCallback
- public static event EventHandler<PowerTransientStateWaitEventArgs> TransientResumingLateStateWaitCallback
- public static event EventHandler<PowerTransientStateWaitEventArgs> TransientSuspendingEarlyStateWaitCallback
- public static event EventHandler<PowerTransientStateWaitEventArgs> TransientSuspendingStateWaitCallback
- public static event EventHandler<PowerTransientStateWaitEventArgs> TransientSuspendingLateStateWaitCallback
-> As adding event callback to above eventhandler, it is possible to get event
    during the power transition.
For example,
1. Add callback event to TransientResumingLateStateWaitCallback.
2. When the power transient state changes to ResumingLate state, callback event will be invoked.

- public static event EventHandler<PowerLockStateChangedEventArgs> CpuLockStateChangedCallback
- public static event EventHandler<PowerLockStateChangedEventArgs> DisplayNormalLockStateChangedCallback
- public static event EventHandler<PowerLockStateChangedEventArgs> DisplayDimLockStateChangedCallback
-> As adding event callback to above eventhandler, it is possible to get event
    when the power lock state is changed.
For example,
1. Add callback event to DisplayNormalLockStateChangedCallback.
2. When the DisplayNormal power lock state is changed, callback event will be invoked.

To use new APIs, below enumeration is also added.
- public enum PowerTransitionReason
-> It represents power transition reason
- public enum PowerState : uint
-> It represents power state.
- public enum PowerTransientState : uint
-> It represents power transient state.
- public enum PowerLockState
-> It represents power lock state locked or unlocked.

Detailed example, information is added to API/EventHandler/Enumeration definition.

Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 months ago[NUI] revert 'Make DaliAccessibilityDetachAccessibleObject called at main thread...
dongsug.song [Tue, 7 Nov 2023 04:15:01 +0000 (13:15 +0900)]
[NUI] revert 'Make DaliAccessibilityDetachAccessibleObject called at main thread' and check native object

12 months ago[NUI] version up (22251)
dongsug.song [Mon, 6 Nov 2023 11:11:33 +0000 (20:11 +0900)]
[NUI] version up (22251)

12 months ago[NUI] Fix some SVACE issues.
zhouhao02 [Tue, 31 Oct 2023 05:11:23 +0000 (13:11 +0800)]
[NUI] Fix some SVACE issues.

12 months ago[NUI] Add a Window constructor using WindowData (#5708)
Chihun Jeong [Fri, 3 Nov 2023 01:41:09 +0000 (10:41 +0900)]
[NUI] Add a Window constructor using WindowData (#5708)

* [NUI] Add a Window constructor using WindowData

* Add Information about WindowData to the summary

---------

Co-authored-by: ANZ1217 <chihun.jeong@samsung.com>
12 months ago[NUI] Remove basehandle usage at Accessibility static
Eunki, Hong [Mon, 30 Oct 2023 05:17:31 +0000 (14:17 +0900)]
[NUI] Remove basehandle usage at Accessibility static

Since we try to resolve some unusual behavior of BaseHandle,
the dummyHandle in Accessibility can give us some confuse logs.

Actually, we don't need to hold it as BaseHandle type. we only need this
as object type. So, let we make it as object, instead of BaseHandle.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Resolve many problems relative with BaseHandle
Eunki, Hong [Tue, 31 Oct 2023 03:59:36 +0000 (12:59 +0900)]
[NUI] Resolve many problems relative with BaseHandle

 - Ensure to get 'already registered, or create new one' what we get item from DALi engine
 - Let we also ensure create only one items if we use static ::Get() API
 - Do not register to Registry if we copy the reference.
  - Remove some useless copy constructor.
 - Do not register to Registry if we create empty object.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Do not register when BaseHandle doesn't have body
Eunki, Hong [Thu, 2 Nov 2023 07:44:01 +0000 (16:44 +0900)]
[NUI] Do not register when BaseHandle doesn't have body

If BaseHandle doesn't have body, the refCPtr value is IntPtr.Zero.

If than, the various cases have wrong registration in future.

To avoid this case, let we ignore to register to registry, and
make BaseHandle.registerMe value as false.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Reinforce NUI Sample for window
Wonsik Jung [Mon, 30 Oct 2023 12:43:30 +0000 (21:43 +0900)]
[NUI] Reinforce NUI Sample for window

Reinforce NUI Sample for window.
It has the sample for testing  window function.

12 months ago[Build] Create a dotnet library dir from the post script (#5710)
JongHeonChoi [Mon, 6 Nov 2023 00:40:08 +0000 (09:40 +0900)]
[Build] Create a dotnet library dir from the post script (#5710)

12 months ago[Build] Set the dotnet_core_runtime_version value to 6.0 (#5705)
JongHeonChoi [Mon, 6 Nov 2023 00:39:44 +0000 (09:39 +0900)]
[Build] Set the dotnet_core_runtime_version value to 6.0 (#5705)

12 months ago[MediaController] Fix CustomCommand crash issue (#5671)
Haesu Gwon [Thu, 2 Nov 2023 05:28:49 +0000 (14:28 +0900)]
[MediaController] Fix CustomCommand crash issue (#5671)

12 months ago[NUI.WindowSystem] Add SetSecondarySelection and UnsetSecondarySelection to fix typo
Junseok Kim [Wed, 1 Nov 2023 05:27:06 +0000 (14:27 +0900)]
[NUI.WindowSystem] Add SetSecondarySelection and UnsetSecondarySelection to fix typo

Add new requests SetSecondarySelection and UnsetSecondarySelection to alternate requests
SetSecondarySelction and UnsetSecondarySelction that have typo.

After all caller that typo requests have been removed, the typo request have been removed.

12 months ago[Build] Fixed an error that could not find the dotnet_resolving.info file (#5701)
JongHeonChoi [Thu, 2 Nov 2023 01:49:52 +0000 (10:49 +0900)]
[Build] Fixed an error that could not find the dotnet_resolving.info file (#5701)

12 months agoUpdate nuspec to add net6.0 group (#5695)
Jay Cho [Thu, 2 Nov 2023 01:49:15 +0000 (10:49 +0900)]
Update nuspec to add net6.0 group (#5695)

12 months agoVersion up nui22250
Taehyub Kim [Mon, 30 Oct 2023 11:14:45 +0000 (20:14 +0900)]
Version up nui22250

12 months agoMake DaliAccessibilityDetachAccessibleObject called at main thread
Eunki, Hong [Mon, 30 Oct 2023 04:49:51 +0000 (13:49 +0900)]
Make DaliAccessibilityDetachAccessibleObject called at main thread

void Dispose(bool) can be called from worker thread, when disposing value is false.

To ensure we detach AccessibileObject in main thread, let we remove it
at Dispose(DisposeTypes), instead of Dispose(bool).

To avoid this kind of error in future, let we remove View.Dispose(bool)
and let we only use Dispose(DisposeTypes).

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoDo not register when we try to copy same handle
Eunki, Hong [Mon, 30 Oct 2023 03:21:46 +0000 (12:21 +0900)]
Do not register when we try to copy same handle

Since we register to registry by BaseObjectPtr(), it is impossible to
register duplicated handle.

So, actually, we have to deplicate copy BaseHandle constructor.
But for now, just make we don't register into registry now.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoTemperary revert exception throw at Registry.
Eunki, Hong [Mon, 30 Oct 2023 01:42:20 +0000 (10:42 +0900)]
Temperary revert exception throw at Registry.

Until resolve all kind of apps fix wrong behavior,
let we just print error without exception.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoMake it works on net6.0
Eunki Hong [Thu, 26 Oct 2023 16:48:39 +0000 (01:48 +0900)]
Make it works on net6.0

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoResolve DisposeRecursively crashed when we dispose scrollbase
Eunki, Hong [Fri, 27 Oct 2023 09:47:55 +0000 (18:47 +0900)]
Resolve DisposeRecursively crashed when we dispose scrollbase

Due to some app's implements, ContentView can be disposed before ScrollBase
itself disposed. In this case, ContentView is not null.

So, when we try to call RemovePropertyNotification, it become crashed.

To avoid these cases, let we make DisposeRecursively API makes more safety.

And also, fix some crash issue in PerformanceTest1Page.xaml.cs what
can be problem in future.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoMake NativeImageQueue generate valid url
Eunki Hong [Thu, 26 Oct 2023 10:42:44 +0000 (19:42 +0900)]
Make NativeImageQueue generate valid url

Previously NativeImageQueue.GenerateUrl() binded to
invalid csharp API.

It will make some crash. So let we use valid bind API instead.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoAdd KeepWidgetSize for control widget's size
sunghyun kim [Thu, 26 Oct 2023 02:30:58 +0000 (11:30 +0900)]
Add KeepWidgetSize for control widget's size

WidgetView keep widget instance's size and don't resize even if WidgetView is resized.

12 months agoVersion up nui22249
Eunki, Hong [Wed, 25 Oct 2023 07:32:47 +0000 (16:32 +0900)]
Version up nui22249

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoRemove build warning for Control.Preload()
Eunki Hong [Tue, 24 Oct 2023 14:20:08 +0000 (23:20 +0900)]
Remove build warning for Control.Preload()

We implement View.Preload() API now. So compiler can feel dizzy
which one is Control.Preload() should do.

To avoid this compilation warning, let we add 'new' keyword for it.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoChange Accessibility.cs don't use net6.0 specific function
Eunki, Hong [Tue, 24 Oct 2023 08:26:26 +0000 (17:26 +0900)]
Change Accessibility.cs don't use net6.0 specific function

Let we minimize the net core dependency

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoSupports to set/get full screen sized window
Wonsik Jung [Tue, 24 Oct 2023 07:22:16 +0000 (16:22 +0900)]
Supports to set/get full screen sized window

To support set/get full screen sized window.
The full screen sized window means the window is resized with screen size.
In addition, this window is the z-order is the highest.

12 months agoFlush action implement for LottieAnimationView
Eunki, Hong [Tue, 24 Oct 2023 02:55:19 +0000 (11:55 +0900)]
Flush action implement for LottieAnimationView

Implement Flush action. It will be used when user
want to ensure the Lottie property changed applied sequencly.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoPreload some static values
Eunki, Hong [Tue, 24 Oct 2023 01:47:09 +0000 (10:47 +0900)]
Preload some static values

Since C# initialize static values when that namespace / class access first time,
We need to access some static values at static Preload() timing.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoBug fix when we get ModelNode from Model
Eunki, Hong [Mon, 23 Oct 2023 02:50:27 +0000 (11:50 +0900)]
Bug fix when we get ModelNode from Model

Since View constructor automatically change 'PositionUsesPivotPoint' value as false,
some logic might changed when we Register ModelNode newly.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoAdd an API to set offset for drag window
Taehyub Kim [Wed, 18 Oct 2023 11:07:38 +0000 (20:07 +0900)]
Add an API to set offset for drag window

12 months agoMake View.TooltipText return valid value
Eunki, Hong [Wed, 18 Oct 2023 07:16:27 +0000 (16:16 +0900)]
Make View.TooltipText return valid value

Let we remove useless error message + Make getter return valid setting value
for View.TooltipText property.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoMake AddFrameUpdateCallback with root view
Eunki, Hong [Wed, 18 Oct 2023 06:17:35 +0000 (15:17 +0900)]
Make AddFrameUpdateCallback with root view

Previously, we can only add the root view of FrameUpdateCallback as
root layer of window.

Now let we add some API that user can set specific view
for given FrameUpdateCallback will use.

This API will be used when we want to optimize callback behaviour.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoResolve registry issue for RenderTaskList
Eunki, Hong [Tue, 17 Oct 2023 06:24:58 +0000 (15:24 +0900)]
Resolve registry issue for RenderTaskList

After patch #5595 merged, there was some hidden bugs occured.
This PR is one of portential bug fix.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoFix the SVACE issue.
zhouhao02 [Tue, 17 Oct 2023 02:29:02 +0000 (10:29 +0800)]
Fix the SVACE issue.

12 months agoRemove build warning
Eunki Hong [Sun, 15 Oct 2023 01:13:11 +0000 (10:13 +0900)]
Remove build warning

- Add comment for public API
- Remove some unused private value/method

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoResolve registry issue for CanvasView Gradient
Eunki, Hong [Fri, 13 Oct 2023 04:40:56 +0000 (13:40 +0900)]
Resolve registry issue for CanvasView Gradient

Since we always try to register to Registry for Gradient case,
there can make some error for Shape use case.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months agoResolve TextLable build warning
Eunki Hong [Thu, 12 Oct 2023 14:51:41 +0000 (23:51 +0900)]
Resolve TextLable build warning

Reference documents : https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/

To refer to XML elements (for example, your function processes specific XML elements that you want to describe in an XML documentation comment), you can use the standard quoting mechanism (&lt; and &gt;).

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoFix Registry exception for custom view wrapper
Eunki Hong [Thu, 12 Oct 2023 14:24:45 +0000 (23:24 +0900)]
Fix Registry exception for custom view wrapper

1. PanGesture from Accessibility create new handle in
dali csharp side. We need to have memory ownership, but
don't need to register it on NUI side. We can ignore it.

2. For Animation and StyleManager, it is possible to use
that 'already registered' BaseHandle. But in this case,
we should not dispose it by our self.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoFix some SVACE issues.
zhouhao02 [Wed, 11 Oct 2023 06:05:52 +0000 (14:05 +0800)]
Fix some SVACE issues.

12 months agoFix Accessibility.Say interop
Artur Świgoń [Tue, 10 Oct 2023 16:21:03 +0000 (18:21 +0200)]
Fix Accessibility.Say interop

This is one of the oldest interops and was actually problematic for
multiple reasons; the return type didn't match and the third parameter
was expected to have exactly the same value in every invocation. While
fixing these issues, parsing the status string was moved from C++ to C#
for readability.

12 months agoAdd TextFitArray
Bowon Ryu [Tue, 10 Oct 2023 02:20:47 +0000 (11:20 +0900)]
Add TextFitArray

Add a new function to satisfy the UX that
operates TextFit by considering the PointSize and MinLineSize of the text.

For example, TextFit should be able to find the one that
fits among [PointSize 24 + MinLineSize 40] or [PointSize 28 + MinLineSize 44].

But the previous TextFit only considers PointSize.

TextFitArray can solve this problem,
and this implemented it to respond to additional requirements without modifying the API.

https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/299557/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/299690/

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
12 months agorevert default key construct
joogab.yun [Tue, 10 Oct 2023 07:51:35 +0000 (16:51 +0900)]
revert default key construct

refer : https://github.com/Samsung/TizenFX/pull/5589/

12 months agobug fixed about cMemoryOwn refer : https://github.com/Samsung/TizenFX/pull/5603
joogab.yun [Tue, 10 Oct 2023 05:00:31 +0000 (14:00 +0900)]
bug fixed about cMemoryOwn refer : https://github.com/Samsung/TizenFX/pull/5603

12 months agoFix some SVACE issues of null reference.
zhouhao02 [Sun, 8 Oct 2023 09:23:08 +0000 (17:23 +0800)]
Fix some SVACE issues of null reference.

12 months agoConsider WeakReference resurrection at Registry.
Eunki Hong [Sun, 8 Oct 2023 07:22:56 +0000 (16:22 +0900)]
Consider WeakReference resurrection at Registry.

Since NUI use DisposeQueue system instead of GC directly,
the lifecycle of WeakReference may need to be alive more times.

If we make trackResurrection as false, WeakReference.Target
become null when the item is in DisposeQueue.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoBaseHandle without Registry but own memory
Eunki Hong [Sun, 8 Oct 2023 07:02:42 +0000 (16:02 +0900)]
BaseHandle without Registry but own memory

There are some usecase s.t. we have to call ReleaseSwigCPtr
but don't want register to Registry.

For example, PixelBuffer and PixelData dont need to be create
only for main thread.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoRemove build warnings
Eunki Hong [Sun, 8 Oct 2023 07:32:54 +0000 (16:32 +0900)]
Remove build warnings

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months agoFix some SVACE issues related to methods of Marshal.
zhouhao02 [Sun, 8 Oct 2023 01:21:10 +0000 (09:21 +0800)]
Fix some SVACE issues related to methods of Marshal.

12 months agoFix some SVACE issues.
zhouhao02 [Wed, 27 Sep 2023 03:03:30 +0000 (11:03 +0800)]
Fix some SVACE issues.

12 months agoLet registry throw exception at error case
Eunki, Hong [Tue, 26 Sep 2023 06:25:43 +0000 (15:25 +0900)]
Let registry throw exception at error case

Let we throw exception if same object try to register.

Moreover, let we print more useful callstack if we got unmatched case.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[Nsd] Fix ASAN crash (#5694)
Seonah Moon [Tue, 31 Oct 2023 11:06:13 +0000 (20:06 +0900)]
[Nsd] Fix ASAN crash (#5694)

12 months ago[WiFi] Fix ASAN crash (#5693)
Seonah Moon [Tue, 31 Oct 2023 10:13:03 +0000 (19:13 +0900)]
[WiFi] Fix ASAN crash (#5693)

12 months ago[Build] the dotnet_resolving.info file has been renamed (#5686)
JongHeonChoi [Tue, 31 Oct 2023 05:45:04 +0000 (14:45 +0900)]
[Build] the dotnet_resolving.info file has been renamed (#5686)

12 months ago[Build] Create vconf related to .NET as a file in RO location (#5682)
JongHeonChoi [Tue, 31 Oct 2023 04:12:23 +0000 (13:12 +0900)]
[Build] Create vconf related to .NET as a file in RO location (#5682)

12 months ago[Connection] Fix ASAN crash issue (#5625)
Seonah Moon [Tue, 17 Oct 2023 07:16:24 +0000 (16:16 +0900)]
[Connection] Fix ASAN crash issue (#5625)

12 months agoDeprecating Tizen.Messaging.Messages APIs (#5593)
k-jaju [Tue, 17 Oct 2023 06:57:03 +0000 (12:27 +0530)]
Deprecating Tizen.Messaging.Messages APIs (#5593)

Signed-off-by: Krishna Kant Jaju <krishna.jaju@samsung.com>
Co-authored-by: randeepsingh01 <49635973+randeepsingh01@users.noreply.github.com>
12 months agoChange visibility of NUIGadgetResourceManager ctor (#5626)
hjhun [Tue, 17 Oct 2023 04:47:29 +0000 (13:47 +0900)]
Change visibility of NUIGadgetResourceManager ctor (#5626)

The visibility of NUIGadgetResourceManager(NUIGadgetInfo info) is
changed to public.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoUse Marshal.FreeHGlobal() instead of Libc.Free() (#5628)
hjhun [Tue, 17 Oct 2023 04:40:33 +0000 (13:40 +0900)]
Use Marshal.FreeHGlobal() instead of Libc.Free() (#5628)

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoMerge branch 'API11' of http://github.com/Samsung/TizenFX into API11
Jay Cho [Mon, 30 Oct 2023 08:48:05 +0000 (17:48 +0900)]
Merge branch 'API11' of github.com/Samsung/TizenFX into API11

12 months ago[NUI][AT-SPI] Detach NUIViewAccessible in View.Dispose()
Artur Świgoń [Thu, 19 Oct 2023 15:53:40 +0000 (17:53 +0200)]
[NUI][AT-SPI] Detach NUIViewAccessible in View.Dispose()

The application may crash if the View is disposed but the Accessibility
infrastructure calls one of the View methods. Detaching the
NUIViewAccessible proxy object in View.Dispose() should prevent that.

12 months agoDeprecating Tizen.Messaging.Email APIs (#5596)
priyakohl [Mon, 16 Oct 2023 11:37:35 +0000 (17:07 +0530)]
Deprecating Tizen.Messaging.Email APIs (#5596)

* Deprecating Tizen.Messaging.Email APIs

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
* Added using System

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
* Modified Note

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
---------

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
Co-authored-by: randeepsingh01 <49635973+randeepsingh01@users.noreply.github.com>
12 months ago[Tdbc] Fix UpdateHookCallback released issue (#5528)
ChangGyu Choi [Thu, 12 Oct 2023 00:13:23 +0000 (09:13 +0900)]
[Tdbc] Fix UpdateHookCallback released issue (#5528)

The issue is that if you don't keep a reference to the UpdateHookCallback,
it may be garbage collected before it is used.

UpdateHookCallback should be referenced during used this.

Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Co-authored-by: pjh9216 <jh9216.park@samsung.com>
12 months agoDeprecating Tizen.Location.Geofence APIs (#5598)
priyakohl [Wed, 11 Oct 2023 05:38:12 +0000 (11:08 +0530)]
Deprecating Tizen.Location.Geofence APIs (#5598)

* Deprecating Tizen.Location.Geofence APIs

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
* Removing type

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
* Indentation fixes

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
* Modified Note

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
---------

Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
Co-authored-by: randeepsingh01 <49635973+randeepsingh01@users.noreply.github.com>
12 months ago[NUI] Let we don't dispose cached LastEvents
Eunki, Hong [Tue, 26 Sep 2023 02:51:06 +0000 (11:51 +0900)]
[NUI] Let we don't dispose cached LastEvents

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Implement defaut key construct
Eunki Hong [Mon, 25 Sep 2023 16:22:41 +0000 (01:22 +0900)]
[NUI] Implement defaut key construct

Let we use default key creation API if we only need to use
empty key handle.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Do not registry last event items who get retrieved
Eunki, Hong [Mon, 25 Sep 2023 05:38:22 +0000 (14:38 +0900)]
[NUI] Do not registry last event items who get retrieved

Since we change BaseObject internally when we use
Interop.Window.InternalRetrievingLast~~~Event(~~) function.

This behaviour might occure some error cases when we use
Registry system.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
12 months ago[NUI] Version Update (22245)
Jiyun Yang [Mon, 25 Sep 2023 06:21:14 +0000 (15:21 +0900)]
[NUI] Version Update (22245)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
12 months agoAdd VisualFactory.UsePrecompiledShader()
seungho baek [Mon, 25 Sep 2023 03:16:45 +0000 (12:16 +0900)]
Add VisualFactory.UsePrecompiledShader()

Signed-off-by: seungho baek <sbsh.baek@samsung.com>
12 months ago[NUI] Add widget list for keeping widget instance
sunghyun kim [Mon, 25 Sep 2023 04:38:06 +0000 (13:38 +0900)]
[NUI] Add widget list for keeping widget instance

widget need to keep it's instance

12 months ago[NUI] Binding DispatchTouchMotion and DispatchHoverMotion
joogab.yun [Thu, 21 Sep 2023 06:25:39 +0000 (15:25 +0900)]
[NUI] Binding DispatchTouchMotion and DispatchHoverMotion

These determine whether to send touch and hover motion events or not.
This is used when the user does not want to receive motion events.

12 months ago[NUI] Add HoverEvent in Window
joogab.yun [Mon, 28 Aug 2023 06:10:16 +0000 (15:10 +0900)]
[NUI] Add HoverEvent in Window

Window window = NUIApplication.GetDefaultWindow();
window.HoverEvent += OnHover;

private void OnHover(object source, Window.HoverEventArgs e)
{
  // e.Hover.GetState(0); // PointStateType.Motion;
}

12 months ago[NUI] bug fixed about windowPointerConstraintsEventCallback
joogab.yun [Wed, 20 Sep 2023 08:10:21 +0000 (17:10 +0900)]
[NUI] bug fixed about windowPointerConstraintsEventCallback

12 months ago[NUI.WindowSystem] Add new request of KVM Service
Junseok Kim [Wed, 30 Aug 2023 07:23:02 +0000 (16:23 +0900)]
[NUI.WindowSystem] Add new request of KVM Service

Add new request of KVM Service as below:
 - ReceiveDragData: Request to get current drag data.
 - CancelDrag: Request to cancel current drag.

12 months ago[NUI.WindowSystem] Introduce the new InputGenerate feature
Junseok Kim [Thu, 14 Sep 2023 05:07:47 +0000 (14:07 +0900)]
[NUI.WindowSystem] Introduce the new InputGenerate feature

12 months ago[NUI] Public RemoveBinding and ClearBinding apis
Xianbing Teng [Tue, 17 Oct 2023 10:49:49 +0000 (18:49 +0800)]
[NUI] Public RemoveBinding and ClearBinding apis

12 months ago[System.Feedback] Add feedback theme index range description
Yunhee Seo [Thu, 19 Oct 2023 04:37:28 +0000 (13:37 +0900)]
[System.Feedback] Add feedback theme index range description

The index of sound theme range is 1 ~ N according to conf file.
This index range should be considered when using feedback theme index getter/setter.

Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 months ago[NUI] fix IME window crash issue
dongsug.song [Tue, 26 Sep 2023 09:39:21 +0000 (18:39 +0900)]
[NUI] fix IME window crash issue

13 months ago[System.Feedback] Add new feedback_pattern
Yunhee Seo [Thu, 12 Oct 2023 07:44:39 +0000 (16:44 +0900)]
[System.Feedback] Add new feedback_pattern

Below feedback pattern is supported by mapping feedback pattern id number.
- FEEDBACK_PATTERN_WELCOME
- FEEDBACK_PATTERN_AUTO_DOOR_OPEN

Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months ago[ThumbnailExtractor] Fix VD SVACE issue - incomplete switch (#5608)
Haesu Gwon [Tue, 10 Oct 2023 08:22:25 +0000 (17:22 +0900)]
[ThumbnailExtractor] Fix VD SVACE issue - incomplete switch (#5608)