173 Commits

Author SHA1 Message Date
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
Santos Cordon
a5a2cf419d Merge "Implement multi-SIM capabilities (1/6) [DO NOT MERGE]" into lmp-dev 2014-07-14 18:38:02 +00:00
Ihab Awad
e63fadb109 Introduce new In-Call Service interface
Change-Id: I2dd8494f6e397c49180b19d1347c62edcae9b4e7
(cherry picked from commit e225fecca486858e8195eaf09d172a70fe7d632b)
2014-07-14 21:49:25 +00:00
Ihab Awad
807fe0a19a Implement multi-SIM capabilities (1/6) [DO NOT MERGE]
- Split PhoneAccount into PhoneAccount & PhoneAccountMetadata
- Move PhoneAccount methods from TelephonyManager to TelecommManager

Bug:16292368
Change-Id: Ib440368d6bd0572b63c942360450fde5c27d84b9
(cherry picked from commit 936b3552b4a3569be9904c826b95b632886fb45d)
2014-07-14 18:19:27 +00:00
Evan Charlton
3f9558da10 Add Intent to configure ConnectionService
Change-Id: I187cb48f5b763fadeb5346fca34b0dc4ae7e4d43
2014-07-14 16:13:44 +00:00
Sailesh Nepal
612038642f Misc Telecomm API changes
The CL contains the following Telecomm API changes:
  - move CallFeatures into CallCapabilities
  - add Connection.setHandle(URI, CallPropertyPresentation)
  - add Connection.setCallerDisplayName(String,
    CallPropertyPresentation)
  - add Connection.swapWithBackground: this is used to swap a
    CDMA call with its background call
  - add StatusHints.getExtras: this is used to display
    additional status info such as long distance rates
This CL also includes InCallServcie, and RemoteConnection
plumbing for the above.

Change-Id: Iaffe0b84cea6003f2a9b9d8b30676743d2b236d4
2014-07-12 03:01:13 +00:00
Sailesh Nepal
4dd9df58a6 Fix exception in ConnectionServiceAdapter.binderDied
Bug: 16215975

Change-Id: I49e7c77c01f306995bb743523436c7620c48a568
2014-07-11 13:35:38 +00:00
Tyler Gunn
2db72ad45b Adding call capabilities to indicate whether call supports VT.
Bug: 16213105
Change-Id: Icb05d3f0f6bd90b2c45bdfb7b199f38aaecc16ca
2014-07-10 21:52:20 +00:00
Andrew Lee
a27a1938ab Set the call video provider again after listeners are added.
Bug: 16043064
Change-Id: I97fecd71fbf2f27721e80fd6ba58c408884472e7
2014-07-10 13:25:28 -07:00
Sailesh Nepal
1a7061ba95 Add Connection.setCallCapabilities
This will be used to enable things like hold and
conferencing.

Change-Id: I90238eeefbcbfaa044881d80833b62e4474821d6
2014-07-09 23:20:41 -07:00
Santos Cordon
0bae09fdde Move showCallScreen & isInAPhoneCall to PhoneManager.
Change-Id: I852da78ae80eba120932fb7acb1e5c3db2a8f18a
2014-07-09 18:53:41 +00:00
Sailesh Nepal
e7ef59a77d Add Connection.setStatusHints
This CL allows a connection to specify a status hint. The hint
contains a label and icon that can be displayed in the InCallUI.
For example, wifi calling can set a wifi icon and ssid.

Change-Id: I125628b74784d2303b9a429038a9f7ee604f241e
2014-07-08 21:54:03 -07:00
Sailesh Nepal
24ae29623f Merge "Add Connection.setAudioModeIsVoip" 2014-07-08 21:53:37 +00:00
Sailesh Nepal
33aaae4a07 Add Connection.setAudioModeIsVoip
This API will be used by Telecomm to set the call's audio mode.

Change-Id: I29028e614c598d1f2501c4dfdcdbfc929b09f925
2014-07-09 00:19:59 +00:00
Tyler Gunn
12013ad193 Adding "start call with video" extra for ACTION_CALL intent.
- Added extra.
- Updated Call, CallInfo, ConnectionRequest to pass extra.

