Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/compile/mclinker/unittests/
DBinTreeTest.cpp43 BinaryTree<int>::iterator pos = m_pTestee->root(); in TEST_F() local
44 m_pTestee->join<TreeIteratorBase::Rightward>(pos, 0); in TEST_F()
45 --pos; in TEST_F()
46 m_pTestee->join<TreeIteratorBase::Rightward>(pos, 1); in TEST_F()
47 m_pTestee->join<TreeIteratorBase::Leftward>(pos, 1); in TEST_F()
48 --pos; in TEST_F()
49 m_pTestee->join<TreeIteratorBase::Rightward>(pos, 2); in TEST_F()
50 m_pTestee->join<TreeIteratorBase::Leftward>(pos, 2); in TEST_F()
59 m_pTestee->merge<TreeIteratorBase::Rightward>(pos, *mergeTree); in TEST_F()
66 BinaryTree<int>::iterator pos = m_pTestee->root(); in TEST_F() local
[all …]
/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/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_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 …]
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 …]
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.cpp53 bool isGroup(const InputTree::iterator& pos) { in isGroup() argument
54 return !pos.hasData() && !pos.isRoot(); in isGroup()
57 bool isGroup(const InputTree::const_iterator& pos) { in isGroup() argument
58 return !pos.hasData() && !pos.isRoot(); in isGroup()
61 bool isGroup(const InputTree::dfs_iterator& pos) { in isGroup() argument
62 return !pos.hasData() && !pos.isRoot(); in isGroup()
65 bool isGroup(const InputTree::const_dfs_iterator& pos) { in isGroup() argument
66 return !pos.hasData() && !pos.isRoot(); in isGroup()
69 bool isGroup(const InputTree::bfs_iterator& pos) { in isGroup() argument
70 return !pos.hasData() && !pos.isRoot(); in isGroup()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
DarmVCM4P10_InterpolateHalfDiag_Luma.c70 OMX_S32 HalfCoeff, pos; in armVCM4P10_InterpolateHalfDiag_Luma() local
87 pos = (y-2) * iSrcStep + x; in armVCM4P10_InterpolateHalfDiag_Luma()
89 pSrc [pos - 2] - in armVCM4P10_InterpolateHalfDiag_Luma()
90 5 * pSrc [pos - 1] + in armVCM4P10_InterpolateHalfDiag_Luma()
91 20 * pSrc [pos] + in armVCM4P10_InterpolateHalfDiag_Luma()
92 20 * pSrc [pos + 1] - in armVCM4P10_InterpolateHalfDiag_Luma()
93 5 * pSrc [pos + 2] + in armVCM4P10_InterpolateHalfDiag_Luma()
94 pSrc [pos + 3]; in armVCM4P10_InterpolateHalfDiag_Luma()
104 pos = y * iWidth + x; in armVCM4P10_InterpolateHalfDiag_Luma()
106 Buf [pos] - in armVCM4P10_InterpolateHalfDiag_Luma()
[all …]
DarmVCM4P10_InterpolateHalfHor_Luma.c69 OMX_S32 HalfCoeff, pos; in armVCM4P10_InterpolateHalfHor_Luma() local
79 pos = y * iSrcStep + x; in armVCM4P10_InterpolateHalfHor_Luma()
81 pSrc [pos - 2] - in armVCM4P10_InterpolateHalfHor_Luma()
82 5 * pSrc [pos - 1] + in armVCM4P10_InterpolateHalfHor_Luma()
83 20 * pSrc [pos] + in armVCM4P10_InterpolateHalfHor_Luma()
84 20 * pSrc [pos + 1] - in armVCM4P10_InterpolateHalfHor_Luma()
85 5 * pSrc [pos + 2] + in armVCM4P10_InterpolateHalfHor_Luma()
86 pSrc [pos + 3]; in armVCM4P10_InterpolateHalfHor_Luma()
DarmVCM4P10_InterpolateHalfVer_Luma.c69 OMX_S32 HalfCoeff, pos; in armVCM4P10_InterpolateHalfVer_Luma() local
81 pos = y * iSrcStep + x; in armVCM4P10_InterpolateHalfVer_Luma()
83 pSrc [pos - 2 * iSrcStep] - in armVCM4P10_InterpolateHalfVer_Luma()
84 5 * pSrc [pos - 1 * iSrcStep] + in armVCM4P10_InterpolateHalfVer_Luma()
85 20 * pSrc [pos] + in armVCM4P10_InterpolateHalfVer_Luma()
86 20 * pSrc [pos + 1 * iSrcStep] - in armVCM4P10_InterpolateHalfVer_Luma()
87 5 * pSrc [pos + 2 * iSrcStep] + in armVCM4P10_InterpolateHalfVer_Luma()
88 pSrc [pos + 3 * iSrcStep]; in armVCM4P10_InterpolateHalfVer_Luma()
/frameworks/base/core/java/android/util/
DTimeUtils.java277 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument
280 final int startPos = pos; in printFieldLocked()
291 formatStr[pos] = sTmpFormatStr[tmp]; in printFieldLocked()
292 pos++; in printFieldLocked()
298 formatStr[pos] = (char)(dig + '0'); in printFieldLocked()
299 pos++; in printFieldLocked()
302 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked()
304 formatStr[pos] = (char)(dig + '0'); in printFieldLocked()
305 pos++; in printFieldLocked()
308 formatStr[pos] = (char)(amt + '0'); in printFieldLocked()
[all …]
DJsonReader.java196 private int pos = 0; field in JsonReader
614 pos--; in nextInArray()
618 pos--; in nextInArray()
636 pos--; in nextInObject()
661 pos--; in nextInObject()
682 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue()
683 pos++; in objectValue()
712 pos--; in nextValue()
724 for (int i = 0; i < pos; i++) { in fillBuffer()
733 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/native/libs/binder/
DDebug.cpp93 char* pos = out; in typetostring() local
132 if( fullContext ) *pos++ = '\''; in typetostring()
133 pos = appendcharornum(c[0], pos); in typetostring()
134 pos = appendcharornum(c[1], pos); in typetostring()
135 pos = appendcharornum(c[2], pos); in typetostring()
136 pos = appendcharornum(c[3], pos); in typetostring()
137 if( fullContext ) *pos++ = '\''; in typetostring()
138 *pos = 0; in typetostring()
139 return pos; in typetostring()
143 *pos++ = '0'; in typetostring()
[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/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DRenameClassAdapter.java47 int pos = mOldName.indexOf('$'); in RenameClassAdapter() local
48 if (pos > 0) { in RenameClassAdapter()
49 mOldBase = mOldName.substring(0, pos); in RenameClassAdapter()
51 pos = mNewName.indexOf('$'); in RenameClassAdapter()
52 if (pos > 0) { in RenameClassAdapter()
53 mNewBase = mNewName.substring(0, pos); in RenameClassAdapter()
80 int pos = type.indexOf('$'); in renameInternalType() local
81 if (pos == mOldBase.length() && type.startsWith(mOldBase)) { in renameInternalType()
82 return mNewBase + type.substring(pos); in renameInternalType()
/frameworks/base/core/jni/
Dandroid_util_EventLog.cpp118 size_t pos = 2; // Save room for type tag & array count in android_util_EventLog_writeEvent_Array() local
124 if (pos + 1 + sizeof(jint) > max) break; in android_util_EventLog_writeEvent_Array()
127 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); in android_util_EventLog_writeEvent_Array()
128 buf[pos++] = EVENT_TYPE_STRING; in android_util_EventLog_writeEvent_Array()
129 memcpy(&buf[pos], &len, sizeof(len)); in android_util_EventLog_writeEvent_Array()
130 memcpy(&buf[pos + sizeof(len)], str, len); in android_util_EventLog_writeEvent_Array()
131 pos += sizeof(len) + len; in android_util_EventLog_writeEvent_Array()
135 if (pos + 1 + sizeof(intVal) > max) break; in android_util_EventLog_writeEvent_Array()
136 buf[pos++] = EVENT_TYPE_INT; in android_util_EventLog_writeEvent_Array()
137 memcpy(&buf[pos], &intVal, sizeof(intVal)); in android_util_EventLog_writeEvent_Array()
[all …]
Dcom_android_internal_net_NetworkStatsFactory.cpp130 char* pos = buffer; in readNetworkStatsDetail() local
133 idx = (int)strtol(pos, &endPos, 10); in readNetworkStatsDetail()
135 if (pos == endPos) { in readNetworkStatsDetail()
146 pos = endPos; in readNetworkStatsDetail()
148 while (*pos == ' ') { in readNetworkStatsDetail()
149 pos++; in readNetworkStatsDetail()
153 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) { in readNetworkStatsDetail()
154 s.iface[ifaceIdx] = *pos; in readNetworkStatsDetail()
156 pos++; in readNetworkStatsDetail()
158 if (*pos != ' ') { in readNetworkStatsDetail()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DTileList.java39 public T getItemAt(int pos) { in getItemAt() argument
40 if (mLastAccessedTile == null || !mLastAccessedTile.containsPosition(pos)) { in getItemAt()
41 final int startPosition = pos - (pos % mTileSize); in getItemAt()
48 return mLastAccessedTile.getByPosition(pos); in getItemAt()
97 boolean containsPosition(int pos) { in containsPosition() argument
98 return mStartPosition <= pos && pos < mStartPosition + mItemCount; in containsPosition()
101 T getByPosition(int pos) { in getByPosition() argument
102 return mItems[pos - mStartPosition]; in getByPosition()
/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/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/services/core/jni/
Dcom_android_server_am_BatteryStatsService.cpp110 char* pos = reasonline; in nativeWaitWakeup() local
114 int irq = (int)strtol(pos, &endPos, 10); in nativeWaitWakeup()
115 if (pos != endPos) { in nativeWaitWakeup()
121 if (strncmp(pos, "Abort:", abortPrefixLen) != 0) { in nativeWaitWakeup()
129 endPos = pos + abortPrefixLen; in nativeWaitWakeup()
131 pos = endPos; in nativeWaitWakeup()
139 while (*pos == ' ') { in nativeWaitWakeup()
140 pos++; in nativeWaitWakeup()
144 char* endpos = pos; in nativeWaitWakeup()
153 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos); in nativeWaitWakeup()
/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/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()

12345678910>>...13