Searched refs:offset (Results 76 - 100 of 635) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.cpp58 off64_t offset, void *data, size_t size) {
61 if (offset != mOffset) {
82 return readAt_l(offset, data, size);
85 ssize_t LiveDataSource::readAt(off64_t offset, void *data, size_t size) { argument
87 return readAt_l(offset, data, size);
90 ssize_t LiveDataSource::readAt_l(off64_t offset, void *data, size_t size) { argument
91 if (offset != mOffset) {
124 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
57 readAtNonBlocking( off64_t offset, void *data, size_t size) argument
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java69 * {@code offset} within the array.
72 * @param offset The data will be stored in {@code b} beginning at this index
80 public int read(byte[] b, int offset, int size) throws IOException { argument
81 return mData.readEntityData(b, offset, size);
H A DBackupDataInput.java152 * @param offset Offset within the 'data' array at which the data will be placed
159 public int readEntityData(byte[] data, int offset, int size) throws IOException { argument
161 int result = readEntityData_native(mBackupReader, data, offset, size);
192 private native int readEntityData_native(int mBackupReader, byte[] data, int offset, int size); argument
/frameworks/base/core/java/android/net/
H A DNetworkUtils.java189 int offset = prefixLength / 8;
193 if (offset < array.length) array[offset] = (byte)(array[offset] & mask);
195 offset++;
197 for (; offset < array.length; offset++) {
198 array[offset] = 0;
/frameworks/base/core/java/android/util/
H A DLogWriter.java64 @Override public void write(char[] buf, int offset, int count) { argument
66 char c = buf[offset + i];
/frameworks/base/include/androidfw/
H A DAsset.h67 * Read data from the current offset. Returns the actual number of
73 * Seek to the specified offset. "whence" uses the same values as
77 virtual off64_t seek(off64_t offset, int whence) = 0;
125 off64_t handleSeek(off64_t offset, int whence, off64_t curPosn, off64_t maxPosn);
154 * if "offset" and "length" don't fit within the bounds of the file.
158 static Asset* createFromFileSegment(int fd, off64_t offset, size_t length,
171 static Asset* createFromCompressedData(int fd, off64_t offset,
226 status_t openChunk(const char* fileName, int fd, off64_t offset, size_t length);
239 virtual off64_t seek(off64_t offset, int whence);
248 off64_t mStart; // absolute file offset o
[all...]
/frameworks/native/libs/utils/
H A DFileMap.cpp91 bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t length, argument
116 adjust = offset % mPageSize;
117 adjOffset = offset - adjust;
142 assert(offset >= 0);
159 adjust = offset % mPageSize;
161 adjOffset = offset - adjust;
171 // Cygwin does not seem to like file mapping files from an offset.
172 // So if we fail, try again with offset zero
174 adjust = offset;
187 mDataOffset = offset;
[all...]
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.cpp4 (JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) {
23 if (offset < 0) {
26 _exceptionMessage = "offset < 0";
42 _remaining = _env->GetArrayLength(attrib_list_ref) - offset;
45 attrib_list = attrib_list_base + offset;
81 (JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) {
101 if (offset < 0) {
104 _exceptionMessage = "offset < 0";
120 _remaining = _env->GetArrayLength(attrib_list_ref) - offset;
123 attrib_list = attrib_list_base + offset;
3 android_eglCreateWindowSurface(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) argument
80 android_eglCreateWindowSurfaceTexture(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLogWriter.java51 @Override public void write(char[] buf, int offset, int count) { argument
53 char c = buf[offset + i];
/frameworks/base/media/tests/omxjpegdecoder/
H A DStreamSource.cpp38 ssize_t StreamSource::readAt(off64_t offset, void *data, size_t size) { argument
42 mStream->skip(offset);
/frameworks/av/media/libstagefright/
H A DAVIExtractor.cpp172 off64_t offset; local
177 mTrackIndex, mSampleIndex, &offset, &size, &isKey, &timeUs);
188 ssize_t n = mExtractor->mDataSource->readAt(offset, out->data(), size);
245 if (mBuffer != NULL && mBuffer->offset() > 0) {
278 for (size_t offset = 0; offset + 3 < mBuffer->size(); ++offset) {
279 uint32_t firstHeader = U32_AT(mBuffer->data() + offset);
286 size_t subsequentOffset = offset + frameSize;
311 mBuffer->data() + offset,
422 parseChunk(off64_t offset, off64_t size, int depth) argument
589 parseStreamHeader(off64_t offset, size_t size) argument
669 parseStreamFormat(off64_t offset, size_t size) argument
767 parseIndex(off64_t offset, size_t size) argument
810 uint32_t offset = U32LE_AT(&data[8]); local
845 off64_t offset; local
881 off64_t offset; local
1002 off64_t offset; local
1050 off64_t offset; local
1104 getSampleInfo( size_t trackIndex, size_t sampleIndex, off64_t *offset, size_t *size, bool *isKey, int64_t *sampleTimeUs) argument
1165 off64_t offset; local
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.h54 * @param[in] offset The offset with which to update the file position.
60 off64_t FwdLockFile_lseek(int fileDesc, off64_t offset, int whence);
/frameworks/av/media/libmediaplayerservice/nuplayer/mp4/
H A DMP4Source.cpp36 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument
37 if (offset < mPosition) {
41 while (offset > mPosition) {
43 off64_t skipBytes = offset - mPosition;
61 ALOGV("skipped %ld bytes at offset %lld", n, mPosition);
89 ALOGV("read %ld bytes at offset %lld", n, mPosition);
/frameworks/av/media/libstagefright/include/
H A DChromiumHTTPDataSource.h36 off64_t offset = 0);
42 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
54 virtual status_t reconnectAtOffset(off64_t offset);
100 off64_t offset);
/frameworks/base/obex/javax/obex/
H A DPrivateInputStream.java106 public synchronized int read(byte[] b, int offset, int length) throws IOException { argument
111 if ((offset | length) < 0 || length > b.length - offset) {
118 int offset1 = offset;
H A DPrivateOutputStream.java97 public synchronized void write(byte[] buffer, int offset, int count) throws IOException { argument
98 int offset1 = offset;
104 if ((offset | count) < 0 || count > buffer.length - offset) {
/frameworks/av/include/media/stagefright/
H A DFileSource.h33 FileSource(int fd, int64_t offset, int64_t length);
37 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
61 ssize_t readAtDRM(off64_t offset, void *data, size_t size);
/frameworks/av/media/libmediaplayerservice/
H A DMidiMetadataRetriever.cpp50 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
52 ALOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length);
58 return mMidiPlayer->setDataSource(fd, offset, length);;
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dlsp_lsf.cpp174 Word16 i, ind, offset;
180 offset = lsf[i] & 0x00ff; // offset = b0-b7 of lsf[i]
182 // lsp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 256
184 L_tmp = L_mult (sub (table[ind + 1], table[ind]), offset);
221 Word16 i, ind, offset; local
227 offset = lsf[i] & 0x00ff; /* offset = b0-b7 of lsf[i] */
229 /* lsp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 256 */
231 L_tmp = ((Word32)(table[ind + 1] - table[ind]) * offset) >>
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Disp_isf.c67 Word16 offset; local
79 offset = (Word16) (isp[i] & 0x007f); /* offset = b0-b6 of isf[i] */
81 /* isp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 128 */
82 L_tmp = vo_L_mult(vo_sub(table[ind + 1], table[ind]), offset);
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextSRTSource.h54 // The offset of the text in the original file.
55 off64_t offset; member in struct:android::TimedTextSRTSource::TextInfo
65 off64_t *offset, int64_t *startTimeUs, TextInfo *info);
66 status_t readNextLine(off64_t *offset, AString *data);
/frameworks/base/core/java/android/speech/srec/
H A DMicrophoneInputStream.java70 public int read(byte[] b, int offset, int length) throws IOException { argument
73 return AudioRecordRead(mAudioRecord, b, offset, length);
107 private static native int AudioRecordRead(int audioRecord, byte[] b, int offset, int length) throws IOException; argument
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java85 public void setParameters(int range, int offset, int extent, boolean vertical) { argument
90 if (mRange != range || mOffset != offset || mExtent != extent) {
95 mOffset = offset;
125 int offset = Math.round((float) (size - length) * mOffset / (range - extent));
133 if (offset + length > size) {
134 offset = size - length;
137 drawThumb(canvas, r, offset, length, vertical);
162 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument
167 thumbRect.set(bounds.left, bounds.top + offset,
168 bounds.right, bounds.top + offset
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java32 // The current position offset, in bits, from the msb in byte 0.
35 // The last valid bit offset.
76 int offset = 16 - (mPos & 0x07) - bits; // &7==%8
82 if (offset < 8) data |= mBuf[index + 1] & 0xFF;
83 data >>>= offset;
H A DBitwiseOutputStream.java32 // The current position offset, in bits, from the msb in byte 0.
35 // The last bit offset, given the current buf length.
99 int offset = 16 - (mPos & 0x07) - bits; // &7==%8
100 data <<= offset;
103 if (offset < 8) mBuf[index + 1] |= data & 0xFF;

Completed in 492 milliseconds

1234567891011>>