public class VrManagerService extends SystemService implements EnabledComponentsObserver.EnabledComponentChangeListener
android.app.Activity#setVrModeEnabled)
. An application may also implement a service to
be run while in VR mode by implementing VrListenerService
.android.service.vr.VrListenerService}
,
com.android.server.vr.VrManagerInternal}
,
com.android.server.vr.VrStateListener}
Modifier and Type | Field and Description |
---|---|
static String |
TAG |
static String |
VR_MANAGER_BINDER_SERVICE |
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 |
---|
VrManagerService(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
onBootPhase(int phase)
Called on each phase of the boot process.
|
void |
onCleanupUser(int userHandle)
Called when an existing user is stopping, for system services to finalize any per-user
state they maintain for running users.
|
void |
onEnabledComponentChanged()
Called when a user, package, or setting changes that could affect whether or not the
currently bound VrListenerService is changed.
|
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 |
onStopUser(int userHandle)
Called when an existing user is stopping, for system services to finalize 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, onUnlockUser, publishBinderService, publishBinderService, publishLocalService
public static final String TAG
public static final String VR_MANAGER_BINDER_SERVICE
public VrManagerService(Context context)
public void onEnabledComponentChanged()
onEnabledComponentChanged
in interface EnabledComponentsObserver.EnabledComponentChangeListener
public void onStart()
SystemService
onStart
in class SystemService
public void onBootPhase(int phase)
SystemService
onBootPhase
in class SystemService
phase
- The current boot phase.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 onStopUser(int userHandle)
SystemService
onStopUser
in class SystemService
userHandle
- The identifier of the user.public void onCleanupUser(int userHandle)
SystemService
onCleanupUser
in class SystemService
userHandle
- The identifier of the user.