Commit graph android_device_samsung_a20/universal7885-common/apps/SamsungParts
Author SHA1 Message Date
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
3fa34f4db9 universal7885: parts: fastcharge is reverted as well 2022-10-20 18:43:39 +09:00
roynatech2544
ffad88e852 universal7885: parts: smartcharge: Nuke apply button 2022-10-18 19:42:38 +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
FPSensor
e92f502522 universal7885: parts: Add translation to ES (#3) 2022-10-18 07:45:46 +09:00
roynatech2544
a296d6e27e universal7885: parts: Fix error after SmartCharge 2022-10-18 00:52:09 +09:00
roynatech2544
d9adb63d29 universal7885: parts-aidl: Move smartcharge code to one file 2022-10-17 18:38:47 +09:00
roynatech2544
c08e8f7fdc universal7885: parts: Support apply on boot for smartcharge 2022-10-17 18:05:33 +09:00
roynatech2544
38dfae1352 universal7885: parts: Avoid both options checked at the same time 2022-10-17 17:57:43 +09:00
roynatech2544
0834ccd364 universal7885: parts: smartcharge: this -> requirecontext
this, aka SmartChargeFragment doesnt extend Context
2022-10-16 12:10:04 +09:00
roynatech2544
fde9ae1b2a universal7885: parts: Poll sizes instead of update after operation 2022-10-16 10:52:03 +09:00
roynatech2544
e44d93750c universal7885: parts: Make smartcharge settings compile 2022-10-16 10:35:22 +09:00
roynatech2544
7f099b9e43 universal7885: parts: Fix UI of smartcharge and show seekbar values 2022-10-14 22:52:42 +09:00
roynatech2544
550036fed1 universal7885: parts: Move directbootaware manifest to receiver 2022-10-14 11:20:49 +09:00
roynatech2544
895ca921b8 universal7885: parts: Declare in manufest 2022-10-14 11:20:49 +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
ef97fdeb77 universal7885: parts-aidl: Just send callback through setSwapOn()
- Set callback on JNI, since Java class cant be sent through, use the ndk backend to implement callback and send to swapon()
2022-10-12 22:31:27 +09:00
AnierinB
e9913cc821 universal7885: parts: Use directBootAware
- This way settings can be restored prior to unlocking after reboot.

Signed-off-by: AnierinB <anierin@evolution-x.org>
2022-10-11 15:19:45 +09:00
roynatech2544
cb312ac843 universal7885: parts: Init and hold only one Swap class instance 2022-10-11 04:18:09 +00:00
roynatech2544
c12209095a universal7885: parts: Use isMutexLocked() to disable switch if needed 2022-10-11 12:33:05 +09:00
roynatech2544
50f3bfa31a universal7885: parts-aidl: Refactor swap impl 2022-10-11 03:00:38 +09:00
roynatech2544
65fa2766f4 universal7885: aidl-support: Make a stable version 2022-10-09 05:23:21 +00:00
roynatech2544
4296d27bea rootdir: Drop chown fastcharge sysfs to system
Also fix errors of aidl
2022-10-08 00:04:59 +09:00
roynatech2544
9030e2eb7b universal7885: SamsungParts: Move to AIDL 2022-10-06 15:47:32 +00:00
roynatech2544
7d0a8dc3d0 universal7885: apps: Update dependency names 2022-10-05 09:59:38 +00:00
roynatech2544
53b5d14b3c universal7885: parts-jni: Adapt to hidl changes 2022-10-05 09:59:33 +00:00
AlexandruSemina(semialex16)
0e91fcc133
Universal7885: SamsungParts: move under system.
Due to roms now having customizations for the Settings app, will be better to move the SamsungParts app under the System category to not disturb the looks of the ui.
2022-07-22 21:54:51 +03:00
roynatech2544
b3ec9c4371 universal7885: Fix errors according to clang-tidy 2022-05-21 01:07:44 +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
a7ef8f2b7e
universal7885: Format xml again
* No tabs this time, 3-space intent
2022-04-29 22:24:09 +09:00
roynatech2544
88d149ae33
universal7885: parts: jni: Link statically against libc++fs
* Shared lib version is not available now
2022-04-29 22:11:56 +09:00
roynatech2544
1898abbb62 universal7885: Allow glove settings on A20e
Exists on /sys/class/sec/tsp/cmd_list
2022-04-20 15:23:43 +09:00
roynatech2544
4a8c870b6b universal7885: parts: swap: Round down
The free space on /data
Also fix some issues with it
2022-04-20 12:58:55 +09:00
roynatech2544
0faf51929d universal7885: parts: jni: Link against libc++ fs
Also fix Kotlin src issues
Also clang-format the cpp src
2022-04-20 11:51:25 +09:00
roynatech2544
0a612ac913 universal7885: parts: Show free space and swapfile size 2022-04-20 11:31:13 +09:00
Soo-Hwan Na
053aa4fa1c
universal7885: parts: Put persistent true
* For Dolby settings
2022-04-19 21:26:48 +09:00
Soo-Hwan Na
b3ffeda816 universal7885: parts: res: Add missing attr
* Fix on darkmode
2022-04-19 11:51:24 +09:00
roynatech2544
f35f7010ff universal7885: parts: Set priority when mounting
* Also increase swappniess back, implment apply on boot
2022-04-19 11:51:24 +09:00
roynatech2544
f5d3e25c02 universal7885: parts: Implement swap on /data ctrl 2022-04-19 11:51:24 +09:00
roynatech2544
442aa11e81 universal7885: Format xml using xmlstarlet 2022-04-18 13:32:36 +09:00
roynatech2544
2cfe74a022 universal7885: parts: Fix a minor mistake
* Also bring back custom styles xml
2022-04-15 12:41:33 +09:00
roynatech2544
9b2915e070 universal7885: xml: format using xmllint 2022-04-15 11:26:05 +09:00
roynatech2544
7d313f6d93 universal7885: parts: Inherit settingslib for main fragment
* Also, drop more custom resources
2022-04-15 10:53:00 +09:00
roynatech2544
208e4ab7fe universal7885: parts: Put selectable = false
They are not meant to be selected in the first place
2022-04-15 10:37:09 +09:00
Soo-Hwan Na
c19e235315
universal7885: parts: Use enum values
* For better readability
2022-04-15 10:21:59 +09:00
roynatech2544
c813e0984a
universal7885: parts: Refactor battery fragment
* Show live data of battery

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-04-14 18:02:41 +09:00
roynatech2544
419f6646a3 universal7885: parts: Follow Android 12 style
* Use more Settingslib classes and resource layouts

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-04-14 14:33:28 +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
95d062a8b1
universal7885: parts: Use contains()
ro.product.device has e.g. derp_a20e
2022-04-12 20:20:08 +09:00