/external/icu/icu4c/source/test/intltest/ |
D | measfmttest.cpp | 178 UErrorCode status = U_ZERO_ERROR; in TestCompatible53() local 180 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53() 181 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53() 182 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53() 183 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53() 184 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53() 185 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53() 186 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53() 187 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53() 188 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53() [all …]
|
D | v32test.cpp | 60 #define TEST_CHECK_STATUS(status) \ argument 61 if (U_FAILURE(status)) {\ 62 errln("UVector32Test failure at line %d. status=%s\n", __LINE__, u_errorName(status));\ 78 UErrorCode status = U_ZERO_ERROR; in UVector32_API() local 82 a = new UVector32(status); in UVector32_API() 83 TEST_CHECK_STATUS(status); in UVector32_API() 86 status = U_ZERO_ERROR; in UVector32_API() 87 a = new UVector32(2000, status); in UVector32_API() 88 TEST_CHECK_STATUS(status); in UVector32_API() 94 status = U_ZERO_ERROR; in UVector32_API() [all …]
|
D | simpleformattertest.cpp | 68 UErrorCode status = U_ZERO_ERROR; in TestNoArguments() local 69 SimpleFormatter fmt("This doesn''t have templates '{0}", status); in TestNoArguments() 75 fmt.format("unused", appendTo, status)); in TestNoArguments() 81 fmt.formatAndAppend(NULL, 0, appendTo, offsets, 1, status)); in TestNoArguments() 86 fmt.formatAndReplace(NULL, 0, appendTo, NULL, 0, status)); in TestNoArguments() 87 assertSuccess("Status", status); in TestNoArguments() 91 UErrorCode status = U_ZERO_ERROR; in TestSyntaxErrors() local 92 SimpleFormatter fmt("{}", status); in TestSyntaxErrors() 93 assertEquals("syntax error {}", (int32_t)U_ILLEGAL_ARGUMENT_ERROR, status); in TestSyntaxErrors() 94 status = U_ZERO_ERROR; in TestSyntaxErrors() [all …]
|
D | dcfmapts.cpp | 40 UErrorCode status = U_ZERO_ERROR; in runIndexedTest() local 42 Locale::setDefault(Locale::getEnglish(), status); in runIndexedTest() 43 if(U_FAILURE(status)) { in runIndexedTest() 47 Locale::setDefault(saveLocale, status); in runIndexedTest() 108 UErrorCode status = U_ZERO_ERROR; in testAPI() local 114 DecimalFormat def(status); in testAPI() 115 if(U_FAILURE(status)) { in testAPI() 116 … errcheckln(status, "ERROR: Could not create DecimalFormat (default) - %s", u_errorName(status)); in testAPI() 121 status = U_ZERO_ERROR; in testAPI() 122 DecimalFormat noGrouping("###0.##", status); in testAPI() [all …]
|
D | numbertest_patternmodifier.cpp | 24 UErrorCode status = U_ZERO_ERROR; in testBasic() local 27 PatternParser::parseToPatternInfo(u"a0b", patternInfo, status); in testBasic() 28 assertSuccess("Spot 1", status); in testBasic() 31 DecimalFormatSymbols symbols(Locale::getEnglish(), status); in testBasic() 32 CurrencySymbols currencySymbols({u"USD", status}, "en", status); in testBasic() 33 if (!assertSuccess("Spot 2", status, true)) { in testBasic() 39 assertEquals("Pattern a0b", u"a", getPrefix(mod, status)); in testBasic() 40 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic() 42 assertEquals("Pattern a0b", u"+a", getPrefix(mod, status)); in testBasic() 43 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic() [all …]
|
D | calregts.cpp | 126 CalendarRegressionTest::failure(UErrorCode status, const char* msg) in failure() argument 128 if(U_FAILURE(status)) { in failure() 129 errcheckln(status, UnicodeString("FAIL: ") + msg + " failed, error " + u_errorName(status)); in failure() 142 UErrorCode status = U_ZERO_ERROR; in test4100311() local 143 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test4100311() 144 if(U_FAILURE(status)) { in test4100311() 145 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4100311() 149 failure(status, "Calendar::createInstance(status)"); in test4100311() 152 UDate d = cal->getTime(status); // Should be Jan 1 in test4100311() 153 failure(status, "cal->getTime"); in test4100311() [all …]
|
D | dadrcal.cpp | 33 UErrorCode status = U_ZERO_ERROR; in DataDrivenCalendarTest() local 34 driver = TestDataModule::getTestDataModule("calendar", *this, status); in DataDrivenCalendarTest() 48 UErrorCode status= U_ZERO_ERROR; in runIndexedTest() local 49 TestData *testData = driver->createTestData(index, status); in runIndexedTest() 50 if (U_SUCCESS(status)) { in runIndexedTest() 52 if (testData->getInfo(info, status)) { in runIndexedTest() 53 log(info->getString("Description", status)); in runIndexedTest() 75 UErrorCode status = U_ZERO_ERROR; in testOps() local 91 status); in testOps() 92 if (U_FAILURE(status)) { in testOps() [all …]
|
/external/tensorflow/tensorflow/c/eager/ |
D | c_api_test.cc | 40 TF_Status* status = TF_NewStatus(); in BM_InitOp() local 42 TFE_Context* ctx = TFE_NewContext(opts, status); in BM_InitOp() 43 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp() 55 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp() 56 TF_DeleteStatus(status); in BM_InitOp() 63 TF_Status* status = TF_NewStatus(); in BM_Execute() local 66 TFE_Context* ctx = TFE_NewContext(opts, status); in BM_Execute() 67 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute() 76 TFE_Execute(matmul, &retvals[0], &num_retvals, status); in BM_Execute() 77 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute() [all …]
|
D | c_api_test_util.cc | 28 TF_Status* status = TF_NewStatus(); in TestScalarTensorHandle() local 29 TFE_TensorHandle* th = TFE_NewTensorHandle(t, status); in TestScalarTensorHandle() 30 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle() 32 TF_DeleteStatus(status); in TestScalarTensorHandle() 40 TF_Status* status = TF_NewStatus(); in TestScalarTensorHandle() local 41 TFE_TensorHandle* th = TFE_NewTensorHandle(t, status); in TestScalarTensorHandle() 42 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle() 44 TF_DeleteStatus(status); in TestScalarTensorHandle() 52 TF_Status* status = TF_NewStatus(); in TestScalarTensorHandle() local 53 TFE_TensorHandle* th = TFE_NewTensorHandle(t, status); in TestScalarTensorHandle() [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/icu/icu4c/source/i18n/ |
D | measunit.cpp | 570 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce() argument 571 return MeasureUnit::create(0, 0, status); in createGForce() 574 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared() argument 575 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared() 578 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute() argument 579 return MeasureUnit::create(1, 0, status); in createArcMinute() 582 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond() argument 583 return MeasureUnit::create(1, 1, status); in createArcSecond() 586 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree() argument 587 return MeasureUnit::create(1, 2, status); in createDegree() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | reapits.c | 36 #define TEST_ASSERT_SUCCESS(status) {if (U_FAILURE(status)) { \ argument 37 … at file %s:%d - error = %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status));}} 55 status = U_ZERO_ERROR; \ 56 re = uregex_openC(pattern, flags, NULL, &status); \ 57 TEST_ASSERT_SUCCESS(status); \ 60 uregex_setText(re, srcString, -1, &status); \ 61 TEST_ASSERT_SUCCESS(status); \ 62 if (U_SUCCESS(status)) { 66 TEST_ASSERT_SUCCESS(status); \ 205 UErrorCode status = U_ZERO_ERROR; in TestRegexCAPI() local [all …]
|
D | spooftest.c | 34 #define TEST_ASSERT_SUCCESS(status) {if (U_FAILURE(status)) { \ argument 35 …log_err_status(status, "Failure at file %s, line %d, error = %s\n", __FILE__, __LINE__, u_errorNam… 56 UErrorCode status = U_ZERO_ERROR; \ 58 sc = uspoof_open(&status); \ 59 TEST_ASSERT_SUCCESS(status); \ 60 if (U_SUCCESS(status)){ 64 TEST_ASSERT_SUCCESS(status); \ 114 UErrorCode status = U_ZERO_ERROR; in TestOpenFromSource() local 151 &errType, &pe, &status); in TestOpenFromSource() 152 TEST_ASSERT_SUCCESS(status); in TestOpenFromSource() [all …]
|
D | creststn.c | 250 static void checkStatus(int32_t line, UErrorCode expected, UErrorCode status) { in checkStatus() argument 251 if(U_FAILURE(status)) { in checkStatus() 254 if(status != expected) { in checkStatus() 255 …log_err_status(status, "%s:%d: Expected error code %s, got error code %s\n", __FILE__, line, u_err… in checkStatus() 260 UErrorCode status = U_USING_DEFAULT_WARNING; in TestErrorCodes() local 266 r = ures_open(NULL, "ti_ER_ASSAB", &status); in TestErrorCodes() 267 checkStatus(__LINE__, U_USING_FALLBACK_WARNING, status); in TestErrorCodes() 270 /* this bundle should return zero error, so it shouldn't change the status */ in TestErrorCodes() 271 status = U_USING_DEFAULT_WARNING; in TestErrorCodes() 272 r = ures_open(NULL, "ti_ER", &status); in TestErrorCodes() [all …]
|
D | usrchtst.c | 53 static void open(UErrorCode* status) in open() argument 58 *status = U_ZERO_ERROR; in open() 60 EN_US_ = ucol_open("en_US", status); in open() 61 if(U_FAILURE(*status)) { in open() 62 log_err_status(*status, "Error opening collator\n"); in open() 65 FR_FR_ = ucol_open("fr_FR", status); in open() 66 DE_ = ucol_open("de_DE", status); in open() 67 ES_ = ucol_open("es_ES", status); in open() 75 (UParseError *)NULL, status); in open() 81 NULL, status); in open() [all …]
|
D | cnumtst.c | 110 UErrorCode* status = &st; in TestInt64Parse() local 122 nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, status); in TestInt64Parse() 124 if(U_FAILURE(*status)) in TestInt64Parse() 126 log_data_err("Error in unum_open() %s \n", myErrorName(*status)); in TestInt64Parse() 132 a = unum_parseInt64(nf, text, size, 0, status); in TestInt64Parse() 136 if(!U_FAILURE(*status)) in TestInt64Parse() 138 log_err("Error in unum_parseInt64(): %s \n", myErrorName(*status)); in TestInt64Parse() 177 UErrorCode status=U_ZERO_ERROR; in TestNumberFormat() local 184 status = U_ZERO_ERROR; in TestNumberFormat() 186 def=unum_open(style, NULL,0,NULL, NULL,&status); in TestNumberFormat() [all …]
|
D | ccaltst.c | 109 UErrorCode status = U_ZERO_ERROR; in TestCalendar() local 133 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar() 134 if(U_FAILURE(status)){ in TestCalendar() 135 log_err("FAIL: ucal_getAvailableTZIDs returned %s\n", u_errorName(status)); in TestCalendar() 137 log_verbose("%s\n", u_austrcpy(tempMsgBuf, ucal_getAvailableTZIDs(offset, i, &status))); in TestCalendar() 140 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar() 141 if(status != U_INDEX_OUTOFBOUNDS_ERROR){ in TestCalendar() 142 …err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); in TestCalendar() 144 status=U_ZERO_ERROR; in TestCalendar() 154 uenum = ucal_openTimeZones(&status); in TestCalendar() [all …]
|
D | citertst.c | 68 UErrorCode status = U_ZERO_ERROR; in TestBug672() local 78 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672() 80 &status); in TestBug672() 82 &status); in TestBug672() 83 if (U_FAILURE(status)) { in TestBug672() 84 …log_err_status(status, "ERROR: in creation of either the collator or the collation iterator :%s\n", in TestBug672() 85 myErrorName(status)); in TestBug672() 91 while (ucol_next(pitr, &status) != UCOL_NULLORDER && in TestBug672() 92 U_SUCCESS(status)) { in TestBug672() 94 if (U_FAILURE(status)) { in TestBug672() [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/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/icu/icu4c/source/i18n/unicode/ |
D | measunit.h | 214 * @param status ICU error code. 217 static MeasureUnit *createGForce(UErrorCode &status); 222 * @param status ICU error code. 225 static MeasureUnit *createMeterPerSecondSquared(UErrorCode &status); 230 * @param status ICU error code. 233 static MeasureUnit *createArcMinute(UErrorCode &status); 238 * @param status ICU error code. 241 static MeasureUnit *createArcSecond(UErrorCode &status); 246 * @param status ICU error code. 249 static MeasureUnit *createDegree(UErrorCode &status); [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 …]
|
/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("OK", util::Status::OK.ToString()); in TEST() 46 TEST(Status, GenericCodes) { in TEST() argument 47 EXPECT_EQ(util::error::OK, util::Status::OK.error_code()); in TEST() 48 EXPECT_EQ(util::error::CANCELLED, util::Status::CANCELLED.error_code()); in TEST() 49 EXPECT_EQ(util::error::UNKNOWN, util::Status::UNKNOWN.error_code()); in TEST() 52 TEST(Status, ConstructorZero) { in TEST() argument [all …]
|
/external/icu/libandroidicu/static_shim/ |
D | shim.cpp | 153 …* pattern, int32_t patternLength, UChar * result, int32_t resultLength, UErrorCode * status, ...) { in u_formatMessage_android() argument 155 va_start(args, status); in u_formatMessage_android() 156 …int32_t ret = u_vformatMessage(locale, pattern, patternLength, result, resultLength, args, status); in u_formatMessage_android() 160 …Length, UChar * result, int32_t resultLength, UParseError * parseError, UErrorCode * status, ...) { in u_formatMessageWithError_android() argument 162 va_start(args, status); in u_formatMessageWithError_android() 163 …atMessageWithError(locale, pattern, patternLength, result, resultLength, parseError, args, status); in u_formatMessageWithError_android() 176 void u_getDataVersion_android(UVersionInfo dataVersionFillin, UErrorCode * status) { in u_getDataVersion_android() argument 177 u_getDataVersion(dataVersionFillin, status); in u_getDataVersion_android() 215 void u_init_android(UErrorCode * status) { in u_init_android() argument 216 u_init(status); in u_init_android() [all …]
|
/external/tensorflow/tensorflow/python/lib/io/ |
D | file_io.i | 22 #include "tensorflow/core/lib/core/status.h" 36 tensorflow::Status status = tensorflow::Env::Default()->FileExists(filename); in FileExists() local 37 if (!status.ok()) { in FileExists() 38 Set_TF_Status_from_Status(out_status, status); in FileExists() 44 tensorflow::Status status = in FileExists() local 46 if (!status.ok()) { in FileExists() 47 Set_TF_Status_from_Status(out_status, status); in FileExists() 52 tensorflow::Status status = tensorflow::Env::Default()->DeleteFile(filename); in DeleteFile() local 53 if (!status.ok()) { in DeleteFile() 54 Set_TF_Status_from_Status(out_status, status); in DeleteFile() [all …]
|