summaryrefslogtreecommitdiffstats
path: root/location
Commit message (Collapse)AuthorAgeFilesLines
* Udpate instrumentation codeWilliam Clark2015-11-301-18/+13
| | | | | | Added changes to support new features in QSSP Change-Id: I92c0a4eb3cb5363fbf08185f25644a3202c38788
* Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-053-14/+90
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: cmds/bootanimation/BootAnimation.cpp core/java/android/accounts/AccountManager.java core/java/android/app/AppOpsManager.java core/java/android/os/PowerManagerInternal.java core/java/android/os/storage/IMountService.java core/java/android/provider/Settings.java core/java/com/android/internal/widget/ILockSettings.aidl core/res/res/values-mcc204-mnc12/config.xml core/res/res/values-mcc219-mnc02/config.xml core/res/res/values-mcc730-mnc07/config.xml core/res/res/values/config.xml core/res/res/values/symbols.xml packages/SystemUI/res/values/config.xml packages/SystemUI/src/com/android/systemui/doze/DozeService.java packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java services/core/java/com/android/server/LocationManagerService.java services/core/java/com/android/server/am/ActivityManagerService.java services/core/java/com/android/server/pm/PackageManagerService.java services/core/java/com/android/server/power/PowerManagerService.java telecomm/java/android/telecom/Phone.java telephony/java/android/telephony/CarrierConfigManager.java telephony/java/android/telephony/RadioAccessFamily.java telephony/java/android/telephony/ServiceState.java telephony/java/android/telephony/SignalStrength.java telephony/java/android/telephony/TelephonyManager.java telephony/java/com/android/ims/ImsCallProfile.java telephony/java/com/android/ims/ImsReasonInfo.java telephony/java/com/android/ims/ImsSuppServiceNotification.aidl telephony/java/com/android/ims/ImsSuppServiceNotification.java telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl telephony/java/com/android/internal/telephony/RILConstants.java Change-Id: I99c6edb8e25a77145b5adef97d0d55bfbe676959
| * Merge "Disable AR HW when client binder dies." into mnc-dr-devDaniel Estrada Alva2015-08-261-0/+2
| |\
| | * Disable AR HW when client binder dies.destradaa2015-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that activities are unregistered from AR HW when the client's binder dies. This clean up is required to prevent AR HW to keep active when there are no clients listening for events. Bug: 19894637 Change-Id: Iccd609cf1d2d4a4453c7a96cb8645b61639c3234
| * | Cherry-pick: Add callback-based support for HW Activity Recognition.destradaa2015-08-243-14/+88
| |/ | | | | | | | | | | | | | | | | Add a callback-based mechanism for GmsCore to connect to Hardware Activity Recognition. This allows GmsCore to stop polling to identify if the Android platform supports the functionality or not. Bug: 17112184 Change-Id: I8f9459cbd15eecd70f6919c6551e6f7a663c732f
* | geofence: Low power geofence HW implementationDante Russo2015-10-164-0/+218
| | | | | | | | | | | | HW implemntation overwrites the SW implementation Change-Id: Id738f2808691c35e5507e1d557bc5351456953ad
* | SEEMP: Add more framework instrumentationWilliam Clark2015-10-061-0/+22
|/ | | | | | | | | Instrument framework files to log events of interest. Conflicts: core/java/android/accounts/AccountManager.java Change-Id: Ia45651e6352586f910039b51cac2356f65f80010
* Fix privacy leaks in LocationManagerDavid Christie2015-06-221-4/+0
| | | | | | | | | | -Register for listener for permission changes and stop request immediately if client loses permission. -Also remove permission requirement to remove geofences and clean up permission annotations. Bug: 21903866 Change-Id: I7e028b6b2ca5b21f25fcbba5de86dfb55caff872
* Add way to get the network location provider packageJason Monk2015-06-171-0/+1
| | | | | Bug: 21805447 Change-Id: Ie9fd35a69d8808ae4346927b30b77e9fd733b569
* remove usage of deprecated method setLatestEventInfoChris Wren2015-06-121-14/+16
| | | | | Bug: 18510449 Change-Id: I56a77991c729990e501f402e007dfa79ee57621e
* CountryDetector no longer requires location permissions.Makoto Onuki2015-05-211-2/+0
| | | | | | | | | | | | Country information is already available elsewhere (MNC/MCC), so there's no point enforcing these permissions. It wasn't properly enforcing the permissions anyway, since the code path in question was sometimes executed on a handler thread. Bug 20927020 Change-Id: Ia090664917f7b694e80dd55934db442633bab1d8
* Access mock location is no longer a runtime permission - frameworkSvet Ganov2015-05-132-49/+42
| | | | | | | | | | | | | | | The access mock location is no longer a runtime permission. It is a signature protected one that apps cannot get but the fact they request it means they want to inject location into the system. Now the user gets to choose the current mock location app in developer options from the apps that request the mock location permission. The access to mock location is no longer guarded by the permisson but from a new app op which is off by default and the settiings UI sets it to enabled only for the currently selected mock location app. bug:21078873 Change-Id: I19e3f9dc7c7de82eab46b30fec1abfbca54a0e59
* am 2c160c1a: am bdf9ffdd: am c0667853: Merge "Add SystemApis in ↵destradaa2015-04-292-14/+0
|\ | | | | | | | | | | | | GpsMeasurements APIs to reflect changes in GPS HAL. b/19938206" into mnc-dev * commit '2c160c1a64a696dcb6261311ca0a406a07231d33': Add SystemApis in GpsMeasurements APIs to reflect changes in GPS HAL. b/19938206
| * Add SystemApis in GpsMeasurements APIs to reflect changes in GPS HAL.destradaa2015-04-282-14/+0
| | | | | | | | | | | | b/19938206 Change-Id: I91fd65b29e091b600ee4982a16321308e4d55aef
* | Add permission annotations on the LocationManager APITor Norbye2015-04-231-0/+31
|/ | | | Change-Id: I244e8da8a91bba05e5437b9b386caf4e5cf7b125
* Update GpsMeasurements APIs to reflect changes in GPS HAL.destradaa2015-04-152-3/+116
| | | | | | | | | | | | | | b/19938206 All new introduced APIs are hidden. GpsMeasurement#isPseudorangeRateCorrected() is need to properly identify different types of data provided by different partners. Given the nature of each GPS engine, this change is required to accomodate the data that can be provided by many partners. GpsNavigationMessage#getStatus() is required to ensure that the Location process is aware if the state of the messages, and can act depending on it. Change-Id: Ie34b1e69bf26a1bde86931ce61168421429bf8f8
* Add versioning to FLP HAL.David Christie2015-04-142-1/+22
| | | | | | | Retain compatibility with implementations compiled against old headers or left unchanged from LMP. Change-Id: I3f7cfaaf0cba8697c312940a805b053c6040caa6
* Add ability to flush FLP HAL batched locations buffer.David Christie2015-04-131-0/+8
| | | | | | | | | Currently GmsCore has to guess how many locations to retrieve based on requested frequency and then demux the output looking for timestamps (that aren't monotonically increasing). This capability gives GmsCore a more graceful solution. Change-Id: Ie1d71615f699bc0d3c63f8b80aa7b40b9971cf96
* Add a status callback for location batching in FLP HALDavid Christie2015-04-132-4/+48
| | | | | | | -Allows GmsCore to know when location is unsuccessful so it can switch to a SW solution. Change-Id: I3d1df7b828f7fb189446881eea87d9a952310614
* Add capability callback for FLP HAL.David Christie2015-04-122-9/+64
| | | | | | | | | | | | | | | | | | | | Let HAL implementation tell if geofencing/batching is supported and which technologies (GNNS, wifi, etc) can be used. Still todo: Add ability for GmsCore geofencing to tell which technologies are supported (instead of just using it to update monitoring). This requires SystemApi change + approval so will do in separate CL. Note that the classes in the lib are not copied directly into GmsCore. The instance will always be whatever is in the platform. This is why the callback is backwards compatible as long as their is a default implementation (but not if it's abstract). Change-Id: I7d6adeb049b89935bc4443785df5d7ef4c730e5d
* Add smallest displacement field to FLP HALDavid Christie2015-04-082-0/+20
| | | | Change-Id: I4d857256c035c65185be3be8401bec8d45091aaf
* Replace usages of deprecated Resources.getColor() and getColorStateList()Alan Viverette2015-03-181-1/+1
| | | | Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-1/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Update handling of enum/flag fields in GPS data structures.destradaa2015-02-113-106/+65
| | | | | | | | 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
* Reduce memory usage of GpsStatus objects.destradaa2015-02-033-36/+435
| | | | | | | | | | | | | | 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
* Revert API breaking change in System API.destradaa2015-02-021-3/+3
| | | | | | Change introduced in ag/616521 Change-Id: Ia95982b051496e123b4a179746aea15c6a0b8a65
* Merge "Fix race condition generating READY and NOT_SUPPORTED statuses."destradaa2015-02-021-3/+3
|\
| * Fix race condition generating READY and NOT_SUPPORTED statuses.destradaa2015-01-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Update Location.convert() javadocs to reflect their inconsistency with locales.Soonil Nagarkar2015-01-301-1/+6
|/ | | | | | | | | 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
* am a4c40c37: am 72d33849: Merge "Missing break in switch statement"Narayan Kamath2014-12-301-0/+1
|\ | | | | | | | | * commit 'a4c40c373477983622622186946d21802400876e': Missing break in switch statement
| * Merge "Missing break in switch statement"Narayan Kamath2014-12-301-0/+1
| |\
| | * Missing break in switch statementYou Kim2013-08-281-0/+1
| | | | | | | | | | | | Change-Id: I1b7e7a94df8d39e162050911e31e510d2ce5447e
| * | am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-devDianne Hackborn2014-10-081-1/+1
| |\ \ | | | | | | | | | | | | | | | | * commit '89b196958fee07475765bd3c458098464ba16f2e': Put in real "code" (aka marketing) name.
| * \ \ am 6ec5a256: am 4be6fdeb: am ba2199fa: Merge "docs: Modified the notice in ↵Quddus Chong2014-10-071-16/+14
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * \ \ \ am e6e4b2bf: Merge "Fix an incorrect behavior that failed AT&T privacy ↵Tsuwei Chen2014-09-251-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test." into lmp-dev * commit 'e6e4b2bfa3782f63ed0b4b802e5a9d59a6a48f49': Fix an incorrect behavior that failed AT&T privacy test.
| * \ \ \ \ am ef52db95: am b2e91428: Merge "Add @SystemApi to LocationManager methods ↵David Christie2014-09-171-0/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | used by GmsCore (with reflection). Bug: 17515515" into lmp-dev * commit 'ef52db9536b0aef77a1543ca3a97a4ad43a70e9a': Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515
* | \ \ \ \ \ am 00916297: am 3546c9a5: Merge "Mark Gps Raw related APIs as System APIs. ↵destradaa2014-11-076-0/+16
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16727892" into lmp-mr1-dev * commit '0091629788e883222ad358fa70e2cdfb3d71a296': Mark Gps Raw related APIs as System APIs. b/16727892
| * \ \ \ \ \ \ Merge "Mark Gps Raw related APIs as System APIs. b/16727892" into lmp-mr1-devdestradaa2014-11-076-0/+16
| |\ \ \ \ \ \ \
| | * | | | | | | Mark Gps Raw related APIs as System APIs.destradaa2014-10-316-3/+16
| | | |_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16727892 Change-Id: I29d78d45aef7829c3321ae4e7c26549e46fa39f9
* | | | | | | | am 9ed36c42: Merge "Add support for GPS measurement/navigation message ↵destradaa2014-11-079-27/+104
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | | Merge "Add support for GPS measurement/navigation message capabilities. ↵destradaa2014-11-069-27/+104
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16727892 b/16815124" into lmp-mr1-dev
| | * | | | | | | Add support for GPS measurement/navigation message capabilities.destradaa2014-10-319-27/+104
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | am a084d357: Merge "Fix reference leak in GPS measurement JNI layer. ↵destradaa2014-11-071-0/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16727892 b/17075171" into lmp-mr1-dev automerge: c3e5599 * commit 'a084d357d3fd0a5696998e786aeb10ff394f24d5': Fix reference leak in GPS measurement JNI layer. b/16727892 b/17075171
| * | | | | | | Fix reference leak in GPS measurement JNI layer.destradaa2014-10-311-0/+1
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16727892 b/17075171 Change-Id: I5f41c6db114078b927e56a7614fa7c09a288e2b2
* | | | | | | am 36ae48a8: am d83e9e42: am 0761b1b5: am 89b19695: Merge "Put in real ↵Dianne Hackborn2014-10-101-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "code" (aka marketing) name." into lmp-dev * commit '36ae48a850bade17d485cb49dd40a3f11f667ad4': Put in real "code" (aka marketing) name.
| * | | | | | Merge "Put in real "code" (aka marketing) name." into lmp-devDianne Hackborn2014-10-081-1/+1
| |\ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | |
| | * | | | | Put in real "code" (aka marketing) name.Dianne Hackborn2014-10-071-1/+1
| | | |_|/ / | | |/| | | | | | | | | | | | | | | Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
* | | | | | am 11735a0b: am 61e6d40b: am 5b5bc109: am 6ec5a256: am 4be6fdeb: am ↵Quddus Chong2014-10-071-16/+14
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | am 4be6fdeb: am ba2199fa: Merge "docs: Modified the notice in the ↵Quddus Chong2014-10-071-16/+14
| |\ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | | docs: Modified the notice in the android.location package file to stronglyQuddus Chong2014-10-031-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | encourage developers to migrate to the Google Play Services Location API. Change-Id: I9c2602daa7198eca38841582865c6a973f5acec8