83 Commits

Author SHA1 Message Date
Santos Cordon
1a79c70e2b Support conference calling. (1/4) [DO NOT MERGE]
Bug: 15006702
Change-Id: I2764ea242f783ba478c9eae86618dd33e9fc792a
2014-06-09 09:33:30 -07:00
Evan Charlton
e62a885ea6 Merge "Expose post-dial APIs" into lmp-preview-dev 2014-06-05 22:52:07 +00:00
Ihab Awad
fc91b7d448 DO NOT MERGE. Implement connection error dialogs (1/4)
Implement reporting of connection errors from ConnectionServices through
Telecomm to the InCallUI.

Bug: 15195720
Bug: 15117141
Change-Id: I0e1443f75a175a212fb19afde5a7eadef15d239d
2014-06-04 23:25:04 +00:00
Evan Charlton
6dea4aceba Expose post-dial APIs
Add APIs to expose post-dial DTMF functionality.

Bug: 13734588
Change-Id: I5cc06268590c3c424ea6daf216cb205b9c470dac
2014-06-04 15:10:57 -07:00
Santos Cordon
980acb9bd6 Add necessary APIs to support conference calling.
All APIs added as @hide to start.

Bug: 15326865
Change-Id: Iee5ce555696f48f57f925e4bd37209ace1355dfd
2014-06-01 14:17:21 -07:00
Ihab Awad
3da92d6df1 Merge "DO NOT MERGE. Allow ConnectionService to ask Telecomm for ringback" into lmp-preview-dev 2014-05-30 21:50:51 +00:00
Ihab Awad
f835897f9f DO NOT MERGE. Allow ConnectionService to ask Telecomm for ringback
Provides a pass-through from the ConnectionService API to Telecomm allowing
a ConnectionService to either play the ringbacks on its own, or ask Telecomm
to play the ringbacks on its behalf.

Bug: 15190301
Change-Id: Ib0f2ce9bf798ec0df0e6d33559174c82de059a94
2014-05-30 21:10:43 +00:00
Santos Cordon
3534ede572 Update showCallScreen to use Telecomm (1/6)
- Add API methods to InCallService and ITelecommService.
- Remove old methods from ITelephony.
- Route the TelephonyManager methods through ITelecommService instead of
  ITelephony.
- Update Lock screen to use TelephonyManager instead of ITelephony.

Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
2014-05-30 11:35:42 -07:00
Evan Charlton
89f858c874 Merge "@hide Telecomm APIs [DO NOT MERGE]" into lmp-preview-dev 2014-05-28 22:14:07 +00:00
Evan Charlton
b4eb0c0863 @hide Telecomm APIs [DO NOT MERGE]
Change-Id: Id2d8d21f5de79bd5ffa468a82b29b77daf07e120
2014-05-28 13:22:05 -07:00
Santos Cordon
3afed57a7d Adding ITelecommService definition for Telecomm.
Until telecomm code moves into a system service, we need a way for
other apps to call into it for call-related functionality.

Initial implementation only has silenceRinger.
This is to be implemented by the telecomm code and used by
TelephonyManager (until we have a TelecommManager).

Change-Id: I9180797451dcb2e9029b20bed47f5d5cb8cddb9f
(cherry picked from commit b895606acf18dbb050c9a32106b3c9c2e5111829)
2014-05-28 03:36:36 +00:00
Ihab Awad
42b30e1b83 DO NOT MERGE. Fix invalid format specifier in log message
Bug: 15154713
Change-Id: Ia1f45eb568b31f02a7443def0dc9ef32a21e7f02
(cherry picked from commit 8523607b6e4927d034e47681174843f22308e34a)
2014-05-22 20:36:16 +00:00
Ihab Awad
60ac30bb8a Add logging utilities to Telecomm classes
Add logging utility class from packages/services/Telecomm to the Telecomm
classes in the framework.

Change-Id: I54a9edc4daa24ffdeb15b08afc5ad8a238d04291
2014-05-21 12:06:00 -07:00
Ihab Awad
542e0ea8bf Publish new Telecomm API for Connection Services
Creates a new API for Connection Services providing phone connections to
the Android system. Supersedes CallService API, which will be gradually
replaced by this one.

