Home
last modified time | relevance | path

Searched refs:ix (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/rs/driver/runtime/
Drs_f16_math.c32 short hx, ix; in frexp() local
36 ix = hx & 0x7fff; in frexp()
39 if (ix >= 0x7c00 || ix == 0) return x; // NaN, infinity or zero in frexp()
40 if (ix <= 0x0400) { in frexp()
45 ix = hx & 0x7fff; in frexp()
51 *eptr += (ix >> 10) - 14; in frexp()
62 short hx, ix; in ilogb() local
69 for (hx <<= 5, ix = -14; hx > 0; hx <<= 1) in ilogb()
70 ix -= 1; in ilogb()
71 return ix; in ilogb()
[all …]
/frameworks/minikin/tools/
Dmk_hyb_file.py91 def is_free(self, ix): argument
92 while ix >= len(self.pred):
94 return self.pred[ix] != -1
96 def use(self, ix): argument
97 if self.pred[ix] is None:
98 self.first = self.succ[ix]
100 self.succ[self.pred[ix]] = self.succ[ix]
101 if self.succ[ix] is None:
102 self.last = self.pred[ix]
104 self.pred[self.succ[ix]] = self.pred[ix]
[all …]
/frameworks/av/media/libstagefright/codec2/vndk/include/util/
DC2ParamUtils.h117 for (size_t ix = 0; ix < name.size(); ++ix) { in camelCaseToDashed() local
122 if (isupper(name[ix])) { in camelCaseToDashed()
124 name.insert(ix++, 1, '-'); in camelCaseToDashed()
125 word_start = ix; in camelCaseToDashed()
127 name[ix] = tolower(name[ix]); in camelCaseToDashed()
129 } else if (islower(name[ix])) { in camelCaseToDashed()
130 if (type == kDigit && ix > 0) { in camelCaseToDashed()
131 name.insert(ix++, 1, '-'); in camelCaseToDashed()
132 word_start = ix; in camelCaseToDashed()
133 } else if (type == kUpper && ix > word_start + 1) { in camelCaseToDashed()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAStringUtils.cpp32 size_t ix = 0, globIx = 0; in MatchesGlob() local
41 ix = globIx; in MatchesGlob()
55 if (ix + len > strLen) { in MatchesGlob()
62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) { in MatchesGlob()
63 ++ix; in MatchesGlob()
65 if (ix + len > strLen) { in MatchesGlob()
68 ix += len; in MatchesGlob()
73 return ix == strLen; in MatchesGlob()
/frameworks/base/media/java/android/media/
DUtils.java69 int ix = 0; in intersectSortedDistinctRanges() local
72 while (ix < one.length && in intersectSortedDistinctRanges()
73 one[ix].getUpper().compareTo(range.getLower()) < 0) { in intersectSortedDistinctRanges()
74 ++ix; in intersectSortedDistinctRanges()
76 while (ix < one.length && in intersectSortedDistinctRanges()
77 one[ix].getUpper().compareTo(range.getUpper()) < 0) { in intersectSortedDistinctRanges()
78 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges()
79 ++ix; in intersectSortedDistinctRanges()
81 if (ix == one.length) { in intersectSortedDistinctRanges()
84 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { in intersectSortedDistinctRanges()
[all …]
DSubtitleTrack.java169 private void removeRunsByEndTimeIndex(int ix) { in removeRunsByEndTimeIndex() argument
170 Run run = mRunsByEndTime.valueAt(ix); in removeRunsByEndTimeIndex()
185 mRunsByEndTime.removeAt(ix); in removeRunsByEndTimeIndex()
192 for(int ix = size - 1; ix >= 0; ix--) { in finalize()
193 removeRunsByEndTimeIndex(ix); in finalize()
631 int ix = runsByEndTime.indexOfKey(mStoredEndTimeMs);
632 if (ix >= 0) {
634 assert(this == runsByEndTime.valueAt(ix));
636 runsByEndTime.removeAt(ix);
638 runsByEndTime.setValueAt(ix, mNextRunAtEndTimeMs);
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp146 for (size_t ix = 0; ix < mCaps.size(); ix++) { in getSupportedMimes() local
147 mimes->push_back(mCaps.keyAt(ix)); in getSupportedMimes()
153 ssize_t ix = getCapabilityIndex(mime); in getCapabilitiesFor() local
154 if (ix >= 0) { in getCapabilitiesFor()
155 return mCaps.valueAt(ix); in getCapabilitiesFor()
204 for (size_t ix = 0; ix < mCaps.size(); ix++) { in getCapabilityIndex() local
205 if (mCaps.keyAt(ix).equalsIgnoreCase(mime)) { in getCapabilityIndex()
206 return ix; in getCapabilityIndex()
230 ssize_t ix = mInfo->getCapabilityIndex(mime); in addMime() local
231 if (ix >= 0) { in addMime()
[all …]
/frameworks/av/media/libstagefright/omx/
DOMXUtils.cpp87 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) { in initFromV1() local
88 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX in initFromV1()
89 || image.mPlane[ix].mVertSubsampling > INT32_MAX) { in initFromV1()
101 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) { in initFromV1() local
102 mPlane[ix].mOffset = image.mPlane[ix].mOffset; in initFromV1()
103 mPlane[ix].mColInc = image.mPlane[ix].mColInc; in initFromV1()
104 mPlane[ix].mRowInc = image.mPlane[ix].mRowInc; in initFromV1()
105 mPlane[ix].mHorizSubsampling = (int32_t)image.mPlane[ix].mHorizSubsampling; in initFromV1()
106 mPlane[ix].mVertSubsampling = (int32_t)image.mPlane[ix].mVertSubsampling; in initFromV1()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dgmed_n.cpp188 Word16 i, j, ix = 0; in gmed_n() local
207 ix = j; in gmed_n()
210 *(tmp2 + ix) = -32768; in gmed_n()
211 *(tmp + i) = ix; in gmed_n()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc2t64fx.c56 Word32 i, j, k, i0, i1, ix, iy, pos, pos2; in ACELP_2t64_fx() local
232 ix = 0; in ACELP_2t64_fx()
256 ix = i0; in ACELP_2t64_fx()
269 i0 = (ix >> 1); /* pos of pulse 1 (0..31) */ in ACELP_2t64_fx()
271 if (sign[ix] > 0) in ACELP_2t64_fx()
273 code[ix] = 512; /* codeword in Q9 format */ in ACELP_2t64_fx()
274 p0 = h - ix; in ACELP_2t64_fx()
277 code[ix] = -512; in ACELP_2t64_fx()
279 p0 = h_inv - ix; in ACELP_2t64_fx()
Dc4t64fx.c112 Word16 * ix, /* (o) position of pulse 1 */
140 Word16 st, ix, iy, pos, index, track, nb_pulse, nbiter, j_temp; in ACELP_4t64_fx() local
572 ix = ind[0] = pos_max[ipos[0]]; in ACELP_4t64_fx()
574 ps = dn[ix] + dn[iy]; in ACELP_4t64_fx()
575 i = ix >> 2; /* ix / STEP */ in ACELP_4t64_fx()
582 if (sign[ix] < 0) in ACELP_4t64_fx()
583 p0 = h_inv - ix; in ACELP_4t64_fx()
585 p0 = h - ix; in ACELP_4t64_fx()
606 ix = ind[0] = pos_max[ipos[0]]; in ACELP_4t64_fx()
610 ps = add1(add1(add1(dn[ix], dn[iy]), dn[i]), dn[j]); in ACELP_4t64_fx()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dc4_17pf.cpp399 Word16 ix = 0; /* initialization only needed to keep gcc silent */ in search_4i40() local
466 ix = ipos[1]; in search_4i40()
507 ix = i1; in search_4i40()
510 i1 = ix; in search_4i40()
524 ix = ipos[2]; in search_4i40()
565 ix = i2; in search_4i40()
568 i2 = ix; in search_4i40()
580 ix = ipos[3]; in search_4i40()
620 ix = i3; in search_4i40()
644 *(p_codvec) = ix; in search_4i40()
Dc3_14pf.cpp385 Word16 ix = 0; /* initialization only needed to keep gcc silent */ in search_3i40() local
454 ix = ipos[1]; in search_3i40()
497 ix = i1; in search_3i40()
500 i1 = ix; in search_3i40()
514 ix = ipos[2]; in search_3i40()
555 ix = i2; in search_3i40()
558 i2 = ix; in search_3i40()
/frameworks/minikin/libs/minikin/
DWordBreaker.cpp228 ssize_t ix = result; in wordStart() local
229 U16_NEXT(mText, ix, mCurrent, c); in wordStart()
236 result = ix; in wordStart()
248 ssize_t ix = result; in wordEnd() local
249 U16_PREV(mText, mLast, ix, c); in wordEnd()
255 result = ix; in wordEnd()
/frameworks/base/core/java/android/text/style/
DDrawableMarginSpan.java46 int ix = (int)x; in drawLeadingMargin() local
53 mDrawable.setBounds(ix, itop, ix+dw, itop+dh); in drawLeadingMargin()
/frameworks/base/core/java/android/text/method/
DMultiTapKeyListener.java143 int ix = val.indexOf(ch); in onKeyDown() local
145 if (ix >= 0) { in onKeyDown()
146 ix = (ix + 1) % (val.length()); in onKeyDown()
148 content.replace(selStart, selEnd, val, ix, ix + 1); in onKeyDown()
/frameworks/base/libs/androidfw/
DAttributeResolution.cpp424 size_t ix = 0; in RetrieveAttributes() local
425 uint32_t cur_xml_attr = xml_parser->getAttributeNameResID(ix); in RetrieveAttributes()
442 while (ix < xml_attr_count && cur_ident > cur_xml_attr) { in RetrieveAttributes()
443 ix++; in RetrieveAttributes()
444 cur_xml_attr = xml_parser->getAttributeNameResID(ix); in RetrieveAttributes()
447 if (ix < xml_attr_count && cur_ident == cur_xml_attr) { in RetrieveAttributes()
448 xml_parser->getAttributeValue(ix, &value); in RetrieveAttributes()
449 ix++; in RetrieveAttributes()
450 cur_xml_attr = xml_parser->getAttributeNameResID(ix); in RetrieveAttributes()
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp131 const Point& Quad::point(int ix) const { in point()
132 ALOG_ASSERT(ix < static_cast<int>(points_.size()), "Access out of bounds"); in point()
133 return points_[ix]; in point()
/frameworks/layoutlib/bridge/src/android/graphics/
DSweepGradient_Delegate.java171 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
173 pt1[0] = x + ix; in getRaster()
DBitmapShader_Delegate.java177 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
179 pt1[0] = x + ix; in getRaster()
DRadialGradient_Delegate.java178 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
180 pt1[0] = x + ix; in getRaster()
DLinearGradient_Delegate.java187 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
189 pt1[0] = x + ix; in getRaster()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirGen.h429 for (int j=0, ix=i ; j<halfNumCoef ; ++j, ix+=L) {
430 accum += cos(ix*w)*static_cast<double>(*coef++);
686 for (int j=0, ix=i ; j<halfNumCoef ; ++j, ix+=L) {
688 if (CC_LIKELY(ix)) {
689 double x = static_cast<double>(ix);
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp132 const Point& Quad::point(int ix) const { in point()
133 ALOG_ASSERT(ix < static_cast<int>(points_.size()), "Access out of bounds"); in point()
134 return points_[ix]; in point()
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp228 for (size_t ix = 0; ix < ARRAY_SIZE(advancedFeatures); ix++) { in findCodecByType() local
229 if (details->findInt32(advancedFeatures[ix], &required) && in findCodecByType()

12