359 Commits

Author SHA1 Message Date
destradaa
c91ac68829 Update handling of enum/flag fields in GPS data structures.
It fixes cases when flags where filtered in the platform, because they were
checked as enums.
It also simplies handling of future values in enums/flags.

Change-Id: I83a0f82cc4562749081bf7e279ea52e2d5ba1f7c
2015-02-11 13:16:28 -08:00
destradaa
6bde4683ae Reduce memory usage of GpsStatus objects.
A simple GpsStatus object uses 9K of space, given that it initializes an array
of 255 GpsSatellite objects.
This change reduces the memory footprint in the average case, and keeps the
semantics of the API and its GpsSatellite sibling objects without any changes.
In a best case scenario it brings the memory usage per object to 1K.
It's likely in most cases that only 20-50 satellites will be in view. So the
usage should not exceeed half of the original memory usage.
It was considered to keep the internal array but a SparseArray provided bigger
memory savings in the test scenario of ~700B.

Change-Id: Ie2d2144d776a74d4904a08c0d6c5aec6d3bba7cc
2015-02-03 13:17:14 -08:00
destradaa
4b1b8e4c44 Revert API breaking change in System API.
Change introduced in ag/616521

Change-Id: Ia95982b051496e123b4a179746aea15c6a0b8a65
2015-02-02 11:42:20 -08:00
destradaa
22287fe7c2 Merge "Fix race condition generating READY and NOT_SUPPORTED statuses." 2015-02-02 18:07:41 +00:00
Soonil Nagarkar
71f0cd45ef Update Location.convert() javadocs to reflect their inconsistency with locales.
The Location.convert() methods do not invert each other as might be
expected. Changing this would introduce breaking changes, so I've
updated the javadocs to make this clearer.

Bug: 13280976
Change-Id: If4bd3c83d5fb67915450849ca471aabc27544dac
2015-01-30 11:29:42 -08:00
destradaa
13a60b0d41 Fix race condition generating READY and NOT_SUPPORTED statuses.
The race condition only affects when the client registers for several (all) location listeners.
And the side efects are benign: only the measurement and navigation message status are incurrectly
being sent to the application, but there are no crashes or any real data from GPS being
misscommunicated.
Also:
- cache the last reported status to filter sending notifications when no changes have occurred
- do some cleanup and refactoring in the code changed

Change-Id: I0692e6b70847dc1ee092d7a05a2c6ba3cd9fa147
2015-01-23 10:26:17 -08:00
Narayan Kamath
4d72e3e07e am a4c40c37: am 72d33849: Merge "Missing break in switch statement"
* commit 'a4c40c373477983622622186946d21802400876e':
  Missing break in switch statement
2014-12-30 12:29:38 +00:00
Narayan Kamath
72d33849fe Merge "Missing break in switch statement" 2014-12-30 09:43:03 +00:00
destradaa
ffa2b14d6f am 00916297: am 3546c9a5: Merge "Mark Gps Raw related APIs as System APIs. b/16727892" into lmp-mr1-dev
* commit '0091629788e883222ad358fa70e2cdfb3d71a296':
  Mark Gps Raw related APIs as System APIs. b/16727892
2014-11-07 18:43:36 +00:00
destradaa
3546c9a582 Merge "Mark Gps Raw related APIs as System APIs. b/16727892" into lmp-mr1-dev 2014-11-07 18:22:32 +00:00
destradaa
031550a31e am 9ed36c42: Merge "Add support for GPS measurement/navigation message capabilities. b/16727892 b/16815124" into lmp-mr1-dev automerge: 992b9aa
* commit '9ed36c42d8c3731b8ca631292881110eb8897cec':
  Add support for GPS measurement/navigation message capabilities. b/16727892 b/16815124
2014-11-07 00:07:30 +00:00
destradaa
91c962ad9c am a084d357: Merge "Fix reference leak in GPS measurement JNI layer. b/16727892 b/17075171" into lmp-mr1-dev automerge: c3e5599
* commit 'a084d357d3fd0a5696998e786aeb10ff394f24d5':
  Fix reference leak in GPS measurement JNI layer. b/16727892 b/17075171
2014-11-07 00:07:12 +00:00
destradaa
992b9aa37b Merge "Add support for GPS measurement/navigation message capabilities. b/16727892 b/16815124" into lmp-mr1-dev 2014-11-06 23:22:46 +00:00
destradaa
a62050d42c Mark Gps Raw related APIs as System APIs.
b/16727892

Change-Id: I29d78d45aef7829c3321ae4e7c26549e46fa39f9
2014-10-31 14:05:27 -07:00
destradaa
6568d709e7 Add support for GPS measurement/navigation message capabilities.
b/16727892
b/16815124

The listeners are changed to receive statuses asynchronously, this is required because GPS HAL,
requires time to be notified of the capabilities it supports.

