Home
last modified time | relevance | path

Searched refs:det (Results 1 – 25 of 154) sorted by relevance

1234567

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java109 private int nextByte(CharsetDetector det) in nextByte() argument
111 if (byteIndex >= det.fInputLen) { in nextByte()
115 return det.fInputBytes[byteIndex++] & 0xFF; in nextByte()
118 protected void parseCharacters(CharsetDetector det) in parseCharacters() argument
123 while ((b = nextByte(det)) >= 0) { in parseCharacters()
138 public int parse(CharsetDetector det) in parse() argument
140 return parse (det, (byte)0x20); in parse()
142 public int parse(CharsetDetector det, byte spaceCh) in parse() argument
147 parseCharacters(det); in parse()
216 private int nextByte(CharsetDetector det) in nextByte() argument
[all …]
DCharsetRecog_mbcs.java48 int match(CharsetDetector det, int [] commonChars) { in match() argument
59 for (iter.reset(); nextChar(iter, det);) { in match()
156 int nextByte(CharsetDetector det) { in nextByte() argument
157 if (nextIndex >= det.fRawLength) { in nextByte()
161 int byteValue = det.fRawInput[nextIndex++] & 0x00ff; in nextByte()
178 abstract boolean nextChar(iteratedChar it, CharsetDetector det); in nextChar() argument
201 boolean nextChar(iteratedChar it, CharsetDetector det) { in nextChar() argument
204 firstByte = it.charValue = it.nextByte(det); in nextChar()
213 int secondByte = it.nextByte(det); in nextChar()
226 CharsetMatch match(CharsetDetector det) { in match() argument
[all …]
DCharsetRecog_2022.java122 CharsetMatch match(CharsetDetector det) { in match() argument
123 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
124 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
139 CharsetMatch match(CharsetDetector det) { in match() argument
140 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
141 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
166 CharsetMatch match(CharsetDetector det) { in match() argument
167 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
168 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_Unicode.java29 abstract CharsetMatch match(CharsetDetector det); in match() argument
63 CharsetMatch match(CharsetDetector det) in match() argument
65 byte[] input = det.fRawInput; in match()
84 return new CharsetMatch(det, this, confidence); in match()
99 CharsetMatch match(CharsetDetector det) in match() argument
101 byte[] input = det.fRawInput; in match()
120 return new CharsetMatch(det, this, confidence); in match()
134 CharsetMatch match(CharsetDetector det) in match() argument
136 byte[] input = det.fRawInput; in match()
137 int limit = (det.fRawLength / 4) * 4; in match()
[all …]
DCharsetMatch.java194 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { in CharsetMatch() argument
200 if (det.fInputStream == null) { in CharsetMatch()
203 fRawInput = det.fRawInput; in CharsetMatch()
204 fRawLength = det.fRawLength; in CharsetMatch()
206 fInputStream = det.fInputStream; in CharsetMatch()
214 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, String csName, String lang) { in CharsetMatch() argument
220 if (det.fInputStream == null) { in CharsetMatch()
223 fRawInput = det.fRawInput; in CharsetMatch()
224 fRawLength = det.fRawLength; in CharsetMatch()
226 fInputStream = det.fInputStream; in CharsetMatch()
DCharsetRecog_UTF8.java25 CharsetMatch match(CharsetDetector det) { in match() argument
29 byte input[] = det.fRawInput; in match()
34 if (det.fRawLength >= 3 && in match()
40 for (i=0; i<det.fRawLength; i++) { in match()
61 if (i>=det.fRawLength) { in match()
96 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_sbcs.java110 private int nextByte(CharsetDetector det) in nextByte() argument
112 if (byteIndex >= det.fInputLen) { in nextByte()
116 return det.fInputBytes[byteIndex++] & 0xFF; in nextByte()
119 protected void parseCharacters(CharsetDetector det) in parseCharacters() argument
124 while ((b = nextByte(det)) >= 0) { in parseCharacters()
139 public int parse(CharsetDetector det) in parse() argument
141 return parse (det, (byte)0x20); in parse()
143 public int parse(CharsetDetector det, byte spaceCh) in parse() argument
148 parseCharacters(det); in parse()
217 private int nextByte(CharsetDetector det) in nextByte() argument
[all …]
DCharsetRecog_mbcs.java49 int match(CharsetDetector det, int [] commonChars) { in match() argument
60 for (iter.reset(); nextChar(iter, det);) { in match()
157 int nextByte(CharsetDetector det) { in nextByte() argument
158 if (nextIndex >= det.fRawLength) { in nextByte()
162 int byteValue = det.fRawInput[nextIndex++] & 0x00ff; in nextByte()
179 abstract boolean nextChar(iteratedChar it, CharsetDetector det); in nextChar() argument
202 boolean nextChar(iteratedChar it, CharsetDetector det) { in nextChar() argument
205 firstByte = it.charValue = it.nextByte(det); in nextChar()
214 int secondByte = it.nextByte(det); in nextChar()
227 CharsetMatch match(CharsetDetector det) { in match() argument
[all …]
DCharsetRecog_2022.java123 CharsetMatch match(CharsetDetector det) { in match() argument
124 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
125 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
140 CharsetMatch match(CharsetDetector det) { in match() argument
141 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
142 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
167 CharsetMatch match(CharsetDetector det) { in match() argument
168 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
169 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_Unicode.java30 abstract CharsetMatch match(CharsetDetector det); in match() argument
64 CharsetMatch match(CharsetDetector det) in match() argument
66 byte[] input = det.fRawInput; in match()
85 return new CharsetMatch(det, this, confidence); in match()
100 CharsetMatch match(CharsetDetector det) in match() argument
102 byte[] input = det.fRawInput; in match()
121 return new CharsetMatch(det, this, confidence); in match()
135 CharsetMatch match(CharsetDetector det) in match() argument
137 byte[] input = det.fRawInput; in match()
138 int limit = (det.fRawLength / 4) * 4; in match()
[all …]
DCharsetMatch.java182 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { in CharsetMatch() argument
188 if (det.fInputStream == null) { in CharsetMatch()
191 fRawInput = det.fRawInput; in CharsetMatch()
192 fRawLength = det.fRawLength; in CharsetMatch()
194 fInputStream = det.fInputStream; in CharsetMatch()
202 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, String csName, String lang) { in CharsetMatch() argument
208 if (det.fInputStream == null) { in CharsetMatch()
211 fRawInput = det.fRawInput; in CharsetMatch()
212 fRawLength = det.fRawLength; in CharsetMatch()
214 fInputStream = det.fInputStream; in CharsetMatch()
DCharsetRecog_UTF8.java26 CharsetMatch match(CharsetDetector det) { in match() argument
30 byte input[] = det.fRawInput; in match()
35 if (det.fRawLength >= 3 && in match()
41 for (i=0; i<det.fRawLength; i++) { in match()
62 if (i>=det.fRawLength) { in match()
97 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
DTestCharsetDetector.java90 CharsetDetector det = new CharsetDetector(); in TestConstruction() local
91 if(det==null){ in TestConstruction()
105 String[] activeCharsetNames = det.getDetectableCharsets(); in TestConstruction()
138 CharsetDetector det = new CharsetDetector(); in TestInputFilter() local
141 det.enableInputFilter(true); in TestInputFilter()
142 if (!det.inputFilterEnabled()){ in TestInputFilter()
146 det.setText(bytes); in TestInputFilter()
147 m = det.detect(); in TestInputFilter()
153 det.enableInputFilter(false); in TestInputFilter()
154 det.setText(bytes); in TestInputFilter()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java87 CharsetDetector det = new CharsetDetector(); in TestConstruction() local
88 if(det==null){ in TestConstruction()
102 String[] activeCharsetNames = det.getDetectableCharsets(); in TestConstruction()
135 CharsetDetector det = new CharsetDetector(); in TestInputFilter() local
138 det.enableInputFilter(true); in TestInputFilter()
139 if (!det.inputFilterEnabled()){ in TestInputFilter()
143 det.setText(bytes); in TestInputFilter()
144 m = det.detect(); in TestInputFilter()
150 det.enableInputFilter(false); in TestInputFilter()
151 det.setText(bytes); in TestInputFilter()
[all …]
/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp132 int32_t IteratedChar::nextByte(InputText *det) in nextByte() argument
134 if (nextIndex >= det->fRawLength) { in nextByte()
140 return det->fRawInput[nextIndex++]; in nextByte()
148 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonC… in match_mbcs() argument
157 while (nextChar(&iter, det)) { in match_mbcs()
244 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const { in nextChar()
248 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar()
258 int32_t secondByte = it->nextByte(det); in nextChar()
272 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const { in match() argument
273 int32_t confidence = match_mbcs(det, commonChars_sjis, UPRV_LENGTHOF(commonChars_sjis)); in match()
[all …]
Dcsrsbcs.h48 virtual int32_t nextByte(InputText *det);
49 virtual void parseCharacters(InputText *det);
52 int32_t parse(InputText *det);
66 int32_t nextByte(InputText *det);
67 void parseCharacters(InputText *det);
78 virtual UBool match(InputText *det, CharsetMatch *results) const = 0;
79 … virtual int32_t match_sbcs(InputText *det, const int32_t ngrams[], const uint8_t charMap[]) const;
87 virtual UBool match(InputText *det, CharsetMatch *results) const;
95 virtual UBool match(InputText *det, CharsetMatch *results) const;
146 virtual UBool match(InputText *det, CharsetMatch *results) const;
[all …]
Dcsrsbcs.cpp95 int32_t NGramParser::nextByte(InputText *det) in nextByte() argument
97 if (byteIndex >= det->fInputLen) { in nextByte()
101 return det->fInputBytes[byteIndex++]; in nextByte()
104 void NGramParser::parseCharacters(InputText *det) in parseCharacters() argument
109 while ((b = nextByte(det)) >= 0) { in parseCharacters()
123 int32_t NGramParser::parse(InputText *det) in parse() argument
125 parseCharacters(det); in parse()
192 int32_t NGramParser_IBM420::nextByte(InputText *det) in nextByte() argument
195 if (byteIndex >= det->fInputLen || det->fInputBytes[byteIndex] == 0) { in nextByte()
200 alef = isLamAlef(det->fInputBytes[byteIndex]); in nextByte()
[all …]
Dcsrmbcs.h44 int32_t nextByte(InputText* det);
63 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const;
103 UBool nextChar(IteratedChar *it, InputText *det) const;
134 UBool nextChar(IteratedChar *it, InputText *det) const;
177 UBool nextChar(IteratedChar* it, InputText* det) const;
196 UBool nextChar(IteratedChar* it, InputText* det) const;
/external/pdfium/third_party/lcms/src/
Dcmsmtrx.c131 cmsFloat64Number det, c0, c1, c2; in _cmsMAT3inverse() local
137 det = a -> v[0].n[0]*c0 + a -> v[0].n[1]*c1 + a -> v[0].n[2]*c2; in _cmsMAT3inverse()
139 if (fabs(det) < MATRIX_DET_TOLERANCE) return FALSE; // singular matrix; can't invert in _cmsMAT3inverse()
141 b -> v[0].n[0] = c0/det; in _cmsMAT3inverse()
142 b -> v[0].n[1] = (a -> v[0].n[2]*a -> v[2].n[1] - a -> v[0].n[1]*a -> v[2].n[2])/det; in _cmsMAT3inverse()
143 b -> v[0].n[2] = (a -> v[0].n[1]*a -> v[1].n[2] - a -> v[0].n[2]*a -> v[1].n[1])/det; in _cmsMAT3inverse()
144 b -> v[1].n[0] = c1/det; in _cmsMAT3inverse()
145 b -> v[1].n[1] = (a -> v[0].n[0]*a -> v[2].n[2] - a -> v[0].n[2]*a -> v[2].n[0])/det; in _cmsMAT3inverse()
146 b -> v[1].n[2] = (a -> v[0].n[2]*a -> v[1].n[0] - a -> v[0].n[0]*a -> v[1].n[2])/det; in _cmsMAT3inverse()
147 b -> v[2].n[0] = c2/det; in _cmsMAT3inverse()
[all …]
/external/skqp/src/core/
DSkPoint.cpp185 SkScalar det = u.cross(v); in DistanceToLineBetweenSqd() local
190 *side = (Side) SkScalarSignAsInt(det); in DistanceToLineBetweenSqd()
192 SkScalar temp = det / uLengthSqd; in DistanceToLineBetweenSqd()
193 temp *= det; in DistanceToLineBetweenSqd()
226 SkScalar det = u.cross(v); in DistanceToLineSegmentBetweenSqd() local
227 SkScalar temp = det / uLengthSqd; in DistanceToLineSegmentBetweenSqd()
228 temp *= det; in DistanceToLineSegmentBetweenSqd()
/external/skia/src/core/
DSkPoint.cpp185 SkScalar det = u.cross(v); in DistanceToLineBetweenSqd() local
190 *side = (Side) SkScalarSignAsInt(det); in DistanceToLineBetweenSqd()
192 SkScalar temp = det / uLengthSqd; in DistanceToLineBetweenSqd()
193 temp *= det; in DistanceToLineBetweenSqd()
226 SkScalar det = u.cross(v); in DistanceToLineSegmentBetweenSqd() local
227 SkScalar temp = det / uLengthSqd; in DistanceToLineSegmentBetweenSqd()
228 temp *= det; in DistanceToLineSegmentBetweenSqd()
/external/opencv/cv/src/
Dcvlinefit.cpp111 float det[9], evc[9], evl[3]; in icvFitLine3D_wods() local
177 det[0] = dz2 + dy2; in icvFitLine3D_wods()
178 det[1] = -dxy; in icvFitLine3D_wods()
179 det[2] = -dxz; in icvFitLine3D_wods()
180 det[3] = det[1]; in icvFitLine3D_wods()
181 det[4] = dx2 + dz2; in icvFitLine3D_wods()
182 det[5] = -dyz; in icvFitLine3D_wods()
183 det[6] = det[2]; in icvFitLine3D_wods()
184 det[7] = det[5]; in icvFitLine3D_wods()
185 det[8] = dy2 + dx2; in icvFitLine3D_wods()
[all …]
/external/eigen/Eigen/src/SparseLU/
DSparseLU.h258 Scalar det = Scalar(1.); in absDeterminant() local
267 det *= abs(it.value()); in absDeterminant()
272 return det; in absDeterminant()
289 Scalar det = Scalar(0.); in logAbsDeterminant() local
297 det += log(abs(it.value())); in logAbsDeterminant()
302 return det; in logAbsDeterminant()
313 Index det = 1; in signDeterminant() local
323 det = -det; in signDeterminant()
330 return det * m_detPermR * m_detPermC; in signDeterminant()
341 Scalar det = Scalar(1.); in determinant() local
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/
Dthreads_scenarii.c46 #define CASE(det,expl,scp,spa,sco,sta,gua,ssi,desc,res) \ argument
48 .detached=det, \
59 #define CASE_POS(det,expl,scp,spa,sco,sta,gua,ssi,desc) CASE(det,expl,scp,spa,sco,sta,gua,ssi,desc,… argument
60 #define CASE_NEG(det,expl,scp,spa,sco,sta,gua,ssi,desc) CASE(det,expl,scp,spa,sco,sta,gua,ssi,desc,… argument
61 #define CASE_UNK(det,expl,scp,spa,sco,sta,gua,ssi,desc) CASE(det,expl,scp,spa,sco,sta,gua,ssi,desc,… argument
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_flatshade.c98 tmp.det = header->det; in flatshade_tri_0()
116 tmp.det = header->det; in flatshade_tri_2()
137 tmp.det = header->det; in flatshade_line_0()
154 tmp.det = header->det; in flatshade_line_1()

1234567