/external/icing/icing/scoring/ |
D | bm25f-calculator.cc | 65 auto status_or = document_store_->GetDocumentAssociatedScoreData( in PrepareToScore() local 67 if (!status_or.ok()) { in PrepareToScore() 71 DocumentAssociatedScoreData data = status_or.ValueOrDie(); in PrepareToScore() 96 auto status_or = in ComputeScore() local 98 if (!status_or.ok()) { in ComputeScore() 102 DocumentAssociatedScoreData data = status_or.ValueOrDie(); in ComputeScore() 141 auto status_or = document_store_->GetCorpusAssociatedScoreData(corpus_id); in GetCorpusIdfWeightForTerm() local 142 if (!status_or.ok()) { in GetCorpusIdfWeightForTerm() 147 CorpusAssociatedScoreData csdata = status_or.ValueOrDie(); in GetCorpusIdfWeightForTerm() 168 auto status_or = document_store_->GetCorpusAssociatedScoreData(corpus_id); in GetCorpusAvgDocLength() local [all …]
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | statusor_test.cc | 150 StatusOr<std::string> status_or(std::string(1000, '0')); in TEST() local 156 ASSERT_TRUE(status_or.ok()); in TEST() 157 EXPECT_EQ(std::string(1000, '0'), status_or.ValueOrDie()); in TEST() 160 status_or = std::move(value1); in TEST() 161 ASSERT_TRUE(status_or.ok()); in TEST() 162 EXPECT_EQ(std::string(1000, '1'), status_or.ValueOrDie()); in TEST() 165 status_or = std::move(error1); in TEST() 166 ASSERT_FALSE(status_or.ok()); in TEST() 167 EXPECT_EQ("error1", status_or.status().error_message()); in TEST() 170 status_or = std::move(error2); in TEST() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/status/ |
D | statusor_test.cc | 377 absl::StatusOr<int> status_or(kIntValue); in TEST() local 378 EXPECT_EQ(kIntValue, status_or.value()); in TEST() 379 EXPECT_EQ(kIntValue, std::move(status_or).value()); in TEST() 382 absl::StatusOr<CopyDetector> status_or(kIntValue); in TEST() local 383 EXPECT_THAT(status_or, in TEST() 385 CopyDetector copy_detector = status_or.value(); in TEST() 387 copy_detector = std::move(status_or).value(); in TEST() 394 absl::StatusOr<int> status_or(kError); in TEST() local 395 EXPECT_DEATH_OR_THROW(status_or.value(), kError); in TEST() 431 absl::StatusOr<InPlaceHelper> status_or(absl::in_place, {10, 11, 12}, in TEST() [all …]
|
/external/openscreen/third_party/abseil/src/absl/status/ |
D | statusor_test.cc | 388 absl::StatusOr<int> status_or(kIntValue); in TEST() local 389 EXPECT_EQ(kIntValue, status_or.value()); in TEST() 390 EXPECT_EQ(kIntValue, std::move(status_or).value()); in TEST() 393 absl::StatusOr<CopyDetector> status_or(kIntValue); in TEST() local 394 EXPECT_THAT(status_or, in TEST() 396 CopyDetector copy_detector = status_or.value(); in TEST() 398 copy_detector = std::move(status_or).value(); in TEST() 405 absl::StatusOr<int> status_or(kError); in TEST() local 406 EXPECT_DEATH_OR_THROW(status_or.value(), kError); in TEST() 442 absl::StatusOr<InPlaceHelper> status_or(absl::in_place, {10, 11, 12}, in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/status/ |
D | statusor_test.cc | 377 absl::StatusOr<int> status_or(kIntValue); in TEST() local 378 EXPECT_EQ(kIntValue, status_or.value()); in TEST() 379 EXPECT_EQ(kIntValue, std::move(status_or).value()); in TEST() 382 absl::StatusOr<CopyDetector> status_or(kIntValue); in TEST() local 383 EXPECT_THAT(status_or, in TEST() 385 CopyDetector copy_detector = status_or.value(); in TEST() 387 copy_detector = std::move(status_or).value(); in TEST() 394 absl::StatusOr<int> status_or(kError); in TEST() local 395 EXPECT_DEATH_OR_THROW(status_or.value(), kError); in TEST() 431 absl::StatusOr<InPlaceHelper> status_or(absl::in_place, {10, 11, 12}, in TEST() [all …]
|
/external/angle/third_party/abseil-cpp/absl/status/ |
D | statusor_test.cc | 388 absl::StatusOr<int> status_or(kIntValue); in TEST() local 389 EXPECT_EQ(kIntValue, status_or.value()); in TEST() 390 EXPECT_EQ(kIntValue, std::move(status_or).value()); in TEST() 393 absl::StatusOr<CopyDetector> status_or(kIntValue); in TEST() local 394 EXPECT_THAT(status_or, in TEST() 396 CopyDetector copy_detector = status_or.value(); in TEST() 398 copy_detector = std::move(status_or).value(); in TEST() 405 absl::StatusOr<int> status_or(kError); in TEST() local 406 EXPECT_DEATH_OR_THROW(status_or.value(), kError); in TEST() 442 absl::StatusOr<InPlaceHelper> status_or(absl::in_place, {10, 11, 12}, in TEST() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | tpu_rewrite_device_util_test.cc | 60 auto status_or = GetTPUCompilationAndExecutionDevices( in TEST_P() local 63 ASSERT_FALSE(status_or.ok()); in TEST_P() 64 EXPECT_EQ(status_or.status().error_message(), std::get<1>(GetParam())); in TEST_P() 107 auto status_or = GetTPUCompilationAndExecutionDevices( in TEST_P() local 110 ASSERT_FALSE(status_or.ok()); in TEST_P() 111 EXPECT_EQ(status_or.status().error_message(), std::get<4>(GetParam())); in TEST_P() 306 auto status_or = GetTPUCompilationAndExecutionDevices( in TEST() local 310 ASSERT_FALSE(status_or.ok()); in TEST() 311 EXPECT_EQ(status_or.status().error_message(), in TEST() 324 auto status_or = GetTPUCompilationAndExecutionDevices( in TEST() local [all …]
|
D | convert_type_test.cc | 39 auto status_or = ConvertToMlirTensorType(shape, dtype, &b); in ConvertToMlirString() local 42 status_or.ValueOrDie().print(os); in ConvertToMlirString()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | hlo_test_base.cc | 149 const auto status_or = hlo_pass->Run(module); in RunHloPass() local 150 if (status_or.status().ok()) { in RunHloPass() 152 if (!status_or.ValueOrDie()) { in RunHloPass() 157 return status_or; in RunHloPass()
|
/external/harfbuzz_ng/src/ |
D | hb-coretext.cc | 805 uint32_t status_and = ~0, status_or = 0; in _hb_coretext_shape() local 825 status_or |= run_status; in _hb_coretext_shape() 1060 assert (bool (status_or & kCTRunStatusRightToLeft) == backward); in _hb_coretext_shape() 1097 if (count > 1 && (status_or & kCTRunStatusNonMonotonic)) in _hb_coretext_shape()
|
/external/icing/icing/store/ |
D | document-store.cc | 893 auto status_or = Get(document_id); in Get() local 894 if (absl_ports::IsNotFound(status_or.status())) { in Get() 897 status_or.status().CanonicalCode(), in Get() 901 return status_or; in Get()
|
/external/icing/icing/ |
D | icing-search-engine.cc | 1637 auto status_or = schema_store_->GetSchema(); in LostPreviousSchema() local 1638 if (status_or.ok()) { in LostPreviousSchema() 1643 if (!absl_ports::IsNotFound(status_or.status())) { in LostPreviousSchema() 1645 return status_or.status(); in LostPreviousSchema()
|