Change-Id: Ie4b06c1b0843a777c5b8ee9c5dd12b9d9f990980
2014-05-18 18:58:28 -07:00
Sailesh Nepal
03c527aeb9 Merge "Add toString to CallServiceDescriptor" into master-nova 2014-04-15 18:41:37 +00:00
Sailesh Nepal
5d9cb82b9b Add toString to CallServiceDescriptor
Change-Id: I847dbd8cf965516ad45f91d2db5df19469e2a2f8
2014-04-15 11:37:01 -07:00
Evan Charlton
3c7fbb2214 Expose a method to cancel an outgoing call
Expose a method which lets CallServiceSelectors abort an outgoing call.

Bug: 13980764
Change-Id: Id0c608729cb5de3e2a37b2538f1f61ed94bcb31b
2014-04-11 16:02:15 -07:00
Evan Charlton
e9aa1aaa25 Expose CallState.NEW
Expose CallState.NEW so that we have a state before DIALING. Immediately
transitioning calls to DIALING is wrong, because that shouldn't happen
until the CallService is actually dialing.

Bug: 13902624

Change-Id: Id5ee0d4d050deb2f3038f3de8fdd265caa75f7b2
2014-04-10 09:27:07 -07:00
Sailesh Nepal
c1a48ef7c3 Fix SDK build
Change-Id: I325f5f5b3fae7c8a27640106e8f3298c4e18388d
2014-04-08 14:32:20 -07:00
Sailesh Nepal
6043793d3e Add InCallCall class to communicate with InCallService
Change-Id: I3916e33e184f57bb6e58ed93a26b866d3ce0e7df
2014-04-07 22:10:27 -07:00
Evan Charlton
924748fa3f Add lifecycle methods to telecomm services
Have the base classes track the adapters and provide an override-able
hook (onAdapterAttached()) to notify when the adapter is set.

Change-Id: I58ca5c6970328861327699ec497fa21288bce7df
2014-04-04 09:26:01 -07:00
Sailesh Nepal
b632e5b122 Handoff: Add APIs to allow handoff between call services
This CL adds:
  - CallInfo.mExtra and CallInfo.mCurrentCallServiceDescriptor. These
    can be used by the selector to perform handoff.
  - InCallService.setHandoffEnabled to enform the in-call UI that handoff
    is allowed.
  - InCallAdapater.handoffCall to initiate handoff.

Bug: 13643568
Change-Id: I94c28b10c0e0a253450f14d31ecdc416d5b44ca4
2014-04-03 22:12:26 -07:00
Sailesh Nepal
a3d3acae57 Add disconnect cause and message extras
These extras will be sent out as a part of the
ACTION_PHONE_STATE_CHANGED broadcast.

Change-Id: I23fe43e7f3604471185ffb30be9ac553438b78f3
2014-04-02 14:38:34 -07:00
Ihab Awad
8111bc57a1 Fix build breakage due to Javadoc typo.
Change-Id: Ib93191adc1b25afe673f3a1834eaa22f4c6bc9d5
2014-04-02 13:30:23 -07:00
Sailesh Nepal
8d20561554 Add CallServiceSelectorAdapter
Previously the selector would communicate with Telecomm using
callbacks.

For handoff, it's easier to communicate using an adapter.

Bug: 13643568
Change-Id: Ida5859a3b5b15c9fa1c533f27a3e14fd0d7c36af
2014-04-01 20:15:04 -07:00
Sailesh Nepal
466a218511 Merge "Add CallCapabilities and CallNumberPresentation" into master-nova 2014-04-01 21:31:26 +00:00
Sailesh Nepal
f6e9b27f93 Add CallCapabilities and CallNumberPresentation
Bug: 13643568
Change-Id: I453a1b0db0edf31b26be64b4dcbabec58a4f96f5
2014-04-01 14:23:09 -07:00
Evan Charlton
fd2e620baf Fix the build, take #2
Missed one bad javadoc.

Change-Id: Ic70abce0404e966bc9caeabfbd5fd40d170af4de
2014-04-01 14:09:49 -07:00
Evan Charlton
8acdbb8b11 Fix the build
Fix some broken javadocs which are breaking the SDK build.

Change-Id: I9b432ad1e871a82391c12ddbbd34cb64a556b2fe
2014-04-01 13:50:07 -07:00
Ihab Awad
2f23664b4f DTMF dialing support in frameworks/base
Change-Id: I86695161fab9c4fbd4a021ba69cc61ec5e585adc
2014-03-31 20:07:44 -07:00
Santos Cordon
20e3f02c2d Add disconnect cause to setDisconnected.
Change-Id: I4ba9b8f47a942b82b7a3d4bed43c0ca945957592
2014-03-31 14:58:11 -07:00
Sailesh Nepal
1b469fecb0 Delete README file
Documentation is out of date. Also, frameworks/base doesn't seem to
have README files except for test directories.

