Home | History | Annotate | Download | only in server

Lines Matching refs:Future

91 import java.util.concurrent.Future;
258 final Future<Intent> backgroundChanged = mServiceContext.nextBroadcastIntent(
314 Future<Void> future;
318 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
321 future.get();
327 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
330 future.get();
337 future = expectRulesChanged(UID_A, RULE_REJECT_METERED);
340 future.get();
347 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
350 future.get();
355 Future<Void> future;
359 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
362 future.get();
368 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
371 future.get();
377 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
380 future.get();
385 Future<Void> future;
390 future = expectRulesChanged(UID_A, RULE_REJECT_METERED);
393 future.get();
399 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
402 future.get();
408 future = expectRulesChanged(UID_A, RULE_REJECT_METERED);
411 future.get();
416 Future<Void> future;
421 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
425 future.get();
431 future = expectRulesChanged(UID_A, RULE_REJECT_METERED);
434 future.get();
440 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
443 future.get();
582 Future<Void> future;
597 future = expectMeteredIfacesChanged();
601 future.get();
622 future = expectMeteredIfacesChanged(TEST_IFACE);
627 future.get();
632 Future<Void> future;
637 future = expectRulesChanged(UID_A, RULE_REJECT_METERED);
640 future.get();
646 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL);
651 future.get();
658 Future<Void> future;
659 Future<String> tagFuture;
681 future = expectMeteredIfacesChanged();
686 future.get();
708 future = expectMeteredIfacesChanged(TEST_IFACE);
712 future.get();
775 future = expectClearNotifications();
781 future.get();
789 Future<Void> future;
790 Future<String> tagFuture;
815 future = expectMeteredIfacesChanged(TEST_IFACE);
821 future.get();
857 private Future<Void> expectClearNotifications() throws Exception {
858 final FutureAnswer future = new FutureAnswer();
861 expectLastCall().andAnswer(future).anyTimes();
862 return future;
865 private Future<String> expectEnqueueNotification() throws Exception {
904 private Future<Void> expectRulesChanged(int uid, int policy) throws Exception {
905 final FutureAnswer future = new FutureAnswer();
907 expectLastCall().andAnswer(future);
908 return future;
911 private Future<Void> expectMeteredIfacesChanged(String... ifaces) throws Exception {
912 final FutureAnswer future = new FutureAnswer();
914 expectLastCall().andAnswer(future);
915 return future;
918 private Future<Void> expectPolicyDataEnable(int type, boolean enabled) throws Exception {
919 final FutureAnswer future = new FutureAnswer();
921 expectLastCall().andAnswer(future);
922 return future;
980 final IdleFuture future = new IdleFuture();
981 mService.addIdleHandler(future);
982 return future;