/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | PoolingByteArrayOutputStream.java | 83 public synchronized void write(byte[] buffer, int offset, int len) { argument 85 super.write(buffer, offset, len);
|
/frameworks/native/libs/binder/ |
H A D | MemoryDealer.cpp | 115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size); 133 status_t deallocate(size_t offset); 166 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) 167 : MemoryBase(heap, offset, size), mDealer(dealer) 170 void* const start_ptr = (void*)(intptr_t(heap->base()) + offset); 182 * and could alias some real allocation (their offset is zero). */ 242 const ssize_t offset = allocator()->allocate(size); local 243 if (offset >= 0) { 244 memory = new Allocation(this, heap(), offset, size); 249 void MemoryDealer::deallocate(size_t offset) argument 164 Allocation( const sp<MemoryDealer>& dealer, const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument 296 ssize_t offset = alloc(size, flags); local 300 deallocate(size_t offset) argument [all...] |
H A D | MemoryHeapBase.cpp | 80 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_t flags, uint32_t offset) argument 86 mapfd(dup(fd), size, offset); local 102 status_t MemoryHeapBase::mapfd(int fd, size_t size, uint32_t offset) argument 114 PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); 130 mOffset = offset;
|
/frameworks/av/media/libstagefright/ |
H A D | MediaBuffer.cpp | 135 void MediaBuffer::set_range(size_t offset, size_t length) { argument 136 if ((mGraphicBuffer == NULL) && (offset + length > mSize)) { 137 ALOGE("offset = %zu, length = %zu, mSize = %zu", offset, length, mSize); 139 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize)); 141 mRangeOffset = offset;
|
H A D | AMRExtractor.cpp | 101 off64_t offset, bool isWide, size_t *frameSize) { 103 if (source->readAt(offset, &header, 1) < 1) { 136 off64_t offset = mIsWide ? 9 : 6; local 142 while (offset < streamSize) { 143 if (getFrameSizeByOffset(source, offset, mIsWide, &frameSize) != OK) { 149 mOffsetTable[mOffsetTableLength] = offset - (mIsWide ? 9: 6); 153 offset += frameSize; 100 getFrameSizeByOffset(const sp<DataSource> &source, off64_t offset, bool isWide, size_t *frameSize) argument
|
/frameworks/av/media/libstagefright/include/ |
H A D | MPEG4Extractor.h | 110 status_t parseChunk(off64_t *offset, int depth); 111 status_t parseITunesMetaData(off64_t offset, size_t size); 112 status_t parse3GPPMetaData(off64_t offset, size_t size, int depth); 113 void parseID3v2MetaData(off64_t offset); 133 status_t parseDrmSINF(off64_t *offset, off64_t data_offset);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
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
|
/frameworks/base/services/tests/servicestests/src/android/net/ |
H A D | IpUtilsTest.java | 37 private int getUnsignedByte(ByteBuffer buf, int offset) { argument 38 return buf.get(offset) & 0xff; 41 private int getChecksum(ByteBuffer buf, int offset) { argument 42 return getUnsignedByte(buf, offset) * 256 + getUnsignedByte(buf, offset + 1);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | OrientationHelper.java | 154 * @param view View to offset 155 * @param offset offset amount 157 public abstract void offsetChild(View view, int offset); argument 252 public void offsetChild(View view, int offset) { 253 view.offsetLeftAndRight(offset); 328 public void offsetChild(View view, int offset) { 329 view.offsetTopAndBottom(offset);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | get_pred_adv_b_add.cpp | 90 int offset, offset2; local 94 /* initialize offset to adjust pixel counter */ 96 offset = width - B_SIZE; /* offset for prev */ 97 offset2 = (pred_width_rnd >> 1) - 4; /* offset for pred_block */ 129 prev += offset; 152 prev += offset; 174 prev += offset; 190 int offset, offset2; local 196 /* initialize offset t 519 int offset, offset2; local 866 int offset, offset2; local [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | IDynamicInterfaceManagement.c | 54 size_t offset = x->mOffset; local 55 void *thisItf = (char *) thisObject + offset; 162 size_t offset = x->mOffset; local 163 void *thisItf = (char *) thisObject + offset; 231 size_t offset = x->mOffset; local 232 void *thisItf = (char *) thisObject + offset; 310 size_t offset = x->mOffset; local 311 void *thisItf = (char *) thisObject + offset; 410 size_t offset = x->mOffset; local 411 void *thisItf = (char *) thiz + offset; [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPWriter.cpp | 366 buffer->setRange(buffer->offset(), buffer->size() + 28); 378 size_t offset = 8; local 380 data[offset++] = 1; // CNAME 383 data[offset++] = strlen(kCNAME); 385 memcpy(&data[offset], kCNAME, strlen(kCNAME)); 386 offset += strlen(kCNAME); 388 data[offset++] = 7; // NOTE 391 data[offset++] = strlen(kNOTE); 393 memcpy(&data[offset], kNOTE, strlen(kNOTE)); 394 offset 613 size_t offset = 1; local 682 size_t offset = 2; local [all...] |
H A D | AMPEG4ElementaryAssembler.cpp | 335 size_t offset = 2 + (AU_headers_length + 7) / 8; local 338 ABitReader bits(buffer->data() + offset, buffer->size() - offset); 342 offset += (mAuxiliaryDataSizeLength + auxSize + 7) / 8; 349 if (buffer->size() < offset + header.mSize) { 354 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize); 356 offset += header.mSize; 362 if (offset != buffer->size()) { 363 ALOGW("potentially malformed packet (offset %zu, size %zu)", 364 offset, buffe [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Editor.java | 494 * Returns the X offset to make the pointy top of the error point 508 int offset; 512 offset = - (dr != null ? dr.mDrawableSizeRight : 0) / 2 + (int) (25 * scale + 0.5f); 514 mTextView.getPaddingRight() + offset; 517 offset = (dr != null ? dr.mDrawableSizeLeft : 0) / 2 - (int) (25 * scale + 0.5f); 518 errorX = mTextView.getPaddingLeft() + offset; 525 * Returns the Y offset to make the pointy top of the error point 737 private int getWordStart(int offset) { argument 740 int retOffset = getWordIteratorWithText().prevBoundary(offset); 743 retOffset = getWordIteratorWithText().getPunctuationBeginning(offset); 754 getWordEnd(int offset) argument 872 getNextCursorOffset(int offset, boolean findAfterGivenOffset) argument 882 getCharClusterRange(int offset) argument 967 isOffsetVisible(int offset) argument 3583 startTouchUpFilter(int offset) argument 3588 addPositionToTouchUpFilter(int offset) argument 3669 updateSelection(int offset) argument 3673 positionAtCursorOffset(int offset, boolean parentScrolled) argument 3740 showAtLocation(int offset) argument 4016 updateSelection(int offset) argument 4095 updateSelection(int offset) argument 4246 positionAndAdjustForCrossingHandles(int offset) argument 4261 positionAtCursorOffset(int offset, boolean parentScrolled) argument 4335 updateSelection(int offset) argument 4486 positionAndAdjustForCrossingHandles(int offset) argument 4501 positionAtCursorOffset(int offset, boolean parentScrolled) argument [all...] |
/frameworks/av/media/img_utils/src/ |
H A D | TiffIfd.cpp | 75 uint32_t TiffIfd::checkAndGetOffset(uint32_t offset) const { 90 if (offset == BAD_OFFSET) { 91 ALOGW("%s: Could not calculate IFD offsets, IFD %u had a bad initial offset.", 98 return offset + ifdSize; 101 status_t TiffIfd::writeData(uint32_t offset, /*out*/EndianOutput* out) const { argument 102 assert((offset % TIFF_WORD_SIZE) == 0); 105 ALOGV("%s: IFD %u written to offset %u", __FUNCTION__, mIfdId, offset ); 106 uint32_t valueOffset = checkAndGetOffset(offset); 123 // Writer IFD footer (4 bytes, offset t 296 setStripOffset(uint32_t offset) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 698 * Return the text offset of the beginning of the specified line ( 758 * Returns true if the character at offset and the preceding character 760 * @param offset the offset 764 public boolean isLevelBoundary(int offset) { argument 765 int line = getLineForOffset(offset); 774 if (offset == lineStart || offset == lineEnd) { 776 int runIndex = offset == lineStart ? 0 : runs.length - 2; 780 offset 794 isRtlCharAt(int offset) argument 817 primaryIsTrailingPrevious(int offset) argument 871 getPrimaryHorizontal(int offset) argument 880 getPrimaryHorizontal(int offset, boolean clamped) argument 890 getSecondaryHorizontal(int offset) argument 899 getSecondaryHorizontal(int offset, boolean clamped) argument 904 getHorizontal(int offset, boolean trailing, boolean clamped) argument 910 getHorizontal(int offset, boolean trailing, int line, boolean clamped) argument 1109 getLineForOffset(int offset) argument 1269 getOffsetToLeftOf(int offset) argument 1273 getOffsetToRightOf(int offset) argument 1329 getOffsetAtStartOf(int offset) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 87 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 89 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 93 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 100 offset = (int) floorf(std::max(paint->getStrokeWidth(), 1.0f) * 1.5f + 0.5f); 102 width = uint32_t(pathWidth + offset * 2.0 + 0.5); 103 height = uint32_t(pathHeight + offset * 2.0 + 0.5); 124 float left, float top, float offset, uint32_t width, uint32_t height) { 131 canvas.translate(-left + offset, -top + offset); 240 float left, top, offset; local 86 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 92 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 123 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 316 float left, top, offset; local [all...] |
/frameworks/base/core/jni/ |
H A D | BindTest.cpp | 250 offset_instanceString = fb->offset; 275 offset_mObj = findField(clazz, "mObj", "Ljava/lang/Object;")->offset; 276 offset_mBool = findField(clazz, "mBool", "Z" )->offset; 277 offset_mInt = findField(clazz, "mInt", "I")->offset; 278 offset_mString = findField(clazz, "mString", "Ljava/lang/String;")->offset; 279 offset_mDouble = findField(clazz, "mDouble", "D")->offset; 280 offset_mLong = findField(clazz, "mLong", "J")->offset;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 504 * @param offset offset into imageData for where the decoder should begin 506 * @param length the number of bytes, beginning at offset, to parse 513 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) { argument 514 if ((offset | length) < 0 || data.length < offset + length) { 522 bm = nativeDecodeByteArray(data, offset, length, opts); 539 * @param offset offset into imageData for where the decoder should begin 541 * @param length the number of bytes, beginning at offset, t 544 decodeByteArray(byte[] data, int offset, int length) argument 712 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 170 static int unpackInt(byte[] buf, int offset) { argument 173 b0 = ((int) buf[offset]) & 0xFF; // mask against sign extension 174 b1 = ((int) buf[offset+1]) & 0xFF; 175 b2 = ((int) buf[offset+2]) & 0xFF; 176 b3 = ((int) buf[offset+3]) & 0xFF; 180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument 184 int n = Os.read(fd, buffer, offset + totalRead, numBytes);
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | residual.cpp | 31 int offset; local 45 offset = video->PicWidthInSamplesL - 16; 70 pDst += offset; 71 pSrc += offset; 79 offset >>= 1; 103 pDst += offset; 104 pSrc += offset; 136 pDst += offset; 137 pSrc += offset;
|
/frameworks/base/core/java/android/text/method/ |
H A D | ArrowKeyMovementMethod.java | 257 int offset = widget.getOffsetForPosition(event.getX(), event.getY()); 258 buffer.setSpan(LAST_TAP_DOWN, offset, offset, Spannable.SPAN_POINT_POINT); 271 int offset = buffer.getSpanStart(LAST_TAP_DOWN); 272 Selection.setSelection(buffer, offset); 287 int offset = widget.getOffsetForPosition(event.getX(), event.getY()); 289 Selection.extendSelection(buffer, offset); 295 // the current scroll offset to avoid the scroll jumping later 303 int offset = widget.getOffsetForPosition(event.getX(), event.getY()); 306 Selection.extendSelection(buffer, offset); [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | YUVImage.h | 30 // - getOffsets() returns the correct offset for the different channels 145 // For the given pixel location, this returns the offset of the location of y, u and v 152 // Returns the offset increments incurred in going from one data row to the next data row 161 // Given the offset return the address of the corresponding channel's data. 162 uint8_t* getYAddress(int32_t offset) const; 163 uint8_t* getUAddress(int32_t offset) const; 164 uint8_t* getVAddress(int32_t offset) const;
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | AString.h | 35 AString(const AString &from, size_t offset, size_t n); 41 void setTo(const AString &from, size_t offset, size_t n); 56 void append(const AString &from, size_t offset, size_t n);
|
/frameworks/av/include/ndk/ |
H A D | NdkMediaCodec.h | 45 int32_t offset; member in struct:AMediaCodecBufferInfo 134 size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags); 140 size_t idx, off_t offset, AMediaCodecCryptoInfo*, uint64_t time, uint32_t flags);
|