* commit '895f3c27269d14ec53ff3ae8526342f9b57a10e1': Add getPrefixAids().
This commit is contained in:
@ -40,6 +40,7 @@ import java.io.IOException;
|
|||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -262,7 +263,7 @@ public final class ApduServiceInfo implements Parcelable {
|
|||||||
* for that category.
|
* for that category.
|
||||||
* @return List of AIDs registered by the service
|
* @return List of AIDs registered by the service
|
||||||
*/
|
*/
|
||||||
public ArrayList<String> getAids() {
|
public List<String> getAids() {
|
||||||
final ArrayList<String> aids = new ArrayList<String>();
|
final ArrayList<String> aids = new ArrayList<String>();
|
||||||
for (AidGroup group : getAidGroups()) {
|
for (AidGroup group : getAidGroups()) {
|
||||||
aids.addAll(group.aids);
|
aids.addAll(group.aids);
|
||||||
@ -270,6 +271,18 @@ public final class ApduServiceInfo implements Parcelable {
|
|||||||
return aids;
|
return aids;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> getPrefixAids() {
|
||||||
|
final ArrayList<String> prefixAids = new ArrayList<String>();
|
||||||
|
for (AidGroup group : getAidGroups()) {
|
||||||
|
for (String aid : group.aids) {
|
||||||
|
if (aid.endsWith("*")) {
|
||||||
|
prefixAids.add(aid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return prefixAids;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the registered AID group for this category.
|
* Returns the registered AID group for this category.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user