/frameworks/base/core/java/android/text/method/ |
D | WordIterator.java | 75 public int preceding(int offset) { in preceding() argument 76 checkOffsetIsValid(offset); in preceding() 78 offset = mIterator.preceding(offset); in preceding() 79 if (offset == BreakIterator.DONE || isOnLetterOrDigit(offset)) { in preceding() 80 return offset; in preceding() 87 public int following(int offset) { in following() argument 88 checkOffsetIsValid(offset); in following() 90 offset = mIterator.following(offset); in following() 91 if (offset == BreakIterator.DONE || isAfterLetterOrDigit(offset)) { in following() 92 return offset; in following() [all …]
|
/frameworks/base/core/java/android/os/ |
D | HwBlob.java | 52 public native final boolean getBool(long offset); in getBool() argument 58 public native final byte getInt8(long offset); in getInt8() argument 64 public native final short getInt16(long offset); in getInt16() argument 70 public native final int getInt32(long offset); in getInt32() argument 76 public native final long getInt64(long offset); in getInt64() argument 82 public native final float getFloat(long offset); in getFloat() argument 88 public native final double getDouble(long offset); in getDouble() argument 94 public native final String getString(long offset); in getString() argument 102 public native final long getFieldHandle(long offset); in getFieldHandle() argument 114 public native final void copyToBoolArray(long offset, boolean[] array, int size); in copyToBoolArray() argument [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/ |
D | Asn1Decoder.java | 50 public Asn1Decoder(byte[] bytes, int offset, int length) { in Asn1Decoder() argument 51 if (offset < 0 || length < 0 || offset + length > bytes.length) { in Asn1Decoder() 56 + offset in Asn1Decoder() 61 mPosition = offset; in Asn1Decoder() 62 mEnd = offset + length; in Asn1Decoder() 89 int offset = mPosition; in nextNode() local 92 int tagStart = offset; in nextNode() 93 byte b = mSrc[offset++]; in nextNode() 96 while (offset < mEnd && (mSrc[offset++] & 0x80) != 0) { in nextNode() 100 if (offset >= mEnd) { in nextNode() [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/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/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 59 bcdToString(byte[] data, int offset, int length) { in bcdToString() argument 62 for (int i = offset ; i < offset + length ; i++) { in bcdToString() 116 public static void bcdToBytes(String bcd, byte[] bytes, int offset) { in bcdToBytes() argument 120 int size = Math.min((bytes.length - offset) * 2, bcd.length()); in bcdToBytes() 121 for (int i = 0, j = offset; i + 1 < size; i += 2, j++) { in bcdToBytes() 131 public static String bcdPlmnToString(byte[] data, int offset) { in bcdPlmnToString() argument 132 if (offset + 3 > data.length) { in bcdPlmnToString() 136 trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF)); in bcdPlmnToString() 137 trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF)); in bcdPlmnToString() 138 trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF)); in bcdPlmnToString() [all …]
|
/frameworks/av/media/extractors/mp4/ |
D | ItemTable.cpp | 50 offset(0), size(0), nextTileIndex(0) {} in ImageItem() 75 off64_t offset; member 87 off64_t offset; member 112 status_t parseChunk(off64_t *offset); 114 status_t parseChunks(off64_t offset, size_t size); 121 status_t Box::parseChunk(off64_t *offset) { in parseChunk() argument 122 if (*offset < 0) { in parseChunk() 127 if (mDataSource->readAt(*offset, hdr, 8) < 8) { in parseChunk() 132 off64_t data_offset = *offset + 8; in parseChunk() 135 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk() [all …]
|
D | MPEG4Extractor.cpp | 155 status_t parseChunk(off64_t *offset); 156 status_t parseTrackFragmentHeader(off64_t offset, off64_t size); 157 status_t parseTrackFragmentRun(off64_t offset, off64_t size); 158 status_t parseSampleAuxiliaryInformationSizes(off64_t offset, off64_t size); 159 status_t parseSampleAuxiliaryInformationOffsets(off64_t offset, off64_t size); 160 status_t parseClearEncryptedSizes(off64_t offset, bool isSubsampleEncryption, uint32_t flags); 161 status_t parseSampleEncryption(off64_t offset); 188 off64_t offset; member 214 ssize_t readAt(off64_t offset, void *data, size_t size) override; 218 status_t setCachedRange(off64_t offset, size_t size, bool assumeSourceOwnershipOnSuccess); [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 …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 527 public Integer getIntValue(int formatType, int offset) { in getIntValue() argument 528 if ((offset + getTypeLen(formatType)) > mValue.length) return null; in getIntValue() 532 return unsignedByteToInt(mValue[offset]); in getIntValue() 535 return unsignedBytesToInt(mValue[offset], mValue[offset + 1]); in getIntValue() 538 return unsignedBytesToInt(mValue[offset], mValue[offset + 1], in getIntValue() 539 mValue[offset + 2], mValue[offset + 3]); in getIntValue() 541 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue() 544 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue() 545 mValue[offset + 1]), 16); in getIntValue() 548 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue() [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/av/media/extractors/mp3/ |
D | XINGSeeker.cpp | 87 int offset = first_frame_pos; in CreateFromSource() local 88 if (source->readAt(offset, &buffer, 4) < 4) { // get header in CreateFromSource() 91 offset += 4; in CreateFromSource() 106 if (num_channels != 1) offset += 32; in CreateFromSource() 107 else offset += 17; in CreateFromSource() 109 if (num_channels != 1) offset += 17; in CreateFromSource() 110 else offset += 9; in CreateFromSource() 113 int xingbase = offset; in CreateFromSource() 115 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID in CreateFromSource() 118 offset += 4; in CreateFromSource() [all …]
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | DataSourceBase.h | 47 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0; 50 bool getUInt16(off64_t offset, uint16_t *x) { in getUInt16() argument 54 if (readAt(offset, byte, 2) != 2) { in getUInt16() 63 bool getUInt24(off64_t offset, uint32_t *x) { in getUInt24() argument 67 if (readAt(offset, byte, 3) != 3) { in getUInt24() 75 bool getUInt32(off64_t offset, uint32_t *x) { in getUInt32() argument 79 if (readAt(offset, &tmp, 4) != 4) { in getUInt32() 87 bool getUInt64(off64_t offset, uint64_t *x) { in getUInt64() argument 91 if (readAt(offset, &tmp, 8) != 8) { in getUInt64() 101 bool getUInt16Var(off64_t offset, uint16_t *x, size_t size) { in getUInt16Var() argument [all …]
|
/frameworks/av/include/media/ |
D | DataSourceBase.h | 47 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0; 50 bool getUInt16(off64_t offset, uint16_t *x) { in getUInt16() argument 54 if (readAt(offset, byte, 2) != 2) { in getUInt16() 63 bool getUInt24(off64_t offset, uint32_t *x) { in getUInt24() argument 67 if (readAt(offset, byte, 3) != 3) { in getUInt24() 75 bool getUInt32(off64_t offset, uint32_t *x) { in getUInt32() argument 79 if (readAt(offset, &tmp, 4) != 4) { in getUInt32() 87 bool getUInt64(off64_t offset, uint64_t *x) { in getUInt64() argument 91 if (readAt(offset, &tmp, 8) != 8) { in getUInt64() 101 bool getUInt16Var(off64_t offset, uint16_t *x, size_t size) { in getUInt16Var() argument [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/minikin/libs/minikin/ |
D | GraphemeBreak.cpp | 63 size_t count, const size_t offset) { in isGraphemeBreak() argument 70 if (offset <= start || offset >= start + count) { in isGraphemeBreak() 73 if (U16_IS_TRAIL(buf[offset])) { in isGraphemeBreak() 75 return !U16_IS_LEAD(buf[offset - 1]); in isGraphemeBreak() 79 size_t offset_back = offset; in isGraphemeBreak() 80 size_t offset_forward = offset; in isGraphemeBreak() 112 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak() 172 return (offset - offset_backback) % 4 == 0; in isGraphemeBreak() 189 size_t count, size_t offset, MoveOpt opt) { in getTextRunCursor() argument 192 if (offset < start + count) { in getTextRunCursor() [all …]
|
D | LayoutUtils.cpp | 51 uint32_t getPrevWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getPrevWordBreakForCache() argument 52 if (offset == 0) return 0; in getPrevWordBreakForCache() 53 if (offset > textBuf.size()) offset = textBuf.size(); in getPrevWordBreakForCache() 54 if (isWordBreakBefore(textBuf[offset - 1])) { in getPrevWordBreakForCache() 55 return offset - 1; in getPrevWordBreakForCache() 57 for (uint32_t i = offset - 1; i > 0; i--) { in getPrevWordBreakForCache() 68 uint32_t getNextWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getNextWordBreakForCache() argument 69 if (offset >= textBuf.size()) return textBuf.size(); in getNextWordBreakForCache() 70 if (isWordBreakAfter(textBuf[offset])) { in getNextWordBreakForCache() 71 return offset + 1; in getNextWordBreakForCache() [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/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/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 …]
|