diff options
author | Tyler Gunn <tgunn@google.com> | 2016-11-09 10:19:23 -0800 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-11-09 10:19:23 -0800 |
commit | b88b311463704af6254ac6a2b4f8c484eaaa7a77 (patch) | |
tree | 9d7beceaeaf308585864620a63940cd839eac4f5 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | baca8f50df522ed65b78e5dfa5f651edbd2d7691 (diff) |
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, manual testing performed.
Bug: 32747443
Change-Id: I555a04f9c3fb45e60bb811f64ba855ccf2e3b0e2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions