/frameworks/base/awt/javax/imageio/stream/ |
H A D | IIOByteBuffer.java | 30 * The IIOByteBuffer class represents a byte array with offset and length that 43 * The offset. 45 private int offset; field in class:IIOByteBuffer 57 * @param offset 58 * the offset in the array. 62 public IIOByteBuffer(byte[] data, int offset, int length) { argument 64 this.offset = offset; 87 * Gets the offset of this IIOByteBuffer. 89 * @return the offset o 121 setOffset(int offset) argument [all...] |
/frameworks/base/awt/java/awt/image/ |
H A D | LookupTable.java | 30 * the number of components and offset value. ByteLookupTable and 39 * The offset. 41 private int offset; field in class:LookupTable 49 * Instantiates a new LookupTable with the specified offset value and number 52 * @param offset 53 * the offset value. 57 protected LookupTable(int offset, int numComponents) { argument 58 if (offset < 0) { 67 this.offset = offset; [all...] |
H A D | ByteLookupTable.java | 29 * offset value. The offset value will be subtracted from the input values 43 * Instantiates a new ByteLookupTable with the specified offset value and 46 * @param offset 47 * the offset value. 51 public ByteLookupTable(int offset, byte[] data) { argument 52 super(offset, 1); 61 * Instantiates a new ByteLookupTable with the specified offset value and 65 * @param offset 66 * the offset valu 70 ByteLookupTable(int offset, byte[][] data) argument [all...] |
H A D | ShortLookupTable.java | 29 * image and an offset value. The offset value will be subtracted from the input 43 * Instantiates a new ShortLookupTable with the specified offset value and 46 * @param offset 47 * the offset value. 51 public ShortLookupTable(int offset, short[] data) { argument 52 super(offset, 1); 59 * Instantiates a new ShortLookupTable with the specified offset value and 63 * @param offset 64 * the offset valu 68 ShortLookupTable(int offset, short[][] data) argument [all...] |
/frameworks/base/libs/binder/ |
H A D | MemoryBase.cpp | 29 ssize_t offset, size_t size) 30 : mSize(size), mOffset(offset), mHeap(heap) 34 sp<IMemoryHeap> MemoryBase::getMemory(ssize_t* offset, size_t* size) const argument 36 if (offset) *offset = mOffset; 28 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
|
/frameworks/base/media/libstagefright/codecs/aacdec/ |
H A D | sbr_decode_envelope.cpp | 110 Int32 offset, 114 Int32 indexLow2High(Int32 offset, 148 Int32 offset = hFrameData->offset; local 164 offset, 175 offset, 185 *iEnvelope += sfb_nrg_prev[ indexLow2High(offset, band, freqRes)]; 189 offset, 203 Int32 offset, 211 if (offset > 200 mapLowResEnergyVal( Int32 currVal, Int32 *prevData, Int32 offset, Int32 index, Int32 res) argument 249 indexLow2High(Int32 offset, Int32 index, Int32 res) argument [all...] |
H A D | calc_gsfb_table.cpp | 115 offset = 0; 119 pFrameInfo->group_len[group_idx] = group[group_idx] - offset; 120 offset = group[group_idx]; 123 WHILE (offset < NUM_SHORT_WINDOWS); 129 offset = 0; 137 offset += pFrameInfo->sfb_width_128[sfb] * len; 138 *pFrameSfbTop++ = offset; 217 Int offset; local 232 offset = 0; 236 pFrameInfo->group_len[ngroups] = group[ngroups] - offset; [all...] |
H A D | getbits.h | 103 UInt offset; local 107 offset = (pInputStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 109 pElem = pInputStream->pBuffer + offset; 113 offset = pInputStream->inputBufferCurrentLength - offset; 115 if (offset > 3) 132 switch (offset) 175 UInt offset; local 179 offset = (pInputStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 181 pElem = pInputStream->pBuffer + offset; 210 UInt offset; local 274 UInt offset; local [all...] |
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
H A D | q_pulse.h | 66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]); 67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]); 68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]); 69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]); 70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]); 71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]); 72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
|
H A D | isp_isf.cpp | 154 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);
|
H A D | dec_alg_codebook.cpp | 118 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...] |
/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_getbits.cpp | 114 uint32 offset; local 127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); 130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); 131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE)); 132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE)); 162 uint32 offset; local 168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); 171 Elem1 = *(ptBitStream->pBuffer + module(offset 198 uint32 offset; local 236 uint32 offset; local [all...] |
H A D | s_mp3bits.h | 94 uint32 offset; member in struct:__anon374
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothInputStream.java | 70 * 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 D | BluetoothOutputStream.java | 61 * 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);
|
/frameworks/base/media/libstagefright/ |
H A D | ESDS.cpp | 66 size_t offset, size_t size, 72 *tag = mData[offset++]; 82 uint8_t x = mData[offset++]; 94 *data_offset = offset; 117 status_t ESDS::parseESDescriptor(size_t offset, size_t size) { argument 122 offset += 2; // skip ES_ID 125 unsigned streamDependenceFlag = mData[offset] & 0x80; 126 unsigned URL_Flag = mData[offset] & 0x40; 127 unsigned OCRstreamFlag = mData[offset] & 0x20; 129 ++offset; 65 skipDescriptorHeader( size_t offset, size_t size, uint8_t *tag, size_t *data_offset, size_t *data_size) const argument 173 parseDecoderConfigDescriptor(size_t offset, size_t size) argument [all...] |
H A D | FileSource.cpp | 28 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument 30 mOffset(offset), 32 CHECK(offset >= 0); 47 ssize_t FileSource::readAt(off_t offset, void *data, size_t size) { argument 51 if (offset >= mLength) { 54 int64_t numAvailable = mLength - offset; 60 int err = fseeko(mFile, offset + mOffset, SEEK_SET); 62 LOGE("seek to %lld failed", offset + mOffset);
|
/frameworks/base/opengl/libagl/ |
H A D | mipmap.cpp | 62 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/base/awt/org/apache/harmony/x/imageio/stream/ |
H A D | RandomAccessMemoryCache.java | 67 public void putData(byte[] buffer, int offset, int count, long pos) { argument 68 if (count > buffer.length - offset || count < 0 || offset < 0) { 84 System.arraycopy(buffer, offset, block, blockOffset, toCopy); 87 offset += toCopy; 100 public int getData(byte[] buffer, int offset, int count, long pos) { argument 101 if (count > buffer.length - offset || count < 0 || offset < 0) { 117 System.arraycopy(block, (int)(pos & BLOCK_MASK), buffer, offset, nbytes); 133 public void readFully(byte[] buffer, int offset, in [all...] |
/frameworks/base/libs/rs/java/Film/res/raw/ |
H A D | filmstrip.c | 71 int offset = (int)floorf(pos * 2.f); local 74 offset = offset + triangleOffsetsCount / 2; 75 if (!((offset < 0) || (offset >= triangleOffsetsCount))) { 76 int start = offset -2; 77 int end = offset + 2;
|
/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 116 // if (Config.LOGD) Log.d(TAG, "clock offset: " + clockOffset + " ms"); 160 * Reads an unsigned 32 bit big endian number from the given offset in the buffer. 162 private long read32(byte[] buffer, int offset) { argument 163 byte b0 = buffer[offset]; 164 byte b1 = buffer[offset+1]; 165 byte b2 = buffer[offset+2]; 166 byte b3 = buffer[offset+3]; 178 * Reads the NTP time stamp at the given offset in the buffer and returns 181 private long readTimeStamp(byte[] buffer, int offset) { argument 182 long seconds = read32(buffer, offset); 191 writeTimeStamp(byte[] buffer, int offset, long time) argument [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | IccUtils.java | 42 bcdToString(byte[] data, int offset, int length) { argument 45 for (int i = offset ; i < offset + length ; i++) { 141 * remaining seven bits are an offset value added to the 150 adnStringFieldToString(byte[] data, int offset, int length) { argument 152 if (data[offset] == (byte) 0x80) { 157 ret = new String(data, offset + 1, ucslen * 2, "utf-16be"); 179 if (length >= 3 && data[offset] == (byte) 0x81) { 180 len = data[offset + 1] & 0xFF; 184 base = (char) ((data[offset 300 networkNameToString(byte[] data, int offset, int length) argument 472 getCLUT(byte[] rawData, int offset, int number) argument [all...] |
/frameworks/base/core/jni/ |
H A D | CursorWindow.cpp | 129 LOG_WINDOW("Allocated row %u, rowSlot is at offset %u, fieldDir is %d bytes at offset %u\n", (mHeader->numRows - 1), ((uint8_t *)rowSlot) - mData, fieldDirSize, fieldDirOffset); 130 rowSlot->offset = fieldDirOffset; 170 uint32_t offset = mFreeOffset + padding; local 172 return offset; 212 LOG_WINDOW("follwing 'pointer' to next chunk, offset of next pointer is %d", chunkPtrOffset); 233 if (rowSlot->offset == 0 || rowSlot->offset >= mSize) { 234 LOGE("Invalid rowSlot, offset = %d", rowSlot->offset); 267 copyIn(uint32_t offset, uint8_t const * data, size_t size) argument 273 copyIn(uint32_t offset, int64_t data) argument 279 copyIn(uint32_t offset, double data) argument 285 copyOut(uint32_t offset, uint8_t * data, size_t size) argument 291 copyOutLong(uint32_t offset) argument 299 copyOutDouble(uint32_t offset) argument 317 int offset = alloc(sizeof(int64_t)); local 341 int offset = alloc(sizeof(int64_t)); local [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES11.java | 170 // C function void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data ) 174 int offset, 184 int offset 199 int offset 218 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset ) 224 int offset 232 int offset 242 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, GLint offset ) 248 int offset 256 int offset 172 glBufferSubData( int target, int offset, int size, java.nio.Buffer data ) argument [all...] |
/frameworks/base/tools/preload/ |
H A D | Record.java | 120 int offset = result.indexOf("\\u"); 121 while (offset >= 0) { 122 String before = result.substring(0, offset); 123 String escaped = result.substring(offset+2, offset+6); 124 String after = result.substring(offset+6); 129 offset = result.indexOf("\\u", offset + 1);
|