Change-Id: Ie69fdd629d8680341386a2c736bc851632dd2bda
2014-10-31 14:03:20 -07:00
destradaa
df11984011 Fix reference leak in GPS measurement JNI layer.
b/16727892
b/17075171

Change-Id: I5f41c6db114078b927e56a7614fa7c09a288e2b2
2014-10-31 13:59:17 -07:00
Dianne Hackborn
75a6e82bcc am 36ae48a8: am d83e9e42: am 0761b1b5: am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev
* commit '36ae48a850bade17d485cb49dd40a3f11f667ad4':
  Put in real "code" (aka marketing) name.
2014-10-10 04:26:40 +00:00
Dianne Hackborn
529b78941c am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev
* commit '89b196958fee07475765bd3c458098464ba16f2e':
  Put in real "code" (aka marketing) name.
2014-10-08 22:48:44 +00:00
Dianne Hackborn
89b196958f Merge "Put in real "code" (aka marketing) name." into lmp-dev 2014-10-08 17:59:19 +00:00
Dianne Hackborn
955d8d69ea Put in real "code" (aka marketing) name.
Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
2014-10-07 20:17:19 -07:00
Quddus Chong
786037ee25 am 11735a0b: am 61e6d40b: am 5b5bc109: am 6ec5a256: am 4be6fdeb: am ba2199fa: Merge "docs: Modified the notice in the android.location package file to strongly encourage developers to migrate to the Google Play Services Location API." into klp-modular-docs
* commit '11735a0b759b79e6737b512f69f2efa0603d4e3f':
  docs: Modified the notice in the android.location package file to strongly encourage developers to migrate to the Google Play Services Location API.
2014-10-07 22:48:59 +00:00
Quddus Chong
3f5184c394 am 6ec5a256: am 4be6fdeb: am ba2199fa: Merge "docs: Modified the notice in the android.location package file to strongly encourage developers to migrate to the Google Play Services Location API." into klp-modular-docs
* commit '6ec5a256d78579057e82691e4cc21ca6222e2b1f':
  docs: Modified the notice in the android.location package file to strongly encourage developers to migrate to the Google Play Services Location API.
2014-10-07 22:32:08 +00:00
Quddus Chong
6ec5a256d7 am 4be6fdeb: am ba2199fa: Merge "docs: Modified the notice in the android.location package file to strongly encourage developers to migrate to the Google Play Services Location API." into klp-modular-docs
* commit '4be6fdebdd386dc18159c5557db91936a62f42ab':
  docs: Modified the notice in the android.location package file to strongly encourage developers to migrate to the Google Play Services Location API.
2014-10-07 22:23:40 +00:00
Quddus Chong
380dde32a7 docs: Modified the notice in the android.location package file to strongly
encourage developers to migrate to the Google Play Services Location API.

Change-Id: I9c2602daa7198eca38841582865c6a973f5acec8
2014-10-03 14:14:08 -07:00
Tsuwei Chen
2e6c5f1acc am df9e62f0: am f4ada994: am b2ae0d6f: am e6e4b2bf: Merge "Fix an incorrect behavior that failed AT&T privacy test." into lmp-dev
* commit 'df9e62f058e6e8f9a5853460d9c916fe5dfae751':
  Fix an incorrect behavior that failed AT&T privacy test.
2014-09-26 04:29:47 +00:00
Tsuwei Chen
023838f9e2 am e6e4b2bf: Merge "Fix an incorrect behavior that failed AT&T privacy test." into lmp-dev
* commit 'e6e4b2bfa3782f63ed0b4b802e5a9d59a6a48f49':
  Fix an incorrect behavior that failed AT&T privacy test.
2014-09-25 23:44:22 +00:00
Tsuwei Chen
566ebfde2b Fix an incorrect behavior that failed AT&T privacy test.
Bug: 17278951

Change-Id: I8b8bf4ed19af8738e7cef3553c8a06f7e27c7264
2014-09-25 14:53:54 -07:00
David Christie
ea1653a774 am 8601ffdd: am 9f115938: am 4233ee4b: am b2e91428: Merge "Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515" into lmp-dev
* commit '8601ffdd4c0cf864ef3bb95cdd355512a2654656':
  Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515
2014-09-17 22:09:24 +00:00
David Christie
6c65c49f31 am ef52db95: am b2e91428: Merge "Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515" into lmp-dev
* commit 'ef52db9536b0aef77a1543ca3a97a4ad43a70e9a':
  Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515
2014-09-17 21:43:50 +00:00
David Christie
61ee1eda0a Merge "Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515" into lmp-dev 2014-09-17 21:20:27 +00:00
David Christie
4bd3488732 Add @SystemApi to LocationManager methods used by GmsCore (with reflection).
Bug: 17515515

