72 Commits

Author SHA1 Message Date
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
Santos Cordon
b340c331bc Adding API support for incoming calls.
Change-Id: I7b1530d13e5adac530c4f451aa2cd97f275f9cae
2014-02-24 16:02:59 -08:00
Evan Charlton
832ddb3fe6 Fix some javadocs
Fix some bad {@link ..} tags in the javadocs.

Change-Id: Id64b901218878e9996a390fee9eb72e4b5cd9d93
2014-02-21 14:08:44 -08:00
Santos Cordon
1fe964d11e Renaming intent to INCOMING_CALL.
Change-Id: I90ac30be5d8503f100deedf44f8d3bd18de3fa83
2014-02-21 12:41:33 -08:00
Evan Charlton
64a44a876b Update CallServiceSelector API
Move the consumer methods to the main thread and use response objects
to return the results back to the caller.

Change-Id: Ifc062cf49421079686d925406c823000232fa728
2014-02-20 17:09:10 -08:00
Ben Gilad
6adbaf70f3 Addressing the TODO to rename CallServiceInfo.
Also removing some unused imports etc.

Change-Id: I48176d5394aee0110f3b7a081a1a616b72b574b9
2014-02-20 17:09:04 -08:00
Santos Cordon
591ef664d8 Fix build.
Change-Id: I4633e4ab3753f0de328bbe0ef59e87dac1d58d54
2014-02-20 17:08:25 -08:00
Santos Cordon
bd63f90a78 New call service methods for incoming calls.
Adds a method that allows Telecomm to request confirmation of an
incoming call and another method on the adapter through which the
confirmation is sent.

Change-Id: Ib5d0a71f40ea3d09a42f31c479c22aed1dbc5ce8
2014-02-20 17:07:54 -08:00
Evan Charlton
c3010b39c9 Add a CallServiceSelector base implementation
Add the base class for implementing CallServiceSelectors.

Change-Id: I292d962f1b73d0966af0c484ebddc724f8e6c925
2014-02-20 17:07:41 -08:00
Ben Gilad
35699a295a Following up on the TODO to rename newIncomingCall, see ag/417776 for the corresponding services/telecomm change.
Change-Id: I8296856c2b8d89aa7962c9ccd231463b9b5e8079
2014-02-20 15:23:08 -08:00
Evan Charlton
9a23a55df2 Add CallServiceInfo descriptor object
CallServiceInfo allows CallServiceProviders to describe the
CallServices' requirements (e.g. network requirements) and info
(e.g. ComponentName).

Change-Id: Iff694b998d18e7ce424ec976e9134e3c70f8b6f4
2014-02-20 15:14:35 -08:00
Sailesh Nepal
222f1290ba Make telecomm APIs public
Change-Id: Ie7243be369e55df9696b544d8b286c978ceb4b39
2014-02-20 15:14:34 -08:00