330 Commits

Author SHA1 Message Date
Evan Charlton
8635c578f0 Revert "@hide ConnectionService APIs."
This reverts commit 86935c406e4a8bb0e2ad871b51009f3603df9e87.
2014-09-24 14:06:12 -07:00
Jay Shrauner
2fbab892e9 Merge "Fix NPE crash when mPhone is null" into lmp-dev 2014-09-23 20:59:15 +00:00
mike dooley
95e8070e29 Fixing ConcurrentModificationException.
Implementing review feedback.

Bug: 17572658
Change-Id: I3a060d21669a58188a24c5d6ec5fefcbca45a976
2014-09-23 17:34:10 +00:00
Tyler Gunn
711d876fd1 @hide ConnectionService APIs.
Bug: 17569532
Change-Id: I68f7237191bd6d7a1a00ba7bb4fd2f8e3d669e8f
2014-09-23 10:00:38 -07:00
Jay Shrauner
5e6162de62 Fix NPE crash when mPhone is null
Bug:17609710
Change-Id: Idb99feb6f15fd29809adde51cda1eb0d44e20101
2014-09-22 20:47:45 -07:00
Sailesh Nepal
c2a978dba3 Pass disconnect reason for failed remote connections
If a remote connection fails to create call setDisconnected
instead of setState. This allows us to pass the disconnect
reason.

Note, this CL is very low risk since it only impacts remote
connections.

Bug: 17594857
Change-Id: Id296f3f5a4bb9168b358d3bfda94e04623a6b99c
2014-09-20 18:23:05 -07:00
Nancy Chen
f4cf77c5dc Add constructor for DisconnectCause that does not require a tone.
In order to create a DisconnectCause with a label/description that does
not require specifying a tone.

Bug: 17486242
Change-Id: If82605ff20fc9f53ed41b49e12575424c6efc2b6
2014-09-19 11:01:45 -07:00
Nancy Chen
513c892135 Replace get*PhoneAccounts* public API methods with new method (1/3)
Hide getCallCapablePhoneAccounts and getPhoneAccountsSupportingScheme
because a third party app should not be able to see all phone accounts
registered. Replace instead with getPhoneAccountsForPackage(Context)
which will only return the phone accounts registered by a particular package.

Bug: 17510811
Change-Id: I8465ef4f13b62fe83f51835cfffe1656298041a8
2014-09-17 18:34:13 -07:00
Yorke Lee
58bacc513c Add playDtmfTone, stopDtmfTone and setAudioState to RemoteConference
Bug: 17512380
Change-Id: Ie26bef643bdec97f64247b5f8099f2676ae6c63e
2014-09-16 20:44:09 -07:00
Yorke Lee
1c4eb10cc1 Merge "Add missing methods to Conference object" into lmp-dev 2014-09-17 03:29:12 +00:00
Nancy Chen
ebc69cd19e Merge "Remove ability to enable/disable phoneaccounts (1/6)" into lmp-dev 2014-09-17 03:23:04 +00:00
Andrew Lee
009348e837 Merge "Fix disconnect log printf in ConnectionService." into lmp-dev 2014-09-17 01:52:54 +00:00
Andrew Lee
2678639f9e Fix disconnect log printf in ConnectionService.
Bug: 17534940
Change-Id: I41499701d1f7a3ab0816624d27094c6c86fb5b01
2014-09-16 18:17:44 -07:00
mike dooley
f34519b4dd Fix a small printf format bug.
Bug: 17534940
Change-Id: Idc3c1105c72714f138b07012d0ad9e0bf0ba17f1
2014-09-16 18:14:14 -07:00
Andrew Lee
7f3d41fd12 Add new DisconnectCause class to telecomm.
+ Add a hidden "UNKNOWN" default type to ToneGenerator.
- Hide the Telephony DisconnectCause from the public API.
+ Add a Telecomm DisconnectCause. This is parcelable, and contains
information (code, user facing message, non-user facing reason,
and tone) to help describe the disconnect state and what behaviors
an application can implement for the user experience. This reduces
the causes for a disconnect to a more generic set.
+ Lots of work to pipe this through. DisconnectCause replaces the
code and message which were formerly passed around.

Bug: 17241433
Bug: 17329632
Change-Id: I9d337e478a8784bcc0ade02267c2df52cac9bf17
2014-09-16 12:07:41 -07:00
Nancy Chen
210ef039fb Remove ability to enable/disable phoneaccounts (1/6)
Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.
- Remove all references to enabling/disabling phone accounts
+ Rename getEnabledPhoneAccounts -> getCallCapablePhoneAccounts

Bug: 17510811

Change-Id: Id805daae3cc698c75f5e747b6a6107ab0bd3afa0
2014-09-16 10:52:48 -07:00
Yorke Lee
a0d3ca9746 Add missing methods to Conference object
Add setAudioState, onPlayDtmf and onStopDtmf to the conference object.
This fixes DTMF tones for conference calls.

