Searched refs:CallbackValue (Results 1 – 2 of 2) sorted by relevance
246 public static class CallbackValue { class in TetheringManagerTest.StartTetheringCallback249 private CallbackValue(final int e) { in CallbackValue() method in TetheringManagerTest.StartTetheringCallback.CallbackValue253 public static class OnTetheringStarted extends CallbackValue {257 public static class OnTetheringFailed extends CallbackValue {267 private final ArrayTrackRecord<CallbackValue>.ReadHead mHistory =268 new ArrayTrackRecord<CallbackValue>().newReadHead();272 mHistory.add(new CallbackValue.OnTetheringStarted()); in onTetheringStarted()277 mHistory.add(new CallbackValue.OnTetheringFailed(error)); in onTetheringFailed()281 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyTetheringStarted()284 cv instanceof CallbackValue.OnTetheringStarted); in verifyTetheringStarted()[all …]
810 public static class CallbackValue { class in ConnectivityManagerTest.TestSocketKeepaliveCallback814 private CallbackValue(final CallbackType type, final int error) { in CallbackValue() method in ConnectivityManagerTest.TestSocketKeepaliveCallback.CallbackValue819 public static class OnStartedCallback extends CallbackValue {823 public static class OnStoppedCallback extends CallbackValue {827 public static class OnErrorCallback extends CallbackValue {834 && this.callbackType == ((CallbackValue) o).callbackType in equals()835 && this.error == ((CallbackValue) o).error; in equals()844 private final LinkedBlockingQueue<CallbackValue> mCallbacks = new LinkedBlockingQueue<>();848 mCallbacks.add(new CallbackValue.OnStartedCallback()); in onStarted()853 mCallbacks.add(new CallbackValue.OnStoppedCallback()); in onStopped()[all …]