public final class DropBoxManagerService extends SystemService
IDropBoxManagerService
using the filesystem.
Clients use DropBoxManager
to access this 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 |
---|
DropBoxManagerService(Context context)
Creates an instance of managed drop box storage using the default dropbox
directory.
|
DropBoxManagerService(Context context,
File path)
Creates an instance of managed drop box storage.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DropBoxManager.Entry entry) |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
DropBoxManager.Entry |
getNextEntry(String tag,
long millis) |
IDropBoxManagerService |
getServiceStub()
Retrieves the binder stub -- for test instances
|
boolean |
isTagEnabled(String tag) |
void |
onBootPhase(int phase)
Called on each phase of the boot process.
|
void |
onStart()
Called when the dependencies listed in the @Service class-annotation are available
and after the chosen start phase.
|
getBinderService, getContext, getLocalService, isSafeMode, onCleanupUser, onStartUser, onStopUser, onSwitchUser, onUnlockUser, publishBinderService, publishBinderService, publishLocalService
public DropBoxManagerService(Context context)
context
- to use for receiving free space & gservices intentspublic DropBoxManagerService(Context context, File path)
context
- to use for receiving free space & gservices intentspath
- to store drop box entries inpublic void onStart()
SystemService
onStart
in class SystemService
public void onBootPhase(int phase)
SystemService
onBootPhase
in class SystemService
phase
- The current boot phase.public IDropBoxManagerService getServiceStub()
public void add(DropBoxManager.Entry entry)
public boolean isTagEnabled(String tag)
public DropBoxManager.Entry getNextEntry(String tag, long millis)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)