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
95e7624f55
universal7885: FMRadio: Switch to FM V3 aidl interface
2022-10-31 22:31:49 +09:00
roynatech2544
5c4c310dd5
universal7885: FMRadio: Restore freq / set color only ence
2022-10-26 18:37:31 +09:00
roynatech2544
77d3b837f0
universal7885: FMRadio: Don't update fav every time
2022-10-26 17:56:44 +09:00
roynatech2544
13e6667cfd
universal7885: FMRadio: Fix crash and freq mismatch
...
- For ChannelListFragment, check if the fragment is added to an Activity and run requireactivity()
- For MainFragment, re-fetch the freq every time that fragment is drawn
2022-10-26 17:56:43 +09:00
roynatech2544
49c565abdb
universal7885: FMRadio: Mark as persistent
...
- For avoiding HAL <-> app failures
2022-10-26 17:56:32 +09:00
roynatech2544
8a7743ac67
universal7885: FMradio: Crash fixups
...
- Init favlist
- Search freqs only once, with a static variable
- Update the UI of disabled view, forgot this
2022-10-25 17:33:05 +09:00
roynatech2544
1ed534a894
universal7885: FMRadio: Use correct function signature
...
Timer.schedule(TimerTask t, Long l1, Long l2) is running t with startdelay l1 and delaying l2 every execution
Timer.schedule(TimerTask t, Long l) is executing t after delay l and stops
We need to poll the HAL for mutex free, hence fix to first one
2022-10-24 18:50:12 +09:00
roynatech2544
225466e775
universal7885: fm-app: Use size od passed List<Int> instead of hardcode
2022-10-22 13:10:23 +09:00
roynatech2544
1fd4442a64
universal7885: fm-app: Refactor
2022-10-22 11:40:37 +09:00
roynatech2544
8d1811d574
universal7885: parts: Implement SmartCharge settings
...
Using the interface vendor.eureka.hardware.parts.ISmartCharge, this intends to add simple implementation of smart charge. If the battery percent is above set limit percent, it will stop charging, else if the battery percents goes under the set restart percent, it will start charging again.
While I'm on this parts, I refactored kotlin srcs using ktlint, formatted xml manually.
2022-10-13 20:50:16 +09:00
roynatech2544
65fa2766f4
universal7885: aidl-support: Make a stable version
2022-10-09 05:23:21 +00: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
b6537a107b
universal7885: Unify IFMSysfsSupport to IFMDevControl
...
Also update sepolicy svc ctx
2022-10-07 13:39:07 +09:00
roynatech2544
365fa56736
universal7885: FMRadio: Adapt to AIDL
2022-10-06 14:11:09 +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
7d0a8dc3d0
universal7885: apps: Update dependency names
2022-10-05 09:59:38 +00:00
Gabriel2392
c69aed4a54
FMRadio: comment this line
2022-07-31 07:43:16 -03:00
Gabriel2392
e56cc36194
FMRadio: fixup build error
2022-07-30 11:06:07 -03:00
roynatech2544
988595370b
universal7885: Fix clang-tidy issue again
2022-05-22 05:16:57 +00:00
roynatech2544
5394c3b11f
universal7885: Add extra compiler defaults
2022-05-21 00:37:58 +00:00
roynatech2544
be82ebd1fe
universal7885: bpfmt
2022-05-20 18:37:24 +09:00
roynatech2544
082cd1ac46
universal7885: AARs: Update to 1.6.0 release
...
Link: https://mvnrepository.com/artifact/com.google.android.material/material/1.6.0
2022-05-10 21:44:20 +09:00
roynatech2544
a7ef8f2b7e
universal7885: Format xml again
...
* No tabs this time, 3-space intent
2022-04-29 22:24:09 +09:00
roynatech2544
442aa11e81
universal7885: Format xml using xmlstarlet
2022-04-18 13:32:36 +09:00
roynatech2544
9b2915e070
universal7885: xml: format using xmllint
2022-04-15 11:26:05 +09:00
roynatech2544
3aff7935f2
universal7885: FMRadio: Remove from priv-apps
...
* Allow users to disable it if they don't want
2022-04-14 18:19:41 +09:00
roynatech2544
3c7ca85990
universal7885: Format Kotlin code using ktlint
...
* Also, refactor CameraLightSensor
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-04-13 17:21:17 +09:00
roynatech2544
cae95b3c27
universal7885: FMRadio: Drop unused permission
...
* Also drop privapp permissions
2022-04-12 18:28:07 +09:00
roynatech2544
cb072badd5
universal7885: format code using clang-format-15
2022-04-12 17:37:51 +09:00
roynatech2544
9443bdc315
universal7885: FMRadio: Futher improve code
...
* Using enum classes for various statuses for good readability
* Implement favorite channel saving which was missing
* Use Kotlin coroutines again for refreshing channel list button, for faster UI response
* Added javadoc for better functions description
* Also, code native audio routing system on jni (fm_route.cpp)
Change-Id: I993c88fdb580248d8a55efd8e9b6fed0e36d9b24
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:31 +09:00
roynatech2544
2648c647fc
universal7885: Add missing dependency, fix some code for AOSP
2022-03-22 19:05:31 +09:00
Soo-Hwan Na
bfe69c8347
universal7885: FMRadio: Switch to lastest material lib
2022-03-22 19:05:31 +09:00
roynatech2544
0803fadf47
universal7885: FMRadio: Use kotlinx.cororutines library
...
* Background thread handle system
2022-03-22 19:05:31 +09:00
roynatech2544
308a5d49c8
universal7885: Add Material you reworked FM app
...
* UI and function improvements
Change-Id: Ia1ea7aa0caf0ac3838e285952e9be7e79b946e80
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:30 +09:00
roynatech2544
6235756b90
universal7885: FMRadio: jni: fix build errors
...
* Fix errors on FM HAL too
Change-Id: I95885939d55efa0b400fe55d0a444f64d1f65a51
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:28 +09:00
roynatech2544
e07865c670
universal7885: interfaces: Implement FMRadio HAL V1.2
...
* Also, track our fork of OneUI theme lib
* Implement read from sysfs interface which can fix channel searching on some cases
* Commit link: fead45ba0e
Change-Id: I81532b7f8169637fdcad0f678790a2b1f1888ecc
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:28 +09:00
Soo-Hwan Na
ffaf807401
universal7885: FMRadio: Make volume delay to 4s
...
* 1.5s -> 4s
* Also, remove undeclared dependency
Change-Id: Ieff232fd776e52abfbc617495298ab27afd021d1
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
908dc5339b
universal7885: FMRadio: Use android SDK LinearLayout
...
Change-Id: Ibd176357da2c84c5fb0c5654aaed9413139412c3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
315e8a18d4
universal7885: FMRadio: Don't run r8 on theme library classes
...
Change-Id: I7ff7065de56e77b7ba24a98ada600e8eda006a6e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
1f58a51868
universal7885: FMRadio: Migrate to android SDK seekbar
...
Change-Id: Iced28087d879062401c4f36359a16fa3455e75db
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
e03d7d13d9
universal7885: FMRadio: Make OneUI theme lib link statically
...
* Also, mark FM Hal is required for this app
2022-03-22 19:05:26 +09:00
roynatech2544
becd136bbb
universal7885: FMRadio: jni: remove unused function
...
* device/samsung/universal7885/apps/FMRadio/jni/fm_ioctl.cpp:65:12: error: unused function 'fm_radio_get_control' [-Werror,-Wunused-funct
ion]
static int fm_radio_get_control(int fd, unsigned int id, long *val)
^
1 error generated.
06:47:41 ninja failed with: exit status 1
* Also, fix wrong native lib name (fmradioioctl_jni -> fmioctl_jni)
2022-03-22 19:05:25 +09:00
roynatech2544
0519231d7b
universal7885: Add FMRadio app
...
* Created from scratch by me (Royna) with help of LineageOS repo [1], Sony Xperia Dev repo [2]
* Basic input/output, channel selection is working
[1]: https://github.com/LineageOS/android_hardware_samsung_slsi_fm
[2]: https://github.com/sonyxperiadev/vendor-qcom-opensource-fm
Change-Id: I922bbeb9f86e6a4c7bc993d27d2f9eeb2a712186
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:25 +09:00