/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/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
D | NalUnitUtil.java | 31 public static int findNalUnit(byte[] dataArray, int pos, int limit) { in findNalUnit() argument 33 if (limit - pos < 4) { in findNalUnit() 36 if (dataArray[pos] == 0 && dataArray[pos + 1] == 0 && dataArray[pos + 2] == 1) { in findNalUnit() 39 if (dataArray[pos] == 0 && dataArray[pos + 1] == 0 && dataArray[pos + 2] == 0 && in findNalUnit() 40 dataArray[pos + 3] == 1) { in findNalUnit() 120 for (int pos = 0; pos + 3 < limit; ) { in getStandardizedFrameTypesFromAVC() 121 int startOffset = NalUnitUtil.findNalUnit(dataArray, pos, limit); in getStandardizedFrameTypesFromAVC() 123 int nalUnitType = getAVCNalUnitType(dataArray, (pos + startOffset)); in getStandardizedFrameTypesFromAVC() 125 Log.d(TAG, "NalUnitOffset = " + (pos + startOffset)); in getStandardizedFrameTypesFromAVC() 130 frameType = parseAVCNALUnitData(dataArray, (pos + startOffset), in getStandardizedFrameTypesFromAVC() [all …]
|
/frameworks/av/media/module/codecs/amrwb/dec/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/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 | JsonReader.java | 199 private int pos = 0; field in JsonReader 617 pos--; in nextInArray() 621 pos--; in nextInArray() 639 pos--; in nextInObject() 664 pos--; in nextInObject() 685 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue() 686 pos++; in objectValue() 715 pos--; in nextValue() 727 for (int i = 0; i < pos; i++) { in fillBuffer() 736 if (limit != pos) { in fillBuffer() [all …]
|
D | TimeUtils.java | 209 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument 212 final int startPos = pos; in printFieldLocked() 223 formatStr[pos] = sTmpFormatStr[tmp]; in printFieldLocked() 224 pos++; in printFieldLocked() 230 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 231 pos++; in printFieldLocked() 234 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked() 236 formatStr[pos] = (char)(dig + '0'); in printFieldLocked() 237 pos++; in printFieldLocked() 240 formatStr[pos] = (char)(amt + '0'); in printFieldLocked() [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/services/core/java/com/android/server/powerstats/ |
D | ProtoStreamUtils.java | 53 ProtoOutputStream pos = new ProtoOutputStream(); in getProtoBytes() local 54 packProtoMessage(powerEntity, pos); in getProtoBytes() 55 return pos.getBytes(); in getProtoBytes() 59 ProtoOutputStream pos) { in packProtoMessage() argument 63 long peToken = pos.start(PowerStatsServiceResidencyProto.POWER_ENTITY); in packProtoMessage() 64 pos.write(PowerEntityProto.ID, powerEntity[i].id); in packProtoMessage() 65 pos.write(PowerEntityProto.NAME, powerEntity[i].name); in packProtoMessage() 70 long stateToken = pos.start(PowerEntityProto.STATES); in packProtoMessage() 71 pos.write(StateProto.ID, state.id); in packProtoMessage() 72 pos.write(StateProto.NAME, state.name); in packProtoMessage() [all …]
|
/frameworks/libs/modules-utils/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 …]
|
/frameworks/base/core/tests/fuzzers/ParcelFuzzer/ |
D | ReadUtils.java | 157 int pos = parcel.dataPosition(); 158 if (pos < 0) return; 160 parcel.setDataPosition(pos); 169 int pos = parcel.dataPosition(); 170 if (pos < 0) return; 172 parcel.setDataPosition(pos); 181 int pos = parcel.dataPosition(); 182 if (pos < 0) return; 184 parcel.setDataPosition(pos); 193 int pos = parcel.dataPosition(); [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/ |
D | Universe.kt | 53 pos: Vec2, in <lambda>() 65 this.pos = pos in <lambda>() 66 orbitRadius = pos.distance(orbitCenter) in <lambda>() 71 val orbitAngle = (pos - orbitCenter).angle() in <lambda>() 80 val orbitAngle = (pos - orbitCenter).angle() in <lambda>() 81 pos = orbitCenter + Vec2.makeWithAngleMag(orbitAngle, orbitRadius) in <lambda>() 108 Planet(orbitCenter = Vec2.Zero, radius = radius, pos = Vec2.Zero, speed = 0f) { 110 pos = Vec2.Zero 150 orbitCenter = star.pos, in initTest() 152 pos = star.pos + Vec2.makeWithAngleMag(thisPlanetFrac * PI2f, orbitRadius), in initTest() [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/av/media/module/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/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceShellCommand.java | 303 final ProtoOutputStream pos = new ProtoOutputStream(); in onCommand() local 304 pos.write(ContextSyncMessage.VERSION, 1); in onCommand() 305 final long telecomToken = pos.start(ContextSyncMessage.TELECOM); in onCommand() 307 final long facilitatorsToken = pos.start(Telecom.FACILITATORS); in onCommand() 308 pos.write(Telecom.CallFacilitator.NAME, in onCommand() 310 pos.write(Telecom.CallFacilitator.IDENTIFIER, in onCommand() 312 pos.end(facilitatorsToken); in onCommand() 314 pos.end(telecomToken); in onCommand() 317 /* sequence= */ 0, pos.getBytes()); in onCommand() 334 final ProtoOutputStream pos = new ProtoOutputStream(); in onCommand() local [all …]
|