Renaming Telecomm to Telecom.
- Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638
This commit is contained in:
16
Android.mk
16
Android.mk
@@ -347,14 +347,14 @@ LOCAL_SRC_FILES += \
|
||||
media/java/android/media/tv/ITvInputSessionCallback.aidl \
|
||||
media/java/android/service/media/IMediaBrowserService.aidl \
|
||||
media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/IVideoCallback.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/IVideoProvider.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/IConnectionService.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/IInCallService.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/ITelecommService.aidl \
|
||||
telecomm/java/com/android/internal/telecomm/RemoteServiceCallback.aidl \
|
||||
telecomm/java/com/android/internal/telecom/IVideoCallback.aidl \
|
||||
telecomm/java/com/android/internal/telecom/IVideoProvider.aidl \
|
||||
telecomm/java/com/android/internal/telecom/IConnectionService.aidl \
|
||||
telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl \
|
||||
telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl \
|
||||
telecomm/java/com/android/internal/telecom/IInCallService.aidl \
|
||||
telecomm/java/com/android/internal/telecom/ITelecomService.aidl \
|
||||
telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl \
|
||||
telephony/java/com/android/ims/internal/IImsCallSession.aidl \
|
||||
telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl \
|
||||
telephony/java/com/android/ims/internal/IImsConfig.aidl \
|
||||
|
||||
@@ -209,7 +209,7 @@ $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framew
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework2_intermediates)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates/src/telecomm/java/com/android/internal/telecomm)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates/src/telecomm/java/com/android/internal/telecom)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates)
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/framework.* $(PRODUCT_OUT)/system/framework2.*)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates)
|
||||
@@ -223,6 +223,7 @@ $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/servic
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/services_intermediates)
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/inputflinger $(PRODUCT_OUT)/symbols/system/bin/inputflinger)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/RsFountainFbo_intermediates)
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates/src/telecomm/java/com/android/internal/telecomm)
|
||||
|
||||
# ******************************************************************
|
||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST ABOVE THIS BANNER
|
||||
|
||||
182
api/current.txt
182
api/current.txt
@@ -7386,7 +7386,7 @@ package android.content {
|
||||
field public static final java.lang.String SEARCH_SERVICE = "search";
|
||||
field public static final java.lang.String SENSOR_SERVICE = "sensor";
|
||||
field public static final java.lang.String STORAGE_SERVICE = "storage";
|
||||
field public static final java.lang.String TELECOMM_SERVICE = "telecomm";
|
||||
field public static final java.lang.String TELECOM_SERVICE = "telecom";
|
||||
field public static final java.lang.String TELEPHONY_SERVICE = "phone";
|
||||
field public static final java.lang.String TEXT_SERVICES_MANAGER_SERVICE = "textservices";
|
||||
field public static final java.lang.String TV_INPUT_SERVICE = "tv_input";
|
||||
@@ -28197,11 +28197,11 @@ package android.system {
|
||||
|
||||
}
|
||||
|
||||
package android.telecomm {
|
||||
package android.telecom {
|
||||
|
||||
public final class AudioState implements android.os.Parcelable {
|
||||
ctor public AudioState(boolean, int, int);
|
||||
ctor public AudioState(android.telecomm.AudioState);
|
||||
ctor public AudioState(android.telecom.AudioState);
|
||||
method public int describeContents();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field public static final android.os.Parcelable.Creator CREATOR;
|
||||
@@ -28216,20 +28216,20 @@ package android.telecomm {
|
||||
}
|
||||
|
||||
public abstract class Conference {
|
||||
ctor public Conference(android.telecomm.PhoneAccountHandle);
|
||||
method public final boolean addConnection(android.telecomm.Connection);
|
||||
ctor public Conference(android.telecom.PhoneAccountHandle);
|
||||
method public final boolean addConnection(android.telecom.Connection);
|
||||
method public final void destroy();
|
||||
method public final int getCapabilities();
|
||||
method public final java.util.List<android.telecomm.Connection> getConnections();
|
||||
method public final android.telecomm.PhoneAccountHandle getPhoneAccountHandle();
|
||||
method public final java.util.List<android.telecom.Connection> getConnections();
|
||||
method public final android.telecom.PhoneAccountHandle getPhoneAccountHandle();
|
||||
method public final int getState();
|
||||
method public void onDisconnect();
|
||||
method public void onHold();
|
||||
method public void onMerge();
|
||||
method public void onSeparate(android.telecomm.Connection);
|
||||
method public void onSeparate(android.telecom.Connection);
|
||||
method public void onSwap();
|
||||
method public void onUnhold();
|
||||
method public final void removeConnection(android.telecomm.Connection);
|
||||
method public final void removeConnection(android.telecom.Connection);
|
||||
method public final void setActive();
|
||||
method public final void setCapabilities(int);
|
||||
method public final void setDisconnected(int, java.lang.String);
|
||||
@@ -28238,27 +28238,27 @@ package android.telecomm {
|
||||
|
||||
public abstract class Connection {
|
||||
ctor public Connection();
|
||||
method public static android.telecomm.Connection createCanceledConnection();
|
||||
method public static android.telecomm.Connection createFailedConnection(int, java.lang.String);
|
||||
method public static android.telecom.Connection createCanceledConnection();
|
||||
method public static android.telecom.Connection createFailedConnection(int, java.lang.String);
|
||||
method public final void destroy();
|
||||
method public final android.net.Uri getAddress();
|
||||
method public final int getAddressPresentation();
|
||||
method public final boolean getAudioModeIsVoip();
|
||||
method public final android.telecomm.AudioState getAudioState();
|
||||
method public final android.telecom.AudioState getAudioState();
|
||||
method public final int getCallCapabilities();
|
||||
method public final java.lang.String getCallerDisplayName();
|
||||
method public final int getCallerDisplayNamePresentation();
|
||||
method public final android.telecomm.Conference getConference();
|
||||
method public final java.util.List<android.telecomm.Connection> getConferenceableConnections();
|
||||
method public final android.telecom.Conference getConference();
|
||||
method public final java.util.List<android.telecom.Connection> getConferenceableConnections();
|
||||
method public final int getDisconnectCause();
|
||||
method public final java.lang.String getDisconnectMessage();
|
||||
method public final int getState();
|
||||
method public final android.telecomm.StatusHints getStatusHints();
|
||||
method public final android.telecom.StatusHints getStatusHints();
|
||||
method public final boolean isRingbackRequested();
|
||||
method public void onAbort();
|
||||
method public void onAnswer();
|
||||
method public void onAudioStateChanged(android.telecomm.AudioState);
|
||||
method public void onConferenceWith(android.telecomm.Connection);
|
||||
method public void onAudioStateChanged(android.telecom.AudioState);
|
||||
method public void onConferenceWith(android.telecom.Connection);
|
||||
method public void onDisconnect();
|
||||
method public void onHold();
|
||||
method public void onPlayDtmfTone(char);
|
||||
@@ -28273,8 +28273,8 @@ package android.telecomm {
|
||||
method public final void setAudioModeIsVoip(boolean);
|
||||
method public final void setCallCapabilities(int);
|
||||
method public final void setCallerDisplayName(java.lang.String, int);
|
||||
method public final void setConferenceableConnections(java.util.List<android.telecomm.Connection>);
|
||||
method public final void setConnectionService(android.telecomm.ConnectionService);
|
||||
method public final void setConferenceableConnections(java.util.List<android.telecom.Connection>);
|
||||
method public final void setConnectionService(android.telecom.ConnectionService);
|
||||
method public final void setDialing();
|
||||
method public final void setDisconnected(int, java.lang.String);
|
||||
method public final void setInitialized();
|
||||
@@ -28283,7 +28283,7 @@ package android.telecomm {
|
||||
method public final void setPostDialWait(java.lang.String);
|
||||
method public final void setRingbackRequested(boolean);
|
||||
method public final void setRinging();
|
||||
method public final void setStatusHints(android.telecomm.StatusHints);
|
||||
method public final void setStatusHints(android.telecom.StatusHints);
|
||||
method public static java.lang.String stateToString(int);
|
||||
field public static final int STATE_ACTIVE = 4; // 0x4
|
||||
field public static final int STATE_DIALING = 3; // 0x3
|
||||
@@ -28295,9 +28295,9 @@ package android.telecomm {
|
||||
}
|
||||
|
||||
public final class ConnectionRequest implements android.os.Parcelable {
|
||||
ctor public ConnectionRequest(android.telecomm.PhoneAccountHandle, android.net.Uri, android.os.Bundle);
|
||||
ctor public ConnectionRequest(android.telecom.PhoneAccountHandle, android.net.Uri, android.os.Bundle);
|
||||
method public int describeContents();
|
||||
method public android.telecomm.PhoneAccountHandle getAccountHandle();
|
||||
method public android.telecom.PhoneAccountHandle getAccountHandle();
|
||||
method public android.net.Uri getAddress();
|
||||
method public android.os.Bundle getExtras();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
@@ -28306,17 +28306,17 @@ package android.telecomm {
|
||||
|
||||
public abstract class ConnectionService extends android.app.Service {
|
||||
ctor public ConnectionService();
|
||||
method public final void addConference(android.telecomm.Conference);
|
||||
method public final void conferenceRemoteConnections(android.telecomm.RemoteConnection, android.telecomm.RemoteConnection);
|
||||
method public final android.telecomm.RemoteConnection createRemoteIncomingConnection(android.telecomm.PhoneAccountHandle, android.telecomm.ConnectionRequest);
|
||||
method public final android.telecomm.RemoteConnection createRemoteOutgoingConnection(android.telecomm.PhoneAccountHandle, android.telecomm.ConnectionRequest);
|
||||
method public final java.util.Collection<android.telecomm.Connection> getAllConnections();
|
||||
method public final void addConference(android.telecom.Conference);
|
||||
method public final void conferenceRemoteConnections(android.telecom.RemoteConnection, android.telecom.RemoteConnection);
|
||||
method public final android.telecom.RemoteConnection createRemoteIncomingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest);
|
||||
method public final android.telecom.RemoteConnection createRemoteOutgoingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest);
|
||||
method public final java.util.Collection<android.telecom.Connection> getAllConnections();
|
||||
method public final android.os.IBinder onBind(android.content.Intent);
|
||||
method public void onConference(android.telecomm.Connection, android.telecomm.Connection);
|
||||
method public android.telecomm.Connection onCreateIncomingConnection(android.telecomm.PhoneAccountHandle, android.telecomm.ConnectionRequest);
|
||||
method public android.telecomm.Connection onCreateOutgoingConnection(android.telecomm.PhoneAccountHandle, android.telecomm.ConnectionRequest);
|
||||
method public void onRemoteConferenceAdded(android.telecomm.RemoteConference);
|
||||
field public static final java.lang.String SERVICE_INTERFACE = "android.telecomm.ConnectionService";
|
||||
method public void onConference(android.telecom.Connection, android.telecom.Connection);
|
||||
method public android.telecom.Connection onCreateIncomingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest);
|
||||
method public android.telecom.Connection onCreateOutgoingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest);
|
||||
method public void onRemoteConferenceAdded(android.telecom.RemoteConference);
|
||||
field public static final java.lang.String SERVICE_INTERFACE = "android.telecom.ConnectionService";
|
||||
}
|
||||
|
||||
public class GatewayInfo implements android.os.Parcelable {
|
||||
@@ -28330,9 +28330,9 @@ package android.telecomm {
|
||||
}
|
||||
|
||||
public class PhoneAccount implements android.os.Parcelable {
|
||||
method public static android.telecomm.PhoneAccount.Builder builder(android.telecomm.PhoneAccountHandle, java.lang.CharSequence);
|
||||
method public static android.telecom.PhoneAccount.Builder builder(android.telecom.PhoneAccountHandle, java.lang.CharSequence);
|
||||
method public int describeContents();
|
||||
method public android.telecomm.PhoneAccountHandle getAccountHandle();
|
||||
method public android.telecom.PhoneAccountHandle getAccountHandle();
|
||||
method public android.net.Uri getAddress();
|
||||
method public int getCapabilities();
|
||||
method public android.graphics.drawable.Drawable getIcon(android.content.Context);
|
||||
@@ -28355,15 +28355,15 @@ package android.telecomm {
|
||||
}
|
||||
|
||||
public static class PhoneAccount.Builder {
|
||||
ctor public PhoneAccount.Builder(android.telecomm.PhoneAccountHandle, java.lang.CharSequence);
|
||||
ctor public PhoneAccount.Builder(android.telecomm.PhoneAccount);
|
||||
method public android.telecomm.PhoneAccount build();
|
||||
method public android.telecomm.PhoneAccount.Builder setAddress(android.net.Uri);
|
||||
method public android.telecomm.PhoneAccount.Builder setCapabilities(int);
|
||||
method public android.telecomm.PhoneAccount.Builder setIconResId(int);
|
||||
method public android.telecomm.PhoneAccount.Builder setShortDescription(java.lang.CharSequence);
|
||||
method public android.telecomm.PhoneAccount.Builder setSubscriptionAddress(android.net.Uri);
|
||||
method public android.telecomm.PhoneAccount.Builder setSupportedUriSchemes(java.util.List<java.lang.String>);
|
||||
ctor public PhoneAccount.Builder(android.telecom.PhoneAccountHandle, java.lang.CharSequence);
|
||||
ctor public PhoneAccount.Builder(android.telecom.PhoneAccount);
|
||||
method public android.telecom.PhoneAccount build();
|
||||
method public android.telecom.PhoneAccount.Builder setAddress(android.net.Uri);
|
||||
method public android.telecom.PhoneAccount.Builder setCapabilities(int);
|
||||
method public android.telecom.PhoneAccount.Builder setIconResId(int);
|
||||
method public android.telecom.PhoneAccount.Builder setShortDescription(java.lang.CharSequence);
|
||||
method public android.telecom.PhoneAccount.Builder setSubscriptionAddress(android.net.Uri);
|
||||
method public android.telecom.PhoneAccount.Builder setSupportedUriSchemes(java.util.List<java.lang.String>);
|
||||
}
|
||||
|
||||
public class PhoneAccountHandle implements android.os.Parcelable {
|
||||
@@ -28393,25 +28393,25 @@ package android.telecomm {
|
||||
public final class RemoteConference {
|
||||
method public void disconnect();
|
||||
method public final int getCallCapabilities();
|
||||
method public final java.util.List<android.telecomm.RemoteConnection> getConnections();
|
||||
method public final java.util.List<android.telecom.RemoteConnection> getConnections();
|
||||
method public int getDisconnectCause();
|
||||
method public java.lang.String getDisconnectMessage();
|
||||
method public final int getState();
|
||||
method public void hold();
|
||||
method public final void registerCallback(android.telecomm.RemoteConference.Callback);
|
||||
method public void separate(android.telecomm.RemoteConnection);
|
||||
method public final void registerCallback(android.telecom.RemoteConference.Callback);
|
||||
method public void separate(android.telecom.RemoteConnection);
|
||||
method public void unhold();
|
||||
method public final void unregisterCallback(android.telecomm.RemoteConference.Callback);
|
||||
method public final void unregisterCallback(android.telecom.RemoteConference.Callback);
|
||||
}
|
||||
|
||||
public static abstract class RemoteConference.Callback {
|
||||
ctor public RemoteConference.Callback();
|
||||
method public void onCapabilitiesChanged(android.telecomm.RemoteConference, int);
|
||||
method public void onConnectionAdded(android.telecomm.RemoteConference, android.telecomm.RemoteConnection);
|
||||
method public void onConnectionRemoved(android.telecomm.RemoteConference, android.telecomm.RemoteConnection);
|
||||
method public void onDestroyed(android.telecomm.RemoteConference);
|
||||
method public void onDisconnected(android.telecomm.RemoteConference, int, java.lang.String);
|
||||
method public void onStateChanged(android.telecomm.RemoteConference, int, int);
|
||||
method public void onCapabilitiesChanged(android.telecom.RemoteConference, int);
|
||||
method public void onConnectionAdded(android.telecom.RemoteConference, android.telecom.RemoteConnection);
|
||||
method public void onConnectionRemoved(android.telecom.RemoteConference, android.telecom.RemoteConnection);
|
||||
method public void onDestroyed(android.telecom.RemoteConference);
|
||||
method public void onDisconnected(android.telecom.RemoteConference, int, java.lang.String);
|
||||
method public void onStateChanged(android.telecom.RemoteConference, int, int);
|
||||
}
|
||||
|
||||
public final class RemoteConnection {
|
||||
@@ -28423,41 +28423,41 @@ package android.telecomm {
|
||||
method public int getCallCapabilities();
|
||||
method public java.lang.CharSequence getCallerDisplayName();
|
||||
method public int getCallerDisplayNamePresentation();
|
||||
method public android.telecomm.RemoteConference getConference();
|
||||
method public java.util.List<android.telecomm.RemoteConnection> getConferenceableConnections();
|
||||
method public android.telecom.RemoteConference getConference();
|
||||
method public java.util.List<android.telecom.RemoteConnection> getConferenceableConnections();
|
||||
method public int getDisconnectCauseCode();
|
||||
method public java.lang.String getDisconnectCauseMessage();
|
||||
method public int getFailureCode();
|
||||
method public java.lang.String getFailureMessage();
|
||||
method public int getState();
|
||||
method public android.telecomm.StatusHints getStatusHints();
|
||||
method public android.telecom.StatusHints getStatusHints();
|
||||
method public void hold();
|
||||
method public boolean isRingbackRequested();
|
||||
method public boolean isVoipAudioMode();
|
||||
method public void playDtmfTone(char);
|
||||
method public void postDialContinue(boolean);
|
||||
method public void registerCallback(android.telecomm.RemoteConnection.Callback);
|
||||
method public void registerCallback(android.telecom.RemoteConnection.Callback);
|
||||
method public void reject();
|
||||
method public void setAudioState(android.telecomm.AudioState);
|
||||
method public void setAudioState(android.telecom.AudioState);
|
||||
method public void stopDtmfTone();
|
||||
method public void unhold();
|
||||
method public void unregisterCallback(android.telecomm.RemoteConnection.Callback);
|
||||
method public void unregisterCallback(android.telecom.RemoteConnection.Callback);
|
||||
}
|
||||
|
||||
public static abstract class RemoteConnection.Callback {
|
||||
ctor public RemoteConnection.Callback();
|
||||
method public void onAddressChanged(android.telecomm.RemoteConnection, android.net.Uri, int);
|
||||
method public void onCallCapabilitiesChanged(android.telecomm.RemoteConnection, int);
|
||||
method public void onCallerDisplayNameChanged(android.telecomm.RemoteConnection, java.lang.String, int);
|
||||
method public void onConferenceChanged(android.telecomm.RemoteConnection, android.telecomm.RemoteConference);
|
||||
method public void onConferenceableConnectionsChanged(android.telecomm.RemoteConnection, java.util.List<android.telecomm.RemoteConnection>);
|
||||
method public void onDestroyed(android.telecomm.RemoteConnection);
|
||||
method public void onDisconnected(android.telecomm.RemoteConnection, int, java.lang.String);
|
||||
method public void onPostDialWait(android.telecomm.RemoteConnection, java.lang.String);
|
||||
method public void onRingbackRequested(android.telecomm.RemoteConnection, boolean);
|
||||
method public void onStateChanged(android.telecomm.RemoteConnection, int);
|
||||
method public void onStatusHintsChanged(android.telecomm.RemoteConnection, android.telecomm.StatusHints);
|
||||
method public void onVoipAudioChanged(android.telecomm.RemoteConnection, boolean);
|
||||
method public void onAddressChanged(android.telecom.RemoteConnection, android.net.Uri, int);
|
||||
method public void onCallCapabilitiesChanged(android.telecom.RemoteConnection, int);
|
||||
method public void onCallerDisplayNameChanged(android.telecom.RemoteConnection, java.lang.String, int);
|
||||
method public void onConferenceChanged(android.telecom.RemoteConnection, android.telecom.RemoteConference);
|
||||
method public void onConferenceableConnectionsChanged(android.telecom.RemoteConnection, java.util.List<android.telecom.RemoteConnection>);
|
||||
method public void onDestroyed(android.telecom.RemoteConnection);
|
||||
method public void onDisconnected(android.telecom.RemoteConnection, int, java.lang.String);
|
||||
method public void onPostDialWait(android.telecom.RemoteConnection, java.lang.String);
|
||||
method public void onRingbackRequested(android.telecom.RemoteConnection, boolean);
|
||||
method public void onStateChanged(android.telecom.RemoteConnection, int);
|
||||
method public void onStatusHintsChanged(android.telecom.RemoteConnection, android.telecom.StatusHints);
|
||||
method public void onVoipAudioChanged(android.telecom.RemoteConnection, boolean);
|
||||
}
|
||||
|
||||
public final class StatusHints implements android.os.Parcelable {
|
||||
@@ -28472,36 +28472,36 @@ package android.telecomm {
|
||||
field public static final android.os.Parcelable.Creator CREATOR;
|
||||
}
|
||||
|
||||
public class TelecommManager {
|
||||
method public void addNewIncomingCall(android.telecomm.PhoneAccountHandle, android.os.Bundle);
|
||||
public class TelecomManager {
|
||||
method public void addNewIncomingCall(android.telecom.PhoneAccountHandle, android.os.Bundle);
|
||||
method public void cancelMissedCallsNotification();
|
||||
method public void clearAccounts();
|
||||
method public android.telecomm.PhoneAccountHandle getConnectionManager();
|
||||
method public android.telecomm.PhoneAccountHandle getDefaultOutgoingPhoneAccount(java.lang.String);
|
||||
method public java.util.List<android.telecomm.PhoneAccountHandle> getEnabledPhoneAccounts();
|
||||
method public android.telecomm.PhoneAccount getPhoneAccount(android.telecomm.PhoneAccountHandle);
|
||||
method public java.util.List<android.telecomm.PhoneAccountHandle> getPhoneAccountsSupportingScheme(java.lang.String);
|
||||
method public android.telecom.PhoneAccountHandle getConnectionManager();
|
||||
method public android.telecom.PhoneAccountHandle getDefaultOutgoingPhoneAccount(java.lang.String);
|
||||
method public java.util.List<android.telecom.PhoneAccountHandle> getEnabledPhoneAccounts();
|
||||
method public android.telecom.PhoneAccount getPhoneAccount(android.telecom.PhoneAccountHandle);
|
||||
method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsSupportingScheme(java.lang.String);
|
||||
method public boolean handleMmi(java.lang.String);
|
||||
method public boolean hasMultipleEnabledAccounts();
|
||||
method public boolean isInCall();
|
||||
method public void registerPhoneAccount(android.telecomm.PhoneAccount);
|
||||
method public void registerPhoneAccount(android.telecom.PhoneAccount);
|
||||
method public void showInCallScreen(boolean);
|
||||
method public void unregisterPhoneAccount(android.telecomm.PhoneAccountHandle);
|
||||
field public static final java.lang.String ACTION_CHANGE_PHONE_ACCOUNTS = "android.telecomm.action.CHANGE_PHONE_ACCOUNTS";
|
||||
field public static final java.lang.String ACTION_CONNECTION_SERVICE_CONFIGURE = "android.telecomm.action.CONNECTION_SERVICE_CONFIGURE";
|
||||
method public void unregisterPhoneAccount(android.telecom.PhoneAccountHandle);
|
||||
field public static final java.lang.String ACTION_CHANGE_PHONE_ACCOUNTS = "android.telecom.action.CHANGE_PHONE_ACCOUNTS";
|
||||
field public static final java.lang.String ACTION_CONNECTION_SERVICE_CONFIGURE = "android.telecom.action.CONNECTION_SERVICE_CONFIGURE";
|
||||
field public static final java.lang.String ACTION_PHONE_ACCOUNT_DISABLED = "android.telecom.action.PHONE_ACCOUNT_DISABLED";
|
||||
field public static final java.lang.String ACTION_PHONE_ACCOUNT_ENABLED = "android.telecom.action.PHONE_ACCOUNT_ENABLED";
|
||||
field public static final java.lang.String ACTION_SHOW_CALL_SETTINGS = "android.telecomm.action.SHOW_CALL_SETTINGS";
|
||||
field public static final java.lang.String ACTION_SHOW_CALL_SETTINGS = "android.telecom.action.SHOW_CALL_SETTINGS";
|
||||
field public static final char DTMF_CHARACTER_PAUSE = 44; // 0x002c ','
|
||||
field public static final char DTMF_CHARACTER_WAIT = 59; // 0x003b ';'
|
||||
field public static final java.lang.String EXTRA_CALL_BACK_NUMBER = "android.telecomm.extra.CALL_BACK_NUMBER";
|
||||
field public static final java.lang.String EXTRA_CALL_DISCONNECT_CAUSE = "android.telecomm.extra.CALL_DISCONNECT_CAUSE";
|
||||
field public static final java.lang.String EXTRA_CALL_DISCONNECT_MESSAGE = "android.telecomm.extra.CALL_DISCONNECT_MESSAGE";
|
||||
field public static final java.lang.String EXTRA_CONNECTION_SERVICE = "android.telecomm.extra.CONNECTION_SERVICE";
|
||||
field public static final java.lang.String EXTRA_PHONE_ACCOUNT_HANDLE = "android.telecomm.extra.PHONE_ACCOUNT_HANDLE";
|
||||
field public static final java.lang.String EXTRA_START_CALL_WITH_SPEAKERPHONE = "android.telecomm.extra.START_CALL_WITH_SPEAKERPHONE";
|
||||
field public static final java.lang.String GATEWAY_ORIGINAL_ADDRESS = "android.telecomm.extra.GATEWAY_ORIGINAL_ADDRESS";
|
||||
field public static final java.lang.String GATEWAY_PROVIDER_PACKAGE = "android.telecomm.extra.GATEWAY_PROVIDER_PACKAGE";
|
||||
field public static final java.lang.String EXTRA_CALL_BACK_NUMBER = "android.telecom.extra.CALL_BACK_NUMBER";
|
||||
field public static final java.lang.String EXTRA_CALL_DISCONNECT_CAUSE = "android.telecom.extra.CALL_DISCONNECT_CAUSE";
|
||||
field public static final java.lang.String EXTRA_CALL_DISCONNECT_MESSAGE = "android.telecom.extra.CALL_DISCONNECT_MESSAGE";
|
||||
field public static final java.lang.String EXTRA_CONNECTION_SERVICE = "android.telecom.extra.CONNECTION_SERVICE";
|
||||
field public static final java.lang.String EXTRA_PHONE_ACCOUNT_HANDLE = "android.telecom.extra.PHONE_ACCOUNT_HANDLE";
|
||||
field public static final java.lang.String EXTRA_START_CALL_WITH_SPEAKERPHONE = "android.telecom.extra.START_CALL_WITH_SPEAKERPHONE";
|
||||
field public static final java.lang.String GATEWAY_ORIGINAL_ADDRESS = "android.telecom.extra.GATEWAY_ORIGINAL_ADDRESS";
|
||||
field public static final java.lang.String GATEWAY_PROVIDER_PACKAGE = "android.telecom.extra.GATEWAY_PROVIDER_PACKAGE";
|
||||
field public static final int PRESENTATION_ALLOWED = 1; // 0x1
|
||||
field public static final int PRESENTATION_PAYPHONE = 4; // 0x4
|
||||
field public static final int PRESENTATION_RESTRICTED = 2; // 0x2
|
||||
|
||||
@@ -124,7 +124,7 @@ import android.print.IPrintManager;
|
||||
import android.print.PrintManager;
|
||||
import android.service.fingerprint.IFingerprintService;
|
||||
import android.service.fingerprint.FingerprintManager;
|
||||
import android.telecomm.TelecommManager;
|
||||
import android.telecom.TelecomManager;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.content.ClipboardManager;
|
||||
import android.util.AndroidRuntimeException;
|
||||
@@ -148,7 +148,7 @@ import android.app.trust.TrustManager;
|
||||
import com.android.internal.annotations.GuardedBy;
|
||||
import com.android.internal.app.IAppOpsService;
|
||||
import com.android.internal.os.IDropBoxManagerService;
|
||||
import com.android.internal.telecomm.ITelecommService;
|
||||
import com.android.internal.telecom.ITelecomService;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
@@ -562,9 +562,9 @@ class ContextImpl extends Context {
|
||||
return new TelephonyManager(ctx.getOuterContext());
|
||||
}});
|
||||
|
||||
registerService(TELECOMM_SERVICE, new ServiceFetcher() {
|
||||
registerService(TELECOM_SERVICE, new ServiceFetcher() {
|
||||
public Object createService(ContextImpl ctx) {
|
||||
return new TelecommManager(ctx.getOuterContext());
|
||||
return new TelecomManager(ctx.getOuterContext());
|
||||
}});
|
||||
|
||||
registerService(UI_MODE_SERVICE, new ServiceFetcher() {
|
||||
|
||||
@@ -2115,7 +2115,7 @@ public abstract class Context {
|
||||
AUDIO_SERVICE,
|
||||
MEDIA_ROUTER_SERVICE,
|
||||
TELEPHONY_SERVICE,
|
||||
TELECOMM_SERVICE,
|
||||
TELECOM_SERVICE,
|
||||
CLIPBOARD_SERVICE,
|
||||
INPUT_METHOD_SERVICE,
|
||||
TEXT_SERVICES_MANAGER_SERVICE,
|
||||
@@ -2588,13 +2588,13 @@ public abstract class Context {
|
||||
|
||||
/**
|
||||
* Use with {@link #getSystemService} to retrieve a
|
||||
* {@link android.telecomm.TelecommManager} to manage telecomm-related features
|
||||
* {@link android.telecom.TelecomManager} to manage telecom-related features
|
||||
* of the device.
|
||||
*
|
||||
* @see #getSystemService
|
||||
* @see android.telecomm.TelecommManager
|
||||
* @see android.telecom.TelecomManager
|
||||
*/
|
||||
public static final String TELECOMM_SERVICE = "telecomm";
|
||||
public static final String TELECOM_SERVICE = "telecom";
|
||||
|
||||
/**
|
||||
* Use with {@link #getSystemService} to retrieve a
|
||||
|
||||
@@ -33,7 +33,7 @@ import android.provider.ContactsContract.CommonDataKinds.Callable;
|
||||
import android.provider.ContactsContract.CommonDataKinds.Phone;
|
||||
import android.provider.ContactsContract.Data;
|
||||
import android.provider.ContactsContract.DataUsageFeedback;
|
||||
import android.telecomm.PhoneAccountHandle;
|
||||
import android.telecom.PhoneAccountHandle;
|
||||
import android.telephony.PhoneNumberUtils;
|
||||
import android.text.TextUtils;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import android.os.UserHandle;
|
||||
import android.os.storage.IMountService;
|
||||
import android.os.storage.StorageManager;
|
||||
import android.provider.Settings;
|
||||
import android.telecomm.TelecommManager;
|
||||
import android.telecom.TelecomManager;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.IWindowManager;
|
||||
@@ -1477,8 +1477,8 @@ public class LockPatternUtils {
|
||||
return getTelecommManager().isInCall();
|
||||
}
|
||||
|
||||
private TelecommManager getTelecommManager() {
|
||||
return (TelecommManager) mContext.getSystemService(Context.TELECOMM_SERVICE);
|
||||
private TelecomManager getTelecommManager() {
|
||||
return (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);
|
||||
}
|
||||
|
||||
private void finishBiometricWeak() {
|
||||
|
||||
@@ -25,7 +25,6 @@ import android.app.ActivityManager;
|
||||
import android.app.ActivityManagerNative;
|
||||
import android.app.AppOpsManager;
|
||||
import android.app.KeyguardManager;
|
||||
import android.app.PendingIntent;
|
||||
import android.bluetooth.BluetoothA2dp;
|
||||
import android.bluetooth.BluetoothAdapter;
|
||||
import android.bluetooth.BluetoothClass;
|
||||
@@ -68,7 +67,7 @@ import android.os.UserHandle;
|
||||
import android.os.Vibrator;
|
||||
import android.provider.Settings;
|
||||
import android.provider.Settings.System;
|
||||
import android.telecomm.TelecommManager;
|
||||
import android.telecom.TelecomManager;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.util.MathUtils;
|
||||
@@ -2939,9 +2938,9 @@ public class AudioService extends IAudioService.Stub {
|
||||
private boolean isInCommunication() {
|
||||
boolean IsInCall = false;
|
||||
|
||||
TelecommManager telecommManager =
|
||||
(TelecommManager) mContext.getSystemService(Context.TELECOMM_SERVICE);
|
||||
IsInCall = telecommManager.isInCall();
|
||||
TelecomManager telecomManager =
|
||||
(TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);
|
||||
IsInCall = telecomManager.isInCall();
|
||||
|
||||
return (IsInCall || getMode() == AudioManager.MODE_IN_COMMUNICATION);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ import android.os.Bundle;
|
||||
import android.os.RemoteException;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.MediaStore;
|
||||
import android.telecomm.TelecommManager;
|
||||
import android.telecom.TelecomManager;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
@@ -331,7 +331,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
|
||||
}
|
||||
|
||||
public void launchPhone() {
|
||||
final TelecommManager tm = TelecommManager.from(mContext);
|
||||
final TelecomManager tm = TelecomManager.from(mContext);
|
||||
if (tm.isInCall()) {
|
||||
AsyncTask.execute(new Runnable() {
|
||||
@Override
|
||||
|
||||
@@ -27,7 +27,7 @@ import android.media.AudioManager;
|
||||
import android.os.Handler;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.Settings.Global;
|
||||
import android.telecomm.TelecommManager;
|
||||
import android.telecom.TelecomManager;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.internal.telephony.IccCardConstants;
|
||||
@@ -93,7 +93,7 @@ public class PhoneStatusBarPolicy {
|
||||
else if (action.equals(TelephonyIntents.ACTION_SIM_STATE_CHANGED)) {
|
||||
updateSimState(intent);
|
||||
}
|
||||
else if (action.equals(TelecommManager.ACTION_CURRENT_TTY_MODE_CHANGED)) {
|
||||
else if (action.equals(TelecomManager.ACTION_CURRENT_TTY_MODE_CHANGED)) {
|
||||
updateTTY(intent);
|
||||
}
|
||||
else if (action.equals(Intent.ACTION_USER_SWITCHED)) {
|
||||
@@ -115,7 +115,7 @@ public class PhoneStatusBarPolicy {
|
||||
filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);
|
||||
filter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED);
|
||||
filter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED);
|
||||
filter.addAction(TelecommManager.ACTION_CURRENT_TTY_MODE_CHANGED);
|
||||
filter.addAction(TelecomManager.ACTION_CURRENT_TTY_MODE_CHANGED);
|
||||
filter.addAction(Intent.ACTION_USER_SWITCHED);
|
||||
mContext.registerReceiver(mIntentReceiver, filter, null, mHandler);
|
||||
|
||||
@@ -279,9 +279,9 @@ public class PhoneStatusBarPolicy {
|
||||
}
|
||||
|
||||
private final void updateTTY(Intent intent) {
|
||||
int currentTtyMode = intent.getIntExtra(TelecommManager.EXTRA_CURRENT_TTY_MODE,
|
||||
TelecommManager.TTY_MODE_OFF);
|
||||
boolean enabled = currentTtyMode != TelecommManager.TTY_MODE_OFF;
|
||||
int currentTtyMode = intent.getIntExtra(TelecomManager.EXTRA_CURRENT_TTY_MODE,
|
||||
TelecomManager.TTY_MODE_OFF);
|
||||
boolean enabled = currentTtyMode != TelecomManager.TTY_MODE_OFF;
|
||||
|
||||
if (DEBUG) Log.v(TAG, "updateTTY: enabled: " + enabled);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ import android.service.dreams.DreamManagerInternal;
|
||||
import android.service.dreams.DreamService;
|
||||
import android.service.dreams.IDreamManager;
|
||||
import android.speech.RecognizerIntent;
|
||||
import android.telecomm.TelecommManager;
|
||||
import android.telecom.TelecomManager;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.EventLog;
|
||||
import android.util.Log;
|
||||
@@ -2131,8 +2131,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
ServiceManager.checkService(DreamService.DREAM_SERVICE));
|
||||
}
|
||||
|
||||
TelecommManager getTelecommService() {
|
||||
return (TelecommManager) mContext.getSystemService(Context.TELECOMM_SERVICE);
|
||||
TelecomManager getTelecommService() {
|
||||
return (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);
|
||||
}
|
||||
|
||||
static IAudioService getAudioService() {
|
||||
@@ -2221,8 +2221,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
// If an incoming call is ringing, HOME is totally disabled.
|
||||
// (The user is already on the InCallUI at this point,
|
||||
// and his ONLY options are to answer or reject the call.)
|
||||
TelecommManager telecommManager = getTelecommService();
|
||||
if (telecommManager != null && telecommManager.isRinging()) {
|
||||
TelecomManager telecomManager = getTelecommService();
|
||||
if (telecomManager != null && telecomManager.isRinging()) {
|
||||
Log.i(TAG, "Ignoring HOME; there's a ringing incoming call.");
|
||||
return -1;
|
||||
}
|
||||
@@ -4322,9 +4322,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
}
|
||||
}
|
||||
if (down) {
|
||||
TelecommManager telecommManager = getTelecommService();
|
||||
if (telecommManager != null) {
|
||||
if (telecommManager.isRinging()) {
|
||||
TelecomManager telecomManager = getTelecommService();
|
||||
if (telecomManager != null) {
|
||||
if (telecomManager.isRinging()) {
|
||||
// If an incoming call is ringing, either VOLUME key means
|
||||
// "silence ringer". We handle these keys here, rather than
|
||||
// in the InCallScreen, to make sure we'll respond to them
|
||||
@@ -4336,14 +4336,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
|
||||
// Silence the ringer. (It's safe to call this
|
||||
// even if the ringer has already been silenced.)
|
||||
telecommManager.silenceRinger();
|
||||
telecomManager.silenceRinger();
|
||||
|
||||
// And *don't* pass this key thru to the current activity
|
||||
// (which is probably the InCallScreen.)
|
||||
result &= ~ACTION_PASS_TO_USER;
|
||||
break;
|
||||
}
|
||||
if (telecommManager.isInCall()
|
||||
if (telecomManager.isInCall()
|
||||
&& (result & ACTION_PASS_TO_USER) == 0) {
|
||||
// If we are in call but we decided not to pass the key to
|
||||
// the application, just pass it to the session service.
|
||||
@@ -4369,10 +4369,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
case KeyEvent.KEYCODE_ENDCALL: {
|
||||
result &= ~ACTION_PASS_TO_USER;
|
||||
if (down) {
|
||||
TelecommManager telecommManager = getTelecommService();
|
||||
TelecomManager telecomManager = getTelecommService();
|
||||
boolean hungUp = false;
|
||||
if (telecommManager != null) {
|
||||
hungUp = telecommManager.endCall();
|
||||
if (telecomManager != null) {
|
||||
hungUp = telecomManager.endCall();
|
||||
}
|
||||
interceptPowerKeyDown(!interactive || hungUp);
|
||||
} else {
|
||||
@@ -4409,19 +4409,19 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
interceptScreenshotChord();
|
||||
}
|
||||
|
||||
TelecommManager telecommManager = getTelecommService();
|
||||
TelecomManager telecomManager = getTelecommService();
|
||||
boolean hungUp = false;
|
||||
if (telecommManager != null) {
|
||||
if (telecommManager.isRinging()) {
|
||||
if (telecomManager != null) {
|
||||
if (telecomManager.isRinging()) {
|
||||
// Pressing Power while there's a ringing incoming
|
||||
// call should silence the ringer.
|
||||
telecommManager.silenceRinger();
|
||||
telecomManager.silenceRinger();
|
||||
} else if ((mIncallPowerBehavior
|
||||
& Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0
|
||||
&& telecommManager.isInCall() && interactive) {
|
||||
&& telecomManager.isInCall() && interactive) {
|
||||
// Otherwise, if "Power button ends call" is enabled,
|
||||
// the Power button will hang up any current active call.
|
||||
hungUp = telecommManager.endCall();
|
||||
hungUp = telecomManager.endCall();
|
||||
}
|
||||
}
|
||||
interceptPowerKeyDown(!interactive || hungUp
|
||||
@@ -4459,9 +4459,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
case KeyEvent.KEYCODE_MEDIA_PAUSE:
|
||||
case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
|
||||
if (down) {
|
||||
TelecommManager telecommManager = getTelecommService();
|
||||
if (telecommManager != null) {
|
||||
if (telecommManager.isInCall()) {
|
||||
TelecomManager telecomManager = getTelecommService();
|
||||
if (telecomManager != null) {
|
||||
if (telecomManager.isInCall()) {
|
||||
// Suppress PLAY/PAUSE toggle when phone is ringing or in-call
|
||||
// to avoid music playback.
|
||||
break;
|
||||
@@ -4494,12 +4494,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
|
||||
case KeyEvent.KEYCODE_CALL: {
|
||||
if (down) {
|
||||
TelecommManager telecommManager = getTelecommService();
|
||||
if (telecommManager != null) {
|
||||
if (telecommManager.isRinging()) {
|
||||
TelecomManager telecomManager = getTelecommService();
|
||||
if (telecomManager != null) {
|
||||
if (telecomManager.isRinging()) {
|
||||
Log.i(TAG, "interceptKeyBeforeQueueing:"
|
||||
+ " CALL key-down while ringing: Answer the call!");
|
||||
telecommManager.acceptRingingCall();
|
||||
telecomManager.acceptRingingCall();
|
||||
|
||||
// And *don't* pass this key thru to the current activity
|
||||
// (which is presumably the InCallScreen.)
|
||||
|
||||
@@ -40,7 +40,7 @@ import android.provider.Settings.Global;
|
||||
import android.provider.Settings.Secure;
|
||||
import android.service.notification.NotificationListenerService;
|
||||
import android.service.notification.ZenModeConfig;
|
||||
import android.telecomm.TelecommManager;
|
||||
import android.telecom.TelecomManager;
|
||||
import android.util.Log;
|
||||
import android.util.Slog;
|
||||
|
||||
@@ -346,8 +346,8 @@ public class ZenModeHelper {
|
||||
|
||||
private boolean isDefaultPhoneApp(String pkg) {
|
||||
if (mDefaultPhoneApp == null) {
|
||||
final TelecommManager telecomm =
|
||||
(TelecommManager) mContext.getSystemService(Context.TELECOMM_SERVICE);
|
||||
final TelecomManager telecomm =
|
||||
(TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);
|
||||
mDefaultPhoneApp = telecomm != null ? telecomm.getDefaultPhoneApp() : null;
|
||||
if (DEBUG) Slog.d(TAG, "Default phone app: " + mDefaultPhoneApp);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -14,10 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.app.PendingIntent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.telephony.DisconnectCause;
|
||||
@@ -108,7 +107,7 @@ public final class Call {
|
||||
|
||||
/**
|
||||
* @return The presentation requirements for the handle. See
|
||||
* {@link TelecommManager} for valid values.
|
||||
* {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public int getHandlePresentation() {
|
||||
return mHandlePresentation;
|
||||
@@ -123,7 +122,7 @@ public final class Call {
|
||||
|
||||
/**
|
||||
* @return The presentation requirements for the caller display name. See
|
||||
* {@link TelecommManager} for valid values.
|
||||
* {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public int getCallerDisplayNamePresentation() {
|
||||
return mCallerDisplayNamePresentation;
|
||||
@@ -193,7 +192,7 @@ public final class Call {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The current {@link android.telecomm.StatusHints}, or {@code null} if none
|
||||
* @return The current {@link android.telecom.StatusHints}, or {@code null} if none
|
||||
* have been set.
|
||||
*/
|
||||
public StatusHints getStatusHints() {
|
||||
@@ -369,7 +368,7 @@ public final class Call {
|
||||
}
|
||||
|
||||
private final Phone mPhone;
|
||||
private final String mTelecommCallId;
|
||||
private final String mTelecomCallId;
|
||||
private final InCallAdapter mInCallAdapter;
|
||||
private final List<String> mChildrenIds = new ArrayList<>();
|
||||
private final List<Call> mChildren = new ArrayList<>();
|
||||
@@ -402,7 +401,7 @@ public final class Call {
|
||||
* @param videoState The video state in which to answer the call.
|
||||
*/
|
||||
public void answer(int videoState) {
|
||||
mInCallAdapter.answerCall(mTelecommCallId, videoState);
|
||||
mInCallAdapter.answerCall(mTelecomCallId, videoState);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -412,28 +411,28 @@ public final class Call {
|
||||
* @param textMessage An optional text message with which to respond.
|
||||
*/
|
||||
public void reject(boolean rejectWithMessage, String textMessage) {
|
||||
mInCallAdapter.rejectCall(mTelecommCallId, rejectWithMessage, textMessage);
|
||||
mInCallAdapter.rejectCall(mTelecomCallId, rejectWithMessage, textMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs this {@code Call} to disconnect.
|
||||
*/
|
||||
public void disconnect() {
|
||||
mInCallAdapter.disconnectCall(mTelecommCallId);
|
||||
mInCallAdapter.disconnectCall(mTelecomCallId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs this {@code Call} to go on hold.
|
||||
*/
|
||||
public void hold() {
|
||||
mInCallAdapter.holdCall(mTelecommCallId);
|
||||
mInCallAdapter.holdCall(mTelecomCallId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs this {@link #STATE_HOLDING} call to release from hold.
|
||||
*/
|
||||
public void unhold() {
|
||||
mInCallAdapter.unholdCall(mTelecommCallId);
|
||||
mInCallAdapter.unholdCall(mTelecomCallId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -445,7 +444,7 @@ public final class Call {
|
||||
* value must be one of {@code '0'} through {@code '9'}, {@code '*'} or {@code '#'}.
|
||||
*/
|
||||
public void playDtmfTone(char digit) {
|
||||
mInCallAdapter.playDtmfTone(mTelecommCallId, digit);
|
||||
mInCallAdapter.playDtmfTone(mTelecomCallId, digit);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -456,7 +455,7 @@ public final class Call {
|
||||
* currently playing, this method will do nothing.
|
||||
*/
|
||||
public void stopDtmfTone() {
|
||||
mInCallAdapter.stopDtmfTone(mTelecommCallId);
|
||||
mInCallAdapter.stopDtmfTone(mTelecomCallId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -465,10 +464,10 @@ public final class Call {
|
||||
* A post-dial DTMF string is a string of digits entered after a phone number, when dialed,
|
||||
* that are immediately sent as DTMF tones to the recipient as soon as the connection is made.
|
||||
*
|
||||
* If the DTMF string contains a {@link TelecommManager#DTMF_CHARACTER_PAUSE} symbol, this
|
||||
* If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_PAUSE} symbol, this
|
||||
* {@code Call} will temporarily pause playing the tones for a pre-defined period of time.
|
||||
*
|
||||
* If the DTMF string contains a {@link TelecommManager#DTMF_CHARACTER_WAIT} symbol, this
|
||||
* If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_WAIT} symbol, this
|
||||
* {@code Call} will pause playing the tones and notify listeners via
|
||||
* {@link Listener#onPostDialWait(Call, String)}. At this point, the in-call app
|
||||
* should display to the user an indication of this state and an affordance to continue
|
||||
@@ -478,7 +477,7 @@ public final class Call {
|
||||
* @param proceed Whether or not to continue with the post-dial sequence.
|
||||
*/
|
||||
public void postDialContinue(boolean proceed) {
|
||||
mInCallAdapter.postDialContinue(mTelecommCallId, proceed);
|
||||
mInCallAdapter.postDialContinue(mTelecomCallId, proceed);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -486,7 +485,7 @@ public final class Call {
|
||||
* an outgoing call.
|
||||
*/
|
||||
public void phoneAccountSelected(PhoneAccountHandle accountHandle) {
|
||||
mInCallAdapter.phoneAccountSelected(mTelecommCallId, accountHandle);
|
||||
mInCallAdapter.phoneAccountSelected(mTelecomCallId, accountHandle);
|
||||
|
||||
}
|
||||
|
||||
@@ -497,7 +496,7 @@ public final class Call {
|
||||
*/
|
||||
public void conference(Call callToConferenceWith) {
|
||||
if (callToConferenceWith != null) {
|
||||
mInCallAdapter.conference(mTelecommCallId, callToConferenceWith.mTelecommCallId);
|
||||
mInCallAdapter.conference(mTelecomCallId, callToConferenceWith.mTelecomCallId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -506,21 +505,21 @@ public final class Call {
|
||||
* connected.
|
||||
*/
|
||||
public void splitFromConference() {
|
||||
mInCallAdapter.splitFromConference(mTelecommCallId);
|
||||
mInCallAdapter.splitFromConference(mTelecomCallId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Merges the calls within this conference. See {@link PhoneCapabilities#MERGE_CONFERENCE}.
|
||||
*/
|
||||
public void mergeConference() {
|
||||
mInCallAdapter.mergeConference(mTelecommCallId);
|
||||
mInCallAdapter.mergeConference(mTelecomCallId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Swaps the calls within this conference. See {@link PhoneCapabilities#SWAP_CONFERENCE}.
|
||||
*/
|
||||
public void swapConference() {
|
||||
mInCallAdapter.swapConference(mTelecommCallId);
|
||||
mInCallAdapter.swapConference(mTelecomCallId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -531,7 +530,7 @@ public final class Call {
|
||||
*/
|
||||
public Call getParent() {
|
||||
if (mParentId != null) {
|
||||
return mPhone.internalGetCallByTelecommId(mParentId);
|
||||
return mPhone.internalGetCallByTelecomId(mParentId);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -548,7 +547,7 @@ public final class Call {
|
||||
mChildren.clear();
|
||||
|
||||
for(String id : mChildrenIds) {
|
||||
Call call = mPhone.internalGetCallByTelecommId(id);
|
||||
Call call = mPhone.internalGetCallByTelecomId(id);
|
||||
if (call == null) {
|
||||
// At least one child was still not found, so do not save true for "cached"
|
||||
mChildrenCached = false;
|
||||
@@ -632,16 +631,16 @@ public final class Call {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
Call(Phone phone, String telecommCallId, InCallAdapter inCallAdapter) {
|
||||
Call(Phone phone, String telecomCallId, InCallAdapter inCallAdapter) {
|
||||
mPhone = phone;
|
||||
mTelecommCallId = telecommCallId;
|
||||
mTelecomCallId = telecomCallId;
|
||||
mInCallAdapter = inCallAdapter;
|
||||
mState = STATE_NEW;
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
final String internalGetCallId() {
|
||||
return mTelecommCallId;
|
||||
return mTelecomCallId;
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* Defines properties of a phone call which may be affected by changes to the call.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
|
||||
@@ -33,7 +33,7 @@ public final class CallState {
|
||||
|
||||
/**
|
||||
* Indicates that a call is new and not connected. This is used as the default state internally
|
||||
* within Telecomm and should not be used between Telecomm and call services. Call services are
|
||||
* within Telecom and should not be used between Telecom and call services. Call services are
|
||||
* not expected to ever interact with NEW calls, but {@link InCallService}s will see calls in
|
||||
* this state.
|
||||
*/
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.telephony.DisconnectCause;
|
||||
|
||||
@@ -14,12 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import com.android.internal.telecomm.IVideoCallback;
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecom.IVideoCallback;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.net.Uri;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
@@ -493,7 +492,7 @@ public abstract class Connection {
|
||||
|
||||
/**
|
||||
* @return The presentation requirements for the address.
|
||||
* See {@link TelecommManager} for valid values.
|
||||
* See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public final int getAddressPresentation() {
|
||||
return mAddressPresentation;
|
||||
@@ -508,7 +507,7 @@ public abstract class Connection {
|
||||
|
||||
/**
|
||||
* @return The presentation requirements for the handle.
|
||||
* See {@link TelecommManager} for valid values.
|
||||
* See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public final int getCallerDisplayNamePresentation() {
|
||||
return mCallerDisplayNamePresentation;
|
||||
@@ -666,7 +665,7 @@ public abstract class Connection {
|
||||
*
|
||||
* @param address The new address.
|
||||
* @param presentation The presentation requirements for the address.
|
||||
* See {@link TelecommManager} for valid values.
|
||||
* See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public final void setAddress(Uri address, int presentation) {
|
||||
Log.d(this, "setAddress %s", address);
|
||||
@@ -682,7 +681,7 @@ public abstract class Connection {
|
||||
*
|
||||
* @param callerDisplayName The new display name.
|
||||
* @param presentation The presentation requirements for the handle.
|
||||
* See {@link TelecommManager} for valid values.
|
||||
* See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public final void setCallerDisplayName(String callerDisplayName, int presentation) {
|
||||
Log.d(this, "setCallerDisplayName %s", callerDisplayName);
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
@@ -14,10 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.SdkConstant;
|
||||
import android.app.PendingIntent;
|
||||
import android.app.Service;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Intent;
|
||||
@@ -29,9 +28,9 @@ import android.os.Message;
|
||||
import android.telephony.DisconnectCause;
|
||||
|
||||
import com.android.internal.os.SomeArgs;
|
||||
import com.android.internal.telecomm.IConnectionService;
|
||||
import com.android.internal.telecomm.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecomm.RemoteServiceCallback;
|
||||
import com.android.internal.telecom.IConnectionService;
|
||||
import com.android.internal.telecom.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecom.RemoteServiceCallback;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
@@ -50,7 +49,7 @@ public abstract class ConnectionService extends Service {
|
||||
* The {@link Intent} that must be declared as handled by the service.
|
||||
*/
|
||||
@SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
|
||||
public static final String SERVICE_INTERFACE = "android.telecomm.ConnectionService";
|
||||
public static final String SERVICE_INTERFACE = "android.telecom.ConnectionService";
|
||||
|
||||
// Flag controlling whether PII is emitted into the logs
|
||||
private static final boolean PII_DEBUG = Log.isLoggable(android.util.Log.DEBUG);
|
||||
@@ -391,7 +390,7 @@ public abstract class ConnectionService extends Service {
|
||||
mAdapter.setOnHold(id);
|
||||
break;
|
||||
case Connection.STATE_NEW:
|
||||
// Nothing to tell Telecomm
|
||||
// Nothing to tell Telecom
|
||||
break;
|
||||
case Connection.STATE_RINGING:
|
||||
mAdapter.setRinging(id);
|
||||
@@ -506,8 +505,8 @@ public abstract class ConnectionService extends Service {
|
||||
}
|
||||
|
||||
/**
|
||||
* This can be used by telecomm to either create a new outgoing call or attach to an existing
|
||||
* incoming call. In either case, telecomm will cycle through a set of services and call
|
||||
* This can be used by telecom to either create a new outgoing call or attach to an existing
|
||||
* incoming call. In either case, telecom will cycle through a set of services and call
|
||||
* createConnection util a connection service cancels the process or completes it successfully.
|
||||
*/
|
||||
private void createConnection(
|
||||
@@ -14,15 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.net.Uri;
|
||||
import android.os.IBinder.DeathRecipient;
|
||||
import android.os.RemoteException;
|
||||
|
||||
import com.android.internal.telecomm.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecomm.RemoteServiceCallback;
|
||||
import com.android.internal.telecom.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecom.RemoteServiceCallback;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
@@ -163,10 +162,10 @@ final class ConnectionServiceAdapter implements DeathRecipient {
|
||||
}
|
||||
|
||||
/**
|
||||
* Asks Telecomm to start or stop a ringback tone for a call.
|
||||
* Asks Telecom to start or stop a ringback tone for a call.
|
||||
*
|
||||
* @param callId The unique ID of the call whose ringback is being changed.
|
||||
* @param ringback Whether Telecomm should start playing a ringback tone.
|
||||
* @param ringback Whether Telecom should start playing a ringback tone.
|
||||
*/
|
||||
void setRingbackRequested(String callId, boolean ringback) {
|
||||
for (IConnectionServiceAdapter adapter : mAdapters) {
|
||||
@@ -14,18 +14,17 @@
|
||||
R* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.net.Uri;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.os.RemoteException;
|
||||
|
||||
import com.android.internal.os.SomeArgs;
|
||||
import com.android.internal.telecomm.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecomm.RemoteServiceCallback;
|
||||
import com.android.internal.telecom.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
import com.android.internal.telecom.RemoteServiceCallback;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.net.Uri;
|
||||
@@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.os.RemoteException;
|
||||
|
||||
import com.android.internal.telecomm.IInCallAdapter;
|
||||
import com.android.internal.telecom.IInCallAdapter;
|
||||
|
||||
/**
|
||||
* Receives commands from {@link InCallService} implementations which should be executed by
|
||||
* Telecomm. When Telecomm binds to a {@link InCallService}, an instance of this class is given to
|
||||
* Telecom. When Telecom binds to a {@link InCallService}, an instance of this class is given to
|
||||
* the in-call service through which it can manipulate live (active, dialing, ringing) calls. When
|
||||
* the in-call service is notified of new calls, it can use the
|
||||
* given call IDs to execute commands such as {@link #answerCall} for incoming calls or
|
||||
@@ -44,7 +44,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to answer the specified call.
|
||||
* Instructs Telecom to answer the specified call.
|
||||
*
|
||||
* @param callId The identifier of the call to answer.
|
||||
* @param videoState The video state in which to answer the call.
|
||||
@@ -57,7 +57,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to reject the specified call.
|
||||
* Instructs Telecom to reject the specified call.
|
||||
*
|
||||
* @param callId The identifier of the call to reject.
|
||||
* @param rejectWithMessage Whether to reject with a text message.
|
||||
@@ -71,7 +71,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to disconnect the specified call.
|
||||
* Instructs Telecom to disconnect the specified call.
|
||||
*
|
||||
* @param callId The identifier of the call to disconnect.
|
||||
*/
|
||||
@@ -83,7 +83,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to put the specified call on hold.
|
||||
* Instructs Telecom to put the specified call on hold.
|
||||
*
|
||||
* @param callId The identifier of the call to put on hold.
|
||||
*/
|
||||
@@ -95,7 +95,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to release the specified call from hold.
|
||||
* Instructs Telecom to release the specified call from hold.
|
||||
*
|
||||
* @param callId The identifier of the call to release from hold.
|
||||
*/
|
||||
@@ -131,7 +131,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to play a dual-tone multi-frequency signaling (DTMF) tone in a call.
|
||||
* Instructs Telecom to play a dual-tone multi-frequency signaling (DTMF) tone in a call.
|
||||
*
|
||||
* Any other currently playing DTMF tone in the specified call is immediately stopped.
|
||||
*
|
||||
@@ -147,7 +147,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to stop any dual-tone multi-frequency signaling (DTMF) tone currently
|
||||
* Instructs Telecom to stop any dual-tone multi-frequency signaling (DTMF) tone currently
|
||||
* playing.
|
||||
*
|
||||
* DTMF tones are played by calling {@link #playDtmfTone(String,char)}. If no DTMF tone is
|
||||
@@ -163,17 +163,17 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to continue playing a post-dial DTMF string.
|
||||
* Instructs Telecom to continue playing a post-dial DTMF string.
|
||||
*
|
||||
* A post-dial DTMF string is a string of digits entered after a phone number, when dialed,
|
||||
* that are immediately sent as DTMF tones to the recipient as soon as the connection is made.
|
||||
* While these tones are playing, Telecomm will notify the {@link InCallService} that the call
|
||||
* While these tones are playing, Telecom will notify the {@link InCallService} that the call
|
||||
* is in the post dial state.
|
||||
*
|
||||
* If the DTMF string contains a {@link TelecommManager#DTMF_CHARACTER_PAUSE} symbol, Telecomm
|
||||
* If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_PAUSE} symbol, Telecom
|
||||
* will temporarily pause playing the tones for a pre-defined period of time.
|
||||
*
|
||||
* If the DTMF string contains a {@link TelecommManager#DTMF_CHARACTER_WAIT} symbol, Telecomm
|
||||
* If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_WAIT} symbol, Telecom
|
||||
* will pause playing the tones and notify the {@link InCallService} that the call is in the
|
||||
* post dial wait state. When the user decides to continue the postdial sequence, the
|
||||
* {@link InCallService} should invoke the {@link #postDialContinue(String,boolean)} method.
|
||||
@@ -189,7 +189,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to add a PhoneAccountHandle to the specified call
|
||||
* Instructs Telecom to add a PhoneAccountHandle to the specified call
|
||||
*
|
||||
* @param callId The identifier of the call
|
||||
* @param accountHandle The PhoneAccountHandle through which to place the call
|
||||
@@ -202,7 +202,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to conference the specified call.
|
||||
* Instructs Telecom to conference the specified call.
|
||||
*
|
||||
* @param callId The unique ID of the call.
|
||||
* @hide
|
||||
@@ -215,7 +215,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to split the specified call from any conference call with which it may be
|
||||
* Instructs Telecom to split the specified call from any conference call with which it may be
|
||||
* connected.
|
||||
*
|
||||
* @param callId The unique ID of the call.
|
||||
@@ -229,7 +229,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to merge child calls of the specified conference call.
|
||||
* Instructs Telecom to merge child calls of the specified conference call.
|
||||
*/
|
||||
public void mergeConference(String callId) {
|
||||
try {
|
||||
@@ -239,7 +239,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to swap the child calls of the specified conference call.
|
||||
* Instructs Telecom to swap the child calls of the specified conference call.
|
||||
*/
|
||||
public void swapConference(String callId) {
|
||||
try {
|
||||
@@ -249,7 +249,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to turn the proximity sensor on.
|
||||
* Instructs Telecom to turn the proximity sensor on.
|
||||
*/
|
||||
public void turnProximitySensorOn() {
|
||||
try {
|
||||
@@ -259,7 +259,7 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to turn the proximity sensor off.
|
||||
* Instructs Telecom to turn the proximity sensor off.
|
||||
*
|
||||
* @param screenOnImmediately If true, the screen will be turned on immediately if it was
|
||||
* previously off. Otherwise, the screen will only be turned on after the proximity sensor
|
||||
@@ -14,11 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SdkConstant;
|
||||
import android.app.PendingIntent;
|
||||
import android.app.Service;
|
||||
import android.content.Intent;
|
||||
import android.os.Handler;
|
||||
@@ -28,14 +27,14 @@ import android.os.Message;
|
||||
import android.view.Surface;
|
||||
|
||||
import com.android.internal.os.SomeArgs;
|
||||
import com.android.internal.telecomm.IInCallAdapter;
|
||||
import com.android.internal.telecomm.IInCallService;
|
||||
import com.android.internal.telecom.IInCallAdapter;
|
||||
import com.android.internal.telecom.IInCallService;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* This service is implemented by any app that wishes to provide the user-interface for managing
|
||||
* phone calls. Telecomm binds to this service while there exists a live (active or incoming) call,
|
||||
* phone calls. Telecom binds to this service while there exists a live (active or incoming) call,
|
||||
* and uses it to notify the in-call app of any live and and recently disconnected calls.
|
||||
*
|
||||
* {@hide}
|
||||
@@ -47,7 +46,7 @@ public abstract class InCallService extends Service {
|
||||
* The {@link Intent} that must be declared as handled by the service.
|
||||
*/
|
||||
@SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
|
||||
public static final String SERVICE_INTERFACE = "android.telecomm.InCallService";
|
||||
public static final String SERVICE_INTERFACE = "android.telecom.InCallService";
|
||||
|
||||
private static final int MSG_SET_IN_CALL_ADAPTER = 1;
|
||||
private static final int MSG_ADD_CALL = 2;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
@@ -28,8 +28,8 @@ import java.util.Locale;
|
||||
*/
|
||||
final public class Log {
|
||||
|
||||
// Generic tag for all Telecomm Framework logging
|
||||
private static final String TAG = "TelecommFramework";
|
||||
// Generic tag for all Telecom Framework logging
|
||||
private static final String TAG = "TelecomFramework";
|
||||
|
||||
public static final boolean FORCE_LOGGING = false; /* STOP SHIP if true */
|
||||
public static final boolean DEBUG = isLoggable(android.util.Log.DEBUG);
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
@@ -27,10 +27,10 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
|
||||
/**
|
||||
* Information about a call that is used between InCallService and Telecomm.
|
||||
* Information about a call that is used between InCallService and Telecom.
|
||||
* @hide
|
||||
*/
|
||||
public final class ParcelableCall implements Parcelable {
|
||||
@@ -154,7 +154,7 @@ public final class ParcelableCall implements Parcelable {
|
||||
}
|
||||
|
||||
/**
|
||||
* The presentation requirements for the handle. See {@link TelecommManager} for valid values.
|
||||
* The presentation requirements for the handle. See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public int getHandlePresentation() {
|
||||
return mHandlePresentation;
|
||||
@@ -167,7 +167,7 @@ public final class ParcelableCall implements Parcelable {
|
||||
|
||||
/**
|
||||
* The presentation requirements for the caller display name.
|
||||
* See {@link TelecommManager} for valid values.
|
||||
* See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public int getCallerDisplayNamePresentation() {
|
||||
return mCallerDisplayNamePresentation;
|
||||
@@ -14,6 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
parcelable ParcelableConference;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,20 +14,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Information about a connection that is used between Telecomm and the ConnectionService.
|
||||
* This is used to send initial Connection information to Telecomm when the connection is
|
||||
* Information about a connection that is used between Telecom and the ConnectionService.
|
||||
* This is used to send initial Connection information to Telecom when the connection is
|
||||
* first created.
|
||||
* @hide
|
||||
*/
|
||||
@@ -14,10 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.app.PendingIntent;
|
||||
import android.util.ArrayMap;
|
||||
|
||||
import java.util.Collections;
|
||||
@@ -77,8 +76,8 @@ public final class Phone {
|
||||
public void onCallRemoved(Phone phone, Call call) { }
|
||||
}
|
||||
|
||||
// A Map allows us to track each Call by its Telecomm-specified call ID
|
||||
private final Map<String, Call> mCallByTelecommCallId = new ArrayMap<>();
|
||||
// A Map allows us to track each Call by its Telecom-specified call ID
|
||||
private final Map<String, Call> mCallByTelecomCallId = new ArrayMap<>();
|
||||
|
||||
// A List allows us to keep the Calls in a stable iteration order so that casually developed
|
||||
// user interface components do not incur any spurious jank
|
||||
@@ -101,32 +100,32 @@ public final class Phone {
|
||||
/** {@hide} */
|
||||
final void internalAddCall(ParcelableCall parcelableCall) {
|
||||
Call call = new Call(this, parcelableCall.getId(), mInCallAdapter);
|
||||
mCallByTelecommCallId.put(parcelableCall.getId(), call);
|
||||
mCallByTelecomCallId.put(parcelableCall.getId(), call);
|
||||
mCalls.add(call);
|
||||
checkCallTree(parcelableCall);
|
||||
call.internalUpdate(parcelableCall, mCallByTelecommCallId);
|
||||
call.internalUpdate(parcelableCall, mCallByTelecomCallId);
|
||||
fireCallAdded(call);
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
final void internalRemoveCall(Call call) {
|
||||
mCallByTelecommCallId.remove(call.internalGetCallId());
|
||||
mCallByTelecomCallId.remove(call.internalGetCallId());
|
||||
mCalls.remove(call);
|
||||
fireCallRemoved(call);
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
final void internalUpdateCall(ParcelableCall parcelableCall) {
|
||||
Call call = mCallByTelecommCallId.get(parcelableCall.getId());
|
||||
Call call = mCallByTelecomCallId.get(parcelableCall.getId());
|
||||
if (call != null) {
|
||||
checkCallTree(parcelableCall);
|
||||
call.internalUpdate(parcelableCall, mCallByTelecommCallId);
|
||||
call.internalUpdate(parcelableCall, mCallByTelecomCallId);
|
||||
}
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
final void internalSetPostDialWait(String telecommId, String remaining) {
|
||||
Call call = mCallByTelecommCallId.get(telecommId);
|
||||
final void internalSetPostDialWait(String telecomId, String remaining) {
|
||||
Call call = mCallByTelecomCallId.get(telecomId);
|
||||
if (call != null) {
|
||||
call.internalSetPostDialWait(remaining);
|
||||
}
|
||||
@@ -141,8 +140,8 @@ public final class Phone {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
final Call internalGetCallByTelecommId(String telecommId) {
|
||||
return mCallByTelecommCallId.get(telecommId);
|
||||
final Call internalGetCallByTelecomId(String telecomId) {
|
||||
return mCallByTelecomCallId.get(telecomId);
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@@ -269,13 +268,13 @@ public final class Phone {
|
||||
|
||||
private void checkCallTree(ParcelableCall parcelableCall) {
|
||||
if (parcelableCall.getParentCallId() != null &&
|
||||
!mCallByTelecommCallId.containsKey(parcelableCall.getParentCallId())) {
|
||||
!mCallByTelecomCallId.containsKey(parcelableCall.getParentCallId())) {
|
||||
Log.wtf(this, "ParcelableCall %s has nonexistent parent %s",
|
||||
parcelableCall.getId(), parcelableCall.getParentCallId());
|
||||
}
|
||||
if (parcelableCall.getChildCallIds() != null) {
|
||||
for (int i = 0; i < parcelableCall.getChildCallIds().size(); i++) {
|
||||
if (!mCallByTelecommCallId.containsKey(parcelableCall.getChildCallIds().get(i))) {
|
||||
if (!mCallByTelecomCallId.containsKey(parcelableCall.getChildCallIds().get(i))) {
|
||||
Log.wtf(this, "ParcelableCall %s has nonexistent child %s",
|
||||
parcelableCall.getId(), parcelableCall.getChildCallIds().get(i));
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.os.Parcel;
|
||||
@@ -37,7 +37,7 @@ public class PhoneAccountHandle implements Parcelable {
|
||||
}
|
||||
|
||||
/**
|
||||
* The {@code ComponentName} of the {@link android.telecomm.ConnectionService} which is
|
||||
* The {@code ComponentName} of the {@link android.telecom.ConnectionService} which is
|
||||
* responsible for making phone calls using this {@code PhoneAccountHandle}.
|
||||
*
|
||||
* @return A suitable {@code ComponentName}.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* Defines capabilities a phone call can support, such as conference calling and video telephony.
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import com.android.internal.telecomm.IConnectionService;
|
||||
import com.android.internal.telecom.IConnectionService;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import android.telephony.DisconnectCause;
|
||||
@@ -14,13 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import com.android.internal.telecomm.IConnectionService;
|
||||
import com.android.internal.telecomm.IVideoCallback;
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecom.IConnectionService;
|
||||
import com.android.internal.telecom.IVideoCallback;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.net.Uri;
|
||||
import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
@@ -120,7 +119,7 @@ public final class RemoteConnection {
|
||||
* @param connection The {@code RemoteConnection} invoking this method.
|
||||
* @param address The new address of the {@code RemoteConnection}.
|
||||
* @param presentation The presentation requirements for the address.
|
||||
* See {@link TelecommManager} for valid values.
|
||||
* See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {}
|
||||
|
||||
@@ -131,7 +130,7 @@ public final class RemoteConnection {
|
||||
* @param connection The {@code RemoteConnection} invoking this method.
|
||||
* @param callerDisplayName The new caller display name of the {@code RemoteConnection}.
|
||||
* @param presentation The presentation requirements for the handle.
|
||||
* See {@link TelecommManager} for valid values.
|
||||
* See {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public void onCallerDisplayNameChanged(
|
||||
RemoteConnection connection, String callerDisplayName, int presentation) {}
|
||||
@@ -508,7 +507,7 @@ public final class RemoteConnection {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The presentation requirements for the address. See {@link TelecommManager} for valid
|
||||
* @return The presentation requirements for the address. See {@link TelecomManager} for valid
|
||||
* values.
|
||||
*/
|
||||
public int getAddressPresentation() {
|
||||
@@ -524,7 +523,7 @@ public final class RemoteConnection {
|
||||
|
||||
/**
|
||||
* @return The presentation requirements for the caller display name. See
|
||||
* {@link TelecommManager} for valid values.
|
||||
* {@link TelecomManager} for valid values.
|
||||
*/
|
||||
public int getCallerDisplayNamePresentation() {
|
||||
return mCallerDisplayNamePresentation;
|
||||
@@ -694,15 +693,15 @@ public final class RemoteConnection {
|
||||
* Instructs this {@code RemoteConnection} to continue playing a post-dial DTMF string.
|
||||
*
|
||||
* A post-dial DTMF string is a string of digits following the first instance of either
|
||||
* {@link TelecommManager#DTMF_CHARACTER_WAIT} or {@link TelecommManager#DTMF_CHARACTER_PAUSE}.
|
||||
* {@link TelecomManager#DTMF_CHARACTER_WAIT} or {@link TelecomManager#DTMF_CHARACTER_PAUSE}.
|
||||
* These digits are immediately sent as DTMF tones to the recipient as soon as the
|
||||
* connection is made.
|
||||
*
|
||||
* If the DTMF string contains a {@link TelecommManager#DTMF_CHARACTER_PAUSE} symbol, this
|
||||
* If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_PAUSE} symbol, this
|
||||
* {@code RemoteConnection} will temporarily pause playing the tones for a pre-defined period
|
||||
* of time.
|
||||
*
|
||||
* If the DTMF string contains a {@link TelecommManager#DTMF_CHARACTER_WAIT} symbol, this
|
||||
* If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_WAIT} symbol, this
|
||||
* {@code RemoteConnection} will pause playing the tones and notify callbackss via
|
||||
* {@link Callback#onPostDialWait(RemoteConnection, String)}. At this point, the in-call app
|
||||
* should display to the user an indication of this state and an affordance to continue
|
||||
@@ -14,12 +14,12 @@
|
||||
R* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.os.RemoteException;
|
||||
|
||||
import com.android.internal.telecomm.IConnectionService;
|
||||
import com.android.internal.telecom.IConnectionService;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -14,19 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.net.Uri;
|
||||
import android.os.IBinder;
|
||||
import android.os.IBinder.DeathRecipient;
|
||||
import android.os.RemoteException;
|
||||
import android.telephony.DisconnectCause;
|
||||
|
||||
import com.android.internal.telecomm.IConnectionService;
|
||||
import com.android.internal.telecomm.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecomm.RemoteServiceCallback;
|
||||
import com.android.internal.telecom.IConnectionService;
|
||||
import com.android.internal.telecom.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
import com.android.internal.telecom.RemoteServiceCallback;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
@@ -12,7 +12,7 @@
|
||||
* the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.content.ComponentName;
|
||||
@@ -22,57 +22,57 @@ import android.os.RemoteException;
|
||||
import android.os.ServiceManager;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.internal.telecomm.ITelecommService;
|
||||
import com.android.internal.telecom.ITelecomService;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Provides access to Telecomm-related functionality.
|
||||
* Provides access to Telecom-related functionality.
|
||||
* TODO: Move this all into PhoneManager.
|
||||
*/
|
||||
public class TelecommManager {
|
||||
public class TelecomManager {
|
||||
|
||||
/**
|
||||
* Activity action: Starts the UI for handing an incoming call. This intent starts the in-call
|
||||
* UI by notifying the Telecomm system that an incoming call exists for a specific call service
|
||||
* (see {@link android.telecomm.ConnectionService}). Telecomm reads the Intent extras to find
|
||||
* and bind to the appropriate {@link android.telecomm.ConnectionService} which Telecomm will
|
||||
* UI by notifying the Telecom system that an incoming call exists for a specific call service
|
||||
* (see {@link android.telecom.ConnectionService}). Telecom reads the Intent extras to find
|
||||
* and bind to the appropriate {@link android.telecom.ConnectionService} which Telecom will
|
||||
* ultimately use to control and get information about the call.
|
||||
* <p>
|
||||
* Input: get*Extra field {@link #EXTRA_PHONE_ACCOUNT_HANDLE} contains the component name of the
|
||||
* {@link android.telecomm.ConnectionService} that Telecomm should bind to. Telecomm will then
|
||||
* {@link android.telecom.ConnectionService} that Telecom should bind to. Telecom will then
|
||||
* ask the connection service for more information about the call prior to showing any UI.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static final String ACTION_INCOMING_CALL = "android.telecomm.action.INCOMING_CALL";
|
||||
public static final String ACTION_INCOMING_CALL = "android.telecom.action.INCOMING_CALL";
|
||||
|
||||
/**
|
||||
* The {@link android.content.Intent} action used to configure a
|
||||
* {@link android.telecomm.ConnectionService}.
|
||||
* {@link android.telecom.ConnectionService}.
|
||||
*/
|
||||
public static final String ACTION_CONNECTION_SERVICE_CONFIGURE =
|
||||
"android.telecomm.action.CONNECTION_SERVICE_CONFIGURE";
|
||||
"android.telecom.action.CONNECTION_SERVICE_CONFIGURE";
|
||||
|
||||
/**
|
||||
* The {@link android.content.Intent} action used to show the call settings page.
|
||||
*/
|
||||
public static final String ACTION_SHOW_CALL_SETTINGS =
|
||||
"android.telecomm.action.SHOW_CALL_SETTINGS";
|
||||
"android.telecom.action.SHOW_CALL_SETTINGS";
|
||||
|
||||
/**
|
||||
* The {@link android.content.Intent} action used to show the settings page used to configure
|
||||
* {@link PhoneAccount} preferences.
|
||||
*/
|
||||
public static final String ACTION_CHANGE_PHONE_ACCOUNTS =
|
||||
"android.telecomm.action.CHANGE_PHONE_ACCOUNTS";
|
||||
"android.telecom.action.CHANGE_PHONE_ACCOUNTS";
|
||||
|
||||
/**
|
||||
* The {@link android.content.Intent} action used to inform a
|
||||
* {@link android.telecomm.ConnectionService} that one of its {@link PhoneAccount}s has been
|
||||
* enabled. The {@link TelecommManager#EXTRA_PHONE_ACCOUNT_HANDLE} extra is used to indicate
|
||||
* {@link android.telecom.ConnectionService} that one of its {@link PhoneAccount}s has been
|
||||
* enabled. The {@link TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE} extra is used to indicate
|
||||
* which {@link PhoneAccount} has been enabled.
|
||||
*/
|
||||
public static final String ACTION_PHONE_ACCOUNT_ENABLED =
|
||||
@@ -80,8 +80,8 @@ public class TelecommManager {
|
||||
|
||||
/**
|
||||
* The {@link android.content.Intent} action used to inform a
|
||||
* {@link android.telecomm.ConnectionService} that one of its {@link PhoneAccount}s has been
|
||||
* disabled. The {@link TelecommManager#EXTRA_PHONE_ACCOUNT_HANDLE} extra is used to indicate
|
||||
* {@link android.telecom.ConnectionService} that one of its {@link PhoneAccount}s has been
|
||||
* disabled. The {@link TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE} extra is used to indicate
|
||||
* which {@link PhoneAccount} has been disabled.
|
||||
*/
|
||||
public static final String ACTION_PHONE_ACCOUNT_DISABLED =
|
||||
@@ -92,7 +92,7 @@ public class TelecommManager {
|
||||
* determines whether the speakerphone should be automatically turned on for an outgoing call.
|
||||
*/
|
||||
public static final String EXTRA_START_CALL_WITH_SPEAKERPHONE =
|
||||
"android.telecomm.extra.START_CALL_WITH_SPEAKERPHONE";
|
||||
"android.telecom.extra.START_CALL_WITH_SPEAKERPHONE";
|
||||
|
||||
/**
|
||||
* Optional extra for {@link android.content.Intent#ACTION_CALL} containing an integer that
|
||||
@@ -105,7 +105,7 @@ public class TelecommManager {
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_START_CALL_WITH_VIDEO_STATE =
|
||||
"android.telecomm.extra.START_CALL_WITH_VIDEO_STATE";
|
||||
"android.telecom.extra.START_CALL_WITH_VIDEO_STATE";
|
||||
|
||||
/**
|
||||
* The extra used with an {@link android.content.Intent#ACTION_CALL} and
|
||||
@@ -115,7 +115,7 @@ public class TelecommManager {
|
||||
* Retrieve with {@link android.content.Intent#getParcelableExtra(String)}.
|
||||
*/
|
||||
public static final String EXTRA_PHONE_ACCOUNT_HANDLE =
|
||||
"android.telecomm.extra.PHONE_ACCOUNT_HANDLE";
|
||||
"android.telecom.extra.PHONE_ACCOUNT_HANDLE";
|
||||
|
||||
/**
|
||||
* Optional extra for {@link #ACTION_INCOMING_CALL} containing a {@link Bundle} which contains
|
||||
@@ -125,7 +125,7 @@ public class TelecommManager {
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_INCOMING_CALL_EXTRAS =
|
||||
"android.telecomm.extra.INCOMING_CALL_EXTRAS";
|
||||
"android.telecom.extra.INCOMING_CALL_EXTRAS";
|
||||
|
||||
/**
|
||||
* Optional extra for {@link android.content.Intent#ACTION_CALL} and
|
||||
@@ -136,28 +136,28 @@ public class TelecommManager {
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_OUTGOING_CALL_EXTRAS =
|
||||
"android.telecomm.extra.OUTGOING_CALL_EXTRAS";
|
||||
"android.telecom.extra.OUTGOING_CALL_EXTRAS";
|
||||
|
||||
/**
|
||||
* Optional extra for {@link android.telephony.TelephonyManager#ACTION_PHONE_STATE_CHANGED}
|
||||
* containing the disconnect code.
|
||||
*/
|
||||
public static final String EXTRA_CALL_DISCONNECT_CAUSE =
|
||||
"android.telecomm.extra.CALL_DISCONNECT_CAUSE";
|
||||
"android.telecom.extra.CALL_DISCONNECT_CAUSE";
|
||||
|
||||
/**
|
||||
* Optional extra for {@link android.telephony.TelephonyManager#ACTION_PHONE_STATE_CHANGED}
|
||||
* containing the disconnect message.
|
||||
*/
|
||||
public static final String EXTRA_CALL_DISCONNECT_MESSAGE =
|
||||
"android.telecomm.extra.CALL_DISCONNECT_MESSAGE";
|
||||
"android.telecom.extra.CALL_DISCONNECT_MESSAGE";
|
||||
|
||||
/**
|
||||
* Optional extra for {@link android.telephony.TelephonyManager#ACTION_PHONE_STATE_CHANGED}
|
||||
* containing the component name of the associated connection service.
|
||||
*/
|
||||
public static final String EXTRA_CONNECTION_SERVICE =
|
||||
"android.telecomm.extra.CONNECTION_SERVICE";
|
||||
"android.telecom.extra.CONNECTION_SERVICE";
|
||||
|
||||
/**
|
||||
* An optional {@link android.content.Intent#ACTION_CALL} intent extra denoting the
|
||||
@@ -170,7 +170,7 @@ public class TelecommManager {
|
||||
* the user. This alternative address is referred to as the gateway address.
|
||||
*/
|
||||
public static final String GATEWAY_PROVIDER_PACKAGE =
|
||||
"android.telecomm.extra.GATEWAY_PROVIDER_PACKAGE";
|
||||
"android.telecom.extra.GATEWAY_PROVIDER_PACKAGE";
|
||||
|
||||
/**
|
||||
* An optional {@link android.content.Intent#ACTION_CALL} intent extra corresponding to the
|
||||
@@ -181,7 +181,7 @@ public class TelecommManager {
|
||||
* (See {@link #GATEWAY_PROVIDER_PACKAGE} for details)
|
||||
*/
|
||||
public static final String GATEWAY_ORIGINAL_ADDRESS =
|
||||
"android.telecomm.extra.GATEWAY_ORIGINAL_ADDRESS";
|
||||
"android.telecom.extra.GATEWAY_ORIGINAL_ADDRESS";
|
||||
|
||||
/**
|
||||
* The number which the party on the other side of the line will see (and use to return the
|
||||
@@ -191,7 +191,7 @@ public class TelecommManager {
|
||||
* this if the {@link android.telephony.TelephonyManager#getLine1Number()} value, as that is the
|
||||
* user's expected caller ID.
|
||||
*/
|
||||
public static final String EXTRA_CALL_BACK_NUMBER = "android.telecomm.extra.CALL_BACK_NUMBER";
|
||||
public static final String EXTRA_CALL_BACK_NUMBER = "android.telecom.extra.CALL_BACK_NUMBER";
|
||||
|
||||
/**
|
||||
* The dual tone multi-frequency signaling character sent to indicate the dialing system should
|
||||
@@ -246,7 +246,7 @@ public class TelecommManager {
|
||||
* @hide
|
||||
*/
|
||||
public static final String ACTION_CURRENT_TTY_MODE_CHANGED =
|
||||
"android.telecomm.action.CURRENT_TTY_MODE_CHANGED";
|
||||
"android.telecom.action.CURRENT_TTY_MODE_CHANGED";
|
||||
|
||||
/**
|
||||
* The lookup key for an int that indicates the current TTY mode.
|
||||
@@ -259,7 +259,7 @@ public class TelecommManager {
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_CURRENT_TTY_MODE =
|
||||
"android.telecomm.intent.extra.CURRENT_TTY_MODE";
|
||||
"android.telecom.intent.extra.CURRENT_TTY_MODE";
|
||||
|
||||
/**
|
||||
* Broadcast intent action indicating that the TTY preferred operating mode has changed. An
|
||||
@@ -269,7 +269,7 @@ public class TelecommManager {
|
||||
* @hide
|
||||
*/
|
||||
public static final String ACTION_TTY_PREFERRED_MODE_CHANGED =
|
||||
"android.telecomm.action.TTY_PREFERRED_MODE_CHANGED";
|
||||
"android.telecom.action.TTY_PREFERRED_MODE_CHANGED";
|
||||
|
||||
/**
|
||||
* The lookup key for an int that indicates preferred TTY mode. Valid modes are: -
|
||||
@@ -279,7 +279,7 @@ public class TelecommManager {
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_TTY_PREFERRED_MODE =
|
||||
"android.telecomm.intent.extra.TTY_PREFERRED";
|
||||
"android.telecom.intent.extra.TTY_PREFERRED";
|
||||
|
||||
/**
|
||||
* The following 4 constants define how properties such as phone numbers and names are
|
||||
@@ -298,23 +298,21 @@ public class TelecommManager {
|
||||
/** Property should be displayed as a pay phone. */
|
||||
public static final int PRESENTATION_PAYPHONE = 4;
|
||||
|
||||
private static final String TAG = "TelecommManager";
|
||||
|
||||
private static final String TELECOMM_SERVICE_NAME = "telecomm";
|
||||
private static final String TAG = "TelecomManager";
|
||||
|
||||
private final Context mContext;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public static TelecommManager from(Context context) {
|
||||
return (TelecommManager) context.getSystemService(Context.TELECOMM_SERVICE);
|
||||
public static TelecomManager from(Context context) {
|
||||
return (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public TelecommManager(Context context) {
|
||||
public TelecomManager(Context context) {
|
||||
Context appContext = context.getApplicationContext();
|
||||
if (appContext != null) {
|
||||
mContext = appContext;
|
||||
@@ -332,11 +330,11 @@ public class TelecommManager {
|
||||
* exists no user-chosen default {@code PhoneAccount}. In this case, apps wishing to initiate a
|
||||
* phone call must either create their {@link android.content.Intent#ACTION_CALL} or
|
||||
* {@link android.content.Intent#ACTION_DIAL} {@code Intent} with no
|
||||
* {@link TelecommManager#EXTRA_PHONE_ACCOUNT_HANDLE}, or present the user with an affordance to
|
||||
* {@link TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE}, or present the user with an affordance to
|
||||
* select one of the elements of {@link #getEnabledPhoneAccounts()}.
|
||||
* <p>
|
||||
* An {@link android.content.Intent#ACTION_CALL} or {@link android.content.Intent#ACTION_DIAL}
|
||||
* {@code Intent} with no {@link TelecommManager#EXTRA_PHONE_ACCOUNT_HANDLE} is valid, and
|
||||
* {@code Intent} with no {@link TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE} is valid, and
|
||||
* subsequent steps in the phone call flow are responsible for presenting the user with an
|
||||
* affordance, if necessary, to choose a {@code PhoneAccount}.
|
||||
*
|
||||
@@ -345,10 +343,10 @@ public class TelecommManager {
|
||||
public PhoneAccountHandle getDefaultOutgoingPhoneAccount(String uriScheme) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getDefaultOutgoingPhoneAccount(uriScheme);
|
||||
return getTelecomService().getDefaultOutgoingPhoneAccount(uriScheme);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getDefaultOutgoingPhoneAccount", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getDefaultOutgoingPhoneAccount", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -367,10 +365,10 @@ public class TelecommManager {
|
||||
public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getUserSelectedOutgoingPhoneAccount();
|
||||
return getTelecomService().getUserSelectedOutgoingPhoneAccount();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getUserSelectedOutgoingPhoneAccount", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getUserSelectedOutgoingPhoneAccount", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -382,10 +380,10 @@ public class TelecommManager {
|
||||
public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().setUserSelectedOutgoingPhoneAccount(accountHandle);
|
||||
getTelecomService().setUserSelectedOutgoingPhoneAccount(accountHandle);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#setUserSelectedOutgoingPhoneAccount");
|
||||
Log.e(TAG, "Error calling ITelecomService#setUserSelectedOutgoingPhoneAccount");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -399,10 +397,10 @@ public class TelecommManager {
|
||||
public List<PhoneAccountHandle> getEnabledPhoneAccounts() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getEnabledPhoneAccounts();
|
||||
return getTelecomService().getEnabledPhoneAccounts();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getEnabledPhoneAccounts", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getEnabledPhoneAccounts", e);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
@@ -417,10 +415,10 @@ public class TelecommManager {
|
||||
public PhoneAccountHandle getSimCallManager() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getSimCallManager();
|
||||
return getTelecomService().getSimCallManager();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getSimCallManager");
|
||||
Log.e(TAG, "Error calling ITelecomService#getSimCallManager");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -433,10 +431,10 @@ public class TelecommManager {
|
||||
public void setSimCallManager(PhoneAccountHandle accountHandle) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().setSimCallManager(accountHandle);
|
||||
getTelecomService().setSimCallManager(accountHandle);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#setSimCallManager");
|
||||
Log.e(TAG, "Error calling ITelecomService#setSimCallManager");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -448,10 +446,10 @@ public class TelecommManager {
|
||||
public List<PhoneAccountHandle> getSimCallManagers() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getSimCallManagers();
|
||||
return getTelecomService().getSimCallManagers();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getSimCallManagers");
|
||||
Log.e(TAG, "Error calling ITelecomService#getSimCallManagers");
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
@@ -482,10 +480,10 @@ public class TelecommManager {
|
||||
public List<PhoneAccountHandle> getPhoneAccountsSupportingScheme(String uriScheme) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getPhoneAccountsSupportingScheme(uriScheme);
|
||||
return getTelecomService().getPhoneAccountsSupportingScheme(uriScheme);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getPhoneAccountsSupportingScheme", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getPhoneAccountsSupportingScheme", e);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
@@ -510,10 +508,10 @@ public class TelecommManager {
|
||||
public PhoneAccount getPhoneAccount(PhoneAccountHandle account) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getPhoneAccount(account);
|
||||
return getTelecomService().getPhoneAccount(account);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getPhoneAccount", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getPhoneAccount", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -528,10 +526,10 @@ public class TelecommManager {
|
||||
public int getAllPhoneAccountsCount() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getAllPhoneAccountsCount();
|
||||
return getTelecomService().getAllPhoneAccountsCount();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getAllPhoneAccountsCount", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getAllPhoneAccountsCount", e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -546,10 +544,10 @@ public class TelecommManager {
|
||||
public List<PhoneAccount> getAllPhoneAccounts() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getAllPhoneAccounts();
|
||||
return getTelecomService().getAllPhoneAccounts();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getAllPhoneAccounts", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getAllPhoneAccounts", e);
|
||||
}
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
@@ -564,10 +562,10 @@ public class TelecommManager {
|
||||
public List<PhoneAccountHandle> getAllPhoneAccountHandles() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getAllPhoneAccountHandles();
|
||||
return getTelecomService().getAllPhoneAccountHandles();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#getAllPhoneAccountHandles", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#getAllPhoneAccountHandles", e);
|
||||
}
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
@@ -583,10 +581,10 @@ public class TelecommManager {
|
||||
public void setPhoneAccountEnabled(PhoneAccountHandle account, boolean isEnabled) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().setPhoneAccountEnabled(account, isEnabled);
|
||||
getTelecomService().setPhoneAccountEnabled(account, isEnabled);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#setPhoneAccountEnabled", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#setPhoneAccountEnabled", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -598,10 +596,10 @@ public class TelecommManager {
|
||||
public void registerPhoneAccount(PhoneAccount account) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().registerPhoneAccount(account);
|
||||
getTelecomService().registerPhoneAccount(account);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#registerPhoneAccount", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#registerPhoneAccount", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -613,10 +611,10 @@ public class TelecommManager {
|
||||
public void unregisterPhoneAccount(PhoneAccountHandle accountHandle) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().unregisterPhoneAccount(accountHandle);
|
||||
getTelecomService().unregisterPhoneAccount(accountHandle);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#unregisterPhoneAccount", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#unregisterPhoneAccount", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -627,10 +625,10 @@ public class TelecommManager {
|
||||
public void clearAccounts() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().clearAccounts(mContext.getPackageName());
|
||||
getTelecomService().clearAccounts(mContext.getPackageName());
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#clearAccounts", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#clearAccounts", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -641,7 +639,7 @@ public class TelecommManager {
|
||||
public ComponentName getDefaultPhoneApp() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getDefaultPhoneApp();
|
||||
return getTelecomService().getDefaultPhoneApp();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "RemoteException attempting to get the default phone app.", e);
|
||||
@@ -660,7 +658,7 @@ public class TelecommManager {
|
||||
public boolean isInCall() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().isInCall();
|
||||
return getTelecomService().isInCall();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "RemoteException attempting to get default phone app.", e);
|
||||
@@ -677,7 +675,7 @@ public class TelecommManager {
|
||||
public boolean isRinging() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().isRinging();
|
||||
return getTelecomService().isRinging();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "RemoteException attempting to get ringing state of phone app.", e);
|
||||
@@ -687,7 +685,7 @@ public class TelecommManager {
|
||||
|
||||
/**
|
||||
* Ends an ongoing call.
|
||||
* TODO: L-release - need to convert all invocations of ITelecommService#endCall to use this
|
||||
* TODO: L-release - need to convert all invocations of ITelecomService#endCall to use this
|
||||
* method (clockwork & gearhead).
|
||||
* @hide
|
||||
*/
|
||||
@@ -695,17 +693,17 @@ public class TelecommManager {
|
||||
public boolean endCall() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().endCall();
|
||||
return getTelecomService().endCall();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#endCall", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#endCall", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* If there is a ringing incoming call, this method accepts the call on behalf of the user.
|
||||
* TODO: L-release - need to convert all invocation of ITelecommService#answerRingingCall to use
|
||||
* TODO: L-release - need to convert all invocation of ITelecmmService#answerRingingCall to use
|
||||
* this method (clockwork & gearhead).
|
||||
*
|
||||
* @hide
|
||||
@@ -714,10 +712,10 @@ public class TelecommManager {
|
||||
public void acceptRingingCall() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().acceptRingingCall();
|
||||
getTelecomService().acceptRingingCall();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#acceptRingingCall", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#acceptRingingCall", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -730,10 +728,10 @@ public class TelecommManager {
|
||||
public void silenceRinger() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().silenceRinger();
|
||||
getTelecomService().silenceRinger();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#silenceRinger", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#silenceRinger", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -746,7 +744,7 @@ public class TelecommManager {
|
||||
public boolean isTtySupported() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().isTtySupported();
|
||||
return getTelecomService().isTtySupported();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "RemoteException attempting to get TTY supported state.", e);
|
||||
@@ -758,16 +756,16 @@ public class TelecommManager {
|
||||
* Returns the current TTY mode of the device. For TTY to be on the user must enable it in
|
||||
* settings and have a wired headset plugged in.
|
||||
* Valid modes are:
|
||||
* - {@link TelecommManager#TTY_MODE_OFF}
|
||||
* - {@link TelecommManager#TTY_MODE_FULL}
|
||||
* - {@link TelecommManager#TTY_MODE_HCO}
|
||||
* - {@link TelecommManager#TTY_MODE_VCO}
|
||||
* - {@link TelecomManager#TTY_MODE_OFF}
|
||||
* - {@link TelecomManager#TTY_MODE_FULL}
|
||||
* - {@link TelecomManager#TTY_MODE_HCO}
|
||||
* - {@link TelecomManager#TTY_MODE_VCO}
|
||||
* @hide
|
||||
*/
|
||||
public int getCurrentTtyMode() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
return getTelecommService().getCurrentTtyMode();
|
||||
return getTelecomService().getCurrentTtyMode();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "RemoteException attempting to get the current TTY mode.", e);
|
||||
@@ -792,7 +790,7 @@ public class TelecommManager {
|
||||
public void addNewIncomingCall(PhoneAccountHandle phoneAccount, Bundle extras) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
getTelecommService().addNewIncomingCall(
|
||||
getTelecomService().addNewIncomingCall(
|
||||
phoneAccount, extras == null ? new Bundle() : extras);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
@@ -812,12 +810,12 @@ public class TelecommManager {
|
||||
* @return True if the digits were processed as an MMI code, false otherwise.
|
||||
*/
|
||||
public boolean handleMmi(String dialString) {
|
||||
ITelecommService service = getTelecommService();
|
||||
ITelecomService service = getTelecomService();
|
||||
if (service != null) {
|
||||
try {
|
||||
return service.handlePinMmi(dialString);
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#handlePinMmi", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#handlePinMmi", e);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -830,12 +828,12 @@ public class TelecommManager {
|
||||
* </p>
|
||||
*/
|
||||
public void cancelMissedCallsNotification() {
|
||||
ITelecommService service = getTelecommService();
|
||||
ITelecomService service = getTelecomService();
|
||||
if (service != null) {
|
||||
try {
|
||||
service.cancelMissedCallsNotification();
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#cancelMissedCallsNotification", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#cancelMissedCallsNotification", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -851,24 +849,24 @@ public class TelecommManager {
|
||||
* @param showDialpad Brings up the in-call dialpad as part of showing the in-call screen.
|
||||
*/
|
||||
public void showInCallScreen(boolean showDialpad) {
|
||||
ITelecommService service = getTelecommService();
|
||||
ITelecomService service = getTelecomService();
|
||||
if (service != null) {
|
||||
try {
|
||||
service.showInCallScreen(showDialpad);
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#showCallScreen", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#showCallScreen", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private ITelecommService getTelecommService() {
|
||||
return ITelecommService.Stub.asInterface(ServiceManager.getService(TELECOMM_SERVICE_NAME));
|
||||
private ITelecomService getTelecomService() {
|
||||
return ITelecomService.Stub.asInterface(ServiceManager.getService(Context.TELECOM_SERVICE));
|
||||
}
|
||||
|
||||
private boolean isServiceConnected() {
|
||||
boolean isConnected = getTelecommService() != null;
|
||||
boolean isConnected = getTelecomService() != null;
|
||||
if (!isConnected) {
|
||||
Log.w(TAG, "Telecomm Service not found.");
|
||||
Log.w(TAG, "Telecom Service not found.");
|
||||
}
|
||||
return isConnected;
|
||||
}
|
||||
@@ -14,19 +14,19 @@
|
||||
* limitations under the License
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import android.os.RemoteException;
|
||||
import android.telecomm.InCallService.VideoCall;
|
||||
import android.telecom.InCallService.VideoCall;
|
||||
import android.view.Surface;
|
||||
|
||||
import com.android.internal.os.SomeArgs;
|
||||
import com.android.internal.telecomm.IVideoCallback;
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecom.IVideoCallback;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
|
||||
/**
|
||||
* Implementation of a Video Call, which allows InCallUi to communicate commands to the underlying
|
||||
@@ -14,10 +14,10 @@
|
||||
R* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import com.android.internal.os.SomeArgs;
|
||||
import com.android.internal.telecomm.IVideoCallback;
|
||||
import com.android.internal.telecom.IVideoCallback;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License
|
||||
*/
|
||||
|
||||
package android.telecomm;
|
||||
package android.telecom;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -14,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.telecomm.AudioState;
|
||||
import android.telecomm.ConnectionRequest;
|
||||
import android.telecomm.PhoneAccountHandle;
|
||||
import android.telecom.AudioState;
|
||||
import android.telecom.ConnectionRequest;
|
||||
import android.telecom.PhoneAccountHandle;
|
||||
|
||||
import com.android.internal.telecomm.IConnectionServiceAdapter;
|
||||
import com.android.internal.telecom.IConnectionServiceAdapter;
|
||||
|
||||
/**
|
||||
* Internal remote interface for connection services.
|
||||
*
|
||||
* @see android.telecomm.ConnectionService
|
||||
* @see android.telecom.ConnectionService
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@@ -14,22 +14,22 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.net.Uri;
|
||||
import android.telecomm.ConnectionRequest;
|
||||
import android.telecomm.ParcelableConnection;
|
||||
import android.telecomm.ParcelableConference;
|
||||
import android.telecomm.StatusHints;
|
||||
import android.telecom.ConnectionRequest;
|
||||
import android.telecom.ParcelableConnection;
|
||||
import android.telecom.ParcelableConference;
|
||||
import android.telecom.StatusHints;
|
||||
|
||||
import com.android.internal.telecomm.IVideoProvider;
|
||||
import com.android.internal.telecomm.RemoteServiceCallback;
|
||||
import com.android.internal.telecom.IVideoProvider;
|
||||
import com.android.internal.telecom.RemoteServiceCallback;
|
||||
|
||||
/**
|
||||
* Internal remote callback interface for connection services.
|
||||
*
|
||||
* @see android.telecomm.ConnectionServiceAdapter
|
||||
* @see android.telecom.ConnectionServiceAdapter
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.telecomm.PhoneAccountHandle;
|
||||
import android.telecom.PhoneAccountHandle;
|
||||
|
||||
/**
|
||||
* Internal remote callback interface for in-call services.
|
||||
*
|
||||
* @see android.telecomm.InCallAdapter
|
||||
* @see android.telecom.InCallAdapter
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@@ -14,18 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.telecomm.AudioState;
|
||||
import android.telecomm.ParcelableCall;
|
||||
import android.telecom.AudioState;
|
||||
import android.telecom.ParcelableCall;
|
||||
|
||||
import com.android.internal.telecomm.IInCallAdapter;
|
||||
import com.android.internal.telecom.IInCallAdapter;
|
||||
|
||||
/**
|
||||
* Internal remote interface for in-call services.
|
||||
*
|
||||
* @see android.telecomm.InCallService
|
||||
* @see android.telecom.InCallService
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@@ -14,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.telecomm.PhoneAccountHandle;
|
||||
import android.telecom.PhoneAccountHandle;
|
||||
import android.os.Bundle;
|
||||
import android.telecomm.PhoneAccount;
|
||||
import android.telecom.PhoneAccount;
|
||||
|
||||
/**
|
||||
* Interface used to interact with Telecomm. Mostly this is used by TelephonyManager for passing
|
||||
* Interface used to interact with Telecom. Mostly this is used by TelephonyManager for passing
|
||||
* commands that were previously handled by ITelephony.
|
||||
* {@hide}
|
||||
*/
|
||||
interface ITelecommService {
|
||||
interface ITelecomService {
|
||||
/**
|
||||
* Brings the in-call screen to the foreground if there is an active call.
|
||||
*
|
||||
@@ -35,87 +35,87 @@ interface ITelecommService {
|
||||
void showInCallScreen(boolean showDialpad);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#getDefaultOutgoingPhoneAccount
|
||||
* @see TelecomServiceImpl#getDefaultOutgoingPhoneAccount
|
||||
*/
|
||||
PhoneAccountHandle getDefaultOutgoingPhoneAccount(in String uriScheme);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#getUserSelectedOutgoingPhoneAccount
|
||||
* @see TelecomServiceImpl#getUserSelectedOutgoingPhoneAccount
|
||||
*/
|
||||
PhoneAccountHandle getUserSelectedOutgoingPhoneAccount();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#setUserSelectedOutgoingPhoneAccount
|
||||
* @see TelecomServiceImpl#setUserSelectedOutgoingPhoneAccount
|
||||
*/
|
||||
void setUserSelectedOutgoingPhoneAccount(in PhoneAccountHandle account);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#getEnabledPhoneAccounts
|
||||
* @see TelecomServiceImpl#getEnabledPhoneAccounts
|
||||
*/
|
||||
List<PhoneAccountHandle> getEnabledPhoneAccounts();
|
||||
|
||||
/**
|
||||
* @see TelecommManager#getPhoneAccountsSupportingScheme
|
||||
* @see TelecomManager#getPhoneAccountsSupportingScheme
|
||||
*/
|
||||
List<PhoneAccountHandle> getPhoneAccountsSupportingScheme(in String uriScheme);
|
||||
|
||||
/**
|
||||
* @see TelecommManager#getPhoneAccount
|
||||
* @see TelecomManager#getPhoneAccount
|
||||
*/
|
||||
PhoneAccount getPhoneAccount(in PhoneAccountHandle account);
|
||||
|
||||
/**
|
||||
* @see TelecommManager#getAllPhoneAccountsCount
|
||||
* @see TelecomManager#getAllPhoneAccountsCount
|
||||
*/
|
||||
int getAllPhoneAccountsCount();
|
||||
|
||||
/**
|
||||
* @see TelecommManager#getAllPhoneAccounts
|
||||
* @see TelecomManager#getAllPhoneAccounts
|
||||
*/
|
||||
List<PhoneAccount> getAllPhoneAccounts();
|
||||
|
||||
/**
|
||||
* @see TelecommManager#getAllPhoneAccountHandles
|
||||
* @see TelecomManager#getAllPhoneAccountHandles
|
||||
*/
|
||||
List<PhoneAccountHandle> getAllPhoneAccountHandles();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#getSimCallManager
|
||||
* @see TelecomServiceImpl#getSimCallManager
|
||||
*/
|
||||
PhoneAccountHandle getSimCallManager();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#setSimCallManager
|
||||
* @see TelecomServiceImpl#setSimCallManager
|
||||
*/
|
||||
void setSimCallManager(in PhoneAccountHandle account);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#getSimCallManagers
|
||||
* @see TelecomServiceImpl#getSimCallManagers
|
||||
*/
|
||||
List<PhoneAccountHandle> getSimCallManagers();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#setPhoneAccountEnabled
|
||||
* @see TelecomServiceImpl#setPhoneAccountEnabled
|
||||
*/
|
||||
void setPhoneAccountEnabled(in PhoneAccountHandle account, in boolean isEnabled);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#registerPhoneAccount
|
||||
* @see TelecomServiceImpl#registerPhoneAccount
|
||||
*/
|
||||
void registerPhoneAccount(in PhoneAccount metadata);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#unregisterPhoneAccount
|
||||
* @see TelecomServiceImpl#unregisterPhoneAccount
|
||||
*/
|
||||
void unregisterPhoneAccount(in PhoneAccountHandle account);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#clearAccounts
|
||||
* @see TelecomServiceImpl#clearAccounts
|
||||
*/
|
||||
void clearAccounts(String packageName);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#getDefaultPhoneApp
|
||||
* @see TelecomServiceImpl#getDefaultPhoneApp
|
||||
*/
|
||||
ComponentName getDefaultPhoneApp();
|
||||
|
||||
@@ -124,52 +124,52 @@ interface ITelecommService {
|
||||
//
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#silenceRinger
|
||||
* @see TelecomServiceImpl#silenceRinger
|
||||
*/
|
||||
void silenceRinger();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#isInCall
|
||||
* @see TelecomServiceImpl#isInCall
|
||||
*/
|
||||
boolean isInCall();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#isRinging
|
||||
* @see TelecomServiceImpl#isRinging
|
||||
*/
|
||||
boolean isRinging();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#endCall
|
||||
* @see TelecomServiceImpl#endCall
|
||||
*/
|
||||
boolean endCall();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#acceptRingingCall
|
||||
* @see TelecomServiceImpl#acceptRingingCall
|
||||
*/
|
||||
void acceptRingingCall();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#cancelMissedCallsNotification
|
||||
* @see TelecomServiceImpl#cancelMissedCallsNotification
|
||||
*/
|
||||
void cancelMissedCallsNotification();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#handleMmi
|
||||
* @see TelecomServiceImpl#handleMmi
|
||||
*/
|
||||
boolean handlePinMmi(String dialString);
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#isTtySupported
|
||||
* @see TelecomServiceImpl#isTtySupported
|
||||
*/
|
||||
boolean isTtySupported();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#getCurrentTtyMode
|
||||
* @see TelecomServiceImpl#getCurrentTtyMode
|
||||
*/
|
||||
int getCurrentTtyMode();
|
||||
|
||||
/**
|
||||
* @see TelecommServiceImpl#addNewIncomingCall
|
||||
* @see TelecomServiceImpl#addNewIncomingCall
|
||||
*/
|
||||
void addNewIncomingCall(in PhoneAccountHandle phoneAccount, in Bundle extras);
|
||||
}
|
||||
@@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.telecomm.CameraCapabilities;
|
||||
import android.telecomm.VideoProfile;
|
||||
import android.telecom.CameraCapabilities;
|
||||
import android.telecom.VideoProfile;
|
||||
|
||||
/**
|
||||
* Internal definition of a callback interface, used for an InCallUi to respond to video
|
||||
* telephony changes.
|
||||
*
|
||||
* @see android.telecomm.InCallService.VideoCall.Listener
|
||||
* @see android.telecom.InCallService.VideoCall.Listener
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.view.Surface;
|
||||
import android.telecomm.VideoProfile;
|
||||
import android.telecom.VideoProfile;
|
||||
|
||||
/**
|
||||
* Internal remote interface for a video call provider.
|
||||
* @see android.telecomm.VideoProvider
|
||||
* @see android.telecom.VideoProvider
|
||||
* @hide
|
||||
*/
|
||||
oneway interface IVideoProvider {
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.internal.telecomm;
|
||||
package com.android.internal.telecom;
|
||||
|
||||
import android.content.ComponentName;
|
||||
|
||||
@@ -155,7 +155,7 @@ public class DisconnectCause {
|
||||
public static final int OUTGOING_FAILURE = 43;
|
||||
|
||||
/**
|
||||
* The outgoing call was canceled by the {@link android.telecomm.ConnectionService}.
|
||||
* The outgoing call was canceled by the {@link android.telecom.ConnectionService}.
|
||||
*/
|
||||
public static final int OUTGOING_CANCELED = 44;
|
||||
|
||||
|
||||
@@ -26,9 +26,8 @@ import android.os.RemoteException;
|
||||
import android.os.ServiceManager;
|
||||
import android.os.SystemProperties;
|
||||
import android.util.Log;
|
||||
import android.util.Pair;
|
||||
|
||||
import com.android.internal.telecomm.ITelecommService;
|
||||
import com.android.internal.telecom.ITelecomService;
|
||||
import com.android.internal.telephony.IPhoneSubInfo;
|
||||
import com.android.internal.telephony.ITelephony;
|
||||
import com.android.internal.telephony.ITelephonyRegistry;
|
||||
@@ -63,8 +62,6 @@ import java.util.regex.Pattern;
|
||||
public class TelephonyManager {
|
||||
private static final String TAG = "TelephonyManager";
|
||||
|
||||
private static final String TELECOMM_SERVICE_NAME = "telecomm";
|
||||
|
||||
private static ITelephonyRegistry sRegistry;
|
||||
|
||||
/**
|
||||
@@ -2145,8 +2142,8 @@ public class TelephonyManager {
|
||||
return ITelephony.Stub.asInterface(ServiceManager.getService(Context.TELEPHONY_SERVICE));
|
||||
}
|
||||
|
||||
private ITelecommService getTelecommService() {
|
||||
return ITelecommService.Stub.asInterface(ServiceManager.getService(TELECOMM_SERVICE_NAME));
|
||||
private ITelecomService getTelecommService() {
|
||||
return ITelecomService.Stub.asInterface(ServiceManager.getService(Context.TELECOM_SERVICE));
|
||||
}
|
||||
|
||||
//
|
||||
@@ -3137,7 +3134,7 @@ public class TelephonyManager {
|
||||
try {
|
||||
getTelecommService().silenceRinger();
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error calling ITelecommService#silenceRinger", e);
|
||||
Log.e(TAG, "Error calling ITelecomService#silenceRinger", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ package com.android.ims;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.telecomm.VideoProfile;
|
||||
import android.telecom.VideoProfile;
|
||||
|
||||
import com.android.internal.telephony.PhoneConstants;
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
package com.android.ims.internal;
|
||||
|
||||
import android.telecomm.CameraCapabilities;
|
||||
import android.telecomm.VideoProfile;
|
||||
import android.telecom.CameraCapabilities;
|
||||
import android.telecom.VideoProfile;
|
||||
|
||||
/**
|
||||
* Internal remote interface for IMS's video call provider.
|
||||
@@ -26,8 +26,8 @@ import android.telecomm.VideoProfile;
|
||||
* separate aidl interface for invoking callbacks in Telephony from the IMS Service to without
|
||||
* accessing internal interfaces. See {@link IImsVideoCallProvider} for additional detail.
|
||||
*
|
||||
* @see android.telecomm.internal.IVideoCallCallback
|
||||
* @see android.telecomm.VideoCallImpl
|
||||
* @see android.telecom.internal.IVideoCallCallback
|
||||
* @see android.telecom.VideoCallImpl
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.android.ims.internal;
|
||||
|
||||
import android.view.Surface;
|
||||
import android.telecomm.VideoProfile;
|
||||
import android.telecom.VideoProfile;
|
||||
|
||||
import com.android.ims.internal.IImsVideoCallCallback;
|
||||
|
||||
@@ -35,8 +35,8 @@ import com.android.ims.internal.IImsVideoCallCallback;
|
||||
* video call provider will not have the benefit of accessing the internal
|
||||
* {@link IVideoCallProvider} aidl for interprocess communication.
|
||||
*
|
||||
* @see android.telecomm.internal.IVideoCallProvider
|
||||
* @see android.telecomm.VideoCallProvider
|
||||
* @see android.telecom.internal.IVideoCallProvider
|
||||
* @see android.telecom.VideoCallProvider
|
||||
* @hide
|
||||
*/
|
||||
oneway interface IImsVideoCallProvider {
|
||||
|
||||
Reference in New Issue
Block a user