/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 105 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 D | GLFrame.java | 207 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 D | NativeFrame.java | 142 // 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 D | SerializedFrame.java | 226 public void setData(ByteBuffer buffer, int offset, int length) { argument 228 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
|
H A D | SimpleFrame.java | 110 public void setData(ByteBuffer buffer, int offset, int length) { argument 112 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
|
H A D | VertexFrame.java | 88 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 D | jni_gl_frame.cpp | 115 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 D | jni_native_frame.cpp | 56 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 D | jni_shader_program.cpp | 302 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 D | jni_vertex_frame.cpp | 72 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 D | native_frame.cpp | 30 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 D | shader_program.cpp | 69 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 D | shader_program.h | 248 // 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 D | BassBoostTest.java | 209 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 D | EqualizerTest.java | 341 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 D | PresetReverbTest.java | 235 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 D | VirtualizerTest.java | 206 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 D | MediaAudioEffectTest.java | 1498 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 D | MediaPlayerMetadataParserTest.java | 65 // 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 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/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 123 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 D | TimeTest.java | 51 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 D | LimitedLengthInputStream.java | 22 * 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 D | MacAuthenticatedInputStream.java | 71 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 D | AssetFileDescriptor.java | 33 * 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);
|