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

1234567891011>>

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Ds_mp3bits.h94 uint32 offset; member in struct:__anon500
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java70 * the byte array {@code b} starting at {@code offset}.
74 * @param offset
82 * if {@code offset < 0} or {@code length < 0}, or if
83 * {@code offset + length} is greater than the length of
89 public int read(byte[] b, int offset, int length) throws IOException { argument
93 if ((offset | length) < 0 || length > b.length - offset) {
94 throw new ArrayIndexOutOfBoundsException("invalid offset or length");
96 return mSocket.read(b, offset, length);
H A DBluetoothOutputStream.java61 * at position {@code offset} to this stream.
65 * @param offset
73 * if {@code offset < 0} or {@code count < 0}, or if
74 * {@code offset + count} is bigger than the length of
78 public void write(byte[] b, int offset, int count) throws IOException { argument
82 if ((offset | count) < 0 || count > b.length - offset) {
83 throw new IndexOutOfBoundsException("invalid offset or length");
85 mSocket.write(b, offset, count);
H A DBluetoothGattCharacteristic.java495 * characteristic value at the given offset are interpreted to generate the
500 * @param offset Offset at which the integer value can be found.
501 * @return Cached value of the characteristic or null of offset exceeds
504 public Integer getIntValue(int formatType, int offset) { argument
505 if ((offset + getTypeLen(formatType)) > mValue.length) return null;
509 return unsignedByteToInt(mValue[offset]);
512 return unsignedBytesToInt(mValue[offset], mValue[offset+1]);
515 return unsignedBytesToInt(mValue[offset], mValue[offset
542 getFloatValue(int formatType, int offset) argument
564 getStringValue(int offset) argument
597 setValue(int value, int formatType, int offset) argument
644 setValue(int mantissa, int exponent, int formatType, int offset) 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/support/v4/api23/android/support/v4/view/
H A DViewCompatMarshmallow.java34 static void offsetTopAndBottom(View view, int offset) { argument
35 view.offsetTopAndBottom(offset);
38 static void offsetLeftAndRight(View view, int offset) { argument
39 view.offsetLeftAndRight(offset);
/frameworks/av/media/libstagefright/foundation/
H A Dhexdump.cpp45 size_t offset = 0; local
46 while (offset < size) {
52 sprintf(tmp, "%08lx: ", (unsigned long)offset);
60 if (offset + i >= size) {
63 sprintf(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/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/av/drm/mediadrm/plugins/clearkey/
H A DAesCtrDecryptor.cpp39 size_t offset = 0; local
49 memcpy(destination + offset, source + offset,
51 offset += subSample.mNumBytesOfClearData;
55 AES_ctr128_encrypt(source + offset, destination + offset,
59 offset += subSample.mNumBytesOfEncryptedData;
63 *bytesDecryptedOut = offset;
/frameworks/base/core/java/android/hardware/hdmi/
H A DIHdmiMhlVendorCommandListener.aidl25 void onReceived(int portId, int offset, int length, in byte[] data);
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
H A DDecodeException.java8 public DecodeException(String message, int offset) { argument
10 mOffset = 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/support/v7/recyclerview/src/android/support/v7/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/libstagefright/
H A DXINGSeeker.cpp86 int offset = first_frame_pos; local
87 if (source->readAt(offset, &buffer, 4) < 4) { // get header
90 offset += 4;
105 // determine offset of XING header
107 if (num_channels != 1) offset += 32;
108 else offset += 17;
110 if (num_channels != 1) offset += 17;
111 else offset += 9;
114 int xingbase = offset;
116 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/minikin/libs/minikin/
H A DGraphemeBreak.cpp70 size_t offset) {
77 if (offset <= start || offset >= start + count) {
80 if (U16_IS_TRAIL(buf[offset])) {
82 return !U16_IS_LEAD(buf[offset - 1]);
86 size_t offset_back = offset;
88 U16_NEXT(buf, offset, start + count, c2);
131 // Note that the offset has moved forwared 2 code units by U16_NEXT.
133 return (offset - 2 - offset_back) % 4 == 0;
181 size_t offset, MoveOp
69 isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, size_t offset) argument
180 getTextRunCursor(const uint16_t* buf, size_t start, size_t count, size_t offset, MoveOpt opt) argument
[all...]
H A DAnalyzeStyle.cpp25 static int32_t readU16(const uint8_t* data, size_t offset) { argument
26 return data[offset] << 8 | data[offset + 1];
/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/av/media/img_utils/src/
H A DEndianUtils.cpp48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
50 if((res = mOutput->write(buf, offset, count)) == OK) {
56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { argument
57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count);
61 status_t EndianOutput::write(const _type_* buf, size_t offset, size_t count) { \
62 return writeHelper<_type_>(buf, offset, count); \
72 status_t EndianOutput::write(const float* buf, size_t offset, size_t count) { argument
74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count);
77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { argument
79 return writeHelper<uint64_t>(reinterpret_cast<const uint64_t*>(buf), offset, coun
[all...]
/frameworks/native/opengl/libagl/
H A Dmipmap.cpp62 size_t offset = (y*2) * bs; local
64 uint32_t p00 = src[offset];
65 uint32_t p10 = src[offset+1];
66 uint32_t p01 = src[offset+bs];
67 uint32_t p11 = src[offset+bs+1];
75 offset += 2;
84 size_t offset = (y*2) * bs; local
86 uint32_t p00 = src[offset];
87 uint32_t p10 = src[offset+1];
88 uint32_t p01 = src[offset
104 size_t offset = (y*2) * bs; local
142 size_t offset = (y*2) * bs; local
160 size_t offset = (y*2) * bs; local
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java43 bcdToString(byte[] data, int offset, int length) { argument
46 for (int i = offset ; i < offset + length ; i++) {
67 bchToString(byte[] data, int offset, int length) { argument
70 for (int i = offset ; i < offset + length ; i++) {
87 cdmaBcdToString(byte[] data, int offset, int length) { argument
91 for (int i = offset; count < length; i++) {
186 * remaining seven bits are an offset value added to the
195 adnStringFieldToString(byte[] data, int offset, in argument
358 networkNameToString(byte[] data, int offset, int length) argument
529 getCLUT(byte[] rawData, int offset, int number) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_alg_codebook.cpp118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
127 pos1 = ((index & mask) + offset);
145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
154 /* pos1 = (((index >> N) & mask) + offset); */
155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset)));
158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */
192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
205 j = offset;
219 dec_1p_N1(idx, N, offset, po
229 dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
265 dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]) argument
316 dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]) argument
350 dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]) argument
[all...]
H A Disp_isf.cpp154 int16 i, ind, offset; local
166 offset = (isp[i] & 0x007f); /* offset = b0-b6 of isf[i] */
168 /* isp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 128 */
170 L_tmp = mul_16by16_to_int32(table[ind + 1] - table[ind], offset);
/frameworks/compile/mclinker/lib/Target/X86/
H A DX86PLT.cpp102 uint32_t offset = 0; local
105 frag->setOffset(offset);
106 offset += frag->size();
154 uint32_t* offset = reinterpret_cast<uint32_t*>(data + 2); local
155 *offset = m_GOTPLT.addr() + 4;
156 offset = reinterpret_cast<uint32_t*>(data + 8);
157 *offset = m_GOTPLT.addr() + 8;
196 uint32_t* offset; local
198 offset = reinterpret_cast<uint32_t*>(data + 2);
199 *offset
237 uint32_t* offset = reinterpret_cast<uint32_t*>(data + 2); local
283 uint32_t* offset; local
[all...]
/frameworks/av/drm/common/
H A DDrmConvertedStatus.cpp25 offset(_offset) {

Completed in 1062 milliseconds

1234567891011>>