summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/location
Commit message (Collapse)AuthorAgeFilesLines
* Resolve merge conflict for '75f1fdec':Mike Lockwood2011-08-041-2/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GPS Provider Service changes GPS engine needs to receive network state changes from Android fw. Added db query for the current APN, also added a new parameter between JNI / HAL to the new method in AGpsRilInterface struct for gps engine to receive APN from GPSLocationService Conflicts: services/java/com/android/server/location/GpsLocationProvider.java Change-Id: I33c45027f1571493d3525324f62d199517c4960c Signed-off-by: Mike Lockwood <lockwood@android.com>
| * am 0b3af353: am a82ee49a: am 8f5dd9ad: Merge "GPS Provider Service changes"Mike Lockwood2011-08-041-2/+33
| |\ | | | | | | | | | | | | * commit '0b3af353dcf61177158934a11404cf2914038696': GPS Provider Service changes
| | * GPS Provider Service changesKevin Tang2011-08-041-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GPS engine needs to receive network state changes from Android fw. Added db query for the current APN, also added a new parameter between JNI / HAL to the new method in AGpsRilInterface struct for gps engine to receive APN from GPSLocationService Change-Id: I62e35c948d2ac1961771d1a10581a3b8e695c05a Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 21700fed: am 5f7203eb: am 5a27a754: am bd1dee94: Merge "gps: Adding ip ↵Mike Lockwood2011-07-281-1/+20
|\ \ \ | |/ / | | | | | | | | | | | | | | | address for AGps" * commit '21700fedfe29f6a0a752d2bea46142038e69136c': gps: Adding ip address for AGps
| * | am 5f7203eb: am 5a27a754: am bd1dee94: Merge "gps: Adding ip address for AGps"Mike Lockwood2011-07-281-1/+20
| |\ \ | | |/ | | | | | | | | | * commit '5f7203eb258503bc5d2ba29176bdf483a68a93b8': gps: Adding ip address for AGps
| | * gps: Adding ip address for AGpsStephen Li2011-07-281-1/+20
| | | | | | | | | | | | Change-Id: Ic590187d159853de2f1bd2912e159f0a00d8fb10
* | | am f8d13e53: am bf676d46: am 7083ed44: am 0ff79e88: Merge "GPS: Changes to ↵Mike Lockwood2011-07-281-1/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | enable on-demand data call flow for CDMA connections" * commit 'f8d13e535c3e6166c2386adac3b3a2f115d2b79d': GPS: Changes to enable on-demand data call flow for CDMA connections
| * | am bf676d46: am 7083ed44: am 0ff79e88: Merge "GPS: Changes to enable ↵Mike Lockwood2011-07-281-1/+6
| |\ \ | | |/ | | | | | | | | | | | | | | | on-demand data call flow for CDMA connections" * commit 'bf676d460d1d1fc8923982006c38d0f6785daea8': GPS: Changes to enable on-demand data call flow for CDMA connections
| | * GPS: Changes to enable on-demand data call flow for CDMA connectionsStephen Li2011-06-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the CDMA case we do not get a valid APN on a data connection request to the connectivity manager. A fix is put in so that even if we get a null APN we populate this field before we call native_agps_data_conn_open() method to avoid a run time exception. Change-Id: I134ead5d8b177fced9b14756c6bd8199a2b9c35d
* | | Fix issue #4466531: onServiceConnected() not called after...Dianne Hackborn2011-07-262-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...apk reinstall; affects user privacy Disconnecting a ServiceConnection after an app is torn down could impact the bookkeeping of the same service if it has been started for the app. Also address issue #5073927: GSF process can't be killed A new flag allows the systems location manager service to tell the activity manager to not pull bound services up forever into the visible adj level. Change-Id: I2557eca0e4bd48f3b10007c40ec878e769fd96a8
* | | Cached NTP time for system services.Jeff Sharkey2011-07-101-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Uses NTP server and timeout from secure settings, or fallback to defaults in resources. Update various system services to use cached NTP time when fresh enough, or force updates as needed. Bug: 4517273 Change-Id: Ie1c4c4883836013d02ca0bbd850cf8949f93b34b
* | | GPS: Support for on-demand NTP time injectionMike Lockwood2011-06-291-5/+23
| | | | | | | | | | | | | | | Change-Id: I83db0249c13598070ed70b9f90207305b60b468f Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 859443f2: am c0d9834a: am 5d78e0b8: Merge "GPS: Change NTP polling ↵Mike Lockwood2011-05-241-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | interval from 4 to 24 hours" into honeycomb-mr2 * commit '859443f2a4d6a2b72c3e9c75720d32d4e4c09489': GPS: Change NTP polling interval from 4 to 24 hours
| * | am c0d9834a: am 5d78e0b8: Merge "GPS: Change NTP polling interval from 4 to ↵Mike Lockwood2011-05-231-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 24 hours" into honeycomb-mr2 * commit 'c0d9834a1c6dd8d9cd0b7fe9b50495578c104405': GPS: Change NTP polling interval from 4 to 24 hours
| | * | GPS: Change NTP polling interval from 4 to 24 hoursMike Lockwood2011-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 4 hours is excessive, and we want to save bandwidth on the NTP servers Change-Id: Ic5ac4f4a8e62167206f3f620ea51635a2ea771d6 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | am ee60f3fb: resolved conflicts for merge of 18cc814c to honeycomb-plus-aospJake Hamby2011-05-111-8/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'ee60f3fb1b4e61ac8027293a658ba710e36d36b6': Enable support for SMS national language shift tables.
| * | | resolved conflicts for merge of 18cc814c to honeycomb-plus-aospJake Hamby2011-05-101-8/+3
| |\ \ \ | | | |/ | | |/| | | | | Change-Id: I2b569ada3baec2dc486296623063bc2b504c5e96
| | * | Enable support for SMS national language shift tables.Jake Hamby2011-04-061-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for encoding and decoding SMS 7 bit user data using the national language shift tables defined in 3GPP TS 23.038 (GSM/UMTS only), including the new tables added in Release 9 for Indic languages. Decoding is always supported, but encoding is only enabled for the specific language tables added to the new integer array resources "config_sms_enabled_single_shift_tables" and "config_sms_enabled_locking_shift_tables" defined in frameworks/base/core/res/res/values/config.xml. The default empty arrays should be overridden in an OEM overlay for the specific nationalities where SMS national language shift table encoding is allowed/mandated (e.g. Turkey). GsmAlphabet.countGsmSeptets() will try to find the most efficient encoding among all combinations of enabled locking shift and single shift tables. If no 7 bit encoding is possible, 16 bit UCS-2 encoding will be used. This change also fixes a bug in the decoder: when an escape septet is followed by a septet with no entry in the extension (single shift) table, TS 23.038 Table 6.2.1.1 states that the MS shall display the character in the main GSM 7 bit default alphabet table, or the active national language locking shift table. Previously, we were decoding this sequence as a space character. Two consecutive escape septets will continue to decode as a space character, according to Note 1 of table 6.2.1.1. Change-Id: I4dab3f0ffe39f3df2064ed93c9c05f26e274d18b
* | | | Use passive provider for location based country detectionDaisuke Miyakawa2011-04-282-40/+78
| | | | | | | | | | | | | | | | | | | | Bug: 4345419 Change-Id: Ia3e071b97c6971538ea994fdee6029db928201d6
* | | | Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-071-1/+0
|/ / / | | | | | | | | | | | | | | | since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
* | | am a5b68f39: am 5982bf66: GPS: Restore XTRA downloading at boot.Mike Lockwood2011-03-171-1/+1
|\ \ \ | |/ / | | / | |/ |/| * commit 'a5b68f39e2936a83eac0b995992724cd5de6905d': GPS: Restore XTRA downloading at boot.
| * GPS: Restore XTRA downloading at boot.Mike Lockwood2011-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Between Froyo and Gingerbread we disabled scheduling an XTRA data download at boot because the Qualcomm engineers thought it should not be necessary. However, some users noticed a GPS performance degradation after receiving their Gingerbread update, and some reported forcing an XTRA download cleared up the problem. This change restores the Froyo behavior of downloading XTRA data after boot. Bug: 3509901 Change-Id: I5a52201a2b24ce4a5d3ddb1f86340e3d5387f603 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 6c8d8d89: am 8c32bddf: Merge "GPS: Disable verbose logging" into gingerbreadMike Lockwood2010-10-251-4/+3
|\ \ | |/ | | | | | | | | | | Merge commit '6c8d8d8927373fdb9ad1c853396b5dbc8295f996' * commit '6c8d8d8927373fdb9ad1c853396b5dbc8295f996': GPS: Disable verbose logging
| * GPS: Disable verbose loggingMike Lockwood2010-10-251-4/+3
| | | | | | | | | | | | | | BUG: 3127049 Change-Id: I9efd9eb7ff69724b133f3b70c52e173f49ddfbc5 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am d78c8d8b: am f6572e7e: Merge "GPS: Fix network type logic in ↵Mike Lockwood2010-10-221-7/+14
|\ \ | |/ | | | | | | | | | | | | | | requestRefLocation" into gingerbread Merge commit 'd78c8d8bb9516878eb5042a28d76bd6bcf4c6780' * commit 'd78c8d8bb9516878eb5042a28d76bd6bcf4c6780': GPS: Fix network type logic in requestRefLocation
| * GPS: Fix network type logic in requestRefLocationMike Lockwood2010-10-221-7/+14
| | | | | | | | | | Change-Id: I20ef81bcf029b289389dba57e6cf457fda5acbf4 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | resolved conflicts for merge of 368fdba4 to masterBrad Fitzpatrick2010-10-211-3/+4
|\ \ | |/ | | | | Change-Id: I42b7b433c86a71a5da5db67109f056a280077c9d
| * Reduce logging.Joe Onorato2010-10-191-3/+4
| | | | | | | | | | | | | | | | | | | | Remember, the system and main logs are - Shared resources - Primarily for recording problems - To be used only for large grained events during normal operation Bug: 3104855 Change-Id: I136fbd101917dcbc8ebc3f96f276426b48bde7b7
* | am 8333d591: am 5d5a9db5: Merge "GPS: Enable some more logging" into gingerbreadMike Lockwood2010-10-191-1/+3
|\ \ | |/ | | | | | | | | | | Merge commit '8333d59133da8e56cfb5465c767e89c61ede28bc' * commit '8333d59133da8e56cfb5465c767e89c61ede28bc': GPS: Enable some more logging
| * GPS: Enable some more loggingMike Lockwood2010-10-181-1/+3
| | | | | | | | | | Change-Id: I7d13c859002fa96fa8c361c0c709931c6b12eb99 Signed-off-by: Mike Lockwood <lockwood@google.com>
* | am 11eada78: am ba2ec2b4: Merge "Enable framework GPS and location manager ↵Mike Lockwood2010-10-191-1/+2
|\ \ | |/ | | | | | | | | | | | | | | logging" into gingerbread Merge commit '11eada780dc82fcac2a1dad4e2dde1d310b4231c' * commit '11eada780dc82fcac2a1dad4e2dde1d310b4231c': Enable framework GPS and location manager logging
| * Enable framework GPS and location manager loggingMike Lockwood2010-10-181-1/+2
| | | | | | | | | | Change-Id: Id54fc01e7288e7d90d7b76824b708bcb2ee88333 Signed-off-by: Mike Lockwood <lockwood@google.com>
* | am 431dd3b1: am 86564dc6: Merge "GPS: Add update_network_state call to ↵Mike Lockwood2010-10-121-0/+8
|\ \ | |/ | | | | | | | | | | | | | | AGpsRillInterface" into gingerbread Merge commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398' * commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398': GPS: Add update_network_state call to AGpsRillInterface
| * GPS: Add update_network_state call to AGpsRillInterfaceMike Lockwood2010-10-111-0/+8
| | | | | | | | | | Change-Id: I404a7a45773f592de7dfe75a8287fef15515ea8b Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 748b413e: am 1c3ef787: Merge "GPS: Do not call sGpsInterface->init() ↵Mike Lockwood2010-10-111-3/+5
|\ \ | |/ | | | | | | | | | | | | | | multiple times" into gingerbread Merge commit '748b413e94c73b760c63a03126df2c4712a1ae05' * commit '748b413e94c73b760c63a03126df2c4712a1ae05': GPS: Do not call sGpsInterface->init() multiple times
| * GPS: Do not call sGpsInterface->init() multiple timesMike Lockwood2010-10-091-3/+5
| | | | | | | | | | Change-Id: I5f2b55959bd67864168690c1fe619e55edc18268 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 98e1f384: am aecab79b: Merge "Remove races in Geocoder/LocationProvider ↵Mike Lockwood2010-10-102-187/+234
|\ \ | |/ | | | | | | | | | | | | | | Proxy" into gingerbread Merge commit '98e1f3840f06d3dfea987154da25d5351460d080' * commit '98e1f3840f06d3dfea987154da25d5351460d080': Remove races in Geocoder/LocationProvider Proxy
| * Merge "Remove races in Geocoder/LocationProvider Proxy" into gingerbreadMike Lockwood2010-10-082-187/+234
| |\
| | * Remove races in Geocoder/LocationProvider ProxyMark Vandevoorde2010-10-052-187/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The proxy must ensure that enable/disable calls are not reordered when proxied; this change adds synchronization to prevent such reordering that could happen following an onServiceConnected() callback, and to ensure cross-thread visibility of writes. Also, when the package is updated, the old service instance must be unbound and the new one bound. This changes uses a separate Connection object per service instance (package version) to avoid confusing the binder objects. Change-Id: I0907f7eed211b97ccfffa395754f1eb8ea8d8fec
* | | resolved conflicts for merge of 6327a9fe to masterMike Lockwood2010-10-071-79/+202
|\ \ \ | |/ / | | | | | | Change-Id: I1a398a7100abf75d8df7ae9a3d6110829645ae64
| * | GPS: Add support for AGpsRilInterface.Miguel Torroja2010-10-051-79/+202
| |/ | | | | | | | | | | | | | | Adding changes to be able to have access to missing data to SUPL (celld, imsi, WAP_PUSH and SMS) Change-Id: I0207f7f7ea6595ed3fd7021cb732feddf52e4cf9 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | resolved conflicts for merge of 53b07027 to masterMike Lockwood2010-09-302-4/+22
|\ \ | |/ | | | | Change-Id: Ia5ce86d84454a4be76e71aeb77942ba8d88d2700
| * location: rebind to network location and geocoder services after package updateMike Lockwood2010-09-302-4/+22
| | | | | | | | | | Change-Id: I2d7db3512b9edd7e0ba27d97442967fc2278e3b9 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 6cec0dc0: am 32371695: Merge "GpsLocationProvider: Fix race condition ↵Mike Lockwood2010-09-221-2/+7
|\ \ | |/ | | | | | | | | | | | | | | while bringing up APN for SUPL." into gingerbread Merge commit '6cec0dc0e47459553a3a6572abd28a8e49ce5875' * commit '6cec0dc0e47459553a3a6572abd28a8e49ce5875': GpsLocationProvider: Fix race condition while bringing up APN for SUPL.
| * GpsLocationProvider: Fix race condition while bringing up APN for SUPL.Mike Lockwood2010-09-221-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | If handleUpdateNetworkState() is called before ConnectivityManager.startUsingNetworkFeature() returns, then we will not call native_agps_data_conn_open() to inform the GPS that the APN is up. So we now set mAGpsDataConnectionState to AGPS_DATA_CONNECTION_OPENING before calling ConnectivityManager.startUsingNetworkFeature() to avoid this problem. Change-Id: I5e1597d6494dc8ab68e608911c546a7a04f2ea07 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Fix broken build due to rename of Geocoder.isImplementedMarc Blank2010-09-201-5/+5
| | | | | | | | Change-Id: I350d560bc99661550f939f70b6abcb40bbe44bfc
* | resolved conflicts for merge of 53686433 to masterDianne Hackborn2010-09-135-9/+17
|\ \ | |/ | | | | Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
| * Track client requests through location manager.Dianne Hackborn2010-09-135-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a problem where applications could ask the location manager to do very heavy-weight things (like... say... update location every minute), which would get accounted against the system instead of the application because ultimately it is the system making the heavy calls (wake locks, etc). To solve this, we introduce a new class WorkSource representing the source of some work. Wake locks and Wifi locks allow you to set the source to use (but only if you are system code and thus can get the permission to do so), which is what will be reported to the battery stats until the actual caller. For the initial implementation, the location manager keeps track of all clients requesting periodic updates, and tells its providers about them as a WorkSource param when setting their min update time. The network location provider uses this to set the source on the wake and wifi locks it acquires, when doing work because of the update period. This should also be used elsewhere, such as in the GPS provider, but this is a good start. Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
* | am 26434836: am b6ef8bad: Merge "GPS: Initialize XTRA support when GPS is ↵Mike Lockwood2010-08-171-2/+6
|\ \ | |/ | | | | | | | | | | | | | | enabled" into gingerbread Merge commit '264348361e0660948a09fe516a535b7c60998def' * commit '264348361e0660948a09fe516a535b7c60998def': GPS: Initialize XTRA support when GPS is enabled
| * GPS: Initialize XTRA support when GPS is enabledMike Lockwood2010-08-171-2/+6
| | | | | | | | | | | | | | BUG: 2923148 Change-Id: If9a643e385c6c567b30f47d4caa35fa812a2ba43 Signed-off-by: Mike Lockwood <lockwood@android.com>