/external/libweave/src/ |
D | string_utils_unittest.cc | 79 std::pair<std::string, std::string> pair; in TEST() local 81 pair = SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", true); in TEST() 82 EXPECT_EQ("123", pair.first); in TEST() 83 EXPECT_EQ("4 : 56 : 789", pair.second); in TEST() 85 pair = SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", false); in TEST() 86 EXPECT_EQ(" 123 ", pair.first); in TEST() 87 EXPECT_EQ(" 4 : 56 : 789 ", pair.second); in TEST() 89 pair = SplitAtFirst("", "=", true); in TEST() 90 EXPECT_EQ("", pair.first); in TEST() 91 EXPECT_EQ("", pair.second); in TEST() [all …]
|
/external/libbrillo/brillo/strings/ |
D | string_utils_unittest.cc | 75 std::pair<std::string, std::string> pair; in TEST() local 77 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", true); in TEST() 78 EXPECT_EQ("123", pair.first); in TEST() 79 EXPECT_EQ("4 : 56 : 789", pair.second); in TEST() 81 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", false); in TEST() 82 EXPECT_EQ(" 123 ", pair.first); in TEST() 83 EXPECT_EQ(" 4 : 56 : 789 ", pair.second); in TEST() 85 pair = string_utils::SplitAtFirst("", "="); in TEST() 86 EXPECT_EQ("", pair.first); in TEST() 87 EXPECT_EQ("", pair.second); in TEST() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_program_pair.c | 38 int rc_pair_alloc_source(struct rc_pair_instruction *pair, in rc_pair_alloc_source() argument 53 if (rgb && pair->RGB.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source() 54 && index != pair->RGB.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source() 58 if (alpha && pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source() 59 && index != pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source() 67 if (pair->RGB.Src[i].Used) { in rc_pair_alloc_source() 68 if (pair->RGB.Src[i].File != file || in rc_pair_alloc_source() 69 pair->RGB.Src[i].Index != index) { in rc_pair_alloc_source() 77 if (pair->Alpha.Src[i].Used) { in rc_pair_alloc_source() 78 if (pair->Alpha.Src[i].File != file || in rc_pair_alloc_source() [all …]
|
D | radeon_pair_translate.c | 150 struct rc_pair_instruction * pair, in set_pair_instruction() argument 157 memset(pair, 0, sizeof(struct rc_pair_instruction)); in set_pair_instruction() 163 pair->RGB.Opcode = RC_OPCODE_REPL_ALPHA; in set_pair_instruction() 165 pair->RGB.Opcode = inst->Opcode; in set_pair_instruction() 167 pair->RGB.Saturate = 1; in set_pair_instruction() 170 pair->Alpha.Opcode = inst->Opcode; in set_pair_instruction() 172 pair->Alpha.Saturate = 1; in set_pair_instruction() 196 pair->RGB.Src[i].File = in set_pair_instruction() 198 pair->RGB.Src[i].Index = in set_pair_instruction() 200 pair->RGB.Src[i].Used = 1; in set_pair_instruction() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | avpair.c | 163 VALUE_PAIR *pair; in rc_avpair_gen() local 207 if ((pair = in rc_avpair_gen() 215 strcpy (pair->name, attr->name); in rc_avpair_gen() 216 pair->attribute = attr->value; in rc_avpair_gen() 217 pair->vendorcode = VENDOR_NONE; in rc_avpair_gen() 218 pair->type = attr->type; in rc_avpair_gen() 219 pair->next = (VALUE_PAIR *) NULL; in rc_avpair_gen() 225 memcpy (pair->strvalue, (char *) ptr, (size_t) attrlen); in rc_avpair_gen() 226 pair->strvalue[attrlen] = '\0'; in rc_avpair_gen() 227 pair->lvalue = attrlen; in rc_avpair_gen() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationFastLatin.java | 741 private static int getPrimaries(int variableTop, int pair) { in getPrimaries() argument 742 int ce = pair & 0xffff; in getPrimaries() 743 if(ce >= MIN_SHORT) { return pair & TWO_SHORT_PRIMARIES_MASK; } in getPrimaries() 744 if(ce > variableTop) { return pair & TWO_LONG_PRIMARIES_MASK; } in getPrimaries() 746 return pair; // special mini CE in getPrimaries() 758 private static int getSecondaries(int variableTop, int pair) { in getSecondaries() argument 759 if(pair <= 0xffff) { in getSecondaries() 761 if(pair >= MIN_SHORT) { in getSecondaries() 762 pair = getSecondariesFromOneShortCE(pair); in getSecondaries() 763 } else if(pair > variableTop) { in getSecondaries() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationFastLatin.java | 737 private static int getPrimaries(int variableTop, int pair) { in getPrimaries() argument 738 int ce = pair & 0xffff; in getPrimaries() 739 if(ce >= MIN_SHORT) { return pair & TWO_SHORT_PRIMARIES_MASK; } in getPrimaries() 740 if(ce > variableTop) { return pair & TWO_LONG_PRIMARIES_MASK; } in getPrimaries() 742 return pair; // special mini CE in getPrimaries() 754 private static int getSecondaries(int variableTop, int pair) { in getSecondaries() argument 755 if(pair <= 0xffff) { in getSecondaries() 757 if(pair >= MIN_SHORT) { in getSecondaries() 758 pair = getSecondariesFromOneShortCE(pair); in getSecondaries() 759 } else if(pair > variableTop) { in getSecondaries() [all …]
|
/external/libcxx/include/ |
D | utility | 58 struct pair 66 pair(const pair&) = default; 67 pair(pair&&) = default; 68 constexpr pair(); 69 pair(const T1& x, const T2& y); // constexpr in C++14 70 template <class U, class V> pair(U&& x, V&& y); // constexpr in C++14 71 template <class U, class V> pair(const pair<U, V>& p); // constexpr in C++14 72 template <class U, class V> pair(pair<U, V>&& p); // constexpr in C++14 74 pair(piecewise_construct_t, tuple<Args1...> first_args, 77 template <class U, class V> pair& operator=(const pair<U, V>& p); [all …]
|
/external/google-breakpad/src/client/mac/handler/testcases/testdata/ |
D | dump_syms_i386_breakpad.sym | 497 …reader::FunctionInfo*, std::less<unsigned long long>, std::allocator<std::pair<unsigned long long … 815 …2reader::DwarfTag, std::list<std::pair<dwarf2reader::DwarfAttribute, dwarf2reader::DwarfForm>, std… 844 …const_iterator<std::pair<unsigned long long const, dwarf2reader::FunctionInfo*> >::operator!=(std:… 847 FUNC 6bea 16 0 std::_Rb_tree_const_iterator<std::pair<unsigned long long const, dwarf2reader::Funct… 854 FUNC 6c2c 16 0 std::_Rb_tree_const_iterator<std::pair<unsigned long long const, dwarf2reader::Funct… 859 …pair<unsigned long long const, std::pair<std::string, unsigned int> > >::operator!=(std::_Rb_tree_… 862 FUNC 6c7a 16 0 std::_Rb_tree_const_iterator<std::pair<unsigned long long const, std::pair<std::stri… 879 FUNC 6d4e 25 0 std::_Rb_tree_const_iterator<std::pair<unsigned long long const, dwarf2reader::Funct… 884 FUNC 6d74 25 0 std::_Rb_tree_const_iterator<std::pair<unsigned long long const, std::pair<std::stri… 889 …pair<unsigned long long const, dwarf2reader::FunctionInfo*>, std::_Select1st<std::pair<unsigned lo… [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | multi-level-substitution.cpp | 5 template<typename T, typename U> struct pair { }; struct 38 struct Inner<tuple<pair<Types, YTypes>...> > { 43 int check0[X<short, int, long>::Inner<tuple<pair<short, unsigned short>, 44 pair<int, unsigned int>, 45 pair<long, unsigned long>> 48 int check1[X<short, int>::Inner<tuple<pair<short, unsigned short>, 49 pair<int, unsigned int>, 50 pair<long, unsigned long>> 61 struct Inner<tuple<pair<Types, YTypes>...>, 67 int check2[X1<short, int, long>::Inner<tuple<pair<short, unsigned short>, [all …]
|
/external/libcxx/test/std/algorithms/alg.sorting/alg.min.max/ |
D | minmax_init_list.pass.cpp | 22 assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3))); in main() 23 assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3))); in main() 24 assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3))); in main() 25 assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3))); in main() 26 assert((std::minmax({3, 1, 2}) == std::pair<int, int>(1, 3))); in main() 27 assert((std::minmax({3, 2, 1}) == std::pair<int, int>(1, 3))); in main() 30 static_assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3)), ""); in main() 31 static_assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3)), ""); in main() 32 static_assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3)), ""); in main() 33 static_assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3)), ""); in main() [all …]
|
D | minmax_init_list_comp.pass.cpp | 30 std::pair<int, int> p = std::minmax(il, std::ref(pred)); in test_all_equal() 41 assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 42 assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 43 assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 44 assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 45 assert((std::minmax({3, 1, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 46 assert((std::minmax({3, 2, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 47 assert((std::minmax({1, 2, 3}, all_equal ) == std::pair<int, int>(1, 3))); in main() 50 …assert((std::minmax({1, 2, 2, 3, 3, 3, 5, 5, 5, 5, 5, 3}, std::ref(pred)) == std::pair<int, int>(5… in main() 68 static_assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main() [all …]
|
/external/lzma/CPP/7zip/UI/Common/ |
D | UpdateProduce.cpp | 19 const CUpdatePair &pair = updatePairs[i]; in UpdateProduce() local 22 up2.DirIndex = pair.DirIndex; in UpdateProduce() 23 up2.ArcIndex = pair.ArcIndex; in UpdateProduce() 27 switch (actionSet.StateActions[pair.State]) in UpdateProduce() 36 callback->ShowDeleteFile(pair.ArcIndex); in UpdateProduce() 40 if (pair.State == NPairState::kOnlyOnDisk) in UpdateProduce() 42 if (pair.State == NPairState::kOnlyInArchive) in UpdateProduce() 44 if (pair.HostIndex >= 0) in UpdateProduce() 51 if (updatePairs[pair.HostIndex].DirIndex >= 0) in UpdateProduce() 60 if (pair.State == NPairState::kOnlyInArchive || in UpdateProduce() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | collationfastlatin.cpp | 945 CollationFastLatin::getSecondaries(uint32_t variableTop, uint32_t pair) { in getSecondaries() argument 946 if(pair <= 0xffff) { in getSecondaries() 948 if(pair >= MIN_SHORT) { in getSecondaries() 949 pair = getSecondariesFromOneShortCE(pair); in getSecondaries() 950 } else if(pair > variableTop) { in getSecondaries() 951 pair = COMMON_SEC_PLUS_OFFSET; in getSecondaries() 952 } else if(pair >= MIN_LONG) { in getSecondaries() 953 pair = 0; // variable in getSecondaries() 957 uint32_t ce = pair & 0xffff; in getSecondaries() 959 pair = (pair & TWO_SECONDARIES_MASK) + TWO_SEC_OFFSETS; in getSecondaries() [all …]
|
/external/fio/ |
D | json.c | 21 struct json_pair *pair = malloc(sizeof(struct json_pair)); in json_create_pair() local 22 if (pair) { in json_create_pair() 23 pair->name = strdup(name); in json_create_pair() 24 pair->value = value; in json_create_pair() 27 value->parent_pair = pair; in json_create_pair() 29 return pair; in json_create_pair() 122 static void json_free_pair(struct json_pair *pair); 145 static void json_free_pair(struct json_pair *pair) in json_free_pair() argument 147 json_free_value(pair->value); in json_free_pair() 148 free(pair->name); in json_free_pair() [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | 2009-04-scale.ll | 5 …pl, [256 x %struct.pair], [256 x %struct.pair], [256 x %struct.pair], [256 x %struct.pair], [256 x… 7 %struct.pair = type { i64, i64 } 14 …%3 = getelementptr %struct.array, %struct.array* null, i32 0, i32 3 ; <[256 x %struct.pair]*> [#u… 15 …%4 = getelementptr [256 x %struct.pair], [256 x %struct.pair]* %3, i32 0, i32 %2 ; <%struct.pair*… 16 %5 = getelementptr %struct.pair, %struct.pair* %4, i32 0, i32 1 ; <i64*> [#uses=1]
|
D | misched-aa-colored.ll | 42 %"class.llvm::DenseMap.34.634.994.1954.2074.2314.4114" = type { %"struct.std::pair.10.33.633.993.19… 43 %"struct.std::pair.10.33.633.993.1953.2073.2313.4113" = type { i32, %"struct.llvm::PointerAlignElem… 46 %"class.llvm::DenseMap.11.38.638.998.1958.2078.2318.4118" = type { %"struct.std::pair.14.37.637.997… 47 %"struct.std::pair.14.37.637.997.1957.2077.2317.4117" = type { i32, i32 } 51 …ype { %"struct.std::_Vector_base<std::pair<llvm::MVT, const llvm::TargetRegisterClass *>, std::all… 52 …pair<llvm::MVT, const llvm::TargetRegisterClass *>, std::allocator<std::pair<llvm::MVT, const llvm… 53 %"struct.std::pair.20.41.641.1001.1961.2081.2321.4121" = type { %"class.llvm::MVT.5.605.965.1925.20… 55 …pair<unsigned int, llvm::MVT::SimpleValueType>, std::pair<const std::pair<unsigned int, llvm::MVT:… 56 …pair<unsigned int, llvm::MVT::SimpleValueType>, std::pair<const std::pair<unsigned int, llvm::MVT:… 84 %"class.llvm::DenseMap.37.78.678.1038.1998.2118.2358.4158" = type { %"struct.std::pair.40.77.677.10… [all …]
|
/external/libmicrohttpd/src/microspdy/ |
D | structures.c | 44 struct SPDY_NameValue *pair; in SPDY_name_value_create() local 46 if(NULL == (pair = malloc(sizeof(struct SPDY_NameValue)))) in SPDY_name_value_create() 49 memset (pair, 0, sizeof (struct SPDY_NameValue)); in SPDY_name_value_create() 51 return pair; in SPDY_name_value_create() 62 struct SPDY_NameValue *pair; in SPDY_name_value_add() local 102 pair = container; in SPDY_name_value_add() 103 while(NULL != pair) in SPDY_name_value_add() 105 if(0 == strcmp(pair->name, name)) in SPDY_name_value_add() 110 pair = pair->next; in SPDY_name_value_add() 113 if(NULL == pair) in SPDY_name_value_add() [all …]
|
/external/llvm/test/CodeGen/PowerPC/ |
D | stwu8.ll | 7 …pair<const char *, const char *>, std::pair<const std::pair<const char *, const char *>, int>, std… 8 …pair<const char *, const char *>, std::pair<const std::pair<const char *, const char *>, int>, std…
|
/external/llvm/test/Transforms/GlobalOpt/ |
D | 2007-06-04-PackedStruct.ll | 6 %"struct.__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, int> > >" = type <{ i8 }> 7 …pair<const int, int>,std::_Select1st<std::pair<const int, int> >,std::less<int>,std::allocator<std… 8 …pair<const int, int>,std::_Select1st<std::pair<const int, int> >,std::less<int>,std::allocator<std… 10 …pair<const int, int> > >" = type { %"struct.std::_Rb_tree<int,std::pair<const int, int>,std::_Sele… 11 …,std::allocator<std::pair<const int, int> > >" zeroinitializer ; <%"struct.std::map<int,int,std::… 31 …less<int>,std::allocator<std::pair<const int, int> > >", %"struct.std::map<int,int,std::less<int>,…
|
/external/libcxx/test/std/containers/associative/multimap/ |
D | types.pass.cpp | 43 static_assert((std::is_same<C::value_type, std::pair<const int, double> >::value), ""); in main() 45 …static_assert((std::is_same<C::allocator_type, std::allocator<std::pair<const int, double> > >::va… in main() 46 static_assert((std::is_same<C::reference, std::pair<const int, double>&>::value), ""); in main() 47 … static_assert((std::is_same<C::const_reference, const std::pair<const int, double>&>::value), ""); in main() 48 static_assert((std::is_same<C::pointer, std::pair<const int, double>*>::value), ""); in main() 49 static_assert((std::is_same<C::const_pointer, const std::pair<const int, double>*>::value), ""); in main() 55 … typedef std::multimap<int, double, std::less<int>, min_allocator<std::pair<const int, double>>> C; in main() 58 static_assert((std::is_same<C::value_type, std::pair<const int, double> >::value), ""); in main() 60 …static_assert((std::is_same<C::allocator_type, min_allocator<std::pair<const int, double> > >::val… in main() 61 static_assert((std::is_same<C::reference, std::pair<const int, double>&>::value), ""); in main() [all …]
|
/external/libcxx/test/std/containers/associative/map/ |
D | types.pass.cpp | 43 static_assert((std::is_same<C::value_type, std::pair<const int, double> >::value), ""); in main() 45 …static_assert((std::is_same<C::allocator_type, std::allocator<std::pair<const int, double> > >::va… in main() 46 static_assert((std::is_same<C::reference, std::pair<const int, double>&>::value), ""); in main() 47 … static_assert((std::is_same<C::const_reference, const std::pair<const int, double>&>::value), ""); in main() 48 static_assert((std::is_same<C::pointer, std::pair<const int, double>*>::value), ""); in main() 49 static_assert((std::is_same<C::const_pointer, const std::pair<const int, double>*>::value), ""); in main() 55 typedef std::map<int, double, std::less<int>, min_allocator<std::pair<const int, double>>> C; in main() 58 static_assert((std::is_same<C::value_type, std::pair<const int, double> >::value), ""); in main() 60 …static_assert((std::is_same<C::allocator_type, min_allocator<std::pair<const int, double> > >::val… in main() 61 static_assert((std::is_same<C::reference, std::pair<const int, double>&>::value), ""); in main() [all …]
|
/external/skia/src/core/ |
D | SkMetaData.cpp | 49 PtrPair* pair = (PtrPair*)rec->data(); in reset() local 50 if (pair->fProc && pair->fPtr) { in reset() 51 pair->fPtr = pair->fProc(pair->fPtr, false); in reset() 98 PtrPair pair = { ptr, proc }; in setPtr() local 99 (void)this->set(name, &pair, sizeof(PtrPair), kPtr_Type, 1); in setPtr() 134 PtrPair* pair = (PtrPair*)rec->data(); in set() local 135 if (pair->fProc && pair->fPtr) { in set() 136 pair->fPtr = pair->fProc(pair->fPtr, true); in set() 189 const PtrPair* pair = (const PtrPair*)rec->data(); in findPtr() local 191 *ptr = pair->fPtr; in findPtr() [all …]
|
D | SkPtrRecorder.cpp | 31 Pair pair; in find() local 32 pair.fPtr = ptr; in find() 34 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find() 47 Pair pair; in add() local 48 pair.fPtr = ptr; in add() 50 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add() 54 pair.fIndex = count + 1; in add() 55 *fList.insert(index) = pair; in add()
|
/external/llvm/test/CodeGen/SystemZ/ |
D | cmpxchg-03.ll | 10 %pair = cmpxchg i32 *%src, i32 %cmp, i32 %swap seq_cst seq_cst 11 %val = extractvalue { i32, i1 } %pair, 0 21 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst 22 %val = extractvalue { i32, i1 } %pair, 0 32 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst 33 %val = extractvalue { i32, i1 } %pair, 0 43 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst 44 %val = extractvalue { i32, i1 } %pair, 0 56 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst 57 %val = extractvalue { i32, i1 } %pair, 0 [all …]
|