summaryrefslogtreecommitdiffstats
path: root/telephony/java/com
diff options
context:
space:
mode:
authorSailesh Nepal <sail@google.com>2014-03-25 13:02:59 -0700
committerSailesh Nepal <sail@google.com>2014-03-25 13:02:59 -0700
commit00ffde305da868401b78f92c3ad33fef0221bf7c (patch)
tree455f8032ecb0dddd303edf9c51380e7a7a47a38e /telephony/java/com
parentfa1ce103c65c9f4eba708f1555a59959a4581e4e (diff)
parent2d72d000939acc10ba0f5000689ad86483b7c19e (diff)
downloadframeworks_base-00ffde305da868401b78f92c3ad33fef0221bf7c.zip
frameworks_base-00ffde305da868401b78f92c3ad33fef0221bf7c.tar.gz
frameworks_base-00ffde305da868401b78f92c3ad33fef0221bf7c.tar.bz2
resolved conflicts for merge of 2d72d000 to master-nova
Change-Id: Icfb617ffab2da2f8805e4628e75e006c620b479d
Diffstat (limited to 'telephony/java/com')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl51
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephonyListener.aidl38
2 files changed, 87 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index e2abb9a..ab2a9b8 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -16,10 +16,14 @@
package com.android.internal.telephony;
-import android.os.Bundle;
import android.content.ComponentName;
-import android.telephony.NeighboringCellInfo;
+import android.os.Bundle;
import android.telephony.CellInfo;
+import android.telephony.NeighboringCellInfo;
+
+import com.android.internal.telephony.ITelephonyListener;
+
+import java.util.List;
import java.util.List;
@@ -459,4 +463,47 @@ interface ITelephony {
* @return true on success; false on any failure.
*/
boolean setPreferredNetworkType(int networkType);
+
+ /**
+ * Put a call on hold.
+ */
+ void toggleHold();
+
+ /**
+ * Merge foreground and background calls.
+ */
+ void merge();
+
+ /**
+ * Swap foreground and background calls.
+ */
+ void swap();
+
+ /**
+ * Mute the phone.
+ */
+ void mute(boolean mute);
+
+ /**
+ * Start playing DTMF tone for the specified digit.
+ *
+ * @param digit the digit that corresponds with the desired tone.
+ * @param timedShortcode whether the specified digit should be played as a timed short code.
+ */
+ void playDtmfTone(char digit, boolean timedShortCode);
+
+ /**
+ * Stop playing DTMF tones.
+ */
+ void stopDtmfTone();
+
+ /**
+ * Register a callback.
+ */
+ void addListener(ITelephonyListener listener);
+
+ /**
+ * Unregister a callback.
+ */
+ void removeListener(ITelephonyListener listener);
}
diff --git a/telephony/java/com/android/internal/telephony/ITelephonyListener.aidl b/telephony/java/com/android/internal/telephony/ITelephonyListener.aidl
new file mode 100644
index 0000000..8f5441c
--- /dev/null
+++ b/telephony/java/com/android/internal/telephony/ITelephonyListener.aidl
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.internal.telephony;
+
+/**
+ * Interface used to register a listener that gets more detailed call state information than
+ * {@link android.telephony.PhoneStateListener}
+ *
+ * {@hide}
+ */
+oneway interface ITelephonyListener {
+ /**
+ * Notify of a new or updated call.
+ * Any time the state of a call is updated, it will alert any listeners. This includes changes
+ * of state such as when a call is put on hold or conferenced.
+ *
+ * @param callId a unique identifier for a given call that can be used to track state changes
+ * @param state the new state of the call.
+ * {@see com.android.services.telephony.common.Call$State}
+ * @param number the phone number of the call. For some states, this may be blank. However, it
+ * will be populated for any initial state.
+ */
+ void onUpdate(int callId, int state, String number);
+}