public class TestConferenceEventPackageParser extends Object
TelephonyTester
.
<xml>
<participant>
<user>tel:+16505551212</user>
<display-text>Joe Q. Public</display-text>
<endpoint>sip:+16505551212@ims-test-provider.com</endpoint>
<status>connected</status>
</participant>
</xml>
Note: This XML format is similar to the information stored in the
ImsConferenceState
parcelable. The status
values expected in the
XML are those found in the ImsConferenceState
class (e.g.
ImsConferenceState.STATUS_CONNECTED
).
Place a file formatted similar to above in /data/data/com.android.phone/files/ and invoke the following command while you have an ongoing IMS call:
adb shell am broadcast -a com.android.internal.telephony.TestConferenceEventPackage -e filename test.xml
Constructor and Description |
---|
TestConferenceEventPackageParser(InputStream inputStream)
Constructs an input of the conference event package parser for the given input stream.
|
Modifier and Type | Method and Description |
---|---|
ImsConferenceState |
parse()
Parses the conference event package XML file and returns an
ImsConferenceState instance containing the participants described in
the XML file. |
public TestConferenceEventPackageParser(InputStream inputStream)
inputStream
- The input stream.public ImsConferenceState parse()
ImsConferenceState
instance containing the participants described in
the XML file.ImsConferenceState
instance.