/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/ |
H A D | AnimatedVectorDrawable_Delegate.java | 132 /*package*/ static void nSetPropertyHolderData(long nativePtr, float[] data, int length) { argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | StaticLayout_Delegate.java | 75 /*package*/ static void nSetupParagraph(long nativeBuilder, char[] text, int length, argument 85 builder.mWidths = new float[length]; 123 System.arraycopy(builder.mWidths, 0, floatsArray, 0, builder.mWidths.length); 138 int length = builder.mWidths.length; 140 it.setText(new Segment(builder.mText, 0, length)); 142 // average word length in english is 5. So, initialize the possible breaks with a guess. 143 List<Integer> breaks = new ArrayList<Integer>((int) Math.ceil(length / 5d)); 151 computePrimitives(builder.mText, builder.mWidths, length, breaks); 168 return recycle.breaks.length; 176 computePrimitives(@onNull char[] text, @NonNull float[] widths, int length, @NonNull List<Integer> breaks) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | CachedPathIteratorFactory.java | 68 mCoordinates = new float[mTypes.length][]; 75 mSegmentsLength = new float[mTypes.length]; 77 // Curves that we can reuse to estimate segments length 83 for (int i = 0; i < mTypes.length; i++) { 214 * Returns the estimated length of a flat path. If the passed path is not flat (i.e. contains a 229 // MoveTo shouldn't affect the length 245 * Returns the estimated position along a path of the given length. 259 System.arraycopy(coords, 0, curve, 2, coords.length); 299 * Current segment length offset. When asking for the length o 399 jumpToSegment(float length) argument 442 currentSegment(@onNull float[] coords, float length) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/nan/ |
H A D | TlvBufferUtils.java | 93 mArrayLength = array.length; 135 * @param length Copy the specified number (length) of bytes from the 140 public TlvConstructor putByteArray(int type, byte[] array, int offset, int length) { argument 141 checkLength(length); 142 addHeader(type, length); 143 System.arraycopy(array, offset, mArray, mPosition, length); 144 mPosition += length; 159 return putByteArray(type, array, 0, array.length); 163 * Places a zero length elemen 262 addHeader(int type, int length) argument 309 TlvElement(int type, int length, byte[] refArray, int offset) argument 394 TlvIterable(int typeSize, int lengthSize, byte[] array, int length) argument [all...] |
/frameworks/compile/mclinker/lib/LD/ |
H A D | EhFrameReader.cpp | 54 uint32_t length = data[cur_idx++]; local 55 if (length == 0x0) { 65 if (length == 0xFFFFFFFF) { 74 result.size = length + 4; 257 // get the length of the second argument
|
H A D | ResolveInfo.cpp | 214 size_t length = nameSize(); local 215 if (length != pKey.size()) 217 return (std::memcmp(m_Name, pKey.data(), length) == 0);
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequence.java | 42 private static native FrameSequence nativeDecodeByteArray(byte[] data, int offset, int length); argument 63 return decodeByteArray(data, 0, data.length); 66 public static FrameSequence decodeByteArray(byte[] data, int offset, int length) { argument 68 if (offset < 0 || length < 0 || (offset + length > data.length)) { 69 throw new IllegalArgumentException("invalid offset/length parameters"); 71 return nativeDecodeByteArray(data, offset, length);
|
/frameworks/native/include/ui/ |
H A D | TVecHelpers.h | 359 T PURE length(const BASE<T>& lv) { function in class:android::TVecFunctions 366 return length(rv - lv); 371 return lv * (1 / length(lv));
|
/frameworks/native/libs/binder/ |
H A D | Debug.cpp | 157 void printHexData(int32_t indent, const void *buf, size_t length, argument 179 if (length == 0) { 185 if ((int32_t)length < 0) { 188 sprintf(buf, "(bad length: %zu)", length); 198 const bool oneLine = (int32_t)length <= singleLineBytesCutoff; 210 long remain = length; 262 remain = length; 276 if (length > bytesPerLine) *c++ = '\n'; 287 if (length < [all...] |
H A D | PersistableBundle.cpp | 101 RETURN_IF_FAILED(parcel->writeInt32(1)); // dummy, will hold length 108 // Backpatch length. This length value includes the length header. 110 size_t length = end_pos - start_pos; local 111 if (length > std::numeric_limits<int32_t>::max()) { 112 ALOGE("Parcel length (%zu) too large to store in 32-bit signed int", length); 115 RETURN_IF_FAILED(parcel->writeInt32(static_cast<int32_t>(length))); 125 int32_t length local 338 readFromParcelInner(const Parcel* parcel, size_t length) argument [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetActiveAttrib.cpp | 1 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 10 GLsizei *length = (GLsizei *) 0; local 31 length = length_base + lengthOffset; 89 (GLsizei *)length, 117 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 128 GLsizei *length = (GLsizei *) 0; local 134 length = (GLsizei *)getPointer(_env, length_buf, (jarray*)&_lengthArray, &_lengthRemaining, &_lengthBufferOffset); 137 if (length == NULL) { 139 length = (GLsizei *) (_lengthBase + _lengthBufferOffset); 153 (GLsizei *)length, 273 GLsizei *length = (GLsizei *) 0; local [all...] |
H A D | glGetActiveUniform.cpp | 1 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 10 GLsizei *length = (GLsizei *) 0; local 31 length = length_base + lengthOffset; 89 (GLsizei *)length, 117 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 128 GLsizei *length = (GLsizei *) 0; local 134 length = (GLsizei *)getPointer(_env, length_buf, (jarray*)&_lengthArray, &_lengthRemaining, &_lengthBufferOffset); 137 if (length == NULL) { 139 length = (GLsizei *) (_lengthBase + _lengthBufferOffset); 153 (GLsizei *)length, [all...] |
H A D | glGetTransformFeedbackVarying.cpp | 1 /* void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name ) */ 10 GLsizei *length = (GLsizei *) 0; local 31 length = length_base + lengthOffset; 89 (GLsizei *)length, 117 /* void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name ) */ 124 /* void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name ) */ 137 GLsizei *length = (GLsizei *) 0; local 146 length = (GLsizei *)getPointer(_env, length_buf, (jarray*)&_lengthArray, &_lengthRemaining, &_lengthBufferOffset); 150 if (length == NULL) { 152 length 293 GLsizei *length = (GLsizei *) 0; local [all...] |
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
H A D | ChipsTest.java | 112 public int length() { method in class:ChipsTest.MockRecipientEditTextView 113 return mEditable != null ? mEditable.length() : 0; 190 int firstEnd = firstStart + first.trim().length(); 192 int secondEnd = secondStart + second.trim().length(); 193 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); 194 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); 199 assertEquals(editableString.indexOf(second), secondStart - extra.length()); 208 firstEnd = firstStart + first.length(); 209 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], firstStart, firstEnd, 0); 212 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
H A D | XMLNode.java | 32 for (int n = 0; n < XML_SPECIAL_CHARS.length(); n++) { 116 public void addText(char[] chs, int start, int length) { argument 117 String s = new String(chs, start, length); 125 if (s.charAt(s.length() - 1) != trimmed.charAt(trimmed.length() - 1)) 135 StringBuilder filtered = new StringBuilder(text.length()); 136 for (int n = 0; n < text.length(); n++) { 163 if (nsn.length != 2) { 171 if (nsn.length != 2) { 237 char[] subIndent = Arrays.copyOf(indent, indent.length [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | IconLoader.java | 90 if (recordNumbers == null || recordNumbers.length == 0 || msg == null) { 95 mIcons = new Bitmap[recordNumbers.length]; 148 mCurrentIcon = parseToBnW(rawData, rawData.length); 162 mCurrentIcon = parseToRGB(mIconData, mIconData.length, 192 int length = mIconData[3] * CLUT_ENTRY_SIZE; 196 mIconData[CLUT_LOCATION_OFFSET + 1], length, msg); 224 if (mCurrentRecordIndex < mRecordNumbers.length) { 236 * @param length The length of image body 239 public static Bitmap parseToBnW(byte[] data, int length){ argument 289 parseToRGB(byte[] data, int length, boolean transparency, byte[] clut) argument [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | PduParser.java | 487 /* Value-length 493 /* parse Value-length */ 528 * Value-length 532 parseValueLength(pduDataStream); /* parse value-length */ 657 * Value-length Forwarded-count-value Encoded-string-value */ 658 /* parse value-length */ 692 * Value-length Forwarded-count-value Date-value */ 693 /* parse value-length */ 722 * Value-length 731 /* parse Value-length */ 1321 skipWapValue(ByteArrayInputStream pduDataStream, int length) argument 1340 parseContentTypeParams(ByteArrayInputStream pduDataStream, HashMap<Integer, Object> map, Integer length) argument 1594 parsePartHeaders(ByteArrayInputStream pduDataStream, PduPart part, int length) argument [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SmsMessageBodyTest.java | 123 private static final int sNumCharacterClasses = sCharacterClasses.length; 235 * User data header requires one octet for length. Count as one septet, because 243 * requires a user data header of 3 octets, or 4 septets, plus UDH length. 249 * requires a user data header of 6 octets, or 7 septets, plus UDH length. 255 * plus UDH length. 264 int asciiCharsLen = sAsciiChars.length(); 268 assertTrue(sb.length() <= len); 270 while (sb.length() < len) { 271 int addCount = len - sb.length(); 277 assertEquals(len, sb.length()); 331 int length; field in class:SmsMessageBodyTest.LanguagePair 383 fillData(int enabledLangsIndex, boolean use7bitOnly, int[] values, int length) argument [all...] |
/frameworks/rs/api/ |
H A D | Utilities.cpp | 46 int length = source.length(); local 49 for (int s = 0; s < length; s++) { 127 for (size_t i = 0; i < s.length(); i++) {
|
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
H A D | XmpDepthDecode.java | 37 XMP_EXTENSION_HEADER.length() + 32 + 1; // 32 byte GUID + 1 byte null termination. 129 public int length; field in class:XmpDepthDecode.Section 189 * all sections. The last section with image data will have -1 length. 225 section.length = -1; 227 is.read(section.data, 0, section.data.length); 237 int length = lh << 8 | ll; 239 sections.add(readSection(is, length, marker, skipExtendedContent)); 243 is.skip(length - 2); 263 * a fixed length header XMP_HEADER. 269 if (data.length < heade 284 readSection(InputStream is, int length, int marker, boolean skipExtendedContent) argument [all...] |
/frameworks/rs/ |
H A D | rsFileA3D.cpp | 103 bool FileA3D::load(const void *data, size_t length) { argument 106 size_t lengthRemaining = length; 108 if ((length < magicStrLen) ||
|
/frameworks/support/recommendation/src/android/support/app/recommendation/ |
H A D | RecommendationExtender.java | 166 if (mTypes == null || mTypes.length == 0) { 296 * @param length The runing time, in seconds, of the content associated with the notification. 298 public RecommendationExtender setRunningTime(long length) { argument 299 if (length < 0) { 302 mRunLength = length;
|
/frameworks/support/v4/donut/android/support/v4/app/ |
H A D | NotificationCompatBase.java | 41 public Action[] newArray(int length); argument
|
/frameworks/support/v4/java/android/support/v4/text/ |
H A D | BidiFormatter.java | 297 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 324 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 343 return mDefaultTextDirectionHeuristicCompat.isRtl(str, 0, str.length()); 377 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 528 * The length of the text in chars. 530 private final int length; field in class:BidiFormatter.DirectionalityEstimator 555 length = text.length(); 574 while (charIndex < length && firstNonEmptyEmbeddingLevel == 0) { 668 charIndex = length; [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | TintTypedArray.java | 83 public int length() { method in class:TintTypedArray 84 return mWrapped.length();
|