Searched defs:errorCode (Results 126 - 150 of 305) sorted by relevance

1234567891011>>

/external/icu/icu4c/source/test/cintltst/
H A Dcstrcase.c44 UErrorCode errorCode; local
48 errorCode=U_ZERO_ERROR;
52 &errorCode);
53 if( U_FAILURE(errorCode) ||
60 u_errorName(errorCode),
70 errorCode=U_ZERO_ERROR;
74 &errorCode);
75 if( U_FAILURE(errorCode) ||
82 u_errorName(errorCode),
88 errorCode
142 UErrorCode errorCode; local
239 UErrorCode errorCode; local
343 UErrorCode errorCode; local
435 UErrorCode errorCode; local
636 UErrorCode errorCode; local
735 UErrorCode errorCode; local
880 UErrorCode errorCode; local
977 u_strToUTF8(utf8BeforeTitle, (int32_t)sizeof(utf8BeforeTitle), &utf8BeforeTitleLength, beforeTitle, UPRV_LENGTHOF(beforeTitle), &errorCode); local
978 u_strToUTF8(utf8TitleSentNoLower, (int32_t)sizeof(utf8TitleSentNoLower), &utf8TitleSentNoLowerLength, titleSentNoLower, UPRV_LENGTHOF(titleSentNoLower), &errorCode); local
[all...]
H A Dputiltst.c431 static const UErrorCode errorCode[_CODE_ARR_LEN] = { variable
464 errorName = u_errorName(errorCode[code]);
H A Dtrietest.c34 #define u_errorName(errorCode) "some error code"
267 UErrorCode errorCode; local
317 errorCode=U_ZERO_ERROR;
321 &errorCode);
322 if(U_FAILURE(errorCode)) {
323 log_err("error: utrie_serialize(%s) failed: %s\n", testName, u_errorName(errorCode));
351 errorCode=U_ZERO_ERROR;
352 if(!utrie_unserialize(&trie, storage, length, &errorCode)) {
353 log_err("error: utrie_unserialize() failed, %s\n", u_errorName(errorCode));
461 UErrorCode errorCode; local
826 UErrorCode errorCode; local
[all...]
H A Ducnvseltst.c509 UErrorCode errorCode = U_ILLEGAL_ARGUMENT_ERROR; local
510 UPropsVectors *pv = upvec_open(100, &errorCode);
515 errorCode = U_ZERO_ERROR;
516 pv = upvec_open(-1, &errorCode);
517 if (pv != NULL || U_SUCCESS(errorCode)) {
521 errorCode = U_ZERO_ERROR;
522 pv = upvec_open(100, &errorCode);
523 if (pv == NULL || U_FAILURE(errorCode)) {
H A Dudatpg_test.c76 UErrorCode errorCode=U_ZERO_ERROR; local
82 dtpg=udatpg_open(NULL, &errorCode);
83 if(U_FAILURE(errorCode)) {
84 log_err_status(errorCode, "udatpg_open(NULL) failed - %s\n", u_errorName(errorCode));
90 dtpg=udatpg_open("de", &errorCode);
91 if(U_FAILURE(errorCode)) {
92 log_err("udatpg_open(de) failed - %s\n", u_errorName(errorCode));
100 dtpg2=udatpg_clone(dtpg, &errorCode);
101 if(U_FAILURE(errorCode) || dtpg
132 UErrorCode errorCode=U_ZERO_ERROR; local
243 UErrorCode errorCode=U_ZERO_ERROR; local
[all...]
H A Dusettest.c481 UErrorCode errorCode; local
489 errorCode=U_ZERO_ERROR;
490 set=uset_openPattern(pattern, -1, &errorCode);
491 if(U_FAILURE(errorCode)) {
492 log_data_err("uset_openPattern([:Cf:]) failed - %s (Are you missing data?)\n", u_errorName(errorCode));
496 length=uset_serialize(set, buffer, UPRV_LENGTHOF(buffer), &errorCode);
497 if(U_FAILURE(errorCode)) {
498 log_err("unable to uset_serialize([:Cf:]) - %s\n", u_errorName(errorCode));
546 UErrorCode errorCode = U_ZERO_ERROR; local
549 return uset_openPattern(pattern, 15, &errorCode);
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dplurfmts.cpp630 IcuTestErrorCode errorCode(*this, "ordinalFormatTest");
632 PluralFormat pf(Locale::getEnglish(), UPLURAL_TYPE_ORDINAL, pattern, errorCode); local
633 if (errorCode.logDataIfFailureAndReset("PluralFormat(en, UPLURAL_TYPE_ORDINAL, pattern) failed")) {
636 UnicodeString result = pf.format((int32_t)321, errorCode);
637 if (!errorCode.logIfFailureAndReset("PluralFormat.format(321) failed") &&
641 result = pf.format((int32_t)22, errorCode);
642 if (!errorCode.logIfFailureAndReset("PluralFormat.format(22) failed") &&
646 result = pf.format((int32_t)3, errorCode);
647 if (!errorCode.logIfFailureAndReset("PluralFormat.format(3) failed") &&
653 PluralFormat pf2(Locale::getEnglish(), UPLURAL_TYPE_ORDINAL, errorCode); local
674 PluralFormat pf(Locale::getEnglish(), "one{one meter}other{# meters}", errorCode); local
678 "offset:1 one{another meter}other{another # meters}", errorCode); local
[all...]
H A Ducdtest.cpp35 UErrorCode errorCode=U_ZERO_ERROR; local
36 unknownPropertyNames=new U_NAMESPACE_QUALIFIER Hashtable(errorCode);
37 if(U_FAILURE(errorCode)) {
43 unknownPropertyNames->puti(UnicodeString(ignorePropNames[i], -1, US_INV), 1, errorCode); local
178 UErrorCode errorCode=U_ZERO_ERROR; local
179 me->unknownPropertyNames->puti(propName, 1, errorCode);
210 UErrorCode errorCode=U_ZERO_ERROR; local
211 u_parseDelimitedFile(path, ';', fields, 2, derivedPropsLineFn, this, &errorCode);
212 if(U_FAILURE(errorCode)) {
213 errln("error parsing DerivedCoreProperties.txt: %s\n", u_errorName(errorCode));
278 UErrorCode errorCode=U_ZERO_ERROR; local
[all...]
H A Duts46test.cpp58 IcuTestErrorCode errorCode(*this, "init/createUTS46Instance()");
62 trans=IDNA::createUTS46Instance(commonOptions, errorCode);
66 errorCode);
67 if(errorCode.logDataIfFailureAndReset("createUTS46Instance()")) {
112 UErrorCode errorCode=U_ZERO_ERROR; local
117 trans->nameToASCII(input, result, info, errorCode);
118 if(U_FAILURE(errorCode) || info.hasErrors() || result!=expected) {
120 (long)info.getErrors(), result==expected, u_errorName(errorCode));
122 errorCode=U_USELESS_COLLATOR_ERROR;
123 trans->nameToUnicode(input, result, info, errorCode);
153 nontrans->labelToUnicodeUTF8(StringPiece(NULL, 5), sink, info, errorCode); local
162 nontrans->nameToASCII_UTF8(StringPiece(), sink, info, errorCode); local
171 nontrans->nameToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode); local
180 trans->labelToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode); local
[all...]
/external/icu/icu4c/source/test/iotest/
H A Diotest.cpp200 UErrorCode errorCode; local
225 errorCode=U_ZERO_ERROR;
226 dataModule=TestDataModule::getTestDataModule("icuio", logger, errorCode);
227 if(U_SUCCESS(errorCode)) {
228 testData=dataModule->createTestData("printf", errorCode);
229 if(U_SUCCESS(errorCode)) {
230 for(i=0; testData->nextCase(testCase, errorCode); ++i) {
231 if(U_FAILURE(errorCode)) {
233 i, u_errorName(errorCode));
234 errorCode
366 UErrorCode errorCode; local
568 UErrorCode errorCode; local
815 UErrorCode errorCode = U_ZERO_ERROR; local
[all...]
/external/icu/icu4c/source/test/perf/utfperf/
H A Dutfperf.cpp128 errorCode(U_ZERO_ERROR) {
129 cnv=ucnv_open(testcase.charset, &errorCode);
130 if (U_FAILURE(errorCode)) {
131 fprintf(stderr, "error opening converter for \"%s\" - %s\n", testcase.charset, u_errorName(errorCode));
133 ucnv_setFromUCallBack(cnv, fromUCallback, NULL, NULL, NULL, &errorCode);
137 if(U_SUCCESS(errorCode)) {
149 UErrorCode errorCode; member in class:Command
160 if (U_SUCCESS(t->errorCode)){
227 if (U_SUCCESS(t->errorCode)){
272 utf8Cnv=ucnv_open("UTF-8", &errorCode);
[all...]
/external/icu/icu4c/source/tools/gensprep/
H A Dstore.c554 UErrorCode errorCode=U_ZERO_ERROR; local
569 sprepTrieSize=utrie_serialize(sprepTrie, sprepTrieBlock, sizeof(sprepTrieBlock), getFoldedValue, TRUE, &errorCode);
570 if(U_FAILURE(errorCode)) {
571 fprintf(stderr, "error: utrie_serialize(sprep trie) failed, %s\n", u_errorName(errorCode));
572 exit(errorCode);
590 haveCopyright ? U_COPYRIGHT_STRING : NULL, &errorCode);
591 if(U_FAILURE(errorCode)) {
592 fprintf(stderr, "gensprep: unable to create the output file, error %d\n", errorCode);
593 exit(errorCode);
609 dataLength=udata_finish(pData, &errorCode);
[all...]
/external/icu/icu4c/source/tools/icuswap/
H A Dicuswap.cpp115 UErrorCode errorCode; local
207 errorCode=U_ZERO_ERROR;
208 ds=udata_openSwapperForInputData(data, length, outIsBigEndian, outCharset, &errorCode);
209 if(U_FAILURE(errorCode)) {
211 pname, argv[1], u_errorName(errorCode));
235 length=udata_swapPackage(argv[1], argv[2], ds, data, length, data, &errorCode);
237 if(U_FAILURE(errorCode)) {
239 pname, argv[1], u_errorName(errorCode));
245 length=udata_swap(ds, data, length, data, &errorCode);
247 if(U_FAILURE(errorCode)) {
[all...]
/external/icu/icu4c/source/tools/toolutil/
H A Dxmlparser.cpp154 UXMLParser::createParser(UErrorCode &errorCode) { argument
155 if (U_FAILURE(errorCode)) {
158 return new UXMLParser(errorCode);
165 UXMLParser::parseFile(const char *filename, UErrorCode &errorCode) { argument
175 if(U_FAILURE(errorCode)) {
181 errorCode=U_FILE_ACCESS_ERROR;
200 charset=ucnv_detectUnicodeSignature(bytes, bytesLength, NULL, &errorCode);
201 if(U_SUCCESS(errorCode) && charset!=NULL) {
203 cnv=ucnv_open(charset, &errorCode);
206 cnv=ucnv_open("ISO-8859-1", &errorCode);
654 intern(const UnicodeString &s, UErrorCode &errorCode) argument
681 UXMLElement(const UXMLParser *parser, const UnicodeString *name, UErrorCode &errorCode) argument
[all...]
/external/mdnsresponder/mDNSWindows/DLLX/
H A DDNSSD.cpp489 DNSServiceErrorType errorCode,
507 if ( !errorCode )
524 listener->EnumDomainsFailed( service, ( DNSSDError ) errorCode );
540 DNSServiceErrorType errorCode,
560 if ( !errorCode )
581 listener->BrowseFailed( service, ( DNSSDError ) errorCode );
597 DNSServiceErrorType errorCode,
619 if ( !errorCode )
658 listener->ResolveFailed( service, ( DNSSDError ) errorCode );
673 DNSServiceErrorType errorCode,
484 DomainEnumReply( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *replyDomainUTF8, void *context ) argument
535 BrowseReply( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *serviceNameUTF8, const char *regTypeUTF8, const char *replyDomainUTF8, void *context ) argument
592 ResolveReply( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *fullNameUTF8, const char *hostNameUTF8, uint16_t port, uint16_t txtLen, const unsigned char *txtRecord, void *context ) argument
669 RegisterReply( DNSServiceRef sdRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, const char *serviceNameUTF8, const char *regTypeUTF8, const char *domainUTF8, void *context ) argument
722 QueryRecordReply( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *fullNameUTF8, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context ) argument
776 GetAddrInfoReply( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *hostNameUTF8, const struct sockaddr *rawAddress, uint32_t ttl, void *context ) argument
851 NATPortMappingReply( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, uint32_t externalAddress, DNSServiceProtocol protocol, uint16_t internalPort, uint16_t externalPort, uint32_t ttl, void *context ) argument
[all...]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
H A DFramedStream.java74 private ErrorCode errorCode = null; field in class:FramedStream
107 if (errorCode != null) {
139 while (responseHeaders == null && errorCode == null) {
146 throw new IOException("stream was reset: " + errorCode);
154 return errorCode;
229 public void closeLater(ErrorCode errorCode) { argument
230 if (!closeInternal(errorCode)) {
233 connection.writeSynResetLater(id, errorCode);
237 private boolean closeInternal(ErrorCode errorCode) { argument
240 if (this.errorCode !
302 receiveRstStream(ErrorCode errorCode) argument
[all...]
H A DSpdy3.java218 ErrorCode errorCode = ErrorCode.fromSpdy3Rst(errorCodeInt);
219 if (errorCode == null) {
222 handler.rstStream(streamId, errorCode);
253 ErrorCode errorCode = ErrorCode.fromSpdyGoAway(errorCodeInt);
254 if (errorCode == null) {
257 handler.goAway(lastGoodStreamId, errorCode, ByteString.EMPTY);
371 @Override public synchronized void rstStream(int streamId, ErrorCode errorCode) argument
374 if (errorCode.spdyRstCode == -1) throw new IllegalArgumentException();
381 sink.writeInt(errorCode.spdyRstCode);
453 @Override public synchronized void goAway(int lastGoodStreamId, ErrorCode errorCode, argument
[all...]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
H A DHttp2Test.java227 @Override public void rstStream(int streamId, ErrorCode errorCode) {
229 assertEquals(ErrorCode.COMPRESSION_ERROR, errorCode);
579 int lastGoodStreamId, ErrorCode errorCode, ByteString debugData) {
581 assertEquals(expectedError, errorCode);
605 int lastGoodStreamId, ErrorCode errorCode, ByteString debugData) {
607 assertEquals(expectedError, errorCode);
673 private Buffer sendGoAway(int lastGoodStreamId, ErrorCode errorCode, byte[] debugData) argument
676 new Http2.Writer(out, true).goAway(lastGoodStreamId, errorCode, debugData);
H A DMockSpdyPeer.java224 public ErrorCode errorCode; field in class:MockSpdyPeer.InFrame
273 @Override public void rstStream(int streamId, ErrorCode errorCode) { argument
277 this.errorCode = errorCode;
288 @Override public void goAway(int lastGoodStreamId, ErrorCode errorCode, ByteString debugData) { argument
292 this.errorCode = errorCode;
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/net/nsd/
H A DNsdManagerFacade.java241 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { argument
245 errorCode));
249 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { argument
253 errorCode));
278 Integer errorCode) {
281 mErrorCode = errorCode;
309 public void onStartDiscoveryFailed(String serviceType, int errorCode) { argument
312 serviceType, null, errorCode));
316 public void onStopDiscoveryFailed(String serviceType, int errorCode) { argument
319 serviceType, null, errorCode));
277 RegistrationListenerEvent(String callback, NsdServiceInfo serviceInfo, Integer errorCode) argument
356 DiscoveryListenerEvent(String callback, String serviceType, NsdServiceInfo serviceInfo, Integer errorCode) argument
394 onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) argument
412 ResolveListenerEvent(String callback, NsdServiceInfo serviceInfo, Integer errorCode) argument
[all...]
/external/eigen/Eigen/src/UmfPackSupport/
H A DUmfPackSupport.h322 int errorCode = 0; local
323 errorCode = umfpack_symbolic(internal::convert_index<int>(mp_matrix.rows()),
329 m_info = errorCode ? InvalidInput : Success;
431 int errorCode; local
443 errorCode = umfpack_solve(UMFPACK_A,
448 if (errorCode!=0)
/external/icu/icu4c/source/common/
H A Dbytestriebuilder.cpp40 void setTo(StringPiece s, int32_t val, CharString &strings, UErrorCode &errorCode);
92 CharString &strings, UErrorCode &errorCode) {
93 if(U_FAILURE(errorCode)) {
99 errorCode=U_INDEX_OUTOFBOUNDS_ERROR;
105 strings.append((char)(length>>8), errorCode);
107 strings.append((char)length, errorCode);
110 strings.append(s, errorCode);
129 BytesTrieBuilder::BytesTrieBuilder(UErrorCode &errorCode) argument
132 if(U_FAILURE(errorCode)) {
137 errorCode
91 setTo(StringPiece s, int32_t val, CharString &strings, UErrorCode &errorCode) argument
148 add(StringPiece s, int32_t value, UErrorCode &errorCode) argument
193 build(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument
209 buildStringPiece(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument
219 buildBytes(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument
[all...]
H A Dlocdispnames.cpp56 UErrorCode errorCode=U_ZERO_ERROR; local
67 &errorCode);
68 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
70 if(errorCode==U_BUFFER_OVERFLOW_ERROR) {
76 errorCode=U_ZERO_ERROR;
79 &errorCode);
80 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
96 UErrorCode errorCode=U_ZERO_ERROR; local
107 &errorCode);
108 result.releaseBuffer(U_SUCCESS(errorCode)
136 UErrorCode errorCode=U_ZERO_ERROR; local
176 UErrorCode errorCode=U_ZERO_ERROR; local
216 UErrorCode errorCode=U_ZERO_ERROR; local
[all...]
H A Dloclikely.cpp1289 UErrorCode errorCode = U_ZERO_ERROR; local
1291 int32_t scriptLength = uloc_getScript(locale, script, UPRV_LENGTHOF(script), &errorCode);
1292 if (U_FAILURE(errorCode) || errorCode == U_STRING_NOT_TERMINATED_WARNING ||
1296 errorCode = U_ZERO_ERROR;
1298 int32_t langLength = uloc_getLanguage(locale, lang, UPRV_LENGTHOF(lang), &errorCode);
1299 if (U_FAILURE(errorCode) || errorCode == U_STRING_NOT_TERMINATED_WARNING ||
1312 errorCode = U_ZERO_ERROR;
1314 (void)uloc_addLikelySubtags(locale, likely, UPRV_LENGTHOF(likely), &errorCode);
[all...]
H A Ducnv_ct.c169 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode);
261 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ argument
270 myConverterData->myConverterArray[COMPOUND_TEXT_SINGLE_1] = ucnv_loadSharedData("icu-internal-compound-s1", &stackPieces, &stackArgs, errorCode);
271 myConverterData->myConverterArray[COMPOUND_TEXT_SINGLE_2] = ucnv_loadSharedData("icu-internal-compound-s2", &stackPieces, &stackArgs, errorCode);
272 myConverterData->myConverterArray[COMPOUND_TEXT_SINGLE_3] = ucnv_loadSharedData("icu-internal-compound-s3", &stackPieces, &stackArgs, errorCode);
273 myConverterData->myConverterArray[COMPOUND_TEXT_DOUBLE_1] = ucnv_loadSharedData("icu-internal-compound-d1", &stackPieces, &stackArgs, errorCode);
274 myConverterData->myConverterArray[COMPOUND_TEXT_DOUBLE_2] = ucnv_loadSharedData("icu-internal-compound-d2", &stackPieces, &stackArgs, errorCode);
275 myConverterData->myConverterArray[COMPOUND_TEXT_DOUBLE_3] = ucnv_loadSharedData("icu-internal-compound-d3", &stackPieces, &stackArgs, errorCode);
276 myConverterData->myConverterArray[COMPOUND_TEXT_DOUBLE_4] = ucnv_loadSharedData("icu-internal-compound-d4", &stackPieces, &stackArgs, errorCode);
277 myConverterData->myConverterArray[COMPOUND_TEXT_DOUBLE_5] = ucnv_loadSharedData("icu-internal-compound-d5", &stackPieces, &stackArgs, errorCode);
[all...]

Completed in 906 milliseconds

1234567891011>>