Update SATELLITE_BLOCKLIST capability value

Make the capability value consistent with the framework so that it
doesn't need conversion.

Bug: 176854122
Test: on cuttlefish
Change-Id: I4f6c24a55dea59374791a7d5ad3c6ce657712422
This commit is contained in:
Yu-Han Yang 2021-01-06 17:23:15 -08:00
parent faa5e10469
commit ea6cdc0016
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ package android.hardware.gnss;
@VintfStability
interface IGnssCallback {
void gnssSetCapabilitiesCb(in int capabilities);
const int CAPABILITY_SATELLITE_BLOCKLIST = 1;
const int CAPABILITY_SATELLITE_BLOCKLIST = 512;
const int CAPABILITY_CORRELATION_VECTOR = 4096;
const int CAPABILITY_SATELLITE_PVT = 8192;
}

View file

@ -28,7 +28,7 @@ import android.hardware.gnss.IGnssConfiguration;
interface IGnssCallback {
/** Capability bit mask indicating that GNSS supports blocklisting satellites */
const int CAPABILITY_SATELLITE_BLOCKLIST = 1 << 0;
const int CAPABILITY_SATELLITE_BLOCKLIST = 1 << 9;
/** Capability bit mask indicating that GNSS supports correlation vector */
const int CAPABILITY_CORRELATION_VECTOR = 1 << 12;
@ -42,4 +42,4 @@ interface IGnssCallback {
* @param capabilities Capability parameter is a bit field of the Capability bit masks.
*/
void gnssSetCapabilitiesCb(in int capabilities);
}
}