summaryrefslogtreecommitdiffstats
path: root/voip/java
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2010-10-07 09:14:57 +0800
committerHung-ying Tyan <tyanh@google.com>2010-10-07 09:15:25 +0800
commit9db99a4dc10ac0d5d3751f03ea51c0fed217d2f8 (patch)
treedc2d0b758d1dcd0bbffb084d8efebbf9a11b3d96 /voip/java
parent70f1a3b8a0fcf332e35f87be85ae3a9e37a85e9c (diff)
downloadframeworks_base-9db99a4dc10ac0d5d3751f03ea51c0fed217d2f8.zip
frameworks_base-9db99a4dc10ac0d5d3751f03ea51c0fed217d2f8.tar.gz
frameworks_base-9db99a4dc10ac0d5d3751f03ea51c0fed217d2f8.tar.bz2
Make SipService broadcast SIP_SERVICE_UP when it's up.
http://b/issue?id=3062010 Change-Id: I13419fa3a8fdfba1977260f703e4dcaa42a6606c
Diffstat (limited to 'voip/java')
-rw-r--r--voip/java/android/net/sip/SipManager.java7
-rw-r--r--voip/java/com/android/server/sip/SipService.java1
2 files changed, 8 insertions, 0 deletions
diff --git a/voip/java/android/net/sip/SipManager.java b/voip/java/android/net/sip/SipManager.java
index 80c35fb..8c32aa0 100644
--- a/voip/java/android/net/sip/SipManager.java
+++ b/voip/java/android/net/sip/SipManager.java
@@ -65,6 +65,13 @@ public class SipManager {
public static final String EXTRA_OFFER_SD = "android:sipOfferSD";
/**
+ * Action to broadcast when SipService is up.
+ * Internal use only.
+ * @hide
+ */
+ public static final String ACTION_SIP_SERVICE_UP =
+ "android.net.sip.SIP_SERVICE_UP";
+ /**
* Action string for the incoming call intent for the Phone app.
* Internal use only.
* @hide
diff --git a/voip/java/com/android/server/sip/SipService.java b/voip/java/com/android/server/sip/SipService.java
index d8a1572..1fa2400 100644
--- a/voip/java/com/android/server/sip/SipService.java
+++ b/voip/java/com/android/server/sip/SipService.java
@@ -100,6 +100,7 @@ public final class SipService extends ISipService.Stub {
public static void start(Context context) {
if (SipManager.isApiSupported(context)) {
ServiceManager.addService("sip", new SipService(context));
+ context.sendBroadcast(new Intent(SipManager.ACTION_SIP_SERVICE_UP));
Log.i(TAG, "SIP service started");
}
}