public class UsageStatsService extends SystemService
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 |
---|
UsageStatsService(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
onBootPhase(int phase)
Called on each phase of the boot process.
|
void |
onNewUpdate(int userId)
Callback that a system update was detected
|
void |
onStart()
Called when the dependencies listed in the @Service class-annotation are available
and after the chosen start phase.
|
void |
onStatsReloaded() |
void |
onStatsUpdated() |
getBinderService, getContext, getLocalService, isSafeMode, onCleanupUser, onStartUser, onStopUser, onSwitchUser, onUnlockUser, publishBinderService, publishBinderService, publishLocalService
public UsageStatsService(Context context)
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 onStatsUpdated()
public void onStatsReloaded()
public void onNewUpdate(int userId)
userId
- user that needs to be initialized