History log of /packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
323f8567892d832827c38b9fa454eeab043db27a 20-Mar-2017 Tyler Gunn <tgunn@google.com> Merge "IMS-VT: Fix exception caused by incorrect conversion" am: 68de30a2db am: e860a630f5
am: ba74484c21

Change-Id: I56c1002813af27897cbc68578096574dcc810d04
772fdf6e57e44ced7d969eccedfe8cab2713e0d6 15-Mar-2017 Garik Badalyan <garikb@codeaurora.org> IMS-VT: Fix exception caused by incorrect conversion

Incorrect formatter (%d) is used to log a variable
of type String. The change fixes the code to use
proper formatter to log String variables.

Test: Manual
Change-Id: Ica9c5c9312be895e3048ddebf4f8653e444b1232
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
1edf04a086db22869f0858536eb68bbdf5736ece 07-Mar-2017 Tyler Gunn <tgunn@google.com> API review cleanups. am: 115c06ee64 am: aa59fe7535
am: 124b43d958

Change-Id: I9203a225f2c320f370343c5431d586ae87747156
115c06ee64e209cda99abdc1fbd23fd65aa6da47 02-Mar-2017 Tyler Gunn <tgunn@google.com> API review cleanups.

- Modify the video call permission check to use the API version of the
caller to determine whether to use the API26
SESSION_EVENT_CAMERA_PERMISSION_ERROR event. If the caller is using an
older API, use the more generic SESSION_EVENT_CAMERA_FAILURE.
- Update the sample Self Managed calling app to use the incoming call UX
guidance specified in the Javadocs.
- Fix bug in InCallController which could cause InCallService to see
self-managed connections.

Test: Manual
Bug: 35767096
Bug: 35767711
Change-Id: I3e5e2b84eb026eec37f884029bb77d446a04e255
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
d8a27d5fc787f8839d3185f2b9137a8c2f1d68a0 01-Dec-2016 Tyler Gunn <tgunn@google.com> When setting camera, ensure calling user is the same as logged in user.

