public class CameraService extends SystemService implements Handler.Callback, IBinder.DeathRecipient
Modifier and Type | Field and Description |
---|---|
static String |
CAMERA_SERVICE_PROXY_BINDER_NAME |
static int |
CAMERA_STATE_ACTIVE |
static int |
CAMERA_STATE_CLOSED |
static int |
CAMERA_STATE_IDLE |
static int |
CAMERA_STATE_OPEN |
static int |
DISABLE_POLLING_FLAGS |
static int |
ENABLE_POLLING_FLAGS |
PHASE_ACTIVITY_MANAGER_READY, PHASE_BOOT_COMPLETED, PHASE_LOCK_SETTINGS_READY, PHASE_SYSTEM_SERVICES_READY, PHASE_THIRD_PARTY_APPS_CAN_START, PHASE_WAIT_FOR_DEFAULT_DISPLAY
Constructor and Description |
---|
CameraService(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
binderDied()
Handle the death of the native camera service
|
boolean |
handleMessage(Message msg) |
void |
onStart()
Called when the dependencies listed in the @Service class-annotation are available
and after the chosen start phase.
|
void |
onStartUser(int userHandle)
Called when a new user is starting, for system services to initialize any per-user
state they maintain for running users.
|
void |
onSwitchUser(int userHandle)
Called when switching to a different foreground user, for system services that have
special behavior for whichever user is currently in the foreground.
|
getBinderService, getContext, getLocalService, isSafeMode, onBootPhase, onCleanupUser, onStopUser, onUnlockUser, publishBinderService, publishBinderService, publishLocalService
public static final String CAMERA_SERVICE_PROXY_BINDER_NAME
public static final int CAMERA_STATE_OPEN
public static final int CAMERA_STATE_ACTIVE
public static final int CAMERA_STATE_IDLE
public static final int CAMERA_STATE_CLOSED
public static final int DISABLE_POLLING_FLAGS
public static final int ENABLE_POLLING_FLAGS
public CameraService(Context context)
public boolean handleMessage(Message msg)
handleMessage
in interface Handler.Callback
public void onStart()
SystemService
onStart
in class SystemService
public void onStartUser(int userHandle)
SystemService
onStartUser
in class SystemService
userHandle
- The identifier of the user.public void onSwitchUser(int userHandle)
SystemService
onSwitchUser
in class SystemService
userHandle
- The identifier of the user.public void binderDied()
binderDied
in interface IBinder.DeathRecipient