/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 67 AString::AString(const AString &from, size_t offset, size_t n) argument 71 setTo(from, offset, n); 107 void AString::setTo(const AString &from, size_t offset, size_t n) { argument 111 setTo(from.mData + offset, n); 195 void AString::append(const AString &from, size_t offset, size_t n) { argument 196 append(from.c_str() + offset, n);
|
H A D | ParsedMessage.cpp | 92 size_t offset = 0; local 94 while (offset < size) { 95 size_t lineEndOffset = offset; 106 AString line(&data[offset], lineEndOffset - offset); 108 if (offset == 0) { 112 offset = lineEndOffset + 2; 117 if (lineEndOffset == offset) { 120 offset += 2; 135 offset 185 size_t offset = 0; local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4ElementaryAssembler.cpp | 335 size_t offset = 2 + (AU_headers_length + 7) / 8; local 338 ABitReader bits(buffer->data() + offset, buffer->size() - offset); 342 offset += (mAuxiliaryDataSizeLength + auxSize + 7) / 8; 349 if (buffer->size() < offset + header.mSize) { 354 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize); 356 offset += header.mSize; 362 if (offset != buffer->size()) { 363 ALOGW("potentially malformed packet (offset %zu, size %zu)", 364 offset, buffe [all...] |
/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/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/base/core/java/android/bluetooth/ |
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...] |
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 33 * offset and length of that entry's data in the file. 106 * Returns the byte offset where this asset entry's data starts. 225 public int read(byte[] buffer, int offset, int count) throws IOException { argument 229 int res = super.read(buffer, offset, count); 234 return super.read(buffer, offset, count); 300 public void write(byte[] buffer, int offset, int count) throws IOException { argument 304 super.write(buffer, offset, count); 309 super.write(buffer, offset, count);
|
H A D | StringBlock.java | 54 public StringBlock(byte[] data, int offset, int size, boolean useSparse) { argument 55 mNative = nativeCreate(data, offset, size); 490 int offset, 489 nativeCreate(byte[] data, int offset, int size) argument
|
/frameworks/base/core/java/android/database/ |
H A D | Cursor.java | 85 * @param offset the offset to be applied from the current position. 88 boolean move(int offset); argument
|
H A D | CursorWrapper.java | 191 public boolean move(int offset) { argument 192 return mCursor.move(offset);
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | TonemapCurve.java | 215 * {@link #POINT_SIZE} elements after the {@code offset} 216 * @param offset 217 * a non-negative offset into the array 221 * If offset was negative 224 * offset. 233 int offset) { 234 checkArgumentNonnegative(offset, "offset must not be negative"); 237 if (destination.length + offset < getPointCount(colorChannel) * POINT_SIZE) { 242 System.arraycopy(curve, /*srcPos*/0, destination, offset, curv 232 copyColorCurve(int colorChannel, float[] destination, int offset) argument [all...] |
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiTvClient.java | 384 void onReceived(int portId, int offset, int length, byte[] data); argument 407 public void onReceived(int portId, int offset, int length, byte[] data) { 408 listener.onReceived(portId, offset, length, data); 417 * @param offset offset in the in given data 418 * @param length length of data. offset + length should be bound to length of data. 422 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) { argument 426 if (offset < 0 || offset >= VENDOR_DATA_SIZE) { 427 throw new IllegalArgumentException("Invalid offset [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 131 * To specify a different offset, use 165 * @param offset the index of the first byte in the buffer to send or receive 172 byte[] buffer, int offset, int length, int timeout) { 173 checkBounds(buffer, offset, length); 175 buffer, offset, length, timeout); 183 * To specify a different offset, use 205 * @param offset the index of the first byte in the buffer to send or receive 212 byte[] buffer, int offset, int length, int timeout) { 213 checkBounds(buffer, offset, length); 214 return native_bulk_request(endpoint.getAddress(), buffer, offset, lengt 171 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 211 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument 260 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 262 native_bulk_request(int endpoint, byte[] buffer, int offset, int length, int timeout) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 147 "clock offset: " + clockOffset + "ms"); 213 * Reads an unsigned 32 bit big endian number from the given offset in the buffer. 215 private long read32(byte[] buffer, int offset) { argument 216 byte b0 = buffer[offset]; 217 byte b1 = buffer[offset+1]; 218 byte b2 = buffer[offset+2]; 219 byte b3 = buffer[offset+3]; 231 * Reads the NTP time stamp at the given offset in the buffer and returns 234 private long readTimeStamp(byte[] buffer, int offset) { argument 235 long seconds = read32(buffer, offset); 248 writeTimeStamp(byte[] buffer, int offset, long time) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | MemoryFile.java | 192 * @param srcOffset offset into the memory file to read from. 193 * @param destOffset offset into the byte array buffer to read into. 217 * @param srcOffset offset into the byte array buffer to write from. 218 * @param destOffset offset into the memory file to write to. 303 public int read(byte buffer[], int offset, int count) throws IOException { argument 304 if (offset < 0 || count < 0 || offset + count > buffer.length) { 313 int result = readBytes(buffer, mOffset, offset, count); 336 public void write(byte buffer[], int offset, int count) throws IOException { argument 337 writeBytes(buffer, offset, mOffse [all...] |
H A D | UpdateEngine.java | 134 public void applyPayload(String url, long offset, long size, String[] headerKeyValuePairs) { argument 136 mUpdateEngine.applyPayload(url, offset, size, headerKeyValuePairs);
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 570 private static String formatZoneOffset(int offset, int count) { argument 571 offset /= 1000; // milliseconds to seconds 574 if (offset < 0) { 576 offset = -offset; 581 int hours = offset / 3600; 582 int minutes = (offset % 3600) / 60;
|
/frameworks/base/core/java/android/util/ |
H A D | Base64.java | 88 public abstract boolean process(byte[] input, int offset, int len, boolean finish); argument 147 * @param offset the position within the input array at which to start 155 public static byte[] decode(byte[] input, int offset, int len, int flags) { argument 160 if (!decoder.process(input, offset, len, true)) { 263 public boolean process(byte[] input, int offset, int len, boolean finish) { argument 266 int p = offset; 267 len += offset; 468 * @param offset the position within the input array at which to 475 public static String encodeToString(byte[] input, int offset, int len, int flags) { argument 477 return new String(encode(input, offset, le 509 encode(byte[] input, int offset, int len, int flags) argument 603 process(byte[] input, int offset, int len, boolean finish) argument [all...] |
H A D | TimeUtils.java | 62 * Tries to return a time zone that would have had the specified offset 66 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument 81 if (currentOffset == offset && currentDst == dst) { 87 // country that has the correct current offset and DST. 92 if (tz.getOffset(when) == offset && 123 // See if we already have this offset, 134 Log.d(TAG, "getTimeZonesWithUniqueOffsets: add unique offset=" +
|
/frameworks/base/core/java/android/util/jar/ |
H A D | StrictJarFile.java | 361 throw new IOException("Error reading data for " + entry.getName() + " near offset " 399 private long offset; field in class:StrictJarFile.RAFStream 404 offset = initialOffset; 413 return (offset < endOffset ? 1 : 0); 422 final long length = endOffset - offset; 426 sharedRaf.seek(offset); 429 offset += count; 438 if (byteCount > endOffset - offset) { 439 byteCount = endOffset - offset; 441 offset [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 102 public void setParameters(int range, int offset, int extent, boolean vertical) { argument 109 if (mRange != range || mOffset != offset || mExtent != extent) { 111 mOffset = offset; 202 private void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 208 thumb.setBounds(bounds.left, bounds.top + offset, 209 bounds.right, bounds.top + offset + length); 218 thumb.setBounds(bounds.left + offset, bounds.top, 219 bounds.left + offset + length, bounds.bottom); 382 return "ScrollBarDrawable: range=" + mRange + " offset=" + mOffset +
|
H A D | SpellChecker.java | 324 SuggestionsInfo suggestionsInfo, int offset, int length) { 343 editable, suggestionsInfo, spellCheckSpan, offset, length); 353 if (offset != USE_SPAN_RANGE && length != USE_SPAN_RANGE) { 354 start = spellCheckSpanStart + offset; 410 final int offset = ssi.getOffsetAt(j); 413 suggestionsInfo, offset, length); 454 SpellCheckSpan spellCheckSpan, int offset, int length) { 462 if (offset != USE_SPAN_RANGE && length != USE_SPAN_RANGE) { 463 start = spellCheckSpanStart + offset; 740 private <T> void removeSpansAt(Editable editable, int offset, argument 323 onGetSuggestionsInternal( SuggestionsInfo suggestionsInfo, int offset, int length) argument 453 createMisspelledSuggestionSpan(Editable editable, SuggestionsInfo suggestionsInfo, SpellCheckSpan spellCheckSpan, int offset, int length) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | DumpUtils.java | 90 public static void printScreenLabel(PrintWriter pw, int offset) { argument 91 switch (offset) { 107 public static void printScreenLabelCsv(PrintWriter pw, int offset) { argument 108 switch (offset) { 123 public static void printMemLabel(PrintWriter pw, int offset, char sep) { argument 124 switch (offset) { 152 public static void printMemLabelCsv(PrintWriter pw, int offset) { argument 153 if (offset >= ADJ_MEM_FACTOR_NORMAL) { 154 if (offset <= ADJ_MEM_FACTOR_CRITICAL) { 155 pw.print(ADJ_MEM_NAMES_CSV[offset]); [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastPrintWriter.java | 33 public void write(char[] buf, int offset, int count) throws IOException { argument 563 * offset} to the target. 570 * @param offset 575 * if {@code offset < 0} or {@code count < 0}, or if {@code 576 * offset + count} is greater than the length of {@code buf}. 579 public void write(char[] buf, int offset, int count) { argument 582 appendLocked(buf, offset, count); 632 * offset} to the target. 636 * @param offset 641 * if {@code offset < 645 write(String str, int offset, int count) argument [all...] |