Commit Graph

23 Commits

Author SHA1 Message Date
pkanwar dc4c14d7a4 Provide an API to make USSD calls and read the responses.
Test: will be added in a subsequent CL.
Bug: 30973910
Change-Id: Ie92441b6435775d9b6d74f9a0777064d9839d6dc
2016-11-03 16:22:46 -07:00
Santos Cordon 501b9b3775 Dynamic InCallService switching.
Be able to switch between in-call services UIs.

Created a tree data structure to handle switching between InCallServices
depending on the state of the system.  Tree looks like this:

           CarModeSwitchingConnection
                 |             |
          +------+             +-------+
          |                            |
    CarModeConnection          EmergencyConnection
                                       |
                                       |
                               DefaultDialerConnection

Bug: 24571147
Change-Id: I0999fad4185321d5211172aed2f1d60fe8f5fe3a
2016-03-30 15:35:38 -07:00
Santos Cordon f0f99f34fc Add *AsUser() calls where appropriate for multi-user support.
Although telecom always runs as system user, it binds to apps in the
user space and so needs to interact with apps with the current user
explicitly.  This change fixes areas that neglected to do that.

Bug: 27161171
Change-Id: I55a4f612c9b38d4e448c346173845a79a926c695
2016-02-29 13:57:06 -08:00
Santos Cordon f78a72f8a1 Revert "Revert "Support car-mode UI in telecom.""
This reverts commit 88cda84521.

Change-Id: Icfd1ab3ed3af39f62bd828dceb5ff2d4d517cb91
2016-01-21 22:10:32 +00:00
Brad Ebinger 88cda84521 Revert "Support car-mode UI in telecom."
This reverts commit d318291291.

Change-Id: I48da1122846b18c03bec486ee2bf977f721723a2
2016-01-21 21:09:55 +00:00
Santos Cordon d318291291 Support car-mode UI in telecom.
Add additional step to look for and bind to a car-mode UI if the device
is currently in car-mode. Add a system state component to listen for
car-mode changes.

Change-Id: I5124b46f43b47bda39cf3d0f882378cf69b0505b
2016-01-20 09:23:15 -08:00
Yorke Lee 1cbe702680 Add uses-sdk to Telecom test APK manifests
Allow them to be installed on master via adb install

Change-Id: I8c8df36eb04e2a904a5146e50cbb885c10145776
2015-08-31 18:22:15 -07:00
Tyler Gunn 86014fcf9e Play tone when video upgrade request is received.
Added a VideoProviderProxy which intermediates between the VideoProvider
in the ConnectionService and the InCallService.

Changed CallsManager to listen for session modification requests via the
VideoProviderProxy and report these to its listeners via the
CallsManagerListeberBase.

Changed InCallToneMonitor to listen for session modification requests and
to play a tone when a request to upgrade is received.

Also, added an intent in the TestInCallService which I neglected to commit
in a previous CL.

Bug: 20232310
Change-Id: I1b105968f519ff6b166bbd02cb57b1cf68d2cea9
2015-06-12 14:31:25 -07:00
Yorke Lee 7bb8ce9b4e Add BIND_TELECOM_CONNECTION_SERVICE permission
Bug: 21088342
Change-Id: I465307899d83c4a3ee5e88a28554c4b867c1f4ba
2015-05-13 16:34:13 -07:00
Tyler Gunn ac30f08f0e DO NOT MERGE Add ability to specify video state through TestInCallService intent.
TestInCallService has an "ACTION_SEND_UPGRADE_REQUEST_FROM_TEST_INCALL_SERVICE"
intent.
Added support to specify an int videoState as part of the intent so that
the caller can test sending video requests that our InCall may not
support (e.g. incoming 1-way request when in audio-only).

Bug: 20090022
Change-Id: I283575cc296444bbdadcdec5c1caa1593c1eed3b
2015-05-05 11:42:05 -07:00
Prerepa Viswanadham 736fe75ad6 Merge commit '336b6a1' into merge_try2
Change-Id: I471327b21bb250640a17dac06251bd45227910e5
2015-05-01 19:15:21 -07:00
Tyler Gunn 33b6729930 Intent handling fixes for TestInCallService and TestCallActivity.
I had added the android:process to the TestCallActivity section in the
manifest.  This made my test intent work, but broke the intents in the
TestCallActivity which communicated back to the TestConnectionService.