Change-Id: I005871c721868bc52a3057839949eb342181b7b8
2014-09-15 19:22:24 -07:00
Tsuwei Chen
fbaeeda836 am 345926e6: am 4290fb7b: Merge "Handle user privacy properly during network initiated requests. Bug: 16131208" into lmp-dev
* commit '345926e691664520c781fb05deb41d090f0473eb':
  Handle user privacy properly during network initiated requests. Bug: 16131208
2014-09-13 02:30:28 +00:00
Tsuwei Chen
7c485bf66a Handle user privacy properly during network initiated requests.
Bug: 16131208

Change-Id: Ic6f83fcf24eef9e0e26e303bb652651f0dc2970a
2014-09-12 14:56:00 -07:00
Tsuwei Chen
c4c7c9d5f2 am 62645748: am 38000b0f: Merge "Manually merge QC\'s change for SUPL_ES." into lmp-dev
* commit '626457486cbf5e40c77019f965755ae30b72af22':
  Manually merge QC's change for SUPL_ES.
2014-09-08 22:48:30 +00:00
Tsuwei Chen
ff4f6c8859 Merge "Manually merge QC's change for SUPL_ES." into lmp-dev 2014-09-08 22:15:32 +00:00
Elliott Hughes
4656e69bf3 resolved conflicts for merge of 2008cff7 to lmp-dev-plus-aosp
Change-Id: I5148eda624e8504f12dbc1288cd4a7a5b7c10850
2014-09-08 13:08:43 -07:00
Tom O'Neill
bc3095139e Fix a STOPSHIP
Change-Id: I3714f1645c0a847e912cb79515fe3991960c1698
2014-09-08 10:14:33 -07:00
Tsuwei Chen
3324e95412 Manually merge QC's change for SUPL_ES.
Original CL: https://android-review.googlesource.com/#/c/105431

Emergency SUPL

Added emergency SUPL when UE is
in emergency mode.

Bug: 17118312


Change-Id: Id9b77add9bbab139b983a84d5a4c798c9c94df43
2014-09-08 07:11:02 +00:00
Mark Doliner
d0646dca40 Small documentation fixes across many files.
Change-Id: I3e8787ce4bc6018ea1dc9aef2a2cd4e0a8dde663
2014-09-05 13:57:51 -07:00
Tom O'Neill
649db7f0a5 Merge "Keep LMP from breaking KitKat API" into lmp-dev 2014-09-04 22:56:58 +00:00
Tom O'Neill
17c5e79496 Keep LMP from breaking KitKat API
- Bug: 17390371

Change-Id: I25c1abebcc42ed24abd57bbe2834a40fb8ee834b
2014-09-04 15:42:36 -07:00
David Christie
e7baf5afc0 Merge "Add @SystemApi annotations to methods used by GmsCore. -Currently these methods are called using reflection for location. Bug: 17371392 Change-Id: I6546f5b485415beff69164ba0d526757ee831f69" into lmp-dev 2014-09-04 20:53:39 +00:00
David Christie
c20b795cf0 Add @SystemApi annotations to methods used by GmsCore.
-Currently these methods are called using reflection for location.
Bug: 17371392
Change-Id: I6546f5b485415beff69164ba0d526757ee831f69
2014-09-04 20:53:21 +00:00
Tsuwei Chen
52617bbff8 Reload GPS configuration after carrier info is available.
Bug: 17110478
Change-Id: I1ecb71c4ca661df3dfeaea1622d73caeacb1350e
2014-08-30 00:17:39 +00:00
Selim Cinek
255dd04271 Added notification color to all system notifications
Bug: 17128331
Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
2014-08-20 14:25:18 +02:00
destradaa
4b3e393127 Expose Gps Navigation Messages in the platform.
b/16405976

Change-Id: Ic982ea2467d116585780c20c2fa7e974e50f8345
2014-07-23 10:30:21 -07:00
destradaa
81cabb8a7f Add uncertainty for GPS received TOW field.
b/16463499

Change-Id: I5dde8a2737d9345eb7f77edc64ab7286254a65e4
2014-07-22 10:03:28 -07:00
destradaa
2102dd7255 Update GPS HAL raw measurements support.
Align the GPS framework with the GPS HAL
b/16374800

Remove localTime field from API
b/16241708

Update Property containers for measurements to use bit masks
b/16238371

Change-Id: Id4db16c3153d0020bf2edb5a67f59353662762d0
2014-07-21 10:38:12 -07:00
destradaa
3b0224dc3c Fix exceptions in ActivityRecognition platform stack.
b/16348349

Change-Id: I1f85283c86130b86389a1be7da49904658b0558c
2014-07-17 11:09:46 -07:00
destradaa
a4fa3b5aa5 Add support in the platform for Activity Recognition Hardware.
Change-Id: I7c4fff3526583475a5edf1f4ba8fede4e9419ead
2014-07-11 15:58:36 -07:00