Searched refs:offset (Results 26 - 50 of 1495) sorted by relevance

1234567891011>>

/frameworks/base/media/java/android/media/midi/
H A DMidiReceiver.java56 * @param offset the offset of the first byte of the data in the array to be processed
61 abstract public void onSend(byte[] msg, int offset, int count, long timestamp) argument
99 * @param offset the offset of the first byte of the data in the array to be sent
103 public void send(byte[] msg, int offset, int count) throws IOException { argument
105 send(msg, offset, count, 0L);
118 * @param offset the offset of the first byte of the data in the array to be sent
123 public void send(byte[] msg, int offset, in argument
[all...]
/frameworks/minikin/tests/unittest/
H A DUnicodeUtilsTest.cpp26 size_t offset; local
28 ParseUnicode(buf, BUF_SIZE, "U+000D U+1F431 | 'a'", &size, &offset);
30 EXPECT_EQ(offset, 3u);
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Ds_mp3bits.h94 uint32 offset; member in struct:__anon593
/frameworks/av/media/libstagefright/foundation/
H A Dhexdump.cpp45 size_t offset = 0; local
46 while (offset < size) {
52 snprintf(tmp, sizeof(tmp), "%08lx: ", (unsigned long)offset);
60 if (offset + i >= size) {
63 snprintf(tmp, sizeof(tmp), "%02x ", data[offset + i]);
71 if (offset + i >= size) {
75 if (isprint(data[offset + i])) {
76 line.append((char)data[offset + i]);
89 offset += 16;
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java69 * the byte array {@code b} starting at {@code offset}.
72 * @param offset the initial position in {@code buffer} to store the bytes read from this
76 * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code length < 0}, or if {@code
77 * offset + length} is greater than the length of {@code b}.
81 public int read(byte[] b, int offset, int length) throws IOException { argument
85 if ((offset | length) < 0 || length > b.length - offset) {
86 throw new ArrayIndexOutOfBoundsException("invalid offset or length");
88 return mSocket.read(b, offset, length);
H A DBluetoothOutputStream.java59 * at position {@code offset} to this stream.
62 * @param offset the start position in {@code buffer} from where to get bytes.
65 * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code count < 0}, or if {@code
66 * offset + count} is bigger than the length of {@code buffer}.
69 public void write(byte[] b, int offset, int count) throws IOException { argument
73 if ((offset | count) < 0 || count > b.length - offset) {
74 throw new IndexOutOfBoundsException("invalid offset or length");
76 mSocket.write(b, offset, count);
H A DBluetoothGattCharacteristic.java515 * characteristic value at the given offset are interpreted to generate the
519 * @param offset Offset at which the integer value can be found.
520 * @return Cached value of the characteristic or null of offset exceeds value size.
522 public Integer getIntValue(int formatType, int offset) { argument
523 if ((offset + getTypeLen(formatType)) > mValue.length) return null;
527 return unsignedByteToInt(mValue[offset]);
530 return unsignedBytesToInt(mValue[offset], mValue[offset + 1]);
533 return unsignedBytesToInt(mValue[offset], mValue[offset
559 getFloatValue(int formatType, int offset) argument
581 getStringValue(int offset) argument
614 setValue(int value, int formatType, int offset) argument
661 setValue(int mantissa, int exponent, int formatType, int offset) argument
[all...]
/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java22 * Current offset in the stream.
28 * @param offset offset into stream where data starts
29 * @param length length of data at offset
32 public LimitedLengthInputStream(InputStream in, long offset, long length) throws IOException { argument
39 if (offset < 0) {
40 throw new IOException("offset < 0");
47 if (length > Long.MAX_VALUE - offset) {
48 throw new IOException("offset + length > Long.MAX_VALUE");
51 mEnd = offset
68 read(byte[] buffer, int offset, int byteCount) argument
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DGOT.cpp32 uint32_t offset = 0; local
35 frag->setOffset(offset);
36 offset += frag->size();
39 m_Section.setSize(offset);
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
H A DAesCtrDecryptor.cpp44 size_t offset = 0; local
54 memcpy(destination + offset, source + offset,
56 offset += subSample.mNumBytesOfClearData;
60 AES_ctr128_encrypt(source + offset, destination + offset,
64 offset += subSample.mNumBytesOfEncryptedData;
68 *bytesDecryptedOut = offset;
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
H A DAesCtrDecryptor.cpp53 size_t offset = 0; local
63 memcpy(destination + offset, source + offset,
65 offset += subSample.numBytesOfClearData;
69 AES_ctr128_encrypt(source + offset, destination + offset,
73 offset += subSample.numBytesOfEncryptedData;
77 *bytesDecryptedOut = offset;
/frameworks/av/include/media/
H A DDataSourceBase.h43 // this returns zero; it just means the given offset is equal to, or
45 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
48 bool getUInt16(off64_t offset, uint16_t *x);
49 bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int
50 bool getUInt32(off64_t offset, uint32_t *x);
51 bool getUInt64(off64_t offset, uint64_t *x);
54 bool getUInt16Var(off64_t offset, uint16_t *x, size_t size);
55 bool getUInt32Var(off64_t offset, uint32_t *x, size_t size);
56 bool getUInt64Var(off64_t offset, uint64_t *x, size_t size);
/frameworks/av/media/libmediaextractor/include/media/
H A DDataSourceBase.h43 // this returns zero; it just means the given offset is equal to, or
45 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
48 bool getUInt16(off64_t offset, uint16_t *x);
49 bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int
50 bool getUInt32(off64_t offset, uint32_t *x);
51 bool getUInt64(off64_t offset, uint64_t *x);
54 bool getUInt16Var(off64_t offset, uint16_t *x, size_t size);
55 bool getUInt32Var(off64_t offset, uint32_t *x, size_t size);
56 bool getUInt64Var(off64_t offset, uint64_t *x, size_t size);
/frameworks/base/core/java/android/hardware/hdmi/
H A DIHdmiMhlVendorCommandListener.aidl25 void onReceived(int portId, int offset, int length, in byte[] data);
/frameworks/base/core/java/android/text/style/
H A DTabStopSpan.java30 * Returns the offset of the tab stop from the leading margin of the line, in pixels.
32 * @return the offset, in pixels
37 * The default implementation of TabStopSpan that allows setting the offset of the tab stop
55 * Constructs a {@link TabStopSpan.Standard} based on an offset.
57 * @param offset the offset of the tab stop from the leading margin of
60 public Standard(@IntRange(from = 0) int offset) { argument
61 mTabOffset = offset;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { argument
20 GLES20.glGenBuffers(n, buffers, offset);
25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { argument
26 GLES20.glDeleteTextures(n, textures, offset);
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { argument
33 GLES20.glDeleteBuffers(n, buffers, offset);
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset);
/frameworks/minikin/libs/minikin/
H A DLayoutUtils.h30 * Return offset of previous word break. It is either < offset or == 0.
36 size_t getPrevWordBreakForCache(const uint16_t* chars, size_t offset, size_t len);
39 * Return offset of next word break. It is either > offset or == len.
45 size_t getNextWordBreakForCache(const uint16_t* chars, size_t offset, size_t len);
/frameworks/base/core/java/com/android/internal/widget/
H A DChildHelper.java97 final int offset;
99 offset = mCallback.getChildCount();
101 offset = getOffset(index);
103 mBucket.insert(offset, hidden);
107 mCallback.addView(child, offset);
118 int offset = index;
119 while (offset < limit) {
120 final int removedBefore = mBucket.countOnesBefore(offset);
121 final int diff = index - (offset - removedBefore);
123 while (mBucket.get(offset)) { // ensur
523 getChildAt(int offset) argument
531 detachViewFromParent(int offset) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DChildHelper.java97 final int offset;
99 offset = mCallback.getChildCount();
101 offset = getOffset(index);
103 mBucket.insert(offset, hidden);
107 mCallback.addView(child, offset);
118 int offset = index;
119 while (offset < limit) {
120 final int removedBefore = mBucket.countOnesBefore(offset);
121 final int diff = index - (offset - removedBefore);
123 while (mBucket.get(offset)) { // ensur
523 getChildAt(int offset) argument
531 detachViewFromParent(int offset) argument
[all...]
/frameworks/av/media/extractors/mp3/
H A DXINGSeeker.cpp83 int offset = first_frame_pos; local
84 if (source->readAt(offset, &buffer, 4) < 4) { // get header
87 offset += 4;
100 // determine offset of XING header
102 if (num_channels != 1) offset += 32;
103 else offset += 17;
105 if (num_channels != 1) offset += 17;
106 else offset += 9;
109 int xingbase = offset;
111 if (source->readAt(offset,
[all...]
/frameworks/av/media/mtp/
H A DMtpPacket.cpp94 uint16_t MtpPacket::getUInt16(int offset) const {
95 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset];
98 uint32_t MtpPacket::getUInt32(int offset) const {
99 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) |
100 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset];
103 void MtpPacket::putUInt16(int offset, uint16_t value) { argument
104 mBuffer[offset
108 putUInt32(int offset, uint32_t value) argument
148 int offset = MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t); local
[all...]
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.java8 int offset
16 int offset
23 int offset
38 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
41 win, attrib_list, offset);
/frameworks/ml/nn/runtime/test/generated/vts_models/
H A Dmobilenet_quantized.model.cpp12 .location = {.poolIndex = 0, .offset = 0, .length = 4},
21 .location = {.poolIndex = 0, .offset = 4, .length = 4},
30 .location = {.poolIndex = 0, .offset = 8, .length = 4},
39 .location = {.poolIndex = 0, .offset = 12, .length = 4},
48 .location = {.poolIndex = 0, .offset = 16, .length = 4},
57 .location = {.poolIndex = 0, .offset = 20, .length = 4},
66 .location = {.poolIndex = 0, .offset = 24, .length = 4},
75 .location = {.poolIndex = 0, .offset = 28, .length = 4},
84 .location = {.poolIndex = 0, .offset = 32, .length = 4},
93 .location = {.poolIndex = 0, .offset
[all...]
H A Dmobilenet_224_gender_basic_fixed.model.cpp12 .location = {.poolIndex = 0, .offset = 0, .length = 4},
21 .location = {.poolIndex = 0, .offset = 4, .length = 4},
30 .location = {.poolIndex = 0, .offset = 8, .length = 4},
39 .location = {.poolIndex = 0, .offset = 12, .length = 4},
48 .location = {.poolIndex = 0, .offset = 16, .length = 4},
57 .location = {.poolIndex = 0, .offset = 20, .length = 4},
66 .location = {.poolIndex = 0, .offset = 24, .length = 4},
75 .location = {.poolIndex = 0, .offset = 28, .length = 4},
84 .location = {.poolIndex = 0, .offset = 32, .length = 4},
93 .location = {.poolIndex = 0, .offset
[all...]
H A Dmobilenet_224_gender_basic_fixed_relaxed.model.cpp12 .location = {.poolIndex = 0, .offset = 0, .length = 4},
21 .location = {.poolIndex = 0, .offset = 4, .length = 4},
30 .location = {.poolIndex = 0, .offset = 8, .length = 4},
39 .location = {.poolIndex = 0, .offset = 12, .length = 4},
48 .location = {.poolIndex = 0, .offset = 16, .length = 4},
57 .location = {.poolIndex = 0, .offset = 20, .length = 4},
66 .location = {.poolIndex = 0, .offset = 24, .length = 4},
75 .location = {.poolIndex = 0, .offset = 28, .length = 4},
84 .location = {.poolIndex = 0, .offset = 32, .length = 4},
93 .location = {.poolIndex = 0, .offset
[all...]

Completed in 2528 milliseconds

1234567891011>>