/external/icu/icu4c/source/test/intltest/ |
D | measfmttest.cpp | 226 UErrorCode status = U_ZERO_ERROR; in TestCompatible53() local 228 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53() 229 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53() 230 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53() 231 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53() 232 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53() 233 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53() 234 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53() 235 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53() 236 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53() [all …]
|
/external/tensorflow/tensorflow/c/experimental/filesystem/ |
D | modular_filesystem_test.cc | 110 Status s = env_->GetFileSystemForFile(root_dir_, &fs); in SetUp() 179 // if the returned `Status` signals the unimplemented state. 180 bool UnimplementedOrReturnsCode(Status actual_status, Code expected_code) { in UnimplementedOrReturnsCode() 188 Status s = env_->GetFileSystemForFile(generic_path, &fs); in TEST_P() 226 Status status = env_->NewWritableFile(filepath, &new_file); in TEST_P() local 227 EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK); in TEST_P() 233 Status status = env_->NewWritableFile(filepath, &new_file); in TEST_P() local 234 EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::NOT_FOUND); in TEST_P() 239 Status status = env_->CreateDir(filepath); in TEST_P() local 240 if (!status.ok()) GTEST_SKIP() << "CreateDir() not supported: " << status; in TEST_P() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/ |
D | elementwise_test.cc | 22 #include "tensorflow/lite/delegates/gpu/common/status.h" 31 auto status = AbsTest(&exec_env_); in TEST_F() local 32 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 36 auto status = CosTest(&exec_env_); in TEST_F() local 37 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 41 auto status = CopyTest(&exec_env_); in TEST_F() local 42 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 46 auto status = EluTest(&exec_env_); in TEST_F() local 47 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 51 auto status = ExpTest(&exec_env_); in TEST_F() local [all …]
|
/external/tensorflow/tensorflow/c/eager/ |
D | c_api_test.cc | 54 TF_Status* status = TF_NewStatus(); in BM_InitOp() local 56 TFE_Context* ctx = TFE_NewContext(opts, status); in BM_InitOp() 57 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp() 69 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp() 70 TF_DeleteStatus(status); in BM_InitOp() 77 TF_Status* status = TF_NewStatus(); in BM_Execute() local 80 TFE_Context* ctx = TFE_NewContext(opts, status); in BM_Execute() 81 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute() 85 TFE_Op* matmul = TFE_NewOp(ctx, "MatMul", status); in BM_Execute() 86 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute() [all …]
|
D | c_api_test_util.cc | 33 TF_Status* status = TF_NewStatus(); in TestScalarTensorHandle() local 34 TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_FLOAT, nullptr, 0, status); in TestScalarTensorHandle() 36 TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status); in TestScalarTensorHandle() 37 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle() 39 TF_DeleteStatus(status); in TestScalarTensorHandle() 45 TF_Status* status = TF_NewStatus(); in TestScalarTensorHandle() local 46 TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_STRING, nullptr, 0, status); in TestScalarTensorHandle() 49 TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status); in TestScalarTensorHandle() 50 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle() 52 TF_DeleteStatus(status); in TestScalarTensorHandle() [all …]
|
D | c_api_experimental_test.cc | 42 TF_Status* status = TF_NewStatus(); in TEST() local 44 TFE_MonitoringNewCounter0("test/counter", status, "description"); in TEST() 45 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST() 46 TF_DeleteStatus(status); in TEST() 73 TF_Status* status = TF_NewStatus(); in TEST() local 74 auto* counter1 = TFE_MonitoringNewCounter1("test/counter1", status, in TEST() 76 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST() 81 auto* counter2 = TFE_MonitoringNewCounter2("test/counter2", status, in TEST() 83 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST() 84 TF_DeleteStatus(status); in TEST() [all …]
|
D | custom_device_test.cc | 30 std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( in TEST() local 33 TFE_Context* context = TFE_NewContext(opts, status.get()); in TEST() 35 ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); in TEST() 40 &arrived, &executed, status.get()); in TEST() 41 ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); in TEST() 45 TFE_TensorHandleCopyToDevice(hcpu, context, name, status.get()); in TEST() 48 ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); in TEST() 51 TFE_OpSetDevice(matmul.get(), name, status.get()); in TEST() 52 ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); in TEST() 55 TFE_Execute(matmul.get(), &retval, &num_retvals, status.get()); in TEST() [all …]
|
/external/selinux/libsemanage/src/ |
D | pywrap-test.py | 40 class Status(Exception): class 171 (status, slist) = semanage.semanage_seuser_list(sh) 172 if status < 0: 174 print("Query status (commit number): %s" % status) 191 (status, ulist) = semanage.semanage_user_list(sh) 192 if status < 0: 194 print("Query status (commit number): %s" % status) 209 (status, rlist) = semanage.semanage_user_get_roles(sh, user) 210 if status < 0: 221 (status, plist) = semanage.semanage_port_list(sh) [all …]
|
/external/pigweed/pw_status/ |
D | status_test.cc | 15 #include "pw_status/status.h" 22 constexpr Status::Code kInvalidCode = static_cast<Status::Code>(30); 24 TEST(Status, Default) { in TEST() argument 25 constexpr Status status; in TEST() local 26 static_assert(status.ok()); in TEST() 27 static_assert(Status() == status); in TEST() 30 TEST(Status, ConstructWithStatusCode) { in TEST() argument 31 constexpr Status status(PW_STATUS_ABORTED); in TEST() local 32 static_assert(status.IsAborted()); in TEST() 35 TEST(Status, AssignFromStatusCode) { in TEST() argument [all …]
|
D | try_test.cc | 22 Status ReturnStatus(Status status) { return status; } in ReturnStatus() argument 23 StatusWithSize ReturnStatusWithSize(StatusWithSize status) { return status; } in ReturnStatusWithSize() argument 25 Status TryStatus(Status status) { in TryStatus() argument 26 PW_TRY(ReturnStatus(status)); in TryStatus() 28 // Any status other than OK should have already returned. in TryStatus() 29 EXPECT_EQ(status, OkStatus()); in TryStatus() 30 return status; in TryStatus() 33 Status TryStatus(StatusWithSize status) { in TryStatus() argument 34 PW_TRY(ReturnStatusWithSize(status)); in TryStatus() 36 // Any status other than OK should have already returned. in TryStatus() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/kernels/ |
D | elementwise_test.mm | 18 #include "tensorflow/lite/delegates/gpu/common/status.h" 30 auto status = AbsTest(&exec_env_); 31 XCTAssertTrue(status.ok(), @"%s", std::string(status.message()).c_str()); 35 auto status = CosTest(&exec_env_); 36 XCTAssertTrue(status.ok(), @"%s", std::string(status.message()).c_str()); 40 auto status = CopyTest(&exec_env_); 41 XCTAssertTrue(status.ok(), @"%s", std::string(status.message()).c_str()); 45 auto status = EluTest(&exec_env_); 46 XCTAssertTrue(status.ok(), @"%s", std::string(status.message()).c_str()); 50 auto status = ExpTest(&exec_env_); [all …]
|
/external/icing/icing/absl_ports/ |
D | canonical_errors.cc | 17 #include "icing/text_classifier/lib3/utils/base/status.h" 23 libtextclassifier3::Status CancelledError(std::string_view error_message) { in CancelledError() 24 return libtextclassifier3::Status(libtextclassifier3::StatusCode::CANCELLED, in CancelledError() 28 libtextclassifier3::Status UnknownError(std::string_view error_message) { in UnknownError() 29 return libtextclassifier3::Status(libtextclassifier3::StatusCode::UNKNOWN, in UnknownError() 33 libtextclassifier3::Status InvalidArgumentError( in InvalidArgumentError() 35 return libtextclassifier3::Status( in InvalidArgumentError() 40 libtextclassifier3::Status DeadlineExceededError( in DeadlineExceededError() 42 return libtextclassifier3::Status( in DeadlineExceededError() 47 libtextclassifier3::Status NotFoundError(std::string_view error_message) { in NotFoundError() [all …]
|
/external/opencensus-java/contrib/grpc_util/src/main/java/io/opencensus/contrib/grpc/util/ |
D | StatusConverter.java | 20 * Utility class to convert between {@link io.opencensus.trace.Status} and {@link io.grpc.Status}. 27 * Returns a {@link io.opencensus.trace.Status.CanonicalCode} from a {@link io.grpc.Status.Code}. 29 * @param grpcCode the given {@code io.grpc.Status.Code}. 30 * @return a {@code io.opencensus.trace.Status.CanonicalCode} from a {@code io.grpc.Status.Code}. 33 public static io.opencensus.trace.Status.CanonicalCode fromGrpcCode( in fromGrpcCode() 34 io.grpc.Status.Code grpcCode) { in fromGrpcCode() 39 * Returns a {@link io.opencensus.trace.Status} from a {@link io.grpc.Status}. 41 * @param grpcStatus the given {@code io.grpc.Status}. 42 * @return a {@code io.opencensus.trace.Status} from a {@code io.grpc.Status}. 45 public static io.opencensus.trace.Status fromGrpcStatus(io.grpc.Status grpcStatus) { in fromGrpcStatus() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | reapits.c | 36 #define TEST_ASSERT_SUCCESS(status) UPRV_BLOCK_MACRO_BEGIN { \ argument 37 if (U_FAILURE(status)) { \ 38 … at file %s:%d - error = %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status)); \ 61 status = U_ZERO_ERROR; \ 62 re = uregex_openC(pattern, flags, NULL, &status); \ 63 TEST_ASSERT_SUCCESS(status); \ 67 uregex_setText(re, srcString, -1, &status); \ 68 TEST_ASSERT_SUCCESS(status); \ 69 if (U_SUCCESS(status)) { \ 74 TEST_ASSERT_SUCCESS(status); \ [all …]
|
/external/icu/icu4c/source/test/perf/convperf/ |
D | convperf.cpp | 24 UErrorCode status = U_ZERO_ERROR; in main() local 25 ConverterPerformanceTest test(argc, argv, status); in main() 26 if(U_FAILURE(status)){ in main() 27 return status; in main() 37 …rterPerformanceTest::ConverterPerformanceTest(int32_t argc, const char* argv[], UErrorCode& status) in ConverterPerformanceTest() argument 38 : UPerfTest(argc,argv,status){ in ConverterPerformanceTest() 128 UErrorCode status = U_ZERO_ERROR; in TestICU_CleanOpenAllConverters() local 129 UPerfFunction* pf = new ICUOpenAllConvertersFunction(TRUE, status); in TestICU_CleanOpenAllConverters() 130 if(U_FAILURE(status)){ in TestICU_CleanOpenAllConverters() 137 UErrorCode status = U_ZERO_ERROR; in TestICU_OpenAllConverters() local [all …]
|
/external/angle/third_party/abseil-cpp/absl/status/ |
D | status_test.cc | 15 #include "absl/status/status.h" 39 using Creator = absl::Status (*)( 42 using Classifier = bool (*)(const absl::Status&); 75 TEST(Status, CreateAndClassify) { in TEST() argument 79 // Ensure that the creator does, in fact, create status objects with the in TEST() 83 absl::Status status = test.creator( in TEST() local 86 EXPECT_EQ(test.code, status.code()); in TEST() 87 EXPECT_EQ(message, status.message()); in TEST() 89 // Ensure that the classifier returns true for a status produced by the in TEST() 91 EXPECT_TRUE(test.classifier(status)); in TEST() [all …]
|
/external/openscreen/third_party/abseil/src/absl/status/ |
D | status_test.cc | 15 #include "absl/status/status.h" 39 using Creator = absl::Status (*)(absl::string_view); 40 using Classifier = bool (*)(const absl::Status&); 73 TEST(Status, CreateAndClassify) { in TEST() argument 77 // Ensure that the creator does, in fact, create status objects with the in TEST() 81 absl::Status status = test.creator(message); in TEST() local 82 EXPECT_EQ(test.code, status.code()); in TEST() 83 EXPECT_EQ(message, status.message()); in TEST() 85 // Ensure that the classifier returns true for a status produced by the in TEST() 87 EXPECT_TRUE(test.classifier(status)); in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/status/ |
D | status_test.cc | 15 #include "absl/status/status.h" 39 using Creator = absl::Status (*)(absl::string_view); 40 using Classifier = bool (*)(const absl::Status&); 73 TEST(Status, CreateAndClassify) { in TEST() argument 77 // Ensure that the creator does, in fact, create status objects with the in TEST() 81 absl::Status status = test.creator(message); in TEST() local 82 EXPECT_EQ(test.code, status.code()); in TEST() 83 EXPECT_EQ(message, status.message()); in TEST() 85 // Ensure that the classifier returns true for a status produced by the in TEST() 87 EXPECT_TRUE(test.classifier(status)); in TEST() [all …]
|
/external/abseil-cpp/absl/status/ |
D | status_test.cc | 15 #include "absl/status/status.h" 39 using Creator = absl::Status (*)(absl::string_view); 40 using Classifier = bool (*)(const absl::Status&); 73 TEST(Status, CreateAndClassify) { in TEST() argument 77 // Ensure that the creator does, in fact, create status objects with the in TEST() 81 absl::Status status = test.creator(message); in TEST() local 82 EXPECT_EQ(test.code, status.code()); in TEST() 83 EXPECT_EQ(message, status.message()); in TEST() 85 // Ensure that the classifier returns true for a status produced by the in TEST() 87 EXPECT_TRUE(test.classifier(status)); in TEST() [all …]
|
D | status.h | 48 // Returns the name for the status code, or "" if it is an unknown value. 56 // Container for status payloads. 64 // Reference-counted representation of Status data. 75 class ABSL_MUST_USE_RESULT Status final { 77 // Creates an OK status with no message or payload. 78 Status(); 80 // Create a status in the canonical error space with the specified code and 82 // object identical to an OK status is constructed. 86 Status(absl::StatusCode code, absl::string_view msg); 88 Status(const Status&); [all …]
|
/external/libtextclassifier/abseil-cpp/absl/status/ |
D | status_test.cc | 15 #include "absl/status/status.h" 39 using Creator = absl::Status (*)(absl::string_view); 40 using Classifier = bool (*)(const absl::Status&); 73 TEST(Status, CreateAndClassify) { in TEST() argument 77 // Ensure that the creator does, in fact, create status objects with the in TEST() 81 absl::Status status = test.creator(message); in TEST() local 82 EXPECT_EQ(test.code, status.code()); in TEST() 83 EXPECT_EQ(message, status.message()); in TEST() 85 // Ensure that the classifier returns true for a status produced by the in TEST() 87 EXPECT_TRUE(test.classifier(status)); in TEST() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/status/ |
D | status_test.cc | 15 #include "absl/status/status.h" 39 using Creator = absl::Status (*)(absl::string_view); 40 using Classifier = bool (*)(const absl::Status&); 73 TEST(Status, CreateAndClassify) { in TEST() argument 77 // Ensure that the creator does, in fact, create status objects with the in TEST() 81 absl::Status status = test.creator(message); in TEST() local 82 EXPECT_EQ(test.code, status.code()); in TEST() 83 EXPECT_EQ(message, status.message()); in TEST() 85 // Ensure that the classifier returns true for a status produced by the in TEST() 87 EXPECT_TRUE(test.classifier(status)); in TEST() [all …]
|
D | status.h | 48 // Returns the name for the status code, or "" if it is an unknown value. 56 // Container for status payloads. 64 // Reference-counted representation of Status data. 75 class ABSL_MUST_USE_RESULT Status final { 77 // Creates an OK status with no message or payload. 78 Status(); 80 // Create a status in the canonical error space with the specified code and 82 // object identical to an OK status is constructed. 86 Status(absl::StatusCode code, absl::string_view msg); 88 Status(const Status&); [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | status_test.cc | 30 #include <google/protobuf/stubs/status.h> 40 TEST(Status, Empty) { in TEST() argument 41 util::Status status; in TEST() local 42 EXPECT_EQ(util::error::OK, util::Status::OK.error_code()); in TEST() 43 EXPECT_EQ(util::error::OK, util::Status::OK.code()); in TEST() 44 EXPECT_EQ("OK", util::Status::OK.ToString()); in TEST() 47 TEST(Status, GenericCodes) { in TEST() argument 48 EXPECT_EQ(util::error::OK, util::Status::OK.error_code()); in TEST() 49 EXPECT_EQ(util::error::OK, util::Status::OK.code()); in TEST() 50 EXPECT_EQ(util::error::CANCELLED, util::Status::CANCELLED.error_code()); in TEST() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | dfs_hlo_visitor.h | 27 #include "tensorflow/compiler/xla/status.h" 30 #include "tensorflow/core/lib/core/status.h" 53 // "unimplemented" error status. 74 virtual Status HandleElementwiseUnary(HloInstructionPtr hlo); 75 virtual Status HandleElementwiseBinary(HloInstructionPtr hlo); 77 virtual Status HandleClamp(HloInstructionPtr hlo) = 0; 78 virtual Status HandleSelect(HloInstructionPtr hlo) = 0; 79 virtual Status HandleTupleSelect(HloInstructionPtr hlo) = 0; 80 virtual Status HandleMaximum(HloInstructionPtr hlo) { in HandleMaximum() 83 virtual Status HandleMinimum(HloInstructionPtr hlo) { in HandleMinimum() [all …]
|