Bug: 16014224
Change-Id: I8b390f4d416c71bb6139d299b746fc06d5f8e6a5
2014-07-08 14:04:58 -07:00
Ihab Awad
dcaa5d6d09 Fix short description and name values for PhoneAccount.
Change-Id: If8effee1d1dc0b40cf59dd69fb3141e9d3a202a6
2014-07-08 19:16:02 -07:00
Sailesh Nepal
b99e0e20ad Remove unused ConnectionRequest constructor
Change-Id: If1e19c8632f957155018e01a6aa3181cd9125322
2014-07-08 17:32:32 +00:00
Sailesh Nepal
2a46b90222 Move ICallService.aidl to IConnectionService.aidl
Change-Id: I5a082e50dafea0104174cb97d3ae8af168944fc3
2014-07-08 04:15:55 +00:00
Sailesh Nepal
2bed9563ed Remove handoff APIs
This CL removes the old handoff APIs and renames
handoffCall() to phoneAccountClicked().

Change-Id: Iab1595faaadcdfe428d97891d314babea21e9633
2014-07-02 21:33:21 -07:00
Santos Cordon
3c4ff9effc Move cancelMissedCallsNotification to PhoneManager.
Change-Id: I2ce26e77ef1f0acc11552bf28efc039391e09766
2014-07-02 23:39:30 +00:00
Tyler Gunn
d0154927a8 Adding "start call with video" extra for ACTION_CALL intent.
Bug: 16014224
Change-Id: I6240b50383de60fbe9038b247856227c6c278b85
2014-07-02 23:31:46 +00:00
Ihab Awad
ad4cc9ba38 Merge "Rename Telecomm "Subscription" to "Account" (1/7)" 2014-07-02 18:22:50 +00:00
Ihab Awad
9c3f18846a Rename Telecomm "Subscription" to "Account" (1/7)
Change-Id: Ieb29f6ba9dadacb2c7e26969a47141e11a339a40

Conflicts:
	telecomm/java/android/telecomm/InCallCall.java
2014-07-02 12:27:13 -07:00
Santos Cordon
f90186d93e Add PhoneManager to expose functionality to phone/dialer apps.
Eventually, this will house the TelecommManager methods.

Change-Id: Id8b08d88a06a7b4e90a4a7f702ba56526e108ca5
2014-07-02 18:01:56 +00:00
Sailesh Nepal
ade3f25a48 Make RemoteConnection.getState public
Change-Id: Iead485345d01d47e346da014fdb9979def25c372
2014-07-02 00:33:45 +00:00
Andrew Lee
b8f4db89e6 Use proper name for method for setting paused image.
Change-Id: Ifc3ada4d3b88ae325c2e4edc0c0bdd1b9f836995
2014-07-01 17:00:30 -07:00
Tyler Gunn
9d9f703299 Merge "API support for reporting of changes to call features. (eg VoLTE, VoWIFI, etc)" 2014-07-01 19:22:38 +00:00
Tyler Gunn
8d83fa9bbd API support for reporting of changes to call features.
(eg VoLTE, VoWIFI, etc)

Bug: 15987281
Change-Id: Iae351ca2fe7b36c067106695f611cca6b3230556
2014-07-01 19:22:22 +00:00
Andrew Lee
a5736291bd Add function set CallVideoClient on the CallVideoProvider.
- Added implementation of RemoteCallVideoClient.
- Filled out the proxy methods on RemoteCallVideoProvider.
- Renamed methods on CallVideoClient/CallVideoProvider. Per Santos's
advice, this is to distinguish between the methods handling remote
communication, and the actual implementation of those methods.

Bug: 15893156
Change-Id: I5f433db1faa820dc96913091ce09938ddf40ffdd
2014-07-01 13:28:56 -07:00
Santos Cordon
e19a4fe32f Merge "Move call-related SystemAPIs to TelecommManager. (1/3)" 2014-07-01 14:48:56 +00:00
Santos Cordon
9eb45934c5 Move call-related SystemAPIs to TelecommManager. (1/3)
Bug: 15672803
Change-Id: I46e448fe93a9c5b4ae013e8b2fd6f0ce89b94e69
2014-06-30 16:30:10 -07:00
Sailesh Nepal
091768c302 More fixes for Connection and RemoteConnection
Various clean ups and fixes:
  - allow remote connection to have audio set
  - allow remote connection to have abort
  - move onPostDialWait from ConnectionService to Connection
  - hide APIs we don't need

Change-Id: Ib2d0b40f2e9e7a6b5fbf5d6db48b509b7db3c906
2014-06-30 15:23:53 -07:00