Commit graph android_device_samsung_a20/universal7885-common/apps/aidl-support
Author SHA1 Message Date
roynatech2544
c55b034a4b
universal7885: Remove parts/its hal, remenants 2023-11-29 14:18:38 +09:00
roynatech2544
4eedff457a
universal7885: aidl-support: Add owners property
error: device/samsung/universal7885-common/apps/aidl-support/fm/Android.bp:1:1: module vendor.eureka.hardware.fmradio_interface: owner: aidl_interface in a soong_namespace must have the 'owner' property set.
13:04:27 soong bootstrap failed with: exit status 1
2023-11-25 11:31:27 +09:00
roynatech2544
188737dfe5 unuversal7885: parts-aidl: Display: format changes
* Let compiler auto infer lambda's type
* Change signature to clearify the usage
2022-12-23 19:24:03 +09:00
roynatech2544
2ed3af296a universal7885: fm-aidl: impl: strerror(errno) 2022-12-23 19:23:54 +09:00
roynatech2544
13b24586ba universal7885: fm-aidl: impl: Use source provided videodev2 header 2022-12-23 19:23:54 +09:00
roynatech2544
ae4aef0ba3 universal7885: parts-aidl: Check r/w perms 2022-12-23 19:23:54 +09:00
roynatech2544
8d728a6111 universal7885: libfileio: Fix the unoverloadable function error
device/samsung/universal7885-common/apps/aidl-support/libfileio/FileIO.cpp:27:5: error: functions that differ only in their return type cannot be overloaded
int readline(const char *path) {
~~~ ^
device/samsung/universal7885-common/apps/aidl-support/libfileio/FileIO.cpp:12:13: note: previous definition is here
std::string readline(const char *path) {
~~~~~~~~~~~ ^
1 error generated.

- Rename int version to 'readint' to fix
2022-12-23 19:23:54 +09:00
roynatech2544
4ad9296609 universal7885: aidl-support: Add new signature for readline()
std::string readline(const char *)
2022-12-23 19:23:54 +09:00
roynatech2544
e8bbe8517f universal7885: parts-aidl: Implement new interface 2022-12-23 19:23:54 +09:00
roynatech2544
9799db2a28 universal7885: parts-aidl: Add new interface 2022-12-23 19:23:54 +09:00
roynatech2544
bf6b6eff34 universal7885: aidl-support: Cut off dirs on __FILE__ 2022-11-15 12:44:58 +09:00
roynatech2544
82d8c4eca9 universal7885: fm-aidl: impl: Fix namespace error 2022-11-10 22:43:49 +09:00
roynatech2544
fbc8d8ccc3 universal7885: libfm: Use std::atomic for thread stopper 2022-11-10 11:52:38 +09:00
roynatech2544
7d23777f39 universal7885: fm-aidl: Run clang-format 2022-11-09 19:05:53 +09:00
roynatech2544
f2228a093e universal7885: parts-aidl: Run clang-format on smartcharge impl 2022-11-09 19:05:53 +09:00
roynatech2544
5aab0c64ed universal7885: parts-aidl: Concat swap related code to one file
Also run clang-format
2022-11-09 19:05:39 +09:00
roynatech2544
12490a5eaf universal7885: aidl-support: Disable verbose logs by def 2022-11-08 11:53:30 +09:00
roynatech2544
f31d63aeb9 universal7885: fm-aidl: Allocate threads on heap
Then we don't have to call detach() to keep running without terminating, so we can keep a reference to thread object so its better
2022-11-08 11:39:55 +09:00
roynatech2544
d222619857 universal7885: libfm_slsi-impl: Correct strerror usage
strerror(errno) is correct
2022-11-07 20:24:40 +09:00
roynatech2544
111f3529ae universal7885: fm-aidl-support: Cleanup logs
- __func__ macros in lambda is useless, nuke it
- Append function name on impl lib
- Remove useless logging
2022-11-03 20:39:15 +09:00
roynatech2544
6c962d35a8 universal7885: fm-aidl: Always sort the fetched track list 2022-11-03 19:59:35 +09:00
roynatech2544
0be8f2929f universal7885: fm-aidl: Add missing dep to liblogformat
- Also fix errors
2022-11-01 18:51:15 +09:00
roynatech2544
8957783333 universal7885: aidl-support: Adapt to liblogfmt changes 2022-11-01 13:55:18 +09:00
roynatech2544
917fc7ecf1 universal7885: liblogformat: Add helpers to avoid -Wformat-security warns/errors
- Also make warning if LOG_TAG is not defined
2022-11-01 13:55:14 +09:00
roynatech2544
60659bf10c universal7885: liblogfmt: IDKIDC -Wformat-security 2022-11-01 12:31:22 +09:00
roynatech2544
5c7c906519 universal7885: fm-aidl: Fixups
- libfileio: Move back to liblog.
- FMDevCtrl: Add some loggings
- FM-app: Call open() before set(apppid)
2022-11-01 12:16:27 +09:00
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
efa3468e1a universal7885: libFileIO: switch to libbase log header and logformat 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
b5a6677f60 universal7885: aidl-support: Add a common header for log format 2022-10-23 13:15:18 +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
820eeff595 universal7885: parts-aidl: No need to set the bool every 5s 2022-10-18 13:27:41 +09:00
roynatech2544
aa216cb327 universal7885: parts-aidl: Use lambda 2022-10-18 13:16:43 +09:00
roynatech2544
e29ee0a60e universal7885: parts-aidl: Charging is enabled on 0 disabled on 1 2022-10-18 13:09:57 +09:00
roynatech2544
5b75120653 universal7885: parts: smartcharge: Fix derps
* Turn on charging back after smartcharge off.
* Correct onclick listener on smartcharge settings
* Only write to charge sysfs once
2022-10-18 12:50:28 +09:00