Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 80) sorted by relevance

1234

/art/libartbase/base/
Dsafe_copy.cc31 ssize_t SafeCopy(void *dst, const void *src, size_t len) { in SafeCopy() argument
35 .iov_len = len, in SafeCopy()
50 while (len > 0) { in SafeCopy()
63 src_iovs[iovecs_used].iov_len = std::min(src_iovs[iovecs_used].iov_len, len); in SafeCopy()
65 len -= src_iovs[iovecs_used].iov_len; in SafeCopy()
76 UNUSED(dst, src, len); in SafeCopy()
Dstringpiece.h57 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { } in StringPiece() argument
72 void set(const char* data_in, size_type len) { in set() argument
74 length_ = len; in set()
84 void set(const void* data_in, size_type len) { in set() argument
86 length_ = len; in set()
225 StringPiece::size_type len = x.size();
226 if (len != y.size()) {
235 if (len == 0) {
240 if (p1[len-1] != p2[len-1]) return false;
241 if (len == 1) return true;
[all …]
Dbit_vector.h248 void CopyTo(void* dst, size_t len) const { in CopyTo() argument
249 DCHECK_LE(static_cast<size_t>(GetHighestBitSet() + 1), len * kBitsPerByte); in CopyTo()
251 if (vec_len < len) { in CopyTo()
254 memset(dst_padding, 0, len - vec_len); in CopyTo()
256 memcpy(dst, storage_, len); in CopyTo()
Dsafe_copy.h27 ssize_t SafeCopy(void *dst, const void *src, size_t len);
Dutils.cc128 int len = s - thread_name; in SetThreadName() local
129 if (len < 15 || hasAt || !hasDot) { in SetThreadName()
132 s = thread_name + len - 15; in SetThreadName()
/art/test/098-ddmc/
Dexpected.txt2 empty=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries: …
14 reset=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries: …
23 goodbye=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries…
/art/tools/runtime_memusage/
Dprune_sanitizer_output.py80 if i - 2 != match[0]), len(trace_line_matches) - 2)
85 trace_line_matches.append((trace_line_matches[-1][0] + 1, len(trace)))
147 filter_percent = 100.0 - (float(len(trace_clean_split)) /
148 len(trace_split) * 100)
149 filter_amount = len(trace_split) - len(trace_clean_split)
151 % (filter_amount, filter_percent, len(trace_split),
152 len(trace_split) - filter_amount, 1 - filter_percent))
/art/runtime/interpreter/mterp/
Dgen_mterp.py65 if len(tokens) != 2:
81 if len(tokens) != 2:
103 if len(tokens) != 2:
118 if len(tokens) != 2:
134 if len(tokens) != 2:
149 if len(tokens) != 2:
178 if len(tokens) != 2:
191 if len(tokens) != 3:
211 if len(tokens) != 3:
230 if len(tokens) != 1:
[all …]
/art/test/140-dce-regression/src/
DMain.java21 int len = 0; in testArrayLength() local
23 len = arr.length; in testArrayLength()
24 len = 5; in testArrayLength()
/art/test/1922-owned-monitors-info/
Downed_monitors.cc93 jint len = 0; in Java_art_Test1922_getOwnedMonitorStackDepthInfo() local
96 env, jvmti_env, jvmti_env->GetOwnedMonitorStackDepthInfo(thread, &len, &monitors))) { in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
108 return CreateObjectArray(env, len, "art/Test1922$MonitorStackDepthInfo", in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
120 jint len = 0; in Java_art_Test1922_getOwnedMonitors() local
122 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetOwnedMonitorInfo(thread, &len, &arr))) { in Java_art_Test1922_getOwnedMonitors()
130 jobjectArray ret = env->NewObjectArray(len, obj_class.get(), nullptr); in Java_art_Test1922_getOwnedMonitors()
134 for (jint i = 0; i < len; i++) { in Java_art_Test1922_getOwnedMonitors()
/art/tools/checker/file_format/checker/
Dtest.py35 self.assertEqual(len(checkFile.testCases), 1)
36 self.assertNotEqual(len(checkFile.testCases[0].assertions), 0)
40 self.assertEqual(len(checkFile.testCases), 1)
41 self.assertEqual(len(checkFile.testCases[0].assertions), 0)
82 self.assertEqual(len(checkerFile.testCases), 1)
84 self.assertEqual(len(testCase.assertions), 1)
89 self.assertEqual(1, len(line.expressions))
317 self.assertEqual(len(checkerFile.testCases), 1)
318 self.assertEqual(len(checkerFile.testCases[0].assertions), 4)
325 self.assertEqual(len(checkerFile.testCases), 1)
[all …]
/art/test/011-array-copy/src/
DMain.java164 final int len = 10; in testFloatAndDouble() local
165 System.arraycopy(new float[len], 0, new float[len], 0, len); in testFloatAndDouble()
166 System.arraycopy(new double[len], 0, new double[len], 0, len); in testFloatAndDouble()
/art/tools/
Dgenerate_operator_out.py66 if len(enclosing_classes) > 0:
81 namespaces = namespaces[0:len(namespaces) - 1]
93 enclosing_classes = enclosing_classes[0:len(enclosing_classes) - 1]
122 if len(line) == 0:
142 rest = rest[(len(m_literal.group(0))):]
155 if len(rest):
164 if len(enclosing_classes) > 0:
/art/tools/dmtracedump/
Dcreatetesttrace.cc84 char* strndup(const char* src, size_t len) { in strndup() argument
85 char* dest = new char[len + 1]; in strndup()
86 strncpy(dest, src, len); in strndup()
87 dest[len] = 0; in strndup()
160 int32_t len; in parseInputFile() local
207 len = cp - save_cp; in parseInputFile()
208 records[nextRecord].fullName = strndup(save_cp, len); in parseInputFile()
216 len = cp - save_cp; in parseInputFile()
217 if (len > 0) records[nextRecord].className = strndup(save_cp, len); in parseInputFile()
222 len = cp - save_cp; in parseInputFile()
[all …]
/art/openjdkjvm/
DOpenjdkJvm.cc163 JNIEXPORT jint JVM_GetLastErrorString(char* buf, int len) { in JVM_GetLastErrorString() argument
165 if (len == 0) { in JVM_GetLastErrorString()
170 char* result = strerror_r(err, buf, len); in JVM_GetLastErrorString()
172 strncpy(buf, result, len); in JVM_GetLastErrorString()
173 buf[len - 1] = '\0'; in JVM_GetLastErrorString()
179 UNUSED(len); in JVM_GetLastErrorString()
188 int len = jio_vfprintf(fp, fmt, args); in jio_fprintf() local
191 return len; in jio_fprintf()
231 int len; in jio_snprintf() local
233 len = jio_vsnprintf(str, count, fmt, args); in jio_snprintf()
[all …]
/art/test/ti-agent/
Dti_utf.h30 size_t len = 0; in CountModifiedUtf8Chars() local
34 len++; in CountModifiedUtf8Chars()
54 len++; in CountModifiedUtf8Chars()
56 return len; in CountModifiedUtf8Chars()
Dredefinition_helper.cc113 jint len = static_cast<jint>(env->GetArrayLength(desired_array)); in DoMultiClassRedefine() local
116 defs.push_back({targets[i], static_cast<jint>(len), redef_bytes}); in DoMultiClassRedefine()
151 jint len = env->GetArrayLength(targets); in Java_art_Redefinition_doCommonMultiClassRedefinition() local
152 if (len != env->GetArrayLength(class_file_bytes) || len != env->GetArrayLength(dex_file_bytes)) { in Java_art_Redefinition_doCommonMultiClassRedefinition()
157 for (jint i = 0; i < len; i++) { in Java_art_Redefinition_doCommonMultiClassRedefinition()
164 len, in Java_art_Redefinition_doCommonMultiClassRedefinition()
304 jint len = env->GetArrayLength(targets); in DoClassRetransformation() local
305 for (jint i = 0; i < len; i++) { in DoClassRetransformation()
308 jvmtiError res = jvmti_env->RetransformClasses(len, classes.data()); in DoClassRetransformation()
310 throwRetransformationError(jvmti_env, env, len, classes.data(), res); in DoClassRetransformation()
/art/runtime/mirror/
Dclass_ext-inl.h33 int32_t len = arr->GetLength(); in VisitNativeRoots() local
34 for (int32_t i = 0; i < len; i++) { in VisitNativeRoots()
/art/dexlist/
Ddexlist.cc68 size_t len = strlen(str); in descriptorToDot() local
70 len -= 2; // Two fewer chars to copy (trims L and ;). in descriptorToDot()
73 std::unique_ptr<char[]> newStr(new char[len + 1]); in descriptorToDot()
74 for (size_t i = 0; i < len; i++) { in descriptorToDot()
77 newStr[len] = '\0'; in descriptorToDot()
/art/libdexfile/dex/
Dcompact_dex_file_test.cc28 static const size_t len = CompactDexFile::kDexVersionLen + CompactDexFile::kDexMagicSize; in TEST() local
29 uint8_t header[len] = {}; in TEST()
30 std::fill_n(header, len, 0x99); in TEST()
Dutf.cc53 size_t len = 0; in CountModifiedUtf8Chars() local
57 len++; in CountModifiedUtf8Chars()
77 len++; in CountModifiedUtf8Chars()
79 return len; in CountModifiedUtf8Chars()
/art/dexlayout/
Ddex_writer.h117 const size_t len = EncodeSignedLeb128(ptr, value) - ptr; in WriteSleb128() local
118 position_ += len; in WriteSleb128()
119 return len; in WriteSleb128()
125 const size_t len = EncodeUnsignedLeb128(ptr, value) - ptr; in WriteUleb128() local
126 position_ += len; in WriteUleb128()
127 return len; in WriteUleb128()
/art/openjdkjvmti/
Dart_jvmti.h217 jint len, in CopyDataIntoJvmtiBuffer() argument
219 jvmtiError res = env->Allocate(len, dest); in CopyDataIntoJvmtiBuffer()
225 len); in CopyDataIntoJvmtiBuffer()
235 size_t len = strlen(src) + 1; in CopyString() local
236 JvmtiUniquePtr<char[]> ret = AllocJvmtiUniquePtr<char[]>(env, len, error); in CopyString()
238 strlcpy(ret.get(), src, len); in CopyString()
/art/compiler/driver/
Dcompiled_method_storage.cc87 uint32_t len = sizeof(ContentType) * array.size(); in operator ()() local
98 const int nblocks = len / 4; in operator ()()
115 switch (len & 3) { in operator ()()
131 hash ^= len; in operator ()()
140 return HashBytes(data, len); in operator ()()
/art/test/115-native-bridge/
Dnativebridge.cc445 size_t len = strlen(libpath); in native_bridge_loadLibrary() local
446 char* tmp = new char[len + 10]; in native_bridge_loadLibrary()
447 strncpy(tmp, libpath, len); in native_bridge_loadLibrary()
448 tmp[len - 3] = '2'; in native_bridge_loadLibrary()
449 tmp[len - 2] = '.'; in native_bridge_loadLibrary()
450 tmp[len - 1] = 's'; in native_bridge_loadLibrary()
451 tmp[len] = 'o'; in native_bridge_loadLibrary()
452 tmp[len + 1] = 0; in native_bridge_loadLibrary()
469 uint32_t len ATTRIBUTE_UNUSED) { in native_bridge_getTrampoline()

1234