projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosuilib: Publish AltosSiteMap.centre. Add prefetchMaps with old API
[fw/altos]
/
altosui
/
AltosBTDeviceIterator.java
diff --git
a/altosui/AltosBTDeviceIterator.java
b/altosui/AltosBTDeviceIterator.java
index 63ce3674f8673f10a21136d9b5719dc4c693790e..4be5edf5e50693def94c9912a08843fb13a28efa 100644
(file)
--- a/
altosui/AltosBTDeviceIterator.java
+++ b/
altosui/AltosBTDeviceIterator.java
@@
-16,18
+16,15
@@
*/
package altosui;
*/
package altosui;
-import java.lang.*;
import java.util.*;
import libaltosJNI.*;
public class AltosBTDeviceIterator implements Iterator<AltosBTDevice> {
import java.util.*;
import libaltosJNI.*;
public class AltosBTDeviceIterator implements Iterator<AltosBTDevice> {
- int product;
AltosBTDevice current;
boolean done;
SWIGTYPE_p_altos_bt_list list;
public boolean hasNext() {
AltosBTDevice current;
boolean done;
SWIGTYPE_p_altos_bt_list list;
public boolean hasNext() {
- System.out.printf ("BT has next?\n");
if (list == null)
return false;
if (current != null)
if (list == null)
return false;
if (current != null)
@@
-36,7
+33,6
@@
public class AltosBTDeviceIterator implements Iterator<AltosBTDevice> {
return false;
current = new AltosBTDevice();
while (libaltos.altos_bt_list_next(list, current) != 0) {
return false;
current = new AltosBTDevice();
while (libaltos.altos_bt_list_next(list, current) != 0) {
- System.out.printf("Got BT device %s\n", current.toString());
// if (current.matchProduct(product))
return true;
}
// if (current.matchProduct(product))
return true;
}
@@
-58,11
+54,9
@@
public class AltosBTDeviceIterator implements Iterator<AltosBTDevice> {
throw new UnsupportedOperationException();
}
throw new UnsupportedOperationException();
}
- public AltosBTDeviceIterator(int in_product) {
- product = in_product;
+ public AltosBTDeviceIterator(int inquiry_time) {
done = false;
current = null;
done = false;
current = null;
- list = libaltos.altos_bt_list_start();
- System.out.printf("Iteration of BT list started\n");
+ list = libaltos.altos_bt_list_start(inquiry_time);
}
}
}
}