230 Commits

Author SHA1 Message Date
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
Santos Cordon
5f66e8819f Adding ACTION_INCOMING_CALL intents to new TelecommConstants.java class.
Change-Id: I468156fa9499ff904678b5ed57f4fa3cec2f7229
2014-02-20 15:14:33 -08:00
Santos Cordon
f6d868bd54 Adds methods for a call service respond to a call().
Change-Id: Ib597037b8fafcfa54f3bd1ee21b91285ea595fd4
2014-02-20 15:14:32 -08:00
Santos Cordon
713f1d7f21 Change call state to enum and add it to CallInfo.
Change-Id: Ic88096aa6680245913e4d50da1ff7797813f8abc
2014-02-20 15:14:13 -08:00
Santos Cordon
3d3735e3d3 Adding call state constants to Telecomm.
Change-Id: I40675477a96c9a74a17782870c5824702466e6cc
2014-02-20 15:12:55 -08:00
Santos Cordon
805afaaf23 CallInfo usage everywhere; selector using call-service Id strings.
Change-Id: Ide81dc869d6e025a83685b7247ee4179ec7097ab
2014-02-20 15:12:54 -08:00
Santos Cordon
9cf80ed2b4 Add @hide to InCall APIs (fixes build break).
Change-Id: I2911d1e96466e26891c5a6f1edb2440114eb3b4e
2014-02-20 15:12:54 -08:00
Santos Cordon
8f3fd30a60 Add interfaces between Telecomm and InCall.
Change-Id: Ie0e8c5e6626e1db33eb1142b302bf415785cfe47
2014-02-20 15:12:53 -08:00
Santos Cordon
658c0cf6c3 Update the Telecomm APIs to use CallInfo.
Replace uses of callId and/or handle with a single, extensible CallInfo
object.

Change-Id: I4b7b86ccb7153e5dc49f4d3fa31f485fd06a960a
2014-02-20 15:12:53 -08:00
Santos Cordon
8986ef4601 Updates CallService API.
Adds additional parameters and a response method for
isCompatibleWith on ICallServiceAdapter.

Adds connectionStartTime to CallInfo.

Change-Id: I27a8d14c5c63d3f6a70a290ffb39d9f623d40a60
2014-02-20 15:12:52 -08:00
Ben Gilad
f042a3f067 Following up on our discussion offline to introduce response objects for isSwitchable.
Change-Id: Ic1385d9b67ed0a859128845574d48ad90d6152a2
2014-02-20 15:12:51 -08:00
Ben Gilad
2e412075ba Remove unused code/comments and adding missing tags etc.
Change-Id: I6ec7eda46a2b61bee26b4edca1bede5c00177712
2014-02-20 15:12:51 -08:00
Ben Gilad
0f7dac1741 Adding the CallServiceSelector skeleton (AIDL) files.
Change-Id: I55ca3bed6e1b964602a9291bd388a10c99729da7
2014-02-20 15:12:50 -08:00
Santos Cordon
73e64fe81a clean up javadoc.
Change-Id: I64b20065fffbcd5a53ab9d2b5d424e3cea2db3b3
2014-02-20 15:12:50 -08:00
Santos Cordon
4939ccf786 Remove CallServiceProviderAdapter and replace with CallServiceLookupResponse.
Change-Id: I55a574784162e3cc4a88b2889f1d14a07116f937
2014-02-20 15:12:49 -08:00
Santos Cordon
6fee2ea8f8 Revert "Remove CallServiceProviderAdapter and replace with CallServiceLookupResponse."
This reverts commit 753fc58932e976086069bacb3e5252332960644b.

Change-Id: Ie17b4918fa404eb768c0f3ce5109d6cc8b2d1da8
2014-02-20 15:12:49 -08:00
Santos Cordon
6fbb1b73f8 Remove CallServiceProviderAdapter and replace with CallServiceLookupResponse.
Change-Id: I4d1c007bd46b804ecbb80163fc26de199cdbb2eb
2014-02-20 15:12:48 -08:00
Santos Cordon
6734a173f0 Add a default CallServiceProvider implementation.
Change-Id: Ib9afcaac2e971fc8cd9d1fdef2d6ae97cbb79757
2014-02-20 15:12:47 -08:00
Santos Cordon
3784133b95 Additional fixes to aidl files.
Change-Id: I24e5ae0ff65c3049d735cd4c6e1d79a0c406d92b
2014-02-20 15:12:47 -08:00
Santos Cordon
b3e51b7918 Fixing typos and a build break.
Change-Id: I74ac6da8a9943b3b2cc76a4fc75027b7717b1bb3
2014-02-20 15:12:46 -08:00
Ben Gilad
e57944dd55 Add the CallService base class and the necessary call-service-provider
AIDL interfaces.

Change-Id: Ic0aab1245d259f1148d403033647d795e07ab015
2014-02-20 15:12:45 -08:00
Ben Gilad
bb69b0c2d8 Adding the frameworks/base code from https://googleplex-android-review.git.corp.google.com/#/c/391028
Change-Id: I6fe7aae52a7ff52da1a1e009e8361810fcaddd1e
2014-02-20 15:12:44 -08:00
Ben Gilad
09538ebd04 Initial frameworks/base/telecomm check in.
Change-Id: Idd2bb597c4066f7f0c14da8fe277e969e52c0f00
2014-02-20 15:10:06 -08:00