/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 115 // if (false) Log.d(TAG, "clock offset: " + clockOffset + " ms"); 163 * Reads an unsigned 32 bit big endian number from the given offset in the buffer. 165 private long read32(byte[] buffer, int offset) { argument 166 byte b0 = buffer[offset]; 167 byte b1 = buffer[offset+1]; 168 byte b2 = buffer[offset+2]; 169 byte b3 = buffer[offset+3]; 181 * Reads the NTP time stamp at the given offset in the buffer and returns 184 private long readTimeStamp(byte[] buffer, int offset) { argument 185 long seconds = read32(buffer, offset); 194 writeTimeStamp(byte[] buffer, int offset, long time) argument [all...] |
/frameworks/av/media/libstagefright/mp4/ |
H A D | FragmentedMP4Parser.cpp | 135 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument 136 fseek(mFile, offset, SEEK_SET); 159 void mark(off64_t offset, size_t size) { argument 160 int firstbit = offset / 1024; 161 int lastbit = (offset + size - 1) / 1024; 203 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument 205 mReadTracker->mark(offset, size); 207 return mDataSource->readAt(offset, data, size); 437 mBufferPos += mBuffer->offset(); 584 size_t offset local 1028 enter(off64_t offset, uint32_t type, uint64_t size) argument 1045 readU16(size_t offset) argument 1052 readU32(size_t offset) argument 1059 readU64(size_t offset) argument 1127 parseTrackHeader( uint32_t type, size_t offset, uint64_t size) argument 1178 parseMediaHeader( uint32_t type, size_t offset, uint64_t size) argument 1211 parseMediaHandler( uint32_t type, size_t offset, uint64_t size) argument 1239 parseVisualSampleEntry( uint32_t type, size_t offset, uint64_t size) argument 1282 parseAudioSampleEntry( uint32_t type, size_t offset, uint64_t size) argument 1348 parseSampleSizes( uint32_t type, size_t offset, uint64_t size) argument 1354 parseCompactSampleSizes( uint32_t type, size_t offset, uint64_t size) argument 1360 parseSampleToChunk( uint32_t type, size_t offset, uint64_t size) argument 1366 parseChunkOffsets( uint32_t type, size_t offset, uint64_t size) argument 1372 parseChunkOffsets64( uint32_t type, size_t offset, uint64_t size) argument 1378 parseAVCCodecSpecificData( uint32_t type, size_t offset, uint64_t size) argument 1461 parseESDSCodecSpecificData( uint32_t type, size_t offset, uint64_t size) argument 1566 parseMediaData( uint32_t type, size_t offset, uint64_t size) argument 1587 parseSegmentIndex( uint32_t type, size_t offset, uint64_t size) argument 1674 parseTrackExtends( uint32_t type, size_t offset, uint64_t size) argument 1725 parseTrackFragmentHeader( uint32_t type, size_t offset, uint64_t size) argument 1815 parseTrackFragmentRun( uint32_t type, size_t offset, uint64_t size) argument 1973 copyBuffer( sp<ABuffer> *dst, size_t offset, uint64_t size, size_t extra) const argument [all...] |
/frameworks/av/drm/common/ |
H A D | DrmConvertedStatus.cpp | 25 offset(_offset) {
|
/frameworks/av/media/libstagefright/ |
H A D | FileSource.cpp | 46 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument 48 mOffset(offset), 55 CHECK(offset >= 0); 87 ssize_t FileSource::readAt(off64_t offset, void *data, size_t size) { argument 95 if (offset >= mLength) { 98 int64_t numAvailable = mLength - offset; 106 return readAtDRM(offset, data, size); 108 off64_t result = lseek64(mFd, offset + mOffset, SEEK_SET); 110 ALOGE("seek to %lld failed", offset + mOffset); 158 ssize_t FileSource::readAtDRM(off64_t offset, voi argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ABuffer.cpp | 56 void ABuffer::setRange(size_t offset, size_t size) { argument 57 CHECK_LE(offset, mCapacity); 58 CHECK_LE(offset + size, mCapacity); 60 mRangeOffset = offset;
|
/frameworks/av/media/mtp/ |
H A D | MtpPacket.h | 64 uint16_t getUInt16(int offset) const; 65 uint32_t getUInt32(int offset) const; 66 void putUInt16(int offset, uint16_t value); 67 void putUInt32(int offset, uint32_t value);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisCallback.java | 61 * @param offset The offset into {@code buffer} where the audio data starts. 66 public int audioAvailable(byte[] buffer, int offset, int length); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | AccessibilityIterators.java | 51 public int[] following(int offset) { argument 56 if (offset >= mText.length()) { 60 if (offset < 0) { 63 final int currentLine = mLayout.getLineForOffset(offset); 64 if (getLineEdgeIndex(currentLine, DIRECTION_START) == offset) { 79 public int[] preceding(int offset) { argument 84 if (offset <= 0) { 88 if (offset > mText.length()) { 91 final int currentLine = mLayout.getLineForOffset(offset); 92 if (getLineEdgeIndex(currentLine, DIRECTION_END) + 1 == offset) { 136 following(int offset) argument 165 preceding(int offset) argument [all...] |
/frameworks/base/tools/preload/ |
H A D | Record.java | 140 int offset = result.indexOf("\\u"); 141 while (offset >= 0) { 142 String before = result.substring(0, offset); 143 String escaped = result.substring(offset+2, offset+6); 144 String after = result.substring(offset+6); 149 offset = result.indexOf("\\u", offset + 1);
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES11.java | 170 // C function void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data ) 174 int offset, 184 int offset 199 int offset 218 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset ) 224 int offset 232 int offset 242 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, GLint offset ) 248 int offset 256 int offset 172 glBufferSubData( int target, int offset, int size, java.nio.Buffer data ) argument [all...] |
H A D | GLES11Ext.java | 200 int offset 213 int offset 226 int offset 249 int offset 299 int offset 337 int offset 363 int offset 378 int offset 394 int offset 411 int offset [all...] |
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
H A D | GL11.java | 161 int offset, 169 int offset 180 int offset 199 int offset 205 int offset 217 int offset 223 int offset 234 int offset 246 int offset 258 int offset 159 glBufferSubData( int target, int offset, int size, java.nio.Buffer data ) argument [all...] |
H A D | GL11Ext.java | 40 void glTexParameterfv(int target, int pname, float[] param, int offset); argument 56 int offset 73 int offset 90 int offset 107 int offset 136 int offset 150 int offset
|
/frameworks/av/media/libstagefright/include/ |
H A D | FragmentedMP4Parser.h | 33 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0; 184 void enter(off64_t offset, uint32_t type, uint64_t size); 186 uint16_t readU16(size_t offset); 187 uint32_t readU32(size_t offset); 188 uint64_t readU64(size_t offset); 194 uint32_t type, size_t offset, uint64_t size); 197 uint32_t type, size_t offset, uint64_t size); 200 uint32_t type, size_t offset, uint64_t size); 203 uint32_t type, size_t offset, uint64_t size); 206 uint32_t type, size_t offset, uint64_ [all...] |
H A D | ESDS.h | 54 size_t offset, size_t size, 58 status_t parseESDescriptor(size_t offset, size_t size); 59 status_t parseDecoderConfigDescriptor(size_t offset, size_t size);
|
/frameworks/wilhelm/src/android/ |
H A D | AacBqToPcmCbRenderer.cpp | 30 * Note that if the returned value + offset > size, it means that a partial frame starts at that 31 * offset, but this function will still return the size of the full frame. 33 * @param offset offset in bytes relative to data of where the frame is supposed to start 35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given 38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument 41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) { 47 const uint8_t *syncword = data + offset; 53 const uint8_t protectionAbsent = data[offset+1] & 0x1; 55 const uint8_t* header = data + offset 85 off64_t offset = 0; local [all...] |
H A D | android_AudioToCbRenderer.cpp | 65 size_t offset = 0; local 66 while (offset < full) { 69 + offset + mDecodeBuffer->range_offset(), 70 mDecodeBuffer->range_length() - offset, 72 offset += consumed; 73 //SL_LOGV("consumed=%u, offset=%u, full=%u", consumed, offset, full);
|
/frameworks/av/media/libstagefright/id3/ |
H A D | testid3.cpp | 34 size_t offset = 0; local 35 while (offset < size) { 36 printf("0x%04x ", offset); 38 size_t n = size - offset; 48 if (offset + i < size) { 49 printf("%02x ", data[offset + i]); 58 if (isprint(data[offset + i])) { 59 printf("%c", data[offset + i]); 67 offset += 16;
|
/frameworks/av/media/libstagefright/chromium_http/ |
H A D | DataUriSource.cpp | 47 ssize_t DataUriSource::readAt(off64_t offset, void *out, size_t size) { argument 53 if (offset >= length) { 59 offset + size >= length ? (length - offset) : size; 62 memcpy(out, dataBuf + offset, bytesToCopy);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/ |
H A D | omxVCM4P2_MCReconBlock_s.s | 72 ;// M_LOAD_X $pSrc, $srcStep, $out0, $out1, $scratch, $offset 79 ;// $offset Difference of source data location to the source pointer 80 ;// Use when $offset != 0 (unaligned load) 89 ;// register numbering. In case offset is 0, $scratch is not modified. 92 M_LOAD_X $pSrc, $srcStep, $out0, $out1, $scratch, $offset 93 IF $offset = 0 100 MOV $out0, $out0, LSR #8 * $offset 101 ORR $out0, $out0, $out1, LSL #(32 - 8 * ($offset)) 102 MOV $out1, $out1, LSR #8 * $offset 103 ORR $out1, $out1, $scratch, LSL #(32 - 8 * ($offset)) [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 154 size_t offset = 0; local 156 while (offset < size) { 157 size_t offsetLF = offset; 166 if (offsetLF > offset && data[offsetLF - 1] == '\r') { 167 line.setTo(&data[offset], offsetLF - offset - 1); 169 line.setTo(&data[offset], offsetLF - offset); 175 offset = offsetLF + 1; 227 uint64_t length, offset; local 330 size_t offset = colonPos + 1; local 379 FindNextUnquoted( const AString &line, char what, size_t offset) argument 408 size_t offset = colonPos + 1; local 469 parseByteRange( const AString &line, uint64_t curOffset, uint64_t *length, uint64_t *offset) argument [all...] |
H A D | LiveDataSource.h | 35 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 36 ssize_t readAtNonBlocking(off64_t offset, void *data, size_t size); 57 ssize_t readAt_l(off64_t offset, void *data, size_t size);
|
/frameworks/base/core/java/android/content/pm/ |
H A D | MacAuthenticatedInputStream.java | 71 public int read(byte[] buffer, int offset, int count) throws IOException { argument 72 int numRead = super.read(buffer, offset, count); 74 mMac.update(buffer, offset, numRead);
|
/frameworks/base/core/java/android/webkit/ |
H A D | KeyStoreHandler.java | 62 int offset = 0; 68 System.arraycopy(c.mArray, 0, cert, offset, c.mLength); 69 offset += c.mLength;
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | native_frame.cpp | 30 bool NativeFrame::WriteData(const uint8_t* data, int offset, int size) { argument 31 if (size_ >= (offset + size)) { 32 memcpy(data_ + offset, data, size);
|