diff options
author | Wink Saville <wink@google.com> | 2013-04-18 10:07:05 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-04-18 10:07:05 -0700 |
commit | e1d947602a932047a4c8112c256b5f7832d3f255 (patch) | |
tree | 2e70720df002adaf22dd3f01bf3f6276ce9c8627 /libril | |
parent | b06064fb5294f83f939b0fb1651f8f026cdc3a36 (diff) | |
parent | c57b3eb525db241bd3e6092453f48388bc880447 (diff) | |
download | android_hardware_ril-e1d947602a932047a4c8112c256b5f7832d3f255.tar.gz android_hardware_ril-e1d947602a932047a4c8112c256b5f7832d3f255.tar.bz2 android_hardware_ril-e1d947602a932047a4c8112c256b5f7832d3f255.zip |
am c57b3eb5: Add CellInfoWcdma.
* commit 'c57b3eb525db241bd3e6092453f48388bc880447':
Add CellInfoWcdma.
Diffstat (limited to 'libril')
-rw-r--r-- | libril/ril.cpp | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp index 781d361..bd83654 100644 --- a/libril/ril.cpp +++ b/libril/ril.cpp @@ -2214,13 +2214,12 @@ static int responseCellInfoList(Parcel &p, void *response, size_t responselen) p.writeInt64(p_cur->timeStamp); switch(p_cur->cellInfoType) { case RIL_CELL_INFO_TYPE_GSM: { - appendPrintBuf("%s GSM id: mcc=%d,mnc=%d,lac=%d,cid=%d,psc=%d,", printBuf, + appendPrintBuf("%s GSM id: mcc=%d,mnc=%d,lac=%d,cid=%d,", printBuf, p_cur->CellInfo.gsm.cellIdentityGsm.mcc, p_cur->CellInfo.gsm.cellIdentityGsm.mnc, p_cur->CellInfo.gsm.cellIdentityGsm.lac, - p_cur->CellInfo.gsm.cellIdentityGsm.cid, - p_cur->CellInfo.gsm.cellIdentityGsm.psc); - appendPrintBuf("%s SS: gsmSS ss=%d,ber=%d],", printBuf, + p_cur->CellInfo.gsm.cellIdentityGsm.cid); + appendPrintBuf("%s gsmSS: ss=%d,ber=%d],", printBuf, p_cur->CellInfo.gsm.signalStrengthGsm.signalStrength, p_cur->CellInfo.gsm.signalStrengthGsm.bitErrorRate); @@ -2228,11 +2227,30 @@ static int responseCellInfoList(Parcel &p, void *response, size_t responselen) p.writeInt32(p_cur->CellInfo.gsm.cellIdentityGsm.mnc); p.writeInt32(p_cur->CellInfo.gsm.cellIdentityGsm.lac); p.writeInt32(p_cur->CellInfo.gsm.cellIdentityGsm.cid); - p.writeInt32(p_cur->CellInfo.gsm.cellIdentityGsm.psc); p.writeInt32(p_cur->CellInfo.gsm.signalStrengthGsm.signalStrength); p.writeInt32(p_cur->CellInfo.gsm.signalStrengthGsm.bitErrorRate); break; } + case RIL_CELL_INFO_TYPE_WCDMA: { + appendPrintBuf("%s WCDMA id: mcc=%d,mnc=%d,lac=%d,cid=%d,psc=%d,", printBuf, + p_cur->CellInfo.wcdma.cellIdentityWcdma.mcc, + p_cur->CellInfo.wcdma.cellIdentityWcdma.mnc, + p_cur->CellInfo.wcdma.cellIdentityWcdma.lac, + p_cur->CellInfo.wcdma.cellIdentityWcdma.cid, + p_cur->CellInfo.wcdma.cellIdentityWcdma.psc); + appendPrintBuf("%s wcdmaSS: ss=%d,ber=%d],", printBuf, + p_cur->CellInfo.wcdma.signalStrengthWcdma.signalStrength, + p_cur->CellInfo.wcdma.signalStrengthWcdma.bitErrorRate); + + p.writeInt32(p_cur->CellInfo.wcdma.cellIdentityWcdma.mcc); + p.writeInt32(p_cur->CellInfo.wcdma.cellIdentityWcdma.mnc); + p.writeInt32(p_cur->CellInfo.wcdma.cellIdentityWcdma.lac); + p.writeInt32(p_cur->CellInfo.wcdma.cellIdentityWcdma.cid); + p.writeInt32(p_cur->CellInfo.wcdma.cellIdentityWcdma.psc); + p.writeInt32(p_cur->CellInfo.wcdma.signalStrengthWcdma.signalStrength); + p.writeInt32(p_cur->CellInfo.wcdma.signalStrengthWcdma.bitErrorRate); + break; + } case RIL_CELL_INFO_TYPE_CDMA: { appendPrintBuf("%s CDMA id: nId=%d,sId=%d,bsId=%d,long=%d,lat=%d", printBuf, p_cur->CellInfo.cdma.cellIdentityCdma.networkId, |