/external/icu/icu4c/source/i18n/ |
csrucode.cpp | 32 // UTF-16 confidence calculation. Very simple minded, but better than nothing. 33 // Any 8 bit non-control characters bump the confidence up. These have a zero high byte, 38 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) { 40 confidence -= 10; 42 confidence += 10; 44 if (confidence < 0) { 45 confidence = 0; 46 } else if (confidence > 100) { 47 confidence = 100; 49 return confidence; 56 int32_t confidence = 10; local 91 int32_t confidence = 10; local 128 int32_t confidence = 0; local [all...] |
csrutf8.cpp | 34 int32_t confidence; local 84 // Cook up some sort of confidence score, based on presence of a BOM 86 confidence = 0; 88 confidence = 100; 90 confidence = 80; 92 confidence = 100; 94 confidence = 80; 96 // Plain ASCII. Confidence must be > 10, it's more likely than UTF-16, which 97 // accepts ASCII with confidence = 10. 98 confidence = 15 [all...] |
csmatch.cpp | 22 : textIn(NULL), confidence(0), fCharsetName(NULL), fLang(NULL) 31 confidence = conf; 56 return confidence;
|
csr2022.cpp | 149 int32_t confidence = match_2022(textIn->fInputBytes, local 153 results->set(textIn, this, confidence); 154 return (confidence > 0); 165 int32_t confidence = match_2022(textIn->fInputBytes, local 169 results->set(textIn, this, confidence); 170 return (confidence > 0); 180 int32_t confidence = match_2022(textIn->fInputBytes, local 184 results->set(textIn, this, confidence); 185 return (confidence > 0);
|
csmatch.h | 22 * Any confidence > 0 indicates a possible match, meaning that the input bytes 35 int32_t confidence; member in class:CharsetMatch
|
csrmbcs.cpp | 153 int32_t confidence = 0; local 179 return confidence; 187 // We don't have enough data to have any confidence. 189 confidence = 0; 194 confidence = 10; 197 return confidence; 205 confidence = 0; 207 return confidence; 212 // Assess confidence purely on having a reasonable number of 214 confidence = 30 + doubleByteCharCount - 20*badCharCount 272 int32_t confidence = match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis)); local 373 int32_t confidence = match_mbcs(det, commonChars_euc_jp, ARRAY_SIZE(commonChars_euc_jp)); local 395 int32_t confidence = match_mbcs(det, commonChars_euc_kr, ARRAY_SIZE(commonChars_euc_kr)); local 447 int32_t confidence = match_mbcs(det, commonChars_big5, ARRAY_SIZE(commonChars_big5)); local 523 int32_t confidence = match_mbcs(det, commonChars_gb_18030, ARRAY_SIZE(commonChars_gb_18030)); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CharsetRecog_Unicode.java | 32 // UTF-16 confidence calculation. Very simple minded, but better than nothing. 33 // Any 8 bit non-control characters bump the confidence up. These have a zero high byte, 37 static int adjustConfidence(int codeUnit, int confidence) { 39 confidence -= 10; 41 confidence += 10; 43 if (confidence < 0) { 44 confidence = 0; 45 } else if (confidence > 100) { 46 confidence = 100; 48 return confidence; 61 int confidence = 10; local 95 int confidence = 10; local 132 int confidence = 0; local [all...] |
CharsetRecog_UTF8.java | 29 int confidence; local 73 // Cook up some sort of confidence score, based on presense of a BOM 75 confidence = 0; 77 confidence = 100; 79 confidence = 80; 81 confidence = 100; 83 confidence = 80; 85 // Plain ASCII. Confidence must be > 10, it's more likely than UTF-16, which 86 // accepts ASCII with confidence = 10. 88 confidence = 15; [all...] |
CharsetRecog_2022.java | 120 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); local 121 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); 135 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); local 136 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); 160 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); local 161 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
|
CharsetRecog_mbcs.java | 42 * bits 0-7: the match confidence, ranging from 0-100 53 int confidence = 0; local 86 // We don't have enough data to have any confidence. 88 confidence = 0; 93 confidence = 10; 104 confidence = 0; 110 // Assess confidence purely on having a reasonable number of 112 confidence = 30 + doubleByteCharCount - 20*badCharCount; 113 if (confidence > 100) { 114 confidence = 100 226 int confidence = match(det, commonChars); local 292 int confidence = match(det, commonChars); local 403 int confidence = match(det, commonChars); local 438 int confidence = match(det, commonChars); local 536 int confidence = match(det, commonChars); local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
CharsetRecog_Unicode.java | 31 // UTF-16 confidence calculation. Very simple minded, but better than nothing. 32 // Any 8 bit non-control characters bump the confidence up. These have a zero high byte, 36 static int adjustConfidence(int codeUnit, int confidence) { 38 confidence -= 10; 40 confidence += 10; 42 if (confidence < 0) { 43 confidence = 0; 44 } else if (confidence > 100) { 45 confidence = 100; 47 return confidence; 60 int confidence = 10; local 94 int confidence = 10; local 131 int confidence = 0; local [all...] |
CharsetRecog_UTF8.java | 28 int confidence; local 72 // Cook up some sort of confidence score, based on presense of a BOM 74 confidence = 0; 76 confidence = 100; 78 confidence = 80; 80 confidence = 100; 82 confidence = 80; 84 // Plain ASCII. Confidence must be > 10, it's more likely than UTF-16, which 85 // accepts ASCII with confidence = 10. 87 confidence = 15; [all...] |
CharsetRecog_2022.java | 119 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); local 120 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); 134 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); local 135 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); 159 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); local 160 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
|
CharsetRecog_mbcs.java | 41 * bits 0-7: the match confidence, ranging from 0-100 52 int confidence = 0; local 85 // We don't have enough data to have any confidence. 87 confidence = 0; 92 confidence = 10; 103 confidence = 0; 109 // Assess confidence purely on having a reasonable number of 111 confidence = 30 + doubleByteCharCount - 20*badCharCount; 112 if (confidence > 100) { 113 confidence = 100 225 int confidence = match(det, commonChars); local 291 int confidence = match(det, commonChars); local 402 int confidence = match(det, commonChars); local 437 int confidence = match(det, commonChars); local 535 int confidence = match(det, commonChars); local [all...] |
/external/pdfium/xfa/src/fxbarcode/pdf417/ |
BC_PDF417BarcodeValue.cpp | 29 int32_t confidence = 0;
local 32 confidence = m_values.GetAt(i);
33 m_values.SetAt(i, confidence + 1);
37 confidence = 1;
39 m_values.Add(confidence);
|
/external/netperf/doc/examples/ |
runemomni.sh | 6 # and max iteration for confidence intervals 12 confidence="-i 30,3" 84 netperf $HDR -T $i,$j -t omni -c -C -H $control_host -l $length $confidence -- $CSV -H $data -m 64K;HDR="-P 0"; 103 netperf $HDR -T $i,$j -t omni -c -C -H $control_host -l $length $confidence -- $CSV -H $data -s 1M -S 1M -m 64K;HDR="-P 0"; 122 netperf $HDR -T $i,$j -t omni -f m -c -C -H $control_host -l $length $confidence -- $CSV -H $data -s 1M -S 1M -r 64K -b 12; HDR="-P 0"; 141 netperf $HDR -T $i,$j -t omni -c -C -H $control_host -l $length $confidence -- $CSV -H $data -r 1; HDR="-P 0"; 154 netperf $HDR -T $i -t omni -f m -c -C -H $control_host -l $length $confidence -- $CSV -H $data -s 1M -S 1M -r $req -b $burst -D;HDR=-"P 0"; 168 netperf $HDR -T $i -t omni -f m -c -C -H $control_host -l $length $confidence -- $CSV -H $data -s 1M -S 1M -r $req -b $burst -T udp;HDR=-"P 0"; 176 echo UDP_STREAM MEGABITS to $data altering send size, no confidence intvls 177 confidence=" [all...] |
runemomniagg2.sh | 30 # this will be the settings for confidence intervals 34 confidence="-i 30,30" 91 netperf $HDR -t omni -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} $socket_sizes -m 64K -u $NETUUID & HDR="-P 0"; 106 netperf $HDR -t omni -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} $socket_sizes -M ,64K -u $NETUUID & HDR="-P 0"; 122 netperf $HDR -t omni -f m -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} -s 1M -S 1M -r 64K -b 12 -u $NETUUID & HDR="-P 0"; 140 netperf $HDR -t omni -f x -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} -r 1 -b $b -D -u $NETUUID & HDR="-P 0";
|
/external/icu/icu4c/source/samples/csdet/ |
csdet.c | 59 int32_t confidence = ucsdet_getConfidence(csm[match], &status); local 65 printf("%s (%s) %d\n", name, lang, confidence);
|
/frameworks/av/media/libmedia/ |
CharacterEncodingDetector.cpp | 112 // since 'buf' is empty, ICU would return a UTF-8 matcher with low confidence, so 129 // the ISO detector reports a confidence of 0, while the GB18030 detector reports 130 // a confidence of 10 with no invalid characters) 197 ALOGV("@@@@ recognized charset: %s for %s confidence %d", 273 * - recalculate the starting confidence level for multibyte encodings using a different 277 * - signal to the caller whether this match is considered good: confidence > 15, and confidence 292 int confidence = ucsdet_getConfidence(ucma[i], &status); local 293 ALOGV("%zu: %s %d", i, encname, confidence); 302 int confidence = ucsdet_getConfidence(matches[0], &status) local 319 int confidence = ucsdet_getConfidence(matches[i], &status); local [all...] |
/frameworks/av/media/libstagefright/ |
MediaExtractor.cpp | 157 float confidence; local 159 if (SniffWVM(source, &mime8, &confidence, &meta) && 166 if (SniffDRM(source, &mime8, &confidence, &meta)) { 168 ALOGV("Detected media content as '%s' with confidence %.2f", drmMime, confidence); 201 float confidence; local 202 if (!source->sniff(&tmp, &confidence, &meta)) { 209 ALOGV("Autodetected media content as '%s' with confidence %.2f", 210 mime, confidence);
|
/frameworks/av/media/libstagefright/include/ |
AACExtractor.h | 57 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
AMRExtractor.h | 58 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
DRMExtractor.h | 58 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
FLACExtractor.h | 61 float *confidence, sp<AMessage> *);
|
MP3Extractor.h | 57 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|