204 Commits

Author SHA1 Message Date
Andrew Lee
1418576521 Move VideoCallProvider into ConnectionService.
Bug: 16494880
Change-Id: I0778197d06fcd219db4a1e1fa065e69026254a99
2014-07-28 10:41:37 -07:00
Evan Charlton
17a3814ac6 Merge "Make creating the Connection synchronous" into lmp-dev 2014-07-24 15:36:21 +00:00
Evan Charlton
bf11f98deb Make creating the Connection synchronous
Get rid of CreateConnectionResponse and have the ConnectionService
return the built connection instead.

Change-Id: Ibbf896e5b188b98eb386d6624d3a5d5cacf49922
2014-07-25 11:07:50 -07:00
Andrew Lee
50aca23bd7 Add VideoCall and VideoCall.Listener as an inner classes of Call.
Bug: 16494880
Bug: 16495203
Change-Id: Ife3b6723374ea5fbbff4927c4f9168d075be21e1
2014-07-25 08:58:10 -07:00
Tyler Gunn
6c11189beb Adding missing break statement in VideoCallProvider.
Related to cl/510948

Bug: 16494880
Bug: 16495203
Change-Id: I4de0dccb886efbd119bd75b1285fdc84210c94fb
2014-07-25 13:04:31 -07:00
Nancy Chen
6080118beb Hide multiple-account information if there is only a single account
Adding an API method to telecomm to determine whether there is a single
account.

Bug: 16483795
Change-Id: If30d3a53458b4c784995f3f9e471c8163a8175a4
2014-07-23 16:41:10 -07:00
Santos Cordon
541a06e777 Merge "Change display Strings to CharSequence (1/3)" into lmp-dev 2014-07-22 22:02:55 +00:00
Andrew Lee
8a57efb7eb Don't throw RemoteException in public RemoteCallVideoClient APIs.
- Hide constructor.
- No longer implements IBinder.DeathRecipient.
- Catch RemoteExceptions instead of throwing RemoteExceptions.

Change-Id: Iaa049cab9e24120d3ea732e1ede78cc6fcd0ad71
2014-07-22 15:47:56 -07:00
Andrew Lee
1995a6b58b Revert "Don't throw RemoteException in public RemoteCallVideoClient APIs."
This reverts commit 080b1f58eb877e1ac375768c6f951cc61a3cdbae.

Change-Id: I0dc963b3f4efe1479a7a94b8d851b89d15480d17
2014-07-22 22:42:10 +00:00
Andrew Lee
a93e06bd64 Don't throw RemoteException in public RemoteCallVideoClient APIs.
- Hide constructor.
- No longer implements IBinder.DeathRecipient.
- Catch RemoteExceptions instead of throwing RemoteExceptions.

Change-Id: Id666818b868c61f17b0701e4590d4e36f12c7b01
2014-07-22 12:09:38 -07:00
Santos Cordon
146a3e3665 Change display Strings to CharSequence (1/3)
Bug: 16416927
Change-Id: Id8b6e5029a8a1f61bbbf71661abe4d487c01002a
2014-07-22 03:29:34 +00:00
Yorke Lee
3818a89220 Expose call settings as public API (1/3)
Other settings activities like wifi settings, mobile network settings
etc are all accessible by third party apps via public intents, so
make CallFeaturesSettings similarly available.
Bug: 16298644
Change-Id: Ia615797e20f396a38fe382f3a2d54ec41c5249ef
2014-07-21 16:10:08 -07:00
Andrew Lee
faa0f30a58 Merge "Add video call profile constructor which takes video state only." into lmp-dev 2014-07-19 22:40:06 +00:00
Santos Cordon
e8dc4bef00 Sent initial data to telecomm on connection creation. (1/3)
Telecomm was not sending the initial state for new connections forcing
the connection services to postpone when they set data on the connection
which resulted in hacky code.  This CL makes use of a
ParcelableConnection to send the intial connection data.

Change-Id: If571414aba19fa1bb282e30632431962b8366cf4
2014-07-21 19:29:39 +00:00
Andrew Lee
055e5a227b Add video call profile constructor which takes video state only.
Bug: 16014280
Change-Id: I218256ae1e20783084412758cf5a44f7f5dec52e
2014-07-21 12:20:56 -07:00
Andrew Lee
054c6d965f Catch RemoteException when setting the camera or zoom.
Bug: 16014280
Change-Id: I7542a0f294929fac589260ab596730d89948c89e
2014-07-21 12:03:16 -07:00
Santos Cordon
d1c344e412 Revert "Change display Strings to CharSequence (1/2)"
This reverts commit b5e0084414258ff294e7d94bcf9f8492f8ab2d25.

