/art/test/580-crc32/src/ |
D | Main.java | 157 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/ |
D | safe_copy.cc | 33 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()
|
D | mem_map_unix.cc | 27 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()
|
D | mem_map_fuchsia.cc | 61 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()
|
D | data_hash.h | 25 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()
|
D | mem_map_windows.cc | 45 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()
|
/art/test/098-ddmc/ |
D | expected.txt | 2 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/ |
D | prune_sanitizer_output.py | 80 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/1975-hello-structural-transformation/ |
D | structural_transform.cc | 45 jint len = env->GetArrayLength(f); in Java_art_Test1975_readNativeFields() local 46 for (jint i = 0; i < len; i++) { in Java_art_Test1975_readNativeFields() 66 jint len = env->GetArrayLength(f); in Java_art_Test1975_getNativeFields() local 67 jlongArray arr = env->NewLongArray(len); in Java_art_Test1975_getNativeFields() 68 for (jint i = 0; i < len; i++) { in Java_art_Test1975_getNativeFields()
|
/art/test/1976-hello-structural-static-methods/ |
D | structural_transform_methods.cc | 45 jint len = env->GetArrayLength(m); in Java_art_Test1976_callNativeMethods() local 46 for (jint i = 0; i < len; i++) { in Java_art_Test1976_callNativeMethods() 64 jint len = env->GetArrayLength(m); in Java_art_Test1976_getMethodIds() local 65 jlongArray arr = env->NewLongArray(len); in Java_art_Test1976_getMethodIds() 66 for (jint i = 0; i < len; i++) { in Java_art_Test1976_getMethodIds()
|
/art/test/140-dce-regression/src/ |
D | Main.java | 21 int len = 0; in testArrayLength() local 23 len = arr.length; in testArrayLength() 24 len = 5; in testArrayLength()
|
/art/tools/ |
D | parallel_run.py | 55 while len(fs) != 0 or not found_fail: 57 for _, idx in zip(range(args.jobs - len(fs)), ids): 62 cnt += len(done) 68 if len(failed) != 0: 72 if len(failed) != 1: 73 for f,i in zip(failed, range(len(failed))):
|
D | generate_operator_out.py | 74 namespaces = namespaces[0:len(namespaces) - 1] 87 enclosing_classes = enclosing_classes[0:len(enclosing_classes) - 1] 113 if len(enum_lines.enclosing_classes) > 0: 126 if len(line) == 0: 166 if len(rest): 179 if len(enum_lines.enclosing_classes) > 0:
|
/art/test/1922-owned-monitors-info/ |
D | owned_monitors.cc | 93 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/ |
D | test.py | 35 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/ |
D | dex_file_support.h | 71 size_t len; in size() local 72 (void)g_ExtDexFileGetString(ext_string_, &len); in size() 73 return len; in size() 78 size_t len; in string_view() local 79 const char* chars = g_ExtDexFileGetString(ext_string_, &len); in string_view() 80 return std::string_view(chars, len); in string_view() 115 int32_t len; // Code length member 120 return s1.offset == s2.offset && s1.len == s2.len && s1.name == s2.name;
|
/art/test/011-array-copy/src/ |
D | Main.java | 164 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/ |
D | createtesttrace.cc | 84 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/oatdump/ |
D | oatdump_test.h | 260 auto line_buf_fn = [&](char* buf, size_t len) { 261 total += len; 263 if (len == 0 && line_len > 0 && !ignore_next_line) { 268 if (len > 0) { 271 error_buf.insert(error_buf.end(), buf, buf + len); 275 while (len > 0) { 277 size_t copy = std::min(kLineMax - line_len, len); 280 len -= copy; 283 auto trim_space = [&line](size_t len) { 285 for (; spaces < len && isspace(line[spaces]); ++spaces) {} [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze_strings.cc | 41 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/openjdkjvm/ |
D | OpenjdkJvm.cc | 159 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/ |
D | redefinition_helper.cc | 153 jint len = static_cast<jint>(env->GetArrayLength(desired_array)); in DoMultiClassRedefine() local 156 defs.push_back({targets[i], static_cast<jint>(len), redef_bytes}); in DoMultiClassRedefine() 210 jint len = env->GetArrayLength(targets); in Java_art_Redefinition_doCommonMultiStructuralClassRedefinition() local 211 if (len != env->GetArrayLength(dex_file_bytes)) { in Java_art_Redefinition_doCommonMultiStructuralClassRedefinition() 216 for (jint i = 0; i < len; i++) { in Java_art_Redefinition_doCommonMultiStructuralClassRedefinition() 223 len, in Java_art_Redefinition_doCommonMultiStructuralClassRedefinition() 241 jint len = env->GetArrayLength(targets); in Java_art_Redefinition_doCommonMultiClassRedefinition() local 242 if (len != env->GetArrayLength(class_file_bytes) || len != env->GetArrayLength(dex_file_bytes)) { in Java_art_Redefinition_doCommonMultiClassRedefinition() 247 for (jint i = 0; i < len; i++) { in Java_art_Redefinition_doCommonMultiClassRedefinition() 254 len, in Java_art_Redefinition_doCommonMultiClassRedefinition() [all …]
|
D | ti_utf.h | 30 size_t len = 0; in CountModifiedUtf8Chars() local 34 len++; in CountModifiedUtf8Chars() 54 len++; in CountModifiedUtf8Chars() 56 return len; in CountModifiedUtf8Chars()
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | mkflame.py | 75 THREAD_STRING_LEN = len(THREAD_STRING) 85 TYPE_STRING_LEN = len(TYPE_STRING) 94 SIZE_STRING_LEN = len(SIZE_STRING) 117 for i in range(len(tokens)): 123 if len(expanded_definition) > 0: 128 if len(expanded_definition) > 0:
|
/art/libdexfile/external/ |
D | dex_file_ext.cc | 49 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()
|