Home
last modified time | relevance | path

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

1234

/art/test/580-crc32/src/
DMain.java157 private static long CRC32ByteArray(byte[] bytes, int off, int len) { in CRC32ByteArray() argument
159 crc32.update(bytes, off, len); in CRC32ByteArray()
185 private static boolean CRC32ByteArrayThrowsAIOOBE(byte[] bytes, int off, int len) { in CRC32ByteArrayThrowsAIOOBE() argument
188 crc32.update(bytes, off, len); in CRC32ByteArrayThrowsAIOOBE()
217 private static long CRC32BytesUsingUpdateInt(byte[] bytes, int off, int len) { in CRC32BytesUsingUpdateInt() argument
219 while (len-- > 0) { in CRC32BytesUsingUpdateInt()
320 for (int len = 0; len <= 16; ++len) { in TestCRC32UpdateBytes()
321 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateBytes()
322 CRC32ByteArray(bytes, off, len)); in TestCRC32UpdateBytes()
333 int len = bytes.length / 2; in TestCRC32UpdateBytes() local
[all …]
/art/libartbase/base/
Dsafe_copy.cc33 ssize_t SafeCopy(void *dst, const void *src, size_t len) { in SafeCopy() argument
37 .iov_len = len, in SafeCopy()
52 while (len > 0) { in SafeCopy()
65 src_iovs[iovecs_used].iov_len = std::min(src_iovs[iovecs_used].iov_len, len); in SafeCopy()
67 len -= src_iovs[iovecs_used].iov_len; in SafeCopy()
78 UNUSED(dst, src, len); in SafeCopy()
Dmem_map_unix.cc27 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap() argument
28 return mmap(start, len, prot, flags, fd, fd_off); in TargetMMap()
31 int MemMap::TargetMUnmap(void* start, size_t len) { in TargetMUnmap() argument
32 return munmap(start, len); in TargetMUnmap()
Dmem_map_fuchsia.cc61 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap() argument
73 return mmap(start, len, prot, flags, fd, fd_off); in TargetMMap()
87 if (len == 0) { in TargetMMap()
110 if (zx_vmo_create(len, 0, &vmo) < 0) { in TargetMMap()
114 zx_vmo_get_size(vmo, &len); in TargetMMap()
118 status = zx_vmar_map(fuchsia_lowmem_vmar, vmaroffset, vmo, fd_off, len, vmarflags, &mem); in TargetMMap()
120 status = zx_vmar_map(zx_vmar_root_self(), vmaroffset, vmo, fd_off, len, vmarflags, &mem); in TargetMMap()
130 int MemMap::TargetMUnmap(void* start, size_t len) { in TargetMUnmap() argument
136 zx_status_t status = zx_vmar_unmap(alloc_vmar, addr, len); in TargetMUnmap()
Ddata_hash.h25 static inline size_t HashBytes(const uint8_t* data, size_t len) { in HashBytes() argument
27 for (uint32_t i = 0; i < len; ++i) { in HashBytes()
47 uint32_t len = sizeof(typename Container::value_type) * array.size(); in operator() local
58 const int nblocks = len / 4; in operator()
75 switch (len & 3) { in operator()
91 hash ^= len; in operator()
100 return HashBytes(data, len); in operator()
Dmem_map_windows.cc45 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap() argument
49 off_t map_length = len + padding; in TargetMMap()
133 int MemMap::TargetMUnmap(void* start, size_t len) { in TargetMUnmap() argument
136 UNUSED(len); in TargetMUnmap()
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()
/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/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/libdexfile/external/include/art_api/
Ddex_file_support.h65 size_t len; in size() local
66 (void)g_ExtDexFileGetString(ext_string_, &len); in size()
67 return len; in size()
72 size_t len; in string_view() local
73 const char* chars = g_ExtDexFileGetString(ext_string_, &len); in string_view()
74 return std::string_view(chars, len); in string_view()
108 int32_t len; // Code length member
113 return s1.offset == s2.offset && s1.len == s2.len && s1.name == s2.name;
/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/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/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:
Dwrap-logcat.py41 if len(args.command) == 0:
52 with subprocess.Popen(shlex.split(args.command[0]) if len(args.command) == 1 else args.command,
/art/tools/dexanalyze/
Ddexanalyze_strings.cc41 size_t AddPrefixData(const uint8_t* data, size_t len) { in AddPrefixData() argument
43 prefix_data_.insert(prefix_data_.end(), data, data + len); in AddPrefixData()
108 ALWAYS_INLINE bool Equal(uint32_t string_idx, const uint8_t* data, size_t len) const { in Equal()
118 if (prefix_len + suffix_len != len) { in Equal()
124 memcmp(suffix_data, data + prefix_len, len - prefix_len) == 0u; in Equal()
126 len -= prefix_len; in Equal()
133 while (len != 0u) { in Equal()
137 --len; in Equal()
165 uint32_t len = DecodeUnsignedLeb128(&data); in GetString() local
166 return std::string(data, data + len); in GetString()
[all …]
/art/oatdump/
Doatdump_test.h250 auto line_buf_fn = [&](char* buf, size_t len) { in Exec()
251 total += len; in Exec()
253 if (len == 0 && line_len > 0 && !ignore_next_line) { in Exec()
258 if (len > 0) { in Exec()
261 error_buf.insert(error_buf.end(), buf, buf + len); in Exec()
265 while (len > 0) { in Exec()
267 size_t copy = std::min(kLineMax - line_len, len); in Exec()
270 len -= copy; in Exec()
273 auto trim_space = [&line](size_t len) { in Exec()
275 for (; spaces < len && isspace(line[spaces]); ++spaces) {} in Exec()
[all …]
/art/openjdkjvm/
DOpenjdkJvm.cc159 JNIEXPORT jint JVM_GetLastErrorString(char* buf, int len) { in JVM_GetLastErrorString() argument
161 if (len == 0) { in JVM_GetLastErrorString()
166 char* result = strerror_r(err, buf, len); in JVM_GetLastErrorString()
168 strncpy(buf, result, len); in JVM_GetLastErrorString()
169 buf[len - 1] = '\0'; in JVM_GetLastErrorString()
175 UNUSED(len); in JVM_GetLastErrorString()
184 int len = jio_vfprintf(fp, fmt, args); in jio_fprintf() local
187 return len; in jio_fprintf()
227 int len; in jio_snprintf() local
229 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/libdexfile/external/
Ddex_file_ext.cc49 int32_t len; member
133 int32_t len = code.InsnsSizeInBytes(); in GetMethodCacheEntryForOffset() local
135 auto res = method_cache_.emplace(offset + len, art::MethodCacheEntry{offset, len, index}); in GetMethodCacheEntryForOffset()
136 if (offset <= dex_offset && dex_offset < offset + len) { in GetMethodCacheEntryForOffset()
309 method_info->len = entry->len; in ExtDexFileGetMethodInfoForOffset()
332 method_info.len = code.InsnsSizeInBytes(); in ExtDexFileGetAllMethodInfos()
/art/dexlist/
Ddexlist.cc69 size_t len = strlen(str); in descriptorToDot() local
71 len -= 2; // Two fewer chars to copy (trims L and ;). in descriptorToDot()
74 std::unique_ptr<char[]> newStr(new char[len + 1]); in descriptorToDot()
75 for (size_t i = 0; i < len; i++) { in descriptorToDot()
78 newStr[len] = '\0'; in descriptorToDot()
/art/runtime/interpreter/mterp/
Dgen_mterp.py39 if len(opcodes) != NUM_PACKED_OPCODES:
41 % (len(opcodes), NUM_PACKED_OPCODES)
87 if len(sys.argv) <= 3:

1234