/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | LimitedLengthInputStreamTest.java | 74 fail("Should fail when offset + length is > Long.MAX_VALUE"); 80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) argument 86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 131 private void checkReadBytes_WithString1(int offset, int length) throws Exception { argument 136 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 167 private void checkSingleByteRead_WithString1(int offset, int length) throws Exception { argument 168 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 171 assertEquals(TEST_STRING1[offset [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifOutputStream.java | 106 , int offset, int length) { 109 mBuffer.put(buffer, offset, byteToRead); 118 public void write(byte[] buffer, int offset, int length) throws IOException { argument 125 offset += byteToProcess; 129 out.write(buffer, offset, byteToProcess); 132 offset += byteToProcess; 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); 140 offset += byteRead; 157 byteRead = requestByteToBuffer(4, buffer, offset, length); 158 offset 105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument 309 calculateOffsetOfIfd(IfdData ifd, int offset) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | StringPool.h | 43 entry() : offset(0) { } 44 entry(const String16& _value) : value(_value), offset(0), hasStyles(false) { } 45 entry(const entry& o) : value(o.value), offset(o.offset), 50 size_t offset; member in struct:StringPool::entry 74 entry_style() : offset(0) { } 76 entry_style(const entry_style& o) : offset(o.offset), spans(o.spans) { } 78 size_t offset; member in struct:StringPool::entry_style 124 * Find out an offset i [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | FocusFinderTest.java | 51 dest.offset(0, -src.height()); 114 rect2.offset(0, rect1.height() - 1); 119 rect2.offset(0, 1); 124 rect2.offset(0, 1); 130 rect2.offset(0, -(rect1.height() - 1)); 135 rect2.offset(0, -1); 140 rect2.offset(0, -1); 151 rect2.offset(rect1.width() - 1, 0); 156 rect2.offset(1, 0); 161 rect2.offset( [all...] |
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequence.java | 42 private static native FrameSequence nativeDecodeByteArray(byte[] data, int offset, int length); argument 44 private static native FrameSequence nativeDecodeByteBuffer(ByteBuffer buffer, int offset, int capacity); argument 66 public static FrameSequence decodeByteArray(byte[] data, int offset, int length) { argument 68 if (offset < 0 || length < 0 || (offset + length > data.length)) { 69 throw new IllegalArgumentException("invalid offset/length parameters"); 71 return nativeDecodeByteArray(data, offset, length);
|
/frameworks/rs/driver/ |
H A D | rsdVertexArray.cpp | 45 offset = 0; 55 bool normalized, size_t offset, 60 this->offset = offset; 70 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%p", 79 (void*)mAttribs[idx].offset); 115 mAttribs[ct].ptr + mAttribs[ct].offset); 54 set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, size_t offset, const char *name) argument
|
/frameworks/wilhelm/src/android/ |
H A D | BufferQueueSource.cpp | 57 ssize_t BufferQueueSource::readAt(off64_t offset, void *data, size_t size) { argument 58 SL_LOGD("BufferQueueSource::readAt(offset=%lld, data=%p, size=%d)", offset, data, size); 96 //assert(mStreamToBqOffset <= offset); 97 CHECK_LE(mStreamToBqOffset, offset); 99 if (offset + (off64_t) size <= mStreamToBqOffset + oldFront->mDataSize) { 100 pSrc = ((char*)oldFront->mDataBuffer) + (offset - mStreamToBqOffset); 102 if (offset - mStreamToBqOffset + size == oldFront->mDataSize) {
|
/frameworks/base/media/java/android/media/ |
H A D | MediaHTTPConnection.java | 170 private void seekTo(long offset) throws IOException { argument 200 if (offset > 0) { 202 "Range", "bytes=" + offset + "-"); 288 if (offset > 0 && response != HttpURLConnection.HTTP_PARTIAL) { 297 mCurrentOffset = offset; 309 public int readAt(long offset, int size) { argument 310 return native_readAt(offset, size); 313 private int readAt(long offset, byte[] data, int size) { argument 320 if (offset != mCurrentOffset) { 321 seekTo(offset); 403 native_readAt(long offset, int size) argument [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | EGL14.java | 223 int offset 233 int offset 241 int offset 248 int offset 263 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); 266 win, attrib_list, offset); 282 int offset 292 int offset 309 int offset 341 int offset [all...] |
H A D | GLES30.java | 355 // C function void glDrawRangeElements ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLsizei offset ) 363 int offset 381 // C function void glTexImage3D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLsizei offset ) 393 int offset 412 // C function void glTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei offset ) 425 int offset 456 // C function void glCompressedTexImage3D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, GLsizei offset ) 467 int offset 486 // C function void glCompressedTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, GLsizei offset ) 499 int offset 764 glMapBufferRange( int target, int offset, int length, int access ) argument 773 glFlushMappedBufferRange( int target, int offset, int length ) argument 851 glBindBufferRange( int target, int index, int buffer, int offset, int size ) argument 1744 glInvalidateSubFramebuffer( int target, int numAttachments, int[] attachments, int offset, int x, int y, int width, int height ) argument [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/ |
H A D | HTTPResponse.java | 30 int offset = 0; 37 while (offset < expected) { 38 int amount = in.read(input, offset, input.length - offset); 40 input.length, offset, input.length - offset, amount)); 45 // + new String(input, 0, offset + amount, StandardCharsets.ISO_8859_1)); 48 for (int n = offset; n < offset + amount; n++) { 61 offset 177 equals(byte[] b1, int offset, byte[] pattern) argument [all...] |
/frameworks/compile/mclinker/lib/Object/ |
H A D | ObjectBuilder.cpp | 133 uint64_t offset = pTo.getSection().size(); local 142 align->setOffset(offset); 145 offset += align->size(); 154 frag->setOffset(offset); 155 offset += frag->size(); 160 pTo.getSection().setSize(offset); 182 // get initial offset. 183 uint64_t offset = 0; local 185 offset = pSD.back().getOffset() + pSD.back().size(); 194 align->setOffset(offset); [all...] |
/frameworks/av/media/libstagefright/ |
H A D | SkipCutBuffer.cpp | 65 int32_t offset = buffer->range_offset(); local 72 offset += to_drop; 74 buffer->set_range(offset, buflen); 80 char *src = ((char*) buffer->data()) + offset; 97 int32_t offset = buffer->offset(); local 104 offset += to_drop; 106 buffer->setRange(offset, buflen);
|
H A D | ThrottledSource.cpp | 34 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/httplive/ |
H A D | LiveDataSource.cpp | 58 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 D | BackupDataInputStream.java | 69 * {@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/hardware/camera2/params/ |
H A D | ColorSpaceTransform.java | 50 /** Numerator offset inside a rational (pair). */ 53 /** Denominator offset inside a rational (pair). */ 153 * {@code offset} 154 * @param offset 155 * a non-negative offset into the array 160 * offset. 162 public void copyElements(Rational[] destination, int offset) { argument 163 checkArgumentNonnegative(offset, "offset must not be negative"); 165 if (destination.length - offset < COUN 197 copyElements(int[] destination, int offset) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LogWriter.java | 64 @Override public void write(char[] buf, int offset, int count) { argument 66 char c = buf[offset + i];
|
/frameworks/base/core/java/android/util/apk/ |
H A D | ZipUtils.java | 49 * @return contents of the ZIP End of Central Directory record and the record's offset in the 72 // the EoCD record offset is known in advance. Try that offset first to avoid unnecessarily 92 * @return contents of the ZIP End of Central Directory record and the record's offset in the 183 * @param zipEndOfCentralDirectoryPosition offset of the ZIP End of Central Directory record 205 * Returns the offset of the start of the ZIP Central Directory in the archive. 217 * Sets the offset of the start of the ZIP Central Directory in the archive. 222 ByteBuffer zipEndOfCentralDirectory, long offset) { 227 offset); 248 private static int getUnsignedInt16(ByteBuffer buffer, int offset) { argument 221 setZipEocdCentralDirectoryOffset( ByteBuffer zipEndOfCentralDirectory, long offset) argument 252 getUnsignedInt32(ByteBuffer buffer, int offset) argument 256 setUnsignedInt32(ByteBuffer buffer, int offset, long value) argument [all...] |
/frameworks/base/core/java/com/android/internal/midi/ |
H A D | MidiDispatcher.java | 68 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { argument 71 receiver.send(msg, offset, count, timestamp);
|
/frameworks/base/include/androidfw/ |
H A D | Asset.h | 67 * 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; 138 off64_t handleSeek(off64_t offset, int whence, off64_t curPosn, off64_t maxPosn); 167 * if "offset" and "length" don't fit within the bounds of the file. 171 static Asset* createFromFileSegment(int fd, off64_t offset, size_t length, 184 static Asset* createFromCompressedData(int fd, off64_t offset, 239 status_t openChunk(const char* fileName, int fd, off64_t offset, size_t length); 252 virtual off64_t seek(off64_t offset, int whence); 261 off64_t mStart; // absolute file offset o [all...] |
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | hid.c | 52 int id, ret, offset; local 94 for (offset = 0; offset < desc_length; ) { 95 int count = desc_length - offset; 98 fprintf(stderr, "sending ACCESSORY_SET_HID_REPORT_DESC offset: %d count: %d desc_length: %d\n", 99 offset, count, desc_length); 101 ACCESSORY_SET_HID_REPORT_DESC, id, offset, &desc.value[offset], count, 1000); 103 offset += count;
|
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
H A D | BluetoothPacketEncoder.java | 56 public void onSend(byte[] msg, int offset, int count, long timestamp) 61 byte status = msg[offset]; 106 (msg[offset + count - 1] == MidiConstants.STATUS_END_SYSEX); 119 System.arraycopy(msg, offset, mAccumulationBuffer, mAccumulatedBytes, copy); 121 offset += copy; 150 System.arraycopy(msg, offset + 1, mAccumulationBuffer, mAccumulatedBytes, 183 public void onSend(byte[] msg, int offset, int count, long timestamp) argument 186 mMidiFramer.send(msg, offset, count, timestamp);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | pixelutils.cpp | 24 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/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64GOT.cpp | 55 uint32_t offset = 0; local 57 // setup GOT0 offset 60 frag->setOffset(offset); 61 offset += frag->size(); 64 // push GOTPLT into the SectionData and setup the offset 72 entry->setOffset(offset); 73 offset += entry->size(); 78 // push GOT into the SectionData and setup the offset 86 entry->setOffset(offset); 87 offset [all...] |