Searched defs:offset (Results 51 - 75 of 575) sorted by last modified time

1234567891011>>

/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java1041 private static String decodeUtf8(byte[] data, int offset, int numFields) argument
1044 return decodeCharset(data, offset, numFields, 1, "UTF-8");
1047 private static String decodeUtf16(byte[] data, int offset, int numFields) argument
1051 int padding = offset % 2;
1052 numFields -= (offset + padding) / 2;
1053 return decodeCharset(data, offset, numFields, 2, "utf-16be");
1056 private static String decodeCharset(byte[] data, int offset, int numFields, int width, argument
1059 if (numFields < 0 || (numFields * width + offset) > data.length) {
1061 int padding = offset % width;
1062 int maxNumFields = (data.length - offset
1078 decode7bitAscii(byte[] data, int offset, int numFields) argument
1111 decode7bitGsm(byte[] data, int offset, int numFields) argument
1127 decodeLatin(byte[] data, int offset, int numFields) argument
1133 decodeShiftJis(byte[] data, int offset, int numFields) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmServiceStateTracker.java1170 // If the offset is (0, false) and the timezone property
1192 // local time w/ 0 offset.
1198 // For wrong NITZ reporting local time w/ 0 offset,
1308 private TimeZone getNitzTimeZone(int offset, boolean dst, long when) { argument
1309 TimeZone guess = findTimeZone(offset, dst, when);
1312 guess = findTimeZone(offset, !dst, when);
1318 private TimeZone findTimeZone(int offset, boolean dst, long when) { argument
1319 int rawOffset = offset;
1328 if (tz.getOffset(when) == offset &&
1675 * offset a
[all...]
H A DGsmSmsAddress.java35 * @param offset the offset of the Address-Length byte
41 public GsmSmsAddress(byte[] data, int offset, int length) throws ParseException { argument
43 System.arraycopy(data, offset, origBytes, 0, length);
54 offset + OFFSET_TOA);
H A DGsmSmsCbMessage.java199 int offset = SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) * i;
200 int length = pdu[offset + PDU_BODY_PAGE_LENGTH];
207 Pair<String, String> p = unpackBody(pdu, encoding, offset, length,
215 int offset = SmsCbHeader.PDU_HEADER_LENGTH;
216 int length = pdu.length - offset;
218 return unpackBody(pdu, encoding, offset, length, hasLanguageIndicator, language);
228 * @param offset Position of the first byte to unpack
236 private static Pair<String, String> unpackBody(byte[] pdu, int encoding, int offset, int length, argument
242 body = GsmAlphabet.gsm7BitPackedToString(pdu, offset, length * 8 / 7);
246 // The actual body text is offset b
[all...]
H A DSimTlv.java38 public SimTlv(byte[] record, int offset, int length) { argument
41 mTlvOffset = offset;
43 mCurOffset = offset;
/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++) {
68 cdmaBcdToString(byte[] data, int offset, int length) { argument
72 for (int i = offset; count < length; i++) {
167 * remaining seven bits are an offset value added to the
176 adnStringFieldToString(byte[] data, int offset, int length) { argument
181 if (data[offset] == (byte) 0x80) {
186 ret = new String(data, offset + 1, ucslen * 2, "utf-16be");
208 if (length >= 3 && data[offset]
339 networkNameToString(byte[] data, int offset, int length) argument
510 getCLUT(byte[] rawData, int offset, int number) argument
[all...]
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp423 int offset = 12 + ((buffer[0] & 0x0F) << 2); local
425 offset += 4 + (ntohs(*(uint16_t *)&buffer[offset + 2]) << 2);
430 length -= offset;
432 length = mCodec->decode(samples, count, &buffer[offset], length);
887 int offset = sampleCount - toWrite; local
888 memcpy(buffer.i8, &output[offset], buffer.size);
903 int offset = sampleCount - toRead; local
904 memcpy(&input[offset], buffer.i8, buffer.size);
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
H A DBmsgTokenizer.java66 public BmsgTokenizer(String str, int offset) { argument
68 mOffset = offset;
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/
H A DBmsgTokenizer.java66 public BmsgTokenizer(String str, int offset) { argument
68 mOffset = offset;
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java805 * Given a height, returns a Y offset that will draw the text in the middle of the height.
884 * Calculate the offset from bottom of the EditText to top of the provided line.
1618 int offset = putOffsetInRange(x, y);
1619 DrawableRecipientChip currentChip = findChip(offset);
1723 final int offset;
1726 offset = getOffsetForPosition(x, y);
1728 offset = supportGetOffsetForPosition(x, y);
1731 return putOffsetInRange(offset);
1738 int offset = o;
1751 // If the offset i
1764 findText(Editable text, int offset) argument
1771 findChip(int offset) argument
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DYearPickerView.java128 public void postSetSelectionFromTop(final int position, final int offset) { argument
133 setSelectionFromTop(position, offset);
/frameworks/multidex/library/src/android/support/multidex/
H A DZipUtil.java34 long offset; field in class:ZipUtil.CentralDirectory
101 dir.offset = Integer.reverseBytes(raf.readInt()) & 0xFFFFFFFFL;
110 raf.seek(dir.offset);
/frameworks/native/cmds/installd/tests/
H A Dinstalld_utils_test.cpp321 size_t offset = strlen(prefix); local
322 EXPECT_STREQ(pkgname, path + offset)
/frameworks/native/include/media/hardware/
H A DHDCPAPI.h113 // at location "offset" are available in "buffer" (buffer handle). "size"
122 buffer_handle_t buffer, size_t offset, size_t size,
121 encryptNative( buffer_handle_t buffer, size_t offset, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
/frameworks/native/libs/binder/
H A DDebug.cpp169 size_t offset; local
209 for (offset = 0; ; offset += bytesPerLine, pos += bytesPerLine) {
214 sprintf(c, "0x%08x: ", (int)offset);
H A DIMemory.cpp127 virtual sp<IMemoryHeap> getMemory(ssize_t* offset=0, size_t* size=0) const;
137 void* IMemory::fastPointer(const sp<IBinder>& binder, ssize_t offset) const
143 return static_cast<char*>(base) + offset;
147 ssize_t offset; local
148 sp<IMemoryHeap> heap = getMemory(&offset);
152 return static_cast<char*>(base) + offset;
161 ssize_t IMemory::offset() const { function in class:android::IMemory
162 ssize_t offset; local
163 getMemory(&offset);
164 return offset;
178 getMemory(ssize_t* offset, size_t* size) const argument
217 ssize_t offset; local
297 uint32_t offset = reply.readInt32(); local
[all...]
H A DMemoryBase.cpp29 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
H A DMemoryDealer.cpp115 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 DMemoryHeapBase.cpp80 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;
H A DParcel.cpp390 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) argument
405 if ((offset > parcel->mDataSize)
407 || (offset + len > parcel->mDataSize)) {
414 if ((off >= offset) && (off < offset + len)) {
432 memcpy(mData + mDataPos, data + offset, len);
454 size_t off = objects[i] - offset + startPos;
1379 ALOGW("Attempt to read object from Parcel %p at offset %zu that is not in the object list",
1439 binder_size_t offset = mObjects[i]; local
1440 if (offset < minOffse
[all...]
/frameworks/native/libs/gui/tests/
H A DSRGB_test.cpp123 int offset = (y * DISPLAY_WIDTH + x) * PIXEL_SIZE; local
127 textureData[offset + c] = intValue;
129 textureData[offset + 3] = ALPHA_VALUE;
312 int offset = colOffset + c; local
313 bytePointer[offset] = ((c + 1) * 56) - 1;
H A DSurfaceTextureFBO.h64 off_t offset = (y * stride + x) * PIXEL_SIZE; local
65 buf[offset + 0] = r;
66 buf[offset + 1] = g;
67 buf[offset + 2] = b;
68 buf[offset + 3] = a;
/frameworks/native/opengl/libagl/
H A Darray.cpp1429 // offset in that buffer.
1508 void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) argument
1515 if (offset<0 || size<0 || data==0) {
1527 if (offset+size > bo->size) {
1531 memcpy(bo->data + offset, data, size);
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/native/opengl/libs/ETC1/
H A Detc1.cpp188 int offset = ((low >> k) & 1) | ((low >> (k + 15)) & 2); local
189 int delta = table[offset];

Completed in 735 milliseconds

1234567891011>>