Bug: 17512380
Change-Id: Ice9403d3d750131f077a3ea129b7f67430c68348
2014-09-15 19:18:13 -07:00
Yorke Lee
f13a8b797d No longer require READ_PHONE_STATE permission for getCallState
Bug: 17510808
Change-Id: Id3bb5bf2fea9489bd613063aa946389e8ceb3104
2014-09-15 15:46:57 -07:00
Yorke Lee
2ae312e306 Pipe TelephonyManager.getCallState through TelecommManager
* Add TelecommManager.getCallState (hidden API)
* Make TelephonyManager.getCallState call through to
TelecommManager, to be consistent with
TelephonyManager.ACTION_PHONE_STATE_CHANGED broadcasts for
overall call state. Telephony continues to manage call states for
individual subscriptions.

Bug: 17378767
Change-Id: Ia5e8b21df801ed3af4f6e14c110a72c92f077f88
2014-09-14 09:54:23 -07:00
Tyler Gunn
ef9f6f957d 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
2014-09-12 22:16:17 -07:00
Santos Cordon
094d24c9af Merge "Disconnect all connections if telecomm unbinds to the service." into lmp-dev 2014-09-12 06:21:43 +00:00
Santos Cordon
29f2f2e56a Disconnect all connections if telecomm unbinds to the service.
Bug: 1748658
Change-Id: I7bd3d6f28b7fa25f2ee0b308b5dc16d70d67949f
2014-09-11 19:50:24 -07:00
Tyler Gunn
2df938e56b Merge "Add intent broadcast when a PhoneAccount is enabled or disabled. (1/3)" into lmp-dev 2014-09-12 01:27:37 +00:00
Ihab Awad
2ef34be665 Change UI to represent conferenced IMS connections (1/3)
IMS conferenced connnections cannot individually hold or disconnect.

Bug: 17451623
Change-Id: Ie945d2c23f752f5403d01668606fe893dca0a882
2014-09-11 15:02:39 -07:00
Andrew Lee
6f90967b0c Merge "API cleanup for RemoteConnection." into lmp-dev 2014-09-11 21:24:35 +00:00
Tyler Gunn
9becf00656 Add intent broadcast when a PhoneAccount is enabled or disabled. (1/3)
- Added intents to TelecommManager.java

Bug: 17408536
Change-Id: Ibc7769cf382a1b074e1b12f2b82c6fc8b9903800
2014-09-11 13:31:57 -07:00
Andrew Lee
100e293fa8 API cleanup for RemoteConnection.
+ Rename handle to address.
+ Rename audioModeIsVoip to IsVoipAudioMode.
+ Rename Listener to Callback.
- Delete getParent() and getChildren() methods.
- Delete onChildrenChanged/onParentChanged methods.
+ Rename Listener to Callback.
+ Rename Callback methods to reflect other changes.

Bug: 17329632
Change-Id: Ie466472e995050f578fbb1c4b9de0ae59e488988
2014-09-11 13:30:10 -07:00
Nancy Chen
7ab1dc44bd Update TelecommManager per API requirements. (1/3)
+ Add constants GATEWAY_PROVIDER_PACKAGE and GATEWAY_ORIGINAL_ADDRESS
- Remove those corresponding constants from private packages
+ Modify clearAccounts() so it no longer takes an argument.

Bug: 17329632
Change-Id: I3794efe5ad1fafe6e22f4a59146859a96a385ed1
2014-09-11 12:57:57 -07:00
Nancy Chen
354b2bd0fe Make changes to Connection in Telecomm API (1/4)
* onPhoneAccountClicked removed
* onSetAudioState -> onAudioStateChanged
* onSetState -> onStateChanged

Bug: 17329632
Change-Id: Icbba67439317bf1d21f758d58da7c83c4373efa6
2014-09-11 11:25:03 -07:00
Tyler Gunn
a1ed7d1094 Allowing enable/disable of phone accounts. (1/3)
- added "hasCapabilities" method on PhoneAccount.
- added CAPABILITY_PLACE_EMERGENCY_CALLS.
- added isEnabled method builder constructor to initialize from an
existing PhoneAccount.

Bug: 17306514
Bug: 17408536

Change-Id: I57de508b4adcf207f3b29cab449bfc634db80153
2014-09-11 17:13:51 +00:00
Nancy Chen
4823aecef3 Merge "API changes in GatewayInfo, Response, and PropertyPresentation (1/4)" into lmp-dev 2014-09-11 17:06:28 +00:00
Nancy Chen
23a7a394f5 Merge "Add docs to Conference object." into lmp-dev 2014-09-10 21:33:02 +00:00
Sailesh Nepal
fab395e9b9 Merge "Set remote connection state after setting handle" into lmp-dev 2014-09-10 19:45:04 +00:00
Sailesh Nepal
70638f1f36 Set remote connection state after setting handle
This CL sets the remote connection state after setting the
handle. This makes it easier to identify the connection
for things like ring deduping.

