summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-11-16 14:48:21 -0800
committerSteve Kondik <steve@cyngn.com>2015-11-16 14:48:21 -0800
commit373e7e425b1f803024ccb254836bd1944db04ebc (patch)
tree32ea8fa60737a762c5a9f013108bac4c3151c6a9 /src/com
parentc6e46644f3042d4f417daf8b777e8ea8c897dffc (diff)
parentb6c074939ecd394c8f62880a6a0400cee364be34 (diff)
downloadpackages_apps_ContactsCommon-373e7e425b1f803024ccb254836bd1944db04ebc.tar.gz
packages_apps_ContactsCommon-373e7e425b1f803024ccb254836bd1944db04ebc.tar.bz2
packages_apps_ContactsCommon-373e7e425b1f803024ccb254836bd1944db04ebc.zip
Merge branch 'LA.BF64.1.2.2_rb4.7' of git://codeaurora.org/platform/packages/apps/ContactsCommon into cm-13.0
Change-Id: Ie47f92d13e5581d6d4fd6a6c4414d6880616c40c
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/contacts/common/CallUtil.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/CallUtil.java b/src/com/android/contacts/common/CallUtil.java
index 7585ad4a..f11ea047 100644
--- a/src/com/android/contacts/common/CallUtil.java
+++ b/src/com/android/contacts/common/CallUtil.java
@@ -22,11 +22,13 @@ import com.android.phone.common.PhoneConstants;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
+import android.os.SystemProperties;
import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;
import android.telecom.TelecomManager;
import android.telecom.VideoProfile;
import android.text.TextUtils;
+import android.telephony.TelephonyManager;
import java.util.List;
@@ -186,4 +188,37 @@ public class CallUtil {
}
return false;
}
+
+ /**
+ * if true, conference dialer is enabled.
+ */
+ public static boolean isConferDialerEnabled(Context context) {
+ if (SystemProperties.getBoolean("persist.radio.conferdialer", false)) {
+ TelephonyManager telephonyMgr = (TelephonyManager)
+ context.getSystemService(Context.TELEPHONY_SERVICE);
+ return telephonyMgr.isImsRegistered();
+ }
+ return false;
+ }
+
+ /**
+ * get intent to start conference dialer
+ * with this intent, we can originate an conference call
+ */
+ public static Intent getConferenceDialerIntent(String number) {
+ Intent intent = new Intent("android.intent.action.ADDPARTICIPANT");
+ intent.putExtra("confernece_number_key", number);
+ return intent;
+ }
+
+ /**
+ * used to get intent to start conference dialer
+ * with this intent, we can add participants to an existing conference call
+ */
+ public static Intent getAddParticipantsIntent(String number) {
+ Intent intent = new Intent("android.intent.action.ADDPARTICIPANT");
+ intent.putExtra("add_participant", true);
+ intent.putExtra("current_participant_list", number);
+ return intent;
+ }
}