/frameworks/base/core/java/android/text/method/ |
D | WordIterator.java | 71 public int preceding(int offset) { in preceding() argument 72 checkOffsetIsValid(offset); in preceding() 74 offset = mIterator.preceding(offset); in preceding() 75 if (offset == BreakIterator.DONE || isOnLetterOrDigit(offset)) { in preceding() 76 return offset; in preceding() 82 public int following(int offset) { in following() argument 83 checkOffsetIsValid(offset); in following() 85 offset = mIterator.following(offset); in following() 86 if (offset == BreakIterator.DONE || isAfterLetterOrDigit(offset)) { in following() 87 return offset; in following() [all …]
|
/frameworks/av/media/libstagefright/ |
D | ItemTable.cpp | 46 offset(0), size(0), nextTileIndex(0) {} in ImageItem() 69 off64_t offset; member 101 status_t parseChunk(off64_t *offset); 103 status_t parseChunks(off64_t offset, size_t size); 110 status_t Box::parseChunk(off64_t *offset) { in parseChunk() argument 111 if (*offset < 0) { in parseChunk() 116 if (mDataSource->readAt(*offset, hdr, 8) < 8) { in parseChunk() 121 off64_t data_offset = *offset + 8; in parseChunk() 124 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk() 146 ALOGV("chunk: %s @ %lld", chunk, (long long)*offset); in parseChunk() [all …]
|
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/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 | 512 public Integer getIntValue(int formatType, int offset) { in getIntValue() argument 513 if ((offset + getTypeLen(formatType)) > mValue.length) return null; in getIntValue() 517 return unsignedByteToInt(mValue[offset]); in getIntValue() 520 return unsignedBytesToInt(mValue[offset], mValue[offset+1]); in getIntValue() 523 return unsignedBytesToInt(mValue[offset], mValue[offset+1], in getIntValue() 524 mValue[offset+2], mValue[offset+3]); in getIntValue() 526 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue() 529 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue() 530 mValue[offset+1]), 16); in getIntValue() 533 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue() [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/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 44 bcdToString(byte[] data, int offset, int length) { in bcdToString() argument 47 for (int i = offset ; i < offset + length ; i++) { in bcdToString() 69 public static String bcdPlmnToString(byte[] data, int offset) { in bcdPlmnToString() argument 70 if (offset + 3 > data.length) { in bcdPlmnToString() 74 trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF)); in bcdPlmnToString() 75 trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF)); in bcdPlmnToString() 76 trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF)); in bcdPlmnToString() 90 bchToString(byte[] data, int offset, int length) { in bchToString() argument 93 for (int i = offset ; i < offset + length ; i++) { in bchToString() 110 cdmaBcdToString(byte[] data, int offset, int length) { in cdmaBcdToString() argument [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/base/core/java/com/android/internal/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/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/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/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/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/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 …]
|
/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/ml/nn/runtime/test/generated/vts_models/ |
D | lstm.model.cpp | 12 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 21 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 39 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 48 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 57 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 66 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 75 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 84 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 93 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() [all …]
|
D | lstm3.model.cpp | 12 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 21 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 39 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 48 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 57 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 66 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 75 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 84 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 93 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() [all …]
|
D | lstm2.model.cpp | 12 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 21 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 39 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 48 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 57 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 66 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 75 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 84 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 93 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() [all …]
|
/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/minikin/libs/minikin/ |
D | GraphemeBreak.cpp | 60 size_t count, const size_t offset) { in isGraphemeBreak() argument 67 if (offset <= start || offset >= start + count) { in isGraphemeBreak() 70 if (U16_IS_TRAIL(buf[offset])) { in isGraphemeBreak() 72 return !U16_IS_LEAD(buf[offset - 1]); in isGraphemeBreak() 76 size_t offset_back = offset; in isGraphemeBreak() 77 size_t offset_forward = offset; in isGraphemeBreak() 113 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak() 189 return (offset - offset_backback) % 4 == 0; in isGraphemeBreak() 206 size_t count, size_t offset, MoveOpt opt) { in getTextRunCursor() argument 209 if (offset < start + count) { in getTextRunCursor() [all …]
|
D | LayoutUtils.cpp | 55 const uint16_t* chars, size_t offset, size_t len) { in getPrevWordBreakForCache() argument 56 if (offset == 0) return 0; in getPrevWordBreakForCache() 57 if (offset > len) offset = len; in getPrevWordBreakForCache() 58 if (isWordBreakBefore(chars[offset - 1])) { in getPrevWordBreakForCache() 59 return offset - 1; in getPrevWordBreakForCache() 61 for (size_t i = offset - 1; i > 0; i--) { in getPrevWordBreakForCache() 73 const uint16_t* chars, size_t offset, size_t len) { in getNextWordBreakForCache() argument 74 if (offset >= len) return len; in getNextWordBreakForCache() 75 if (isWordBreakAfter(chars[offset])) { in getNextWordBreakForCache() 76 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 …]
|