Searched refs:offset (Results 226 - 250 of 635) sorted by relevance

1234567891011>>

/frameworks/av/media/mtp/
H A DMtpServer.cpp732 mfr.offset = 0;
770 uint64_t offset; local
772 offset = mRequest.getParameter(2);
774 // android extension with 64 bit offset
776 offset = offset | (offset2 << 32);
788 if (offset + length > fileLength)
789 length = fileLength - offset;
797 mfr.offset = offset;
1094 uint64_t offset = mRequest.getParameter(2); local
1162 uint64_t offset = mRequest.getParameter(2); local
[all...]
/frameworks/base/core/java/android/net/
H A DVpnService.java357 int offset = prefixLength / 8;
359 if (offset < bytes.length) {
360 for (bytes[offset] <<= prefixLength % 8; offset < bytes.length; ++offset) {
361 if (bytes[offset] != 0) {
/frameworks/base/core/java/android/os/
H A DMemoryFile.java187 * @param srcOffset offset into the memory file to read from.
188 * @param destOffset offset into the byte array buffer to read into.
212 * @param srcOffset offset into the byte array buffer to write from.
213 * @param destOffset offset into the memory file to write to.
298 public int read(byte buffer[], int offset, int count) throws IOException { argument
299 if (offset < 0 || count < 0 || offset + count > buffer.length) {
308 int result = readBytes(buffer, mOffset, offset, count);
331 public void write(byte buffer[], int offset, int count) throws IOException { argument
332 writeBytes(buffer, offset, mOffse
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20DisplayList.java291 public void offsetLeftRight(int offset) { argument
293 nOffsetLeftRight(mFinalizer.mNativeDisplayList, offset);
298 public void offsetTopBottom(int offset) { argument
300 nOffsetTopBottom(mFinalizer.mNativeDisplayList, offset);
305 private static native void nOffsetTopBottom(int displayList, int offset); argument
306 private static native void nOffsetLeftRight(int displayList, int offset); argument
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java105 float offset; field in class:ViewPager.ItemInfo
254 * @param positionOffset Value from [0, 1) indicating the offset from the page at position.
255 * @param positionOffsetPixels Value in pixels indicating the offset from position.
534 Math.min(curInfo.offset, mLastOffset)));
1071 float offset = oldCurInfo.offset + oldCurInfo.widthFactor + marginOffset;
1081 // ask the adapter for an offset.
1082 offset += mAdapter.getPageWidth(pos) + marginOffset;
1085 ii.offset = offset;
1597 onPageScrolled(int position, float offset, int offsetPixels) argument
[all...]
/frameworks/av/media/libstagefright/
H A DWAVExtractor.cpp61 off64_t offset, size_t size);
150 off64_t offset = 12; local
154 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) {
159 offset += 8;
173 if (mDataSource->readAt(offset, formatSpec, 2) < 2) {
189 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) {
272 mDataOffset = offset;
309 offset += chunkSize;
322 off64_t offset, size_t size)
329 mOffset(offset),
317 WAVSource( const sp<DataSource> &dataSource, const sp<MetaData> &meta, uint16_t waveFormat, int32_t bitsPerSample, off64_t offset, size_t size) argument
[all...]
H A DVBRISeeker.cpp104 off64_t offset = post_id3_pos; local
122 ALOGV("entry #%d: %d offset 0x%08lx", i, numBytes, offset);
123 offset += numBytes;
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmotion_comp.cpp98 void getMotionCompensatedMB(VideoEncData *video, Int ind_x, Int ind_y, Int offset) argument
114 OSCL_UNUSED_ARG(offset);
363 /* initialize offset to adjust pixel counter */
457 Int offset; local
462 /* initialize offset to adjust pixel counter */
464 offset = lx - B_SIZE; /* offset for prev */
505 prev += offset;
539 prev += offset;
580 prev += offset;
782 Int offset; local
1125 Int offset; local
1721 Int offset = pitch - MB_SIZE; local
1768 Int offset = pitch - B_SIZE; local
1799 Int offset = pitch - MB_SIZE; local
1866 Int offset = pitch - B_SIZE; local
1947 Int offset = (lx - 8) >> 2; local
[all...]
/frameworks/base/core/java/android/text/
H A DTextUtils.java896 public static int getOffsetBefore(CharSequence text, int offset) { argument
897 if (offset == 0)
899 if (offset == 1)
902 char c = text.charAt(offset - 1);
905 char c1 = text.charAt(offset - 2);
908 offset -= 2;
910 offset -= 1;
912 offset -= 1;
916 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset,
931 getOffsetAfter(CharSequence text, int offset) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java240 int offset = widget.getOffsetForPosition(event.getX(), event.getY());
242 buffer.setSpan(LAST_TAP_DOWN, offset, offset, Spannable.SPAN_POINT_POINT);
263 int offset = widget.getOffsetForPosition(event.getX(), event.getY());
265 Selection.extendSelection(buffer, offset);
271 // the current scroll offset to avoid the scroll jumping later
279 int offset = widget.getOffsetForPosition(event.getX(), event.getY());
282 Selection.extendSelection(buffer, offset);
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java415 * @param offset offset into imageData for where the decoder should begin
417 * @param length the number of bytes, beginning at offset, to parse
424 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) { argument
425 if ((offset | length) < 0 || data.length < offset + length) {
428 Bitmap bm = nativeDecodeByteArray(data, offset, length, opts);
440 * @param offset offset into imageData for where the decoder should begin
442 * @param length the number of bytes, beginning at offset, t
445 decodeByteArray(byte[] data, int offset, int length) argument
658 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DGroupingListAdapter.java244 int offset = (int)(metadata & GROUP_OFFSET_MASK);
248 count += (offset - cursorPosition);
256 cursorPosition = offset + size;
325 int offset = (int)(group & GROUP_OFFSET_MASK);
328 listPosition += (offset - cursorPosition);
329 cursorPosition = offset;
355 metadata.cursorPosition = offset;
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dslice.cpp170 int offset; local
182 offset = y_position * picPitch + x_position;
183 curL = currPic->Sl + offset;
184 orgL = currInput->YCbCr[0] + offset;
185 offset = (offset + x_position) >> 2;
186 curCb = currPic->Scb + offset;
187 curCr = currPic->Scr + offset;
188 orgCb = currInput->YCbCr[1] + offset;
189 orgCr = currInput->YCbCr[2] + offset;
513 int j, offset; local
[all...]
/frameworks/av/libvideoeditor/vss/src/
H A DM4PCMR_CoreReader.c487 M4OSA_UInt32 offset; local
507 offset =
511 if (offset%alignment != 0)
513 offset -= offset%alignment;
515 /*add the header offset*/
516 offset += c->m_dataStartOffset;
518 if (offset > (c->m_dataStartOffset + c->m_decoderConfig.DataLength))
525 size_read = offset;
533 c->m_offset = offset
[all...]
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp124 int fd, off64_t offset, off64_t length, const char* mime) {
127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length);
130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime);
168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset);
122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/plugins/common/include/
H A DDrmEngineBase.h84 int fd, off64_t offset, off64_t length, const char* mime);
104 void* buffer, ssize_t numBytes, off64_t offset);
340 * the output converted data and offset. In this case the
341 * application will ignore the offset information.
357 * the application on which offset these signature data
378 * @param[in] offset Start position of the content
385 int fd, off64_t offset, off64_t length) = 0;
393 * @param[in] offset Start position of the content
402 int fd, off64_t offset, off64_t length,
516 * @param[in] offset Offse
400 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
[all...]
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_context.cpp241 void GLTraceContext::updateBufferSubData(GLuint bufferId, GLintptr offset, GLvoid *data, argument
245 buffer->updateSubBuffer(offset, data, size);
275 void ElementArrayBuffer::updateSubBuffer(GLintptr offset, const GLvoid* data, GLsizeiptr size) { argument
276 if (offset + size <= mSize) {
277 memcpy((char*)mBuf + offset, data, size);
/frameworks/base/core/java/android/widget/
H A DEditor.java332 * Returns the Y offset to make the pointy top of the error point
348 * Returns the Y offset to make the pointy top of the error point
570 * Adjusts selection to the word under last touch offset.
652 private long getCharRange(int offset) { argument
654 if (offset + 1 < textLength) {
655 final char currentChar = mTextView.getText().charAt(offset);
656 final char nextChar = mTextView.getText().charAt(offset + 1);
658 return TextUtils.packRangeInLong(offset, offset + 2);
661 if (offset < textLengt
751 isOffsetVisible(int offset) argument
1446 getPrimaryHorizontal(Layout layout, Layout hintLayout, int offset) argument
2927 startTouchUpFilter(int offset) argument
2932 addPositionToTouchUpFilter(int offset) argument
3032 updateSelection(int offset) argument
3036 positionAtCursorOffset(int offset, boolean parentScrolled) argument
3273 updateSelection(int offset) argument
3316 updateSelection(int offset) argument
3359 updateSelection(int offset) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DMyTransmitter.h925 buffer->setRange(buffer->offset(), buffer->size() + 28);
937 size_t offset = 8; local
939 data[offset++] = 1; // CNAME
942 data[offset++] = strlen(kCNAME);
944 memcpy(&data[offset], kCNAME, strlen(kCNAME));
945 offset += strlen(kCNAME);
947 data[offset++] = 7; // NOTE
950 data[offset++] = strlen(kNOTE);
952 memcpy(&data[offset], kNOTE, strlen(kNOTE));
953 offset
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightPlayer.cpp63 status_t StagefrightPlayer::setDataSource(int fd, int64_t offset, int64_t length) { argument
64 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
65 return mPlayer->setDataSource(dup(fd), offset, length);
/frameworks/av/media/libstagefright/chromium_http/
H A Dsupport.h87 off64_t offset);
144 off64_t offset);
154 off64_t offset);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Didct_vca.cpp48 /* preset the offset, such that we can take advantage pre-offset addressing mode */
104 /* preset the offset, such that we can take advantage pre-offset addressing mode */
192 /* preset the offset, such that we can take advantage pre-offset addressing mode */
301 /* preset the offset, such that we can take advantage pre-offset addressing mode */
424 int offset = width; local
427 comp -= offset;
452 int offset = width; local
509 int offset = width; local
582 int offset = width; local
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DMPEG2PSExtractor.cpp181 mBuffer->setRange(mBuffer->offset(), mBuffer->size() + n);
230 mBuffer->setRange(mBuffer->offset() + res, mBuffer->size() - res);
309 size_t offset = 0; local
310 while (offset < program_stream_info_length) {
311 if (offset + 2 > program_stream_info_length) {
321 if (offset + 2 + descriptor_length > program_stream_info_length) {
327 offset += 2 + descriptor_length;
332 offset = 0;
333 while (offset < elementary_stream_map_length) {
334 if (offset
[all...]
/frameworks/base/cmds/screencap/
H A Dscreencap.cpp157 size_t offset = (vinfo.xoffset + vinfo.yoffset*vinfo.xres) * bytespp; local
161 mapsize = offset + size;
164 base = (void const *)((char const *)mapbase + offset);
/frameworks/base/cmds/screenshot/
H A Dscreenshot.c25 unsigned int bytespp,offset; local
77 offset = vinfo.xoffset * bytespp + vinfo.xres * vinfo.yoffset * bytespp;
78 fseek(fb_in, offset, SEEK_SET);

Completed in 1170 milliseconds

1234567891011>>