Change-Id: I095483414f5e0076c0967b6f1955a0fe71f2b8d9
2014-07-21 18:43:35 +00:00
Santos Cordon
9cc383353e Change display Strings to CharSequence (1/2)
Bug: 16416927
Change-Id: I81cd3572f3931cd97611621a1db12bea165bda56
2014-07-21 18:05:52 +00:00
Santos Cordon
f29511043e Change telecomm APIs from protected to public (1/3)
Bug: 16416927
Change-Id: I859c80a120fa59bba12a5c6bfca17fa57613a6aa
2014-07-21 06:19:35 +00:00
Santos Cordon
5c6fa95e37 Move ACTION_CONNECTION_SERVICE into ConnectionService. (1/3)
Bug: 16416927
Change-Id: If2d1c19134d2245677f7e0b3d94b118d9b50e751
2014-07-21 01:43:30 +00:00
Evan Charlton
a37cb8b6e3 Merge "@hide CAPABILITY_CALL_PROVIDER" into lmp-dev 2014-07-18 22:16:50 +00:00
Evan Charlton
7800fb7518 @hide CAPABILITY_CALL_PROVIDER
Until this API is fleshed out, leave ourselves room to tweak it.

Change-Id: Iddedb629d6fa02a56cd2041686dbe54ea5e4793b
2014-07-20 18:18:23 -07:00
Santos Cordon
88b771d8cd Rename InCallCall to ParcelableCall (1/2)
Bug: 16416927
Change-Id: Iae97d83ce74b4395d6877cc167d7e5057dac201b
2014-07-21 01:15:32 +00:00
Evan Charlton
2c4b812a29 Merge "Rename setDestroy() to destroy()" into lmp-dev 2014-07-17 21:15:46 +00:00
Evan Charlton
36a713431c Rename setDestroy() to destroy()
Change-Id: I6bb46e679f55547b902d5850ab450e5d3818fa63
2014-07-20 15:20:29 -07:00
Santos Cordon
96efb488af Change incoming call intent to a TelecommManager method. (1/3)
Also moves a few constants from TelecommConstants to TelecommManager.
Bug:16416927

Change-Id: I8e74feb228523ed1c186b2f06784d04cb9141f86
2014-07-20 17:41:08 -07:00
Evan Charlton
8c8a062f52 Rename PhoneAccountMetadata to PhoneAccount
Change-Id: I4597b14110c1cee7f637ec125b839852ef0f34c4
2014-07-20 15:12:16 -07:00
Evan Charlton
6eb262c351 Rename PhoneAccount to PhoneAccountHandle
Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
2014-07-20 10:34:59 -07:00
Evan Charlton
1019719e46 Migrate TelecommConstants to TelecommManager
Change-Id: Icdd7637ba1ae27ce7d1f13714257b4a946961037
2014-07-19 15:33:59 -07:00
Evan Charlton
222db525ed Add a notion of the subscription number
Expose the actual subscription number so that it can be exposed when
necessary (such as during emergency calls, when it doesn't match the
line 1 number).

Bug: 13333595
Change-Id: I0d3b2cfcea08aeba760c392c116303f21beb70d3
2014-07-19 21:22:31 +00:00
Santos Cordon
2f42b11d40 InCallService to inherit directly from Service. (1/2)
Bug: 16416927
Change-Id: I31584556c79e49132c628a0f8f25c372eb4e9b3c
2014-07-19 13:21:35 -07:00
Santos Cordon
6b45642f36 Fixing ADD_CALL (1/3)
Bug: 16241726
Change-Id: Ie1dd72a79c2430b10b0239dbdda5508edbc8eb26
2014-07-19 00:23:21 +00:00
Ihab Awad
7522bbd652 Fix incomplete move of flags from PhoneAccount to PhoneAccountMetadata
Change-Id: I91c0d6be76030117ed3cf6d6d5f7514b4d4802ad
2014-07-18 16:03:22 -07:00
Sailesh Nepal
2ab88cc313 Add Connection.startActivityFromInCall
This CL adds a new public API to allow Connections
to start an activity on top of the in-call UI.

The Connection passes a PendingIntent to Telecomm which
then forwards it on to InCallUI. The Connection can cancel
the operation by calling PendingIntent.cancel().

This allows services like SIP and Hangouts to show dialogs
to the user when making a call.

Change-Id: I65119a89c925a93467d1b27304ffec9b088b172f
2014-07-18 14:59:30 -07:00
Sailesh Nepal
480315939d Use main thread for RemoteConnection callbacks
Currently call backs from RemoteConnection can happen
on non-main threads. This CL updates the code to always
use the main thread.

