Bug 981646 - B2G RIL: Cannot read sdn contacts. r=smaug, vicamo

This commit is contained in:
Yoshi Huang 2014-05-16 14:50:00 +08:00
parent ef62ce853c
commit 030b9506d3
3 changed files with 10 additions and 0 deletions

View File

@ -111,5 +111,10 @@ taskHelper.push(function testReadAdnContacts() {
testAddContact("fdn");
});
/* Test read sdn contacts */
taskHelper.push(function testReadSdnContacts() {
testReadContacts("sdn");
});
// Start test
taskHelper.runNext();

View File

@ -11775,6 +11775,7 @@ ICCFileHelperObject.prototype = {
case ICC_EF_ICCID:
return EF_PATH_MF_SIM;
case ICC_EF_ADN:
case ICC_EF_SDN: // Fall through.
return EF_PATH_MF_SIM + EF_PATH_DF_TELECOM;
case ICC_EF_PBR:
return EF_PATH_MF_SIM + EF_PATH_DF_TELECOM + EF_PATH_DF_PHONEBOOK;
@ -14240,6 +14241,9 @@ ICCContactHelperObject.prototype = {
case "fdn":
ICCRecordHelper.readADNLike(ICC_EF_FDN, onsuccess, onerror);
break;
case "sdn":
ICCRecordHelper.readADNLike(ICC_EF_SDN, onsuccess, onerror);
break;
default:
if (DEBUG) {
this.context.debug("Unsupported contactType :" + contactType);

View File

@ -353,6 +353,7 @@ interface MozIcc : EventTarget
* One of type as below,
* - 'adn': Abbreviated Dialling Number.
* - 'fdn': Fixed Dialling Number.
* - 'sdn': Service Dialling Number.
*
* @return a DOMRequest.
*/