Commit graph android_device_samsung_a20/universal7885-common/apps
Author SHA1 Message Date
Soo-Hwan Na
69206da15f
universal7885: parts: Address deprecation
* androidx.preference.PreferenceFragment -> androidx.preference.PreferenceFragmentCompat
2022-04-06 17:30:25 +09:00
Tim Zimmermann
a281ee2318
universal7885: Clamp DolbyCore.getProfile()'s returned value
Change-Id: I267a4ea4c6bf51347d2ba2c0f59e95d144b9c7d3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-28 12:09:01 +09:00
Adithya R
3935a846ff
universal7885: parts: Update clear speaker audio from MIUI 12
Change-Id: I022442fd4a7f0bdf04d1e2d7aecf47695a52fd3b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:30:00 +09:00
roynatech2544
1ae135e877
universal7885: parts: Address some errors after merging
Change-Id: I4db5d687a832e47d35398130e6c13cbc8a41bf97
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-23 22:37:04 +09:00
roynatech2544
ad27f7c8f6
universal7885: Merge LineageOS SamsungDAP
Change-Id: Ic8faa1b8b2c23ca1cd1add256c2229efef36cfd1
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 22:05:28 +09:00
Soo-Hwan Na
4316787756
universal7885: parts: Declare missing entry on manifest 2022-03-22 19:05:32 +09:00
Chatur27
1bbbc011be
universal7885: parts: Use audio hw parameter for dolby effect 2022-03-22 19:05:32 +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
0885f01f81
universal7885: interfaces: Forgot to rename package name
* Also, fix errors

Change-Id: Iafa0a6f6c34c9b13aff464765ef00cffbc6330dd
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
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
roynatech2544
4b0238fe98
universal7885: parts: jni: Adapt for interface unify
* Also, Mark parts HAL is required for SamsungParts
2022-03-22 19:05:22 +09:00
roynatech2544
fd23b4ab79
apps: footej: override 'Camera' too 2022-03-22 19:03:23 +09:00
roynatech2544
99f4af4c4d
universal7885: use footej camera 2022-03-22 19:03:20 +09:00
roynatech2544
846b03764e
universal7885: CamLightSensor: resolve a typo
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:51 +09:00
roynatech2544
cab7cfd593
universal7885: CamLightSensor: use ACTION_USER_PRESENT
...instead of ACTION_SCREEN_ON

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:51 +09:00
roynatech2544
098179eabb
universal7885: run clang-format based on system-clang-format
* On every *.cpp *.h files

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:50 +09:00
Murat Kozan
2793fa9155
universal7885: Enable vibration multiple intensities
* Activates some options on Settings>accessibility>vibration

Change-Id: Id31094e2c0212020fe53a92a04bc754ebf3e368e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:49 +09:00
roynatech2544
86c53bd578
universal7885: parts: add Indonesian translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:19 +09:00
roynatech2544
3d42e54162
universal7885: parts: add es,ro,ru translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:18 +09:00
roynatech2544
38da56064d
universal7885: parts: add pt-BR translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:18 +09:00
roynatech2544
235ef07826
universal7885: parts: add German translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:18 +09:00
roynatech2544
ee9fca37fd
universal7885: parts: try fixing nullptr
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:15 +09:00
roynatech2544
eefeec3768
universal7885: parts: adapt to S style
* Inspired by 3cc1a02bf5
2022-03-22 19:02:15 +09:00
Soo-Hwan Na
58ffb744ae
universal7885: parts: jni: fix flashlight stats reading
Change-Id: I3d5cb83db0c7afe5b33f0788a1c08557bc3670f6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:01:49 +09:00
Soo-Hwan Na
b65bfd3ba3
universal7885: parts: fix NullPointerException
* "this" to get current context needs to be done on overriding method
2022-03-22 18:57:41 +09:00
roynatech2544
4584ec21f2
universal7885: CameraLightSensor: Set notification to low priority
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00
roynatech2544
de4c5c6d8e
universal7885: parts: fix fps overlay on quicksettings
* mRunning should be static (in companion object) to correctly get it

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00
Soo-Hwan Na
4bd32cf76d
universal7885: CameraLightSensor: Fix param
The param "Intent" can be null
2022-03-22 18:55:39 +09:00
roynatech2544
da01e6dcbe
universal7885: SamsungParts: Specify common package name
* Crashing due to noclassdef

Change-Id: I5b898c8e02155a60dfcc153d4fa7a345cac5416c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:54:35 +09:00
roynatech2544
75b2f9edbc
universal7885: SamsungParts: styles.xml: specify dialog theme
*  Need to set the theme for dialogs and alertDialogs. Without it the ListPreference crashes

https: //stackoverflow.com/questions/43784891/android-preferencefragmentcompat-crashing-on-listpreference-view
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
Change-Id: Ib02be040fd27238e6c10c587402dcf7aeaaec55b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:54:28 +09:00
roynatech2544
56881cba9b
universal7885: SamsungParts: Address 'variable shadowed' warning 2022-03-22 18:53:52 +09:00
Soo-Hwan Na
1d39eb76e8
universal7885: SamsungParts: Match latest source changes 2022-03-22 18:53:34 +09:00
roynatech2544
dac87c4a19
universal7885: SamsungParts: Address deprecation
* Of android.preference. Need to use Jetpack support lib

Change-Id: I21bbd31c766179fe51fec4b812a6daa1e223a664
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:43 +09:00
roynatech2544
5ded25d1d1
SamsungParts: res: Same as 315229778b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:12 +09:00
roynatech2544
f389248a2b
SamsungParts: Add common prefix (Package Name)
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:12 +09:00
roynatech2544
dd3ffdff56
universal7885: SamsungParts: Use activity name specified on AndroidManifest.xml
Change-Id: I98df41354e39e04cdcc06701d6663ad362795bdf
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:41 +09:00
roynatech2544
0518bb3630
universal7885: CameraLightSensor: Fix thread endless loop
* If auto brightness is turned off

Change-Id: I654dd6c4db8d8910779fa256c70efcdb51fac49c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:23 +09:00
roynatech2544
0522bd9d3d
universal7885: CameraLightSensor: Allow user to mute the app's notification
android.app.NotificationChannel
public void setBlockable(boolean blockable)
Allows users to block notifications sent through this channel, if this channel belongs to a package that is signed with the system signature. If the channel does not belong to a package that is signed with the system signature, this method does nothing, since such channels are blockable by default and cannot be set to be unblockable.

Change-Id: Idfa7a672c0be585381239b879ce386e6e99d0619
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:06 +09:00