/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 | 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 | 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/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/speech/tts/ |
H A D | FileSynthesisCallback.java | 153 public int audioAvailable(byte[] buffer, int offset, int length) { argument 155 Log.d(TAG, "FileSynthesisRequest.audioAvailable(" + buffer + "," + offset 181 System.arraycopy(buffer, offset, bufferCopy, 0, length); 185 fileChannel.write(ByteBuffer.wrap(buffer, offset, length));
|
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 | 88 // Returns the offset of the replacement span edge if the offset is inside of the replacement 89 // span. Otherwise, does nothing and returns the input offset value. 90 private static int adjustReplacementSpan(CharSequence text, int offset, boolean moveToStart) { argument 92 return offset; 95 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, ReplacementSpan.class); 100 if (start < offset && end > offset) { 101 offset 108 getOffsetForBackspaceKey(CharSequence text, int offset) argument 282 getOffsetForForwardDeleteKey(CharSequence text, int offset, Paint paint) argument [all...] |
H A D | WordIterator.java | 71 public int preceding(int offset) { argument 72 int shiftedOffset = offset - mOffsetShift; 85 public int following(int offset) { argument 86 int shiftedOffset = offset - mOffsetShift; 99 public boolean isBoundary(int offset) { argument 100 int shiftedOffset = offset - mOffsetShift; 106 * Returns the position of next boundary after the given offset. Returns 107 * {@code DONE} if there is no boundary after the given offset. 109 * @param offset the given start position to search from. 110 * @return the position of the last boundary preceding the given offset 112 nextBoundary(int offset) argument 128 prevBoundary(int offset) argument 149 getBeginning(int offset) argument 168 getEnd(int offset) argument 188 getPrevWordBeginningOnTwoWordsBoundary(int offset) argument 206 getNextWordEndOnTwoWordBoundary(int offset) argument 226 getBeginning(int offset, boolean getPrevWordBeginningOnTwoWordsBoundary) argument 262 getEnd(int offset, boolean getNextWordEndOnTwoWordBoundary) argument 288 getPunctuationBeginning(int offset) argument 303 getPunctuationEnd(int offset) argument 318 isAfterPunctuation(int offset) argument 334 isOnPunctuation(int offset) argument 343 isPunctuationStartBoundary(int offset) argument 347 isPunctuationEndBoundary(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 | 95 public int[] following(int offset) { argument 100 if (offset >= textLegth) { 103 int start = offset; 121 public int[] preceding(int offset) { argument 126 if (offset <= 0) { 129 int end = offset; 185 public int[] following(int offset) { argument 190 if (offset >= mText.length()) { 193 int start = offset; 211 public int[] preceding(int offset) { argument 266 following(int offset) argument 293 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/jni/android/graphics/ |
H A D | Movie.cpp | 116 jint offset, jint length) { 121 if ((offset | length) < 0 || offset + length > totalLength) { 127 SkMovie* moov = SkMovie::DecodeMemory(ar.ptr() + offset, length); 114 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, jint offset, jint length) argument
|
/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 | 51 public int offset; field in class:TimeTest.DateTest 61 int offset, int year2, int month2, int day2, int hour2, int minute2, 69 this.offset = offset; 79 int offset, int year2, int month2, int day2, int hour2, int minute2) { 86 this.offset = offset; 98 // The "offset" field in "dayTests" represents days. 130 // The "offset" field in "minuteTests" represents minutes. 188 local.monthDay += test.offset; 60 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 78 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); 265 byte[] data, int offset, int length, boolean isShareable); 60 newInstance(byte[] data, int offset, int length, boolean isShareable) argument 264 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 | 276 public void offset(int dx, int dy) { method in class:Outline 278 mRect.offset(dx, dy); 280 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);
|
/frameworks/base/libs/common_time/ |
H A D | common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 44 *((type*)(data + offset)) = converter(field_name); \ 45 offset += sizeof(field_name); \ 53 if ((offset + sizeof(field_name)) > length) \ 55 field_name = converter(*((type*)(data + offset))); \ 56 offset += sizeof(field_name); \ 80 ssize_t offset = 0; local 87 return offset; 92 ssize_t offset = 0; local 100 return offset; 186 ssize_t offset = serializeHeader(data, length); local 196 ssize_t offset = deserializeHeader(data, length); local 208 ssize_t offset = serializeHeader(data, length); local 218 ssize_t offset = deserializeHeader(data, length); local 230 ssize_t offset = serializeHeader(data, length); local 239 ssize_t offset = deserializeHeader(data, length); local 248 ssize_t offset = serializeHeader(data, length); local 260 ssize_t offset = deserializeHeader(data, length); local 272 ssize_t offset = serializeHeader(data, length); local 282 ssize_t offset = deserializeHeader(data, length); local [all...] |
/frameworks/base/libs/hwui/ |
H A D | Program.cpp | 154 const mat4& transformMatrix, bool offset) { 155 if (projectionMatrix != mProjection || offset != mOffset) { 156 if (CC_LIKELY(!offset)) { 160 // offset screenspace xy by an amount that compensates for typical precision 163 // This offset value is based on an assumption that some hardware may use as 164 // little as 12.4 precision, so we offset by slightly more than 1/16. 169 mOffset = offset; 153 set(const mat4& projectionMatrix, const mat4& modelViewMatrix, const mat4& transformMatrix, bool offset) argument
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | hid.c | 52 int id, ret, offset; local 94 for (offset = 0; offset < desc_length; ) { 95 int count = desc_length - offset; 98 fprintf(stderr, "sending ACCESSORY_SET_HID_REPORT_DESC offset: %d count: %d desc_length: %d\n", 99 offset, count, desc_length); 101 ACCESSORY_SET_HID_REPORT_DESC, id, offset, &desc.value[offset], count, 1000); 103 offset += count;
|
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiInputPort.java | 76 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { argument 77 if (offset < 0 || count < 0 || offset + count > msg.length) { 78 throw new IllegalArgumentException("offset or count out of range"); 88 int length = MidiPortImpl.packData(msg, offset, count, timestamp, mBuffer);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaHTTPConnection.cpp | 135 JNIEnv *env, jobject thiz, jlong offset, jint size) { 144 thiz, gFields.readAtMethodID, offset, byteArrayObj, size); 134 android_media_MediaHTTPConnection_native_readAt( JNIEnv *env, jobject thiz, jlong offset, jint size) argument
|