protected void setDependency(Library l1, Library l2)
{
- if (l2 == null) // Dependancy on external lib.
+ if (l2 == null) // Dependency on external lib.
return;
l1.dependencies.add(l2);
l2.dependedUpon = true;
protected void process(Library l) throws Exception
{
if (processedLibs.contains(l))
- return; // Already processed
+ return; // Already processed.
processedLibs.add(l);
addRpath(l.rpath);
for (String need : l.needed)
}
if (property != null) {
Vector<Library> order =
- topoSort(new HashSet<Library>(processedLibs));;
+ topoSort(new HashSet<Library>(processedLibs));
StringBuilder sb = new StringBuilder();
for (Library l : order) {
String name = l.destname;
}
}
- protected boolean interresting(UsbDevice dev)
+ protected boolean interesting(UsbDevice dev)
{
if (dev == null)
return false;
context.registerReceiver(hotplugReceiver, hotplugFilter);
HashMap<String,UsbDevice> devlist = manager.getDeviceList();
for (UsbDevice dev : devlist.values()) {
- if (interresting(dev) && !manager.hasPermission(dev)) {
- Log.d("UsbSupplicant", "found interresting device " + dev);
+ if (interesting(dev) && !manager.hasPermission(dev)) {
+ Log.d("UsbSupplicant", "found interesting device " + dev);
askFor(dev);
}
}
protected void attachCallback(UsbDevice dev)
{
- if (interresting(dev) && !manager.hasPermission(dev))
+ if (interesting(dev) && !manager.hasPermission(dev))
askFor(dev);
}