public class ScanLayersService
extends android.content.BroadcastReceiver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
START_SCAN_LAYER_ACTION |
static java.lang.String |
STOP_SCAN_LAYER_ACTION |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(long join)
Cancels the scan thread.
|
void |
destroy() |
static ScanLayersService |
getInstance() |
static java.lang.String |
getInternalRoot() |
static java.lang.String[] |
getRootDirs() |
void |
onReceive(android.content.Context c,
android.content.Intent intent) |
void |
registerScannerSpi(LayerScanner.Spi spi) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String STOP_SCAN_LAYER_ACTION
public static final java.lang.String START_SCAN_LAYER_ACTION
public void registerScannerSpi(LayerScanner.Spi spi)
public static java.lang.String[] getRootDirs()
public static java.lang.String getInternalRoot()
public static ScanLayersService getInstance()
public void destroy()
public void onReceive(android.content.Context c, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public boolean cancel(long join)
join
is less than 0
, this method will return
immediately. If join
is greater than or equal to
0
, the scan thread will join per the contract of
Thread.join(long)
using join
as the argument.join
- The join in milliseconds. If less than 0
this
method will not wait for the scan thread to complete.true
if the scan thread is no longer running before
this method returns, false
otherwise.