/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/minikin/libs/minikin/ |
H A D | FontLanguage.cpp | 51 static uint16_t packLanguageOrRegion(const char* c, size_t length, uint8_t twoLetterBase, argument 53 if (length == 2) { 105 static inline bool isValidLanguageCode(const char* buffer, size_t length) { argument 106 if (length != 2 && length != 3) return false; 109 if (length == 3 && !isLowercase(buffer[2])) return false; 113 // Returns true if buffer is valid for script code. The length of buffer must be 4. 120 static inline bool isValidRegionCode(const char* buffer, size_t length) { argument 121 return (length == 2 && isUppercase(buffer[0]) && isUppercase(buffer[1])) || 122 (length 126 FontLanguage(const char* buf, size_t length) argument 177 resolveEmojiStyle(const char* buf, size_t length, uint32_t script) argument [all...] |
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/ |
H A D | jni_stochastic_linear_ranker.cpp | 31 const int length, SparseWeightVector<string> * sample) { 33 for (int i = 0; i < length; ++i) { 30 CreateSparseWeightVector(JNIEnv* env, const jobjectArray keys, const float* values, const int length, SparseWeightVector<string> * sample) argument
|
/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 382 readFromParcelInner(const Parcel* parcel, size_t length) argument [all...] |
/frameworks/native/libs/math/include/math/ |
H A D | TQuatHelpers.h | 180 constexpr T PURE length(const QUATERNION<T>& q) { function in class:android::details::TQuatFunctions 191 return length(q) ? q / length(q) : QUATERNION<T>(1);
|
/frameworks/native/libs/vr/libpdx/ |
H A D | client.cpp | 97 size_t length) { 104 status = channel_->SendImpulse(opcode, buffer, length); 96 SendImpulse(int opcode, const void* buffer, size_t length) argument
|
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | client_channel.cpp | 158 size_t length) { 162 if (length > request.impulse_payload.size() || 163 (buffer == nullptr && length != 0)) { 168 InitRequest(&request, opcode, length, 0, true); 169 memcpy(request.impulse_payload.data(), buffer, length); 157 SendImpulse(int opcode, const void* buffer, size_t length) argument
|
/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/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/ |
H A D | rsFileA3D.cpp | 88 bool FileA3D::load(const void *data, size_t length) { argument 91 size_t lengthRemaining = length; 93 if ((length < magicStrLen) ||
|
/frameworks/rs/script_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/tests/java_api/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/support/core-utils/java/android/support/v4/text/ |
H A D | BidiFormatter.java | 299 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 327 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 357 return mDefaultTextDirectionHeuristicCompat.isRtl(str, 0, str.length()); 411 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 603 * The length of the text in chars. 605 private final int length; field in class:BidiFormatter.DirectionalityEstimator 630 length = text.length(); 649 while (charIndex < length && firstNonEmptyEmbeddingLevel == 0) { 743 charIndex = length; [all...] |
/frameworks/support/emoji/core/src/android/support/text/emoji/ |
H A D | MetadataListReader.java | 112 * Finds the start offset and length of the emoji metadata in the font. 114 * @return OffsetInfo which contains start offset and length of the emoji metadata in the font 165 * Start offset and length of the emoji metadata in the font. 171 OffsetInfo(long startOffset, long length) { argument 173 mLength = length;
|
/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/v7/appcompat/src/android/support/v7/widget/ |
H A D | TintTypedArray.java | 126 public int length() { method in class:TintTypedArray 127 return mWrapped.length();
|
/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL_Android.h | 166 XAAint64 length; member in struct:XADataLocator_AndroidFD_
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyCasPlugin.cpp | 212 // key (odd key or even key), |length| is the data size, and |buffer| is the 214 status_t TpBlockCtsDecrypt(const AES_KEY& key, size_t length, char* buffer) { argument 218 CHECK(length >= AES_BLOCK_SIZE); 228 int cts_byte_count = length % AES_BLOCK_SIZE; 232 AES_cbc_encrypt(data, data, length, &key, iv, 0); 243 int cbc_byte_count = length - cts_byte_count - AES_BLOCK_SIZE; 281 // 4-5: 0x00 00 = PES length (filled in later, this is the length of the 282 // PES header (16) plus the length of the ECM container). 286 // 12-13: 0x00 00 = ECM container length (fille 392 decryptPayload( const AES_KEY& key, size_t length, size_t offset, char* buffer) const argument [all...] |
/frameworks/av/include/drm/ |
H A D | drm_framework_common.h | 68 int length; member in class:android::DrmBuffer 72 length(0) { 77 length(dataLength) {
|