Bug fix for isEmpty() api
As long as there is a specfic rat info with a value, it cannot be regarded as empty data Bug: 260655203 Test: manual Change-Id: I4895e64057a1954cb279845fac15e1dfcd9766db
This commit is contained in:
@@ -567,14 +567,14 @@ public final class ModemActivityInfo implements Parcelable {
|
||||
/** @hide */
|
||||
@TestApi
|
||||
public boolean isEmpty() {
|
||||
boolean isTxPowerEmpty = false;
|
||||
boolean isRxPowerEmpty = false;
|
||||
boolean isTxPowerEmpty = true;
|
||||
boolean isRxPowerEmpty = true;
|
||||
for (int i = 0; i < getSpecificInfoLength(); i++) {
|
||||
if (mActivityStatsTechSpecificInfo[i].isTxPowerEmpty()) {
|
||||
isTxPowerEmpty = true;
|
||||
if (!mActivityStatsTechSpecificInfo[i].isTxPowerEmpty()) {
|
||||
isTxPowerEmpty = false;
|
||||
}
|
||||
if (mActivityStatsTechSpecificInfo[i].isRxPowerEmpty()) {
|
||||
isRxPowerEmpty = true;
|
||||
if (!mActivityStatsTechSpecificInfo[i].isRxPowerEmpty()) {
|
||||
isRxPowerEmpty = false;
|
||||
}
|
||||
}
|
||||
return isTxPowerEmpty
|
||||
|
||||
Reference in New Issue
Block a user