/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 227 uint64_t length, offset; local 228 err = parseByteRange(line, segmentRangeOffset, &length, &offset); 236 itemMeta->setInt64("range-length", length); 238 segmentRangeOffset = offset + length; 471 uint64_t *length, uint64_t *offset) { 491 *length = strtoull(s, &end, 10); 469 parseByteRange( const AString &line, uint64_t curOffset, uint64_t *length, uint64_t *offset) argument
|
/frameworks/av/services/camera/libcameraservice/camera2/ |
H A D | JpegProcessor.cpp | 261 * 2-byte length (in network byte order), then the segment data. 263 * For our purposes we will ignore the data, and just use the length to skip to 279 const size_t MARKER_LENGTH = 2; // length of a marker 285 uint16_t length; member in struct:android::camera2::segment 351 size_t length = ntohs(segment->length); local 352 ALOGV("JFIF Segment, type %x length %x", type, length); 353 size += length + MARKER_LENGTH;
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 31 * offset and length of that entry's data in the file. 36 * and {@link #getDeclaredLength} when a length has not been declared. This means 49 * This must be 0 if length is UNKNOWN_LENGTH. 50 * @param length The number of bytes of the asset, or 54 long length) { 58 if (length < 0 && startOffset != 0) { 64 mLength = length; 113 * {@link #UNKNOWN_LENGTH} if the length was not declared, meaning data 209 return read(buffer, 0, buffer.length); 286 int count = buffer.length; 53 AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length) argument [all...] |
H A D | TypedArray.java | 50 public int length() { method in class:TypedArray 692 if (cached == null || cached.mData.length < mData.length) {
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 118 * @param length the length of the data to send or receive 120 * @return length of data transferred (or zero) for success, 124 int index, byte[] buffer, int length, int timeout) { 125 return native_control_request(requestType, request, value, index, buffer, length, timeout); 134 * @param length the length of the data to send or receive 136 * @return length of data transferred (or zero) for success, 139 public int bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) { argument 140 return native_bulk_request(endpoint.getAddress(), buffer, length, timeou 123 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 177 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 179 native_bulk_request(int endpoint, byte[] buffer, 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 int native_mmap(FileDescriptor fd, int length, int mode) argument 48 private static native void native_munmap(int 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. 69 public MemoryFile(String name, int length) throws IOException { argument 70 mLength = length; 71 mFD = native_open(name, length); 72 if (length > 0) { 73 mAddress = native_mmap(mFD, length, PROT_REA 135 public int length() { method in class:MemoryFile [all...] |
/frameworks/base/core/java/android/text/ |
H A D | SpannableStringInternal.java | 27 if (start == 0 && end == source.length()) 40 for (int i = 0; i < spans.length; i++) { 55 public final int length() { method in class:SpannableStringInternal 56 return mText.length(); 80 if (start != 0 && start != length()) { 89 if (end != 0 && end != length()) { 117 if (mSpanCount + 1 >= mSpans.length) { 276 if (count == ret.length) { 309 int n = recip.length; 318 int n = recip.length; [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | PasswordTransformationMethod.java | 48 ViewReference[] vr = sp.getSpans(0, sp.length(), 50 for (int i = 0; i < vr.length; i++) { 80 ViewReference[] vr = sp.getSpans(0, s.length(), 82 if (vr.length == 0) { 94 for (int i = 0; v == null && i < vr.length; i++) { 133 Visible[] old = sp.getSpans(0, sp.length(), Visible.class); 134 for (int i = 0; i < old.length; i++) { 146 public int length() { method in class:PasswordTransformationMethod.PasswordCharSequence 147 return mSource.length(); 161 Visible[] visible = sp.getSpans(0, sp.length(), Visibl [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 124 int length = Math.round((float) size * extent / range); 125 int offset = Math.round((float) (size - length) * mOffset / (range - extent)); 129 if (length < minLength) { 130 length = minLength; 133 if (offset + length > size) { 134 offset = size - length; 137 drawThumb(canvas, r, offset, length, vertical); 162 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 168 bounds.right, bounds.top + offset + length); 171 bounds.left + offset + length, bound [all...] |
H A D | SpellChecker.java | 169 final int length = mSpellParsers.length; 170 for (int i = 0; i < length; i++) { 184 if (mLength == mSpellCheckSpans.length) { 231 end = mTextView.getText().length(); 243 final int length = mSpellParsers.length; 244 for (int i = 0; i < length; i++) { 256 SpellParser[] newSpellParsers = new SpellParser[length + 1]; 257 System.arraycopy(mSpellParsers, 0, newSpellParsers, 0, length); 324 onGetSuggestionsInternal( SuggestionsInfo suggestionsInfo, int offset, int length) argument 454 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 | 280 * Return the length of the main content 282 * @return long The length. 300 * #length() as well 318 * Return the full length of all the data. 322 * @return long The length. 325 public long length() throws IOException { method in class:Part 326 LOG.trace("enter length()"); 380 if (partBoundary == null || partBoundary.length == 0) { 383 for (int i = 0; i < parts.length; i++) { 398 * @return The total length [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 74 private void append(String str, int i, final int length) throws IOException { argument 75 if (length > BUFFER_LEN) { 76 final int end = i + length; 85 if ((pos+length) > BUFFER_LEN) { 89 str.getChars(i, i+length, mText, pos); 90 mPos = pos + length; 93 private void append(char[] buf, int i, final int length) throws IOException { argument 94 if (length > BUFFER_LEN) { 95 final int end = i + length; 104 if ((pos+length) > BUFFER_LE [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 99 int offset, int length, jboolean isShareable) { 105 SkStream* stream = new SkMemoryStream(ar.ptr() + offset, length, true); 98 nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, int offset, int length, jboolean isShareable) argument
|
H A D | HarfbuzzSkia.cpp | 50 static HB_Bool stringToGlyphs(HB_Font hbFont, const HB_UChar16* characters, hb_uint32 length, argument 57 int numGlyphs = paint->textToGlyphs(characters, length * sizeof(uint16_t), skiaGlyphs); 95 static HB_Bool canRender(HB_Font hbFont, const HB_UChar16* characters, hb_uint32 length) argument 100 uint16_t* glyphs16 = new uint16_t[length]; 101 int numGlyphs = paint->textToGlyphs(characters, length * sizeof(uint16_t), glyphs16);
|
/frameworks/base/core/jni/ |
H A D | android_media_JetPlayer.cpp | 165 jobject fileDescriptor, jlong offset, jlong length) 179 (long long)offset, (long long)length); // cast params to types used by EAS_FILE 164 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...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 417 * @param length the number of bytes, beginning at offset, to parse 424 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) { argument 425 if ((offset | length) < 0 || data.length < offset + length) { 428 Bitmap bm = nativeDecodeByteArray(data, offset, length, opts); 442 * @param length the number of bytes, beginning at offset, to parse 445 public static Bitmap decodeByteArray(byte[] data, int offset, int length) { argument 446 return decodeByteArray(data, offset, length, null); 576 int[] newLb = new int[lb.length]; 658 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Matrix.cpp | 236 const float length = sqrtf(x * x + y * y + z * z); local 237 float recipLen = 1.0f / length;
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
H A D | SafeSaxTest.java | 152 int length; 153 while ((length = in.read(buffer)) != -1) { 154 out.write(buffer, 0, length); 161 Log.i("***", "File size: " + (xmlBytes.length / 1024) + "k"); 247 if (video.thumbnailUrl == null && url.length() > 0) { 391 if (video.thumbnailUrl == null && url.length() > 0) { 450 public void characters(char text[], int start, int length) argument 453 builder.append(text, start, length);
|
/frameworks/base/services/jni/ |
H A D | com_android_server_UsbHostManager.cpp | 102 int length = interfaceValues.size(); local 103 jintArray interfaceArray = env->NewIntArray(length); 104 env->SetIntArrayRegion(interfaceArray, 0, length, interfaceValues.array()); 106 length = endpointValues.size(); 107 jintArray endpointArray = env->NewIntArray(length); 108 env->SetIntArrayRegion(endpointArray, 0, length, endpointValues.array());
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | BridgeTypedArray.java | 105 for (int i = 0 ; i < mResourceData.length ; i++) { 116 public int length() { method in class:BridgeTypedArray 117 return mResourceData.length; 138 if (index < 0 || index >= mResourceData.length) { 160 if (index < 0 || index >= mResourceData.length) { 181 if (index < 0 || index >= mResourceData.length) { 207 if (index < 0 || index >= mResourceData.length) { 278 if (index < 0 || index >= mResourceData.length) { 317 if (index < 0 || index >= mResourceData.length) { 345 if (index < 0 || index >= mResourceData.length) { [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | FontLoader.java | 225 public void characters(char[] ch, int start, int length) throws SAXException { argument 226 mBuilder.append(ch, start, length); 328 int count = value.length(); 358 int length = value.length(); 361 for (int i = 0 ; i < length ; i++) { 369 System.arraycopy(buffer, i+1, buffer, i, length - i - 1); 370 length--; 374 return new String(buffer, 0, length);
|
/frameworks/compile/libbcc/runtime/lib/ |
H A D | gcc_personality_v0.c | 221 uintptr_t length = readEncodedPointer(&p, callSiteEncoding); local 226 if ( (start <= pcOffset) && (pcOffset < (start+length)) ) {
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | ResolveInfo.cpp | 223 size_t length = nameSize(); local 224 if (length != pKey.size()) 226 return (0 == std::memcmp(m_Name, pKey.data(), length));
|
/frameworks/compile/mclinker/lib/Support/ |
H A D | Path.cpp | 63 Path& Path::assign(const Path::ValueType* s, unsigned int length) argument 65 if (0 == s || 0 == length) 67 m_PathName.assign(s, length); 75 if(m_PathName[m_PathName.length()-1] == separator &&
|