|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.devices.SensorDeviceAvailabilityTester
public final class SensorDeviceAvailabilityTester
The global singleton to test for sensor device availability. With the first
call to the {link configure(Set, Context) method, the availability
of supported devices is tested and the identifiers will be stored to be
queried later by a call to getAvailableSensorDevices().
| Field Summary | |
|---|---|
private boolean |
initialized
flag if sensor device list is initialized |
private static SensorDeviceAvailabilityTester |
instance
The singleton instance of the sensor availability tester manager |
private Vector<SensorDeviceIdentifier> |
vecSensorDevices
Vector to store the detected sensor devices |
| Constructor Summary | |
|---|---|
private |
SensorDeviceAvailabilityTester()
Constructor |
| Method Summary | |
|---|---|
void |
configure(Set<SensorDeviceIdentifier> configuredDevices,
Context applicationContext)
Method to inject the sensor devices from service configuration |
private void |
detectAvailableSensorDevices(Set<SensorDeviceIdentifier> configuredDevices,
Context applicationContext)
Does detect available sensor devices |
List<SensorDeviceIdentifier> |
getAvailableSensorDevices()
Getter for available Sensor devices |
static SensorDeviceAvailabilityTester |
getInstance()
Access to the singleton instance of the preference manager |
private Vector<SensorDeviceIdentifier> |
getVecSensorDevices()
Getter for the vecSensorDevices |
private boolean |
isDeviceAvailable(SensorDeviceIdentifier identifier,
Context applicationContext)
Test method for availability of a specific sensor device |
boolean |
isInitialized()
Getter for the initialized |
private void |
setInitialized(boolean initialized)
Setter for the initialized |
private void |
setVecSensorDevices(Vector<SensorDeviceIdentifier> vecSensorDevices)
Setter for the vecSensorDevices |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static SensorDeviceAvailabilityTester instance
private Vector<SensorDeviceIdentifier> vecSensorDevices
private boolean initialized
| Constructor Detail |
|---|
private SensorDeviceAvailabilityTester()
| Method Detail |
|---|
public static final SensorDeviceAvailabilityTester getInstance()
private final Vector<SensorDeviceIdentifier> getVecSensorDevices()
private final void setVecSensorDevices(Vector<SensorDeviceIdentifier> vecSensorDevices)
vecSensorDevices - the vecSensorDevices to setpublic final boolean isInitialized()
private final void setInitialized(boolean initialized)
initialized - the initialized to set
private final void detectAvailableSensorDevices(Set<SensorDeviceIdentifier> configuredDevices,
Context applicationContext)
configuredDevices - the configured devices for the serviceapplicationContext - the application context
private final boolean isDeviceAvailable(SensorDeviceIdentifier identifier,
Context applicationContext)
identifier - the device identifierapplicationContext - the application context
public final List<SensorDeviceIdentifier> getAvailableSensorDevices()
public final void configure(Set<SensorDeviceIdentifier> configuredDevices,
Context applicationContext)
configuredDevices - the configured devices for the serviceapplicationContext - the application context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||