165 Commits

Author SHA1 Message Date
Andrew Lee
f759b5bb0b Add wrapper to provide method calls for binder to InCallUI.
Bug: 15893156
Change-Id: I6b12c0e8c915e184bb469b5934865242f9fde00d
2014-06-27 14:11:51 -07:00
Sailesh Nepal
400cc48512 Clean up Connection API
Made all the on* methods overridable. Made the remaining final.

Made getState public.

Change-Id: I715539599ac8826e5155852dd8ec56c35e4b89f1
2014-06-26 12:14:56 -07:00
Sailesh Nepal
b32d9e53c2 Merge "Add API to cancel outgoing calls" 2014-06-25 03:38:12 +00:00
Sailesh Nepal
506e38690f Add API to cancel outgoing calls
This replaces CallServiceSelectorAdapter.cancelOutgoingCall

Change-Id: I9e5da9c607675bc3c230f6eb6d1cc149a38bf905
2014-06-25 17:27:15 -07:00
Santos Cordon
52d8a15e14 Remote Connection implementation.
API classes for daisy-chaining connection services.

Change-Id: I90991697456377b72ec73d2ef835864cb0b7737a
2014-06-24 19:06:20 -07:00
Santos Cordon
779b3f04d8 Merge "Add a system API to get the default phone app." 2014-06-25 03:33:37 +00:00
Santos Cordon
6c7a38817c Add a system API to get the default phone app.
Change-Id: I59ca863d2af43a3b3c26d18b0279fc6e1e13b9b1
2014-06-25 15:50:11 -07:00
Andrew Lee
0b16d7d807 Merge "Adding CallVideoProvider to Telecomm." 2014-06-25 17:34:07 +00:00
Andrew Lee
13d11c3065 Adding CallVideoProvider to Telecomm.
Change-Id: I16c3c64ff2bcda46e0fd95accb360c972f964b9d
2014-06-24 13:51:59 -07:00
Ihab Awad
52a28f619f Replace CallServiceSelectors with Subscriptions (1/3)
Remove CallServiceSelectors and replace them with comprehensive
support for Subscriptions as the means of selecting ways of making
phone calls. After this change, a ConnectionService is not a
semantically meaningful "way of making a call" -- it's more like the
mechanism whereby the Android system communicates with a 3rd party
process to ask for phone services. We anticipate each process having
only one ConnectionService.

Change-Id: I11e6e246ae999683b3800496e98c93c3351aca7b
2014-06-23 19:59:27 -07:00
Yorke Lee
cf9bc5e76d Revert "Add ability to set and get DefaultPhoneApplication"
This reverts commit 8bdb1ff3279ab9fde0499231580c76dc2533f3c4.

Change-Id: Idc6d64820c23a650e5f0113ed8ff0860c61ea6af
2014-06-20 10:05:17 -07:00
Yorke Lee
eff9661b2a Merge "Revert "Add getSystemPhoneApplication to TelecommManager"" 2014-06-20 00:24:32 +00:00
Yorke Lee
5e0f061c0f Revert "Add getSystemPhoneApplication to TelecommManager"
This reverts commit 8200c05dcf206f2621fc8017235c739b66d57e8b.

Change-Id: I6536627491830804ddedac0287fa0bcdf014280c
2014-06-19 22:25:13 +00:00
Yorke Lee
8b74c4f67e Add getSystemPhoneApplication to TelecommManager
Change-Id: Ie67698e8363d1498b37692dc7be23b14a0d8c388
2014-06-18 13:01:26 -07:00
Yorke Lee
028d64f9ab Merge "Add getSystemPhoneApplication to TelecommManager" 2014-06-17 21:07:42 +00:00
Ihab Awad
87161a7667 Merge "Add methods to TelephonyManager for Subscription management (1/3)" 2014-06-17 20:49:29 +00:00
Ihab Awad
c35ad0252d Add methods to TelephonyManager for Subscription management (1/3)
As part of the effort to permit third-party suppliers of telephone
connectivity, we permit clients of TelephonyManager to obtain the
currently valid Subscription objects describing these suppliers. The
Subscriptions are intended to be self-describing such that an end-user
can choose from among them based on the information they contain. One
of these objects may then be attached to an ACTION_DIAL or ACTION_CALL
Intent to represent the end-user's choice of how to make a call.

Change-Id: I2ad1930079042d7bfe762b47c22f0538f7403bff

Conflicts:
	telephony/java/com/android/internal/telephony/ITelephony.aidl

Conflicts:
	telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
2014-06-17 15:08:13 -07:00
Sai Cheemalapati
0f0bcb5ac5 Adds speakerphone extra to ACTION_DIAL (2/2).
If optional extra EXTRA_SPEAKERPHONE_ON is added
to an ACTION_DIAL intent, the speakerphone will turn
on automatically once the call is connected.

Bug: 6810980

Change-Id: Ie4e1c5b413e72f9b0dbd590384571147a43a11ac
2014-06-17 11:54:05 -07:00
Yorke Lee
b4ce1432c6 Add TelecommManager to system services
Change-Id: I48a75c578a99aca1149fbae84a5d0f9ac0a457f3
2014-06-16 14:41:50 -07:00
Yorke Lee
2e024708b1 Add ability to set and get DefaultPhoneApplication
Change-Id: I8aa8cb16965106175c538f36915a31cf4830cef2
2014-06-16 10:42:59 -07:00
Ihab Awad
c067754a85 DO NOT MERGE. Port "respond via SMS message" feature to new Telecomm. (1/4)
Bug: 15275904
Bug: 15196474
Change-Id: If9aeae519047b221aa2c178d8d2903c4e2054a6d
2014-06-13 18:05:29 -07:00
Santos Cordon
b693998fdf Support conference calling. (1/4)
Bug: 15006702
Change-Id: I2764ea242f783ba478c9eae86618dd33e9fc792a
2014-06-12 16:15:09 -07:00
Sailesh Nepal
8b4818d9b4 API: Add call service handoff trigger
Change-Id: Iee03a666e7ebc2fe326f32405174466299be9d04
2014-06-06 11:27:43 -07:00
Evan Charlton
7960fd917a Fix the build breakage (update API & javadocs)
Update API and Javadocs to fix the build.

Change-Id: I108e4d824eabb68f8edd864bf67a16188672b01b
2014-06-05 17:31:11 -07:00
Evan Charlton
7d3ff83b8b am 266a63ad: Merge "Expose post-dial APIs" into lmp-preview-dev
* commit '266a63ad7731d7ebaf4c426b3d226e70c6afd2af':
  Expose post-dial APIs
2014-06-05 23:15:58 +00:00
Evan Charlton
e62a885ea6 Merge "Expose post-dial APIs" into lmp-preview-dev 2014-06-05 22:52:07 +00:00
Ihab Awad
fbb092f26e 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
(cherry picked from commit 976bfe497da31fa8322969648ffbe77898941d0c)
2014-06-05 12:56:57 -07: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
24bec88db0 am 00eb98bc: Merge "Add necessary APIs to support conference calling." into lmp-preview-dev
* commit '00eb98bc93f11df3b869eca32f04f71d44ee4e6d':
  Add necessary APIs to support conference calling.
2014-06-02 17:26:42 +00: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
9efdcd8a31 Allow ConnectionService to ask Telecomm for ringback
Cherry picked from branch lmp-preview-dev because checking the changes into master required an API update, whereas the relevant APIs are @hide-ed in the source branch.

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
(cherry picked from commit 20536bc3c4d40fa96306b0319d8313a7437fc702)
2014-05-31 11:19:54 -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
Santos Cordon
b69f1bddfe am 6d052adc: Merge "Update showCallScreen to use Telecomm (1/6)" into lmp-preview-dev
* commit '6d052adc910bf2d2775881528cef3e41fe2cd14b':
  Update showCallScreen to use Telecomm (1/6)
2014-05-30 21:38:54 +00:00
Santos Cordon
dd36901ac0 Preempt build error from merge with CL (2/2)
Merging CL: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657

Change-Id: Ic4944b27f9d39dbaccb6baa5ba6761dc4663cd02
2014-05-30 14:27:03 -07: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
Santos Cordon
5c013261a9 Merge "Adding ITelecommService definition for Telecomm." 2014-05-22 21:21:41 +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
9519ee7fb9 Fix invalid format specifier in log message
Bug: 15154713
Change-Id: Ia1f45eb568b31f02a7443def0dc9ef32a21e7f02
2014-05-22 09:49:34 -07:00
Santos Cordon
6848f72a49 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
2014-05-21 22:49:09 -07: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