Home
last modified time | relevance | path

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

/art/runtime/base/
Dstringpiece.h53 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece() argument
68 void set(const char* data, int len) { in set() argument
70 length_ = len; in set()
79 void set(const void* data, int len) { in set() argument
81 length_ = len; in set()
162 int len = x.size();
163 if (len != y.size()) {
172 if (len <= 0) {
177 if (p1[len-1] != p2[len-1]) return false;
178 if (len == 1) return true;
[all …]
/art/runtime/
Dmonitor_android.cc43 static char* EventLogWriteString(char* dst, const char* value, size_t len) { in EventLogWriteString() argument
45 len = len < 32 ? len : 32; in EventLogWriteString()
46 Set4LE(reinterpret_cast<uint8_t*>(dst), len); in EventLogWriteString()
48 memcpy(dst, value, len); in EventLogWriteString()
49 return dst + len; in EventLogWriteString()
65 size_t len = strlen(procName); in LogContentionEvent() local
66 cp = EventLogWriteString(cp, procName, len); in LogContentionEvent()
Dutf.cc26 size_t len = 0; in CountModifiedUtf8Chars() local
29 len++; in CountModifiedUtf8Chars()
43 return len; in CountModifiedUtf8Chars()
Dcheck_jni.cc936 static void* Create(const void* buf, size_t len, bool modOkay) { in Create()
937 size_t newLen = ActualLength(len); in Create()
947 memcpy(newBuf + kGuardLen / 2, buf, len); in Create()
953 adler = adler32(adler, reinterpret_cast<const Bytef*>(buf), len); in Create()
961 pExtra->original_length = len; in Create()
972 size_t len = pExtra->original_length; in Destroy() local
973 DebugFree(dataBuf, len); in Destroy()
1000 size_t len = pExtra->original_length; in Check() local
1010 int offset = kGuardLen / 2 + len; in Check()
1035 adler = adler32(adler, (const Bytef*)dataBuf, len); in Check()
[all …]
Dcommon_test.h235 uintptr_t len = limit - base; in MakeExecutable() local
236 int result = mprotect(reinterpret_cast<void*>(base), len, PROT_READ | PROT_WRITE | PROT_EXEC); in MakeExecutable()
242 __builtin___clear_cache(reinterpret_cast<void*>(base), reinterpret_cast<void*>(base + len)); in MakeExecutable()
Dutils.cc934 int len = s - thread_name; in SetThreadName() local
935 if (len < 15 || hasAt || !hasDot) { in SetThreadName()
938 s = thread_name + len - 15; in SetThreadName()
Ddebugger.h382 static void DdmSendChunk(uint32_t type, size_t len, const uint8_t* buf)
/art/tools/
Dgenerate-operator-out.py55 if len(enclosing_classes) > 0:
69 namespaces = namespaces[0:len(namespaces) - 1]
79 enclosing_classes = enclosing_classes[0:len(enclosing_classes) - 1]
105 if len(line) == 0:
125 rest = rest[(len(m_literal.group(0))):]
138 if len(rest):
141 if len(enclosing_classes) > 0:
Dcpplint.py778 return fullname[len(prefix) + 1:]
795 return "art/" + fullname[len(prefix) + 1:]
935 while lineix < len(lines):
941 return len(lines)
946 while lineix < len(lines):
950 return len(lines)
964 while lineix < len(lines):
966 if lineix_begin >= len(lines):
969 if lineix_end >= len(lines):
1006 self.num_lines = len(lines)
[all …]