Searched refs:len (Results 1 - 25 of 49) sorted by relevance

12

/art/test/140-dce-regression/src/
H A DMain.java21 int len = 0;
23 len = arr.length;
24 len = 5;
/art/runtime/
H A Dmonitor_android.cc43 static char* EventLogWriteString(char* dst, const char* value, size_t len) { argument
45 len = len < 32 ? len : 32;
46 Set4LE(reinterpret_cast<uint8_t*>(dst), len);
48 memcpy(dst, value, len);
49 return dst + len;
65 size_t len = strlen(procName);
66 cp = EventLogWriteString(cp, procName, len);
H A Dutf.cc48 size_t len = 0; local
52 len++;
72 len++;
74 return len;
H A Dcheck_jni.cc866 uint32_t len = 0; local
867 const char* shorty = m->GetShorty(&len);
869 CHECK_GE(len, 1u);
870 len--;
872 for (uint32_t i = 0; i < len; i++) {
976 uint32_t len; local
977 const char* shorty = m->GetShorty(&len);
978 CHECK_GE(len, 1u);
980 len--;
984 for (uint32_t i = 0; i < len;
1365 Create(void* original_buf, size_t len, bool mod_okay) argument
1451 size_t len = LengthIncludingRedZones(copy->original_length_); local
1468 GuardedCopy(void* original_buf, size_t len, uLong adler) argument
1472 DebugAlloc(size_t len) argument
1480 DebugFree(void* buf, size_t len) argument
1482 PLOG(FATAL) << "munmap(" << buf << ", " << len << ") failed"; local
1486 LengthIncludingRedZones(size_t len) argument
2219 NewString(JNIEnv* env, const jchar* unicode_chars, jsize len) argument
2303 GetStringRegion(JNIEnv* env, jstring string, jsize start, jsize len, jchar* buf) argument
2317 GetStringUTFRegion(JNIEnv* env, jstring string, jsize start, jsize len, char* buf) argument
3471 GetPrimitiveArrayRegion(const char* function_name, Primitive::Type type, JNIEnv* env, jarray array, jsize start, jsize len, void* buf) argument
3521 SetPrimitiveArrayRegion(const char* function_name, Primitive::Type type, JNIEnv* env, jarray array, jsize start, jsize len, const void* buf) argument
[all...]
H A Dutf_test.cc202 size_t len = 0; local
205 len++;
225 len++;
227 return len;
/art/runtime/base/
H A Dstringpiece.h55 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { } argument
70 void set(const char* data_in, size_type len) { argument
72 length_ = len;
82 void set(const void* data_in, size_type len) { argument
84 length_ = len;
175 StringPiece::size_type len = x.size(); local
176 if (len != y.size()) {
185 if (len == 0) {
190 if (p1[len
[all...]
H A Dbit_vector.h260 void CopyTo(void* dst, size_t len) const {
261 DCHECK_LE(static_cast<size_t>(GetHighestBitSet() + 1), len * kBitsPerByte);
263 if (vec_len < len) {
266 memset(dst_padding, 0, len - vec_len);
268 memcpy(dst, storage_, len);
/art/runtime/interpreter/mterp/
H A 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(token
[all...]
/art/test/011-array-copy/src/
H A DMain.java164 final int len = 10;
165 System.arraycopy(new float[len], 0, new float[len], 0, len);
166 System.arraycopy(new double[len], 0, new double[len], 0, len);
/art/tools/
H A 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:
H A Dcpplint.py804 return fullname[len(prefix) + 1:]
820 # return fullname[len(prefix) + 1:]
821 return "art/" + fullname[len(prefix) + 1:]
961 while lineix < len(lines):
967 return len(lines)
972 while lineix < len(lines):
976 return len(lines)
990 while lineix < len(lines):
992 if lineix_begin >= len(lines):
995 if lineix_end >= len(line
[all...]
/art/tools/checker/file_format/checker/
H A 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(checkerFil
[all...]
/art/tools/dmtracedump/
H A Dcreatetesttrace.cc84 char* strndup(const char* src, size_t len) { argument
85 char* dest = new char[len + 1];
86 strncpy(dest, src, len);
87 dest[len] = 0;
160 int32_t len; local
207 len = cp - save_cp;
208 records[nextRecord].fullName = strndup(save_cp, len);
216 len = cp - save_cp;
217 if (len > 0) records[nextRecord].className = strndup(save_cp, len);
[all...]
/art/runtime/openjdkjvm/
H A DOpenjdkJvm.cc161 JNIEXPORT jint JVM_GetLastErrorString(char* buf, int len) { argument
163 if (len == 0) {
168 char* result = strerror_r(err, buf, len);
170 strncpy(buf, result, len);
171 buf[len - 1] = '\0';
177 UNUSED(len);
186 int len = jio_vfprintf(fp, fmt, args); local
189 return len;
229 int len; local
231 len
247 socklen_t len = *optlen; local
254 socklen_t len = *addrlen; local
[all...]
/art/test/115-native-bridge/
H A Dnativebridge.cc288 size_t len = strlen(libpath); local
289 char* tmp = new char[len + 10];
290 strncpy(tmp, libpath, len);
291 tmp[len - 3] = '2';
292 tmp[len - 2] = '.';
293 tmp[len - 1] = 's';
294 tmp[len] = 'o';
295 tmp[len + 1] = 0;
312 uint32_t len ATTRIBUTE_UNUSED) {
/art/compiler/driver/
H A Dcompiled_method_storage.cc85 uint32_t len = sizeof(ContentType) * array.size(); local
96 const int nblocks = len / 4;
113 switch (len & 3) {
129 hash ^= len;
139 for (uint32_t i = 0; i < len; ++i) {
/art/tools/checker/
H A Dchecker.py57 maxLineNo = compiler_pass.startLineNo + len(compiler_pass.body)
58 lenLineNo = len(str(maxLineNo)) + 2
/art/test/utils/python/testgen/
H A Dutils.py76 for i in range(len(prev)):
/art/test/968-default-partial-compile-generated/util-src/
H A Dgenerate_java.py73 print("Compiled {} files".format(len(files)))
90 while len(ifaces) != 0:
/art/test/971-iface-super/util-src/
H A Dgenerate_java.py73 print("Compiled {} files".format(len(files)))
93 while len(ifaces) != 0:
/art/tools/checker/common/
H A Dlogger.py76 longestName = max(longestName, len(var))
79 padding = ' ' * (longestName - len(var))
/art/test/961-default-iface-resolution-generated/util-src/
H A Dgenerate_java.py288 extends = "extends" if len(self.ifaces) else "",
329 for i in range(len(all_supers) + 1):
333 for i in range(len(split)):
342 for i in range(len(all_supers) + 1):
/art/tools/checker/match/
H A Dfile.py112 c1Length = len(c1Pass.body)
133 assert len(assertionGroup) == 1
138 assert len(assertionGroup) == 1
/art/compiler/
H A Dcommon_compiler_test.cc104 uintptr_t len = limit - base; local
105 int result = mprotect(reinterpret_cast<void*>(base), len, PROT_READ | PROT_WRITE | PROT_EXEC);
108 FlushInstructionCache(reinterpret_cast<char*>(base), reinterpret_cast<char*>(base + len));
/art/compiler/debug/dwarf/
H A Ddebug_info_entry_writer.h176 void WriteStrp(Attribute attrib, const char* str, size_t len, argument
180 debug_str->insert(debug_str->end(), str, str + len);

Completed in 664 milliseconds

12