/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_framedecoder.cpp | 271 * offset in bytes from the first byte of the sync word 562 pMainData->pBuffer[module(pMainData->offset++, BUFSIZE)] = (uint8)val; 571 int32 offset = (pVars->inputStream.usedBits) >> INBUF_ARRAY_INDEX_SHIFT; local 576 if ((offset + temp) < BUFSIZE) 578 uint8 * ptr = pVars->inputStream.pBuffer + offset; 580 offset = pVars->mainDataStream.offset; 585 if ((offset + temp) < BUFSIZE) 587 pv_memcpy((pVars->mainDataStream.pBuffer + offset), ptr, temp*sizeof(uint8)); 588 pVars->mainDataStream.offset [all...] |
/frameworks/av/media/libstagefright/http/ |
H A D | MediaHTTP.cpp | 47 off64_t /* offset */) { 93 ssize_t MediaHTTP::readAt(off64_t offset, void *data, size_t size) { argument 111 offset + numBytesRead, (uint8_t *)data + numBytesRead, copy); 151 status_t MediaHTTP::reconnectAtOffset(off64_t offset) { argument 152 return connect(mLastURI.c_str(), &mLastHeaders, offset);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AAMRAssembler.cpp | 151 size_t offset = 1; local 154 if (offset >= buffer->size()) { 163 uint8_t toc = buffer->data()[offset++]; 195 if (offset + frameSize - 1 > buffer->size()) { 206 buffer->data() + offset, frameSize - 1); 208 offset += frameSize - 1;
|
H A D | AAVCAssembler.cpp | 292 size_t offset = 1; local 302 memcpy(unit->data() + offset, buffer->data() + 2, buffer->size() - 2); 303 offset += buffer->size() - 2; 329 size_t offset = 0; local 332 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4); 333 offset += 4; 336 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); 337 offset += nal->size();
|
/frameworks/av/media/mtp/ |
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...] |
/frameworks/base/core/java/android/bluetooth/ |
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...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | RggbChannelVector.java | 137 * {@code offset} 138 * @param offset 139 * a non-negative offset into the array 145 * offset. 147 public void copyTo(final float[] destination, final int offset) { argument 149 if (destination.length - offset < COUNT) { 153 destination[offset + RED] = mRed; 154 destination[offset + GREEN_EVEN] = mGreenEven; 155 destination[offset + GREEN_ODD] = mGreenOdd; 156 destination[offset [all...] |
/frameworks/base/core/java/android/os/ |
H A D | HwBlob.java | 37 public native final boolean getBool(long offset); argument 38 public native final byte getInt8(long offset); argument 39 public native final short getInt16(long offset); argument 40 public native final int getInt32(long offset); argument 41 public native final long getInt64(long offset); argument 42 public native final float getFloat(long offset); argument 43 public native final double getDouble(long offset); argument 44 public native final String getString(long offset); argument 46 public native final void putBool(long offset, boolean x); argument 47 public native final void putInt8(long offset, byt argument 48 putInt16(long offset, short x) argument 49 putInt32(long offset, int x) argument 50 putInt64(long offset, long x) argument 51 putFloat(long offset, float x) argument 52 putDouble(long offset, double x) argument 53 putString(long offset, String x) argument 55 putBlob(long offset, HwBlob blob) argument [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | PlaybackSynthesisCallback.java | 168 public int audioAvailable(byte[] buffer, int offset, int length) { argument 169 if (DBG) Log.d(TAG, "audioAvailable(byte[" + buffer.length + "]," + offset + "," + length 195 System.arraycopy(buffer, offset, bufferCopy, 0, length);
|
/frameworks/base/core/java/android/text/method/ |
H A D | BaseKeyListener.java | 91 // Returns the offset of the replacement span edge if the offset is inside of the replacement 92 // span. Otherwise, does nothing and returns the input offset value. 93 private static int adjustReplacementSpan(CharSequence text, int offset, boolean moveToStart) { argument 95 return offset; 98 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, ReplacementSpan.class); 103 if (start < offset && end > offset) { 104 offset 111 getOffsetForBackspaceKey(CharSequence text, int offset) argument 306 getOffsetForForwardDeleteKey(CharSequence text, int offset, Paint paint) argument [all...] |
H A D | WordIterator.java | 71 public int preceding(int offset) { argument 72 checkOffsetIsValid(offset); 74 offset = mIterator.preceding(offset); 75 if (offset == BreakIterator.DONE || isOnLetterOrDigit(offset)) { 76 return offset; 82 public int following(int offset) { argument 83 checkOffsetIsValid(offset); 85 offset 93 isBoundary(int offset) argument 105 nextBoundary(int offset) argument 117 prevBoundary(int offset) argument 134 getBeginning(int offset) argument 153 getEnd(int offset) argument 173 getPrevWordBeginningOnTwoWordsBoundary(int offset) argument 191 getNextWordEndOnTwoWordBoundary(int offset) argument 211 getBeginning(int offset, boolean getPrevWordBeginningOnTwoWordsBoundary) argument 246 getEnd(int offset, boolean getNextWordEndOnTwoWordBoundary) argument 271 getPunctuationBeginning(int offset) argument 287 getPunctuationEnd(int offset) argument 303 isAfterPunctuation(int offset) argument 318 isOnPunctuation(int offset) argument 347 isPunctuationStartBoundary(int offset) argument 351 isPunctuationEndBoundary(int offset) argument 366 isAfterLetterOrDigit(int offset) argument 374 isOnLetterOrDigit(int offset) argument 382 checkOffsetIsValid(int offset) argument [all...] |
/frameworks/base/core/java/android/util/apk/ |
H A D | ZipUtils.java | 49 * @return contents of the ZIP End of Central Directory record and the record's offset in the 72 // the EoCD record offset is known in advance. Try that offset first to avoid unnecessarily 92 * @return contents of the ZIP End of Central Directory record and the record's offset in the 183 * @param zipEndOfCentralDirectoryPosition offset of the ZIP End of Central Directory record 205 * Returns the offset of the start of the ZIP Central Directory in the archive. 217 * Sets the offset of the start of the ZIP Central Directory in the archive. 222 ByteBuffer zipEndOfCentralDirectory, long offset) { 227 offset); 248 private static int getUnsignedInt16(ByteBuffer buffer, int offset) { argument 221 setZipEocdCentralDirectoryOffset( ByteBuffer zipEndOfCentralDirectory, long offset) argument 252 getUnsignedInt32(ByteBuffer buffer, int offset) argument 256 setUnsignedInt32(ByteBuffer buffer, int offset, long value) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityIterators.java | 94 public int[] following(int offset) { argument 99 if (offset >= textLegth) { 102 int start = offset; 120 public int[] preceding(int offset) { argument 125 if (offset <= 0) { 128 int end = offset; 179 public int[] following(int offset) { argument 184 if (offset >= mText.length()) { 187 int start = offset; 205 public int[] preceding(int offset) { argument 260 following(int offset) argument 287 preceding(int offset) argument [all...] |
/frameworks/base/core/java/com/android/internal/midi/ |
H A D | MidiConstants.java | 84 * @param offset 88 public static boolean isAllActiveSensing(byte[] msg, int offset, argument 93 byte b = msg[offset + i];
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | IndentingPrintWriter.java | 101 public void write(char[] buf, int offset, int count) { argument 103 final int bufferEnd = offset + count; 104 int lineStart = offset; 105 int lineEnd = offset;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | OrientationHelper.java | 189 * @param view View to offset 190 * @param offset offset amount 192 public abstract void offsetChild(View view, int offset); argument 321 public void offsetChild(View view, int offset) { 322 view.offsetLeftAndRight(offset); 419 public void offsetChild(View view, int offset) { 420 view.offsetTopAndBottom(offset);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Movie.cpp | 116 jint offset, jint length) { 121 if ((offset | length) < 0 || offset + length > totalLength) { 127 Movie* moov = Movie::DecodeMemory(ar.ptr() + offset, length); 114 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, jint offset, jint length) argument
|
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbRequest.cpp | 170 android_hardware_UsbRequest_queue(JNIEnv *env, jobject thiz, jobject buffer, jint offset, argument 183 request->buffer = (void *)((char *)env->GetDirectBufferAddress(buffer) + offset);
|
H A D | com_android_internal_os_FuseAppLoop.cpp | 84 void OnRead(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size) override { 90 CallOnCommand(FUSE_READ, unique, inode, offset, size, it->second->get()); 93 void OnWrite(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size, 105 CallOnCommand(FUSE_WRITE, unique, inode, offset, size, javaBuffer); 110 void CallOnCommand(jint command, jlong unique, jlong inode, jlong offset, jint size, argument 112 mEnv->CallVoidMethod(mSelf, gOnCommandMethod, command, unique, inode, offset, size, bytes);
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | LimitedLengthInputStreamTest.java | 74 fail("Should fail when offset + length is > Long.MAX_VALUE"); 80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) argument 86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 131 private void checkReadBytes_WithString1(int offset, int length) throws Exception { argument 136 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 167 private void checkSingleByteRead_WithString1(int offset, int length) throws Exception { argument 168 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 171 assertEquals(TEST_STRING1[offset [all...] |
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | TimeTest.java | 58 public int offset; field in class:TimeTest.DateTest 68 int offset, int year2, int month2, int day2, int hour2, int minute2, 76 this.offset = offset; 86 int offset, int year2, int month2, int day2, int hour2, int minute2) { 93 this.offset = offset; 105 // The "offset" field in "dayTests" represents days. 137 // The "offset" field in "minuteTests" represents minutes. 195 local.monthDay += test.offset; 67 DateTest(int year1, int month1, int day1, int hour1, int minute1, int dst1, int offset, int year2, int month2, int day2, int hour2, int minute2, int dst2) argument 85 DateTest(int year1, int month1, int day1, int hour1, int minute1, int offset, int year2, int month2, int day2, int hour2, int minute2) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 47 * @param offset offset into data for where the decoder should begin 49 * @param length the number of bytes, beginning at offset, to parse 61 int offset, int length, boolean isShareable) throws IOException { 62 if ((offset | length) < 0 || data.length < offset + length) { 65 return nativeNewInstance(data, offset, length, isShareable); 271 byte[] data, int offset, int length, boolean isShareable); 60 newInstance(byte[] data, int offset, int length, boolean isShareable) argument 270 nativeNewInstance( byte[] data, int offset, int length, boolean isShareable) argument
|
H A D | Movie.java | 65 public static native Movie decodeByteArray(byte[] data, int offset, argument
|
H A D | Outline.java | 300 public void offset(int dx, int dy) { method in class:Outline 302 mRect.offset(dx, dy); 304 mPath.offset(dx, dy);
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreHmacSpi.java | 208 protected void engineUpdate(byte[] input, int offset, int len) { argument 217 output = mChunkedStreamer.update(input, offset, len);
|