Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 87) sorted by relevance

1234

/art/test/004-StackWalk/src/
DMain.java42 String s = new String(); in shlemiel() local
43 s += s0; in shlemiel()
44 s += s1; in shlemiel()
45 s += s2; in shlemiel()
46 s += s3; in shlemiel()
47 s += s4; in shlemiel()
48 s += s5; in shlemiel()
49 s += s6; in shlemiel()
50 s += s7; in shlemiel()
51 s += s8; in shlemiel()
[all …]
/art/runtime/
Dintern_table.cc85 mirror::String* InternTable::LookupStrong(mirror::String* s) { in LookupStrong() argument
86 return strong_interns_.Find(s); in LookupStrong()
89 mirror::String* InternTable::LookupWeak(mirror::String* s) { in LookupWeak() argument
90 return weak_interns_.Find(s); in LookupWeak()
99 mirror::String* InternTable::InsertStrong(mirror::String* s) { in InsertStrong() argument
102 runtime->RecordStrongStringInsertion(s); in InsertStrong()
105 new_strong_intern_roots_.push_back(GcRoot<mirror::String>(s)); in InsertStrong()
107 strong_interns_.Insert(s); in InsertStrong()
108 return s; in InsertStrong()
111 mirror::String* InternTable::InsertWeak(mirror::String* s) { in InsertWeak() argument
[all …]
Dintern_table.h66 mirror::String* InternStrong(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
69 mirror::String* InternWeak(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
74 bool ContainsWeak(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
120 mirror::String* Find(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_)
122 void Insert(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_)
124 void Remove(mirror::String* s)
153 mirror::String* Insert(mirror::String* s, bool is_strong)
157 mirror::String* LookupStrong(mirror::String* s)
160 mirror::String* LookupWeak(mirror::String* s)
163 mirror::String* InsertStrong(mirror::String* s)
[all …]
Djni_internal_test.cc390 jstring s = env_->NewStringUTF("poop"); in TEST_F() local
391 ASSERT_EQ(4, env_->GetIntField(s, fid2)); in TEST_F()
426 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c)); in TEST_F() local
427 ASSERT_NE(s, nullptr); in TEST_F()
428 env_->CallVoidMethod(s, mid2); in TEST_F()
441 s = env_->NewStringUTF("poop"); in TEST_F()
442 ASSERT_NE(s, nullptr); in TEST_F()
443 ASSERT_EQ(4, env_->CallIntMethod(s, mid2)); in TEST_F()
918 jstring s = env_->NewStringUTF("poop"); in TEST_F() local
919 jobjectArray a = env_->NewObjectArray(2, element_class, s); in TEST_F()
[all …]
Dutils.cc597 std::string MangleForJni(const std::string& s) { in MangleForJni() argument
599 size_t char_count = CountModifiedUtf8Chars(s.c_str()); in MangleForJni()
600 const char* cp = &s[0]; in MangleForJni()
768 bool IsValidMemberName(const char* s) { in IsValidMemberName() argument
771 switch (*s) { in IsValidMemberName()
777 s++; in IsValidMemberName()
782 switch (*s) { in IsValidMemberName()
786 return angle_name && s[1] == '\0'; in IsValidMemberName()
789 if (!IsValidPartOfMemberNameUtf8(&s)) { in IsValidMemberName()
796 static bool IsValidClassName(const char* s, ClassNameType type, char separator) { in IsValidClassName() argument
[all …]
Dtransaction.h61 void RecordStrongStringInsertion(mirror::String* s)
64 void RecordWeakStringInsertion(mirror::String* s)
67 void RecordStrongStringRemoval(mirror::String* s)
70 void RecordWeakStringRemoval(mirror::String* s)
146 InternStringLog(mirror::String* s, StringKind kind, StringOp op) in InternStringLog() argument
147 : str_(s), string_kind_(kind), string_op_(op) { in InternStringLog()
148 DCHECK(s != nullptr); in InternStringLog()
Dmethod_helper-inl.h68 mirror::String* s = declaringClass->GetDexCacheStrings()->Get(string_idx); in ResolveString() local
69 if (UNLIKELY(s == nullptr)) { in ResolveString()
72 s = Runtime::Current()->GetClassLinker()->ResolveString(*method->GetDexFile(), string_idx, in ResolveString()
75 return s; in ResolveString()
Dparsed_options.cc55 size_t ParseMemoryOption(const char* s, size_t div) { in ParseMemoryOption() argument
58 if (isdigit(*s)) { in ParseMemoryOption()
60 size_t val = strtoul(s, &s2, 10); in ParseMemoryOption()
61 if (s2 != s) { in ParseMemoryOption()
856 bool ParsedOptions::ParseStringAfterChar(const std::string& s, char c, std::string* parsed_value) { in ParseStringAfterChar() argument
857 std::string::size_type colon = s.find(c); in ParseStringAfterChar()
859 Usage("Missing char %c in option %s\n", c, s.c_str()); in ParseStringAfterChar()
863 *parsed_value = s.substr(colon + 1); in ParseStringAfterChar()
867 bool ParsedOptions::ParseInteger(const std::string& s, char after_char, int* parsed_value) { in ParseInteger() argument
868 std::string::size_type colon = s.find(after_char); in ParseInteger()
[all …]
/art/runtime/base/
Dstringpiece.cc34 StringPiece::size_type StringPiece::find(const StringPiece& s, size_type pos) const { in find() argument
39 s.ptr_, s.ptr_ + s.length_); in find()
41 return xpos + s.length_ <= static_cast<size_type>(length_) ? xpos : npos; in find()
61 StringPiece::size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind() argument
62 if (length_ < s.length_) return npos; in rfind()
64 if (s.length_ == 0) return std::min(ulen, pos); in rfind()
66 const char* last = ptr_ + std::min(ulen - s.length_, pos) + s.length_; in rfind()
67 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind()
Dhash_set_test.cc124 for (const std::string& s : hash_set) { in TEST_F() local
125 ++found_count[s]; in TEST_F()
184 const std::string& s = strings[PRand() % string_count]; in TEST_F() local
185 hash_set.Insert(s); in TEST_F()
186 std_set.insert(s); in TEST_F()
187 ASSERT_EQ(*hash_set.Find(s), *std_set.find(s)); in TEST_F()
189 const std::string& s = strings[PRand() % string_count]; in TEST_F() local
190 auto it1 = hash_set.Find(s); in TEST_F()
191 auto it2 = std_set.find(s); in TEST_F()
/art/test/003-omnibus-opcodes/src/
DInternedString.java29 String s = "blah"; in makeWeakString() local
30 s = s + s; in makeWeakString()
31 WeakReference<String> strRef = new WeakReference<String>(s.intern()); in makeWeakString()
51 String s = CONST; in testImmortalInternedString() local
53 strRef = new WeakReference<String>(s.intern()); in testImmortalInternedString()
55 s = ""; in testImmortalInternedString()
/art/runtime/mirror/
Darray-inl.h222 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) { in ArrayBackwardCopy() argument
224 s += count; in ArrayBackwardCopy()
227 s--; in ArrayBackwardCopy()
228 *d = *s; in ArrayBackwardCopy()
235 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { in ArrayForwardCopy() argument
237 *d = *s; in ArrayForwardCopy()
239 s++; in ArrayForwardCopy()
269 const uint8_t* s = reinterpret_cast<const uint8_t*>(src_raw); in Memmove() local
270 memmove(d, s, count); in Memmove()
275 const uint16_t* s = reinterpret_cast<const uint16_t*>(src_raw); in Memmove() local
[all …]
/art/test/064-field-access/src/
DMain.java389 SamePackage s = new SamePackage(); in doDirectTests() local
390 check(s.samePackagePublicBooleanInstanceField == true); in doDirectTests()
391 check(s.samePackagePublicByteInstanceField == 2); in doDirectTests()
392 check(s.samePackagePublicCharInstanceField == 3); in doDirectTests()
393 check(s.samePackagePublicShortInstanceField == 4); in doDirectTests()
394 check(s.samePackagePublicIntInstanceField == 5); in doDirectTests()
395 check(s.samePackagePublicLongInstanceField == 6); in doDirectTests()
396 check(s.samePackagePublicFloatInstanceField == 7.0f); in doDirectTests()
397 check(s.samePackagePublicDoubleInstanceField == 8.0); in doDirectTests()
398 check(s.samePackagePublicObjectInstanceField == "9"); in doDirectTests()
[all …]
/art/runtime/arch/mips/
Dquick_entrypoints_mips.S269 l.s $f0, 0($a1)
270 l.s $f1, 4($a1)
271 l.s $f2, 8($a1)
272 l.s $f3, 12($a1)
273 l.s $f4, 16($a1)
274 l.s $f5, 20($a1)
275 l.s $f6, 24($a1)
276 l.s $f7, 28($a1)
277 l.s $f8, 32($a1)
278 l.s $f9, 36($a1)
[all …]
/art/runtime/jdwp/
Djdwp_expand_buf.cc166 void expandBufAddUtf8String(ExpandBuf* pBuf, const char* s) { in expandBufAddUtf8String() argument
167 int strLen = strlen(s); in expandBufAddUtf8String()
169 SetUtf8String(pBuf->storage + pBuf->curLen, s, strLen); in expandBufAddUtf8String()
173 void expandBufAddUtf8String(ExpandBuf* pBuf, const std::string& s) { in expandBufAddUtf8String() argument
174 ensureSpace(pBuf, sizeof(uint32_t) + s.size()); in expandBufAddUtf8String()
175 SetUtf8String(pBuf->storage + pBuf->curLen, s.data(), s.size()); in expandBufAddUtf8String()
176 pBuf->curLen += sizeof(uint32_t) + s.size(); in expandBufAddUtf8String()
Djdwp_request.cc56 std::string s; in ReadUtf8String() local
57 s.resize(length); in ReadUtf8String()
58 memcpy(&s[0], p_, length); in ReadUtf8String()
60 VLOG(jdwp) << " string \"" << s << "\""; in ReadUtf8String()
61 return s; in ReadUtf8String()
/art/test/StackWalk2/
DStackWalk2.java44 String s = str; // use v0, v1, v3 in strTest() local
46 System.logI(s); // use v1 for PrintStream, v0 for s in strTest()
47 s = null; // use v0 in strTest()
48 System.logI(s); // use v1 for PrintStream, v0 for s in strTest()
/art/test/004-InterfaceTest/src/
DMain.java24 String s = "asdf"; in test_virtual() local
27 map.put(intobj, s); in test_virtual()
35 String s = "asdf"; in test_interface() local
38 map.put(intobj, s); in test_interface()
/art/test/103-string-append/src/
DMain.java22 String s; in main() local
24 s = ""; in main()
26 s += "x"; in main()
/art/runtime/native/
Djava_lang_String.cc42 mirror::String* s = soa.Decode<mirror::String*>(java_this); in String_fastIndexOf() local
43 return s->FastIndexOf(ch, start); in String_fastIndexOf()
48 mirror::String* s = soa.Decode<mirror::String*>(javaThis); in String_intern() local
49 mirror::String* result = s->Intern(); in String_intern()
/art/test/022-interface/src/
DMain.java64 public CharSequence subSequence(int s, int e) { in objectOverrideTests()
65 return toString().subSequence(s, e); in objectOverrideTests()
81 public CharSequence subSequence(int s, int e) { in subSequence() argument
/art/runtime/base/unix_file/
DREADME3 This is intended to be lightweight and easy to use, similar to Java's
8 it's trivial to add new implementations.
10 This code will not log, because it can't know whether that's appropriate in
/art/test/027-arithmetic/src/
DMain.java133 short s = -4; in unsignedShiftTest() local
138 s >>>= 4; in unsignedShiftTest()
142 System.out.println("b=" + b + ", s=" + s + ", c=" + (int)c + ", i=" +i); in unsignedShiftTest()
144 + ", s=0x" + Integer.toHexString((int)s) in unsignedShiftTest()
/art/test/027-arithmetic/
Dexpected.txt17 b=-1, s=-1, c=4095, i=268435455
18 b=0xffffffff, s=0xffffffff, c=0xfff, i=0xfffffff
/art/runtime/verifier/
Dreg_type.cc912 mirror::Class* RegType::ClassJoin(mirror::Class* s, mirror::Class* t) { in ClassJoin() argument
913 DCHECK(!s->IsPrimitive()) << PrettyClass(s); in ClassJoin()
915 if (s == t) { in ClassJoin()
916 return s; in ClassJoin()
917 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
918 return s; in ClassJoin()
919 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
921 } else if (s->IsArrayClass() && t->IsArrayClass()) { in ClassJoin()
922 mirror::Class* s_ct = s->GetComponentType(); in ClassJoin()
927 mirror::Class* result = s->GetSuperClass(); // short-cut to java.lang.Object in ClassJoin()
[all …]

1234