Searched defs:offset (Results 1 - 25 of 448) sorted by last modified time

1234567891011>>

/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL_Android.h165 XAAint64 offset; member in struct:XADataLocator_AndroidFD_
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h307 SLAint64 offset; member in struct:SLDataLocator_AndroidFD_
/frameworks/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp30 * Note that if the returned value + offset > size, it means that a partial frame starts at that
31 * offset, but this function will still return the size of the full frame.
33 * @param offset offset in bytes relative to data of where the frame is supposed to start
35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given
38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument
41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) {
47 const uint8_t *syncword = data + offset;
53 const uint8_t protectionAbsent = data[offset+1] & 0x1;
55 const uint8_t* header = data + offset
85 off64_t offset = 0; local
[all...]
H A DAudioPlayer_to_android.cpp1534 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local
1537 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ?
1538 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
1576 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local
1579 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ?
1580 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
H A DBufferQueueSource.cpp57 ssize_t BufferQueueSource::readAt(off64_t offset, void *data, size_t size) { argument
58 SL_LOGD("BufferQueueSource::readAt(offset=%lld, data=%p, size=%d)", offset, data, size);
96 //assert(mStreamToBqOffset <= offset);
97 CHECK_LE(mStreamToBqOffset, offset);
99 if (offset + size <= mStreamToBqOffset + oldFront->mDataSize) {
100 pSrc = ((char*)oldFront->mDataBuffer) + (offset - mStreamToBqOffset);
102 if (offset - mStreamToBqOffset + size == oldFront->mDataSize) {
H A DMediaPlayer_to_android.cpp436 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset; local
439 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ?
440 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
H A Dandroid_AudioToCbRenderer.cpp65 size_t offset = 0; local
66 while (offset < full) {
69 + offset + mDecodeBuffer->range_offset(),
70 mDecodeBuffer->range_length() - offset,
72 offset += consumed;
73 //SL_LOGV("consumed=%u, offset=%u, full=%u", consumed, offset, full);
H A Dandroid_GenericPlayer.cpp100 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) { argument
101 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
102 offset, length, closeAfterUse ? "true" : "false");
114 if (offset >= sb.st_size) {
115 SL_LOGE("SfPlayer::setDataSource: invalid offset");
118 mDataLocator.fdi.offset = offset;
122 } else if (offset + length > sb.st_size) {
123 mDataLocator.fdi.length = sb.st_size - offset;
H A Dandroid_defs.h194 int64_t offset; member in struct:android::FdInfo
/frameworks/wilhelm/src/android/util/
H A DAacAdtsExtractor.cpp48 static size_t getFrameSize(const sp<DataSource> &source, off64_t offset) { argument
55 ssize_t readSize = source->readAt(offset, &syncHeader, ADTS_HEADER_SIZE_UP_TO_FRAMESIZE);
133 off64_t offset = 0, numFrames = 0; local
134 while (offset < streamSize) {
136 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) {
140 SL_LOGE("AacAdtsExtractor() failed querying framesize at offset=%lld", offset);
144 offset += frameSize;
145 if (offset > streamSize) {
146 SL_LOGE("AacAdtsExtractor() frame of size %zu at offset
[all...]
/frameworks/wilhelm/src/itf/
H A DIDynamicInterfaceManagement.c54 size_t offset = x->mOffset; local
55 void *thisItf = (char *) thisObject + offset;
162 size_t offset = x->mOffset; local
163 void *thisItf = (char *) thisObject + offset;
231 size_t offset = x->mOffset; local
232 void *thisItf = (char *) thisObject + offset;
310 size_t offset = x->mOffset; local
311 void *thisItf = (char *) thisObject + offset;
410 size_t offset = x->mOffset; local
411 void *thisItf = (char *) thiz + offset;
[all...]
H A DIObject.c587 size_t offset = x->mOffset; local
588 void *thisItf = (char *) thiz + offset;
/frameworks/wilhelm/tests/examples/
H A DslesTestEqFdPath.cpp52 , SLAint64 offset, SLAint64 size
130 locatorFd.offset = offset;
286 fprintf(stdout, "starting at the specified offset, and using the specified length.\n");
50 TestEQPathFromFD( SLObjectItf sl, const char* path , SLAint64 offset, SLAint64 size , bool alwaysOn ) argument
H A DslesTestEqOutputPath.cpp52 , SLAint64 offset, SLAint64 size
137 locatorFd.offset = offset;
290 fprintf(stdout, "starting at the specified offset, and using the specified length.\n");
50 TestEQPathFromFD( SLObjectItf sl, const char* path , SLAint64 offset, SLAint64 size , bool alwaysOn ) argument
H A DslesTestPlayFdPath.cpp50 void TestPlayPathFromFD( SLObjectItf sl, const char* path, SLAint64 offset, SLAint64 size) argument
118 locatorFd.offset = offset;
199 fprintf(stdout, "starting at the specified offset, and using the specified length.\n");
/frameworks/opt/mailcommon/java/com/android/mailcommon/
H A DMergedAdapter.java52 public LocalAdapterPosition(T adapter, int offset) { argument
54 mLocalPosition = offset;
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java30 int offset = 0;
34 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) {
35 int marker = jpeg[offset] & 0xFF;
41 offset++;
53 length = pack(jpeg, offset, 2, false);
54 if (length < 2 || offset + length > jpeg.length) {
61 pack(jpeg, offset + 2, 4, false) == 0x45786966 &&
62 pack(jpeg, offset + 6, 2, false) == 0) {
63 offset
122 pack(byte[] bytes, int offset, int length, boolean littleEndian) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIccUtils.java45 bcdToString(byte[] data, int offset, int length) { argument
48 for (int i = offset ; i < offset + length ; i++) {
70 cdmaBcdToString(byte[] data, int offset, int length) { argument
74 for (int i = offset; count < length; i++) {
169 * remaining seven bits are an offset value added to the
178 adnStringFieldToString(byte[] data, int offset, int length) { argument
183 if (data[offset] == (byte) 0x80) {
188 ret = new String(data, offset + 1, ucslen * 2, "utf-16be");
210 if (length >= 3 && data[offset]
341 networkNameToString(byte[] data, int offset, int length) argument
512 getCLUT(byte[] rawData, int offset, int number) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaServiceStateTracker.java872 // If the offset is (0, false) and the time zone property
1084 private TimeZone getNitzTimeZone(int offset, boolean dst, long when) { argument
1085 TimeZone guess = findTimeZone(offset, dst, when);
1088 guess = findTimeZone(offset, !dst, when);
1094 private TimeZone findTimeZone(int offset, boolean dst, long when) { argument
1095 int rawOffset = offset;
1104 if (tz.getOffset(when) == offset &&
1263 * offset as well (which we won't worry about until later) */
1297 // The zone offset received from NITZ is for current local time,
1302 // We could unapply it if we wanted the raw offset
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java992 private static String decodeUtf8(byte[] data, int offset, int numFields) argument
995 return decodeCharset(data, offset, numFields, 1, "UTF-8");
998 private static String decodeUtf16(byte[] data, int offset, int numFields) argument
1002 int padding = offset % 2;
1003 numFields -= (offset + padding) / 2;
1004 return decodeCharset(data, offset, numFields, 2, "utf-16be");
1007 private static String decodeCharset(byte[] data, int offset, int numFields, int width, argument
1010 if (numFields < 0 || (numFields * width + offset) > data.length) {
1012 int padding = offset % width;
1013 int maxNumFields = (data.length - offset
1029 decode7bitAscii(byte[] data, int offset, int numFields) argument
1062 decode7bitGsm(byte[] data, int offset, int numFields) argument
1078 decodeLatin(byte[] data, int offset, int numFields) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmServiceStateTracker.java952 // If the offset is (0, false) and the timezone property
968 // local time w/ 0 offset.
974 // For wrong NITZ reporting local time w/ 0 offset,
1079 private TimeZone getNitzTimeZone(int offset, boolean dst, long when) { argument
1080 TimeZone guess = findTimeZone(offset, dst, when);
1083 guess = findTimeZone(offset, !dst, when);
1089 private TimeZone findTimeZone(int offset, boolean dst, long when) { argument
1090 int rawOffset = offset;
1099 if (tz.getOffset(when) == offset &&
1289 private static int twoDigitsAt(String s, int offset) { argument
[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 this.tlvOffset = offset;
43 curOffset = offset;
/frameworks/rs/driver/
H A DrsdBcc.cpp400 uint32_t offset = mtls->fep.dimY * mtls->fep.dimZ * p.ar[0] + local
402 p.out = mtls->fep.ptrOut + (mtls->fep.yStrideOut * offset) +
404 p.in = mtls->fep.ptrIn + (mtls->fep.yStrideIn * offset) +

Completed in 3816 milliseconds

1234567891011>>