/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/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 …]
|
D | q_pulse.h | 66 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/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/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 143 protected int getGradientColor(float pos) { in getGradientColor() argument 144 if (pos < 0.f) { in getGradientColor() 148 pos = 0.f; in getGradientColor() 153 pos = pos - (float)Math.floor(pos); in getGradientColor() 158 pos = Math.abs(pos); in getGradientColor() 161 int intPart = (int)Math.floor(pos); in getGradientColor() 162 pos = pos - intPart; in getGradientColor() 168 pos = 1.f - pos; in getGradientColor() 173 pos = 0.0f; in getGradientColor() 175 } else if (pos > 1f) { in getGradientColor() [all …]
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 175 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument 178 final int startPos = pos; in printFieldLocked() 189 formatStr[pos] = sTmpFormatStr[tmp]; in printFieldLocked() 190 pos++; in printFieldLocked() 196 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 197 pos++; in printFieldLocked() 200 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked() 202 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 203 pos++; in printFieldLocked() 206 formatStr[pos] = (char)(amt + '0'); in printFieldLocked() [all …]
|
D | JsonReader.java | 198 private int pos = 0; field in JsonReader 616 pos--; in nextInArray() 620 pos--; in nextInArray() 638 pos--; in nextInObject() 663 pos--; in nextInObject() 684 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue() 685 pos++; in objectValue() 714 pos--; in nextValue() 726 for (int i = 0; i < pos; i++) { in fillBuffer() 735 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/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 | 92 int pos = mPos; in append() local 93 if (pos >= (mBufferLen-1)) { in append() 95 pos = mPos; in append() 97 mText[pos] = c; in append() 98 mPos = pos+1; in append() 111 int pos = mPos; in append() local 112 if ((pos+length) > mBufferLen) { in append() 114 pos = mPos; in append() 116 str.getChars(i, i+length, mText, pos); in append() 117 mPos = pos + length; in append() [all …]
|
D | RingBufferIndices.java | 44 final int pos = mSize; in add() local 46 return pos; in add() 48 int pos = mStart; in add() local 53 return pos; in add() 75 public int indexOf(int pos) { in indexOf() argument 76 int index = mStart + pos; in indexOf()
|
/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/base/cmds/statsd/src/logd/ |
D | LogEvent.cpp | 69 int pos[] = {1, i + 1, 1}; in LogEvent() local 70 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.uids[i]))); in LogEvent() 71 pos[2]++; in LogEvent() 72 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.tags[i]))); in LogEvent() 145 int pos[] = {1, 1, 1}; in LogEvent() local 147 mValues.push_back(FieldValue(Field(mTagId, pos, 0 /* depth */), Value(uid))); in LogEvent() 148 pos[0]++; in LogEvent() 150 pos[2] = 1; in LogEvent() 151 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.first))); in LogEvent() 152 pos[2] = 2; in LogEvent() [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/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/minikin/libs/minikin/ |
D | LayoutSplitter.h | 92 iterator(const LayoutSplitter* parent, uint32_t pos) : mParent(parent), mPos(pos) { in iterator() argument 96 mContextRange.setStart(getPrevWordBreakForCache(textBuf, pos)); in iterator() 97 mContextRange.setEnd(getNextWordBreakForCache(textBuf, pos == 0 ? 0 : pos - 1)); in iterator() 99 mPieceRange.setEnd(pos); in iterator() 102 getPrevWordBreakForCache(textBuf, pos == range.getEnd() ? pos : pos + 1)); in iterator() 103 mContextRange.setEnd(getNextWordBreakForCache(textBuf, pos)); in iterator() 104 mPieceRange.setStart(pos); in iterator()
|
/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()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | c4t64fx.c | 140 Word16 st, ix, iy, pos, index, track, nb_pulse, nbiter, j_temp; in ACELP_4t64_fx() local 304 pos = 0; in ACELP_4t64_fx() 315 pos = j; in ACELP_4t64_fx() 318 dn2[pos] = (k - NB_MAX); /* dn2 < 0 when position is selected */ in ACELP_4t64_fx() 321 pos_max[i] = pos; in ACELP_4t64_fx() 416 pos = MSIZE - 1; in ACELP_4t64_fx() 421 p3 = &rrixiy[2][pos]; in ACELP_4t64_fx() 422 p2 = &rrixiy[1][pos]; in ACELP_4t64_fx() 423 p1 = &rrixiy[0][pos]; in ACELP_4t64_fx() 424 p0 = &rrixiy[3][pos - NB_POS]; in ACELP_4t64_fx() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | mp3reader.cpp | 241 off64_t pos = *inout_pos; in resync() local 254 if (pos >= *inout_pos + kMaxBytesChecked) { in resync() 271 totalBytesRead = sourceReadAt(fp, pos + remainingBytes, in resync() 287 ++pos; in resync() 298 ++pos; in resync() 307 off64_t test_pos = pos + frame_size; in resync() 336 *inout_pos = pos; in resync() 343 ++pos; in resync() 362 off64_t pos = 0; in init() local 364 bool success = resync(mFp, 0 /*match_header*/, &pos, &header); in init() [all …]
|