Searched defs:offset (Results 276 - 300 of 575) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFrame.java105 public abstract void setData(ByteBuffer buffer, int offset, int length); argument
111 public void setData(byte[] bytes, int offset, int length) { argument
112 setData(ByteBuffer.wrap(bytes, offset, length));
H A DGLFrame.java207 public void setData(ByteBuffer buffer, int offset, int length) { argument
213 } else if (!setNativeData(bytes, offset, length)) {
380 private native boolean setNativeData(byte[] data, int offset, int length); argument
H A DNativeFrame.java142 // TODO: This function may be a bit confusing: Is the offset the target or source offset? Maybe
145 public void setData(ByteBuffer buffer, int offset, int length) { argument
148 if ((length + offset) > buffer.limit()) {
150 (length + offset) + " bytes given, but only " + buffer.limit() +
156 } else if (!setNativeData(bytes, offset, length)) {
242 private native boolean setNativeData(byte[] data, int offset, int length); argument
H A DSerializedFrame.java226 public void setData(ByteBuffer buffer, int offset, int length) { argument
228 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
H A DSimpleFrame.java110 public void setData(ByteBuffer buffer, int offset, int length) { argument
112 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
H A DVertexFrame.java88 public void setData(ByteBuffer buffer, int offset, int length) { argument
93 } else if (!setNativeData(bytes, offset, length)) {
136 private native boolean setNativeData(byte[] data, int offset, int length); argument
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_frame.cpp115 jint offset,
121 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), length);
112 Java_android_filterfw_core_GLFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument
H A Djni_native_frame.cpp56 jint offset,
62 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
53 Java_android_filterfw_core_NativeFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument
H A Djni_shader_program.cpp302 jint offset,
320 offset,
294 Java_android_filterfw_core_ShaderProgram_setShaderAttributeVertexFrame( JNIEnv* env, jobject thiz, jstring attr_name, jobject vertex_frame, jint type, jint component_count, jint stride, jint offset, jboolean normalize) argument
H A Djni_vertex_frame.cpp72 jint offset,
78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
69 Java_android_filterfw_core_VertexFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument
/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);
H A Dshader_program.cpp69 offset(0),
956 int offset,
970 attrib.offset = offset;
982 int offset,
995 attrib.values = data + offset;
1090 reinterpret_cast<const void*>(attrib.offset));
951 SetAttributeValues(ProgramVar var, const VertexFrame* vbo, GLenum type, int components, int stride, int offset, bool normalize) argument
977 SetAttributeValues(ProgramVar var, const uint8_t* data, GLenum type, int components, int stride, int offset, bool normalize) argument
H A Dshader_program.h248 // offset and stride to select the correct data portion.
254 // offset: The offset of the first element.
263 int offset,
278 int offset,
416 int offset; member in struct:android::filterfw::ShaderProgram::VertexAttrib
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DBassBoostTest.java209 private int byteArrayToInt(byte[] valueBuf, int offset) { argument
212 return converter.getInt(offset);
215 private short byteArrayToShort(byte[] valueBuf, int offset) { argument
218 return converter.getShort(offset);
H A DEqualizerTest.java341 private int byteArrayToInt(byte[] valueBuf, int offset) { argument
344 return converter.getInt(offset);
347 private short byteArrayToShort(byte[] valueBuf, int offset) { argument
350 return converter.getShort(offset);
H A DPresetReverbTest.java235 private int byteArrayToInt(byte[] valueBuf, int offset) { argument
238 return converter.getInt(offset);
241 private short byteArrayToShort(byte[] valueBuf, int offset) { argument
244 return converter.getShort(offset);
H A DVirtualizerTest.java206 private int byteArrayToInt(byte[] valueBuf, int offset) { argument
209 return converter.getInt(offset);
212 private short byteArrayToShort(byte[] valueBuf, int offset) { argument
215 return converter.getShort(offset);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioEffectTest.java1498 protected int byteArrayToInt(byte[] valueBuf, int offset) { argument
1501 return converter.getInt(offset);
1516 protected short byteArrayToShort(byte[] valueBuf, int offset) { argument
1519 return converter.getShort(offset);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaPlayerMetadataParserTest.java65 // current position at the beginning of the parcel (offset 0).
70 // Write the number of bytes from the offset to the current
71 // position at position pointed by offset.
72 private void adjustSize(int offset) { argument
75 mParcel.setDataPosition(offset);
76 mParcel.writeInt(pos - offset);
/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/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java123 private void readIndexOutOfBoundsException(int offset, int count, String msg) argument
131 is.read(buffer, offset, count);
146 "read() with negative offset should throw IndexOutOfBoundsException");
158 "read() with offset outside buffer should throw IndexOutOfBoundsException");
164 "read() with offset + count outside buffer should throw IndexOutOfBoundsException");
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java51 public int offset; field in class:TimeTest.DateTest
61 int offset, int year2, int month2, int day2, int hour2, int minute2,
69 this.offset = offset;
79 int offset, int year2, int month2, int day2, int hour2, int minute2) {
86 this.offset = offset;
98 // The "offset" field in "dayTests" represents days.
130 // The "offset" field in "minuteTests" represents minutes.
188 local.monthDay += test.offset;
60 DateTest(int year1, int month1, int day1, int hour1, int minute1, int dst1, int offset, int year2, int month2, int day2, int hour2, int minute2, int dst2) argument
78 DateTest(int year1, int month1, int day1, int hour1, int minute1, int offset, int year2, int month2, int day2, int hour2, int minute2) argument
[all...]
/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/content/res/
H A DAssetFileDescriptor.java33 * offset and length of that entry's data in the file.
106 * Returns the byte offset where this asset entry's data starts.
225 public int read(byte[] buffer, int offset, int count) throws IOException { argument
229 int res = super.read(buffer, offset, count);
234 return super.read(buffer, offset, count);
300 public void write(byte[] buffer, int offset, int count) throws IOException { argument
304 super.write(buffer, offset, count);
309 super.write(buffer, offset, count);

Completed in 265 milliseconds

<<11121314151617181920>>