/frameworks/base/core/java/org/apache/http/conn/ssl/ |
D | AndroidDistinguishedNameParser.java | 35 private int pos; field in AndroidDistinguishedNameParser 57 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT() 59 if (pos == length) { in nextAT() 64 beg = pos; in nextAT() 67 pos++; in nextAT() 68 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT() 72 if (pos >= length) { in nextAT() 77 end = pos; in nextAT() 81 if (chars[pos] == ' ') { in nextAT() 82 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | BinTreeTest.cpp | 43 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/base/core/java/android/database/sqlite/ |
D | SQLiteTokenizer.java | 93 int pos = 0; in tokenize() local 95 while (pos < len) { in tokenize() 96 final char ch = peek(sql, pos); in tokenize() 100 final int start = pos; in tokenize() 101 pos++; in tokenize() 102 while (isAlNum(peek(sql, pos))) { in tokenize() 103 pos++; in tokenize() 105 final int end = pos; in tokenize() 115 final int quoteStart = pos; in tokenize() 116 pos++; in tokenize() [all …]
|
/frameworks/support/compat/java/android/support/v4/util/ |
D | TimeUtils.java | 56 static private int printField(char[] formatStr, int amt, char suffix, int pos, in printField() argument 59 final int startPos = pos; in printField() 62 formatStr[pos] = (char)(dig + '0'); in printField() 63 pos++; in printField() 66 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField() 68 formatStr[pos] = (char)(dig + '0'); in printField() 69 pos++; in printField() 72 formatStr[pos] = (char)(amt + '0'); in printField() 73 pos++; in printField() 74 formatStr[pos] = suffix; in printField() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 127 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/ |
D | dec_alg_codebook.cpp | 118 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 …]
|
D | dec_acelp_4p_in_64.cpp | 123 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 …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | PageRangeUtils.java | 167 private static int readWhiteSpace(CharSequence s, int pos) { in readWhiteSpace() argument 168 while (pos < s.length() && s.charAt(pos) == ' ') { in readWhiteSpace() 169 pos++; in readWhiteSpace() 172 return pos; in readWhiteSpace() 183 private static Pair<Integer, Integer> readNumber(CharSequence s, int pos) { in readNumber() argument 185 while (pos < s.length() && s.charAt(pos) >= '0' && s.charAt(pos) <= '9') { in readNumber() 187 if (result == 0 && s.charAt(pos) == '0') { in readNumber() 190 result = result * 10 + (s.charAt(pos) - '0'); in readNumber() 195 pos++; in readNumber() 200 return new Pair<>(pos, null); in readNumber() [all …]
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 215 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument 218 final int startPos = pos; in printFieldLocked() 229 formatStr[pos] = sTmpFormatStr[tmp]; in printFieldLocked() 230 pos++; in printFieldLocked() 236 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 237 pos++; in printFieldLocked() 240 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked() 242 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 243 pos++; in printFieldLocked() 246 formatStr[pos] = (char)(amt + '0'); in printFieldLocked() [all …]
|
D | JsonReader.java | 196 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/compile/mclinker/lib/Core/ |
D | InputTree.cpp | 53 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/ |
D | armVCM4P10_InterpolateHalfDiag_Luma.c | 70 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 …]
|
D | armVCM4P10_InterpolateHalfHor_Luma.c | 69 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()
|
D | armVCM4P10_InterpolateHalfVer_Luma.c | 69 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/widget/ |
D | AlphabetIndexer.java | 167 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 …]
|
D | ExpandableListConnector.java | 258 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/android/util/jar/ |
D | StrictJarManifestReader.java | 42 private int pos; field in StrictJarManifestReader 55 this.endOfMainSection = pos; in StrictJarManifestReader() 59 int mark = pos; in readEntries() 85 chunks.put(entryNameValue, new StrictJarManifest.Chunk(mark, pos)); in readEntries() 86 mark = pos; in readEntries() 115 int mark = pos; in readName() 117 while (pos < buf.length) { in readName() 118 if (buf[pos++] != ':') { in readName() 122 String nameString = new String(buf, mark, pos - mark - 1, StandardCharsets.US_ASCII); in readName() 124 if (buf[pos++] != ' ') { in readName() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FastXmlSerializer.java | 89 int pos = mPos; in append() local 90 if (pos >= (mBufferLen-1)) { in append() 92 pos = mPos; in append() 94 mText[pos] = c; in append() 95 mPos = pos+1; in append() 108 int pos = mPos; in append() local 109 if ((pos+length) > mBufferLen) { in append() 111 pos = mPos; in append() 113 str.getChars(i, i+length, mText, pos); in append() 114 mPos = pos + length; in append() [all …]
|
/frameworks/native/libs/binder/ |
D | Debug.cpp | 94 char* pos = out; in typetostring() local 133 if( fullContext ) *pos++ = '\''; in typetostring() 134 pos = appendcharornum(c[0], pos); in typetostring() 135 pos = appendcharornum(c[1], pos); in typetostring() 136 pos = appendcharornum(c[2], pos); in typetostring() 137 pos = appendcharornum(c[3], pos); in typetostring() 138 if( fullContext ) *pos++ = '\''; in typetostring() 139 *pos = 0; in typetostring() 140 return pos; in typetostring() 144 *pos++ = '0'; in typetostring() [all …]
|
/frameworks/base/media/java/android/media/ |
D | Cea708CaptionRenderer.java | 267 int pos = 0; in parse() local 268 while (pos < data.length) { in parse() 269 pos = parseServiceBlockData(data, pos); in parse() 277 private int parseServiceBlockData(byte[] data, int pos) { in parseServiceBlockData() argument 279 mCommand = data[pos] & 0xff; in parseServiceBlockData() 280 ++pos; in parseServiceBlockData() 285 pos = parseExt1(data, pos); in parseServiceBlockData() 291 pos = parseC0(data, pos); in parseServiceBlockData() 297 pos = parseC1(data, pos); in parseServiceBlockData() 303 pos = parseG0(data, pos); in parseServiceBlockData() [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | RenameClassAdapter.java | 47 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/ |
D | android_app_admin_SecurityLog.cpp | 81 size_t pos = 2; // Save room for type tag & array count in android_app_admin_SecurityLog_writeEvent_Array() local 87 if (pos + 1 + sizeof(jint) > max) break; in android_app_admin_SecurityLog_writeEvent_Array() 90 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); in android_app_admin_SecurityLog_writeEvent_Array() 91 buf[pos++] = EVENT_TYPE_STRING; in android_app_admin_SecurityLog_writeEvent_Array() 92 memcpy(&buf[pos], &len, sizeof(len)); in android_app_admin_SecurityLog_writeEvent_Array() 93 memcpy(&buf[pos + sizeof(len)], str, len); in android_app_admin_SecurityLog_writeEvent_Array() 94 pos += sizeof(len) + len; in android_app_admin_SecurityLog_writeEvent_Array() 98 if (pos + 1 + sizeof(intVal) > max) break; in android_app_admin_SecurityLog_writeEvent_Array() 99 buf[pos++] = EVENT_TYPE_INT; in android_app_admin_SecurityLog_writeEvent_Array() 100 memcpy(&buf[pos], &intVal, sizeof(intVal)); in android_app_admin_SecurityLog_writeEvent_Array() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | TileList.java | 39 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/ |
D | set_sign.cpp | 253 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/native/opengl/tests/lighting1709/src/com/android/lightingtest/ |
D | ClearActivity.java | 102 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()
|