Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 238) sorted by relevance

12345678910

/frameworks/support/v4/java/android/support/v4/util/
DTimeUtils.java51 static private int printField(char[] formatStr, int amt, char suffix, int pos, in printField() argument
54 final int startPos = pos; in printField()
57 formatStr[pos] = (char)(dig + '0'); in printField()
58 pos++; in printField()
61 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField()
63 formatStr[pos] = (char)(dig + '0'); in printField()
64 pos++; in printField()
67 formatStr[pos] = (char)(amt + '0'); in printField()
68 pos++; in printField()
69 formatStr[pos] = suffix; in printField()
[all …]
/frameworks/compile/mclinker/unittests/
DBinTreeTest.cpp50 BinaryTree<int>::iterator pos = m_pTestee->root(); in TEST_F() local
51 m_pTestee->join<TreeIteratorBase::Rightward>(pos,0); in TEST_F()
52 --pos; in TEST_F()
53 m_pTestee->join<TreeIteratorBase::Rightward>(pos,1); in TEST_F()
54 m_pTestee->join<TreeIteratorBase::Leftward>(pos,1); in TEST_F()
55 --pos; in TEST_F()
56 m_pTestee->join<TreeIteratorBase::Rightward>(pos,2); in TEST_F()
57 m_pTestee->join<TreeIteratorBase::Leftward>(pos,2); in TEST_F()
66 m_pTestee->merge<TreeIteratorBase::Rightward>(pos,*mergeTree); in TEST_F()
74 BinaryTree<int>::iterator pos = m_pTestee->root(); in TEST_F() local
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java127 protected int getGradientColor(float pos) { in getGradientColor() argument
128 if (pos < 0.f) { in getGradientColor()
132 pos = 0.f; in getGradientColor()
137 pos = pos - (float)Math.floor(pos); in getGradientColor()
142 pos = Math.abs(pos); in getGradientColor()
145 int intPart = (int)Math.floor(pos); in getGradientColor()
146 pos = pos - intPart; in getGradientColor()
152 pos = 1.f - pos; in getGradientColor()
157 pos = 0.0f; in getGradientColor()
159 } else if (pos > 1f) { in getGradientColor()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddec_acelp_4p_in_64.cpp123 void add_pulses(int16 pos[], int16 nb_pulse, int16 track, int16 code[]);
160 int16 k, pos[6]; in dec_acelp_4p_in_64() local
173 dec_1p_N1(L_index, 4, 0, pos); in dec_acelp_4p_in_64()
174 add_pulses(pos, 1, k, code); in dec_acelp_4p_in_64()
182 dec_2p_2N1(L_index, 4, 0, pos); in dec_acelp_4p_in_64()
183 add_pulses(pos, 2, k, code); in dec_acelp_4p_in_64()
190 dec_3p_3N1(L_index, 4, 0, pos); in dec_acelp_4p_in_64()
191 add_pulses(pos, 3, k, code); in dec_acelp_4p_in_64()
196 dec_2p_2N1(L_index, 4, 0, pos); in dec_acelp_4p_in_64()
197 add_pulses(pos, 2, k, code); in dec_acelp_4p_in_64()
[all …]
Ddec_alg_codebook.cpp118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_1p_N1() argument
135 pos[0] = pos1; in dec_1p_N1()
145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_2p_2N1() argument
180 pos[0] = pos1; in dec_2p_2N1()
181 pos[1] = pos2; in dec_2p_2N1()
192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_3p_3N1() argument
213 dec_2p_2N1(idx, (int16)(N - 1), j, pos); in dec_3p_3N1()
219 dec_1p_N1(idx, N, offset, pos + 2); in dec_3p_3N1()
229 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_4p_4N1() argument
248 dec_2p_2N1(idx, (int16)(N - 1), j, pos); in dec_4p_4N1()
[all …]
Dq_pulse.h66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]);
67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]);
68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]);
69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]);
70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]);
71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]);
72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
/frameworks/compile/mclinker/lib/Core/
DInputTree.cpp57 bool mcld::isGroup(const InputTree::iterator& pos) in isGroup() argument
59 return !pos.hasData() && !pos.isRoot(); in isGroup()
62 bool mcld::isGroup(const InputTree::const_iterator& pos) in isGroup() argument
64 return !pos.hasData() && !pos.isRoot(); in isGroup()
67 bool mcld::isGroup(const InputTree::dfs_iterator& pos) in isGroup() argument
69 return !pos.hasData() && !pos.isRoot(); in isGroup()
72 bool mcld::isGroup(const InputTree::const_dfs_iterator& pos) in isGroup() argument
74 return !pos.hasData() && !pos.isRoot(); in isGroup()
77 bool mcld::isGroup(const InputTree::bfs_iterator& pos) in isGroup() argument
79 return !pos.hasData() && !pos.isRoot(); in isGroup()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
DarmVCM4P10_InterpolateHalfDiag_Luma.c55 OMX_S32 HalfCoeff, pos; in armVCM4P10_InterpolateHalfDiag_Luma() local
72 pos = (y-2) * iSrcStep + x; in armVCM4P10_InterpolateHalfDiag_Luma()
74 pSrc [pos - 2] - in armVCM4P10_InterpolateHalfDiag_Luma()
75 5 * pSrc [pos - 1] + in armVCM4P10_InterpolateHalfDiag_Luma()
76 20 * pSrc [pos] + in armVCM4P10_InterpolateHalfDiag_Luma()
77 20 * pSrc [pos + 1] - in armVCM4P10_InterpolateHalfDiag_Luma()
78 5 * pSrc [pos + 2] + in armVCM4P10_InterpolateHalfDiag_Luma()
79 pSrc [pos + 3]; in armVCM4P10_InterpolateHalfDiag_Luma()
89 pos = y * iWidth + x; in armVCM4P10_InterpolateHalfDiag_Luma()
91 Buf [pos] - in armVCM4P10_InterpolateHalfDiag_Luma()
[all …]
DarmVCM4P10_InterpolateHalfHor_Luma.c54 OMX_S32 HalfCoeff, pos; in armVCM4P10_InterpolateHalfHor_Luma() local
64 pos = y * iSrcStep + x; in armVCM4P10_InterpolateHalfHor_Luma()
66 pSrc [pos - 2] - in armVCM4P10_InterpolateHalfHor_Luma()
67 5 * pSrc [pos - 1] + in armVCM4P10_InterpolateHalfHor_Luma()
68 20 * pSrc [pos] + in armVCM4P10_InterpolateHalfHor_Luma()
69 20 * pSrc [pos + 1] - in armVCM4P10_InterpolateHalfHor_Luma()
70 5 * pSrc [pos + 2] + in armVCM4P10_InterpolateHalfHor_Luma()
71 pSrc [pos + 3]; in armVCM4P10_InterpolateHalfHor_Luma()
DarmVCM4P10_InterpolateHalfVer_Luma.c54 OMX_S32 HalfCoeff, pos; in armVCM4P10_InterpolateHalfVer_Luma() local
66 pos = y * iSrcStep + x; in armVCM4P10_InterpolateHalfVer_Luma()
68 pSrc [pos - 2 * iSrcStep] - in armVCM4P10_InterpolateHalfVer_Luma()
69 5 * pSrc [pos - 1 * iSrcStep] + in armVCM4P10_InterpolateHalfVer_Luma()
70 20 * pSrc [pos] + in armVCM4P10_InterpolateHalfVer_Luma()
71 20 * pSrc [pos + 1 * iSrcStep] - in armVCM4P10_InterpolateHalfVer_Luma()
72 5 * pSrc [pos + 2 * iSrcStep] + in armVCM4P10_InterpolateHalfVer_Luma()
73 pSrc [pos + 3 * iSrcStep]; in armVCM4P10_InterpolateHalfVer_Luma()
/frameworks/base/core/java/android/util/
DTimeUtils.java266 static private int printField(char[] formatStr, int amt, char suffix, int pos, in printField() argument
269 final int startPos = pos; in printField()
272 formatStr[pos] = (char)(dig + '0'); in printField()
273 pos++; in printField()
276 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField()
278 formatStr[pos] = (char)(dig + '0'); in printField()
279 pos++; in printField()
282 formatStr[pos] = (char)(amt + '0'); in printField()
283 pos++; in printField()
284 formatStr[pos] = suffix; in printField()
[all …]
DJsonReader.java196 private int pos = 0; field in JsonReader
611 pos--; in nextInArray()
615 pos--; in nextInArray()
633 pos--; in nextInObject()
658 pos--; in nextInObject()
679 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue()
680 pos++; in objectValue()
709 pos--; in nextValue()
721 for (int i = 0; i < pos; i++) { in fillBuffer()
730 if (limit != pos) { in fillBuffer()
[all …]
/frameworks/base/core/java/android/widget/
DAlphabetIndexer.java167 int pos; in getPositionForSection() local
173 if (Integer.MIN_VALUE != (pos = alphaMap.get(key, Integer.MIN_VALUE))) { in getPositionForSection()
177 if (pos < 0) { in getPositionForSection()
178 pos = -pos; in getPositionForSection()
179 end = pos; in getPositionForSection()
182 return pos; in getPositionForSection()
198 pos = (end + start) / 2; in getPositionForSection()
200 while (pos < end) { in getPositionForSection()
202 cursor.moveToPosition(pos); in getPositionForSection()
205 if (pos == 0) { in getPositionForSection()
[all …]
DExpandableListConnector.java258 PositionMetadata getFlattenedPos(final ExpandableListPosition pos) { in getFlattenedPos() argument
274 return PositionMetadata.obtain(pos.groupPos, pos.type, in getFlattenedPos()
275 pos.groupPos, pos.childPos, null, 0); in getFlattenedPos()
287 if (pos.groupPos > midExpGm.gPos) { in getFlattenedPos()
292 } else if (pos.groupPos < midExpGm.gPos) { in getFlattenedPos()
297 } else if (pos.groupPos == midExpGm.gPos) { in getFlattenedPos()
302 if (pos.type == ExpandableListPosition.GROUP) { in getFlattenedPos()
304 return PositionMetadata.obtain(midExpGm.flPos, pos.type, in getFlattenedPos()
305 pos.groupPos, pos.childPos, midExpGm, midExpGroupIndex); in getFlattenedPos()
306 } else if (pos.type == ExpandableListPosition.CHILD) { in getFlattenedPos()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DFastXmlSerializer.java71 int pos = mPos; in append() local
72 if (pos >= (BUFFER_LEN-1)) { in append()
74 pos = mPos; in append()
76 mText[pos] = c; in append()
77 mPos = pos+1; in append()
90 int pos = mPos; in append() local
91 if ((pos+length) > BUFFER_LEN) { in append()
93 pos = mPos; in append()
95 str.getChars(i, i+length, mText, pos); in append()
96 mPos = pos + length; in append()
[all …]
/frameworks/native/libs/utils/
DDebug.cpp107 char* pos = out; in typetostring() local
146 if( fullContext ) *pos++ = '\''; in typetostring()
147 pos = appendcharornum(c[0], pos); in typetostring()
148 pos = appendcharornum(c[1], pos); in typetostring()
149 pos = appendcharornum(c[2], pos); in typetostring()
150 pos = appendcharornum(c[3], pos); in typetostring()
151 if( fullContext ) *pos++ = '\''; in typetostring()
152 *pos = 0; in typetostring()
153 return pos; in typetostring()
157 *pos++ = '0'; in typetostring()
[all …]
/frameworks/compile/mclinker/lib/CodeGen/
DMCLinker.cpp270 unsigned int pos = ArgInputObjectFiles.getPosition(input - inBegin); in initializeInputTree() local
271 actions.push_back(new InputFileAction(pos, *input)); in initializeInputTree()
272 actions.push_back(new ContextAction(pos)); in initializeInputTree()
273 actions.push_back(new MemoryAreaAction(pos, FileHandle::ReadOnly)); in initializeInputTree()
281 unsigned int pos = ArgNameSpecList.getPosition(namespec - nsBegin); in initializeInputTree() local
282 actions.push_back(new NamespecAction(pos, *namespec, in initializeInputTree()
284 actions.push_back(new ContextAction(pos)); in initializeInputTree()
285 actions.push_back(new MemoryAreaAction(pos, FileHandle::ReadOnly)); in initializeInputTree()
294 unsigned int pos = ArgWholeArchiveList.getPosition(attr - attrBegin); in initializeInputTree() local
295 actions.push_back(new WholeArchiveAction(pos)); in initializeInputTree()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dset_sign.cpp253 Word16 pos = 0; /* initialization only needed to keep gcc silent */ in set_sign() local
288 pos = j; in set_sign()
292 dn2[pos] = -1; in set_sign()
504 Word16 pos = 0; /* initialization only needed to keep gcc silent */ in set_sign12k2() local
575 pos = j; in set_sign12k2()
579 pos_max[i] = pos; in set_sign12k2()
592 pos = ipos[0]; in set_sign12k2()
593 ipos[nb_track] = pos; in set_sign12k2()
597 pos++; in set_sign12k2()
599 if (pos >= nb_track) in set_sign12k2()
[all …]
/frameworks/ex/variablespeed/jni/
Dring_buffer.cc102 int pos = Tell(reader) % size_; in Copy() local
103 if (pos + num_frames <= size_) { in Copy()
104 memcpy(destination, samples_ + pos * num_channels_, in Copy()
107 int wrapped = size_ - pos; in Copy()
108 memcpy(destination, samples_ + pos * num_channels_, in Copy()
117 int pos = Tell(reader) % size_; in GetPointer() local
118 if (pos + num_frames <= size_) { in GetPointer()
119 return samples_ + pos * num_channels_; in GetPointer()
137 int pos = Tell(reader) % size_; in MergeBack() local
138 if (pos + num_frames <= size_) { in MergeBack()
[all …]
/frameworks/native/opengl/tests/lighting1709/src/com/android/lightingtest/
DClearActivity.java102 final float pos[] = { in onDrawFrame() local
134 v[j*3+0] -= pos[i*3+0]; in onDrawFrame()
135 v[j*3+1] -= pos[i*3+1]; in onDrawFrame()
136 v[j*3+2] -= pos[i*3+2]; in onDrawFrame()
152 gl.glTranslatef(pos[0], pos[1], pos[2]); in onDrawFrame()
158 gl.glTranslatef(pos[3], pos[4], pos[5]); in onDrawFrame()
164 gl.glTranslatef(pos[6], pos[7], pos[8]); in onDrawFrame()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc4t64fx.c136 Word16 st, ix, iy, pos, index, track, nb_pulse, nbiter, j_temp; in ACELP_4t64_fx() local
300 pos = 0; in ACELP_4t64_fx()
311 pos = j; in ACELP_4t64_fx()
314 dn2[pos] = (k - NB_MAX); /* dn2 < 0 when position is selected */ in ACELP_4t64_fx()
317 pos_max[i] = pos; in ACELP_4t64_fx()
412 pos = MSIZE - 1; in ACELP_4t64_fx()
417 p3 = &rrixiy[2][pos]; in ACELP_4t64_fx()
418 p2 = &rrixiy[1][pos]; in ACELP_4t64_fx()
419 p1 = &rrixiy[0][pos]; in ACELP_4t64_fx()
420 p0 = &rrixiy[3][pos - NB_POS]; in ACELP_4t64_fx()
[all …]
/frameworks/base/core/jni/
Dandroid_util_EventLog.cpp99 size_t pos = 2; // Save room for type tag & array count in android_util_EventLog_writeEvent_Array() local
105 if (pos + 1 + sizeof(jint) > max) break; in android_util_EventLog_writeEvent_Array()
108 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); in android_util_EventLog_writeEvent_Array()
109 buf[pos++] = EVENT_TYPE_STRING; in android_util_EventLog_writeEvent_Array()
110 memcpy(&buf[pos], &len, sizeof(len)); in android_util_EventLog_writeEvent_Array()
111 memcpy(&buf[pos + sizeof(len)], str, len); in android_util_EventLog_writeEvent_Array()
112 pos += sizeof(len) + len; in android_util_EventLog_writeEvent_Array()
116 if (pos + 1 + sizeof(intVal) > max) break; in android_util_EventLog_writeEvent_Array()
117 buf[pos++] = EVENT_TYPE_INT; in android_util_EventLog_writeEvent_Array()
118 memcpy(&buf[pos], &intVal, sizeof(intVal)); in android_util_EventLog_writeEvent_Array()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dd4_17pf.cpp185 Word16 pos[NB_PULSE]; in decode_4i40_17bits() local
203 pos[0] = i * 5; /* pos0 =i*5 */ in decode_4i40_17bits()
212 pos[1] = i * 5 + 1; /* pos1 =i*5+1 */ in decode_4i40_17bits()
222 pos[2] = i * 5 + 2; /* pos2 =i*5+2 */ in decode_4i40_17bits()
238 pos[3] = i * 5 + 3 + j; /* pos3 =i*5+3+j */ in decode_4i40_17bits()
265 cod[pos[j]] = i * 16383 - 8192; in decode_4i40_17bits()
/frameworks/av/media/libstagefright/
DVBRISeeker.cpp39 off64_t pos = post_id3_pos; in CreateFromSource() local
42 ssize_t n = source->readAt(pos, header, sizeof(header)); in CreateFromSource()
55 pos += sizeof(header) + 32; in CreateFromSource()
58 n = source->readAt(pos, vbriHeader, sizeof(vbriHeader)); in CreateFromSource()
86 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize); in CreateFromSource()
148 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { in getOffsetForTime() argument
156 *pos = mBasePos; in getOffsetForTime()
160 *pos += mSegments.itemAt(segmentIndex++); in getOffsetForTime()
163 ALOGV("getOffsetForTime %lld us => 0x%08lx", *timeUs, *pos); in getOffsetForTime()
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp129 size_t pos = current->begin; in arrange() local
130 while (pos != current->end) { in arrange()
131 if (m_OutputSymbols[pos] == &pSymbol) in arrange()
133 ++pos; in arrange()
136 assert(current->end != pos); in arrange()
149 std::swap(m_OutputSymbols[pos], m_OutputSymbols[rear]); in arrange()
150 pos = rear; in arrange()
170 std::swap(m_OutputSymbols[current->begin], m_OutputSymbols[pos]); in arrange()
171 pos = current->begin; in arrange()
187 size_t pos = m_pCommon->end - 1; in changeCommonsToGlobal() local
[all …]

12345678910