Searched defs:offset (Results 251 - 275 of 575) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/libs/hwui/
H A DRenderProperties.h464 bool offsetLeftRight(int offset) { argument
465 if (offset != 0) {
466 mPrimitiveFields.mLeft += offset;
467 mPrimitiveFields.mRight += offset;
473 bool offsetTopBottom(int offset) { argument
474 if (offset != 0) {
475 mPrimitiveFields.mTop += offset;
476 mPrimitiveFields.mBottom += offset;
H A DSpotShadow.cpp654 // Starting with some negative offset, assuming both umbra and penumbra are starting
657 int offset = polygonLength - 2; local
659 int currentIndex = (i + offset) % polygonLength;
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c52 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/java/android/media/
H A DAmrInputStream.java74 public int read(byte[] b, int offset, int length) throws IOException { argument
96 System.arraycopy(mBuf, mBufOut, b, offset, length);
H A DDataSource.java30 * @param offset where in the source to read
35 public int readAt(long offset, byte[] buffer, int size); argument
H A DJetPlayer.java545 private native final boolean native_loadJetFromFileD(FileDescriptor fd, long offset, long len); argument
H A DMediaCodec.java242 * Per buffer metadata includes an offset and size specifying
249 * @param newOffset the start-offset of the data in the buffer.
258 offset = newOffset;
265 * The start-offset of the data in the buffer.
267 public int offset; field in class:MediaCodec.BufferInfo
808 * @param offset The byte offset into the input buffer at which the data starts.
824 int offset, int size, long presentationTimeUs, int flags)
832 index, offset, size, presentationTimeUs, flags);
841 int offset, in
822 queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument
839 native_queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument
945 queueSecureInputBuffer( int index, int offset, CryptoInfo info, long presentationTimeUs, int flags) argument
964 native_queueSecureInputBuffer( int index, int offset, CryptoInfo info, long presentationTimeUs, int flags) argument
[all...]
H A DMediaExtractor.java192 * @param offset the offset into the file where the data to be extracted starts, in bytes
196 FileDescriptor fd, long offset, long length) throws IOException;
300 * starting at the given offset.
307 public native int readSampleData(ByteBuffer byteBuf, int offset); argument
195 setDataSource( FileDescriptor fd, long offset, long length) argument
H A DMediaHTTPConnection.java166 private void seekTo(long offset) throws IOException { argument
195 if (offset > 0) {
197 "Range", "bytes=" + offset + "-");
283 if (offset > 0 && response != HttpURLConnection.HTTP_PARTIAL) {
292 mCurrentOffset = offset;
304 public int readAt(long offset, int size) { argument
305 return native_readAt(offset, size);
308 private int readAt(long offset, byte[] data, int size) { argument
315 if (offset != mCurrentOffset) {
316 seekTo(offset);
395 native_readAt(long offset, int size) argument
[all...]
H A DMediaMetadataRetriever.java123 * @param offset the offset into the file where the data to be played starts,
129 public native void setDataSource(FileDescriptor fd, long offset, long length) argument
H A DMediaMuxer.java95 int offset, int size, long presentationTimeUs, int flags);
318 if (bufferInfo.size < 0 || bufferInfo.offset < 0
319 || (bufferInfo.offset + bufferInfo.size) > byteBuf.capacity()
322 " valid buffer offset, size and presentation time");
334 bufferInfo.offset, bufferInfo.size,
93 nativeWriteSampleData(long nativeObject, int trackIndex, ByteBuffer byteBuf, int offset, int size, long presentationTimeUs, int flags) argument
H A DMediaPlayer.java1113 * @param offset the offset into the file where the data to be played starts, in bytes
1117 public void setDataSource(FileDescriptor fd, long offset, long length) argument
1119 _setDataSource(fd, offset, length);
1122 private native void _setDataSource(FileDescriptor fd, long offset, long length) argument
1325 * @param msec the offset in milliseconds from the start to seek to
2178 * @param offset the offset into the file where the data to be played starts, in bytes
2184 public void addTimedTextSource(FileDescriptor fd, long offset, long length, String mime) argument
2226 final long offset2 = offset;
[all...]
H A DMediaRecorder.java722 private native void _setOutputFile(FileDescriptor fd, long offset, long length) argument
916 * any intentional start time offset of a recording session for the
H A DResampleInputStream.java82 public int read(byte[] b, int offset, int length) throws IOException { argument
109 fir21(mBuf, 0, b, offset, length / 2);
H A DSoundPool.java248 * binary. The offset specifies the offset from the start of the file
252 * @param offset offset to the start of the sound
258 public int load(FileDescriptor fd, long offset, long length, int priority) { argument
259 return mImpl.load(fd, offset, length, priority);
486 FileDescriptor fd, long offset, long length, int priority);
591 public int load(FileDescriptor fd, long offset, long length, int priority) { argument
592 return _load(fd, offset, length, priority);
597 private native final int _load(FileDescriptor fd, long offset, lon argument
485 load( FileDescriptor fd, long offset, long length, int priority) argument
740 load(FileDescriptor fd, long offset, long length, int priority) argument
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DAudioEffect.java1169 // arg1 contains offset of parameter value from start of
1297 public static int byteArrayToInt(byte[] valueBuf, int offset) { argument
1300 return converter.getInt(offset);
1324 public static short byteArrayToShort(byte[] valueBuf, int offset) { argument
1327 return converter.getShort(offset);
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp268 size_t offset, size_t size, int64_t timeUs, uint32_t flags,
271 index, offset, size, timeUs, flags, errorDetailMsg);
276 size_t offset,
286 index, offset, subSamples, numSubSamples, key, iv, mode,
296 size_t size, offset; local
300 index, &offset, &size, &timeUs, &flags, timeoutUs);
310 env->CallVoidMethod(bufferInfo, method, (jint)offset, (jint)size, timeUs, flags);
417 clearBuffer ? buffer->capacity() : (buffer->offset() + buffer->size()));
421 clearBuffer ? 0 : buffer->offset());
610 size_t size, offset; local
266 queueInputBuffer( size_t index, size_t offset, size_t size, int64_t timeUs, uint32_t flags, AString *errorDetailMsg) argument
274 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument
955 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument
981 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument
[all...]
H A Dandroid_media_MediaExtractor.cpp85 virtual ssize_t readAt(off64_t offset, void* buffer, size_t size) { argument
92 ssize_t numread = env->CallIntMethod(mDataSource, mReadMethod, offset, byteArrayObj, (jint)size);
96 ALOGW("Exception occurred while reading %zu at %lld", size, offset);
149 status_t JMediaExtractor::setDataSource(int fd, off64_t offset, off64_t size) { argument
150 return mImpl->setDataSource(fd, offset, size);
203 jobject byteBuf, size_t offset, size_t *sampleSize) {
234 if (dstSize < offset) {
242 sp<ABuffer> buffer = new ABuffer((char *)dst + offset, dstSize - offset);
267 byteBuf, limitID, offset
202 readSampleData( jobject byteBuf, size_t offset, size_t *sampleSize) argument
473 android_media_MediaExtractor_readSampleData( JNIEnv *env, jobject thiz, jobject byteBuf, jint offset) argument
737 android_media_MediaExtractor_setDataSourceFd( JNIEnv *env, jobject thiz, jobject fileDescObj, jlong offset, jlong length) argument
[all...]
H A Dandroid_media_MediaHTTPConnection.cpp135 JNIEnv *env, jobject thiz, jlong offset, jint size) {
145 thiz, gFields.readAtMethodID, offset, byteArrayObj, size);
134 android_media_MediaHTTPConnection_native_readAt( JNIEnv *env, jobject thiz, jlong offset, jint size) argument
H A Dandroid_media_MediaMetadataRetriever.cpp146 static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
159 if (offset < 0 || length < 0 || fd < 0) {
160 if (offset < 0) {
161 ALOGE("negative offset (%lld)", (long long)offset);
172 process_media_retriever_call(env, retriever->setDataSource(fd, offset, length), "java/lang/RuntimeException", "setDataSource failed");
H A Dandroid_media_MediaMuxer.cpp75 jobject byteBuf, jint offset, jint size, jlong timeUs, jint flags) {
108 if (dstSize < (offset + size)) {
109 ALOGE("writeSampleData saw wrong dstSize %lld, size %d, offset %d",
110 dstSize, size, offset);
119 sp<ABuffer> buffer = new ABuffer((char *)dst + offset, size);
73 android_media_MediaMuxer_writeSampleData( JNIEnv *env, jclass clazz, jlong nativeObject, jint trackIndex, jobject byteBuf, jint offset, jint size, jlong timeUs, jint flags) argument
H A Dandroid_media_MediaPlayer.cpp237 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
251 process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException", "setDataSourceFD failed." );
H A Dandroid_media_MediaRecorder.cpp255 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
264 status_t opStatus = mr->setOutputFile(fd, offset, length);
H A Dandroid_mtp_MtpDevice.cpp308 static bool get_object_callback(void* data, int offset, int length, void* clientData) argument
311 cbData->env->SetByteArrayRegion(cbData->array, offset, length, (jbyte *)data);
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool_SoundPoolImpl.cpp65 jlong offset, jlong length, jint priority)
71 int64_t(offset), int64_t(length), int(priority));
64 android_media_SoundPool_SoundPoolImpl_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length, jint priority) argument

Completed in 264 milliseconds

<<11121314151617181920>>