Home
last modified time | relevance | path

Searched refs:CallbackType (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java159 public enum CallbackType { enum in CtsTetheringUtils.TestTetheringEventCallback
171 public final CallbackType callbackType;
175 private CallbackValue(final CallbackType type, final Object param, final int param2) { in CallbackValue()
196 mHistory.add(new CallbackValue(CallbackType.ON_SUPPORTED, null, (supported ? 1 : 0))); in onTetheringSupported()
201 mHistory.add(new CallbackValue(CallbackType.ON_UPSTREAM, network, 0)); in onUpstreamChanged()
207 mHistory.add(new CallbackValue(CallbackType.ON_TETHERABLE_REGEX, reg, 0)); in onTetherableInterfaceRegexpsChanged()
222 mHistory.add(new CallbackValue(CallbackType.ON_TETHERABLE_IFACES, interfaces, 0)); in onTetherableInterfacesChanged()
234 mHistory.add(new CallbackValue(CallbackType.ON_TETHERED_IFACES, interfaces, 0)); in onTetheredInterfacesChanged()
248 mHistory.add(new CallbackValue(CallbackType.ON_ERROR, ifName, error)); in onError()
253 mHistory.add(new CallbackValue(CallbackType.ON_CLIENTS, clients, 0)); in onClientsChanged()
[all …]
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java81 private final ArrayTrackRecord<CallbackType>.ReadHead mCallbackHistory =
82 new ArrayTrackRecord<CallbackType>().newReadHead();
178 new CallbackType.OnQosCallbackRegister(qosCallbackId, filter)); in onQosCallbackRegistered()
184 mWrapper.mCallbackHistory.add(new CallbackType.OnQosCallbackUnregister(qosCallbackId)); in onQosCallbackUnregistered()
338 public @NonNull ArrayTrackRecord<CallbackType>.ReadHead getCallbackHistory() { in getCallbackHistory()
346 abstract static class CallbackType { class in NetworkAgentWrapper
349 protected CallbackType(final int qosCallbackId) { in CallbackType() method in NetworkAgentWrapper.CallbackType
353 static class OnQosCallbackRegister extends CallbackType {
375 static class OnQosCallbackUnregister extends CallbackType {
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java1248 public enum CallbackType { ON_STARTED, ON_STOPPED, ON_ERROR }; enum in ConnectivityManagerTest.TestSocketKeepaliveCallback
1251 public final CallbackType callbackType;
1254 private CallbackValue(final CallbackType type, final int error) { in CallbackValue()
1260 OnStartedCallback() { super(CallbackType.ON_STARTED, 0); } in OnStartedCallback()
1264 OnStoppedCallback() { super(CallbackType.ON_STOPPED, 0); } in OnStoppedCallback()
1268 OnErrorCallback(final int error) { super(CallbackType.ON_ERROR, error); } in OnErrorCallback()
1542 if (cv.callbackType == TestSocketKeepaliveCallback.CallbackType.ON_ERROR) { in createConcurrentKeepalivesOfType()
1557 if (cv.callbackType == TestSocketKeepaliveCallback.CallbackType.ON_STARTED) { in createConcurrentKeepalivesOfType()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java5218 public enum CallbackType { ON_STARTED, ON_STOPPED, ON_ERROR } enum in TestKeepaliveCallback
5221 public CallbackType callbackType;
5224 public CallbackValue(CallbackType type) { in CallbackValue()
5227 assertTrue("onError callback must have error", type != CallbackType.ON_ERROR); in CallbackValue()
5230 public CallbackValue(CallbackType type, int error) { in CallbackValue()
5233 assertEquals("error can only be set for onError", type, CallbackType.ON_ERROR); in CallbackValue()
5253 mCallbacks.add(new CallbackValue(CallbackType.ON_STARTED)); in onStarted()
5258 mCallbacks.add(new CallbackValue(CallbackType.ON_STOPPED)); in onStopped()
5263 mCallbacks.add(new CallbackValue(CallbackType.ON_ERROR, error)); in onError()
5271 expectCallback(new CallbackValue(CallbackType.ON_STARTED)); in expectStarted()
[all …]