Home
last modified time | relevance | path

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

123

/frameworks/av/media/codec2/vndk/util/
DC2ParamUtils.cpp72 for (size_t ix = 0; ix < name.size(); ++ix) { in camelCaseToDashed() local
74 << name.substr(word_start, ix - word_start) << "[" in camelCaseToDashed()
75 << name.substr(ix, 1) << "]" << name.substr(ix + 1) in camelCaseToDashed()
77 if (isupper(name[ix])) { in camelCaseToDashed()
79 name.insert(ix++, 1, '-'); in camelCaseToDashed()
80 word_start = ix; in camelCaseToDashed()
82 name[ix] = tolower(name[ix]); in camelCaseToDashed()
84 } else if (islower(name[ix])) { in camelCaseToDashed()
85 if (type == kDigit && ix > 0) { in camelCaseToDashed()
86 name.insert(ix++, 1, '-'); in camelCaseToDashed()
[all …]
DC2InterfaceHelper.cpp464 size_t ix = 0; in addParam() local
469 << ix << " that is not yet defined"; in addParam()
472 ++ix; in addParam()
478 std::shared_ptr<ParamHelper> getParam(C2Param::Index ix) const { in getParam()
480 const auto it = _mIndexToHelper.find(ix); in getParam()
490 std::shared_ptr<C2Param> getParamValue(C2Param::Index ix) const { in getParamValue()
491 std::shared_ptr<ParamHelper> helper = getParam(ix); in getParamValue()
506 size_t getDependencyIndex(C2Param::Index ix) { in getDependencyIndex()
509 auto it = _mDependencyIndex.find(ix); in getDependencyIndex()
678 C2Param::Index ix = min->second.first; in config() local
[all …]
/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/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.java170 private void removeRunsByEndTimeIndex(int ix) { in removeRunsByEndTimeIndex() argument
171 Run run = mRunsByEndTime.valueAt(ix); in removeRunsByEndTimeIndex()
186 mRunsByEndTime.removeAt(ix); in removeRunsByEndTimeIndex()
193 for(int ix = size - 1; ix >= 0; ix--) { in finalize()
194 removeRunsByEndTimeIndex(ix); in finalize()
634 int ix = runsByEndTime.indexOfKey(mStoredEndTimeMs);
635 if (ix >= 0) {
637 assert(this == runsByEndTime.valueAt(ix));
639 runsByEndTime.removeAt(ix);
641 runsByEndTime.setValueAt(ix, mNextRunAtEndTimeMs);
/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/av/media/codec2/sfplugin/tests/
DMediaCodec_sanity_test.cpp131 size_t ix; in TEST_P() local
132 EXPECT_EQ(codec->dequeueInputBuffer(&ix, 1000000), OK); in TEST_P()
134 EXPECT_EQ(codec->getInputBuffer(ix, &buf), OK); in TEST_P()
160 size_t ix; in TEST_P() local
161 EXPECT_EQ(codec->dequeueInputBuffer(&ix, 1000000), OK); in TEST_P()
163 EXPECT_EQ(codec->getInputBuffer(ix, &buf), OK); in TEST_P()
193 size_t ix; in TEST_P() local
194 EXPECT_EQ(codec->dequeueInputBuffer(&ix, 1000000), OK); in TEST_P()
196 EXPECT_EQ(codec->getInputBuffer(ix, &buf), OK); in TEST_P()
226 size_t ix; in TEST_F() local
[all …]
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp159 for (size_t ix = 0; ix < mCaps.size(); ix++) { in getSupportedMediaTypes() local
160 mediaTypes->push_back(mCaps.keyAt(ix)); in getSupportedMediaTypes()
166 ssize_t ix = getCapabilityIndex(mediaType); in getCapabilitiesFor() local
167 if (ix >= 0) { in getCapabilitiesFor()
168 return mCaps.valueAt(ix); in getCapabilitiesFor()
229 for (size_t ix = 0; ix < mCaps.size(); ix++) { in getCapabilityIndex() local
230 if (mCaps.keyAt(ix).equalsIgnoreCase(mediaType)) { in getCapabilityIndex()
231 return ix; in getCapabilityIndex()
266 ssize_t ix = mInfo->getCapabilityIndex(mediaType); in addMediaType() local
267 if (ix >= 0) { in addMediaType()
[all …]
/frameworks/av/media/libstagefright/omx/
DOMXUtils.cpp88 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) { in initFromV1() local
89 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX in initFromV1()
90 || image.mPlane[ix].mVertSubsampling > INT32_MAX) { in initFromV1()
102 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) { in initFromV1() local
103 mPlane[ix].mOffset = image.mPlane[ix].mOffset; in initFromV1()
104 mPlane[ix].mColInc = image.mPlane[ix].mColInc; in initFromV1()
105 mPlane[ix].mRowInc = image.mPlane[ix].mRowInc; in initFromV1()
106 mPlane[ix].mHorizSubsampling = (int32_t)image.mPlane[ix].mHorizSubsampling; in initFromV1()
107 mPlane[ix].mVertSubsampling = (int32_t)image.mPlane[ix].mVertSubsampling; in initFromV1()
/frameworks/av/media/codecs/g711/decoder/
Dg711DecAlaw.cpp26 int32_t ix = x ^ 0x55; in DecodeALaw() local
27 ix &= 0x7f; in DecodeALaw()
29 int32_t iexp = ix >> 4; in DecodeALaw()
30 int32_t mant = ix & 0x0f; in DecodeALaw()
/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.cpp277 ssize_t ix = result; in wordStart() local
278 U16_NEXT(mText, ix, mCurrent, c); in wordStart()
285 result = ix; in wordStart()
297 ssize_t ix = result; in wordEnd() local
298 U16_PREV(mText, mLast, ix, c); in wordEnd()
304 result = ix; in wordEnd()
/frameworks/base/libs/androidfw/
DAttributeResolution.cpp415 size_t ix = 0; in RetrieveAttributes() local
416 uint32_t cur_xml_attr = xml_parser->getAttributeNameResID(ix); in RetrieveAttributes()
431 while (ix < xml_attr_count && cur_ident > cur_xml_attr) { in RetrieveAttributes()
432 ix++; in RetrieveAttributes()
433 cur_xml_attr = xml_parser->getAttributeNameResID(ix); in RetrieveAttributes()
436 if (ix < xml_attr_count && cur_ident == cur_xml_attr) { in RetrieveAttributes()
437 xml_parser->getAttributeValue(ix, &value); in RetrieveAttributes()
438 ix++; in RetrieveAttributes()
439 cur_xml_attr = xml_parser->getAttributeNameResID(ix); in RetrieveAttributes()
/frameworks/base/core/java/android/text/style/
DDrawableMarginSpan.java86 int ix = (int) x; in drawLeadingMargin() local
93 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/av/media/codec2/components/vpx/
DC2SoftVpxEnc.h394 for (size_t ix = 0; ix < me.v.flexCount(); ++ix) { in LayeringSetter() local
395 me.set().m.bitrateRatios[ix] = c2_clamp( in LayeringSetter()
396 ix > 0 ? me.v.m.bitrateRatios[ix - 1] : 0, me.v.m.bitrateRatios[ix], 1.); in LayeringSetter()
/frameworks/av/media/codec2/hidl/1.0/utils/
DConfigurable.cpp102 size_t ix = 0; in config() local
105 if (objcpy(&failures[ix], *c2result)) { in config()
106 ++ix; in config()
113 failures.resize(ix); in config()
/frameworks/layoutlib/bridge/src/android/graphics/
DSweepGradient_Delegate.java166 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
168 pt1[0] = x + ix; in getRaster()
DRadialGradient_Delegate.java171 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
173 pt1[0] = x + ix; in getRaster()
/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()

123