Bug 1131590 - Support DualCarrier radio tech. r=echen

This commit is contained in:
Alexandre Lissy 2015-02-13 02:17:00 +08:00
parent 228da1bc1c
commit f751a27d29
2 changed files with 10 additions and 1 deletions

View File

@ -465,6 +465,8 @@ this.NETWORK_CREG_TECH_EHRPD = 13;
this.NETWORK_CREG_TECH_LTE = 14; this.NETWORK_CREG_TECH_LTE = 14;
this.NETWORK_CREG_TECH_HSPAP = 15; this.NETWORK_CREG_TECH_HSPAP = 15;
this.NETWORK_CREG_TECH_GSM = 16; this.NETWORK_CREG_TECH_GSM = 16;
this.NETWORK_CREG_TECH_DCHSPAP_1 = 18; // Some devices reports as 18
this.NETWORK_CREG_TECH_DCHSPAP_2 = 19; // Some others report it as 19
this.CELL_INFO_TYPE_GSM = 1; this.CELL_INFO_TYPE_GSM = 1;
this.CELL_INFO_TYPE_CDMA = 2; this.CELL_INFO_TYPE_CDMA = 2;
@ -2913,7 +2915,10 @@ this.GECKO_RADIO_TECH = [
"ehrpd", "ehrpd",
"lte", "lte",
"hspa+", "hspa+",
"gsm" "gsm",
null,
"hspa+", // DC-HSPA+
"hspa+"
]; ];
this.GECKO_VOICEMAIL_MESSAGE_COUNT_UNKNOWN = -1; this.GECKO_VOICEMAIL_MESSAGE_COUNT_UNKNOWN = -1;

View File

@ -4226,6 +4226,8 @@ RilObject.prototype = {
case NETWORK_CREG_TECH_LTE: case NETWORK_CREG_TECH_LTE:
case NETWORK_CREG_TECH_HSPAP: case NETWORK_CREG_TECH_HSPAP:
case NETWORK_CREG_TECH_GSM: case NETWORK_CREG_TECH_GSM:
case NETWORK_CREG_TECH_DCHSPAP_1:
case NETWORK_CREG_TECH_DCHSPAP_2:
return true; return true;
} }
@ -6194,6 +6196,8 @@ RilObject.prototype[REQUEST_GET_NEIGHBORING_CELL_IDS] = function REQUEST_GET_NEI
case NETWORK_CREG_TECH_HSUPA: case NETWORK_CREG_TECH_HSUPA:
case NETWORK_CREG_TECH_HSPA: case NETWORK_CREG_TECH_HSPA:
case NETWORK_CREG_TECH_HSPAP: case NETWORK_CREG_TECH_HSPAP:
case NETWORK_CREG_TECH_DCHSPAP_1:
case NETWORK_CREG_TECH_DCHSPAP_2:
cellId.wcdmaPsc = this.parseInt(cid, -1, 16); cellId.wcdmaPsc = this.parseInt(cid, -1, 16);
break; break;
} }