|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.util.ObservableEventSourceImpl<Sample>
de.unikassel.android.sdcframework.devices.AbstractSensorDeviceScanner
de.unikassel.android.sdcframework.devices.SampleReceivingDeviceScanner
de.unikassel.android.sdcframework.devices.WifiDeviceScanner
public final class WifiDeviceScanner
Implementation of the wifi sensor device scanner.
Field Summary | |
---|---|
private WifiManager |
wifiManager
The Wifi manager |
Fields inherited from class de.unikassel.android.sdcframework.devices.SampleReceivingDeviceScanner |
---|
lastScanFinished, receiver, worker |
Constructor Summary | |
---|---|
private |
WifiDeviceScanner()
Constructor |
|
WifiDeviceScanner(Context context)
Constructor |
Method Summary | |
---|---|
void |
doHandleScanResults(Intent intent)
Handler for the device scan results |
boolean |
doStartDeviceScan()
Method to start a device scan |
void |
doStopDeviceScan()
Method to stop a device scan which is called if scanner is stopped while a scan is ongoing |
private String |
getCurrentConnectionBSSID()
Getter for the current connection BSSID |
protected IntentFilter |
getIntentFilter()
Getter for intent filter used by the broadcast receiver |
protected boolean |
isCompatibleDevice(SensorDevice device)
Validation method for a compatible device type |
Methods inherited from class de.unikassel.android.sdcframework.devices.SampleReceivingDeviceScanner |
---|
isLastScanFinished, onDestroy, setLastScanFinished, start, stop |
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractSensorDeviceScanner |
---|
enable, getDevice, isActive, isEnabled, setActive, setDevice |
Methods inherited from class de.unikassel.android.sdcframework.util.ObservableEventSourceImpl |
---|
getObservers, hasObservers, notify, onObserverRegistration, onObserverUnregistration, registerEventObserver, removeAllObservers, unregisterEventObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObservableEventSource |
---|
hasObservers, notify |
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObserverRegistration |
---|
registerEventObserver, removeAllObservers, unregisterEventObserver |
Field Detail |
---|
private final WifiManager wifiManager
Constructor Detail |
---|
private WifiDeviceScanner()
public WifiDeviceScanner(Context context)
context
- the application contextMethod Detail |
---|
protected boolean isCompatibleDevice(SensorDevice device)
AbstractSensorDeviceScanner
isCompatibleDevice
in class AbstractSensorDeviceScanner
device
- the device to test for compatibilityprotected final IntentFilter getIntentFilter()
SampleReceivingDeviceScanner
getIntentFilter
in class SampleReceivingDeviceScanner
public final void doHandleScanResults(Intent intent)
SampleReceivingDeviceScanner
doHandleScanResults
in class SampleReceivingDeviceScanner
intent
- the broadcast intent to handleprivate String getCurrentConnectionBSSID()
public final boolean doStartDeviceScan()
SampleReceivingDeviceScanner
doStartDeviceScan
in class SampleReceivingDeviceScanner
public void doStopDeviceScan()
SampleReceivingDeviceScanner
doStopDeviceScan
in class SampleReceivingDeviceScanner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |