summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Chanhee Lee [Thu, 21 Oct 2021 05:59:19 +0000 (14:59 +0900)]
Add arguments validation to Java APIs.
[Problem] There are not arguments validation in some Java APIs.
[Solution] Add null-checks and other validation logics to Java APIs.
* Add exceptions to Java class constructors.
* Synchronize the return type of setEventListener.
* Synchronize return types of Java functions.
* Add instance null-checkings to all Java APIs.
* Apply NonNull annotation.
* Apply PowerMock to handle static initialization blocks.
Change-Id: I978e78ab2028a0acdfdf1cf398485ffd81e5db89
Sung-jae Park [Tue, 19 Oct 2021 05:13:33 +0000 (14:13 +0900)]
Simplify the event handling of java implementation
[Problem] There is unnecessary codes for handling the event
[Solution] Simplify the event handling code. Use the event listener instead of an instance
* Handling the set(null) for the event listener
Change-Id: I72f608816050533357c62884c75d723744cf307a
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Tue, 19 Oct 2021 04:32:13 +0000 (13:32 +0900)]
Hide android context configuration from a user
[Problem] user does not want to do set the android context
[Solution] set the android context automatically
Change-Id: I5ed43835baf6c17c00ca31529736f39323d40ac3
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Tue, 19 Oct 2021 04:31:44 +0000 (13:31 +0900)]
Move out the module dependent code to the module
* Move out the module dependent code to the module
[Problem] libbeyond-android must not depend on a specific module
[Solution] move the peer_nn dependent code to the peer_nn module
* Release dlHandle properly when the initialization sequences get an error
* Initialize the android context when the peer is created
* Hide applicationContext configuration from the user
* Apply the review comments and sync to the latest Configure implementation
* Initialize the GST only if the platform is not Android
Change-Id: I7de2acebfca41a8c52b771cdfdcf952feb508824
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Tue, 19 Oct 2021 02:03:13 +0000 (11:03 +0900)]
Add AttachEventLoop() method
[Problem] There are duplicated codes
[Solution] Extract them to a method and then move it to the Parent Class
* AttachEventLoop() can be moved to the NativeInterface class later
Change-Id: Ib89bae76bf89745ea10cc102a663bf2d97ce21b3
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Chanhee Lee [Tue, 19 Oct 2021 01:20:45 +0000 (10:20 +0900)]
Add asynchronous Java inference execution.
* Add a test case for asynchronous executions in Java inference API.
- A test case for setting an output callback is added in Java
instrumentation tests.
- Android Looper is added in inference JNI.
* Update the test case.
* Update the Java callback function.
* Add debugging logs.
* Move setOutputCallback to Peer.
* Delete unused code.
* Add event loop logics to inference JNI.
* Get tensor outputs in JNI output callback.
* Update tensor JNI.
* Fix the creation of ByteByffer array,
* Add a tensor creation method.
* Remove debug messages.
* Change the type and name of OutputCallback class.
* Remove a dupliated test case.
* Delete unused code.
* Add missing copyrights.
* Fix warnings due to unused variables.
* Replace repeated code as functions.
* Add DeleteLocalRef and ExceptionCheck functions.
* Rename functions following coding convention.
* Update test cases.
* Rename OutputCallback to EventListener in Peer class.
* Refactor functions.
* Reflect review comments.
* Refactor code and add resource deallocations.
* Move a global static variable to a member variable.
Change-Id: I580a66a0732275e13678f2a1ec38f4c034aaecea
Chanhee Lee [Fri, 15 Oct 2021 06:21:30 +0000 (15:21 +0900)]
Fix a null-checking to prevent return.
[Problem] A wrong variable is null-checked and display an error log.
[Solution] Null-Check a correct one.
Change-Id: I2ba407fe3513b3e2e13a289fc13fafd19958dd72
Sung-jae Park [Thu, 14 Oct 2021 00:08:07 +0000 (09:08 +0900)]
Fixup typo
[Problem] There is an typo of SIGNATURE
[Solution] Fix it up
Change-Id: I487c2ebe7d989bf6ba9a39cc4ae362a640ff3cc2
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Chanhee Lee [Tue, 12 Oct 2021 08:03:54 +0000 (17:03 +0900)]
Fix failed test cases.
* Add a missing exclamation mark.
* Check the return value of isDefined function explicitly.
* Fix a discovery test case which fails.
Change-Id: I87407ad5613bc61e9a58afc459112ebd616bba5f
Youngjae Shin [Tue, 12 Oct 2021 05:43:26 +0000 (14:43 +0900)]
apply gtest_filter for build time test
Change-Id: If5eb937af2f02dd412bfef293777f43a82ef647c
Chanhee Lee [Tue, 12 Oct 2021 01:04:17 +0000 (10:04 +0900)]
Add null checks and non-instrumented TCs for inference package.
* Change null returns into exceptions.
Change-Id: I537cfed6aabc63f922a5a7100eaff26073b1bbf3
Juyeon Lee [Tue, 5 Oct 2021 00:30:38 +0000 (09:30 +0900)]
Add downwards state change for client
drop the final reference, to allow them to clean up
Change-Id: I0a6d0df43e9c9ef40a4192db09ba85ccdaee76ae
Kartik Anand [Fri, 1 Oct 2021 08:06:57 +0000 (13:36 +0530)]
Modify VP8 encoding to improve performance
* Modify VP8 encoding to improve performance
* Add/modify gstreamer elements to improve video input pipeline performance
Change-Id: I982d387b78a3b6ae1b59e2825569e8ffb20df5e4
Sung-jae Park [Fri, 1 Oct 2021 04:06:05 +0000 (13:06 +0900)]
Add a Java event data class for the discovery event
[Problem] Java BeyonD Device application cannot get the event data
[Solution] Add an eventObject for the discovery event
Change-Id: I22fdee660f9aa5c71389233fddd895832f6c3304
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Chanhee Lee [Thu, 30 Sep 2021 11:18:48 +0000 (20:18 +0900)]
Reduce the transformation steps of tensor information.
* Reduce the transformations of tensor information.
- Instead of using ArrayLists transformed from TensorInfo instances,
TensorInfo instances are directly transferred to and used in JNI.
* Simplify null checking.
* Replace hard-code into constant variables.
* Replace GetMethodID functions.
* Rename check_null_with_free function.
* Refactor private functions.
* Add exception handling for JNI function calls.
* Adjust try-catch positions.
* Remove unnecessary functions.
* Add release functions for JNI objects.
Change-Id: Ibb0fc2671d6dfd02b3c66a3b4cc3dfc2278c8245
Sung-jae Park [Tue, 28 Sep 2021 06:15:14 +0000 (15:15 +0900)]
Remove unnecessary information field from peer
[Problem] There is unnecessary field for the peer information
[Solution] Delete the service name field
Change-Id: I7146b9df41f6f7320ca079f5ec10ec7233e0f997
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Juyeon Lee [Tue, 28 Sep 2021 03:00:51 +0000 (12:00 +0900)]
Beyond_eval use generic discovery api
Change-Id: Ief0f84903bc097649b37d502bb48062ffeb687b8
Sung-jae Park [Mon, 27 Sep 2021 23:40:26 +0000 (08:40 +0900)]
Change c style to cpp style handle management
[Problem] C Style structure inheritance is implemented
[Solution] Use the class/struct inheritance
Change-Id: Ie9de53845f527360944a621030a32e019886be53
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 23:40:09 +0000 (08:40 +0900)]
Clean up legacy codes
[Problem] There are unused code
[Solution] Clean up all legacy implementations
Change-Id: I31aff15348154c160eb70c56b797f388a74b7225
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 04:27:15 +0000 (13:27 +0900)]
Change a lambda implementation to a static function
[Problem] There is a review comment that is related to the code readability
[Solution] Create a new function for the lambda code
Change-Id: I6e2d66024ef98bd1fe71da3d06bf01b23aa1385c
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 04:26:48 +0000 (13:26 +0900)]
Implement the generic CAPI for the discovery
[Problem] Generic CAPI for the Discovery is not implemented
[Solution] Implement the Generic CAPI
Change-Id: I5077bbae4f1ff14e8695cb9b4dd00726b57e6aa4
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 01:56:40 +0000 (10:56 +0900)]
Add GetInfo for the Java API
[Problem] There is no way to get the automatically allocated port number from the peer
[Solution] Add GetInfo method to the peer class
* Create the information class to get and set the peer information
Change-Id: I40f71e8b3c5a595d4df10e7e5d7b03d8d4e1dac1
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Youngjae Shin [Thu, 23 Sep 2021 06:04:58 +0000 (15:04 +0900)]
fix typo in test program
Change-Id: I360ee4d36d5ca8d0ffd0e10c00d903c7df4b5f3c
Sung-jae Park [Thu, 23 Sep 2021 02:28:06 +0000 (11:28 +0900)]
[CWE-252] Fixup the coverty issue
[Problem] 1241492 Unchecked return value
[Solution] check the return status of each close() call
Change-Id: I97f174223ddd4d756e53e6800323e6e092397da6
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Juyeon Lee [Thu, 23 Sep 2021 01:00:33 +0000 (10:00 +0900)]
Add discovery set/remove item capi
Change-Id: I9ebd7bc760cde8c2da4964875d2fdc98446423ee
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
Youngjae Shin [Wed, 22 Sep 2021 22:36:29 +0000 (07:36 +0900)]
add initializer for function variables
Change-Id: I5aa8e22f3d50b53f1509d3f54cf57711e032a477
Sung-jae Park [Fri, 17 Sep 2021 13:05:05 +0000 (22:05 +0900)]
Provide a way to set UUID for the Java API
[Problem] There is no way to set the UUID
[Solution] Add uuid as a third parameter of setInfo and change it from setIpPort
* Delete dangling header which has no body
Change-Id: I2a6753e30270619dc01ea18c41161b0f57df2a6d
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Youngjae Shin [Fri, 17 Sep 2021 10:50:25 +0000 (19:50 +0900)]
remove unnecessary null check
Change-Id: Ic1d305a51b7387c7f18d768eee204bebb6c5d58d
Youngjae Shin [Fri, 17 Sep 2021 05:30:48 +0000 (14:30 +0900)]
remove main function in unittest by using gtest_main
Change-Id: I19ae4166eb86c241d3820f7dd2b0046107eace4f
Chanhee Lee [Fri, 17 Sep 2021 04:45:52 +0000 (13:45 +0900)]
Update Copyright and the package name of TensorHandlerUnitTest.
Change-Id: I11041d536f3b998e46e896840a396ae3a618b45f
Sung-jae Park [Fri, 17 Sep 2021 04:44:29 +0000 (13:44 +0900)]
Fixup same manner to previous svace patch
[Problem] There was a svace alert for the resource leak
[Solution] Fixup like what the previous patch did
* This and previous patch is not possible to happen
However, for the safe-coding, applies this patch too
Change-Id: I44d86a280d184287f6025e763b8d2d2a55cedcdf
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Youngjae Shin [Thu, 16 Sep 2021 22:34:19 +0000 (07:34 +0900)]
increase code quality with static analysis
Change-Id: I06e1fa0da0eef0b52335c5307cb789face6c0f62
Youngjae Shin [Wed, 15 Sep 2021 08:47:02 +0000 (17:47 +0900)]
remove random()
Change-Id: Ia28ff330a0b31eabe06399f7b233cd0e910816cd
Youngjae Shin [Wed, 15 Sep 2021 08:26:07 +0000 (17:26 +0900)]
revise file handling code
Change-Id: I42536e82266e4d5cab39ebdb031f85c36561b4e0
Juyeon Lee [Wed, 15 Sep 2021 00:31:42 +0000 (09:31 +0900)]
Remove service name exception
Change-Id: I0679b7774b666572bd833a0c7a82051c188603b7
김준민/MDE Lab(SR)/Engineer/삼성전자 [Tue, 14 Sep 2021 08:08:48 +0000 (17:08 +0900)]
Rename service name if passed name is different
Change-Id: If21de515d427bd59e36ee335c4acc392f422401e
Youngjae Shin [Tue, 14 Sep 2021 07:31:31 +0000 (16:31 +0900)]
revise ambiguous sizeof
Change-Id: I2cd5a04042657b4a55c313109030fc9e0e0d1edf
Youngjae Shin [Tue, 14 Sep 2021 05:48:18 +0000 (14:48 +0900)]
initial code
Change-Id: Ia7d37313af72440949332bebf1c0ad8381e14a3a
Tizen Infrastructure [Fri, 10 Sep 2021 08:10:21 +0000 (08:10 +0000)]
Initial empty repository