Merge changes from topic "am-9f1f3a1f2cf946f0b2fe74dbf8e9b4d1" into rvc-qpr-dev-plus-aosp
* changes: Merge "DO NOT MERGE: Do not inject mock location to chipset" into rvc-qpr-dev am:94b4830cb8DO NOT MERGE: Do not inject mock location to chipset am:abccd8f7bc
This commit is contained in:
committed by
Android (Google) Code Review
commit
b8349d34c2
@@ -841,6 +841,9 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
|
||||
}
|
||||
|
||||
private void injectBestLocation(Location location) {
|
||||
if (location.isFromMockProvider()) {
|
||||
return;
|
||||
}
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "injectBestLocation: " + location);
|
||||
}
|
||||
@@ -942,6 +945,9 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
|
||||
}
|
||||
|
||||
private void injectLocation(Location location) {
|
||||
if (location.isFromMockProvider()) {
|
||||
return;
|
||||
}
|
||||
if (location.hasAccuracy()) {
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "injectLocation: " + location);
|
||||
|
||||
Reference in New Issue
Block a user