summaryrefslogtreecommitdiffstats
path: root/voip
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2010-08-25 19:02:18 +0800
committerChung-yih Wang <cywang@google.com>2010-08-26 10:12:05 +0800
commit5424c8dcacf1c227fe7deb0185510614122ab447 (patch)
tree6706f881dccb2a6bc3b5f110fc95399ce541f8bc /voip
parent231a0005654d23284ab58a2d9ea892b995988c34 (diff)
downloadframeworks_base-5424c8dcacf1c227fe7deb0185510614122ab447.zip
frameworks_base-5424c8dcacf1c227fe7deb0185510614122ab447.tar.gz
frameworks_base-5424c8dcacf1c227fe7deb0185510614122ab447.tar.bz2
Add dynamic uid info for tracking the sip service usage.
Change-Id: Ibc340401b63799326b08aee6eba602a3e753b13f
Diffstat (limited to 'voip')
-rw-r--r--voip/java/android/net/sip/SipProfile.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/voip/java/android/net/sip/SipProfile.java b/voip/java/android/net/sip/SipProfile.java
index ec8d0ed..6c99141 100644
--- a/voip/java/android/net/sip/SipProfile.java
+++ b/voip/java/android/net/sip/SipProfile.java
@@ -47,6 +47,7 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {
private boolean mSendKeepAlive = false;
private boolean mAutoRegistration = true;
private boolean mAllowOutgoingCall = false;
+ private int mCallingUid = -1;
/** @hide */
public static final Parcelable.Creator<SipProfile> CREATOR =
@@ -293,6 +294,7 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {
mSendKeepAlive = (in.readInt() == 0) ? false : true;
mAutoRegistration = (in.readInt() == 0) ? false : true;
mAllowOutgoingCall = (in.readInt() == 0) ? false : true;
+ mCallingUid = in.readInt();
}
/** @hide */
@@ -306,6 +308,7 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {
out.writeInt(mSendKeepAlive ? 1 : 0);
out.writeInt(mAutoRegistration ? 1 : 0);
out.writeInt(mAllowOutgoingCall ? 1 : 0);
+ out.writeInt(mCallingUid);
}
/** @hide */
@@ -437,4 +440,20 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {
public boolean isOutgoingCallAllowed() {
return mAllowOutgoingCall;
}
+
+ /**
+ * Sets the calling process's Uid in the sip service.
+ * @hide
+ */
+ public void setCallingUid(int uid) {
+ mCallingUid = uid;
+ }
+
+ /**
+ * Gets the calling process's Uid in the sip settings.
+ * @hide
+ */
+ public int getCallingUid() {
+ return mCallingUid;
+ }
}