/frameworks/av/media/libstagefright/wifi-display/ |
H A D | VideoFormats.cpp | 386 size_t offset = 0; local 392 offset += 6; // skip native and preferred-display-mode-supported 393 CHECK_LE(offset + 58, size); 394 while (offset < size) { 395 parseH264Codec(spec + offset); 396 offset += 60; // skip H.264-codec + ", "
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Converter.cpp | 530 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); 576 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); 686 size_t offset; local 692 &bufferIndex, &offset, &size, &timeUs, &flags); 752 memcpy(buffer->data(), outbuf->base() + offset, size);
|
H A D | TSPacketizer.cpp | 184 size_t offset = 0; local 188 memcpy(dup->data() + offset, csd->data(), csd->size()); 189 offset += csd->size(); 192 memcpy(dup->data() + offset, accessUnit->data(), accessUnit->size()); 955 size_t offset = copy; local 956 while (offset < accessUnit->size()) { 970 size_t copy = accessUnit->size() - offset; 999 memcpy(ptr, accessUnit->data() + offset, copy); 1003 offset += copy;
|
/frameworks/av/media/mtp/ |
H A D | MtpDataPacket.cpp | 62 int offset = mOffset; local 63 value = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8); 71 int offset = mOffset; local 72 value = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) | 73 ((uint32_t)mBuffer[offset + 2] << 16) | ((uint32_t)mBuffer[offset + 3] << 24); 81 int offset = mOffset; local 82 value = (uint64_t)mBuffer[offset] | ((uint64_ [all...] |
H A D | MtpDevice.cpp | 719 uint32_t offset = 0; local 727 if (!callback(initialData, offset, initialDataLength, clientData)) { 731 offset += initialDataLength; 743 while (offset < length) { 758 const uint32_t nextOffset = offset + writeLength; 773 if (!callback(writeBuffer, offset, writeLength, clientData)) { 778 offset = nextOffset; 789 uint32_t offset, 798 mRequest.setParameter(2, offset); 811 uint64_t offset, 788 readPartialObject(MtpObjectHandle handle, uint32_t offset, uint32_t size, uint32_t *writtenSize, ReadObjectCallback callback, void* clientData) argument 810 readPartialObject64(MtpObjectHandle handle, uint64_t offset, uint32_t size, uint32_t *writtenSize, ReadObjectCallback callback, void* clientData) argument [all...] |
H A D | MtpPacket.cpp | 94 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...] |
H A D | MtpServer.cpp | 784 mfr.offset = 0; 828 uint64_t offset; local 830 offset = mRequest.getParameter(2); 836 // android extension with 64 bit offset 838 offset = offset | (offset2 << 32); 854 if (offset + length > (uint64_t)fileLength) 855 length = fileLength - offset; 863 mfr.offset = offset; 1186 uint64_t offset = mRequest.getParameter(2); local 1265 uint64_t offset = mRequest.getParameter(2); local [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkMediaCodec.cpp | 307 size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags) { 310 status_t ret = mData->mCodec->queueInputBuffer(idx, offset, size, time, flags, &errorMsg); 318 size_t offset; local 322 status_t ret = mData->mCodec->dequeueOutputBuffer(&idx, &offset, &size, &presentationTimeUs, 327 info->offset = offset; 398 off_t offset, 415 offset, 306 AMediaCodec_queueInputBuffer(AMediaCodec *mData, size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags) argument 395 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument
|
H A D | NdkMediaExtractor.cpp | 74 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, argument 76 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 77 return translate_error(mData->mImpl->setDataSource(fd, offset, length));
|
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerSinc.cpp | 417 const size_t offset = c.halfNumCoefs; local 418 indexP *= offset; 419 indexN *= offset; 426 size_t count = offset; 432 interpolate<CHANNELS>(l, r, coefsP++, offset, lerpP, sP); 434 interpolate<CHANNELS>(l, r, coefsN++, offset, lerpN, sN); 442 int32_t const* coefsP1 = coefsP + offset; 443 int32_t const* coefsN1 = coefsN + offset; 510 int32_t const* coefsP1 = coefsP + offset; 511 int32_t const* coefsN1 = coefsN + offset; 596 interpolate( int32_t& l, int32_t& r, const int32_t* coefs, size_t offset, int32_t lerp, const int16_t* samples) argument [all...] |
H A D | Threads.cpp | 227 // Track the CLOCK_BOOTTIME versus CLOCK_MONOTONIC timebase offset 256 // retrieves the boottime timebase offset from monotonic. 264 // Adjusts the timebase offset between TIMEBASE_MONOTONIC 271 // We do an empirical measurement of the offset rather than parsing 273 static void adjustTimebaseOffset(int64_t *offset, ExtendedTimestamp::Timebase timebase) { argument 283 // try three times to get the clock offset, choose the one 304 if (llabs(*offset - measured) > toleranceNs) { 305 ALOGV("Adjusting timebase offset old: %lld new: %lld", 306 (long long)*offset, (long long)measured); 307 *offset 2542 const size_t offset = mCurrentWriteLength - mBytesRemaining; local [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.cpp | 864 ssize_t offset; local 866 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); 895 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata); 921 ssize_t offset; local 923 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); 993 const sp<IMemoryHeap>& heap, size_t offset, size_t size, 1029 memcpy(previewBufferBase, (uint8_t *) heapBase + offset, size); 991 copyFrameAndPostCopiedFrame( int32_t msgType, const sp<hardware::ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size, camera_frame_metadata_t *metadata) argument
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | CallbackProcessor.cpp | 404 ssize_t offset; local 407 mCallbackHeap->mBuffers[heapIdx]->getMemory(&offset, 409 uint8_t *data = (uint8_t*)heap->getBase() + offset;
|
H A D | JpegProcessor.cpp | 374 size_t offset = size - MARKER_LENGTH; local 375 uint8_t *end = jpegBuffer + offset; 399 ALOGV("JPEG stream found beginning at offset %zu", size); 403 ALOGE("Got premature End before JPEG data, offset %zu", size);
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 364 ssize_t offset; local 366 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); 367 void *data = ((uint8_t *)heap->base()) + offset;
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 353 GLint offset = (1 - (t - floorf(t))) * mAndroid[1].w; local 354 GLint x = xc - offset;
|
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | GestureDescription.java | 98 * offset 99 * @param offset the minimum start time 100 * @return The next key time that is at least the offset or -1 if one can't be found 102 private long getNextKeyPointAtLeast(long offset) { argument 106 if ((thisStartTime < nextKeyPoint) && (thisStartTime >= offset)) { 110 if ((thisEndTime < nextKeyPoint) && (thisEndTime >= offset)) {
|
/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 970 * Return the current vertical offset of the action bar. 972 * <p>The action bar's current hide offset is the distance that the action bar is currently 976 * @return The action bar's offset toward its fully hidden state in pixels 983 * Set the current hide offset of the action bar. 985 * <p>The action bar's current hide offset is the distance that the action bar is currently 989 * @param offset The action bar's offset toward its fully hidden state in pixels. 991 public void setHideOffset(int offset) { argument 992 if (offset != 0) { 993 throw new UnsupportedOperationException("Setting an explicit action bar hide offset " [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInput.java | 156 * @param offset Offset within the 'data' array at which the data will be placed 163 public int readEntityData(byte[] data, int offset, int size) throws IOException { argument 165 int result = readEntityData_native(mBackupReader, data, offset, size); 196 private native int readEntityData_native(long mBackupReader, byte[] data, int offset, int size); argument
|
H A D | BackupDataInputStream.java | 69 * {@code offset} within the array. 72 * @param offset The data will be stored in {@code b} beginning at this index 80 public int read(byte[] b, int offset, int size) throws IOException { argument 81 return mData.readEntityData(b, offset, size);
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothGattCharacteristic.java | 495 * 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...] |
H A D | BluetoothGattServer.java | 133 int offset, boolean isLong, int srvcType, int srvcInstId, 148 mCallback.onCharacteristicReadRequest(device, transId, offset, characteristic); 159 int offset, boolean isLong, int srvcType, int srvcInstId, 180 mCallback.onDescriptorReadRequest(device, transId, offset, descriptor); 191 int offset, int length, boolean isPrep, boolean needRsp, 208 isPrep, needRsp, offset, value); 220 int offset, int length, boolean isPrep, boolean needRsp, 244 isPrep, needRsp, offset, value); 489 * @param offset Value offset fo 492 sendResponse(BluetoothDevice device, int requestId, int status, int offset, byte[] value) argument [all...] |
H A D | BluetoothGattServerCallback.java | 57 * @param offset Offset into the value of the characteristic 61 int offset, BluetoothGattCharacteristic characteristic) { 76 * @param offset The offset given for the value 82 int offset, byte[] value) { 93 * @param offset Offset into the value of the characteristic 97 int offset, BluetoothGattDescriptor descriptor) { 112 * @param offset The offset given for the value 118 int offset, byt 60 onCharacteristicReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic) argument 79 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument 96 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument 115 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument [all...] |
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);
|