History log of /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/MockVideoProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/tests/src/com/android/server/telecom/tests/MockVideoProvider.java
b492f4c845e61fac17c0e523363607d2dd6ba987 15-Dec-2015 Tyler Gunn <tgunn@google.com> Add Video API unit tests, fix auto speakerphone logic.

- Move some of the single call Telecom system tests to a new BasicCallTests
class.
- Change visibility of some methods in TelecomSystemTest to faciliate the
creation of other system test classes.
- Added VideoProviderTest which exercises the Video APIs.
- Created Mock Video Provider.

Change-Id: Id314c18b77e8c635fbde0232a1ccfae851a3071c
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/MockVideoProvider.java