summaryrefslogtreecommitdiffstats
path: root/location
diff options
context:
space:
mode:
authorTsuwei Chen <tsuwei@google.com>2014-08-25 11:49:11 -0700
committerTsuwei Chen <tsuwei@google.com>2014-08-30 00:17:39 +0000
commit52617bbff8607cdc208ba107ec111bd1471433cb (patch)
tree5e48b8c85895759f7145a6136e2053d7218ac003 /location
parent09daab204c4121138b77d43c3c56632474612a4d (diff)
downloadframeworks_base-52617bbff8607cdc208ba107ec111bd1471433cb.zip
frameworks_base-52617bbff8607cdc208ba107ec111bd1471433cb.tar.gz
frameworks_base-52617bbff8607cdc208ba107ec111bd1471433cb.tar.bz2
Reload GPS configuration after carrier info is available.
Bug: 17110478 Change-Id: I1ecb71c4ca661df3dfeaea1622d73caeacb1350e
Diffstat (limited to 'location')
-rw-r--r--location/java/android/location/GpsMeasurement.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/location/java/android/location/GpsMeasurement.java b/location/java/android/location/GpsMeasurement.java
index 591a6ca..1550dc2 100644
--- a/location/java/android/location/GpsMeasurement.java
+++ b/location/java/android/location/GpsMeasurement.java
@@ -49,7 +49,7 @@ public class GpsMeasurement implements Parcelable {
private double mCarrierPhase;
private double mCarrierPhaseUncertainty;
private byte mLossOfLock;
- private short mBitNumber;
+ private int mBitNumber;
private short mTimeFromLastBitInMs;
private double mDopplerShiftInHz;
private double mDopplerShiftUncertaintyInHz;
@@ -784,14 +784,14 @@ public class GpsMeasurement implements Parcelable {
*
* The value is only available if {@link #hasBitNumber()} is true.
*/
- public short getBitNumber() {
+ public int getBitNumber() {
return mBitNumber;
}
/**
* Sets the bit number within the broadcast frame.
*/
- public void setBitNumber(short bitNumber) {
+ public void setBitNumber(int bitNumber) {
setFlag(HAS_BIT_NUMBER);
mBitNumber = bitNumber;
}
@@ -801,7 +801,7 @@ public class GpsMeasurement implements Parcelable {
*/
public void resetBitNumber() {
resetFlag(HAS_BIT_NUMBER);
- mBitNumber = Short.MIN_VALUE;
+ mBitNumber = Integer.MIN_VALUE;
}
/**
@@ -1161,7 +1161,7 @@ public class GpsMeasurement implements Parcelable {
gpsMeasurement.mCarrierPhase = parcel.readDouble();
gpsMeasurement.mCarrierPhaseUncertainty = parcel.readDouble();
gpsMeasurement.mLossOfLock = parcel.readByte();
- gpsMeasurement.mBitNumber = (short) parcel.readInt();
+ gpsMeasurement.mBitNumber = parcel.readInt();
gpsMeasurement.mTimeFromLastBitInMs = (short) parcel.readInt();
gpsMeasurement.mDopplerShiftInHz = parcel.readDouble();
gpsMeasurement.mDopplerShiftUncertaintyInHz = parcel.readDouble();