Correctected this by adding a new BroadcastReceiver which is used to handle
intents for the TestInCallService.

Change-Id: I665b381a5519b0a1ddac39f580ce6482615dcffa
2015-04-28 08:31:12 -07:00
Yorke Lee f3ef994289 Merge "Exercise voicemail permissions in Test Dialer" into mnc-dev 2015-04-27 22:22:41 +00:00
Yorke Lee 17fa0d639c Make TestCallActivity Theme.NoDisplay
This prevents the activity from bringing up the UI at all,
which makes the initiation of a test call more realistic from the
ActivityManager's perspective since calls are usually
generated from the background.

Change-Id: Ie8893d38593f61689b8e2cdfd2e17d5efef3d79e
2015-04-27 14:57:38 -07:00
Yorke Lee 51d0dfa37b DO NOT MERGE Make TestCallActivity Theme.NoDisplay
This prevents the activity from bringing up the UI at all,
which makes the initiation of a test call more realistic from the
ActivityManager's perspective since calls are usually
generated from the background.

Change-Id: Ie8893d38593f61689b8e2cdfd2e17d5efef3d79e
2015-04-27 14:55:10 -07:00
Yorke Lee fbc9563112 Exercise voicemail permissions in Test Dialer
Bug: 20333102
Change-Id: Icc244816518a558ba5b841d7d9e070b3c6c34e8b
2015-04-27 13:56:13 -07:00
Etan Cohen 5b2c59e20e Merge commit '0751e61' into merge2 2015-04-24 14:40:55 -07:00
Yorke Lee 77f10d87a9 DO NOT MERGE Make calls from TestDialerActivity
Bug: 20348183
Change-Id: Ib4c5b08aa7fdfe61a3dc31a880541423be255543
2015-04-20 16:36:43 -07:00
Yorke Lee 562ad5e757 Make calls from TestDialerActivity
Bug: 20348183
Change-Id: Ib4c5b08aa7fdfe61a3dc31a880541423be255543
2015-04-20 16:25:40 -07:00
Tyler Gunn 633963ebba Support for multiple VideoCall.Listeners for a VideoCall.
The current code assumes that only a single instance of VideoCall will be
provided to the default system InCall UI.  Ideally multiple
InCallService implementations should be able to use the VideoCall APIs.
Note: it only really makes sense for a single InCallService to get/set
the video surfaces.

- Modify InCallController to only update the VideoProvider in the parcelled
call data if it has changed.
- In InCallController, removed check that would prevent sending video
provider to other InCallServices other than the default incall UI.
- Created TestCallList and modified TestInCallServiceImpl to track all
calls and output some debug information about the calls/video callbacks.
- Added a new Test intent, ACTION_SEND_UPGRADE_TO_VIDEO_REQUEST which will
cause the TestInCallServiceImpl to loop through all telecom calls and
trigger the VideoCall API to send an upgrade to video request.  THis is
to mimic how the telephony test team will be using a test InCallService
to control the device.

Bug: 20092420
Change-Id: Ib781551d5168bc095f58b7b62906a9e59e43958e
2015-04-16 16:37:35 +00:00
Yorke Lee 817090c6c6 Add ability to send video upgrade requests using TestVideoProvider
Bug: 20090411
Change-Id: I5db96fd41efc3baee0d80c73988cc0d6fba23b37
2015-04-10 12:12:25 -07:00
Yorke Lee 2a6985f675 DO NOT MERGE Add ability to simulate missed calls
After initiating a call using
adb shell am start -a android.telecom.testapps.ACTION_START_INCOMING_CALL
-d "tel:14082932268"

Hang up the call using:
adb shell am start -a android.telecom.testapps.ACTION_HANGUP_CALLS

Bug: 19803865
Change-Id: I9ba12bac1eb5db5c19d0d830fc1e1e77cb3b86cb
2015-04-10 11:50:47 -07:00
Ihab Awad 945a82ea92 Split unit tests and interactive test apps apart
This CL splits the automated unit tests (*.tests package) and the
interactive test connection services (*.testapps package).

Apart from code hygiene and flexibility moving forward, this makes
Android manifest and build files, and the relevant dependencies,
simpler and easier to follow.

Change-Id: Id8c7763ae65f437fdfdabe8b0a4f3561adadbcb3
2015-04-02 10:05:24 -07:00