/frameworks/av/media/libstagefright/codec2/include/ |
H A D | C2Buffer.h | 284 inline uint32_t offset() const { return mOffset; } function in class:android::_C2LinearRangeAspect 293 inline _C2LinearRangeAspect(const _C2LinearCapacityAspect *parent, size_t offset, size_t size) argument 295 mOffset(c2_min(offset, capacity())), 298 // subsection of the two [offset, offset + size] ranges 299 inline _C2LinearRangeAspect(const _C2LinearRangeAspect *parent, size_t offset, size_t size) argument 301 mOffset(c2_min(c2_max(offset, parent == nullptr ? 0 : parent->offset()), capacity())), 322 inline _C2EditableLinearRange(const _C2LinearCapacityAspect *parent, size_t offset, size_t size) argument 323 : _C2LinearRangeAspect(parent, offset, siz 326 _C2EditableLinearRange(const _C2LinearRangeAspect *parent, size_t offset, size_t size) argument 340 setOffset(uint32_t offset) argument 375 setOffset_be(uint32_t offset) argument [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | ID3.cpp | 43 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument 44 off64_t available = (offset >= (off64_t)mSize) ? 0ll : mSize - offset; 47 memcpy(data, mData + offset, copy); 59 ID3::ID3(const sp<DataSource> &source, bool ignoreV1, off64_t offset) argument 66 mIsValid = parseV2(source, offset); 121 bool ID3::parseV2(const sp<DataSource> &source, off64_t offset) { argument 132 offset, &header, sizeof(header)) != (ssize_t)sizeof(header)) { 191 if (source->readAt(offset + sizeof(header), mData, mSize) != (ssize_t)mSize) { 349 size_t offset local [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | BaseKeyListener.java | 91 // Returns the offset of the replacement span edge if the offset is inside of the replacement 92 // span. Otherwise, does nothing and returns the input offset value. 93 private static int adjustReplacementSpan(CharSequence text, int offset, boolean moveToStart) { argument 95 return offset; 98 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, ReplacementSpan.class); 103 if (start < offset && end > offset) { 104 offset 111 getOffsetForBackspaceKey(CharSequence text, int offset) argument 306 getOffsetForForwardDeleteKey(CharSequence text, int offset, Paint paint) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | EventLog.java | 122 int offset = mBuffer.getShort(HEADER_SIZE_OFFSET); 123 if (offset == 0) { 124 offset = V1_PAYLOAD_START; 126 return mBuffer.getInt(offset); 132 int offset = mBuffer.getShort(HEADER_SIZE_OFFSET); 133 if (offset == 0) { 134 offset = V1_PAYLOAD_START; 136 mBuffer.limit(offset + mBuffer.getShort(LENGTH_OFFSET)); 137 if ((offset + DATA_OFFSET) >= mBuffer.limit()) { 141 mBuffer.position(offset [all...] |
H A D | Base64.java | 88 public abstract boolean process(byte[] input, int offset, int len, boolean finish); argument 147 * @param offset the position within the input array at which to start 155 public static byte[] decode(byte[] input, int offset, int len, int flags) { argument 160 if (!decoder.process(input, offset, len, true)) { 263 public boolean process(byte[] input, int offset, int len, boolean finish) { argument 266 int p = offset; 267 len += offset; 468 * @param offset the position within the input array at which to 475 public static String encodeToString(byte[] input, int offset, int len, int flags) { argument 477 return new String(encode(input, offset, le 509 encode(byte[] input, int offset, int len, int flags) argument 603 process(byte[] input, int offset, int len, boolean finish) argument [all...] |
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/ |
H A D | UT_alloc_copy.java | 69 int offset = random.nextInt(arr_len); 70 int count = arr_len - offset; 71 alloc.copy1DRangeFrom(offset, count, inArray); 72 alloc.copy1DRangeTo(offset, count, outArray); 111 int offset = random.nextInt(arr_len); 112 int count = arr_len - offset; 113 alloc.copy1DRangeFrom(offset, count, inArray); 114 alloc.copy1DRangeTo(offset, count, outArray); 153 int offset = random.nextInt(arr_len); 154 int count = arr_len - offset; [all...] |
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_alloc_copy.java | 69 int offset = random.nextInt(arr_len); 70 int count = arr_len - offset; 71 alloc.copy1DRangeFrom(offset, count, inArray); 72 alloc.copy1DRangeTo(offset, count, outArray); 111 int offset = random.nextInt(arr_len); 112 int count = arr_len - offset; 113 alloc.copy1DRangeFrom(offset, count, inArray); 114 alloc.copy1DRangeTo(offset, count, outArray); 153 int offset = random.nextInt(arr_len); 154 int count = arr_len - offset; [all...] |
/frameworks/base/services/net/java/android/net/apf/ |
H A D | ApfGenerator.java | 41 LDB(1), // Load 1 byte from immediate offset, e.g. "ldb R0, [5]" 42 LDH(2), // Load 2 bytes from immediate offset, e.g. "ldh R0, [5]" 43 LDW(3), // Load 4 bytes from immediate offset, e.g. "ldw R0, [5]" 44 LDBX(4), // Load 1 byte from immediate offset plus register, e.g. "ldbx R0, [5]R0" 45 LDHX(5), // Load 2 byte from immediate offset plus register, e.g. "ldhx R0, [5]R0" 46 LDWX(6), // Load 4 byte from immediate offset plus register, e.g. "ldwx R0, [5]R0" 110 int offset; field in class:ApfGenerator.Instruction 181 * contain the offset of the jump destination. 215 * Write {@code value} at offset {@code writingOffset} into {@code bytecode}. 231 * Generate bytecode for this instruction at offset { 416 addLoad8(Register register, int offset) argument 427 addLoad16(Register register, int offset) argument 438 addLoad32(Register register, int offset) argument 450 addLoad8Indexed(Register register, int offset) argument 462 addLoad16Indexed(Register register, int offset) argument 474 addLoad32Indexed(Register register, int offset) argument [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | AppBarLayout.java | 118 * offset changes. 122 * Called when the {@link AppBarLayout}'s layout offset has been changed. This allows 123 * child views to implement custom behavior based on the offset (for instance pinning a 126 * @param appBarLayout the {@link AppBarLayout} which offset has changed 127 * @param verticalOffset the vertical offset for the parent {@link AppBarLayout}, in px 207 * Add a listener that will be called when the offset of this {@link AppBarLayout} changes. 209 * @param listener The listener that will be called when the offset changes.] 479 void dispatchOffsetUpdates(int offset) { argument 486 listener.onOffsetChanged(this, offset); 834 // Cancel any offset animatio 897 animateOffsetTo(final CoordinatorLayout coordinatorLayout, final AppBarLayout child, final int offset, float velocity) argument 913 animateOffsetWithDuration(final CoordinatorLayout coordinatorLayout, final AppBarLayout child, final int offset, final int duration) argument 942 getChildIndexOnOffset(AppBarLayout abl, final int offset) argument 1161 interpolateOffset(AppBarLayout layout, final int offset) argument 1208 updateAppBarLayoutDrawableState(final CoordinatorLayout parent, final AppBarLayout layout, final int offset, final int direction, final boolean forceJump) argument 1260 getAppBarChildOnOffset(final AppBarLayout layout, final int offset) argument [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | grp_data.c | 55 Word32 offset; local 82 offset = 0; 85 groupedSfbOffset[i] = offset + sfbOffset[sfb] * groupLen[grp]; 88 offset += groupLen[grp] * FRAME_LEN_SHORT; 95 offset = 0; 101 offset += groupLen[grp] * FRAME_LEN_SHORT;
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPAssembler.cpp | 85 size_t offset = 0; local 89 uint8_t *dst = accessUnit->data() + offset; 113 offset += nal->size() + 7; 131 size_t offset = 0; local 135 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); 136 offset += nal->size();
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 197 long offset; local 223 offset = ftell(fp); 232 result = pAsset->openChunk(fd, offset, method, uncompressedLen, 248 /*static*/ Asset* Asset::createFromFileSegment(int fd, off64_t offset, 255 result = pAsset->openChunk(NULL, fd, offset, length); 266 /*static*/ Asset* Asset::createFromCompressedData(int fd, off64_t offset, 274 result = pAsset->openChunk(fd, offset, compressionMethod, 353 * Do generic seek() housekeeping. Pass in the offset/whence values from 354 * the seek request, along with the current chunk offset and the chunk 357 * Returns the new chunk offset, o 359 handleSeek(off64_t offset, int whence, off64_t curPosn, off64_t maxPosn) argument 424 openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument 553 seek(off64_t offset, int whence) argument 756 openChunk(int fd, off64_t offset, int compressionMethod, size_t uncompressedLen, size_t compressedLen) argument 854 seek(off64_t offset, int whence) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PixelBuffer.cpp | 40 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 65 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument 67 mFormat, GL_UNSIGNED_BYTE, &mBuffer[offset]); 81 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 137 void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument 142 GL_UNSIGNED_BYTE, reinterpret_cast<void*>(offset));
|
/frameworks/compile/mclinker/lib/Fragment/ |
H A D | FragmentRef.cpp | 46 /// @param pOffset - the offset, can be larger than the fragment, but can not 48 /// @return if the offset is legal, return the fragment reference. Otherwise, 51 int64_t offset = pOffset; local 55 offset -= frag->size(); 56 if (offset <= 0) 61 if (offset == 0) 64 offset += frag->size(); 71 new (result) FragmentRef(*frag, offset); 119 // check if the offset is still in a legal range.
|
/frameworks/minikin/libs/minikin/ |
H A D | CmapCoverage.cpp | 38 static uint32_t readU16(const uint8_t* data, size_t offset) { argument 39 return ((uint32_t)data[offset]) << 8 | ((uint32_t)data[offset + 1]); 42 static uint32_t readU24(const uint8_t* data, size_t offset) { argument 43 return ((uint32_t)data[offset]) << 16 | ((uint32_t)data[offset + 1]) << 8 | 44 ((uint32_t)data[offset + 2]); 47 static uint32_t readU32(const uint8_t* data, size_t offset) { argument 48 return ((uint32_t)data[offset]) << 24 | ((uint32_t)data[offset 431 const uint32_t offset = readU32(cmap_data, tableHeadOffset + kOffsetOffset); local [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | RemoteDataSource.h | 46 virtual ssize_t readAt(off64_t offset, size_t size) { argument 47 ALOGV("readAt(%lld, %zu)", (long long)offset, size); 51 return mSource->readAt(offset, mMemory->pointer(), size);
|
/frameworks/av/media/libstagefright/ |
H A D | AACExtractor.cpp | 90 // Returns the frame length in bytes as described in an ADTS header starting at the given offset, 95 static size_t getAdtsFrameLength(const sp<DataSource> &source, off64_t offset, size_t* headerSize) { argument 103 if (source->readAt(offset, &syncword, 2) != 2) { 111 if (source->readAt(offset + 1, &protectionAbsent, 1) < 1) { 117 if (source->readAt(offset + 3, &header, 3) < 3) { 152 int64_t offset; local 153 CHECK(meta->findInt64("offset", &offset)); 156 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { 175 while (offset < streamSiz [all...] |
/frameworks/av/media/libstagefright/foundation/include/ |
H A D | RemoteDataSource.h | 46 virtual ssize_t readAt(off64_t offset, size_t size) { argument 47 ALOGV("readAt(%lld, %zu)", (long long)offset, size); 51 return mSource->readAt(offset, mMemory->pointer(), size);
|
/frameworks/av/media/libstagefright/include/ |
H A D | RemoteDataSource.h | 46 virtual ssize_t readAt(off64_t offset, size_t size) { argument 47 ALOGV("readAt(%lld, %zu)", (long long)offset, size); 51 return mSource->readAt(offset, mMemory->pointer(), size);
|
/frameworks/base/core/jni/ |
H A D | android_nio_utils.cpp | 35 jint offset; local 47 offset = _env->CallStaticIntMethod(gNioJNI.nioAccessClass, 51 return (void *) ((char *) data + offset);
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | ArrayUtils.java | 58 public static byte[] subarray(byte[] arr, int offset, int len) { argument 62 if ((offset == 0) && (len == arr.length)) { 66 System.arraycopy(arr, offset, result, 0, len);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
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/compile/mclinker/lib/LD/ |
H A D | Relocator.cpp | 37 // 1. update the relocation target offset 39 uint64_t offset = input_sym->fragRef()->getOutputOffset(); local 40 pReloc.target() += offset; 56 FragmentRef::Offset undef_sym_pos = pReloc.targetRef().offset();
|
/frameworks/multidex/library/src/android/support/multidex/ |
H A D | ZipUtil.java | 34 long offset; field in class:ZipUtil.CentralDirectory 101 dir.offset = Integer.reverseBytes(raf.readInt()) & 0xFFFFFFFFL; 110 raf.seek(dir.offset);
|
/frameworks/native/opengl/tools/glgen/specs/gles11/ |
H A D | GLES11.spec | 3 void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data ) 7 void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset ) 9 void glDrawElements ( GLenum mode, GLsizei count, GLenum type, GLint offset ) 31 void glNormalPointer ( GLenum type, GLsizei stride, GLint offset ) 37 void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, GLint offset ) 44 void glVertexPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
|