Change-Id: I134c0fbdba1f916f49676c0c6696ac63bcb7c513
2014-07-18 14:21:23 -07:00
Andrew Lee
ba051aa6f8 Merge "Add comments for RemoteCallVideoClient and RemoteCallVideoProvider." into lmp-dev 2014-07-17 17:59:02 +00:00
Andrew Lee
dd1b0e7874 Add comments for RemoteCallVideoClient and RemoteCallVideoProvider.
Change-Id: I521be8fd0e898c78864dab62593d26806eb11fec
2014-07-18 12:35:02 -07:00
Ihab Awad
94cf4bff13 Wire up multi-SIM experience (1/4)
Change-Id: Ib63843267f06b329a675e7ea86167b2cbb554f1b
2014-07-18 10:02:25 -07:00
Tyler Gunn
aa07df84f2 Wiring video state through from Connection
Bug: 16285417
Bug: 16013178
Change-Id: Ia48959248ca22f4569b0ffd01a1716470aa0a711
2014-07-18 01:30:34 +00:00
Andrew Lee
e7a7ec6db5 Merge "Pass through video state when answering a call." into lmp-dev 2014-07-17 02:29:54 +00:00
Andrew Lee
8da4c3c11f Pass through video state when answering a call.
Bug: 16013878
Bug: 16015750
Change-Id: Ia9ba6e5f78fcb64e1089db99f5ce11d0ef858ac9
2014-07-17 12:56:49 -07:00
Evan Charlton
5b49adea48 Plumb through StatusHints change notifications
When StatusHints are modified, inform listeners. Also expose two
constants for passing optional strings from the CallService to
the in-call UI.

Bug: 13334257
Bug: 13334252

Change-Id: If7fde7c1ca6940cec8b7232469a22900c36dbb17
2014-07-17 12:53:39 -07:00
Nancy Chen
5da0fd5e76 API changes to enable account selection for a call
If an account default is not set, the incall ui will display a dialog to
allow the user to select an account for that particular call.

Bug: 16243703

Change-Id: I8faf2f2ce0b2669a141562832f23e8f3ce88f094
2014-07-17 10:19:20 -07:00
Santos Cordon
98b270309a Add toString & equals helper methods to PhoneAccount.java
Bug: 16292368
Change-Id: I5dd2bcd2d65e856107ac2f80958e8b408abcec0b
2014-07-17 01:21:23 +00:00
Sailesh Nepal
001bbbb239 TTY: frameworks/base changes
This CL makes the following changes:
  1. New public APIs:
    - TelecommManager.getCurrentTtyMode: This is used to
      get current TTY mode. It's used by Telephony to set
      the phone state before calls are created (which is why
      it can't be a Conneciton API).
    - TelecommConstants.TTY_MODE_*: These are constants
      copied from Phone.java
    - TelecommConstants.ACTION_CURRENT_TTY_MODE_CHANGED: This
      action is fired when the current TTY mode changes.
      Apps can listen to this before and during a call.
      The old version of this was in TtyIntent.java which
      I deleted.

  2. New private API
    - TelecommManager.isTtySupported: This is used by
      Telephony to hide the TTY settings on devices
      that don't support TTY

  3. Various updates to use the constants renamed in this CL

Change-Id: I652b095af30cc2732a06829dc23492e5355660da
2014-07-16 21:14:58 +00:00
Andrew Lee
7a34138586 Adding getVideoState method to Telecomm Call's details.
Bug: 16013878
Change-Id: I07b219c0952543b7c27694ae06f0eb468a17f1ee
2014-07-16 10:14:54 -07:00
Andrew Lee
85f5d4263d Add VideoState member variable to InCallCall.
Bug: 16015750
Change-Id: Idee72075e992a94423a3ca7882959fbde03c4434
2014-07-15 10:33:22 -07:00
Sailesh Nepal
c5b01573a0 Add support for remote incoming calls
This CL allows a incoming call to be handled through the
remote connection API.

All calls, incoming and outgoing, are now routed through
ConnectionService.createConnection.

Change-Id: I5232d062ad3b559f4fe7c8224e7234b2c6bf8431
2014-07-14 20:49:03 -07:00
Sailesh Nepal
77ec2ceac6 Merge "Remove CallServiceProvider and CallServiceDescriptor do not merge" into lmp-dev 2014-07-14 18:38:02 +00:00
Sailesh Nepal
864a2b291b Remove CallServiceProvider and CallServiceDescriptor do not merge
This CL removes CallServiceProvider. Instead of using a
provider we'll look up ConnectionServices using the package
manager instead.

This CL also removes CallServiceDescriptor. For incoming calls,
connection services will now pass a PhoneAccount instead
of a call descriptor. For outgoing calls we already use
PhoneAccounts for everything.

Change-Id: I2e40c5c64c0d242dc41b680943d7e9209142db5b
(cherry picked from commit 7ade570fdc1ae719abca54867d97dc7f0130d664)
2014-07-14 23:23:17 +00:00