Searched refs:errorCode (Results 151 - 175 of 316) sorted by relevance

1234567891011>>

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
H A DBaseTestHandler.java37 @Override public void rstStream(int streamId, ErrorCode errorCode) { argument
53 @Override public void goAway(int lastGoodStreamId, ErrorCode errorCode, ByteString debugData) { argument
/external/icu/icu4c/source/test/cintltst/
H A Dutransts.c187 UErrorCode errorCode; local
189 errorCode=U_ZERO_ERROR;
190 uenum=utrans_openIDs(&errorCode);
191 if(U_FAILURE(errorCode)) {
192 log_err("utrans_openIDs() failed - %s\n", u_errorName(errorCode));
196 count=uenum_count(uenum, &errorCode);
197 if(U_FAILURE(errorCode) || count<1) {
198 log_err("uenum_count(transliterator IDs)=%d - %s\n", count, u_errorName(errorCode));
203 id=uenum_unext(uenum, &idLength, &errorCode);
204 if(U_FAILURE(errorCode)) {
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dbidiconf.cpp259 IcuTestErrorCode errorCode(*this, "TestBidiTest");
260 const char *sourceTestDataPath=getSourceTestData(errorCode);
261 if(errorCode.logIfFailureAndReset("unable to find the source/test/testdata "
275 NULL, NULL, errorCode);
276 if(errorCode.logIfFailureAndReset("ubidi_setClassCallback()")) {
332 paraLevels[i], NULL, errorCode);
333 const UBiDiLevel *actualLevels=ubidi_getLevels(ubidi.getAlias(), errorCode);
334 if(errorCode.logIfFailureAndReset("ubidi_setPara() or ubidi_getLevels()")) {
428 IcuTestErrorCode errorCode(*this, "TestBidiCharacterTest");
429 const char *sourceTestDataPath=getSourceTestData(errorCode);
[all...]
H A Dtestidn.cpp80 UErrorCode errorCode=U_ZERO_ERROR; local
83 LocalUStringPrepProfilePointer profile(usprep_openByType(USPREP_RFC3491_NAMEPREP, &errorCode));
84 if(U_FAILURE(errorCode)){
85 test.errcheckln(errorCode, "Failed to load IDNA data file. " + UnicodeString(u_errorName(errorCode)));
86 return errorCode;
128 parseMappings(filename,TRUE, test,&errorCode);
129 if(U_FAILURE(errorCode)) {
131 return errorCode;
138 return errorCode;
[all...]
H A Dstrtest.cpp476 IcuTestErrorCode errorCode(*this, "TestCharString()");
480 CharString chStr(longStr, errorCode);
484 CharString test("Test", errorCode);
485 CharString copy(test,errorCode);
486 copy.copyFrom(chStr, errorCode);
492 chStr.append(sp, errorCode).append(chStr, errorCode);
500 chStr.clear().append("abc", errorCode).append("defghij", 3, errorCode);
506 errorCode);
[all...]
H A Dtmsgfmt.cpp630 UErrorCode errorCode = U_ZERO_ERROR; local
634 errorCode); local
635 if (U_FAILURE(errorCode)) {
636 errln("MessageFormat constructor failed - %s\n", u_errorName(errorCode));
1798 IcuTestErrorCode errorCode(*this, "testGetFormatNames");
1799 MessageFormat msgfmt("Hello, {alice,number} {oops,date,full} {zip,spellout} World.", Locale::getRoot(), errorCode);
1800 if(errorCode.logDataIfFailureAndReset("MessageFormat() failed")) {
1803 LocalPointer<StringEnumeration> names(msgfmt.getFormatNames(errorCode));
1804 if(errorCode.logIfFailureAndReset("msgfmt.getFormatNames() failed")) {
1808 name = names->snext(errorCode);
[all...]
H A Dnumfmtst.h231 const UnicodeString& exp, UBool rt, UErrorCode errorCode);
234 const char *exp, UBool rt, UErrorCode errorCode) {
235 expect(fmt, n, UnicodeString(exp, ""), rt, errorCode);
239 const UnicodeString& exp, UErrorCode errorCode) {
240 expect(fmt, n, exp, TRUE, errorCode);
244 const char *exp, UErrorCode errorCode) {
245 expect(fmt, n, UnicodeString(exp, ""), TRUE, errorCode);
233 expect(NumberFormat* fmt, const Formattable& n, const char *exp, UBool rt, UErrorCode errorCode) argument
238 expect(NumberFormat* fmt, const Formattable& n, const UnicodeString& exp, UErrorCode errorCode) argument
243 expect(NumberFormat* fmt, const Formattable& n, const char *exp, UErrorCode errorCode) argument
H A Dplurfmts.cpp628 IcuTestErrorCode errorCode(*this, "ordinalFormatTest");
630 PluralFormat pf(Locale::getEnglish(), UPLURAL_TYPE_ORDINAL, pattern, errorCode); local
631 if (errorCode.logDataIfFailureAndReset("PluralFormat(en, UPLURAL_TYPE_ORDINAL, pattern) failed")) {
634 UnicodeString result = pf.format((int32_t)321, errorCode);
635 if (!errorCode.logIfFailureAndReset("PluralFormat.format(321) failed") &&
639 result = pf.format((int32_t)22, errorCode);
640 if (!errorCode.logIfFailureAndReset("PluralFormat.format(22) failed") &&
644 result = pf.format((int32_t)3, errorCode);
645 if (!errorCode.logIfFailureAndReset("PluralFormat.format(3) failed") &&
651 PluralFormat pf2(Locale::getEnglish(), UPLURAL_TYPE_ORDINAL, errorCode); local
672 PluralFormat pf(Locale::getEnglish(), "one{one meter}other{# meters}", errorCode); local
676 "offset:1 one{another meter}other{another # meters}", errorCode); local
[all...]
H A Dregcoll.cpp1082 IcuTestErrorCode errorCode(*this, "Test4179216");
1083 RuleBasedCollator coll(en_us->getRules() + " & C < ch , cH , Ch , CH < cat < crunchy", errorCode);
1088 iter->setOffset(4, errorCode);
1089 int32_t elt4 = CollationElementIterator::primaryOrder(iter->next(errorCode));
1092 int32_t elt0 = CollationElementIterator::primaryOrder(iter->next(errorCode));
1094 iter->setOffset(5, errorCode);
1095 int32_t elt5 = CollationElementIterator::primaryOrder(iter->next(errorCode));
1105 iter->setOffset(14, errorCode);
1106 int32_t elt14 = CollationElementIterator::primaryOrder(iter->next(errorCode));
1108 iter->setOffset(15, errorCode);
[all...]
H A Dstrcase.cpp394 IcuTestErrorCode errorCode(*this, "TestCasingImpl");
395 LocalUCaseMapPointer csm(ucasemap_open(localeID, options, errorCode));
399 UBreakIterator *clone=ubrk_safeClone((UBreakIterator *)iter, NULL, NULL, errorCode);
400 ucasemap_setBreakIterator(csm.getAlias(), clone, errorCode);
404 u_strToUTF8(utf8In, (int32_t)sizeof(utf8In), &utf8InLength, input.getBuffer(), input.length(), errorCode);
410 utf8In, utf8InLength, errorCode);
416 utf8In, utf8InLength, errorCode);
423 utf8In, utf8InLength, errorCode);
430 utf8In, utf8InLength, errorCode);
438 u_strFromUTF8(buffer, result.getCapacity(), &resultLength, utf8Out, utf8OutLength, errorCode);
[all...]
H A Dapicoll.cpp1220 IcuTestErrorCode errorCode(*this, "TestSortKeyOverflow()");
1221 LocalPointer<Collator> col(Collator::createInstance(Locale::getEnglish(), errorCode));
1222 if (errorCode.logDataIfFailureAndReset("Collator::createInstance(English) failed")) {
1225 col->setAttribute(UCOL_STRENGTH, UCOL_PRIMARY, errorCode);
1256 col->getCollationKey(s, collKey, errorCode);
1574 UErrorCode errorCode = U_ZERO_ERROR; local
1575 LocalPointer<Collator> coll(Collator::createInstance(Locale::getRoot(), errorCode));
1576 if(U_FAILURE(errorCode)) {
1577 errcheckln(errorCode, "Collator creation failed with error %s", u_errorName(errorCode));
2410 UErrorCode errorCode = U_ZERO_ERROR; local
[all...]
/external/icu/icu4c/source/tools/toolutil/
H A Dcollationinfo.cpp119 UErrorCode errorCode = U_ZERO_ERROR; local
120 UVector32 ranges(errorCode);
121 data.makeReorderRanges(codes, length, ranges, errorCode);
122 if(U_FAILURE(errorCode)) {
123 printf(" error building reorder ranges: %s\n", u_errorName(errorCode));
/external/icu/icu4c/source/tools/gensprep/
H A Dgensprep.c145 UErrorCode errorCode=U_ZERO_ERROR; local
225 parseMappings(filename,FALSE, &errorCode);
226 if(U_FAILURE(errorCode)) {
227 fprintf(stderr, "Could not open file %s for reading. Error: %s \n", filename, u_errorName(errorCode));
228 return errorCode;
242 parseNormalizationCorrections(filename,&errorCode);
243 if(U_FAILURE(errorCode)){
245 return errorCode;
257 if(U_SUCCESS(errorCode)) {
270 return errorCode;
[all...]
H A Dstore.c552 UErrorCode errorCode=U_ZERO_ERROR; local
567 sprepTrieSize=utrie_serialize(sprepTrie, sprepTrieBlock, sizeof(sprepTrieBlock), getFoldedValue, TRUE, &errorCode);
568 if(U_FAILURE(errorCode)) {
569 fprintf(stderr, "error: utrie_serialize(sprep trie) failed, %s\n", u_errorName(errorCode));
570 exit(errorCode);
588 haveCopyright ? U_COPYRIGHT_STRING : NULL, &errorCode);
589 if(U_FAILURE(errorCode)) {
590 fprintf(stderr, "gensprep: unable to create the output file, error %d\n", errorCode);
591 exit(errorCode);
607 dataLength=udata_finish(pData, &errorCode);
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/
H A DGetValues002Test.java100 short errorCode = getValuesReply.getErrorCode();
101 if ( errorCode != JDWPConstants.Error.NONE ) {
102 if ( errorCode != JDWPConstants.Error.INVALID_FIELDID ) {
104 + " returns unexpected ERROR = " + errorCode
105 + "(" + JDWPConstants.Error.getName(errorCode) + ")");
107 + " returned unexpected ERROR = " + errorCode
108 + "(" + JDWPConstants.Error.getName(errorCode) + ")");
/external/icu/icu4c/source/i18n/
H A Dcollationcompare.cpp29 UErrorCode &errorCode) {
30 if(U_FAILURE(errorCode)) { return UCOL_EQUAL; }
48 int64_t ce = left.nextCE(errorCode);
58 ce = left.nextCE(errorCode);
73 int64_t ce = right.nextCE(errorCode);
83 ce = right.nextCE(errorCode);
106 if(U_FAILURE(errorCode)) { return UCOL_EQUAL; }
27 compareUpToQuaternary(CollationIterator &left, CollationIterator &right, const CollationSettings &settings, UErrorCode &errorCode) argument
H A Dcollationdata.h122 int64_t getSingleCE(UChar32 c, UErrorCode &errorCode) const;
154 int32_t dest[], int32_t capacity, UErrorCode &errorCode) const;
167 UVector32 &ranges, UErrorCode &errorCode) const;
252 UVector32 &ranges, UErrorCode &errorCode) const;
/external/icu/icu4c/source/common/
H A Dcpputils.h89 uprv_checkCanGetBuffer(const icu::UnicodeString &s, UErrorCode &errorCode) { argument
90 if(U_SUCCESS(errorCode) && s.isBogus()) {
91 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
H A Dwintz.c282 int errorCode; local
315 errorCode = GetGeoInfoW(id,GEO_ISO2,ISOcodeW,3,0);
337 if (errorCode != 0) {
340 if (errorCode==0 || icuTZ==NULL) {
380 if (errorCode != 0) {
383 if (errorCode==0 || icuTZ==NULL) {
H A Dloclikely.cpp1287 UErrorCode errorCode = U_ZERO_ERROR; local
1289 int32_t scriptLength = uloc_getScript(locale, script, UPRV_LENGTHOF(script), &errorCode);
1290 if (U_FAILURE(errorCode) || errorCode == U_STRING_NOT_TERMINATED_WARNING ||
1294 errorCode = U_ZERO_ERROR;
1296 int32_t langLength = uloc_getLanguage(locale, lang, UPRV_LENGTHOF(lang), &errorCode);
1297 if (U_FAILURE(errorCode) || errorCode == U_STRING_NOT_TERMINATED_WARNING ||
1310 errorCode = U_ZERO_ERROR;
1312 (void)uloc_addLikelySubtags(locale, likely, UPRV_LENGTHOF(likely), &errorCode);
[all...]
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
H A Disac.c242 instISAC->errorCode = 0;
277 instISAC->errorCode = 0;
413 instISAC->errorCode = ISAC_DISALLOWED_CODING_MODE;
443 instISAC->errorCode = -status;
457 instISAC->errorCode = -status;
512 instISAC->errorCode = ISAC_ENCODER_NOT_INITIATED;
975 instISAC->errorCode = ISAC_DECODER_NOT_INITIATED;
981 instISAC->errorCode = ISAC_EMPTY_PACKET;
1002 instISAC->errorCode = -err;
1040 instISAC->errorCode
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ClassType/
H A DSetValues002Test.java143 short errorCode = checkedReply.getErrorCode();
144 if ( errorCode == JDWPConstants.Error.NONE ) {
149 + " returns ERROR = " + errorCode
150 + "(" + JDWPConstants.Error.getName(errorCode) + ")");
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/
H A DSetValues003Test.java127 short errorCode = checkedReply.getErrorCode();
128 if ( errorCode == JDWPConstants.Error.NONE ) {
133 + " returns ERROR = " + errorCode
134 + "(" + JDWPConstants.Error.getName(errorCode) + ")");
/external/icu/icu4c/source/test/perf/unisetperf/draft/
H A Dbitset.cpp87 BitSet(const UnicodeSet &set, UErrorCode &errorCode) : bits(shortBits), restSet(set.clone()) { argument
88 if(U_FAILURE(errorCode)) {
93 errorCode=U_MEMORY_ALLOCATION_ERROR;
157 errorCode=U_MEMORY_ALLOCATION_ERROR;
/external/icu/icu4c/source/i18n/unicode/
H A Dalphaindex.h269 int32_t getBucketIndex(const UnicodeString &name, UErrorCode &errorCode) const;
359 ImmutableIndex *buildImmutableIndex(UErrorCode &errorCode);
673 UBool addChineseIndexCharacters(UErrorCode &errorCode);
684 void initLabels(UVector &indexCharacters, UErrorCode &errorCode) const;
685 BucketList *createBucketList(UErrorCode &errorCode) const;
686 void initBuckets(UErrorCode &errorCode);

Completed in 3201 milliseconds

1234567891011>>