Lines Matching refs:route
122 * Immutable data class that describes a card emulation route.
138 * A route such as {@link #ROUTE_OFF} or {@link #ROUTE_ON_WHEN_SCREEN_ON}.
140 public final int route;
144 * <p>null if {@link #route} is {@link #ROUTE_OFF}, otherwise not null.
148 public CardEmulationRoute(int route, NfcExecutionEnvironment nfcEe) {
149 if (route == ROUTE_OFF && nfcEe != null) {
151 } else if (route != ROUTE_OFF && nfcEe == null) {
152 throw new IllegalArgumentException("must specifiy a NFC-EE for this route");
154 this.route = route;
180 int route = sService.getCardEmulationRoute(mPackageName);
181 return route == CardEmulationRoute.ROUTE_OFF ?
198 * @param route a {@link CardEmulationRoute}
200 public void setCardEmulationRoute(CardEmulationRoute route) {
202 sService.setCardEmulationRoute(mPackageName, route.route);