Methods Summary |
---|
public java.util.Map | GetData(java.lang.String dataName)
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return getMap(mAggregatorManager.getData(dataName));
} catch (RemoteException e) {
Log.e(TAG,"Exception in Getting " + dataName);
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|
public java.util.List | getDayOfWeekValues()
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return mAggregatorManager.getDayOfWeekValues();
} catch (RemoteException e) {
Log.e(TAG,"Error getting day of week values");
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|
public boolean | getFakeMode()
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return mAggregatorManager.getFakeMode();
} catch (RemoteException e) {
Log.e(TAG,"Error getting fake mode");
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|
public java.util.List | getLocationClusters()
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return mAggregatorManager.getLocationClusters();
} catch (RemoteException e) {
Log.e(TAG,"Error getting location clusters");
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|
private java.util.Map | getMap(java.util.List sample)
HashMap<String, String> map = new HashMap<String, String>();
for (int i =0; i < sample.size(); i++) {
map.put(sample.get(i).key, sample.get(i).value);
}
return (Map) map;
|
public java.util.List | getTimeOfDayValues()
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return mAggregatorManager.getTimeOfDayValues();
} catch (RemoteException e) {
Log.e(TAG,"Error getting time of day values");
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|
public boolean | retrieveAggregatorManager()
if (mAggregatorManager == null) {
mAggregatorManager = BordeauxManagerService.getAggregatorManager(mContext);
if (mAggregatorManager == null) {
Log.e(TAG, AggregatorManager_NOTAVAILABLE);
return false;
}
}
return true;
|
public boolean | setFakeDayOfWeek(java.lang.String day_of_week)
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return mAggregatorManager.setFakeDayOfWeek(day_of_week);
} catch (RemoteException e) {
Log.e(TAG,"Error setting fake day of week:" + day_of_week);
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|
public boolean | setFakeLocation(java.lang.String name)
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return mAggregatorManager.setFakeLocation(name);
} catch (RemoteException e) {
Log.e(TAG,"Error setting fake location:" + name);
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|
public boolean | setFakeTimeOfDay(java.lang.String time_of_day)
if (!retrieveAggregatorManager())
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
try {
return mAggregatorManager.setFakeTimeOfDay(time_of_day);
} catch (RemoteException e) {
Log.e(TAG,"Error setting fake time of day:" + time_of_day);
throw new RuntimeException(AggregatorManager_NOTAVAILABLE);
}
|