/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/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | decoder.py | 117 def DecodeVarint(buffer, pos): argument 121 b = six.indexbytes(buffer, pos) 123 pos += 1 127 return (result, pos) 137 def DecodeVarint(buffer, pos): argument 141 b = six.indexbytes(buffer, pos) 143 pos += 1 151 return (result, pos) 169 def ReadTag(buffer, pos): argument 180 start = pos [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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | stringpiece.cc | 50 StringPiece::StringPiece(StringPiece x, stringpiece_ssize_type pos) in StringPiece() argument 51 : ptr_(x.ptr_ + pos), length_(x.length_ - pos) { in StringPiece() 52 GOOGLE_DCHECK_LE(0, pos); in StringPiece() 53 GOOGLE_DCHECK_LE(pos, x.length_); in StringPiece() 57 stringpiece_ssize_type pos, in StringPiece() argument 59 : ptr_(x.ptr_ + pos), length_(std::min(len, x.length_ - pos)) { in StringPiece() 60 GOOGLE_DCHECK_LE(0, pos); in StringPiece() 61 GOOGLE_DCHECK_LE(pos, x.length_); in StringPiece() 92 size_type pos) const { in copy() 93 stringpiece_ssize_type ret = std::min(length_ - pos, n); in copy() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
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 | 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 | 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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/ |
D | CodedInputStream.java | 391 final int pos; in readStringRequireUtf8() local 397 pos = oldPos; in readStringRequireUtf8() 403 pos = 0; in readStringRequireUtf8() 404 bufferPos = pos + size; in readStringRequireUtf8() 408 pos = 0; in readStringRequireUtf8() 411 if (!Utf8.isValidUtf8(bytes, pos, pos + size)) { in readStringRequireUtf8() 414 return new String(bytes, pos, size, Internal.UTF_8); in readStringRequireUtf8() 604 int pos = bufferPos; in readRawVarint32() local 606 if (bufferSize == pos) { in readRawVarint32() 612 if ((x = buffer[pos++]) >= 0) { in readRawVarint32() [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/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/util/ |
D | TimeUtils.java | 169 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument 172 final int startPos = pos; in printFieldLocked() 183 formatStr[pos] = sTmpFormatStr[tmp]; in printFieldLocked() 184 pos++; in printFieldLocked() 190 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 191 pos++; in printFieldLocked() 194 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked() 196 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 197 pos++; in printFieldLocked() 200 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/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 | 91 int pos = mPos; in append() local 92 if (pos >= (mBufferLen-1)) { in append() 94 pos = mPos; in append() 96 mText[pos] = c; in append() 97 mPos = pos+1; in append() 110 int pos = mPos; in append() local 111 if ((pos+length) > mBufferLen) { in append() 113 pos = mPos; in append() 115 str.getChars(i, i+length, mText, pos); in append() 116 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/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/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/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()
|