27 Commits

Author SHA1 Message Date
Nolen Johnson
4059544efb !fixup "sm7325-common: gps: Fix __unused usages"
Change-Id: Id06e61fac6fc351005f9e6b868e0162df91aa388
2025-01-20 02:24:22 -05:00
Nolen Johnson
f673bedfbc sm7325-common: gps: Fix __unused usages
Change-Id: Idd82ad28942dbbbd82982d6ba27529f38a3fe6c8
2025-01-20 01:20:51 -05:00
Michael Bestas
6cba7bc533
sm7325-common: gps: Remove all Wno-error flags
Almost all warnings/errors have been fixed.
Ignore undefined bool conversion error on purpose.

Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb
2025-01-19 20:34:07 +02:00
Albert I
96abee7717
sm7325-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
2025-01-19 20:34:07 +02:00
Albert I
fc379d8e02
sm7325-common: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2025-01-19 20:34:07 +02:00
Albert I
ad8cf65cc8
sm7325-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
2025-01-19 20:34:07 +02:00
Michael Bestas
b124fc1fd7
sm7325-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2025-01-19 20:34:07 +02:00
Michael Bestas
167ee81c54
sm7325-common: gps/location: Convert remaining Android.mk to bp
Change-Id: I75e6af92795fe755a48557aa06106406b14c6750
2025-01-19 20:34:06 +02:00
Michael Bestas
ea82725be3 sm7325-common: gps: Remove unused implementations
Change-Id: I079edea073f3ae43eaebbf04712e99ec1a931b10
2025-01-14 14:35:05 -05:00
Michael Bestas
ae03a427fd sm7325-common: gps: data-items: Fix snprintf usage
Fixes:
gps/core/data-items/DataItemConcreteTypes.cpp:465:9: error: 'snprintf'
will always be truncated; specified size is 10, but format string
expands to at least 20 [-Werror,-Wfortify-source]
  465 |         snprintf(t, sizeof(t),
        "[%02x:%02x:%02x:%02x:%02x:%02x]", d->mApSrnMacAddress[0],
      |         ^
gps/core/data-items/DataItemConcreteTypes.cpp:514:9: error: 'snprintf'
will always be truncated; specified size is 10, but format string
expands to at least 20 [-Werror,-Wfortify-source]
  514 |         snprintf(t, sizeof(t),
        "[%02x:%02x:%02x:%02x:%02x:%02x]", d->mApSrnMacAddress[0],
      |         ^
2 errors generated.

Change-Id: I37188e7497f7ade97648fb41e2becd73f6b559a9
2024-09-25 20:42:36 -06:00
Michael Bestas
e5deb4a931 sm7325-common: gps: Resolve unused parameter warnings
Change-Id: I3f92e977a847583f35a5a597487c52b5e0e09dde
2024-09-25 20:42:36 -06:00
Marc Bourgoin
c7eb5ab0ba sm7325-common: Update GPS from LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0
Change-Id: If51ee4e4952e4d80fee116e7f7e07ab22a17522a
2024-09-25 20:42:36 -06:00
Marc Bourgoin
2143846123 sm7325-common: Update blobs from dubai-user-14-U1RD34.80-40-f0ea3-release-keys
Change-Id: I203f9a1ab4ce61f97d98a8936141167651f5c1e4
2024-09-25 07:36:47 -06:00
Tomasz Wasilczyk
a4905bd936 sm7325-common: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8
2024-03-10 19:24:42 -04:00
Madhanraj Chelladurai
863b7b2a0d sm7325-common: gps: Add NULL check before object access
Correct the NULL check code block and add NULL check before
object access.

Change-Id: Ic41b781b41fb4e21bbff8801d500a41a6d7219d0
CRs-fixed: 3084543
2023-11-03 19:47:53 +00:00
me-cafebabe
15733abf50 sm7325-common: gps: Fix compilation on U
Change-Id: I7ca7e78addd6385289b8449edae8b682839ecc91
2023-11-03 17:31:59 +00:00
Michael Bestas
8cbf817fce sm7325-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-06-09 13:59:05 -04:00
Michael Bestas
89c6af24a0 sm7325-common: Lower gps debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2023-05-15 12:43:57 -04:00
dianlujitao
34c7a88992 sm7325-common: Fix non-ASCII character in gps.conf
:caf:

Change-Id: Iea9c44c0fbad574cbc077feea3d9f1de83d7d99a
2023-02-14 10:56:32 -05:00
SGCMarkus
ca570d271c sm7325-common: gps: fix logical or in GnssAPIClient
Change-Id: I24b76c34e72ffde298c3117361e4aff7d715deb2
2022-09-29 22:21:30 -04:00
SGCMarkus
a0fc1b687c sm7325-common: update gps to LA.UM.9.14.r1-20000-LAHAINA.QSSI13.0
Change-Id: I100b0807cce37b9f3724c74d2f0979a955d1ddd2
2022-09-29 22:21:29 -04:00
SGCMarkus
81c175bd93 sm7325-common: gps: update to LA.UM.9.12.r1-13500.01-SMxx50.QSSI12.0 2022-03-26 23:27:49 +01:00
SGCMarkus
616168edec sm7325-common: gps: update configs from RRG31.Q3-23-85 2022-03-26 23:27:17 +01:00
SGCMarkus
95b667c5b9 sm8250-common -> sm7325-common 2022-03-26 23:16:05 +01:00
SGCMarkus
df30faed72 sm8250-common: update gps configs from RRA31.Q3-18-86
Change-Id: I3c7197a9c872469b01866dff1984f09293d24694
2022-03-23 22:24:08 +01:00
SGCMarkus
72410cf795 sm8250-common: import gps from LA.UM.9.12.r1-13500.01-SMxx50.QSSI12.0
Change-Id: Ib5a80c095e5e203f90cc0d685758553fd18a7f0c
2022-03-23 22:23:56 +01:00
SGCMarkus
b40c6cb4fb sm8250-common: add gps configs from RRA31.Q3-19-19 2022-02-16 21:39:30 +01:00