Commit graph android_device_samsung_a20/universal7885-common/apps/aidl-support/fm
Author SHA1 Message Date
roynatech2544
06ca6c2ea6 universal7885: fm-aidl: Implement new settype
Creates a thread that can poll pid value passed by this settype. Can track the client status with this
2022-10-28 23:38:04 +09:00
roynatech2544
0a1bb46140 universal7885: fm-aidl: Add new settype, FM_APP_PID 2022-10-28 23:35:58 +09:00
roynatech2544
51e39482e0 Revert "universal7885: fm-aidl: x1000 to userspace freq"
- Reset the last one too.

This reverts commit 1ba74af74b.
2022-10-26 17:56:43 +09:00
roynatech2544
666b99ecec universal7885: fm-aidl: Call std:🧵:detach()
To run without being terminated because thread ref is no longer there
2022-10-23 14:21:48 +09:00
roynatech2544
5a70eb4ed3 universal7885: fm-aidl: Unlock and relock to thread 2022-10-23 14:21:48 +09:00
roynatech2544
092cf54ced universal7885: Remove eureka_defaults treewide
clang-tidy checks doesn't make it best code
2022-10-23 14:21:45 +09:00
roynatech2544
a06a00d26b universal7885: libfm-impl: Refactor
- Launch a sperate thread for polling (std::thread)
- Include logging about ioctl failures
2022-10-23 13:15:36 +09:00
roynatech2544
dd4e9fb547 universal7885: fm-aidl: increase threadpool count 2022-10-23 13:15:36 +09:00
roynatech2544
ec1db378bd universal7885: fm-aidl: MiddleState: Bounds checking
we need at least 2 elements on the vector. If it doesn't meet the requirements, return nullptr to keep it as-is unmodified.
2022-10-22 17:32:33 +09:00
roynatech2544
1ba74af74b universal7885: fm-aidl: x1000 to userspace freq 2022-10-22 13:04:04 +09:00
roynatech2544
8beec828f7 universal7885: fm-aidl: Fix deadlock on get mutex locked
- We started the function ensuring mutex is locked, and in the middle trying to lock again for return. This will cause deadlock or returning false forever. Therefore, put an if condition before locking at start of the function
2022-10-22 11:56:30 +09:00
roynatech2544
b9c6e96e83 universal7885: fm-aidl: Handle middle states for manual freq setting
Also move FM support instance to vector cached
2022-10-22 10:26:08 +09:00
roynatech2544
1c59e28be9 universal7885: fm-aidl: Move to V2 version
- Also sort out common sysfs path
- Also fix Android.bp formatting
2022-10-21 10:28:04 +09:00
roynatech2544
5dcbb73be6 universal7885: fm-aidl: freeze-api, update-api, add mutex locked getype 2022-10-20 09:42:52 +00:00
roynatech2544
a87aa48ec4 universal7885: fm-aidl: Remove next_freq/before_freq helpers
This code is working, but it will query the H/W next channel everytime resulting in different freq than the list
2022-10-20 17:44:17 +09:00
roynatech2544
d05c95ce7f universal7885: fm-aidl: Add a new settype
- Will save freqs list on HAL
2022-10-20 17:42:32 +09:00
roynatech2544
6e880ecd28 universal7885: fm-aidl: Export channel spacing 2022-10-20 14:46:49 +09:00
roynatech2544
6fedd9490f universal7885: fm-aidl: libfm-impl: Use int32_t for all stuff 2022-10-20 14:44:10 +09:00
roynatech2544
30f8177b3d universal7885: fm-aidl: Use std::timed_mutex to provide thread safe operation
- Also sort out common macro to new header
2022-10-18 00:48:46 +09:00
roynatech2544
41a3c2f0b1 universal7885: aidl-support: Fixup build errors 2022-10-17 17:57:43 +09:00
roynatech2544
4ef818a802 universal7885: aidl-support: Add audio route hal to fake audioserver uid 2022-10-17 17:57:43 +09:00
roynatech2544
b882728b9c universal7885: fm-aidl: Set max threads to 3
1. support instance
2. default instance
3. binder transaction
2022-10-11 04:07:03 +00:00
roynatech2544
b226436fc7 universal7885: aidl-support: Fork subprocess to setuid 2022-10-11 03:00:44 +09:00
roynatech2544
531ad80afa universal7885: aidl-support: Allow platform API on java backend
To use vintf stability, we need to call android.os.Binder.markVintfStability() which is marked as SystemAPI and thus hidden to non-platform API module
2022-10-09 09:37:54 +00:00
roynatech2544
0f7eea2bbe universal7885: aidl-support: Update hashes
system/tools/aidl/build/hash_gen.sh device/samsung/universal7885-common/apps/aidl-support/fm/aidl_api/ 1 device/samsung/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/1/.hash
2022-10-09 05:39:36 +00:00
roynatech2544
65fa2766f4 universal7885: aidl-support: Make a stable version 2022-10-09 05:23:21 +00:00
roynatech2544
61d1efb082 universal7885: fm-aidl: Fix undeclared variable 2022-10-08 13:37:57 +09:00
roynatech2544
946f4768e9 universal7885: FMRadio: Remove source edit
If the AIDL hal which can be allowed to change uid calls audioflinger API to change route, we don't need to change source for it. seteuid(audioserver_uid) will work fine
2022-10-08 01:12:37 +09:00
roynatech2544
4296d27bea rootdir: Drop chown fastcharge sysfs to system
Also fix errors of aidl
2022-10-08 00:04:59 +09:00
roynatech2544
76ac588516 universal7885: Export channel buffer size as cc_default 2022-10-07 13:42:24 +09:00
roynatech2544
b6537a107b universal7885: Unify IFMSysfsSupport to IFMDevControl
Also update sepolicy svc ctx
2022-10-07 13:39:07 +09:00
roynatech2544
453f0f5f48 universal7885: fm-aidl: Fix a derp
Should join threadpool here
2022-10-06 14:25:43 +00:00
roynatech2544
6fdc377216 universal7885: fm-aidl: Rename interfaces and fix errors 2022-10-06 14:10:42 +00:00
roynatech2544
839dc3ae4c universal7885: fm-aidl: Move ioctl code to hal 2022-10-06 10:21:42 +00:00
roynatech2544
7beedaa4e4 universal7885: Move FM HAL to AIDL impl 2022-10-05 09:59:36 +00:00
roynatech2544
efc9f1063b universal7885: aidl-support: Mark unstable and fix errors 2022-10-05 09:59:34 +00:00
roynatech2544
a8eed8f2aa universal7885: fm-hidl -> fm-aidl 2022-10-05 09:59:31 +00:00