/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightPlayer.cpp | 65 status_t StagefrightPlayer::setDataSource(int fd, int64_t offset, int64_t length) { argument 66 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length); 67 return mPlayer->setDataSource(dup(fd), offset, length);
|
/frameworks/av/media/libnbaio/ |
H A D | NBLog.cpp | 96 size_t length = strlen(string); local 97 if (length > 255) { 98 length = 255; 100 log(EVENT_STRING, string, length); 120 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap); local 121 if (length >= (int) sizeof(buffer)) { 122 length = sizeof(buffer) - 1; 124 // buffer[length] = '\0'; 126 if (length >= 0) { 127 log(EVENT_STRING, buffer, length); 150 log(Event event, const void *data, size_t length) argument 320 size_t length; local [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
H A D | tns.h | 103 Word16 length[TRANS_FAC]; member in struct:__anon345
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ParsedMessage.cpp | 28 const char *data, size_t size, bool noMoreData, size_t *length) { 33 *length = 0; 37 *length = res; 165 if (!findInt32("content-length", &contentLength) || contentLength < 0) { 27 Parse( const char *data, size_t size, bool noMoreData, size_t *length) argument
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegProcessor.cpp | 289 * 2-byte length (in network byte order), then the segment data. 291 * For our purposes we will ignore the data, and just use the length to skip to 307 const size_t MARKER_LENGTH = 2; // length of a marker 313 uint16_t length; member in struct:android::camera2::segment 379 size_t length = ntohs(segment->length); local 380 ALOGV("JFIF Segment, type %x length %zx", type, length); 381 size += length + MARKER_LENGTH;
|
/frameworks/base/core/java/android/bluetooth/le/ |
H A D | ScanRecord.java | 190 while (currentPos < scanRecord.length) { 191 // length is unsigned int. 192 int length = scanRecord[currentPos++] & 0xFF; 193 if (length == 0) { 196 // Note the length includes the length of the field type itself. 197 int dataLength = length - 1; 290 private static byte[] extractBytes(byte[] scanRecord, int start, int length) { argument 291 byte[] bytes = new byte[length]; 292 System.arraycopy(scanRecord, start, bytes, 0, length); [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. 38 * and {@link #getDeclaredLength} when a length has not been declared. This means 53 * This must be 0 if length is UNKNOWN_LENGTH. 54 * @param length The number of bytes of the asset, or 58 long length) { 59 this(fd, startOffset, length, null); 67 * This must be 0 if length is UNKNOWN_LENGTH. 68 * @param length The number of bytes of the asset, or 74 long length, Bundle extras) { 78 if (length < 57 AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length) argument 73 AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length, Bundle extras) argument [all...] |
H A D | TypedArray.java | 48 if (attrs.mData.length >= fullLen) { 78 public int length() { method in class:TypedArray 908 * @return an array of length {@link #getIndexCount()} populated with theme 921 final int N = length(); 958 final int N = length();
|
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiTvClient.java | 356 void onReceived(int portId, int offset, int length, byte[] data); argument 379 public void onReceived(int portId, int offset, int length, byte[] data) { 380 listener.onReceived(portId, offset, length, data); 390 * @param length length of data. offset + length should be bound to length of data. 394 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) { argument 395 if (data == null || data.length != VENDOR_DATA_SIZE) { 401 if (length < [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 141 * @param length the length of the data to send or receive 143 * @return length of data transferred (or zero) for success, 147 int index, byte[] buffer, int length, int timeout) { 148 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); 166 * @param length the length of the data to send or receive 168 * @return length of data transferred (or zero) for success, 172 byte[] buffer, int offset, int length, int timeout) { 173 checkBounds(buffer, offset, length); 146 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 171 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 194 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) argument 211 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument 245 checkBounds(byte[] buffer, int start, int length) 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/os/ |
H A D | MemoryFile.java | 44 private static native FileDescriptor native_open(String name, int length) throws IOException; argument 46 private static native long native_mmap(FileDescriptor fd, int length, int mode) argument 48 private static native void native_munmap(long addr, int length) throws IOException; argument 59 private int mLength; // total length of our ashmem region 66 * @param length of the memory file in bytes, must be non-negative. 69 public MemoryFile(String name, int length) throws IOException { argument 70 mLength = length; 71 if (length >= 0) { 72 mFD = native_open(name, length); 74 throw new IOException("Invalid length 140 public int length() { method in class:MemoryFile [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | FileSynthesisCallback.java | 149 public int audioAvailable(byte[] buffer, int offset, int length) { argument 152 + "," + length + ")"); 177 fileChannel.write(ByteBuffer.wrap(buffer, offset, length));
|
/frameworks/base/core/java/android/text/ |
H A D | BidiFormatter.java | 303 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 332 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 351 return mDefaultTextDirectionHeuristic.isRtl(str, 0, str.length()); 383 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 535 * The length of the text in chars. 537 private final int length; field in class:BidiFormatter.DirectionalityEstimator 562 length = text.length(); 581 while (charIndex < length && firstNonEmptyEmbeddingLevel == 0) { 675 charIndex = length; [all...] |
H A D | SpannableStringInternal.java | 30 if (start == 0 && end == source.length()) 42 for (int i = 0; i < spans.length; i++) { 57 public final int length() { method in class:SpannableStringInternal 58 return mText.length(); 82 if (start != 0 && start != length()) { 91 if (end != 0 && end != length()) { 119 if (mSpanCount + 1 >= mSpans.length) { 122 int[] newdata = new int[newtags.length * 3]; 278 if (count == ret.length) { 311 int n = recip.length; [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | PasswordTransformationMethod.java | 47 ViewReference[] vr = sp.getSpans(0, sp.length(), 49 for (int i = 0; i < vr.length; i++) { 79 ViewReference[] vr = sp.getSpans(0, s.length(), 81 if (vr.length == 0) { 93 for (int i = 0; v == null && i < vr.length; i++) { 132 Visible[] old = sp.getSpans(0, sp.length(), Visible.class); 133 for (int i = 0; i < old.length; i++) { 145 public int length() { method in class:PasswordTransformationMethod.PasswordCharSequence 146 return mSource.length(); 160 Visible[] visible = sp.getSpans(0, sp.length(), Visibl [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 127 int length = Math.round((float) size * extent / range); 128 int offset = Math.round((float) (size - length) * mOffset / (range - extent)); 132 if (length < minLength) { 133 length = minLength; 136 if (offset + length > size) { 137 offset = size - length; 140 drawThumb(canvas, r, offset, length, vertical); 165 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 171 bounds.right, bounds.top + offset + length); 174 bounds.left + offset + length, bound [all...] |
H A D | SpellChecker.java | 110 mSpellCheckSpans = new SpellCheckSpan[mIds.length]; 172 final int length = mSpellParsers.length; 173 for (int i = 0; i < length; i++) { 226 end = mTextView.getText().length(); 238 final int length = mSpellParsers.length; 239 for (int i = 0; i < length; i++) { 251 SpellParser[] newSpellParsers = new SpellParser[length + 1]; 252 System.arraycopy(mSpellParsers, 0, newSpellParsers, 0, length); 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/http/multipart/ |
H A D | Part.java | 286 * Return the length of the main content 288 * @return long The length. 306 * #length() as well 324 * Return the full length of all the data. 328 * @return long The length. 331 public long length() throws IOException { method in class:Part 332 LOG.trace("enter length()"); 386 if (partBoundary == null || partBoundary.length == 0) { 389 for (int i = 0; i < parts.length; i++) { 404 * @return The total length [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ArrayUtils.java | 77 * @param length the number of bytes to check 80 public static boolean equals(byte[] array1, byte[] array2, int length) { argument 81 if (length < 0) { 88 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { 91 for (int i = 0; i < length; i++) { 127 return array == null || array.length == 0; 134 return array == null || array.length [all...] |
H A D | FastPrintWriter.java | 290 private void appendLocked(String str, int i, final int length) throws IOException { argument 292 if (length > BUFFER_LEN) { 293 final int end = i + length; 302 if ((pos+length) > BUFFER_LEN) { 306 str.getChars(i, i + length, mText, pos); 307 mPos = pos + length; 310 private void appendLocked(char[] buf, int i, final int length) throws IOException { argument 312 if (length > BUFFER_LEN) { 313 final int end = i + length; 322 if ((pos+length) > BUFFER_LE [all...] |
H A D | FastXmlSerializer.java | 80 private void append(String str, int i, final int length) throws IOException { argument 81 if (length > BUFFER_LEN) { 82 final int end = i + length; 91 if ((pos+length) > BUFFER_LEN) { 95 str.getChars(i, i+length, mText, pos); 96 mPos = pos + length; 99 private void append(char[] buf, int i, final int length) throws IOException { argument 100 if (length > BUFFER_LEN) { 101 final int end = i + length; 110 if ((pos+length) > BUFFER_LE [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Movie.cpp | 119 jint offset, jint length) { 124 if ((offset | length) < 0 || offset + length > totalLength) { 130 SkMovie* moov = SkMovie::DecodeMemory(ar.ptr() + offset, length); 117 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, jint offset, jint length) argument
|
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbDeviceConnection.cpp | 93 int length = read(fd, buffer, sizeof(buffer)); local 94 if (length < 0) return NULL; 96 jbyteArray ret = env->NewByteArray(length); 100 memcpy(bytes, buffer, length); 170 jbyteArray buffer, jint start, jint length, jint timeout) 184 value, index, bufferBytes + start, length, timeout); 195 jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout) 208 jint result = usb_device_bulk_transfer(device, endpoint, bufferBytes + start, length, timeout); 168 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint start, jint length, jint timeout) argument 194 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout) argument
|
H A D | android_media_JetPlayer.cpp | 166 jobject fileDescriptor, jlong offset, jlong length) 181 (long long)offset, (long long)length); // cast params to types used by EAS_FILE 165 android_media_JetPlayer_loadFromFileD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | TextUtilsTest.java | 163 assertEquals(5, result.length()); 164 spans = result.getSpans(0, result.length(), String.class); 167 assertEquals(4, spans.length); 177 assertEquals(2, result.length()); 178 spans = result.getSpans(0, result.length(), String.class); 181 assertEquals(3, spans.length); 229 assertEquals(s.trim().length(), TextUtils.getTrimmedLength(s)); 237 assertEquals(1, tokens.length); 247 assertEquals(1, tokens.length); 316 // Did preserved output strings preserve length 404 public int length() { method in class:TextUtilsTest.Wrapper 488 public int length() { method in class:TextUtilsTest.MockSpanned [all...] |