Home
last modified time | relevance | path

Searched refs:StatusCode (Results 1 – 25 of 181) sorted by relevance

12345678

/external/grpc-grpc/include/grpcpp/impl/codegen/
Dstatus.h34 Status() : code_(StatusCode::OK) { in Status()
37 static_assert(StatusCode::OK == static_cast<StatusCode>(GRPC_STATUS_OK), in Status()
40 StatusCode::CANCELLED == static_cast<StatusCode>(GRPC_STATUS_CANCELLED), in Status()
43 StatusCode::UNKNOWN == static_cast<StatusCode>(GRPC_STATUS_UNKNOWN), in Status()
45 static_assert(StatusCode::INVALID_ARGUMENT == in Status()
46 static_cast<StatusCode>(GRPC_STATUS_INVALID_ARGUMENT), in Status()
48 static_assert(StatusCode::DEADLINE_EXCEEDED == in Status()
49 static_cast<StatusCode>(GRPC_STATUS_DEADLINE_EXCEEDED), in Status()
52 StatusCode::NOT_FOUND == static_cast<StatusCode>(GRPC_STATUS_NOT_FOUND), in Status()
54 static_assert(StatusCode::ALREADY_EXISTS == in Status()
[all …]
/external/grpc-grpc/src/python/grpcio/grpc/
D_common.py40 cygrpc.StatusCode.ok: grpc.StatusCode.OK,
41 cygrpc.StatusCode.cancelled: grpc.StatusCode.CANCELLED,
42 cygrpc.StatusCode.unknown: grpc.StatusCode.UNKNOWN,
43 cygrpc.StatusCode.invalid_argument: grpc.StatusCode.INVALID_ARGUMENT,
44 cygrpc.StatusCode.deadline_exceeded: grpc.StatusCode.DEADLINE_EXCEEDED,
45 cygrpc.StatusCode.not_found: grpc.StatusCode.NOT_FOUND,
46 cygrpc.StatusCode.already_exists: grpc.StatusCode.ALREADY_EXISTS,
47 cygrpc.StatusCode.permission_denied: grpc.StatusCode.PERMISSION_DENIED,
48 cygrpc.StatusCode.unauthenticated: grpc.StatusCode.UNAUTHENTICATED,
49 cygrpc.StatusCode.resource_exhausted: grpc.StatusCode.RESOURCE_EXHAUSTED,
[all …]
D__init__.py212 class StatusCode(enum.Enum): class
214 OK = (_cygrpc.StatusCode.ok, 'ok')
215 CANCELLED = (_cygrpc.StatusCode.cancelled, 'cancelled')
216 UNKNOWN = (_cygrpc.StatusCode.unknown, 'unknown')
217 INVALID_ARGUMENT = (_cygrpc.StatusCode.invalid_argument, 'invalid argument')
218 DEADLINE_EXCEEDED = (_cygrpc.StatusCode.deadline_exceeded,
220 NOT_FOUND = (_cygrpc.StatusCode.not_found, 'not found')
221 ALREADY_EXISTS = (_cygrpc.StatusCode.already_exists, 'already exists')
222 PERMISSION_DENIED = (_cygrpc.StatusCode.permission_denied,
224 RESOURCE_EXHAUSTED = (_cygrpc.StatusCode.resource_exhausted,
[all …]
/external/tensorflow/tensorflow/contrib/bigtable/kernels/
Dbigtable_lib.cc25 if (status.error_code() == ::grpc::StatusCode::ABORTED || in GrpcStatusToTfStatus()
26 status.error_code() == ::grpc::StatusCode::UNAVAILABLE || in GrpcStatusToTfStatus()
27 status.error_code() == ::grpc::StatusCode::OUT_OF_RANGE) { in GrpcStatusToTfStatus()
28 grpc_code = ::grpc::StatusCode::INTERNAL; in GrpcStatusToTfStatus()
37 ::google::cloud::StatusCode code) { in GcpErrorCodeToTfErrorCode()
39 case ::google::cloud::StatusCode::kOk: in GcpErrorCodeToTfErrorCode()
41 case ::google::cloud::StatusCode::kCancelled: in GcpErrorCodeToTfErrorCode()
43 case ::google::cloud::StatusCode::kUnknown: in GcpErrorCodeToTfErrorCode()
45 case ::google::cloud::StatusCode::kInvalidArgument: in GcpErrorCodeToTfErrorCode()
47 case ::google::cloud::StatusCode::kDeadlineExceeded: in GcpErrorCodeToTfErrorCode()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DClientServerTest.cs79 Assert.AreEqual(StatusCode.Unknown, ex.Status.StatusCode); in UnaryCall_ServerHandlerThrows()
82 Assert.AreEqual(StatusCode.Unknown, ex2.Status.StatusCode); in UnaryCall_ServerHandlerThrows()
90 throw new RpcException(new Status(StatusCode.Unauthenticated, "")); in UnaryCall_ServerHandlerThrowsRpcException()
94 Assert.AreEqual(StatusCode.Unauthenticated, ex.Status.StatusCode); in UnaryCall_ServerHandlerThrowsRpcException()
98 Assert.AreEqual(StatusCode.Unauthenticated, ex2.Status.StatusCode); in UnaryCall_ServerHandlerThrowsRpcException()
108 throw new RpcException(new Status(StatusCode.Unauthenticated, ""), trailers); in UnaryCall_ServerHandlerThrowsRpcExceptionWithTrailers()
112 Assert.AreEqual(StatusCode.Unauthenticated, ex.Status.StatusCode); in UnaryCall_ServerHandlerThrowsRpcExceptionWithTrailers()
118 Assert.AreEqual(StatusCode.Unauthenticated, ex2.Status.StatusCode); in UnaryCall_ServerHandlerThrowsRpcExceptionWithTrailers()
129 context.Status = new Status(StatusCode.Unauthenticated, ""); in UnaryCall_ServerHandlerSetsStatus()
134 Assert.AreEqual(StatusCode.Unauthenticated, ex.Status.StatusCode); in UnaryCall_ServerHandlerSetsStatus()
[all …]
DTimeoutsTest.cs100 … Assert.Contains(ex.Status.StatusCode, new[] { StatusCode.DeadlineExceeded, StatusCode.Internal }); in DeadlineInThePast()
114 … Assert.Contains(ex.Status.StatusCode, new[] { StatusCode.DeadlineExceeded, StatusCode.Internal }); in DeadlineExceededStatusOnTimeout()
134 … Assert.Contains(ex.Status.StatusCode, new[] { StatusCode.DeadlineExceeded, StatusCode.Internal }); in ServerReceivesCancellationOnTimeout()
DCallCancellationTest.cs83 Assert.AreEqual(StatusCode.Cancelled, ex.Status.StatusCode); in ClientStreamingCall_CancelAfterBegin()
120 Assert.AreEqual(StatusCode.Cancelled, ex.Status.StatusCode); in ClientStreamingCall_ServerSideReadAfterCancelNotificationReturnsNull()
146 Assert.AreEqual(StatusCode.Cancelled, ex.Status.StatusCode); in ClientStreamingCall_CancelServerSideRead()
178 Assert.AreEqual(StatusCode.Cancelled, ex.Status.StatusCode); in ServerStreamingCall_CancelClientSideRead()
DMarshallingErrorsTest.cs87 Assert.AreEqual(StatusCode.Internal, ex.Status.StatusCode); in ResponseParsingError_UnaryResponse()
101 Assert.AreEqual(StatusCode.Internal, ex.Status.StatusCode); in ResponseParsingError_StreamingResponse()
114 Assert.AreEqual(StatusCode.Unknown, ex.Status.StatusCode); in RequestParsingError_UnaryRequest()
/external/ims/rcs/rcsservice/src/com/android/service/ims/
DRcsUtils.java35 import com.android.ims.internal.uce.common.StatusCode;
51 if(sipStatusCode == StatusCode.UCE_SUCCESS || in statusCodeToResultCode()
52 sipStatusCode == StatusCode.UCE_SUCCESS_ASYC_UPDATE){ in statusCodeToResultCode()
56 if(sipStatusCode == StatusCode.UCE_INVALID_PARAM) { in statusCodeToResultCode()
60 if(sipStatusCode == StatusCode.UCE_FETCH_ERROR) { in statusCodeToResultCode()
64 if(sipStatusCode == StatusCode.UCE_REQUEST_TIMEOUT) { in statusCodeToResultCode()
68 if(sipStatusCode == StatusCode.UCE_INSUFFICIENT_MEMORY) { in statusCodeToResultCode()
72 if(sipStatusCode == StatusCode.UCE_LOST_NET) { in statusCodeToResultCode()
76 if(sipStatusCode == StatusCode.UCE_NOT_SUPPORTED){ in statusCodeToResultCode()
80 if(sipStatusCode == StatusCode.UCE_NOT_FOUND){ in statusCodeToResultCode()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
DAsyncCallTest.cs89 CreateClientSideStatus(StatusCode.InvalidArgument), in AsyncUnary_NonSuccessStatusCode()
93 AssertUnaryResponseError(asyncCall, fakeCall, resultTask, StatusCode.InvalidArgument); in AsyncUnary_NonSuccessStatusCode()
106 AssertUnaryResponseError(asyncCall, fakeCall, resultTask, StatusCode.Internal); in AsyncUnary_NullResponsePayload()
170 CreateClientSideStatus(StatusCode.InvalidArgument), in ClientStreaming_NoRequest_NonSuccessStatusCode()
174 AssertUnaryResponseError(asyncCall, fakeCall, resultTask, StatusCode.InvalidArgument); in ClientStreaming_NoRequest_NonSuccessStatusCode()
216 CreateClientSideStatus(StatusCode.Internal), in ClientStreaming_WriteFailureThrowsRpcException()
221 Assert.AreEqual(StatusCode.Internal, ex.Status.StatusCode); in ClientStreaming_WriteFailureThrowsRpcException()
223 AssertUnaryResponseError(asyncCall, fakeCall, resultTask, StatusCode.Internal); in ClientStreaming_WriteFailureThrowsRpcException()
235 CreateClientSideStatus(StatusCode.Internal), in ClientStreaming_WriteFailureThrowsRpcException2()
242 Assert.AreEqual(StatusCode.Internal, ex.Status.StatusCode); in ClientStreaming_WriteFailureThrowsRpcException2()
[all …]
/external/grpc-grpc/src/cpp/util/
Derror_details.cc27 return Status(StatusCode::FAILED_PRECONDITION, ""); in ExtractErrorDetails()
30 return Status(StatusCode::INVALID_ARGUMENT, ""); in ExtractErrorDetails()
37 return Status(StatusCode::FAILED_PRECONDITION, ""); in SetErrorDetails()
39 StatusCode code = StatusCode::UNKNOWN; in SetErrorDetails()
40 if (from.code() >= StatusCode::OK && in SetErrorDetails()
41 from.code() <= StatusCode::UNAUTHENTICATED) { in SetErrorDetails()
42 code = static_cast<StatusCode>(from.code()); in SetErrorDetails()
/external/grpc-grpc/test/core/tsi/alts/fake_handshaker/
Dfake_handshaker_server.cc108 return Status(StatusCode::INVALID_ARGUMENT, "Request is empty."); in ProcessRequest()
117 return Status(StatusCode::FAILED_PRECONDITION, kWrongStateError); in ProcessClientStart()
120 return Status(StatusCode::INVALID_ARGUMENT, in ProcessClientStart()
124 return Status(StatusCode::INVALID_ARGUMENT, in ProcessClientStart()
130 response->mutable_status()->set_code(StatusCode::OK); in ProcessClientStart()
143 return Status(StatusCode::FAILED_PRECONDITION, kWrongStateError); in ProcessServerStart()
146 return Status(StatusCode::INVALID_ARGUMENT, in ProcessServerStart()
150 return Status(StatusCode::INVALID_ARGUMENT, in ProcessServerStart()
165 return Status(StatusCode::UNKNOWN, kInvalidFrameError); in ProcessServerStart()
168 response->mutable_status()->set_code(StatusCode::OK); in ProcessServerStart()
[all …]
/external/grpc-grpc/test/cpp/qps/
Dqps_worker.cc109 return Status(StatusCode::RESOURCE_EXHAUSTED, "Client worker busy"); in RunClient()
123 return Status(StatusCode::RESOURCE_EXHAUSTED, "Server worker busy"); in RunServer()
141 return Status(StatusCode::RESOURCE_EXHAUSTED, "Quitting worker busy"); in QuitWorker()
184 return Status(StatusCode::INVALID_ARGUMENT, "Couldn't read args"); in RunClientBody()
187 return Status(StatusCode::INVALID_ARGUMENT, "Invalid setup arg"); in RunClientBody()
192 return Status(StatusCode::INVALID_ARGUMENT, "Couldn't create client"); in RunClientBody()
197 return Status(StatusCode::UNKNOWN, "Client couldn't report init status"); in RunClientBody()
204 return Status(StatusCode::INVALID_ARGUMENT, "Invalid mark"); in RunClientBody()
208 return Status(StatusCode::UNKNOWN, "Client couldn't respond to mark"); in RunClientBody()
224 return Status(StatusCode::INVALID_ARGUMENT, "Couldn't read server args"); in RunServerBody()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core/
DStatus.cs29 public static readonly Status DefaultSuccess = new Status(StatusCode.OK, "");
34 public static readonly Status DefaultCancelled = new Status(StatusCode.Cancelled, "");
36 readonly StatusCode statusCode;
44 public Status(StatusCode statusCode, string detail) in Status()
53 public StatusCode StatusCode property
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DGeneratedServiceBaseTest.cs64 Assert.AreEqual(StatusCode.Unimplemented, ex.Status.StatusCode); in UnimplementedByDefault_Unary()
73 Assert.AreEqual(StatusCode.Unimplemented, ex.Status.StatusCode); in UnimplementedByDefault_ClientStreaming()
82 Assert.AreEqual(StatusCode.Unimplemented, ex.Status.StatusCode); in UnimplementedByDefault_ServerStreamingCall()
91 Assert.AreEqual(StatusCode.Unimplemented, ex.Status.StatusCode); in UnimplementedByDefault_DuplexStreamingCall()
DInteropClient.cs412 Assert.AreEqual(StatusCode.Cancelled, ex.Status.StatusCode); in RunCancelAfterBeginAsync()
443 Assert.AreEqual(StatusCode.Cancelled, ex.Status.StatusCode); in RunCancelAfterFirstResponseAsync()
477 … Assert.Contains(ex.Status.StatusCode, new[] { StatusCode.DeadlineExceeded, StatusCode.Internal }); in RunTimeoutOnSleepingServerAsync()
542 Assert.AreEqual(StatusCode.Unknown, e.Status.StatusCode); in RunStatusCodeAndMessageAsync()
562 Assert.AreEqual(StatusCode.Unknown, e.Status.StatusCode); in RunStatusCodeAndMessageAsync()
575 Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); in RunUnimplementedService()
584 Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); in RunUnimplementedMethod()
601 Assert.AreEqual(StatusCode.InvalidArgument, e.Status.StatusCode); in RunClientCompressedUnary()
651 Assert.AreEqual(StatusCode.InvalidArgument, e.Status.StatusCode); in RunClientCompressedStreamingAsync()
/external/grpc-grpc/test/cpp/util/
Derror_details_test.cc38 Status from(static_cast<StatusCode>(expected.code()), expected.message(), in TEST()
50 EXPECT_EQ(StatusCode::FAILED_PRECONDITION, in TEST()
56 Status from(StatusCode::INTERNAL, "", error_details); in TEST()
58 EXPECT_EQ(StatusCode::INVALID_ARGUMENT, in TEST()
79 EXPECT_EQ(StatusCode::FAILED_PRECONDITION, in TEST()
94 EXPECT_EQ(StatusCode::UNKNOWN, to.error_code()); in TEST()
100 for (int c = StatusCode::OK; c <= StatusCode::UNAUTHENTICATED; c++) { in TEST()
/external/grpc-grpc/test/cpp/interop/
Dhttp2_client.cc57 bool Http2Client::AssertStatusCode(const Status& s, StatusCode expected_code) { in AssertStatusCode()
84 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::INTERNAL); in DoRstAfterHeader()
95 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::INTERNAL); in DoRstAfterData()
106 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::INTERNAL); in DoRstDuringData()
116 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::OK); in DoGoaway()
126 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::OK); in DoGoaway()
136 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::OK); in DoPing()
146 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::OK); in MaxStreamsWorker()
157 AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::OK); in DoMaxStreams()
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_rpc_test.py202 self.assertEqual(grpc.StatusCode.UNIMPLEMENTED,
227 self.assertIs(grpc.StatusCode.OK, call.code())
289 self.assertIs(grpc.StatusCode.OK, call.code())
475 self.assertIs(grpc.StatusCode.OK, response_iterator.code())
496 self.assertIs(grpc.StatusCode.CANCELLED, response_future.code())
511 self.assertIs(grpc.StatusCode.CANCELLED,
514 self.assertIs(grpc.StatusCode.CANCELLED, response_iterator.code())
539 self.assertIs(grpc.StatusCode.CANCELLED, response_future.code())
558 self.assertIs(grpc.StatusCode.CANCELLED, response_iterator.code())
576 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED,
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/reflection/
D_reflection_servicer_test.py79 error_code=grpc.StatusCode.NOT_FOUND.value[0],
80 error_message=grpc.StatusCode.NOT_FOUND.value[1].encode(),
103 error_code=grpc.StatusCode.NOT_FOUND.value[0],
104 error_message=grpc.StatusCode.NOT_FOUND.value[1].encode(),
132 error_code=grpc.StatusCode.NOT_FOUND.value[0],
133 error_message=grpc.StatusCode.NOT_FOUND.value[1].encode(),
157 error_code=grpc.StatusCode.NOT_FOUND.value[0],
158 error_message=grpc.StatusCode.NOT_FOUND.value[1].encode(),
/external/grpc-grpc/src/cpp/ext/
Dproto_server_reflection.cc27 using grpc::StatusCode;
79 status = Status(StatusCode::UNIMPLEMENTED, ""); in ServerReflectionInfo()
103 return Status(StatusCode::NOT_FOUND, "Services not found."); in ListService()
122 return Status(StatusCode::NOT_FOUND, "File not found."); in GetFileByName()
139 return Status(StatusCode::NOT_FOUND, "Symbol not found."); in GetFileContainingSymbol()
156 return Status(StatusCode::NOT_FOUND, "Type not found."); in GetFileContainingExtension()
163 return Status(StatusCode::NOT_FOUND, "Extension not found."); in GetFileContainingExtension()
180 return Status(StatusCode::NOT_FOUND, "Type not found."); in GetAllExtensionNumbers()
/external/grpc-grpc/src/python/grpcio_tests/tests/testing/
D_server_test.py48 self.assertIs(code, grpc.StatusCode.OK)
57 self.assertIs(code, grpc.StatusCode.OK)
70 self.assertIs(code, grpc.StatusCode.OK)
95 self.assertIs(code, grpc.StatusCode.OK)
126 self.assertIs(code, grpc.StatusCode.OK)
135 self.assertIsNot(code, grpc.StatusCode.OK)
150 self.assertIs(code, grpc.StatusCode.DEADLINE_EXCEEDED)
165 self.assertIs(code, grpc.StatusCode.DEADLINE_EXCEEDED)
/external/deqp/external/openglcts/scripts/verify/
Dverify_gl.py29 from log_parser import BatchResultParser, StatusCode
34 StatusCode.PASS,
35 StatusCode.COMPATIBILITY_WARNING,
36 StatusCode.QUALITY_WARNING,
37 StatusCode.NOT_SUPPORTED
/external/syzkaller/vendor/google.golang.org/api/compute/v0.beta/
Dcompute-gen.go17962 if res != nil && res.StatusCode == http.StatusNotModified {
17967 Code: res.StatusCode,
17981 HTTPStatusCode: res.StatusCode,
18153 if res != nil && res.StatusCode == http.StatusNotModified {
18158 Code: res.StatusCode,
18172 HTTPStatusCode: res.StatusCode,
18380 if res != nil && res.StatusCode == http.StatusNotModified {
18385 Code: res.StatusCode,
18399 HTTPStatusCode: res.StatusCode,
18640 if res != nil && res.StatusCode == http.StatusNotModified {
[all …]
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
DMathClientServerTests.cs81 Assert.AreEqual(StatusCode.InvalidArgument, ex.Status.StatusCode); in DivByZero()
127 Assert.AreEqual(StatusCode.Cancelled, e.Status.StatusCode); in FibWithCancel()
141 … Assert.Contains(ex.Status.StatusCode, new[] { StatusCode.DeadlineExceeded, StatusCode.Internal }); in FibWithDeadline()

12345678