Searched refs:offset (Results 101 - 125 of 900) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/hardware/camera2/params/
H A DBlackLevelPattern.java35 * Create a new {@link BlackLevelPattern} from a given offset array.
37 * <p>The given offset array must contain offsets for each color channel in
58 * Return the color channel offset for a given index into the array of raw pixel values.
62 * @return a color channel offset.
79 * {@code offset}
80 * @param offset a non-negative offset into the array
82 * @throws IllegalArgumentException if the offset is invalid.
86 public void copyTo(int[] destination, int offset) { argument
88 if (offset <
[all...]
H A DLensShadingMap.java162 final int offset = (row * mColumns + column) * COUNT;
165 mElements[RED + offset];
167 mElements[GREEN_EVEN + offset];
169 mElements[GREEN_ODD + offset];
171 mElements[BLUE + offset];
183 * elements after the {@code offset}
184 * @param offset
185 * a non-negative offset into the array
189 * If offset was negative
192 * offset
196 copyGainFactors(final float[] destination, final int offset) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryBulkTransport.java55 protected int ioRead(byte[] buffer, int offset, int count) throws IOException { argument
59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1);
63 protected void ioWrite(byte[] buffer, int offset, int count) throws IOException { argument
68 buffer, offset, count, TIMEOUT_MILLIS);
/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.h31 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height, jint offset,
/frameworks/base/tools/aapt2/
H A DResChunkPullParser.cpp41 const size_t offset = static_cast<const size_t>(diff); local
43 if (offset == mLen) {
46 } else if (offset + sizeof(ResChunk_header) > mLen) {
60 } else if (offset + mCurrentChunk->size > mLen) {
/frameworks/minikin/include/minikin/
H A DMeasurement.h24 float getRunAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, size_t offset);
/frameworks/base/core/java/com/android/internal/util/
H A DHexDump.java28 public static String dumpHexString(byte[] array, int offset, int length) argument
36 result.append(toHexString(offset));
38 for (int i = offset ; i < offset + length ; i++)
104 public static String toHexString(byte[] array, int offset, int length) argument
109 for (int i = offset ; i < offset + length; i++)
/frameworks/av/media/libstagefright/
H A DDataURISource.cpp87 ssize_t DataURISource::readAt(off64_t offset, void *data, size_t size) { argument
88 if ((offset < 0) || (offset >= (off64_t)mBuffer->size())) {
92 size_t copy = mBuffer->size() - offset;
97 memcpy(data, mBuffer->data() + offset, copy);
H A DMPEG4Extractor.cpp124 status_t parseChunk(off64_t *offset);
125 status_t parseTrackFragmentHeader(off64_t offset, off64_t size);
126 status_t parseTrackFragmentRun(off64_t offset, off64_t size);
127 status_t parseSampleAuxiliaryInformationSizes(off64_t offset, off64_t size);
128 status_t parseSampleAuxiliaryInformationOffsets(off64_t offset, off64_t size);
153 off64_t offset; member in struct:android::MPEG4Source::Sample
178 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
182 status_t setCachedRange(off64_t offset, size_t size);
226 ssize_t MPEG4DataSource::readAt(off64_t offset, void *data, size_t size) { argument
229 if (isInRange(mCachedOffset, mCachedSize, offset, siz
245 setCachedRange(off64_t offset, size_t size) argument
276 size_t offset = 0; local
497 off64_t offset = 0; local
569 readSize(off64_t offset, const sp<DataSource> DataSource, uint8_t *numOfBytes) argument
767 parseChunk(off64_t *offset, int depth) argument
2134 parseSegmentIndex(off64_t offset, size_t size) argument
2256 parseQTMetaKey(off64_t offset, size_t size) argument
2311 parseQTMetaVal( int32_t keyId, off64_t offset, size_t size) argument
2452 parseITunesMetaData(off64_t offset, size_t size) argument
2651 parse3GPPMetaData(off64_t offset, size_t size, int depth) argument
2767 parseID3v2MetaData(off64_t offset) argument
3322 off64_t offset = mFirstMoofOffset; local
3396 parseChunk(off64_t *offset) argument
3512 parseSampleAuxiliaryInformationSizes( off64_t offset, off64_t ) argument
3575 parseSampleAuxiliaryInformationOffsets( off64_t offset, off64_t ) argument
3697 parseTrackFragmentHeader(off64_t offset, off64_t size) argument
3796 parseTrackFragmentRun(off64_t offset, off64_t size) argument
4077 off64_t offset; local
4329 off64_t offset = 0; local
4666 off64_t offset = 0ll; local
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DBitwiseStreamsTest.java35 int offset = 3;
38 outStream.skip(offset);
43 inStream.skip(offset);
50 int offset = 3;
53 outStream.skip(offset);
56 inStream.skip(offset);
64 int offset = 4;
67 outStream.skip(offset);
70 inStream.skip(offset);
78 int offset
[all...]
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL11ExtensionPack.java170 int offset
181 int offset
215 int offset
226 int offset
239 int offset
252 int offset
264 int offset
277 int offset
290 int offset
303 int offset
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLLogWrapper.java118 private void arg(String name, int n, int[] arr, int offset) { argument
119 arg(name, toString(n, FORMAT_INT, arr, offset));
122 private void arg(String name, int n, short[] arr, int offset) { argument
123 arg(name, toString(n, arr, offset));
126 private void arg(String name, int n, float[] arr, int offset) { argument
127 arg(name, toString(n, arr, offset));
144 private String toString(int n, int format, int[] arr, int offset) { argument
149 int index = offset + i;
162 private String toString(int n, short[] arr, int offset) { argument
167 int index = offset
180 toString(int n, float[] arr, int offset) argument
1422 glDeleteTextures(int n, int[] textures, int offset) argument
1605 glFogfv(int pname, float[] params, int offset) argument
1636 glFogxv(int pname, int[] params, int offset) argument
1696 glGenTextures(int n, int[] textures, int offset) argument
1731 glGetIntegerv(int pname, int[] params, int offset) argument
1790 glLightModelfv(int pname, float[] params, int offset) argument
1821 glLightModelxv(int pname, int[] params, int offset) argument
1853 glLightfv(int light, int pname, float[] params, int offset) argument
1887 glLightxv(int light, int pname, int[] params, int offset) argument
1936 glLoadMatrixf(float[] m, int offset) argument
1955 glLoadMatrixx(int[] m, int offset) argument
1994 glMaterialfv(int face, int pname, float[] params, int offset) argument
2028 glMaterialxv(int face, int pname, int[] params, int offset) argument
2060 glMultMatrixf(float[] m, int offset) argument
2079 glMultMatrixx(int[] m, int offset) argument
2406 glTexEnvfv(int target, int pname, float[] params, int offset) argument
2440 glTexEnvxv(int target, int pname, int[] params, int offset) argument
2505 glTexParameteriv(int target, int pname, int[] params, int offset) argument
2586 glClipPlanef(int plane, float[] equation, int offset) argument
2605 glClipPlanex(int plane, int[] equation, int offset) argument
2639 glDrawTexfvOES(float[] coords, int offset) argument
2668 glDrawTexivOES(int[] coords, int offset) argument
2698 glDrawTexsvOES(short[] coords, int offset) argument
2727 glDrawTexxvOES(int[] coords, int offset) argument
2790 glBufferSubData(int target, int offset, int size, Buffer data) argument
2812 glDeleteBuffers(int n, int[] buffers, int offset) argument
2831 glGenBuffers(int n, int[] buffers, int offset) argument
2850 glGetBooleanv(int pname, boolean[] params, int offset) argument
2869 glGetBufferParameteriv(int target, int pname, int[] params, int offset) argument
2891 glGetClipPlanef(int pname, float[] eqn, int offset) argument
2910 glGetClipPlanex(int pname, int[] eqn, int offset) argument
2928 glGetFixedv(int pname, int[] params, int offset) argument
2946 glGetFloatv(int pname, float[] params, int offset) argument
2964 glGetLightfv(int light, int pname, float[] params, int offset) argument
2985 glGetLightxv(int light, int pname, int[] params, int offset) argument
3006 glGetMaterialfv(int face, int pname, float[] params, int offset) argument
3028 glGetMaterialxv(int face, int pname, int[] params, int offset) argument
3049 glGetTexEnviv(int env, int pname, int[] params, int offset) argument
3070 glGetTexEnvxv(int env, int pname, int[] params, int offset) argument
3091 glGetTexParameterfv(int target, int pname, float[] params, int offset) argument
3112 glGetTexParameteriv(int target, int pname, int[] params, int offset) argument
3133 glGetTexParameterxv(int target, int pname, int[] params, int offset) argument
3191 glPointParameterfv(int pname, float[] params, int offset) argument
3219 glPointParameterxv(int pname, int[] params, int offset) argument
3258 glTexEnviv(int target, int pname, int[] params, int offset) argument
3279 glTexParameterfv(int target, int pname, float[] params, int offset) argument
3311 glTexParameterxv(int target, int pname, int[] params, int offset) argument
3334 glColorPointer(int size, int type, int stride, int offset) argument
3345 glDrawElements(int mode, int count, int type, int offset) argument
3365 glNormalPointer(int type, int stride, int offset) argument
3374 glTexCoordPointer(int size, int type, int stride, int offset) argument
3384 glVertexPointer(int size, int type, int stride, int offset) argument
3418 glMatrixIndexPointerOES(int size, int type, int stride, int offset) argument
3439 glWeightPointerOES(int size, int type, int stride, int offset) argument
3513 glDeleteFramebuffersOES(int n, int[] framebuffers, int offset) argument
3534 glDeleteRenderbuffersOES(int n, int[] renderbuffers, int offset) argument
3591 glGenFramebuffersOES(int n, int[] framebuffers, int offset) argument
3612 glGenRenderbuffersOES(int n, int[] renderbuffers, int offset) argument
3633 glGetFramebufferAttachmentParameterivOES(int target, int attachment, int pname, int[] params, int offset) argument
3660 glGetRenderbufferParameterivOES(int target, int pname, int[] params, int offset) argument
3685 glGetTexGenfv(int coord, int pname, float[] params, int offset) argument
3708 glGetTexGeniv(int coord, int pname, int[] params, int offset) argument
3731 glGetTexGenxv(int coord, int pname, int[] params, int offset) argument
3798 glTexGenfv(int coord, int pname, float[] params, int offset) argument
3832 glTexGeniv(int coord, int pname, int[] params, int offset) argument
3866 glTexGenxv(int coord, int pname, int[] params, int offset) argument
[all...]
H A DEGL14.java223 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...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
H A DFwdLockEngine.h288 * the output converted data and offset. In this case the
289 * application will ignore the offset information.
298 * the entire data used over a conversion session. This signature must be copied to the offset
305 * the application about the file offset at which this
326 * @param offset Start position of the content
334 int fd, off64_t offset, off64_t length);
338 int fd, int offset, int length);
457 * @param offset Offset with which to update the file position.
467 off64_t offset,
472 off_t offset,
535 off_t offset; member in class:android::FwdLockEngine::DecodeSession
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DLimitedLengthInputStreamTest.java74 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 DExifOutputStream.java106 , 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 DStringPool.h45 entry() : offset(0) { }
46 entry(const String16& _value) : value(_value), offset(0), hasStyles(false) { }
47 entry(const entry& o) : value(o.value), offset(o.offset),
52 size_t offset; member in struct:StringPool::entry
76 entry_style() : offset(0) { }
78 entry_style(const entry_style& o) : offset(o.offset), spans(o.spans) { }
80 size_t offset; member in struct:StringPool::entry_style
126 * Find out an offset i
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java256 * Given a list position, return the offset of the corresponding item in its
257 * partition. The header, if any, will have offset -1.
265 int offset = position - start;
267 offset--;
269 return offset;
317 int offset = position - start;
319 offset--;
321 if (offset == -1) {
324 return getItemViewType(i, offset);
339 int offset
[all...]
/frameworks/av/include/media/stagefright/
H A DDataSource.h64 // this returns zero; it just means the given offset is equal to, or
66 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
69 bool getUInt16(off64_t offset, uint16_t *x);
70 bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int
71 bool getUInt32(off64_t offset, uint32_t *x);
72 bool getUInt64(off64_t offset, uint64_t *x);
81 virtual status_t reconnectAtOffset(off64_t offset) { argument
/frameworks/base/core/tests/coretests/src/android/view/
H A DFocusFinderTest.java51 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 DFrameSequence.java42 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 DrsdVertexArray.cpp45 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 DBufferQueueSource.cpp57 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 + 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 DMediaHTTPConnection.java170 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...]

Completed in 1008 milliseconds

1234567891011>>