Searched defs:offset (Results 26 - 50 of 693) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/
H A DDataURISource.cpp88 ssize_t DataURISource::readAt(off64_t offset, void *data, size_t size) { argument
89 if ((offset < 0) || (offset >= (off64_t)mBuffer->size())) {
93 size_t copy = mBuffer->size() - offset;
98 memcpy(data, mBuffer->data() + offset, copy);
H A DThrottledSource.cpp34 ssize_t ThrottledSource::readAt(off64_t offset, void *data, size_t size) { argument
37 ssize_t n = mSource->readAt(offset, data, size);
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dline_pe.h48 Word16 offset; member in struct:__anon467
/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/mp3dec/src/
H A Dpvmp3_getbits.cpp114 uint32 offset; local
127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE));
130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE));
131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE));
132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE));
162 uint32 offset; local
168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE));
171 Elem1 = *(ptBitStream->pBuffer + module(offset
198 uint32 offset; local
236 uint32 offset; local
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DABuffer.cpp73 void ABuffer::setRange(size_t offset, size_t size) { argument
74 CHECK_LE(offset, mCapacity);
75 CHECK_LE(offset + size, mCapacity);
77 mRangeOffset = offset;
H A Dhexdump.cpp45 size_t offset = 0; local
46 while (offset < size) {
52 snprintf(tmp, sizeof(tmp), "%08lx: ", (unsigned long)offset);
60 if (offset + i >= size) {
63 snprintf(tmp, sizeof(tmp), "%02x ", data[offset + i]);
71 if (offset + i >= size) {
75 if (isprint(data[offset + i])) {
76 line.append((char)data[offset + i]);
89 offset += 16;
/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);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java70 * the byte array {@code b} starting at {@code offset}.
74 * @param offset
82 * if {@code offset < 0} or {@code length < 0}, or if
83 * {@code offset + length} is greater than the length of
89 public int read(byte[] b, int offset, int length) throws IOException { argument
93 if ((offset | length) < 0 || length > b.length - offset) {
94 throw new ArrayIndexOutOfBoundsException("invalid offset or length");
96 return mSocket.read(b, offset, length);
H A DBluetoothOutputStream.java61 * at position {@code offset} to this stream.
65 * @param offset
73 * if {@code offset < 0} or {@code count < 0}, or if
74 * {@code offset + count} is bigger than the length of
78 public void write(byte[] b, int offset, int count) throws IOException { argument
82 if ((offset | count) < 0 || count > b.length - offset) {
83 throw new IndexOutOfBoundsException("invalid offset or length");
85 mSocket.write(b, offset, count);
/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java22 * Current offset in the stream.
28 * @param offset offset into stream where data starts
29 * @param length length of data at offset
32 public LimitedLengthInputStream(InputStream in, long offset, long length) throws IOException { argument
39 if (offset < 0) {
40 throw new IOException("offset < 0");
47 if (length > Long.MAX_VALUE - offset) {
48 throw new IOException("offset + length > Long.MAX_VALUE");
51 mEnd = offset
68 read(byte[] buffer, int offset, int byteCount) argument
[all...]
H A DMacAuthenticatedInputStream.java71 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/os/
H A DProxyFileDescriptorCallback.java56 * @param offset Offset in bytes from the file head specifying where to read bytes. If a seek
58 * offset refrects the proper position of requested bytes.
64 public int onRead(long offset, int size, byte[] data) throws ErrnoException { argument
70 * @param offset Offset in bytes from the file head specifying where to write bytes. If a seek
72 * offset refrects the proper position of requested bytes.
78 public int onWrite(long offset, int size, byte[] data) throws ErrnoException { argument
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollBarUtils.java31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { argument
33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent));
/frameworks/base/media/java/android/media/midi/
H A DMidiReceiver.java56 * @param offset the offset of the first byte of the data in the array to be processed
61 abstract public void onSend(byte[] msg, int offset, int count, long timestamp) argument
99 * @param offset the offset of the first byte of the data in the array to be sent
103 public void send(byte[] msg, int offset, int count) throws IOException { argument
105 send(msg, offset, count, 0L);
118 * @param offset the offset of the first byte of the data in the array to be sent
123 public void send(byte[] msg, int offset, in argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dnative_frame.cpp30 bool NativeFrame::WriteData(const uint8_t* data, int offset, int size) { argument
31 if (size_ >= (offset + size)) {
32 memcpy(data_ + offset, data, size);
/frameworks/base/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/
H A DAppFusePerfTest.java109 public int onRead(long offset, int size, byte[] data) throws ErrnoException { argument
114 public int onWrite(long offset, int size, byte[] data) throws ErrnoException { argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLId.java26 public void glGenBuffers(int n, int[] buffers, int offset); argument
28 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset); argument
30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); argument
32 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset); argument
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DUsbAccessoryStreamTransport.java56 protected int ioRead(byte[] buffer, int offset, int count) throws IOException { argument
60 return mInputStream.read(buffer, offset, count);
64 protected void ioWrite(byte[] buffer, int offset, int count) throws IOException { argument
68 mOutputStream.write(buffer, offset, count);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dpixelutils.cpp24 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height, jint offset,
28 uint32* pOutRow = pOutput + offset;
23 nativeCopyPixels( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height, jint offset, jint pixStride, jint rowStride) argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DPixelUtils.java28 * <p>The transformation is specified by specifying the initial offset in the output buffer, the
40 * @param offset The start offset in the output (in pixels)
48 int offset,
64 nativeCopyPixels(input, output, width, height, offset, pixStride, rowStride);
71 int offset,
44 copyPixels(ByteBuffer input, ByteBuffer output, int width, int height, int offset, int pixStride, int rowStride) argument
67 nativeCopyPixels(ByteBuffer input, ByteBuffer output, int width, int height, int offset, int pixStride, int rowStride) argument
/frameworks/base/tools/aapt2/io/
H A DFile.h51 IFile* CreateFileSegment(size_t offset, size_t len);
70 explicit FileSegment(IFile* file, size_t offset, size_t len) argument
71 : file_(file), offset_(offset), len_(len) {}
/frameworks/compile/mclinker/include/mcld/Fragment/
H A DFragmentRef.h37 /// @param pOffset - the offset, can be larger than the fragment, but can not
39 /// @return if the offset is legal, return the fragment reference. Otherwise,
58 /// @pNBytes - copies pNBytes from the fragment[offset()+pOffset]
59 /// @pOffset - additional offset.
60 /// the start address offset from fragment[offset()]
70 Offset offset() const { return m_Offset; } function in class:mcld::FragmentRef
/frameworks/compile/mclinker/lib/LD/
H A DMergedStringTable.cpp18 // trverse the string table and set the offset
20 size_t offset = 0; local
22 it->setValue(offset);
23 offset += it->getKey().size() + 1;
25 return offset;
/frameworks/minikin/libs/minikin/
H A DLayoutUtils.cpp52 * Return offset of previous word break. It is either < offset or == 0.
55 const uint16_t* chars, size_t offset, size_t len) {
56 if (offset == 0) return 0;
57 if (offset > len) offset = len;
58 if (isWordBreakBefore(chars[offset - 1])) {
59 return offset - 1;
61 for (size_t i = offset - 1; i > 0; i--) {
70 * Return offset o
54 getPrevWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
72 getNextWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
[all...]

Completed in 326 milliseconds

1234567891011>>