Home
last modified time | relevance | path

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

12345678910>>...152

/external/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp150 UErrorCode status = U_ZERO_ERROR; in TestCompatible53_1() local
152 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53_1()
153 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53_1()
154 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53_1()
155 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53_1()
156 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53_1()
157 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53_1()
158 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53_1()
159 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53_1()
160 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53_1()
[all …]
Dv32test.cpp58 #define TEST_CHECK_STATUS(status) \ argument
59 if (U_FAILURE(status)) {\
60 errln("UVector32Test failure at line %d. status=%s\n", __LINE__, u_errorName(status));\
76 UErrorCode status = U_ZERO_ERROR; in UVector32_API() local
80 a = new UVector32(status); in UVector32_API()
81 TEST_CHECK_STATUS(status); in UVector32_API()
84 status = U_ZERO_ERROR; in UVector32_API()
85 a = new UVector32(2000, status); in UVector32_API()
86 TEST_CHECK_STATUS(status); in UVector32_API()
92 status = U_ZERO_ERROR; in UVector32_API()
[all …]
Dcalregts.cpp118 CalendarRegressionTest::failure(UErrorCode status, const char* msg) in failure() argument
120 if(U_FAILURE(status)) { in failure()
121 errcheckln(status, UnicodeString("FAIL: ") + msg + " failed, error " + u_errorName(status)); in failure()
134 UErrorCode status = U_ZERO_ERROR; in test4100311() local
135 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test4100311()
136 if(U_FAILURE(status)) { in test4100311()
137 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4100311()
141 failure(status, "Calendar::createInstance(status)"); in test4100311()
144 UDate d = cal->getTime(status); // Should be Jan 1 in test4100311()
145 failure(status, "cal->getTime"); in test4100311()
[all …]
Dnumrgts.cpp34 UErrorCode& status) const in format()
36 return NumberFormat::format(number, toAppendTo, posIter, status); in format()
43 UErrorCode& status) const in format()
45 return NumberFormat::format(obj, toAppendTo, pos, status); in format()
72 UErrorCode& status) const in parse()
74 NumberFormat::parse(text, result, status); in parse()
183 NumberFormatRegressionTest::failure(UErrorCode status, const UnicodeString& msg, const Locale& l, U… in failure() argument
185 if(U_FAILURE(status)) { in failure()
188 …+ UnicodeString(" failed, error ", "") + UnicodeString(u_errorName(status), "") + UnicodeString(l.… in failure()
190 errcheckln(status, UnicodeString("FAIL: ", "") + msg in failure()
[all …]
Dregextst.cpp175 …xt* regextst_openUTF8FromInvariant(UText* ut, const char *inv, int64_t length, UErrorCode *status);
240 #define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: RegexTest failure. status=%s…
241 … __FILE__, __LINE__, u_errorName(status)); return;}}
245 #define REGEX_ASSERT_FAIL(expr, errcode) {UErrorCode status=U_ZERO_ERROR; (expr);\
246 if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \
247 __LINE__, u_errorName(errcode), u_errorName(status));};}
249 #define REGEX_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \
250 "RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
283 UErrorCode status = U_ZERO_ERROR; in assertUText() local
285 utext_openUTF8(&expectedText, expected, -1, &status); in assertUText()
[all …]
Ddadrcal.cpp31 UErrorCode status = U_ZERO_ERROR; in DataDrivenCalendarTest() local
32 driver = TestDataModule::getTestDataModule("calendar", *this, status); in DataDrivenCalendarTest()
46 UErrorCode status= U_ZERO_ERROR; in runIndexedTest() local
47 TestData *testData = driver->createTestData(index, status); in runIndexedTest()
48 if (U_SUCCESS(status)) { in runIndexedTest()
50 if (testData->getInfo(info, status)) { in runIndexedTest()
51 log(info->getString("Description", status)); in runIndexedTest()
73 UErrorCode status = U_ZERO_ERROR; in testOps() local
89 status); in testOps()
90 if (U_FAILURE(status)) { in testOps()
[all …]
Ditrbnfrt.cpp63 UErrorCode status = U_ZERO_ERROR; in TestEnglishSpelloutRT() local
65 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestEnglishSpelloutRT()
67 if (U_FAILURE(status)) { in TestEnglishSpelloutRT()
68 errcheckln(status, "failed to construct formatter - %s", u_errorName(status)); in TestEnglishSpelloutRT()
81 UErrorCode status = U_ZERO_ERROR; in TestDurationsRT() local
83 = new RuleBasedNumberFormat(URBNF_DURATION, Locale::getUS(), status); in TestDurationsRT()
85 if (U_FAILURE(status)) { in TestDurationsRT()
86 errcheckln(status, "failed to construct formatter - %s", u_errorName(status)); in TestDurationsRT()
99 UErrorCode status = U_ZERO_ERROR; in TestSpanishSpelloutRT() local
101 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("es", "es"), status); in TestSpanishSpelloutRT()
[all …]
Dsimplepatternformattertest.cpp66 UErrorCode status = U_ZERO_ERROR; in TestNoPlaceholders() local
67 SimplePatternFormatter fmt("This doesn''t have templates '{0}", status); in TestNoPlaceholders()
73 fmt.format("unused", appendTo, status)); in TestNoPlaceholders()
79 fmt.formatAndAppend(NULL, 0, appendTo, offsets, 1, status)); in TestNoPlaceholders()
84 fmt.formatAndReplace(NULL, 0, appendTo, NULL, 0, status)); in TestNoPlaceholders()
85 assertSuccess("Status", status); in TestNoPlaceholders()
89 UErrorCode status = U_ZERO_ERROR; in TestSyntaxErrors() local
90 SimplePatternFormatter fmt("{}", status); in TestSyntaxErrors()
91 assertEquals("syntax error {}", U_ILLEGAL_ARGUMENT_ERROR, status); in TestSyntaxErrors()
92 status = U_ZERO_ERROR; in TestSyntaxErrors()
[all …]
Dcaltest.cpp27 if (U_FAILURE(status)) { \
28 if (status == U_MISSING_RESOURCE_ERROR) { \
29 dataerrln("%s:%d: Test failure. status=%s", __FILE__, __LINE__, u_errorName(status)); \
31 errln("%s:%d: Test failure. status=%s", __FILE__, __LINE__, u_errorName(status)); \
35 if (U_FAILURE(status)) { \
36 if (status == U_MISSING_RESOURCE_ERROR) { \
37 …s:%d: Test failure, locale %s. status=%s", __FILE__, __LINE__, testlocale, u_errorName(status)); \
39 …s:%d: Test failure, locale %s. status=%s", __FILE__, __LINE__, testlocale, u_errorName(status)); \
51 UErrorCode status = U_ZERO_ERROR; in calToStr() local
55 …eldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString("… in calToStr()
[all …]
Dplurults.cpp119 UErrorCode status = U_ZERO_ERROR; in testAPI() local
127 PluralRules defRule(status); in testAPI()
128 LocalPointer<PluralRules> test(new PluralRules(status), status); in testAPI()
129 if(U_FAILURE(status)) { in testAPI()
133 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI()
134 if(U_FAILURE(status)) { in testAPI()
159 LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status)); in testAPI()
175 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI()
204 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI()
209 newRules.adoptInstead(test->createRules(complexRule2, status)); in testAPI()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dreapits.c33 #define TEST_ASSERT_SUCCESS(status) {if (U_FAILURE(status)) { \ argument
34 … at file %s:%d - error = %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status));}}
52 status = U_ZERO_ERROR; \
53 re = uregex_openC(pattern, flags, NULL, &status); \
54 TEST_ASSERT_SUCCESS(status); \
57 uregex_setText(re, srcString, -1, &status); \
58 TEST_ASSERT_SUCCESS(status); \
59 if (U_SUCCESS(status)) {
63 TEST_ASSERT_SUCCESS(status); \
202 UErrorCode status = U_ZERO_ERROR; in TestRegexCAPI() local
[all …]
Dcreststn.c245 static void checkStatus(int32_t line, UErrorCode expected, UErrorCode status) { in checkStatus() argument
246 if(U_FAILURE(status)) { in checkStatus()
249 if(status != expected) { in checkStatus()
250 …log_err_status(status, "%s:%d: Expected error code %s, got error code %s\n", __FILE__, line, u_err… in checkStatus()
255 UErrorCode status = U_USING_DEFAULT_WARNING; in TestErrorCodes() local
261 r = ures_open(NULL, "ti_ER_ASSAB", &status); in TestErrorCodes()
262 checkStatus(__LINE__, U_USING_FALLBACK_WARNING, status); in TestErrorCodes()
266 status = U_USING_DEFAULT_WARNING; in TestErrorCodes()
267 r = ures_open(NULL, "ti_ER", &status); in TestErrorCodes()
268 checkStatus(__LINE__, U_USING_DEFAULT_WARNING, status); in TestErrorCodes()
[all …]
Dccaltst.c101 UErrorCode status = U_ZERO_ERROR; in TestCalendar() local
125 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar()
126 if(U_FAILURE(status)){ in TestCalendar()
127 log_err("FAIL: ucal_getAvailableTZIDs returned %s\n", u_errorName(status)); in TestCalendar()
129 log_verbose("%s\n", u_austrcpy(tempMsgBuf, ucal_getAvailableTZIDs(offset, i, &status))); in TestCalendar()
132 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar()
133 if(status != U_INDEX_OUTOFBOUNDS_ERROR){ in TestCalendar()
134 …err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); in TestCalendar()
136 status=U_ZERO_ERROR; in TestCalendar()
146 uenum = ucal_openTimeZones(&status); in TestCalendar()
[all …]
Dcnumtst.c102 UErrorCode* status = &st; in TestInt64Parse() local
114 nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, status); in TestInt64Parse()
116 if(U_FAILURE(*status)) in TestInt64Parse()
118 log_data_err("Error in unum_open() %s \n", myErrorName(*status)); in TestInt64Parse()
124 a = unum_parseInt64(nf, text, size, 0, status); in TestInt64Parse()
128 if(!U_FAILURE(*status)) in TestInt64Parse()
130 log_err("Error in unum_parseInt64(): %s \n", myErrorName(*status)); in TestInt64Parse()
169 UErrorCode status=U_ZERO_ERROR; in TestNumberFormat() local
176 status = U_ZERO_ERROR; in TestNumberFormat()
178 def=unum_open(style, NULL,0,NULL, NULL,&status); in TestNumberFormat()
[all …]
Dspooftest.c31 #define TEST_ASSERT_SUCCESS(status) {if (U_FAILURE(status)) { \ argument
32 …log_err_status(status, "Failure at file %s, line %d, error = %s\n", __FILE__, __LINE__, u_errorNam…
53 UErrorCode status = U_ZERO_ERROR; \
55 sc = uspoof_open(&status); \
56 TEST_ASSERT_SUCCESS(status); \
57 if (U_SUCCESS(status)){
61 TEST_ASSERT_SUCCESS(status); \
111 UErrorCode status = U_ZERO_ERROR; in TestOpenFromSource() local
148 &errType, &pe, &status); in TestOpenFromSource()
149 TEST_ASSERT_SUCCESS(status); in TestOpenFromSource()
[all …]
Dcitertst.c65 UErrorCode status = U_ZERO_ERROR; in TestBug672() local
75 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672()
77 &status); in TestBug672()
79 &status); in TestBug672()
80 if (U_FAILURE(status)) { in TestBug672()
81 …log_err_status(status, "ERROR: in creation of either the collator or the collation iterator :%s\n", in TestBug672()
82 myErrorName(status)); in TestBug672()
88 while (ucol_next(pitr, &status) != UCOL_NULLORDER && in TestBug672()
89 U_SUCCESS(status)) { in TestBug672()
91 if (U_FAILURE(status)) { in TestBug672()
[all …]
Dusrchtst.c51 static void open(UErrorCode* status) in open() argument
56 *status = U_ZERO_ERROR; in open()
58 EN_US_ = ucol_open("en_US", status); in open()
59 if(U_FAILURE(*status)) { in open()
60 log_err_status(*status, "Error opening collator\n"); in open()
63 FR_FR_ = ucol_open("fr_FR", status); in open()
64 DE_ = ucol_open("de_DE", status); in open()
65 ES_ = ucol_open("es_ES", status); in open()
73 (UParseError *)NULL, status); in open()
79 NULL, status); in open()
[all …]
/external/icu/icu4c/source/i18n/
Dmeasunit.cpp506 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce() argument
507 return MeasureUnit::create(0, 0, status); in createGForce()
510 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared() argument
511 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
514 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute() argument
515 return MeasureUnit::create(1, 0, status); in createArcMinute()
518 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond() argument
519 return MeasureUnit::create(1, 1, status); in createArcSecond()
522 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree() argument
523 return MeasureUnit::create(1, 2, status); in createDegree()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dmeasunit.h216 static MeasureUnit *createGForce(UErrorCode &status);
224 static MeasureUnit *createMeterPerSecondSquared(UErrorCode &status);
232 static MeasureUnit *createArcMinute(UErrorCode &status);
240 static MeasureUnit *createArcSecond(UErrorCode &status);
248 static MeasureUnit *createDegree(UErrorCode &status);
256 static MeasureUnit *createRadian(UErrorCode &status);
265 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/srtp/crypto/ae_xfm/
Dxfm.c34 err_status_t status; in aes_128_cbc_hmac_sha1_96_func() local
52 status = hmac_init(&hmac_ctx, key, KEY_LEN); in aes_128_cbc_hmac_sha1_96_func()
53 if (status) return status; in aes_128_cbc_hmac_sha1_96_func()
54 status = hmac_compute(&hmac_ctx, "ENC", 3, ENC_KEY_LEN, enc_key); in aes_128_cbc_hmac_sha1_96_func()
55 if (status) return status; in aes_128_cbc_hmac_sha1_96_func()
57 status = hmac_init(&hmac_ctx, key, KEY_LEN); in aes_128_cbc_hmac_sha1_96_func()
58 if (status) return status; in aes_128_cbc_hmac_sha1_96_func()
59 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key); in aes_128_cbc_hmac_sha1_96_func()
60 if (status) return status; in aes_128_cbc_hmac_sha1_96_func()
66 status = aes_cbc_context_init(&aes_ctx, key, direction_encrypt); in aes_128_cbc_hmac_sha1_96_func()
[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.cpp20 UErrorCode status = U_ZERO_ERROR; in main() local
21 ConverterPerformanceTest test(argc, argv, status); in main()
22 if(U_FAILURE(status)){ in main()
23 return status; in main()
33 …rterPerformanceTest::ConverterPerformanceTest(int32_t argc, const char* argv[], UErrorCode& status) in ConverterPerformanceTest() argument
34 : UPerfTest(argc,argv,status){ in ConverterPerformanceTest()
124 UErrorCode status = U_ZERO_ERROR; in TestICU_CleanOpenAllConverters() local
125 UPerfFunction* pf = new ICUOpenAllConvertersFunction(TRUE, status); in TestICU_CleanOpenAllConverters()
126 if(U_FAILURE(status)){ in TestICU_CleanOpenAllConverters()
133 UErrorCode status = U_ZERO_ERROR; in TestICU_OpenAllConverters() local
[all …]
/external/libnfc-nxp/src/
DphHciNfc_RFReader.c143 NFCSTATUS status = NFCSTATUS_SUCCESS; in phHciNfc_ReaderMgmt_Init_Resources() local
147 status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INVALID_PARAMETER); in phHciNfc_ReaderMgmt_Init_Resources()
162 status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INSUFFICIENT_RESOURCES); in phHciNfc_ReaderMgmt_Init_Resources()
165 return status; in phHciNfc_ReaderMgmt_Init_Resources()
184 NFCSTATUS status = NFCSTATUS_SUCCESS; in phHciNfc_ReaderMgmt_Update_Sequence() local
188 status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INVALID_PARAMETER); in phHciNfc_ReaderMgmt_Update_Sequence()
194 status = PHNFCSTVAL(CID_NFC_HCI, in phHciNfc_ReaderMgmt_Update_Sequence()
218 status = phHciNfc_ReaderA_Update_Info(psHciContext, in phHciNfc_ReaderMgmt_Update_Sequence()
221 status = phHciNfc_ReaderB_Update_Info(psHciContext, in phHciNfc_ReaderMgmt_Update_Sequence()
225 status = phHciNfc_Felica_Update_Info(psHciContext, in phHciNfc_ReaderMgmt_Update_Sequence()
[all …]
DphHciNfc_Pipe.c150 NFCSTATUS status = NFCSTATUS_SUCCESS; in phHciNfc_Create_Pipe() local
173 status = phHciNfc_Send_Admin_Cmd( psHciContext, pHwRef, in phHciNfc_Create_Pipe()
180 status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INSUFFICIENT_RESOURCES); in phHciNfc_Create_Pipe()
182 return status; in phHciNfc_Create_Pipe()
195 NFCSTATUS status = NFCSTATUS_SUCCESS; in phHciNfc_Update_Pipe() local
203 status = phHciNfc_Allocate_Resource((void **)&p_pipe_info, in phHciNfc_Update_Pipe()
206 if( (NFCSTATUS_SUCCESS == status) in phHciNfc_Update_Pipe()
224 status = phHciNfc_Create_All_Pipes(psHciContext, in phHciNfc_Update_Pipe()
227 if( NFCSTATUS_SUCCESS == status ) in phHciNfc_Update_Pipe()
230 status = phHciNfc_Update_PipeInfo( psHciContext, p_pipe_seq , in phHciNfc_Update_Pipe()
[all …]
DphHciNfc.c101 NFCSTATUS status = NFCSTATUS_SUCCESS; in phHciNfc_Initialise() local
108 status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INVALID_PARAMETER); in phHciNfc_Initialise()
112 status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_ALREADY_INITIALISED ); in phHciNfc_Initialise()
158 status = psHciLayerCfg->layer_next->layer_registry( in phHciNfc_Initialise()
161 HCI_DEBUG("HCI Lower Layer Register, Status = %02X\n",status); in phHciNfc_Initialise()
163 if( (NFCSTATUS_SUCCESS == status) && (NULL != plower_if->init) ) in phHciNfc_Initialise()
165 status = phHciNfc_FSM_Update ( psHciContext, in phHciNfc_Initialise()
168 if(NFCSTATUS_SUCCESS == status) in phHciNfc_Initialise()
174 status = plower_if->init((void *)plower_if->pcontext, in phHciNfc_Initialise()
176 HCI_DEBUG("HCI Lower Layer Initialisation, Status = %02X\n",status); in phHciNfc_Initialise()
[all …]

12345678910>>...152