/external/llvm/unittests/ADT/ |
D | PointerIntPairTest.cpp | 22 PointerIntPair<PointerIntPairTest *, 2> Pair(this, 1U); in TEST_F() local 23 EXPECT_EQ(this, Pair.getPointer()); in TEST_F() 24 EXPECT_EQ(1U, Pair.getInt()); in TEST_F() 26 Pair.setInt(2); in TEST_F() 27 EXPECT_EQ(this, Pair.getPointer()); in TEST_F() 28 EXPECT_EQ(2U, Pair.getInt()); in TEST_F() 30 Pair.setPointer(nullptr); in TEST_F() 31 EXPECT_EQ(nullptr, Pair.getPointer()); in TEST_F() 32 EXPECT_EQ(2U, Pair.getInt()); in TEST_F() 34 Pair.setPointerAndInt(this, 3U); in TEST_F() [all …]
|
/external/chromium_org/net/spdy/ |
D | hpack_decoder_test.cc | 67 using testing::Pair; 137 Pair(":method", "GET"), in TEST_F() 138 Pair(":path", "/index.html"), in TEST_F() 139 Pair("cookie", "foobar=baz"))); in TEST_F() 174 Pair("cookie", " part 1; part 2 ; part3; fin!"), in TEST_F() 175 Pair("empty", ""), in TEST_F() 176 Pair("empty-joined", string("\0foo\0\0", 6)), in TEST_F() 177 Pair("joineD", string("value 1\0value 2", 15)), in TEST_F() 178 Pair("joined", "not joined"), in TEST_F() 179 Pair("passed-through", string("foo\0baz", 7)))); in TEST_F() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowPair.java | 7 import android.util.Pair; 15 @Implements(Pair.class) 17 @RealObject private Pair realPair; 24 public static <F, S> Pair<F, S> create(F f, S s) { in create() 25 return new Pair<F, S>(f, s); in create() 36 if (!(o instanceof Pair)) return false; in equals() 37 final Pair other = (Pair) o; in equals() 41 private static void setFields(Pair p, Object first, Object second) { in setFields() 43 Field f = Pair.class.getDeclaredField("first"); in setFields() 47 Field s = Pair.class.getDeclaredField("second"); in setFields()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | PairTest.java | 10 import android.util.Pair; 17 Pair<String, Integer> pair = new Pair<String, Integer>("a", 1); in testConstructor() 24 Pair<String, String> p = Pair.create("Foo", "Bar"); in testStaticCreate() 31 assertThat(Pair.create("1", 2), equalTo(Pair.create("1", 2))); in testEquals() 36 assertThat(Pair.create("1", 2).hashCode(), equalTo(Pair.create("1", 2).hashCode())); in testHash()
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/ |
D | CommonResources.java | 7 import android.util.Pair; 18 public static List<Pair<String, String>> getTextHtmlHeaders(boolean disableCache) { in getTextHtmlHeaders() 23 public static List<Pair<String, String>> getTextJavascriptHeaders(boolean disableCache) { in getTextJavascriptHeaders() 28 public static List<Pair<String, String>> getImagePngHeaders(boolean disableCache) { in getImagePngHeaders() 32 public static List<Pair<String, String>> getContentTypeAndCacheHeaders( in getContentTypeAndCacheHeaders() 34 List<Pair<String, String>> headers = new ArrayList<Pair<String, String>>(); in getContentTypeAndCacheHeaders() 35 headers.add(Pair.create("Content-Type", contentType)); in getContentTypeAndCacheHeaders() 36 if (disableCache) headers.add(Pair.create("Cache-Control", "no-store")); in getContentTypeAndCacheHeaders()
|
/external/skia/src/core/ |
D | SkPtrRecorder.cpp | 12 Pair* p = fList.begin(); in reset() 13 Pair* stop = fList.end(); in reset() 21 bool SkPtrSet::Less(const Pair& a, const Pair& b) { in Less() 31 Pair pair; in find() 34 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find() 47 Pair pair; in add() 50 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add() 66 const Pair* p = fList.begin(); in copyToArray()
|
D | SkPtrRecorder.h | 66 struct Pair { struct 75 SkTDArray<Pair> fList; argument 77 static bool Less(const Pair& a, const Pair& b);
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkPtrRecorder.cpp | 12 Pair* p = fList.begin(); in reset() 13 Pair* stop = fList.end(); in reset() 21 bool SkPtrSet::Less(const Pair& a, const Pair& b) { in Less() 31 Pair pair; in find() 34 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find() 47 Pair pair; in add() 50 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add() 66 const Pair* p = fList.begin(); in copyToArray()
|
D | SkPtrRecorder.h | 66 struct Pair { struct 75 SkTDArray<Pair> fList; argument 77 static bool Less(const Pair& a, const Pair& b);
|
/external/skia/include/core/ |
D | SkTDict.h | 39 Pair* pair = fArray.insert(~index); in set() 74 const Pair* end = fArray.end(); in findKey() 75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { in findKey() 86 struct Pair { struct 90 friend int operator<(const Pair& a, const Pair& b) { argument 94 friend int operator!=(const Pair& a, const Pair& b) { 120 const Pair* fIter; 121 const Pair* fStop; 125 SkTDArray<Pair> fArray; 139 index = SkStrSearch(&fArray.begin()->fName, count, name, len, sizeof(Pair)); in find_index()
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkTDict.h | 39 Pair* pair = fArray.insert(~index); in set() 74 const Pair* end = fArray.end(); in findKey() 75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { in findKey() 86 struct Pair { struct 90 friend int operator<(const Pair& a, const Pair& b) { argument 94 friend int operator!=(const Pair& a, const Pair& b) { 120 const Pair* fIter; 121 const Pair* fStop; 125 SkTDArray<Pair> fArray; 139 index = SkStrSearch(&fArray.begin()->fName, count, name, len, sizeof(Pair)); in find_index()
|
/external/chromium_org/mojo/public/java/src/org/chromium/mojo/system/ |
D | Pair.java | 14 public class Pair<F, S> { class 25 public Pair(F first, S second) { in Pair() method in Pair 42 if (!(o instanceof Pair)) { in equals() 45 Pair<?, ?> p = (Pair<?, ?>) o; in equals() 64 public static <A, B> Pair<A, B> create(A a, B b) { in create() 65 return new Pair<A, B>(a, b); in create()
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ |
D | Pair.java | 21 public final class Pair<L, R> { class 30 public Pair(L left, R right) { in Pair() method in Pair 45 if (!(o instanceof Pair<?, ?>)) { in equals() 48 Pair<?, ?> other = (Pair<?, ?>) o; in equals() 78 public static <L, R> Pair<L, R> create(L left, R right) { in create() 79 return new Pair<L, R>(left, right); in create()
|
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/sync/ |
D | SyncTestUtil.java | 12 import android.util.Pair; 55 public static final Pair<String, String> SYNC_SUMMARY_STATUS = 58 protected static final Pair<String, String> USERNAME_STAT = 73 private static Pair<String, String> newPair(String first, String second) { in newPair() 74 return Pair.create(first.toLowerCase(Locale.US).trim(), in newPair() 88 public static Map<Pair<String, String>, String> getAboutInfoStats(String rawJson) in getAboutInfoStats() 96 Map<Pair<String, String>, String> statLookup = new HashMap<Pair<String, String>, String>(); in getAboutInfoStats() 106 Pair<String, String> key = newPair(dataTitle, statName); in getAboutInfoStats() 120 Map<Pair<String, String>, String> expectedStats = in verifySyncIsSignedOut() 121 new HashMap<Pair<String, String>, String>(); in verifySyncIsSignedOut() [all …]
|
/external/clang/test/Index/ |
D | index-templates.cpp | 76 struct Pair { struct 85 Pair<T, U> p = { t, second_type(u) }; in init_list() argument 92 typename Comparison = compare<Pair<Key, Value> >, 93 typename Allocator = allocator<Pair<Key, Value> > > 96 void f(map<Z4, Pair<int, Z4> >); 98 template class Pair<int, int>; variable 101 struct SuperPair : Pair<int, int>, Pair<T, U> { };
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
D | Pair.h | 35 class Pair FINAL : public RefCountedWillBeGarbageCollected<Pair> { 39 …static PassRefPtrWillBeRawPtr<Pair> create(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> first, PassRe… in create() 42 return adoptRefWillBeNoop(new Pair(first, second, identicalValuesPolicy)); in create() 58 bool equals(const Pair& other) const in equals() 68 Pair() in Pair() function 73 …Pair(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> first, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> se… in Pair() function
|
/external/chromium_org/v8/test/mjsunit/ |
D | indexed-accessors.js | 44 function Pair(x, y) { class 48 Pair.prototype.__defineGetter__('0', function() { return this.x; }); 49 Pair.prototype.__defineGetter__('1', function() { return this.y; }); 50 Pair.prototype.__defineSetter__('0', function(x) { this.x = x; }); 51 Pair.prototype.__defineSetter__('1', function(y) { this.y = y; }); 53 var p = new Pair(2, 3);
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
D | Annotation.java | 48 static class Pair { class in Annotation 181 Pair p = new Pair(); in addMemberValue() 194 Pair p = new Pair(); in addMemberValue() 203 private void addMemberValue(Pair pair) { in addMemberValue() 272 Pair p = (Pair)members.get(name); in getMemberValue() 315 Pair pair = (Pair)it.next(); in write()
|
/external/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 790 void DependenceAnalysis::removeMatchingExtensions(Subscript *Pair) { in removeMatchingExtensions() argument 791 const SCEV *Src = Pair->Src; in removeMatchingExtensions() 792 const SCEV *Dst = Pair->Dst; in removeMatchingExtensions() 798 Pair->Src = SrcCast->getOperand(); in removeMatchingExtensions() 799 Pair->Dst = DstCast->getOperand(); in removeMatchingExtensions() 3185 SmallVectorImpl<Subscript> &Pair, in tryDelinearize() argument 3237 Pair.resize(size); in tryDelinearize() 3239 Pair[i].Src = SrcSubscripts[i]; in tryDelinearize() 3240 Pair[i].Dst = DstSubscripts[i]; in tryDelinearize() 3338 SmallVector<Subscript, 4> Pair(Pairs); in depends() local [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/ |
D | AbstractSampleEncryptionBox.java | 70 e.pairs = new LinkedList<Entry.Pair>(); in _parseDetails() 163 for (Entry.Pair pair : entry.pairs) { in getContent() 196 public List<Pair> pairs = new LinkedList<Pair>(); 209 for (Entry.Pair pair : pairs) { in getSize() 216 public Pair createPair(int clear, long encrypted) { in createPair() 217 return new Pair(clear, encrypted); in createPair() 221 public class Pair { class in AbstractSampleEncryptionBox.Entry 225 public Pair(int clear, long encrypted) { in Pair() method in AbstractSampleEncryptionBox.Entry.Pair 239 Pair pair = (Pair) o; in equals()
|
/external/chromium_org/mojo/android/javatests/src/org/chromium/mojo/system/impl/ |
D | CoreImplTest.java | 21 import org.chromium.mojo.system.Pair; 98 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe(); in testWaitMany() 101 List<Pair<Handle, Core.WaitFlags>> handlesToWaitOn = new ArrayList< in testWaitMany() 102 Pair<Handle, Core.WaitFlags>>(); in testWaitMany() 105 new Pair<Handle, Core.WaitFlags>(handles.second, Core.WaitFlags.READABLE)); in testWaitMany() 107 new Pair<Handle, Core.WaitFlags>(handles.first, Core.WaitFlags.WRITABLE)); in testWaitMany() 114 new Pair<Handle, Core.WaitFlags>(handles.first, Core.WaitFlags.WRITABLE)); in testWaitMany() 116 new Pair<Handle, Core.WaitFlags>(handles.second, Core.WaitFlags.READABLE)); in testWaitMany() 133 Pair<? extends Handle, ? extends Handle> handles = core.createMessagePipe(); in testGetCore() 168 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe(); in testMessagePipeEmpty() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | DenseMapInfo.h | 135 typedef std::pair<T, U> Pair; 139 static inline Pair getEmptyKey() { 143 static inline Pair getTombstoneKey() { 147 static unsigned getHashValue(const Pair& PairVal) { 160 static bool isEqual(const Pair &LHS, const Pair &RHS) {
|
/external/llvm/lib/AsmParser/ |
D | LLLexer.cpp | 79 uint64_t Pair[2]) { in HexToIntPair() 80 Pair[0] = 0; in HexToIntPair() 83 Pair[0] *= 16; in HexToIntPair() 84 Pair[0] += hexDigitValue(*Buffer); in HexToIntPair() 86 Pair[1] = 0; in HexToIntPair() 88 Pair[1] *= 16; in HexToIntPair() 89 Pair[1] += hexDigitValue(*Buffer); in HexToIntPair() 98 uint64_t Pair[2]) { in FP80HexToIntPair() 99 Pair[1] = 0; in FP80HexToIntPair() 102 Pair[1] *= 16; in FP80HexToIntPair() [all …]
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
D | shortest-path.h | 171 typedef pair<StateId, Weight> Pair; typedef 173 ShortestPathCompare(const vector<Pair>& pairs, in ShortestPathCompare() 179 const Pair &px = pairs_[x]; in operator() 180 const Pair &py = pairs_[y]; in operator() 196 const vector<Pair> &pairs_; 233 typedef pair<StateId, Weight> Pair; in ShortestPath() typedef 273 vector<Pair> pairs; in ShortestPath() 289 pairs.push_back(Pair(kNoStateId, Weight::Zero())); in ShortestPath() 290 pairs[final] = Pair(rfst.Start(), Weight::One()); in ShortestPath() 296 Pair p = pairs[state]; in ShortestPath() [all …]
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
D | AwContentsClientAutoLoginTest.java | 8 import android.util.Pair; 34 List<Pair<String, String>> headers = new ArrayList<Pair<String, String>>(); in autoLoginTestHelper() 35 headers.add(Pair.create("x-auto-login", xAutoLoginHeader)); in autoLoginTestHelper()
|