/frameworks/base/core/java/android/text/method/ |
D | WordIterator.java | 71 public int preceding(int offset) { in preceding() argument 72 int shiftedOffset = offset - mOffsetShift; in preceding() 85 public int following(int offset) { in following() argument 86 int shiftedOffset = offset - mOffsetShift; in following() 99 public boolean isBoundary(int offset) { in isBoundary() argument 100 int shiftedOffset = offset - mOffsetShift; in isBoundary() 112 public int nextBoundary(int offset) { in nextBoundary() argument 113 int shiftedOffset = offset - mOffsetShift; in nextBoundary() 128 public int prevBoundary(int offset) { in prevBoundary() argument 129 int shiftedOffset = offset - mOffsetShift; in prevBoundary() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | Exif.java | 73 int offset = 0; in getOrientation() local 86 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) { in getOrientation() 87 final int marker = jpeg.get(offset) & 0xFF; in getOrientation() 93 offset++; in getOrientation() 102 jpeg.advanceTo(offset - readBackwards); in getOrientation() 107 length = pack(jpeg, offset, 2, false); in getOrientation() 108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation() 115 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation() 116 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation() 117 offset += 8; in getOrientation() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | Exif.java | 68 int offset = 0; in getOrientation() local 81 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) { in getOrientation() 82 final int marker = jpeg.get(offset) & 0xFF; in getOrientation() 88 offset++; in getOrientation() 97 jpeg.advanceTo(offset - readBackwards); in getOrientation() 102 length = pack(jpeg, offset, 2, false); in getOrientation() 103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation() 110 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation() 111 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation() 112 offset += 8; in getOrientation() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 504 public Integer getIntValue(int formatType, int offset) { in getIntValue() argument 505 if ((offset + getTypeLen(formatType)) > mValue.length) return null; in getIntValue() 509 return unsignedByteToInt(mValue[offset]); in getIntValue() 512 return unsignedBytesToInt(mValue[offset], mValue[offset+1]); in getIntValue() 515 return unsignedBytesToInt(mValue[offset], mValue[offset+1], in getIntValue() 516 mValue[offset+2], mValue[offset+3]); in getIntValue() 518 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue() 521 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue() 522 mValue[offset+1]), 16); in getIntValue() 525 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue() [all …]
|
/frameworks/av/media/libstagefright/ |
D | ESDS.cpp | 72 size_t offset, size_t size, in skipDescriptorHeader() argument 78 *tag = mData[offset++]; in skipDescriptorHeader() 88 uint8_t x = mData[offset++]; in skipDescriptorHeader() 102 *data_offset = offset; in skipDescriptorHeader() 125 status_t ESDS::parseESDescriptor(size_t offset, size_t size) { in parseESDescriptor() argument 130 offset += 2; // skip ES_ID in parseESDescriptor() 133 unsigned streamDependenceFlag = mData[offset] & 0x80; in parseESDescriptor() 134 unsigned URL_Flag = mData[offset] & 0x40; in parseESDescriptor() 135 unsigned OCRstreamFlag = mData[offset] & 0x20; in parseESDescriptor() 137 ++offset; in parseESDescriptor() [all …]
|
D | XINGSeeker.cpp | 86 int offset = first_frame_pos; in CreateFromSource() local 87 if (source->readAt(offset, &buffer, 4) < 4) { // get header in CreateFromSource() 90 offset += 4; in CreateFromSource() 107 if (num_channels != 1) offset += 32; in CreateFromSource() 108 else offset += 17; in CreateFromSource() 110 if (num_channels != 1) offset += 17; in CreateFromSource() 111 else offset += 9; in CreateFromSource() 114 int xingbase = offset; in CreateFromSource() 116 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID in CreateFromSource() 119 offset += 4; in CreateFromSource() [all …]
|
/frameworks/base/libs/common_time/ |
D | common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 44 *((type*)(data + offset)) = converter(field_name); \ 45 offset += sizeof(field_name); \ 53 if ((offset + sizeof(field_name)) > length) \ 55 field_name = converter(*((type*)(data + offset))); \ 56 offset += sizeof(field_name); \ 80 ssize_t offset = 0; in serializeHeader() local 87 return offset; in serializeHeader() 92 ssize_t offset = 0; in deserializeHeader() local 100 return offset; in deserializeHeader() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | ChildHelper.java | 97 final int offset; in addView() local 99 offset = mCallback.getChildCount(); in addView() 101 offset = getOffset(index); in addView() 103 mBucket.insert(offset, hidden); in addView() 107 mCallback.addView(child, offset); in addView() 118 int offset = index; in getOffset() local 119 while (offset < limit) { in getOffset() 120 final int removedBefore = mBucket.countOnesBefore(offset); in getOffset() 121 final int diff = index - (offset - removedBefore); in getOffset() 123 while (mBucket.get(offset)) { // ensure this offset is not hidden in getOffset() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 43 bcdToString(byte[] data, int offset, int length) { in bcdToString() argument 46 for (int i = offset ; i < offset + length ; i++) { in bcdToString() 67 bchToString(byte[] data, int offset, int length) { in bchToString() argument 70 for (int i = offset ; i < offset + length ; i++) { in bchToString() 87 cdmaBcdToString(byte[] data, int offset, int length) { in cdmaBcdToString() argument 91 for (int i = offset; count < length; i++) { in cdmaBcdToString() 195 adnStringFieldToString(byte[] data, int offset, int length) { in adnStringFieldToString() argument 200 if (data[offset] == (byte) 0x80) { in adnStringFieldToString() 205 ret = new String(data, offset + 1, ucslen * 2, "utf-16be"); in adnStringFieldToString() 227 if (length >= 3 && data[offset] == (byte) 0x81) { in adnStringFieldToString() [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 127 pos1 = ((index & mask) + offset); in dec_1p_N1() 145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_2p_2N1() argument 155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); in dec_2p_2N1() 158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */ in dec_2p_2N1() 192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_3p_3N1() argument 205 j = offset; 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 240 j = offset; in dec_4p_4N1() [all …]
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
D | GL11.java | 161 int offset, in glBufferSubData() argument 169 int offset in glClipPlanef() argument 180 int offset in glClipPlanex() argument 199 int offset in glColorPointer() argument 205 int offset in glDeleteBuffers() argument 217 int offset in glDrawElements() argument 223 int offset in glGenBuffers() argument 234 int offset in glGetBooleanv() argument 246 int offset in glGetBufferParameteriv() argument 258 int offset in glGetClipPlanef() argument [all …]
|
/frameworks/av/media/mtp/ |
D | MtpPacket.cpp | 94 uint16_t MtpPacket::getUInt16(int offset) const { in getUInt16() 95 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset]; in getUInt16() 98 uint32_t MtpPacket::getUInt32(int offset) const { in getUInt32() 99 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) | in getUInt32() 100 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset]; in getUInt32() 103 void MtpPacket::putUInt16(int offset, uint16_t value) { in putUInt16() argument 104 mBuffer[offset++] = (uint8_t)(value & 0xFF); in putUInt16() 105 mBuffer[offset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt16() 108 void MtpPacket::putUInt32(int offset, uint32_t value) { in putUInt32() argument 109 mBuffer[offset++] = (uint8_t)(value & 0xFF); in putUInt32() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLES11.java | 174 int offset, in glBufferSubData() argument 184 int offset in glClipPlanef() argument 199 int offset in glClipPlanex() argument 224 int offset in glColorPointer() argument 232 int offset in glDeleteBuffers() argument 248 int offset in glDrawElements() argument 256 int offset in glGenBuffers() argument 271 int offset in glGetBooleanv() argument 287 int offset in glGetBufferParameteriv() argument 303 int offset in glGetClipPlanef() argument [all …]
|
D | GLErrorWrapper.java | 207 public void glDeleteTextures(int n, int[] textures, int offset) { in glDeleteTextures() argument 209 mgl.glDeleteTextures(n, textures, offset); in glDeleteTextures() 297 public void glFogfv(int pname, float[] params, int offset) { in glFogfv() argument 299 mgl.glFogfv(pname, params, offset); in glFogfv() 315 public void glFogxv(int pname, int[] params, int offset) { in glFogxv() argument 317 mgl.glFogxv(pname, params, offset); in glFogxv() 347 public void glGenTextures(int n, int[] textures, int offset) { in glGenTextures() argument 349 mgl.glGenTextures(n, textures, offset); in glGenTextures() 365 public void glGetIntegerv(int pname, int[] params, int offset) { in glGetIntegerv() argument 367 mgl.glGetIntegerv(pname, params, offset); in glGetIntegerv() [all …]
|
D | GLLogWrapper.java | 118 private void arg(String name, int n, int[] arr, int offset) { in arg() argument 119 arg(name, toString(n, FORMAT_INT, arr, offset)); in arg() 122 private void arg(String name, int n, short[] arr, int offset) { in arg() argument 123 arg(name, toString(n, arr, offset)); in arg() 126 private void arg(String name, int n, float[] arr, int offset) { in arg() argument 127 arg(name, toString(n, arr, offset)); in arg() 144 private String toString(int n, int format, int[] arr, int offset) { in toString() argument 149 int index = offset + i; in toString() 162 private String toString(int n, short[] arr, int offset) { in toString() argument 167 int index = offset + i; in toString() [all …]
|
/frameworks/base/core/java/com/android/internal/alsa/ |
D | LineTokenizer.java | 34 int offset = startIndex; in nextToken() local 35 for (; offset < len; offset++) { in nextToken() 36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) { in nextToken() 42 return offset < len ? offset : kTokenNotFound; in nextToken() 47 int offset = startIndex; in nextDelimiter() local 48 for (; offset < len; offset++) { in nextDelimiter() 49 if (mDelimiters.indexOf(line.charAt(offset)) != -1) { in nextDelimiter() 55 return offset < len ? offset : kTokenNotFound; in nextDelimiter()
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/ |
D | omxVCM4P2_MCReconBlock_s.s | 106 M_LOAD_X $pSrc, $srcStep, $out0, $out1, $scratch, $offset 107 IF $offset = 0 114 MOV $out0, $out0, LSR #8 * $offset 115 ORR $out0, $out0, $out1, LSL #(32 - 8 * ($offset)) 116 MOV $out1, $out1, LSR #8 * $offset 117 ORR $out1, $out1, $scratch, LSL #(32 - 8 * ($offset)) 169 M_LOAD_XINT $pSrc, $srcStep, $offset, $word0, $word1, $word2, $word3 170 IF $offset /= 3 217 M_EXT_XINT $offset, $word0, $word1, $word2, $word3 218 IF $offset = 0 [all …]
|
/frameworks/native/opengl/libagl/ |
D | mipmap.cpp | 62 size_t offset = (y*2) * bs; in buildAPyramid() local 64 uint32_t p00 = src[offset]; in buildAPyramid() 65 uint32_t p10 = src[offset+1]; in buildAPyramid() 66 uint32_t p01 = src[offset+bs]; in buildAPyramid() 67 uint32_t p11 = src[offset+bs+1]; in buildAPyramid() 75 offset += 2; in buildAPyramid() 84 size_t offset = (y*2) * bs; in buildAPyramid() local 86 uint32_t p00 = src[offset]; in buildAPyramid() 87 uint32_t p10 = src[offset+1]; in buildAPyramid() 88 uint32_t p01 = src[offset+bs]; in buildAPyramid() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | GraphemeBreak.cpp | 70 size_t offset) { in isGraphemeBreak() argument 77 if (offset <= start || offset >= start + count) { in isGraphemeBreak() 80 if (U16_IS_TRAIL(buf[offset])) { in isGraphemeBreak() 82 return !U16_IS_LEAD(buf[offset - 1]); in isGraphemeBreak() 86 size_t offset_back = offset; in isGraphemeBreak() 88 U16_NEXT(buf, offset, start + count, c2); in isGraphemeBreak() 133 return (offset - 2 - offset_back) % 4 == 0; in isGraphemeBreak() 181 size_t offset, MoveOpt opt) { in getTextRunCursor() argument 184 if (offset < start + count) { in getTextRunCursor() 185 offset++; in getTextRunCursor() [all …]
|
D | LayoutUtils.cpp | 44 const uint16_t* chars, size_t offset, size_t len) { in getPrevWordBreakForCache() argument 45 if (offset == 0) return 0; in getPrevWordBreakForCache() 46 if (offset > len) offset = len; in getPrevWordBreakForCache() 47 if (isWordBreakBefore(chars[offset - 1])) { in getPrevWordBreakForCache() 48 return offset - 1; in getPrevWordBreakForCache() 50 for (size_t i = offset - 1; i > 0; i--) { in getPrevWordBreakForCache() 62 const uint16_t* chars, size_t offset, size_t len) { in getNextWordBreakForCache() argument 63 if (offset >= len) return len; in getNextWordBreakForCache() 64 if (isWordBreakAfter(chars[offset])) { in getNextWordBreakForCache() 65 return offset + 1; in getNextWordBreakForCache() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_getbits.cpp | 114 uint32 offset; in getNbits() local 127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; in getNbits() 129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); in getNbits() 130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getNbits() 131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE)); in getNbits() 132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE)); in getNbits() 162 uint32 offset; in getUpTo9bits() local 168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; in getUpTo9bits() 170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); in getUpTo9bits() 171 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getUpTo9bits() [all …]
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
D | GLImpl.java | 292 int offset in glDeleteTextures() argument 391 int offset in glFogfv() argument 413 int offset in glFogxv() argument 456 int offset in glGenTextures() argument 476 int offset in glGetIntegerv() argument 521 int offset in glLightModelfv() argument 543 int offset in glLightModelxv() argument 567 int offset in glLightfv() argument 592 int offset in glLightxv() argument 624 int offset in glLoadMatrixf() argument [all …]
|
/frameworks/base/core/java/com/android/internal/midi/ |
D | MidiFramer.java | 48 public static String formatMidiData(byte[] data, int offset, int count) { in formatMidiData() argument 49 String text = "MIDI+" + offset + " : "; in formatMidiData() 51 text += String.format("0x%02X, ", data[offset + i]); in formatMidiData() 60 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument 62 int sysExStartOffset = (mInSysEx ? offset : -1); in onSend() 65 final byte currentByte = data[offset]; in onSend() 76 sysExStartOffset = offset; in onSend() 81 offset - sysExStartOffset + 1, timestamp); in onSend() 95 offset - sysExStartOffset, timestamp); in onSend() 96 sysExStartOffset = offset + 1; in onSend() [all …]
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 215 private long read32(byte[] buffer, int offset) { in read32() argument 216 byte b0 = buffer[offset]; in read32() 217 byte b1 = buffer[offset+1]; in read32() 218 byte b2 = buffer[offset+2]; in read32() 219 byte b3 = buffer[offset+3]; in read32() 234 private long readTimeStamp(byte[] buffer, int offset) { in readTimeStamp() argument 235 long seconds = read32(buffer, offset); in readTimeStamp() 236 long fraction = read32(buffer, offset + 4); in readTimeStamp() 248 private void writeTimeStamp(byte[] buffer, int offset, long time) { in writeTimeStamp() argument 251 Arrays.fill(buffer, offset, offset + 8, (byte) 0x00); in writeTimeStamp() [all …]
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86PLT.cpp | 102 uint32_t offset = 0; in finalizeSectionSize() local 105 frag->setOffset(offset); in finalizeSectionSize() 106 offset += frag->size(); in finalizeSectionSize() 154 uint32_t* offset = reinterpret_cast<uint32_t*>(data + 2); in applyPLT0() local 155 *offset = m_GOTPLT.addr() + 4; in applyPLT0() 156 offset = reinterpret_cast<uint32_t*>(data + 8); in applyPLT0() 157 *offset = m_GOTPLT.addr() + 8; in applyPLT0() 196 uint32_t* offset; in applyPLT1() local 198 offset = reinterpret_cast<uint32_t*>(data + 2); in applyPLT1() 199 *offset = GOTEntryOffset; in applyPLT1() [all …]
|