Merge changes from topic '2016 GPS Changes'
* changes: Framework support to read newly added fields Added an API to query GPS hardware version info GPS Measurement and Navigation APIs go public Supported GNSS multi-constellation in frameworks
This commit is contained in:
@@ -1189,7 +1189,7 @@ public class ConnectivityManager {
|
||||
return TYPE_NONE;
|
||||
}
|
||||
|
||||
// Do this only for SUPL, until GpsLocationProvider is fixed. http://b/25876485 .
|
||||
// Do this only for SUPL, until GnssLocationProvider is fixed. http://b/25876485 .
|
||||
if (!netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) {
|
||||
// NOTE: if this causes app breakage, we should not just comment out this early return;
|
||||
// instead, we should make this early return conditional on the requesting app's target
|
||||
@@ -3170,7 +3170,7 @@ public class ConnectivityManager {
|
||||
|
||||
// Checks whether the calling app can use the legacy routing API (startUsingNetworkFeature,
|
||||
// stopUsingNetworkFeature, requestRouteToHost), and if not throw UnsupportedOperationException.
|
||||
// TODO: convert the existing system users (Tethering, GpsLocationProvider) to the new APIs and
|
||||
// TODO: convert the existing system users (Tethering, GnssLocationProvider) to the new APIs and
|
||||
// remove these exemptions. Note that this check is not secure, and apps can still access these
|
||||
// functions by accessing ConnectivityService directly. However, it should be clear that doing
|
||||
// so is unsupported and may break in the future. http://b/22728205
|
||||
|
||||
@@ -133,7 +133,7 @@ public class NetInitiatedActivity extends AlertActivity implements DialogInterfa
|
||||
notificationId = -1;
|
||||
}
|
||||
|
||||
// Respond to NI Handler under GpsLocationProvider, 1 = accept, 2 = deny
|
||||
// Respond to NI Handler under GnssLocationProvider, 1 = accept, 2 = deny
|
||||
private void sendUserResponse(int response) {
|
||||
if (DEBUG) Log.d(TAG, "sendUserResponse, response: " + response);
|
||||
LocationManager locationManager = (LocationManager)
|
||||
|
||||
Reference in New Issue
Block a user