summaryrefslogtreecommitdiffstats
path: root/location/java
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Remove unused method LocationProviderImpl.isEnabled().Mike Lockwood2010-02-011-5/+0
| | | | | | | | | | | | | | | | | | | | | This should have been removed in my previous change. Change-Id: I3a080888f995e77a61e3ebf1c194ccd65686af1e Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Remove ILocationProvider.isEnabled() binder call and use cached value instead.Mike Lockwood2010-02-015-19/+4
| | | | | | | | | | | | | | | Change-Id: Id6a9f6d2e2f5cc5810a2beeb0f869f06e2d18860 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 47d302a0: am bb79e5fd: Merge "Be tolerant of GPS session and engine on ↵Mike Lockwood2010-01-221-5/+28
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | status messages arriving out of order." into eclair Merge commit '47d302a001c71f90bee8dc31d868b463a47f2d51' * commit '47d302a001c71f90bee8dc31d868b463a47f2d51': Be tolerant of GPS session and engine on status messages arriving out of order.
| * | Be tolerant of GPS session and engine on status messages arriving out of order.Mike Lockwood2010-01-201-5/+28
| | | | | | | | | | | | | | | | | | | | | BUG: 2366194 Change-Id: I642dacd397202f671adba5a863394438ca62988d Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Unhide LocationManager APIs needed for unbundled location providers.Mike Lockwood2010-01-111-4/+0
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | less log spewJoe Onorato2010-01-082-33/+29
| | |
* | | Fix broken Javadoc link.Mike Lockwood2010-01-061-2/+2
| | | | | | | | | | | | | | | Change-Id: Ia72dc3dccf95f95c6847eb52d8b210ed774a804b Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Add LocationManagerImpl class to act as a public wrapper for the ↵Mike Lockwood2010-01-062-0/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ILocationProvider interface Location providers implemented outside of the core android platform (like network location) can subclass LocationManagerImpl to implement the location provider interface without being bound too tightly to the location manager internals. Change-Id: Id193d4d09f9a14bea13e81af03c914074cd37cb9
* | | Cleanup and add public wrapper for IGeocodeProvider interface to prepare for ↵Mike Lockwood2010-01-056-18/+166
| | | | | | | | | | | | | | | | | | | | | network location unbundling. Change-Id: I6523d115b56dbf450121e73d48e151f200827eb4 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Unbundling workPaul Westbrook2009-12-141-2/+3
|/ / | | | | | | | | | | Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator NumberPicker, NumberPickerButton to android-common ---
* | GpsLocationProvider: Do not release wakelock until the GPS engine is fully offMike Lockwood2009-12-071-36/+34
| | | | | | | | | | Change-Id: I705b1d33af2d70aa1084cca8f6280fade9461d2c Signed-off-by: Mike Lockwood <lockwood@android.com>
* | GPS: Fix problem with SUPL when SUPL APN is already active.Mike Lockwood2009-10-084-25/+28
| | | | | | | | | | | | | | | | | | | | | | | | Use ConnectivityManager.CONNECTIVITY_ACTION broadcast in LocationManagerService to notify GPS when SUPL connection is ready instead of TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED, which is not sent in all cases. Expand LocationProvider.updateNetworkState() to include NetworkInfo object. Fixes bug b/2155661 Change-Id: Iee227ace7d536b36cf7973e3e6a8b7a621ce6565 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | LocationManagerService: Remove caching of last known locations to flash.Mike Lockwood2009-09-011-3/+0
| | | | | | | | | | Change-Id: Ibbab20a7c48823fb74c2e175824f55248f25bf8a Signed-off-by: Mike Lockwood <lockwood@android.com>
* | gps: Network initiated SUPLDanke Xie2009-08-275-0/+602
| | | | | | | | | | | | Initial contribution from Qualcomm. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | GpsLocationProvider: Default to AGPS on if the setting is missing.Mike Lockwood2009-08-251-1/+1
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | gps: Unhide GpsStatus.NmeaListener interface for receiving NMEA sentencesMike Lockwood2009-08-062-9/+8
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | gps: Add GpsStatus.NmeaListener interface for receiving NMEA sentences.Mike Lockwood2009-08-064-20/+165
| | | | | | | | | | | | | | | | NMEA sentences are passed from the GPS engine to the GpsLocationProvider. They are then sent via the IGpsStatusListener binder interface to clients using the same path as the other GPS status information. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | GPS: Don't call native_set_agps_server() until after we call native_init().Mike Lockwood2009-07-281-8/+17
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | GpsLocationProvider: remove mAgpsConfigured configured flag.Mike Lockwood2009-07-171-5/+1
| | | | | | | | | | | | | | This flag was unnecessary because the lower level GPS code already checks for this and this was causing problems for a GPS implementation that does not use /etc/gps.conf Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am b82759a0: Merge change 6906 into donutAndroid (Google) Code Review2009-07-141-0/+47
|\ \ | | | | | | | | | | | | | | | | | | Merge commit 'b82759a051f55852dabe201ad3354ea9b7b2979d' * commit 'b82759a051f55852dabe201ad3354ea9b7b2979d': location: Add sub-locality, sub-thoroughfare and premises fields to Address class
| * | location: Add sub-locality, sub-thoroughfare and premises fields to Address ↵Mike Lockwood2009-07-141-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | class This is required for fully describing locations in Japan. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Fix typo in Javadoc for LocationManager.GPS_PROVIDERKenny Root2009-07-071-1/+1
| | |
* | | am 54af78a3: Merge change 5950 into donutAndroid (Google) Code Review2009-07-022-0/+10
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c' * commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c': Fix memory leaks in system_server
| * | Fix memory leaks in system_serverSuchi Amalapurapu2009-07-012-0/+10
| | | | | | | | | | | | unlink DeathRecipients in a whole bunch of places to avoid memory leaks
* | | Settings: Add preference to enable/disable assisted GPS.Mike Lockwood2009-06-251-6/+13
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 2e418428: Possibly fix an issue where we thought an app was always using GPS.Dianne Hackborn2009-06-231-31/+48
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '2e418428987132ea66533cbc05f9c526eb59519a' * commit '2e418428987132ea66533cbc05f9c526eb59519a': Possibly fix an issue where we thought an app was always using GPS.
| * | Possibly fix an issue where we thought an app was always using GPS.Dianne Hackborn2009-06-231-31/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There may be some race conditions in the gps provider where it can cause a uid to be double booked for gps usage and never released. Address this by tweaking some locking (so mLocation and the uid array are protected by a lock both when reading and writing). Also add some code to log a warning if someone tries to note a particular uid multiple times, since the code will break in that case. Finally, fix a problem in the battery stats where we weren't allowing a new Uid structure to be created in many cases for calls coming in.
* | | am cde13e6b: Merge change 4954 into donutAndroid (Google) Code Review2009-06-221-2/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'cde13e6bfa6465d5770755892e2ee234a1f85d5c' * commit 'cde13e6bfa6465d5770755892e2ee234a1f85d5c': gps: Check for null APN name to avoid a runtime restart.
| * | gps: Check for null APN name to avoid a runtime restart.Mike Lockwood2009-06-221-2/+7
| | | | | | | | | | | | | | | | | | | | | We still need to figure out how the APN name is getting set to empty string by the telephony code. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am f781b39c: Merge change 4786 into donutAndroid (Google) Code Review2009-06-191-55/+15
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'f781b39cb89dc19e6ad090bd3eb1bedbe7928429' * commit 'f781b39cb89dc19e6ad090bd3eb1bedbe7928429': gps: Set SUPL server via hostname rather than IP address.
| * | gps: Set SUPL server via hostname rather than IP address.Mike Lockwood2009-06-191-55/+15
| | | | | | | | | | | | | | | | | | | | | | | | The GPS engine needs the hostname for the secure SUPL case and deferring the DNS lookup to the HAL might be helpful in the future if the SUPL server is on a carrier's private network. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am fa699ea2: Merge change 3899 into donutAndroid (Google) Code Review2009-06-111-1/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'fa699ea22a13a92694de75ef948a81da23e71642' * commit 'fa699ea22a13a92694de75ef948a81da23e71642': GpsLocationProvider: Add hooks for GPS location injection.
| * | GpsLocationProvider: Add hooks for GPS location injection.Mike Lockwood2009-06-111-1/+6
| | | | | | | | | | | | | | | | | | | | | This will allow injecting cell ID location to the GPS (not implemented yet). Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 8c690ea9: Merge change 2182 into donutAndroid (Google) Code Review2009-05-217-59/+20
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '8c690ea9976d644db3c96eddbbbd2d50eac56913' * commit '8c690ea9976d644db3c96eddbbbd2d50eac56913': location: Replace ILocationCollector interface with new ILocationProvider method
| * | location: Replace ILocationCollector interface with new ILocationProvider methodMike Lockwood2009-05-217-59/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change replaces ILocationCollector with a more general mechanism that passes locations received from a provider to all other providers. The network location provider now uses this to implement the location collector. In the future, this could be used to inject network locations to the GPS as aiding data. This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 2d10ba33: Merge change 2111 into donutAndroid (Google) Code Review2009-05-201-3/+29
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '2d10ba33190c2ff1b24d6c48dd621c55a25bf2cc' * commit '2d10ba33190c2ff1b24d6c48dd621c55a25bf2cc': GPS: Add support for forcing NTP time and XTRA data injection.
| * | GPS: Add support for forcing NTP time and XTRA data injection.Mike Lockwood2009-05-201-3/+29
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 02c1c46f: Merge change 1674 into donutAndroid (Google) Code Review2009-05-141-8/+33
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '02c1c46fff22490f884f05520d58eadae1442db8' * commit '02c1c46fff22490f884f05520d58eadae1442db8': gps: Time out after 1 minute if we are unable to get a fix and our fix interval is long.
| * | gps: Time out after 1 minute if we are unable to get a fix and our fix ↵Mike Lockwood2009-05-141-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | interval is long. This will prevent us from keeping the processor awake indefinitely if a background service is requesting periodic updates and we are unable to get a fix. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 3681f26: LocationManager: Recover if process containing NetworkLocatMike Lockwood2009-05-121-1/+18
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '3681f2614fa8c10560c790f6b4287f65d6fd2663' * commit '3681f2614fa8c10560c790f6b4287f65d6fd2663': LocationManager: Recover if process containing NetworkLocation provider crashes
| * | LocationManager: Recover if process containing NetworkLocation provider crashesMike Lockwood2009-05-121-1/+18
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 2677d0d: LocationManager: Fix a Javadoc comment.Mike Lockwood2009-05-121-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '2677d0da34acad93cd7f164d587ccc30c46facc6' * commit '2677d0da34acad93cd7f164d587ccc30c46facc6': LocationManager: Fix a Javadoc comment.
| * | LocationManager: Fix a Javadoc comment.Mike Lockwood2009-05-121-1/+1
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 5e1d8ae: Merge change 1355 into donutAndroid (Google) Code Review2009-05-111-67/+100
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '5e1d8aed4a557a7c055aa4c19875df75d7e41ae6' * commit '5e1d8aed4a557a7c055aa4c19875df75d7e41ae6': GPS: Generalize SUPL support to include AGPS for CDMA
| * | GPS: Generalize SUPL support to include AGPS for CDMAMike Lockwood2009-05-111-67/+100
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am f792fc5: Merge change 1150 into donutAndroid (Google) Code Review2009-05-074-30/+18
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'f792fc59c18aa470eb44cc596d5774115e2d9d02' * commit 'f792fc59c18aa470eb44cc596d5774115e2d9d02': location: Location Manager wakelock cleanup
| * | location: Location Manager wakelock cleanupMike Lockwood2009-05-074-30/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Location Providers are now responsible for their own wakelocks and scheduling. Also fixed a deadlock in LocationManagerService in the code for releasing wakelocks after client notifications have been received. The fix is to use the Receiver object and mWakeLock for synchronization instead of the global mLock lock. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am fd445d3: Merge change 1095 into donutAndroid (Google) Code Review2009-05-061-13/+47
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'fd445d3510cddc7a67cf7720935626684a2f3011' * commit 'fd445d3510cddc7a67cf7720935626684a2f3011': gps: Move GPS scheduling from libgps to GpsLocationProvider.
| * | gps: Move GPS scheduling from libgps to GpsLocationProvider.Mike Lockwood2009-05-061-13/+47
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am c770ed8: Merge change 1069 into donutAndroid (Google) Code Review2009-05-061-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'c770ed8a6bb7614ed4a85a672e4e6830bed19a95' * commit 'c770ed8a6bb7614ed4a85a672e4e6830bed19a95': GpsStatus: Increase NUM_SATELLITES to 255 for future compatibility.