Bug: 17448801
Change-Id: Id08ab0bc6a257384842250ced19cd297a58c0b87
2014-09-09 21:49:14 -07:00
Junda Liu
13e28bb938 Add ForSubscriber suffix to APIs w/ subId argument.
Bug: b/17255752
Change-Id: I142d8961aa4c1fa074833f70c404c955caea0870
2014-09-09 17:50:09 -07:00
Nancy Chen
56fc25deec Add docs to Conference object.
All public methods now have docs.

Bug: 17329632
Change-Id: I0a0e87bd3d78bda85524853882f9fe8a4d18401c
2014-09-09 16:14:16 -07:00
Nancy Chen
9d568c01db API changes in GatewayInfo, Response, and PropertyPresentation (1/4)
* GatewayInfo: handle -> address, becomes SystemApi
* Response: hidden
* PropertyPresentation: class goes away, constants move to
  TelecommManager

Bug: 17329632

Change-Id: I6577ed95ed1535aaf66dfa1853eee85ec6c506d2
2014-09-08 17:57:47 -07:00
Ihab Awad
a64627c2d3 Enable (@hidden) video connection support for RemoteConnections
Bug: 16958934

Change-Id: I2c618743a689303f1bec190da53a1ec42d759370
2014-09-08 15:02:04 -07:00
Andrew Lee
3085a6c739 Rename methods/variables on PhoneAccount for API cleanup.
+ Rename from Handle to Address.
+ Rename from SubscriptionNumber to SubscriptionAddress.
+ Store the subscription address as a Uri.

Bug: 17390175
Bug: 17329632
Change-Id: I67514d89f0e7c81f74bef352df7a55cc422d1c71
2014-09-08 12:00:05 -07:00
Nancy Chen
6faad7e5b6 Merge "Make changes to Telecomm API per review guidelines." into lmp-dev 2014-09-08 17:38:58 +00:00
Nancy Chen
ea38cca149 Make changes to Telecomm API per review guidelines.
Make changes to Telecomm API per review guidelines in bug:
* Rename componentName to packageName and getComponentName to
  getPackageName in StatusHints
* Hide "ROUTE_ALL" and fix misspelling in AudioState
* Change getHandle to getAddress and remove getHandlePresentation in
  ConnectionRequest

Bug: 17329632

Change-Id: I8b3666cc22d24f470c940825c77a7b4d0701dc16
2014-09-05 20:33:05 -07:00
Santos Cordon
a48680427e Updating APIs for CDMA conference call support.
Bug:17316859
Change-Id: Ib80c4dcf99c8599c011496756c363c3e6147c20a
2014-09-05 16:13:19 -07:00
Nancy Chen
1d834f51df Rename listener to callback for ConferenceManager and rename strings 1/4
Updates for items from API review. See bug for details.

Bug: 17390175
Change-Id: I716a12b763766a385b08f8731d9533589639f467
2014-09-05 13:59:11 -07:00
Evan Charlton
6d8604ff22 Add a constant for CHANGE_PHONE_ACCOUNTS action
To make life easier for developers, pull the CHANGE_PHONE_ACCOUNTS
intent action out to a constant.

Bug: 17383844
Change-Id: I6989324c8d01930cd2e2be5d7d0defea860fc718
2014-09-05 16:12:20 +00:00
Evan Charlton
235c159633 Merge "Add a way to fetch the current connection manager" into lmp-dev 2014-09-05 15:41:24 +00:00
Andrew Lee
8d223eb3f9 Merge "Tweak methods for get/set DefaultOutgoing phone account." into lmp-dev 2014-09-04 23:34:41 +00:00
Evan Charlton
eb0a8d5621 Add a way to fetch the current connection manager
Apps should have this API so they know if they're the default or not,
so that they can determine whether to send the user to the settings
page in order to enable the app.

Bug: 17383883
Change-Id: I4e75ad94398d7cdc01dbf97bd684c839d897d8e5
2014-09-04 14:41:03 -07:00
Yorke Lee
b501eb7ae2 Merge "Turn off FORCE_LOGGING in Telecomm" into lmp-dev 2014-09-04 18:55:30 +00:00
Yorke Lee
f3dba2f77d Turn off FORCE_LOGGING in Telecomm
Bug: 17329799
Change-Id: Ic93cfaee62f83b457da3982237170e299c63cf5d
2014-09-04 11:33:38 -07:00
Andrew Lee
d4abbfbcc1 Tweak methods for get/set DefaultOutgoing phone account.
+ Rename setDefaultOutgoing...() to setUserSelected...().
+ Add method for getting the UserSelected outgoing account.

Bug: 17179743
Change-Id: I7ae24601ed670d3571acb7ef4f7ffd114d403a99
2014-09-03 15:48:56 -07:00