android_system_core/include/system
Wu-cheng Li 2923c0ba52 Add camera ping command and release message.
The problem is both face unlock and camera application try to open
the hardware camera at the same time. A new camera open API is
added to let face unlock take the camera away from the existing
client. The release message is used to notify the existing client,
so it has time to release the hardware camera and clean up.

If existing client tries to use the camera after it is released,
the method will return error. It is still possible that the
camera has been taken and the existing client has not got the
notification. When any method returns error, the existing client
can use ping command to check whether the camera has been released.
If yes, the client can silently finish the app itself or show a
toast if it wants.

bug:5584464

Change-Id: I87f9f7db2f7b2b70ab2405f9b3da0d8946d6a01b
2012-03-14 10:35:53 +08:00
..
audio.h Add function to derive a channel mask from a channel count 2012-03-05 13:59:09 -08:00
audio_policy.h audio policy: added flag for primary output 2012-03-08 13:18:20 -08:00
camera.h Add camera ping command and release message. 2012-03-14 10:35:53 +08:00
graphics.h another attempt at fixing the SDK build. 2011-08-11 22:35:31 -07:00
window.h add missing include 2012-02-25 21:13:36 -08:00