Home
last modified time | relevance | path

Searched refs:ThreadNetworkException (Results 1 – 21 of 21) sorted by relevance

/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkExceptionTest.java19 import static android.net.thread.ThreadNetworkException.ERROR_INTERNAL_ERROR;
20 import static android.net.thread.ThreadNetworkException.ERROR_THREAD_DISABLED;
21 import static android.net.thread.ThreadNetworkException.ERROR_UNKNOWN;
27 import android.net.thread.ThreadNetworkException;
47 ThreadNetworkException errorThreadDisabled = in constructor_validValues_valuesAreConnectlySet()
48 new ThreadNetworkException(ERROR_THREAD_DISABLED, "Thread disabled error!"); in constructor_validValues_valuesAreConnectlySet()
49 ThreadNetworkException errorInternalError = in constructor_validValues_valuesAreConnectlySet()
50 new ThreadNetworkException(ERROR_INTERNAL_ERROR, "internal error!"); in constructor_validValues_valuesAreConnectlySet()
62 () -> new ThreadNetworkException(ERROR_UNKNOWN, null /* message */)); in constructor_nullMessage_throwsNullPointerException()
67 assertThrows(IllegalArgumentException.class, () -> new ThreadNetworkException(0, "0")); in constructor_tooSmallErrorCode_throwsIllegalArgumentException()
DThreadNetworkControllerTest.java34 import static android.net.thread.ThreadNetworkException.ERROR_ABORTED;
35 import static android.net.thread.ThreadNetworkException.ERROR_FAILED_PRECONDITION;
36 import static android.net.thread.ThreadNetworkException.ERROR_REJECTED_BY_PEER;
37 import static android.net.thread.ThreadNetworkException.ERROR_THREAD_DISABLED;
63 import android.net.thread.ThreadNetworkException;
355 private static <V> OutcomeReceiver<V, ThreadNetworkException> newOutcomeReceiver( in newOutcomeReceiver()
357 return new OutcomeReceiver<V, ThreadNetworkException>() { in newOutcomeReceiver()
364 public void onError(ThreadNetworkException e) { in newOutcomeReceiver()
407 var threadException = (ThreadNetworkException) thrown.getCause();
435 var threadException = (ThreadNetworkException) thrown.getCause();
[all …]
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DActiveOperationalDatasetReceiverWrapper.java19 import static android.net.thread.ThreadNetworkException.ERROR_INTERNAL_ERROR;
20 import static android.net.thread.ThreadNetworkException.ERROR_UNAVAILABLE;
24 import android.net.thread.ThreadNetworkException;
79 if (e instanceof ThreadNetworkException) { in onError()
80 ThreadNetworkException threadException = (ThreadNetworkException) e; in onError()
DOperationReceiverWrapper.java19 import static android.net.thread.ThreadNetworkException.ERROR_INTERNAL_ERROR;
20 import static android.net.thread.ThreadNetworkException.ERROR_UNAVAILABLE;
23 import android.net.thread.ThreadNetworkException;
91 if (e instanceof ThreadNetworkException) { in onError()
92 ThreadNetworkException threadException = (ThreadNetworkException) e; in onError()
DThreadNetworkControllerService.java33 import static android.net.thread.ThreadNetworkException.ERROR_ABORTED;
34 import static android.net.thread.ThreadNetworkException.ERROR_BUSY;
35 import static android.net.thread.ThreadNetworkException.ERROR_FAILED_PRECONDITION;
36 import static android.net.thread.ThreadNetworkException.ERROR_INTERNAL_ERROR;
37 import static android.net.thread.ThreadNetworkException.ERROR_REJECTED_BY_PEER;
38 import static android.net.thread.ThreadNetworkException.ERROR_RESOURCE_EXHAUSTED;
39 import static android.net.thread.ThreadNetworkException.ERROR_RESPONSE_BAD_FORMAT;
40 import static android.net.thread.ThreadNetworkException.ERROR_THREAD_DISABLED;
41 import static android.net.thread.ThreadNetworkException.ERROR_TIMEOUT;
42 import static android.net.thread.ThreadNetworkException.ERROR_UNSUPPORTED_CHANNEL;
[all …]
DThreadNetworkShellCommand.java25 import android.net.thread.ThreadNetworkException;
260 future.completeExceptionally(new ThreadNetworkException(errorCode, errorMessage)); in newOperationReceiver()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkController.java159 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in setEnabled()
192 @NonNull OutcomeReceiver<ActiveOperationalDataset, ThreadNetworkException> receiver) { in createRandomizedDataset()
493 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in join()
545 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in scheduleMigration()
571 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in leave()
596 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in setTestNetworkAsUpstream()
638 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in setChannelMaxPowers()
701 OutcomeReceiver<T, ThreadNetworkException> receiver, in propagateError()
707 () -> receiver.onError(new ThreadNetworkException(errorCode, errorMsg))); in propagateError()
716 final OutcomeReceiver<ActiveOperationalDataset, ThreadNetworkException> mResultReceiver;
[all …]
DThreadNetworkException.java36 public class ThreadNetworkException extends Exception { class
161 public ThreadNetworkException(@ErrorCode int errorCode, @NonNull String message) { in ThreadNetworkException() method in ThreadNetworkException
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadNetworkControllerTest.java19 import static android.net.thread.ThreadNetworkException.ERROR_UNSUPPORTED_OPERATION;
103 ThreadNetworkException thrown = (ThreadNetworkException) exception.getCause(); in setChannelMaxPowers_withPrivilegedPermission_success()
157 private static <V> OutcomeReceiver<V, ThreadNetworkException> newOutcomeReceiver( in newOutcomeReceiver()
159 return new OutcomeReceiver<V, ThreadNetworkException>() { in newOutcomeReceiver()
166 public void onError(ThreadNetworkException e) { in newOutcomeReceiver()
DThreadNetworkShellCommandTest.java21 import static android.net.thread.ThreadNetworkException.ERROR_THREAD_DISABLED;
99 ThreadNetworkException cause = (ThreadNetworkException) thrown.getCause(); in forceStopOtDaemon_forceStopEnabled_canNotEnableThread()
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/
DThreadNetworkSettingsFragment.java32 import android.net.thread.ThreadNetworkException;
178 new OutcomeReceiver<Void, ThreadNetworkException>() { in doJoin()
180 public void onError(ThreadNetworkException error) { in doJoin()
196 public void onError(ThreadNetworkException error) { in doLeave()
221 new OutcomeReceiver<Void, ThreadNetworkException>() { in doMigration()
230 public void onError(ThreadNetworkException e) { in doMigration()
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/
DThreadNetworkControllerTest.java20 import static android.net.thread.ThreadNetworkException.ERROR_UNAVAILABLE;
21 import static android.net.thread.ThreadNetworkException.ERROR_UNSUPPORTED_CHANNEL;
22 import static android.net.thread.ThreadNetworkException.ERROR_UNSUPPORTED_OPERATION;
235 public void onError(ThreadNetworkException e) { in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity()
278 public void onError(ThreadNetworkException e) { in join_callbackIsInvokedWithCallingAppIdentity()
326 public void onError(ThreadNetworkException e) { in scheduleMigration_callbackIsInvokedWithCallingAppIdentity()
365 public void onError(ThreadNetworkException e) { in leave_callbackIsInvokedWithCallingAppIdentity()
410 public void onError(ThreadNetworkException e) { in setChannelMaxPowers_callbackIsInvokedWithCallingAppIdentity()
DThreadNetworkExceptionTest.java35 assertThrows(IllegalArgumentException.class, () -> new ThreadNetworkException(14, "14")); in constructor_tooLargeErrorCode_throwsIllegalArgumentException()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DThreadNetworkControllerWrapper.java34 import android.net.thread.ThreadNetworkException;
194 private static <V> OutcomeReceiver<V, ThreadNetworkException> newOutcomeReceiver( in newOutcomeReceiver()
196 return new OutcomeReceiver<V, ThreadNetworkException>() { in newOutcomeReceiver()
203 public void onError(ThreadNetworkException e) { in newOutcomeReceiver()
/packages/apps/Settings/src/com/android/settings/connecteddevice/threadnetwork/
DThreadNetworkToggleController.kt21 import android.net.thread.ThreadNetworkException in <lambda>()
108 object : OutcomeReceiver<Void?, ThreadNetworkException> { in <lambda>()
109 override fun onError(e: ThreadNetworkException) { in <lambda>()
DBaseThreadNetworkController.kt21 import android.net.thread.ThreadNetworkException
40 receiver: OutcomeReceiver<Void?, ThreadNetworkException>
DThreadNetworkUtils.kt23 import android.net.thread.ThreadNetworkException
45 receiver: OutcomeReceiver<Void?, ThreadNetworkException> in getThreadNetworkController()
/packages/apps/Settings/tests/unit/src/com/android/settings/connecteddevice/threadnetwork/
DFakeThreadNetworkController.kt19 import android.net.thread.ThreadNetworkException
33 receiver: OutcomeReceiver<Void?, ThreadNetworkException> in setEnabled()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkControllerServiceTest.java22 import static android.net.thread.ThreadNetworkException.ERROR_FAILED_PRECONDITION;
23 import static android.net.thread.ThreadNetworkException.ERROR_INTERNAL_ERROR;
24 import static android.net.thread.ThreadNetworkException.ERROR_THREAD_DISABLED;
62 import android.net.thread.ThreadNetworkException;
433 ThreadNetworkException failure = (ThreadNetworkException) thrown.getCause(); in userRestriction_setEnabledWhenUserRestricted_failedPreconditionError()
558 future.completeExceptionally(new ThreadNetworkException(errorCode, errorMessage)); in newOperationReceiver()
DThreadNetworkCountryCodeTest.java19 import static android.net.thread.ThreadNetworkException.ERROR_INTERNAL_ERROR;
/packages/modules/Connectivity/framework-t/api/
Dsystem-current.txt501 …meReceiver<android.net.thread.ActiveOperationalDataset,android.net.thread.ThreadNetworkException>);
504 …or, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.net.thread.ThreadNetworkException>);
505 …or, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.net.thread.ThreadNetworkException>);
508 …or, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.net.thread.ThreadNetworkException>);
509 …or, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.net.thread.ThreadNetworkException>);
534 …@FlaggedApi("com.android.net.thread.flags.thread_enabled") public class ThreadNetworkException ext…
535 ctor public ThreadNetworkException(int, @NonNull String);