20 Commits

Author SHA1 Message Date
Michael Bestas
8e6b089741 stone: gps: Reduce LOWI debug level
Kill logcat spam
2024-05-26 12:42:21 +00:00
Tommaso Fonda
16bae52712 stone: gps: Use GrapheneOS's SUPL server 2024-05-09 11:43:19 +02:00
Tomasz Wasilczyk
8d21165dc6 stone: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:11:50 +02:00
AmeChanRain
5d63853d25 sm6375-common: gps: Fix misleading indentation
* That makes clang17 happy
* Fix:
  device/xiaomi/sm6150-common/gps/android/utils/battery_listener.cpp:191:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
            auto r = mHealth->unlinkToDeath(this);
            ^
device/xiaomi/sm6150-common/gps/android/utils/battery_listener.cpp:189:9: note: previous statement is here
        if (mHealth != NULL)
        ^
1 warning and 1 error generated.

Change-Id: I3be1e3de45ce184c9d3dbcede57a312375a91498
Signed-off-by: Nanhumly <admin@warbler.cc>
2024-05-07 21:54:38 +02:00
Drpto
96447a4029 sm6375-common: gps: Fix some Indentation error
Authorship Goes to github.com/Subratam6296 aka rdx55

Signed-off-by: Drpto <dr.juniornoob@gmail.com>
2024-05-07 21:54:30 +02:00
Leonardo Ledda
5d95f6f7d1 sm6375-common: gps: Fix unqualified call to std::move
Signed-off-by: Leonardo Ledda <leonardoledda@gmail.com>
2024-05-07 21:53:24 +02:00
Michael Bestas
0a1c673a2e sm6375-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-07-05 02:59:09 +07:00
Michael Bestas
2caa5e8006 sm6375-common: gps: Remove all Wno-error flags
Almost all warnings/errors have been fixed.
Ignore undefined bool conversion error on purpose.

Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb
2023-07-05 02:59:09 +07:00
Albert I
408e92d8ef sm6375-common: gps: Implement list empty error code for msg_q
This fixes enum-conversion warning due to implicit type enum casting
between linked_list and msg_q which happens only for status -6.

Change-Id: I27ba74c4d840b7ba0cb1017d69a30fc25b80d6b9
2023-07-05 02:59:09 +07:00
Albert I
852d78c507 sm6375-common: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2023-07-05 02:59:09 +07:00
Albert I
faa349bb0f sm6375-common: gps: Reorder initializations list to satisfy warnings
-Wreorder-ctor is a compile-time, Clang-only flag which is enabled by
default since Clang 12, which will warn whenever a specified field will
be initialized right after field specified below it. However, since it
doesn't sweep through all fields, compiler may miss some of them.

This order has been checked thoroughly through many trial and errors to
ensure that no such warns will be triggered anymore.

Change-Id: Id24cbb7277dc8d6c02767f8f365818ab6c017683
2023-07-05 02:59:09 +07:00
Michael Bestas
316cc65a8b sm6375-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2023-07-05 02:59:09 +07:00
Ethan Chen
15ae1cf531 sm6375-common: gps: Increase FLP batch size to max
* Hardware supports 40

Change-Id: I075fff615814fa105ec1493c5bdde60b8abccf0e
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com
2023-07-05 02:59:09 +07:00
Giovanni Ricca
6bb9e5065a sm6375-common: gps: Update to LA.UM.9.14.r1-19200.02-LAHAINA.QSSI13.0
Change-Id: I467ece57b82127382f11e48d0dd80e362df0d1c9
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-07-05 02:59:09 +07:00
Pirama Arumuga Nainar
57b2869a91 sm6375-common: Fix Wbitwise-instead-of-logical introduced by clang-r445002
Bug: http://b/215753485

This warning is introduced in clang-r445002.  In code where the bitwise
operation was used to avoid short-ciruit evaluation, make that explicit
by introducing temporary variables.

Test: build with clang-r445002.
Change-Id: Ia7ccf1d48922d926313f691888d26c3e314c1056
Signed-off-by: kleidione <kleidione@gmail.com>
2023-01-16 02:22:02 +00:00
Michael Bestas
0289426825 sm6375-common: gps: Lower debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2022-09-04 12:59:33 +00:00
TheStrix
155ede9c85 sm6375-common: gps: Disable xtwifi location services
Squashed with:
Author: Michael Bestas <mkbestas@lineageos.org>
Date:   Fri Jan 15 22:14:25 2021 +0200

    sm6375-common: Remove unused gps certificates

    * They are used by xtwifi-inet-agent which we disabled.

    Change-Id: I4fbf6e02276b508a27f320e630ddad3c9aada5a8

Author: Arian <arian.kulmer@web.de>
Date:   Thu Apr 1 01:09:38 2021 +0200

    sm6375-common: Remove xtwfi-client and xtwifi-inet-agent

    Change-Id: I232fd3b351f0e47b86f7d5d7b2a2bd0f28712d64

Change-Id: I70f39d8d611167f65bb3912590b05f8a8d121c80
2022-09-04 12:59:32 +00:00
dianlujitao
3920f753ed sm6375-common: Fix non-ASCII character in gps.conf
:caf:

Change-Id: Iea9c44c0fbad574cbc077feea3d9f1de83d7d99a
2022-09-04 12:59:31 +00:00
Arian
287a8379ba sm6375-common: Build GPS HAL from source and import proprietary configs
Configs from veux V13.0.10.0.RKCMIXM
slim_daemon is disabled in izat.conf, hence drop it.

Change-Id: Ia1ed33f6250b898d149970389befe8033cc8eaf3
2022-09-04 12:59:30 +00:00
Arian
21baf7e3a4 sm6375-common: Import gps hal from LA.UM.9.14.r1-16700-LAHAINA.0
Change-Id: I134d6418f1357a4d7ce37358481d6b765d93e1a5
2022-09-04 12:59:30 +00:00