Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 5234) sorted by relevance

12345678910>>...210

/external/icu/icu4c/source/i18n/
Dmeasunit.cpp522 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce() argument
523 return MeasureUnit::create(0, 0, status); in createGForce()
526 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared() argument
527 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
530 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute() argument
531 return MeasureUnit::create(1, 0, status); in createArcMinute()
534 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond() argument
535 return MeasureUnit::create(1, 1, status); in createArcSecond()
538 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree() argument
539 return MeasureUnit::create(1, 2, status); in createDegree()
[all …]
Duspoof.cpp57 static void U_CALLCONV initializeStatics(UErrorCode &status) { in initializeStatics() argument
61 gInclusionSet = new UnicodeSet(UnicodeString(inclusionPat, -1, US_INV), status); in initializeStatics()
126 gRecommendedSet = new UnicodeSet(UnicodeString(recommendedPat, -1, US_INV), status); in initializeStatics()
128 gNfdNormalizer = Normalizer2::getNFDInstance(status); in initializeStatics()
132 U_CFUNC void uspoof_internalInitStatics(UErrorCode *status) { in uspoof_internalInitStatics() argument
133 umtx_initOnce(gSpoofInitStaticsOnce, &initializeStatics, *status); in uspoof_internalInitStatics()
137 uspoof_open(UErrorCode *status) { in uspoof_open() argument
138 umtx_initOnce(gSpoofInitStaticsOnce, &initializeStatics, *status); in uspoof_open()
139 if (U_FAILURE(*status)) { in uspoof_open()
142 SpoofImpl *si = new SpoofImpl(*status); in uspoof_open()
[all …]
/external/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp172 UErrorCode status = U_ZERO_ERROR; in TestCompatible53_1() local
174 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53_1()
175 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53_1()
176 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53_1()
177 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53_1()
178 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53_1()
179 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53_1()
180 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53_1()
181 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53_1()
182 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53_1()
[all …]
Dv32test.cpp60 #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 …]
Dcalregts.cpp120 CalendarRegressionTest::failure(UErrorCode status, const char* msg) in failure() argument
122 if(U_FAILURE(status)) { in failure()
123 errcheckln(status, UnicodeString("FAIL: ") + msg + " failed, error " + u_errorName(status)); in failure()
136 UErrorCode status = U_ZERO_ERROR; in test4100311() local
137 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test4100311()
138 if(U_FAILURE(status)) { in test4100311()
139 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4100311()
143 failure(status, "Calendar::createInstance(status)"); in test4100311()
146 UDate d = cal->getTime(status); // Should be Jan 1 in test4100311()
147 failure(status, "cal->getTime"); in test4100311()
[all …]
Dnumrgts.cpp37 UErrorCode& status) const in format()
39 return NumberFormat::format(number, toAppendTo, posIter, status); in format()
46 UErrorCode& status) const in format()
48 return NumberFormat::format(obj, toAppendTo, pos, status); in format()
75 UErrorCode& status) const in parse()
77 NumberFormat::parse(text, result, status); in parse()
186 NumberFormatRegressionTest::failure(UErrorCode status, const UnicodeString& msg, const Locale& l, U… in failure() argument
188 if(U_FAILURE(status)) { in failure()
191 …+ UnicodeString(" failed, error ", "") + UnicodeString(u_errorName(status), "") + UnicodeString(l.… in failure()
193 errcheckln(status, UnicodeString("FAIL: ", "") + msg in failure()
[all …]
Ditrbnfrt.cpp65 UErrorCode status = U_ZERO_ERROR; in TestEnglishSpelloutRT() local
67 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestEnglishSpelloutRT()
69 if (U_FAILURE(status)) { in TestEnglishSpelloutRT()
70 errcheckln(status, "failed to construct formatter - %s", u_errorName(status)); in TestEnglishSpelloutRT()
83 UErrorCode status = U_ZERO_ERROR; in TestDurationsRT() local
85 = new RuleBasedNumberFormat(URBNF_DURATION, Locale::getUS(), status); in TestDurationsRT()
87 if (U_FAILURE(status)) { in TestDurationsRT()
88 errcheckln(status, "failed to construct formatter - %s", u_errorName(status)); in TestDurationsRT()
101 UErrorCode status = U_ZERO_ERROR; in TestSpanishSpelloutRT() local
103 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("es", "es"), status); in TestSpanishSpelloutRT()
[all …]
Ddadrcal.cpp33 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 …]
Dregextst.cpp177 …xt* regextst_openUTF8FromInvariant(UText* ut, const char *inv, int64_t length, UErrorCode *status);
242 #define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: RegexTest failure. status=%s…
243 … __FILE__, __LINE__, u_errorName(status)); return;}}
247 #define REGEX_ASSERT_FAIL(expr, errcode) {UErrorCode status=U_ZERO_ERROR; (expr);\
248 if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \
249 __LINE__, u_errorName(errcode), u_errorName(status));};}
251 #define REGEX_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \
252 "RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
285 UErrorCode status = U_ZERO_ERROR; in assertUText() local
287 utext_openUTF8(&expectedText, expected, -1, &status); in assertUText()
[all …]
Dsimpleformattertest.cpp68 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 …]
Dplurults.cpp121 UErrorCode status = U_ZERO_ERROR; in testAPI() local
129 PluralRules defRule(status); in testAPI()
130 LocalPointer<PluralRules> test(new PluralRules(status), status); in testAPI()
131 if(U_FAILURE(status)) { in testAPI()
135 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI()
136 if(U_FAILURE(status)) { in testAPI()
161 LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status)); in testAPI()
177 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI()
206 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI()
211 newRules.adoptInstead(test->createRules(complexRule2, status)); in testAPI()
[all …]
Dsdtfmtts.cpp30 UErrorCode status = U_ZERO_ERROR; in runIndexedTest() local
32 Locale::setDefault(Locale::getEnglish(), status); in runIndexedTest()
33 if(U_FAILURE(status)) { in runIndexedTest()
37 Locale::setDefault(saveLocale, status); in runIndexedTest()
50 UErrorCode status = U_ZERO_ERROR; in testAPI() local
56 SimpleDateFormat def(status); in testAPI()
57 if(U_FAILURE(status)) { in testAPI()
62 status = U_ZERO_ERROR; in testAPI()
67 SimpleDateFormat pat(pattern, status); in testAPI()
68 if(U_FAILURE(status)) { in testAPI()
[all …]
Dcaltest.cpp29 if (U_FAILURE(status)) { \
30 if (status == U_MISSING_RESOURCE_ERROR) { \
31 dataerrln("%s:%d: Test failure. status=%s", __FILE__, __LINE__, u_errorName(status)); \
33 errln("%s:%d: Test failure. status=%s", __FILE__, __LINE__, u_errorName(status)); \
37 if (U_FAILURE(status)) { \
38 if (status == U_MISSING_RESOURCE_ERROR) { \
39 …s:%d: Test failure, locale %s. status=%s", __FILE__, __LINE__, testlocale, u_errorName(status)); \
41 …s:%d: Test failure, locale %s. status=%s", __FILE__, __LINE__, testlocale, u_errorName(status)); \
53 UErrorCode status = U_ZERO_ERROR; in calToStr() local
57 …eldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString("… in calToStr()
[all …]
Dalphaindextst.cpp72 #define TEST_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: Test failure. status=%s", \
73 … __FILE__, __LINE__, u_errorName(status)); return;}}
85 UErrorCode status = U_ZERO_ERROR; in APITest() local
88 AlphabeticIndex *index = new AlphabeticIndex(Locale::getEnglish(), status); in APITest()
90 lc = index->getBucketCount(status); in APITest()
98 status = U_ZERO_ERROR; in APITest()
100 Collator::createInstance(Locale::getGerman(), status)); in APITest()
103 index = new AlphabeticIndex(coll, status); in APITest()
107 1, index->getBucketCount(status)); in APITest()
114 status = U_ZERO_ERROR; in APITest()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dreapits.c35 #define TEST_ASSERT_SUCCESS(status) {if (U_FAILURE(status)) { \ argument
36 … at file %s:%d - error = %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status));}}
54 status = U_ZERO_ERROR; \
55 re = uregex_openC(pattern, flags, NULL, &status); \
56 TEST_ASSERT_SUCCESS(status); \
59 uregex_setText(re, srcString, -1, &status); \
60 TEST_ASSERT_SUCCESS(status); \
61 if (U_SUCCESS(status)) {
65 TEST_ASSERT_SUCCESS(status); \
204 UErrorCode status = U_ZERO_ERROR; in TestRegexCAPI() local
[all …]
Dcreststn.c248 static void checkStatus(int32_t line, UErrorCode expected, UErrorCode status) { in checkStatus() argument
249 if(U_FAILURE(status)) { in checkStatus()
252 if(status != expected) { in checkStatus()
253 …log_err_status(status, "%s:%d: Expected error code %s, got error code %s\n", __FILE__, line, u_err… in checkStatus()
258 UErrorCode status = U_USING_DEFAULT_WARNING; in TestErrorCodes() local
264 r = ures_open(NULL, "ti_ER_ASSAB", &status); in TestErrorCodes()
265 checkStatus(__LINE__, U_USING_FALLBACK_WARNING, status); in TestErrorCodes()
269 status = U_USING_DEFAULT_WARNING; in TestErrorCodes()
270 r = ures_open(NULL, "ti_ER", &status); in TestErrorCodes()
271 checkStatus(__LINE__, U_USING_DEFAULT_WARNING, status); in TestErrorCodes()
[all …]
Dccaltst.c109 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 …]
Dcnumtst.c104 UErrorCode* status = &st; in TestInt64Parse() local
116 nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, status); in TestInt64Parse()
118 if(U_FAILURE(*status)) in TestInt64Parse()
120 log_data_err("Error in unum_open() %s \n", myErrorName(*status)); in TestInt64Parse()
126 a = unum_parseInt64(nf, text, size, 0, status); in TestInt64Parse()
130 if(!U_FAILURE(*status)) in TestInt64Parse()
132 log_err("Error in unum_parseInt64(): %s \n", myErrorName(*status)); in TestInt64Parse()
171 UErrorCode status=U_ZERO_ERROR; in TestNumberFormat() local
178 status = U_ZERO_ERROR; in TestNumberFormat()
180 def=unum_open(style, NULL,0,NULL, NULL,&status); in TestNumberFormat()
[all …]
Dspooftest.c34 #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 …]
Dcitertst.c67 UErrorCode status = U_ZERO_ERROR; in TestBug672() local
77 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672()
79 &status); in TestBug672()
81 &status); in TestBug672()
82 if (U_FAILURE(status)) { in TestBug672()
83 …log_err_status(status, "ERROR: in creation of either the collator or the collation iterator :%s\n", in TestBug672()
84 myErrorName(status)); in TestBug672()
90 while (ucol_next(pitr, &status) != UCOL_NULLORDER && in TestBug672()
91 U_SUCCESS(status)) { in TestBug672()
93 if (U_FAILURE(status)) { in TestBug672()
[all …]
Dusrchtst.c53 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 …]
/external/icu/icu4c/source/i18n/unicode/
Dmeasunit.h218 static MeasureUnit *createGForce(UErrorCode &status);
226 static MeasureUnit *createMeterPerSecondSquared(UErrorCode &status);
234 static MeasureUnit *createArcMinute(UErrorCode &status);
242 static MeasureUnit *createArcSecond(UErrorCode &status);
250 static MeasureUnit *createDegree(UErrorCode &status);
258 static MeasureUnit *createRadian(UErrorCode &status);
266 static MeasureUnit *createRevolutionAngle(UErrorCode &status);
274 static MeasureUnit *createAcre(UErrorCode &status);
282 static MeasureUnit *createHectare(UErrorCode &status);
290 static MeasureUnit *createSquareCentimeter(UErrorCode &status);
[all …]
/external/selinux/libsemanage/src/
Dpywrap-test.py144 (status, slist) = semanage.semanage_seuser_list(sh)
145 if status < 0:
147 print "Query status (commit number): ", status
163 (status, ulist) = semanage.semanage_user_list(sh)
164 if status < 0:
166 print "Query status (commit number): ", status
180 (status, rlist) = semanage.semanage_user_get_roles(sh, user)
181 if status < 0:
192 (status, plist) = semanage.semanage_port_list(sh)
193 if status < 0:
[all …]
/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.cpp24 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/ImageMagick/PerlMagick/t/
Dsubroutines.pl44 $status);
47 $status='';
60 if ("$status")
62 $errorinfo = "Set($background_read_options): $status";
66 $status=$background->ReadImage($background_name);
67 if ("$status")
69 $errorinfo = "Readimage ($background_name): $status";
77 if ("$status")
79 $errorinfo = "Set($composite_read_options): $status";
83 $status=$composite->ReadImage($composite_name);
[all …]

12345678910>>...210