mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 899418 - B2G RIL: remove deprecated interface methods/attributes from nsIRadioInterface. r=vicamo
This commit is contained in:
parent
f1777becac
commit
3bc7e2d3a6
@ -3543,10 +3543,6 @@ RadioInterface.prototype = {
|
||||
reason: reason});
|
||||
},
|
||||
|
||||
getDataCallList: function getDataCallList() {
|
||||
this.worker.postMessage({rilMessageType: "getDataCallList"});
|
||||
},
|
||||
|
||||
getCardLockState: function getCardLockState(message) {
|
||||
message.rilMessageType = "iccGetCardLockState";
|
||||
this.worker.postMessage(message);
|
||||
|
@ -79,33 +79,17 @@ interface nsIRilContext : nsISupports
|
||||
readonly attribute nsIDOMMozMobileConnectionInfo data;
|
||||
};
|
||||
|
||||
[scriptable, uuid(715c972b-97c5-48fd-a8b1-d50e6852153a)]
|
||||
[scriptable, uuid(5efcd358-080e-46d6-a7f7-4f36c204eec3)]
|
||||
interface nsIRadioInterface : nsISupports
|
||||
{
|
||||
/**
|
||||
* Activates or deactivates radio power.
|
||||
*/
|
||||
void setRadioEnabled(in bool value);
|
||||
|
||||
readonly attribute nsIRilContext rilContext;
|
||||
|
||||
readonly attribute nsIVoicemailInfo voicemailInfo;
|
||||
|
||||
/**
|
||||
* PDP APIs
|
||||
*/
|
||||
void setupDataCallByType(in DOMString apntype);
|
||||
void deactivateDataCallByType(in DOMString apntype);
|
||||
long getDataCallStateByType(in DOMString apntype);
|
||||
void setupDataCall(in long radioTech,
|
||||
in DOMString apn,
|
||||
in DOMString user,
|
||||
in DOMString passwd,
|
||||
in long chappap,
|
||||
in DOMString pdptype);
|
||||
void deactivateDataCall(in DOMString cid,
|
||||
in DOMString reason);
|
||||
void getDataCallList();
|
||||
|
||||
void registerDataCallCallback(in nsIRILDataCallback callback);
|
||||
void unregisterDataCallCallback(in nsIRILDataCallback callback);
|
||||
|
@ -5,6 +5,5 @@ qemu = true
|
||||
|
||||
[test_geolocation.js]
|
||||
disabled = Bug 808783
|
||||
[test_get_voicemailInfo.js]
|
||||
[test_fakevolume.js]
|
||||
[test_ril_code_quality.py]
|
||||
|
@ -1,26 +0,0 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
MARIONETTE_TIMEOUT = 10000;
|
||||
|
||||
let Cc = SpecialPowers.Cc;
|
||||
let Ci = SpecialPowers.Ci;
|
||||
|
||||
// Get RadioInterfaceLayer interface.
|
||||
let radioInterfaceLayer =
|
||||
Cc["@mozilla.org/ril;1"].getService(Ci.nsIRadioInterfaceLayer);
|
||||
ok(radioInterfaceLayer);
|
||||
|
||||
// Get RadioInterface.
|
||||
let radioInterface = radioInterfaceLayer.getRadioInterface(0);
|
||||
ok(radioInterface);
|
||||
|
||||
// Check voicemail information accessible.
|
||||
ok(radioInterface.voicemailInfo);
|
||||
ok(radioInterface.voicemailInfo.number);
|
||||
ok(radioInterface.voicemailInfo.displayName);
|
||||
// These are the emulator's hard coded voicemail number and alphaId.
|
||||
is(radioInterface.voicemailInfo.number, "+15552175049");
|
||||
is(radioInterface.voicemailInfo.displayName, "Voicemail");
|
||||
|
||||
finish();
|
Loading…
x
Reference in New Issue
Block a user