/frameworks/support/v4/java/android/support/v4/util/ |
H A D | ArrayMap.java | 80 protected Object colGetEntry(int index, int offset) { 81 return mArray[(index<<1) + offset];
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 58 AString::AString(const AString &from, size_t offset, size_t n) argument 62 setTo(from, offset, n); 98 void AString::setTo(const AString &from, size_t offset, size_t n) { argument 102 setTo(from.mData + offset, n); 186 void AString::append(const AString &from, size_t offset, size_t n) { argument 187 append(from.c_str() + offset, n);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AAMRAssembler.cpp | 151 size_t offset = 1; local 154 if (offset >= buffer->size()) { 163 uint8_t toc = buffer->data()[offset++]; 195 if (offset + frameSize - 1 > buffer->size()) { 206 buffer->data() + offset, frameSize - 1); 208 offset += frameSize - 1;
|
H A D | MyTransmitter.h | 925 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/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);
|
/frameworks/base/core/java/android/net/ |
H A D | VpnService.java | 358 int offset = prefixLength / 8; 360 if (offset < bytes.length) { 361 for (bytes[offset] <<= prefixLength % 8; offset < bytes.length; ++offset) { 362 if (bytes[offset] != 0) {
|
/frameworks/base/core/java/android/os/ |
H A D | MemoryFile.java | 187 * @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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | CpuVideoTrackDecoder.java | 137 int offset; 142 offset = 0; 147 offset = (mWidth - 1) * mHeight; 152 offset = mHeight - 1; 157 offset = mWidth * mHeight - 1; 164 PixelUtils.copyPixels(input, output, mWidth, mHeight, offset, pixStride, rowStride);
|
/frameworks/compile/mclinker/unittests/ |
H A D | ELFReaderTest.cpp | 91 ASSERT_EQ(0x40, (*iter)->offset()); 113 m_pInput->fileOffset() + symtab_shdr->offset(), 117 m_pInput->fileOffset() + strtab_shdr->offset(), 135 uint64_t offset = m_pInput->fileOffset() + (*rs)->offset(); local 137 MemoryRegion* region = mem->request(offset, size);
|
/frameworks/av/media/libstagefright/ |
H A D | WAVExtractor.cpp | 62 off64_t offset, size_t size); 151 off64_t offset = 12; local 155 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { 160 offset += 8; 174 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { 191 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { 278 mDataOffset = offset; 325 offset += chunkSize; 338 off64_t offset, size_t size) 345 mOffset(offset), 333 WAVSource( const sp<DataSource> &dataSource, const sp<MetaData> &meta, uint16_t waveFormat, int32_t bitsPerSample, off64_t offset, size_t size) argument [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewPager.java | 113 float offset; field in class:ViewPager.ItemInfo 261 * @param positionOffset Value from [0, 1) indicating the offset from the page at position. 262 * @param positionOffsetPixels Value in pixels indicating the offset from position. 562 Math.min(curInfo.offset, mLastOffset))); 1132 float offset = oldCurInfo.offset + oldCurInfo.widthFactor + marginOffset; 1142 // ask the adapter for an offset. 1143 offset += mAdapter.getPageWidth(pos) + marginOffset; 1146 ii.offset = offset; 1670 onPageScrolled(int position, float offset, int offsetPixels) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | motion_comp.cpp | 98 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 D | TextUtils.java | 912 public static int getOffsetBefore(CharSequence text, int offset) { argument 913 if (offset == 0) 915 if (offset == 1) 918 char c = text.charAt(offset - 1); 921 char c1 = text.charAt(offset - 2); 924 offset -= 2; 926 offset -= 1; 928 offset -= 1; 932 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, 947 getOffsetAfter(CharSequence text, int offset) argument [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | ArrowKeyMovementMethod.java | 240 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/media/java/android/media/ |
H A D | SoundPool.java | 178 * binary. The offset specifies the offset from the start of the file 182 * @param offset offset to the start of the sound 188 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 189 return mImpl.load(fd, offset, length, priority); 416 FileDescriptor fd, long offset, long length, int priority); 516 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 517 return _load(fd, offset, length, priority); 522 private native final int _load(FileDescriptor fd, long offset, lon argument 415 load( FileDescriptor fd, long offset, long length, int priority) argument 639 load(FileDescriptor fd, long offset, long length, int priority) argument [all...] |
/frameworks/ex/common/java/com/android/common/widget/ |
H A D | GroupingListAdapter.java | 244 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 D | slice.cpp | 170 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/base/core/java/android/widget/ |
H A D | Editor.java | 352 * Returns the X offset to make the pointy top of the error point 366 int offset; 370 offset = - (dr != null ? dr.mDrawableSizeRight : 0) / 2 + (int) (25 * scale + 0.5f); 372 mTextView.getPaddingRight() + offset; 375 offset = (dr != null ? dr.mDrawableSizeLeft : 0) / 2 - (int) (25 * scale + 0.5f); 376 errorX = mTextView.getPaddingLeft() + offset; 383 * Returns the Y offset to make the pointy top of the error point 620 * Adjusts selection to the word under last touch offset. 702 private long getCharRange(int offset) { argument 704 if (offset 801 isOffsetVisible(int offset) argument 1511 getPrimaryHorizontal(Layout layout, Layout hintLayout, int offset, boolean clamped) argument 3046 startTouchUpFilter(int offset) argument 3051 addPositionToTouchUpFilter(int offset) argument 3151 updateSelection(int offset) argument 3155 positionAtCursorOffset(int offset, boolean parentScrolled) argument 3392 updateSelection(int offset) argument 3435 updateSelection(int offset) argument 3478 updateSelection(int offset) argument [all...] |
/frameworks/av/media/libstagefright/chromium_http/ |
H A D | support.cpp | 98 int offset = 0; local 105 memcpy(bytes + offset, &bigsize, sizeof(bigsize)); 106 offset += sizeof(bigsize); 107 memcpy(bytes + offset, cert_chain[i].data(), certsize); 108 offset += certsize; 539 off64_t offset) { 550 offset)); 558 off64_t offset) { 559 me->onInitiateConnection(url, headers, offset); 565 off64_t offset) { 536 initiateConnection( const char *uri, const KeyedVector<String8, String8> *headers, off64_t offset) argument 555 OnInitiateConnectionWrapper( SfDelegate *me, GURL url, const KeyedVector<String8, String8> *headers, off64_t offset) argument 562 onInitiateConnection( const GURL &url, const KeyedVector<String8, String8> *extra, off64_t offset) argument [all...] |
/frameworks/av/libvideoeditor/vss/src/ |
H A D | M4PCMR_CoreReader.c | 487 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 D | DrmEngineBase.cpp | 124 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 D | DrmEngineBase.h | 84 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/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 799 size_t offset = 1; local 801 while (offset < codecPrivateSize && codecPrivate[offset] == 0xff) { 803 ++offset; 805 if (offset >= codecPrivateSize) { 808 len1 += codecPrivate[offset++]; 811 while (offset < codecPrivateSize && codecPrivate[offset] == 0xff) { 813 ++offset; 815 if (offset > [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifModifier.java | 42 TagOffset(ExifTag tag, int offset) { argument 44 mOffset = offset; 148 private void writeTagValue(ExifTag tag, int offset) { argument 151 Log.v(TAG, "at offset: " + offset); 153 mByteBuffer.position(offset + mOffsetBase);
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.cpp | 241 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);
|