Home
last modified time | relevance | path

Searched refs:sr1 (Results 1 – 3 of 3) sorted by relevance

/art/libdexfile/dex/
Dstring_reference.h48 bool operator()(const StringReference& sr1, const StringReference& sr2) const { in operator()
54 if (sr1.dex_file == sr2.dex_file) { in operator()
57 sr1.index < sr2.index, in operator()
58 CompareModifiedUtf8ToModifiedUtf8AsUtf16CodePointValues(sr1.GetStringData(), in operator()
60 return sr1.index < sr2.index; in operator()
63 return CompareModifiedUtf8ToModifiedUtf8AsUtf16CodePointValues(sr1.GetStringData(), in operator()
Dstring_reference_test.cc39 StringReference sr1(dex_file1.get(), dex::StringIndex(0)); in TEST() local
49 EXPECT_TRUE(cmp(sr1, sr2)); // "String1" < "String2" is true. in TEST()
50 EXPECT_FALSE(cmp(sr2, sr1)); // "String2" < "String1" is false. in TEST()
102 StringReference sr1(dex_file1.get(), dex::StringIndex(index1)); in TEST() local
104 EXPECT_EQ(expectedCmp12[index1][index2], cmp(sr1, sr2)) << index1 << " " << index2; in TEST()
105 EXPECT_EQ(expectedCmp21[index2][index1], cmp(sr2, sr1)) << index1 << " " << index2; in TEST()
Dtype_reference.h47 StringReference sr1(tr1.dex_file, tr1.dex_file->GetTypeId(tr1.TypeIndex()).descriptor_idx_); in operator()
49 return StringReferenceValueComparator()(sr1, sr2); in operator()