diff options
author | Chien-Yu Chen <cychen@google.com> | 2015-02-11 11:23:28 -0800 |
---|---|---|
committer | Chien-Yu Chen <cychen@google.com> | 2015-03-03 13:55:07 -0800 |
commit | afa91399fd32ede17d440ec1c3321eee0426123c (patch) | |
tree | 2a57bbef2d75c79620a1dc80eed67bc5af9e3834 /media | |
parent | 1b4b87c2aec1ea5487e7279e92114bb1dca013b6 (diff) | |
download | frameworks_base-afa91399fd32ede17d440ec1c3321eee0426123c.zip frameworks_base-afa91399fd32ede17d440ec1c3321eee0426123c.tar.gz frameworks_base-afa91399fd32ede17d440ec1c3321eee0426123c.tar.bz2 |
CameraManager: implement flashlight controls
Implement the flashlight controls and callbacks and update the
torch mode states.
Bug: 2682206
Change-Id: I59025f34f9ece75dd535166a25c428b8d68c6e4b
Diffstat (limited to 'media')
-rw-r--r-- | media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/CameraBinderTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/CameraBinderTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/CameraBinderTest.java index cc50c43..362bbc4 100644 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/CameraBinderTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/CameraBinderTest.java @@ -316,6 +316,11 @@ public class CameraBinderTest extends AndroidTestCase { throws RemoteException { Log.v(TAG, String.format("Camera %d has status changed to 0x%x", cameraId, status)); } + public void onTorchStatusChanged(int status, String cameraId) + throws RemoteException { + Log.v(TAG, String.format("Camera %s has torch status changed to 0x%x", + cameraId, status)); + } } /** |