/external/icu4c/test/cintltst/ |
D | reapits.c | 32 #define TEST_ASSERT_SUCCESS(status) {if (U_FAILURE(status)) { \ argument 33 …ile %s, line %d, error = %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status));}} 51 status = U_ZERO_ERROR; \ 52 re = uregex_openC(pattern, flags, NULL, &status); \ 53 TEST_ASSERT_SUCCESS(status); \ 56 uregex_setText(re, srcString, -1, &status); \ 57 TEST_ASSERT_SUCCESS(status); \ 58 if (U_SUCCESS(status)) { 62 TEST_ASSERT_SUCCESS(status); \ 94 UErrorCode status = U_ZERO_ERROR; in test_assert_utext() local [all …]
|
D | creststn.c | 243 static void checkStatus(int32_t line, UErrorCode expected, UErrorCode status) { in checkStatus() argument 244 if(U_FAILURE(status)) { in checkStatus() 247 if(status != expected) { in checkStatus() 248 …log_err_status(status, "%s:%d: Expected error code %s, got error code %s\n", __FILE__, line, u_err… in checkStatus() 253 UErrorCode status = U_USING_DEFAULT_WARNING; in TestErrorCodes() local 259 r = ures_open(NULL, "ti_ER_ASSAB", &status); in TestErrorCodes() 260 checkStatus(__LINE__, U_USING_FALLBACK_WARNING, status); in TestErrorCodes() 264 status = U_USING_DEFAULT_WARNING; in TestErrorCodes() 265 r = ures_open(NULL, "ti_ER", &status); in TestErrorCodes() 266 checkStatus(__LINE__, U_USING_DEFAULT_WARNING, status); in TestErrorCodes() [all …]
|
D | cnumtst.c | 118 UErrorCode status=U_ZERO_ERROR; in TestNumberFormat() local 125 status = U_ZERO_ERROR; in TestNumberFormat() 127 def=unum_open(style, NULL,0,NULL, NULL,&status); in TestNumberFormat() 130 if(U_FAILURE(status)) in TestNumberFormat() 132 …eating default NumberFormat using unum_open(): %s (Are you missing data?)\n", myErrorName(status)); in TestNumberFormat() 137 fr=unum_open(style,NULL,0, "fr_FR",NULL, &status); in TestNumberFormat() 138 if(U_FAILURE(status)) in TestNumberFormat() 139 log_err("Error: could not create NumberFormat (french): %s\n", myErrorName(status)); in TestNumberFormat() 144 cur_def=unum_open(style, NULL,0,"en_US", NULL, &status); in TestNumberFormat() 145 if(U_FAILURE(status)) in TestNumberFormat() [all …]
|
D | usrchtst.c | 51 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 …]
|
D | ccaltst.c | 87 UErrorCode status = U_ZERO_ERROR; in TestCalendar() local 111 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar() 112 if(U_FAILURE(status)){ in TestCalendar() 113 log_err("FAIL: ucal_getAvailableTZIDs returned %s\n", u_errorName(status)); in TestCalendar() 115 log_verbose("%s\n", u_austrcpy(tempMsgBuf, ucal_getAvailableTZIDs(offset, i, &status))); in TestCalendar() 118 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar() 119 if(status != U_INDEX_OUTOFBOUNDS_ERROR){ in TestCalendar() 120 …err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); in TestCalendar() 122 status=U_ZERO_ERROR; in TestCalendar() 129 uenum = (j==0) ? ucal_openTimeZones(&status) : in TestCalendar() [all …]
|
D | spooftest.c | 31 #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); \ 113 UErrorCode status = U_ZERO_ERROR; in TestUSpoofCAPI() local 114 sc = uspoof_open(&status); in TestUSpoofCAPI() 115 TEST_ASSERT_SUCCESS(status); in TestUSpoofCAPI() [all …]
|
D | idnatest.c | 47 UErrorCode *status); 52 UErrorCode *status); 74 UErrorCode status = U_ZERO_ERROR; in testAPI() local 92 destLen = func(src,-1,NULL,0,options, &parseError , &status); in testAPI() 93 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI() 94 status = U_ZERO_ERROR; /* reset error code */ in testAPI() 97 destLen = func(src,-1,dest,destLen+1,options, &parseError, &status); in testAPI() 99 …CESS(status) && expectedStatus != U_IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==TRUE) && u_strCaseCo… in testAPI() 107 if(status != expectedStatus){ in testAPI() 108 …status, "Did not get the expected error for %s null terminated source failed. Expected: %s Got: %… in testAPI() [all …]
|
/external/chromium/third_party/icu/source/test/cintltst/ |
D | reapits.c | 31 #define TEST_ASSERT_SUCCESS(status) {if (U_FAILURE(status)) { \ argument 32 …ile %s, line %d, error = %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status));}} 50 status = U_ZERO_ERROR; \ 51 re = uregex_openC(pattern, flags, NULL, &status); \ 52 TEST_ASSERT_SUCCESS(status); \ 55 uregex_setText(re, srcString, -1, &status); \ 56 TEST_ASSERT_SUCCESS(status); \ 57 if (U_SUCCESS(status)) { 61 TEST_ASSERT_SUCCESS(status); \ 129 UErrorCode status = U_ZERO_ERROR; in TestRegexCAPI() local [all …]
|
D | creststn.c | 241 static void checkStatus(int32_t line, UErrorCode expected, UErrorCode status) { in checkStatus() argument 242 if(U_FAILURE(status)) { in checkStatus() 245 if(status != expected) { in checkStatus() 246 …log_err_status(status, "%s:%d: Expected error code %s, got error code %s\n", __FILE__, line, u_err… in checkStatus() 251 UErrorCode status = U_USING_DEFAULT_WARNING; in TestErrorCodes() local 257 r = ures_open(NULL, "ti_ER_ASSAB", &status); in TestErrorCodes() 258 checkStatus(__LINE__, U_USING_FALLBACK_WARNING, status); in TestErrorCodes() 262 status = U_USING_DEFAULT_WARNING; in TestErrorCodes() 263 r = ures_open(NULL, "ti_ER", &status); in TestErrorCodes() 264 checkStatus(__LINE__, U_USING_DEFAULT_WARNING, status); in TestErrorCodes() [all …]
|
D | cnumtst.c | 118 UErrorCode status=U_ZERO_ERROR; in TestNumberFormat() local 125 status = U_ZERO_ERROR; in TestNumberFormat() 127 def=unum_open(style, NULL,0,NULL, NULL,&status); in TestNumberFormat() 130 if(U_FAILURE(status)) in TestNumberFormat() 132 …eating default NumberFormat using unum_open(): %s (Are you missing data?)\n", myErrorName(status)); in TestNumberFormat() 137 fr=unum_open(style,NULL,0, "fr_FR",NULL, &status); in TestNumberFormat() 138 if(U_FAILURE(status)) in TestNumberFormat() 139 log_err("Error: could not create NumberFormat (french): %s\n", myErrorName(status)); in TestNumberFormat() 144 cur_def=unum_open(style, NULL,0,"en_US", NULL, &status); in TestNumberFormat() 145 if(U_FAILURE(status)) in TestNumberFormat() [all …]
|
D | ccaltst.c | 83 UErrorCode status = U_ZERO_ERROR; in TestCalendar() local 107 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar() 108 if(U_FAILURE(status)){ in TestCalendar() 109 log_err("FAIL: ucal_getAvailableTZIDs returned %s\n", u_errorName(status)); in TestCalendar() 111 log_verbose("%s\n", u_austrcpy(tempMsgBuf, ucal_getAvailableTZIDs(offset, i, &status))); in TestCalendar() 114 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar() 115 if(status != U_INDEX_OUTOFBOUNDS_ERROR){ in TestCalendar() 116 …err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); in TestCalendar() 118 status=U_ZERO_ERROR; in TestCalendar() 125 uenum = (j==0) ? ucal_openTimeZones(&status) : in TestCalendar() [all …]
|
D | usrchtst.c | 51 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 …]
|
D | spooftest.c | 31 #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); \ 132 UErrorCode status = U_ZERO_ERROR; in TestUSpoofCAPI() local 133 sc = uspoof_open(&status); in TestUSpoofCAPI() 134 TEST_ASSERT_SUCCESS(status); in TestUSpoofCAPI() [all …]
|
D | idnatest.c | 48 UErrorCode *status); 53 UErrorCode *status); 76 UErrorCode status = U_ZERO_ERROR; in testAPI() local 94 destLen = func(src,-1,NULL,0,options, &parseError , &status); in testAPI() 95 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI() 96 status = U_ZERO_ERROR; /* reset error code */ in testAPI() 99 destLen = func(src,-1,dest,destLen+1,options, &parseError, &status); in testAPI() 101 …CESS(status) && expectedStatus != U_IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==TRUE) && u_strCaseCo… in testAPI() 109 if(status != expectedStatus){ in testAPI() 110 …status, "Did not get the expected error for %s null terminated source failed. Expected: %s Got: %… in testAPI() [all …]
|
/external/chromium/third_party/icu/source/test/intltest/ |
D | v32test.cpp | 58 #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 …]
|
D | cntabcol.cpp | 24 UErrorCode status = U_ZERO_ERROR; in TestGrowTable() local 26 testTable = uprv_cnttab_open(testMapping, &status); in TestGrowTable() 30 uprv_cnttab_addContraction(testTable, 0, (UChar)i, i, &status); in TestGrowTable() 31 if(U_FAILURE(status)) { in TestGrowTable() 32 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestGrowTable() 37 if(U_SUCCESS(status)) { in TestGrowTable() 39 res = uprv_cnttab_getCE(testTable, 0, i, &status); in TestGrowTable() 40 if(U_FAILURE(status)) { in TestGrowTable() 41 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestGrowTable() 54 UErrorCode status = U_ZERO_ERROR; in TestSetContraction() local [all …]
|
D | calregts.cpp | 113 CalendarRegressionTest::failure(UErrorCode status, const char* msg) in failure() argument 115 if(U_FAILURE(status)) { in failure() 116 errcheckln(status, UnicodeString("FAIL: ") + msg + " failed, error " + u_errorName(status)); in failure() 129 UErrorCode status = U_ZERO_ERROR; in test4100311() local 130 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test4100311() 131 if(U_FAILURE(status)) { in test4100311() 132 errln("Error creating Calendar: %s", u_errorName(status)); in test4100311() 136 failure(status, "Calendar::createInstance(status)"); in test4100311() 139 UDate d = cal->getTime(status); // Should be Jan 1 in test4100311() 140 failure(status, "cal->getTime"); in test4100311() [all …]
|
/external/icu4c/test/intltest/ |
D | v32test.cpp | 58 #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 …]
|
D | cntabcol.cpp | 24 UErrorCode status = U_ZERO_ERROR; in TestGrowTable() local 26 testTable = uprv_cnttab_open(testMapping, &status); in TestGrowTable() 30 uprv_cnttab_addContraction(testTable, 0, (UChar)i, i, &status); in TestGrowTable() 31 if(U_FAILURE(status)) { in TestGrowTable() 32 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestGrowTable() 37 if(U_SUCCESS(status)) { in TestGrowTable() 39 res = uprv_cnttab_getCE(testTable, 0, i, &status); in TestGrowTable() 40 if(U_FAILURE(status)) { in TestGrowTable() 41 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestGrowTable() 54 UErrorCode status = U_ZERO_ERROR; in TestSetContraction() local [all …]
|
D | regextst.cpp | 116 #define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("RegexTest failure at line %d. statu… 117 __LINE__, u_errorName(status)); return;}} 121 #define REGEX_ASSERT_FAIL(expr, errcode) {UErrorCode status=U_ZERO_ERROR; (expr);\ 122 if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \ 123 __LINE__, u_errorName(errcode), u_errorName(status));};} 125 #define REGEX_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \ 126 "RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }} 132 UErrorCode status = U_ZERO_ERROR; in assertUText() local 134 utext_openUTF8(&expectedText, expected, -1, &status); in assertUText() 178 UErrorCode status = U_ZERO_ERROR; in doRegexLMTest() local [all …]
|
/external/chromium/third_party/icu/source/test/perf/convperf/ |
D | convperf.cpp | 19 UErrorCode status = U_ZERO_ERROR; in main() local 20 ConverterPerformanceTest test(argc, argv, status); in main() 21 if(U_FAILURE(status)){ in main() 22 return status; in main() 32 …rterPerformanceTest::ConverterPerformanceTest(int32_t argc, const char* argv[], UErrorCode& status) in ConverterPerformanceTest() argument 33 : UPerfTest(argc,argv,status){ in ConverterPerformanceTest() 123 UErrorCode status = U_ZERO_ERROR; in TestICU_CleanOpenAllConverters() local 124 UPerfFunction* pf = new ICUOpenAllConvertersFunction(TRUE, status); in TestICU_CleanOpenAllConverters() 125 if(U_FAILURE(status)){ in TestICU_CleanOpenAllConverters() 132 UErrorCode status = U_ZERO_ERROR; in TestICU_OpenAllConverters() local [all …]
|
/external/icu4c/test/perf/convperf/ |
D | convperf.cpp | 19 UErrorCode status = U_ZERO_ERROR; in main() local 20 ConverterPerformanceTest test(argc, argv, status); in main() 21 if(U_FAILURE(status)){ in main() 22 return status; in main() 32 …rterPerformanceTest::ConverterPerformanceTest(int32_t argc, const char* argv[], UErrorCode& status) in ConverterPerformanceTest() argument 33 : UPerfTest(argc,argv,status){ in ConverterPerformanceTest() 123 UErrorCode status = U_ZERO_ERROR; in TestICU_CleanOpenAllConverters() local 124 UPerfFunction* pf = new ICUOpenAllConvertersFunction(TRUE, status); in TestICU_CleanOpenAllConverters() 125 if(U_FAILURE(status)){ in TestICU_CleanOpenAllConverters() 132 UErrorCode status = U_ZERO_ERROR; in TestICU_OpenAllConverters() local [all …]
|
/external/libnfc-nxp/src/ |
D | phHciNfc_RFReader.c | 143 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 …]
|
D | phHciNfc_Pipe.c | 150 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 …]
|
D | phHciNfc.c | 101 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 …]
|