When the VideoProvider API is used to change the camera, in addition to
performing permission checks on the caller, adding logic to ensure that
the calling UserHandle is the currently logged in User (this is to ensure
that a background app can't access the camera).

Test: Unit, manual
Bug: 32747443
Change-Id: I0856f991c520dd1f5fa0146919941c052cba8a01
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
f1dcfdb99763740e9fd1ab036f6c06a312f197ad 09-Nov-2016 Tyler Gunn <tgunn@google.com> Perform camera permission and app ops check when setting camera for VT.

When a calling InCallService attempts to use the setCamera API on the
VideoCall, Telecom will perform a permission check to ensure that the
caller has the correct camera permission and passes the app-ops camera
check. A failure to set the camera will result in a callback via the
call session event API.

This got a little messy as the app ops package name needs to come from the
InCallService, and handler usage in the VideoProvider API means we had to
pass around the uid/pid of the caller, obtained before we trampoline onto
the handler.

Test: Unit tests added, plus manual tests.
Bug: 32747443
Change-Id: Ib96114502fe459b0429a87c5d13640b68ae6a2f7
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
1bf0e6be00af0ca5731a52f0727c6d9a2f8b6944 01-Dec-2016 Tyler Gunn <tgunn@google.com> When setting camera, ensure calling user is the same as logged in user.

When the VideoProvider API is used to change the camera, in addition to
performing permission checks on the caller, adding logic to ensure that
the calling UserHandle is the currently logged in User (this is to ensure
that a background app can't access the camera).

Test: Unit, manual
Bug: 32747443
Change-Id: I0856f991c520dd1f5fa0146919941c052cba8a01
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
a0a43d51041c9efbe04f7c65236c9e90c3e79346 09-Nov-2016 Tyler Gunn <tgunn@google.com> Perform camera permission and app ops check when setting camera for VT.

When a calling InCallService attempts to use the setCamera API on the
VideoCall, Telecom will perform a permission check to ensure that the
caller has the correct camera permission and passes the app-ops camera
check. A failure to set the camera will result in a callback via the
call session event API.

This got a little messy as the app ops package name needs to come from the
InCallService, and handler usage in the VideoProvider API means we had to
pass around the uid/pid of the caller, obtained before we trampoline onto
the handler.

Test: Unit tests added, plus manual tests.
Bug: 32747443
Change-Id: Ib96114502fe459b0429a87c5d13640b68ae6a2f7
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
8f98f10d53f4f7aa1605a37313a6186f90dc6c0e 21-Oct-2016 Brad Ebinger <breadley@google.com> resolve merge conflicts of 953e1af to stage-aosp-master

Test: Manual Testing
Change-Id: I3c8cac2c8b3634db7a20cceda434e6db6cdb05ca
953e1af643b66df6f931d76c23bcc54147668cd4 06-Oct-2016 Brad Ebinger <breadley@google.com> Switch to using android.telecom.Log in Telecom

Sorry.

Test: All affected unit tests still pass.
Bug: 26571395
Change-Id: I890d68d935cd554ba89042e99c155757697e1a37
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
a3eccfee788c3ac3c831a443b085b141b39bb63d 06-Oct-2016 Brad Ebinger <breadley@google.com> Switch to using android.telecom.Log in Telecom

Sorry.
CP from: https://android-review.googlesource.com/#/c/287332/

Test: Added unit tests for Log Sessions and Events. All other affected
unit tests still pass.
Bug: 26571395
Change-Id: I890d68d935cd554ba89042e99c155757697e1a37
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
33e453811b7dc0af47301d1aa22384de3d464da4 02-Sep-2016 Tyler Gunn <tgunn@google.com> Increase log level for VideoProviderProxy, add connection event logging.

Increased log level for VideoPRoviderProxy to info (this is not a very
chatty API) to aid test team; this is primarily to expose the sesssion
events -- I didn't see a value of putting these in the regular telecom
event logs.
Added Connection Event logging in the telecom event logging.

Bug: 31199425
Change-Id: I33ac8a67ae6c4a16c26a6c3d0ccf696735e730bb
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
24d7474ab444aba0462f5ad02079d50dce242c78 26-Aug-2016 Hall Liu <hallliu@google.com> Merge "Add dumpsys to Telecom analytics output" into nyc-mr1-dev
2f4f0a038dbf9f6372ac8c9b1535f8cc8d0f8256 09-Aug-2016 Hall Liu <hallliu@google.com> Add dumpsys to Telecom analytics output

Output a Base64-encoded proto when Telecom's dumpsys is called with the
"analytics" argument, with an option to clear analytics at the same
time. This is in preparation for moving Connectivity Metrics to GmsCore.

Also fixed a bug in video call analytics and adds a test for it.

Bug: 30600318

Change-Id: I567d769123d78b7e5e2b9e8865fccf36f4f30fae
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
13e8a6938eb5db779ea41f82f00916363ad09aa6 04-Aug-2016 Tyler Gunn <tgunn@google.com> Auto reject video requests for secondary user.

- In Telecom, when the ConnectionService sends informs us of an upgrade
to video request, if the phone account for the call does not support video
calling, then we will automatically send a response back saying the user
wants to stick with audio-only.
- Also, it turns out the Call object already knew whether it supports video
or not, so I was able to clean up the change I made previously to prevent
video calling on the secondary user.

Bug: 30600205
Change-Id: I64a29933d9da3f443dbad5fbd058f4b5735cfc51
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
10f8cd2c3f51b2fb3dc1d70ceac6bd6127f860d5 14-Jul-2016 Brad Ebinger <breadley@google.com> Fix NPE that was stopping VT updates to Dialer

The InCall Ui was not receiving updates when the video call
upgrade screen timeed out from the network due to a NPE that was
occuring.

Bug: 29009251
Change-Id: Iec5d826475d5a9fa7ba9b344201cd52292066bb9
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
4640c4fc55ca4118351330d68684ca9989661ccd 23-Jun-2016 Hall Liu <hallliu@google.com> Record video call events in analytics

Record whether the call was ever a video call and a list of video
session upgrade/downgrade requests in Analytics.

Bug: 29239768
Change-Id: I50c7a3044f7ad4c13638bb7b493e97f3c1325a18
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
70d6f858f10a77277c63aafcaa1f113f647117a6 21-Jun-2016 Tyler Gunn <tgunn@google.com> Add video events to Telecom logs.

Adding some video state, request, and response tracking events to the
telecom event logs.

Change-Id: I0a76791826f706ba31496677e47fb2dc4f40215c
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
3165d50d3fc688d632faecfae9c2f987e537941f 16-Dec-2015 Brad Ebinger <breadley@google.com> Increase Logging to debug Accept/Reject

Currently, it can be difficult to identify where Telecom events
originate from. Logging messages have been added that better describe
the conditions that occured to cause these Telecom events to occur.

Bug: 25838961
Change-Id: I846a3125d000bef1d0e8796a7baadcfa8cd73d4f
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
7a1f8239f7d22faef49c1f89de522e908e2e43f8 04-Dec-2015 Tyler Gunn <tgunn@google.com> Track and store call data usage in call log.

Respond to VideoProvider changeCallDataUsage callbacks and track the
most current call data usage in the Call. Use this when saving a new call
log entry.

Bug: 25668261
Change-Id: I1477b10dd9553ff3194e50f27d223d5eb24725bf
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java
86014fcf9ec86e198a1ebac7c46e0e5c630735d7 12-Jun-2015 Tyler Gunn <tgunn@google.com> 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
/packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java