Searched refs:ThreadNetworkException (Results 1 – 21 of 21) sorted by relevance
19 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()
34 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 …]
19 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()
19 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()
33 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 …]
25 import android.net.thread.ThreadNetworkException;260 future.completeExceptionally(new ThreadNetworkException(errorCode, errorMessage)); in newOperationReceiver()
159 @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 …]
36 public class ThreadNetworkException extends Exception { class161 public ThreadNetworkException(@ErrorCode int errorCode, @NonNull String message) { in ThreadNetworkException() method in ThreadNetworkException
19 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()
21 import static android.net.thread.ThreadNetworkException.ERROR_THREAD_DISABLED;99 ThreadNetworkException cause = (ThreadNetworkException) thrown.getCause(); in forceStopOtDaemon_forceStopEnabled_canNotEnableThread()
32 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()
20 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()
35 assertThrows(IllegalArgumentException.class, () -> new ThreadNetworkException(14, "14")); in constructor_tooLargeErrorCode_throwsIllegalArgumentException()
34 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()
21 import android.net.thread.ThreadNetworkException in <lambda>()108 object : OutcomeReceiver<Void?, ThreadNetworkException> { in <lambda>()109 override fun onError(e: ThreadNetworkException) { in <lambda>()
21 import android.net.thread.ThreadNetworkException40 receiver: OutcomeReceiver<Void?, ThreadNetworkException>
23 import android.net.thread.ThreadNetworkException45 receiver: OutcomeReceiver<Void?, ThreadNetworkException> in getThreadNetworkController()
19 import android.net.thread.ThreadNetworkException33 receiver: OutcomeReceiver<Void?, ThreadNetworkException> in setEnabled()
22 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()
19 import static android.net.thread.ThreadNetworkException.ERROR_INTERNAL_ERROR;
501 …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);