/frameworks/base/core/jni/ |
H A D | com_google_android_gles_jni_EGLImpl.cpp | 94 jsize len = _env->GetArrayLength(attrib_list); local 95 if (len < 1) { 99 _env->GetIntArrayRegion(attrib_list, len-1, 1, &item); 128 int len = _env->GetArrayLength(major_minor); local 129 if (len) { 132 if (len >= 1) base[0] = 1; 133 if (len >= 2) base[1] = 0; 150 int len = _env->GetArrayLength(value); local 151 if (len) { 170 int len local [all...] |
H A D | android_app_NativeActivity.cpp | 447 size_t len = 0; local 448 jbyte* state = (jbyte*)code->callbacks.onSaveInstanceState(code, &len); 449 if (len > 0) { 450 array = env->NewByteArray(len); 452 env->SetByteArrayRegion(array, 0, len, state);
|
H A D | com_android_internal_os_Zygote.cpp | 499 const int len = s - thread_name; local 500 if (len < 15 || hasAt || !hasDot) { 503 s = thread_name + len - 15;
|
/frameworks/base/libs/hwui/ |
H A D | TessellationCache.cpp | 190 static void reverseVertexArray(Vertex* polygon, int len) { argument 191 int n = len / 2; 194 int k = len - 1 - i;
|
H A D | VectorDrawable.cpp | 93 float len = SkScalarToFloat(measure.getLength()); local 94 float start = len * fmod((trimPathStart + trimPathOffset), 1.0f); 95 float end = len * fmod((trimPathEnd + trimPathOffset), 1.0f); 98 measure.getSegment(start, len, outPath, true);
|
/frameworks/base/media/java/android/media/ |
H A D | JetPlayer.java | 227 long len = afd.getLength(); 228 if (len < 0) { 232 afd.getFileDescriptor(), afd.getStartOffset(), len); 545 private native final boolean native_loadJetFromFileD(FileDescriptor fd, long offset, long len); argument
|
/frameworks/base/media/jni/audioeffect/ |
H A D | android_media_Visualizer.cpp | 143 uint32_t len = env->GetArrayLength(*array); local 144 if (len == size)
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_hdmi_HdmiCecController.cpp | 366 jsize len = env->GetArrayLength(body); local 368 size_t bodyLength = MIN(static_cast<size_t>(len),
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestEventHandler.java | 368 * @param len The length of the data 370 public void data(byte[] data, int len) { argument 374 Log.v(LOGTAG, "TestEventHandler: data() " + len + " bytes"); 383 Log.v(LOGTAG, new String(data, 0, len)); 386 if (expectDataLength == len) { 390 expectDataLength+" got:"+len); 396 for (int i = 0; i < len; i++) { 681 public void expectData(int len) { argument 683 expectDataLength = len; 686 public void expectData(byte[] data, int len) { argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | ZipFile.cpp | 1217 status_t ZipFile::EndOfCentralDir::readBuf(const unsigned char* buf, int len) argument 1222 if (len < kEOCDLen) { 1225 kEOCDLen, len); 1244 if (kEOCDLen + mCommentLen > len) { 1245 ALOGD("EOCD(%d) + comment(%d) exceeds len (%d)\n", 1246 kEOCDLen, mCommentLen, len);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | PngCrunch.cpp | 83 static void ReadDataFromStream(png_structp png_ptr, png_bytep buffer, png_size_t len) { argument 101 const size_t bytes_read = std::min(in_len, len); 108 static void WriteDataToStream(png_structp png_ptr, png_bytep buffer, png_size_t len) { argument 113 while (len > 0) { 127 const size_t bytes_written = std::min(out_len, len); 132 len -= bytes_written;
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlDom.cpp | 153 static void XMLCALL CharacterDataHandler(void* user_data, const char* s, int len) { argument 157 const StringPiece str(s, len); 228 size_t len; local 229 const char16_t* str16 = parser->getAttributeNamespace(i, &len); 231 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); 234 str16 = parser->getAttributeName(i, &len); 236 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); 244 str16 = parser->getAttributeStringValue(i, &len); 246 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); 266 std::unique_ptr<XmlResource> Inflate(const void* data, size_t len, st argument 292 size_t len; local 319 size_t len; local 345 size_t len; local [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | FontCollection.cpp | 286 int len = unorm2_getRawDecomposition(normalizer, ch, decomposed, 4, &errorCode); local 287 if (U_SUCCESS(errorCode) && len > 0) {
|
H A D | Hyphenator.cpp | 67 static uint32_t len(uint32_t entry) { return entry >> 26; } function in struct:minikin::Pattern 121 const size_t len = word.size(); local 122 const size_t paddedLen = len + 2; // start and stop code each count for 1 123 if (mPatternData != nullptr && len >= mMinPrefix + mMinSuffix && 348 * Note: len here is the padded length including 0 codes at start and end. 350 void Hyphenator::hyphenateFromCodes(const uint16_t* codes, size_t len, HyphenationType hyphenValue, argument 363 size_t maxOffset = len - mMinSuffix - 1; 364 for (size_t i = 0; i < len - 1; i++) { 366 for (size_t j = i; j < len; j++) { 380 int pat_len = Pattern::len(pat_entr [all...] |
/frameworks/native/cmds/flatland/ |
H A D | Main.cpp | 684 size_t len = strlen(scenario); local 685 size_t leftPad = (g_BenchmarkNameLen - len) / 2; 686 size_t rightPad = g_BenchmarkNameLen - len - leftPad; 712 size_t len = strlen(b.name); local 713 if (len > maxLen) { 714 maxLen = len;
|
/frameworks/rs/ |
H A D | rsScriptC_Lib.cpp | 196 uint32_t rsrToClient(Context *rsc, int cmdID, const void *data, int len) { argument 197 //ALOGE("SC_toClient %i %i %i", cmdID, len); 198 return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, false); 201 uint32_t rsrToClientBlocking(Context *rsc, int cmdID, const void *data, int len) { argument 202 //ALOGE("SC_toClientBlocking %i %i", cmdID, len); 203 return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, true); 208 uint32_t rsrToClient(Context *rsc, int cmdID, void *data, int len) { argument 209 return rsrToClient(rsc, cmdID, (const void *)data, len); 212 uint32_t rsrToClientBlocking(Context *rsc, int cmdID, void *data, int len) { argument 213 return rsrToClientBlocking(rsc, cmdID, (const void *)data, len); [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeAac.cpp | 441 size_t len = strlen((const char *) path); local 442 char* outputPath = (char*) malloc(len + 4 + 1); // save room to concatenate ".raw" 446 memcpy(outputPath, path, len + 1);
|
/frameworks/av/cmds/stagefright/ |
H A D | stagefright.cpp | 999 size_t len = strlen(filename); local 1000 if (len >= 4 && !strcasecmp(filename + len - 4, ".jpg")) {
|
/frameworks/av/media/extractors/ogg/ |
H A D | OggExtractor.cpp | 1050 int32_t len = oggpack_read(&bits, 32); local 1052 if (len < 0 || len > (commentSize - oggpack_bytes(&bits))) { 1055 framingBitOffset += len; 1056 for (int j = 0; j < len; ++j) {
|
/frameworks/av/media/libmediametrics/ |
H A D | MediaAnalyticsItem.cpp | 226 size_t MediaAnalyticsItem::findPropIndex(const char *name, size_t len) argument 231 if (prop->mNameLen != len) { 234 if (memcmp(name, prop->mName, len) == 0) { 242 size_t len = strlen(name); local 243 size_t i = findPropIndex(name, len); 250 void MediaAnalyticsItem::Prop::setName(const char *name, size_t len) { argument 252 mName = (const char *) malloc(len+1); 254 "failed malloc() for property '%s' (len %zu)", 255 name, len); 256 memcpy ((void *)mName, name, len 263 size_t len = strlen(name); local 286 size_t len = strlen(name); local 499 size_t len = strlen(name); local 991 size_t len = strlen(p); local [all...] |
/frameworks/av/media/libmediaplayer2/ |
H A D | mediaplayer2.cpp | 93 ALOGE("Invalid filter len %d", val); 316 int len = readlink(buffer, linkto, sizeof(linkto)); local 317 if(len > 0) { 318 if(len > 255) { 324 linkto[len] = 0;
|
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.cpp | 123 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) with UID %d\n", local 128 len = (len > SIZE - 1) ? SIZE - 1 : len; 129 write(fd, buffer, len); 131 len = snprintf(buffer, SIZE, "Latest set parameters:\n"); 132 len = (len > SIZE - 1) ? SIZE - 1 : len; 133 write(fd, buffer, len); [all...] |
/frameworks/base/cmds/incidentd/src/ |
H A D | Section.cpp | 682 static size_t trimTail(char const* buf, size_t len) { argument 683 while (len > 0) { 684 char c = buf[len - 1]; 686 len--; 691 return len; 732 msg.len() - sizeof(uint32_t)); 765 proto.write(BinaryLogEntry::Elem::VAL_STRING, elem.data.string, elem.len);
|
/frameworks/base/libs/androidfw/ |
H A D | AssetManager2.cpp | 760 ssize_t len = local 762 if (len < 0) { 765 out->resize(static_cast<size_t>(len)); 767 static_cast<size_t>(len + 1));
|
H A D | BackupHelpers.cpp | 463 int len = strlen(key) + strlen(value) + 4; local 464 if (len > 9) len++; 465 if (len > 99) len++; 466 if (len > 999) len++; 470 return snprintf(buf, buf_size, "%d %s=%s\n", len, key, value); 642 // size header -- calc len in digits by actually rendering the number 836 int len; local 857 compare_file(const char* path, const unsigned char* data, int len) argument [all...] |