Change-Id: I408ede48d592e6f640a040c7be97d272a1c15bd5
2014-03-25 21:12:23 -07:00
Sailesh Nepal
b84663ff34 Merge "Add audio mode APIs" into master-nova 2014-03-25 00:17:01 +00:00
Sailesh Nepal
4cff392a2b Add audio mode APIs
Change-Id: Ia7e78b52b6b30f99a9ba066dae558a105dbebd96
2014-03-23 18:20:53 -07:00
Yorke Lee
93fb1d00bc Add gateway support to frameworks/base/telecomm
Add parcelable GatewayInfo class used to store gateway info in
Call and CallInfo.

Add gateway-related string constants to TelecommConstants

Bug: 13477768
Change-Id: I35b2de2d66edeed6273f6cba5329ca0f26264db6
2014-03-21 18:36:26 -07:00
Sailesh Nepal
ba4cc4e083 Merge "frameworks/base: Use Uri for handle" into master-nova 2014-03-18 19:27:35 +00:00
Sailesh Nepal
cadc1c144b frameworks/base: Use Uri for handle
Change-Id: I7f3163da47159d68903ce45268429f5949203589
2014-03-17 22:48:39 -07:00
Yorke Lee
d885b5c9b3 Merge "Add hold support to frameworks/base/telecomm" into master-nova 2014-03-14 21:53:55 +00:00
Yorke Lee
81ccaaa25c Add hold support to frameworks/base/telecomm
Bug: 13169202

Change-Id: Ib01990c1f8654f95a4cfcca4a91f0ab143722d8e
2014-03-14 14:53:25 -07:00
Evan Charlton
9a4bf4a52d Fix the SDK build
Fix a bad {@link} tag which was breaking the SDK javadocs build.

Change-Id: Ib44fc5c21738fa65ef3cec72f8c0e8e8f4b938c2
2014-03-13 21:55:27 -07:00
Sailesh Nepal
0436d89f2f Fix SDK build due to missing import in TelecommConstants
Change-Id: Ieffc1cbfa4edb913125a0c29284d98351b12f9f4
2014-03-13 14:16:33 -07:00
Sailesh Nepal
592bbf0475 Merge "Add constant for Call Id extra" into master-nova 2014-03-13 18:57:47 +00:00
Sailesh Nepal
d6c9a7f0cf Fix build break due to links to private APIs
Change-Id: I22360bd93800e1d898becb9fee9312acf82b78c7
2014-03-11 20:44:22 -07:00
Sailesh Nepal
ab5d282dd6 Add wrappers around telecomm interfaces
This CL adds wrappers for:
  CallServiceLookupResponse
  CallServiceAdapter
  IInCallAdapter
  IInCallService

This CL also moves all the aidl files into
com.android.internal.telecomm.

Change-Id: I840f023bc545643e8bb719825e7bc78344ee46ee
2014-03-11 16:38:50 -07:00
Sailesh Nepal
e9d85a07aa Add constant for Call Id extra
The extra will be used to include the call ID on phone
state changes.

Change-Id: I9edd0b6e017f8414fa3e148fd4d57958e2072184
2014-03-10 19:12:37 -07:00
Ben Gilad
971e9a40a9 Fix broken build due to ag/428341.
Change-Id: I84945e8ce1b5c8b1be0785f71c7eae77699687fe
2014-03-06 14:52:42 -08:00
Ben Gilad
45b5cf0f6e Merge "Add the abort API to ICallService implementations." into master-nova 2014-03-06 21:51:23 +00:00
Ben Gilad
3fadaa9232 Add the abort API to ICallService implementations.
Change-Id: Ie9b996b4d23184034811ef5667403ff4e47ae2d9
2014-03-05 17:23:41 -08:00
Evan Charlton
74f6bf88eb Add optional data to incoming calls
When a CallService creates an incoming call, allow it to pass a Bundle
of arbitrary data along with the intent. This data will be returned to
the CallService via setIncomingCallId. This makes it easier for
CallServices to match up incoming calls with their IDs.

Change-Id: I52e7e1d0788ecd01aa427e76de7ccf4d9b75f1f0
2014-03-05 14:01:52 -08:00
Ben Gilad
6c874e3d78 Adding the aborted call state.
Change-Id: I26c1e2bc180a2be2d2374143546c666faeea2705
2014-03-04 16:01:22 -08:00