Searched refs:copy (Results 1 - 25 of 2129) sorted by relevance

1234567891011>>

/external/python/cpython2/Python/
H A Dstrdup.c9 register char *copy = malloc(strlen(str) + 1); local
10 if (copy != NULL)
11 return strcpy(copy, str);
/external/caliper/examples/src/main/java/examples/
H A DCopyArrayBenchmark.java6 * You may obtain a copy of the License at
27 * Tests each of four ways to copy an array, for all nine array types.
29 * <p>Once upon a time, {@code clone} was much slower than the other array copy techniques, but
35 * at which time all copy methods were equally efficient.
50 @Override Object[] copy(Object[] array) {
53 @Override boolean[] copy(boolean[] array) {
56 @Override byte[] copy(byte[] array) {
59 @Override char[] copy(char[] array) {
62 @Override double[] copy(double[] array) {
65 @Override float[] copy(floa
230 abstract Object[] copy(Object[] array); method in class:CopyArrayBenchmark.Strategy
231 abstract boolean[] copy(boolean[] array); method in class:CopyArrayBenchmark.Strategy
232 abstract byte[] copy(byte[] array); method in class:CopyArrayBenchmark.Strategy
233 abstract char[] copy(char[] array); method in class:CopyArrayBenchmark.Strategy
234 abstract double[] copy(double[] array); method in class:CopyArrayBenchmark.Strategy
235 abstract float[] copy(float[] array); method in class:CopyArrayBenchmark.Strategy
236 abstract int[] copy(int[] array); method in class:CopyArrayBenchmark.Strategy
237 abstract long[] copy(long[] array); method in class:CopyArrayBenchmark.Strategy
238 abstract short[] copy(short[] array); method in class:CopyArrayBenchmark.Strategy
[all...]
/external/compiler-rt/test/asan/TestCases/
H A Dstrdup_oob_test.cc17 char *copy = strdup(kString); local
18 int x = copy[4 + argc]; // BOOM
/external/mesa3d/src/mesa/vbo/
H A Dvbo_split_copy.c8 * copy of this software and associated documentation files (the "Software"),
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
119 check_flush( struct copy_context *copy )
121 GLenum mode = copy->dstprim[copy->dstprim_nr].mode;
124 copy->dstelt_nr & 1) { /* see bug9962 */
128 if (copy->dstbuf_nr + 4 > copy->dstbuf_size)
131 if (copy->dstelt_nr + 4 > copy
229 begin( struct copy_context *copy, GLenum mode, GLboolean begin_flag ) argument
244 elt(struct copy_context *copy, GLuint elt_idx) argument
310 end( struct copy_context *copy, GLboolean end_flag ) argument
603 struct copy_context copy; local
[all...]
/external/deqp/framework/delibs/decpp/
H A DdeMemPool.cpp9 * You may obtain a copy of the License at
35 char* copy = (char*)pool->alloc(size); local
37 std::copy(string, string+size, copy);
39 return copy;
/external/tcpdump/missing/
H A Dstrdup.c45 char *copy; local
48 if ((copy = malloc(len)) == NULL)
50 memcpy(copy, str, len);
51 return (copy);
/external/mesa3d/src/mesa/math/
H A Dm_copy_tmp.h8 * copy of this software and associated documentation files (the "Software"),
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
32 static void TAG2(copy, BITS)( GLvector4f *to, const GLvector4f *f ) \
70 _mesa_copy_tab[0x0] = TAG2(copy, 0x0);
71 _mesa_copy_tab[0x1] = TAG2(copy, 0x1);
72 _mesa_copy_tab[0x2] = TAG2(copy, 0x2);
73 _mesa_copy_tab[0x3] = TAG2(copy, 0x3);
74 _mesa_copy_tab[0x4] = TAG2(copy, 0x4);
75 _mesa_copy_tab[0x5] = TAG2(copy, 0x5);
76 _mesa_copy_tab[0x6] = TAG2(copy,
[all...]
/external/selinux/libsepol/cil/src/
H A Dcil_copy_ast.h37 void cil_copy_list(struct cil_list *orig, struct cil_list **copy);
40 int cil_copy_block(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
41 int cil_copy_blockabstract(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
42 int cil_copy_blockinherit(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
43 int cil_copy_perm(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
44 int cil_copy_class(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
45 int cil_copy_classorder(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
46 int cil_copy_classmapping(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
47 int cil_copy_permset(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
52 int cil_copy_classpermission(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_
[all...]
/external/icu/icu4c/source/common/unicode/
H A Dparsepos.h74 * @param copy the object to be copied from.
77 ParsePosition(const ParsePosition& copy) argument
78 : UObject(copy),
79 index(copy.index),
80 errorIndex(copy.errorIndex)
93 ParsePosition& operator=(const ParsePosition& copy);
185 ParsePosition::operator=(const ParsePosition& copy) argument
187 index = copy.index;
188 errorIndex = copy.errorIndex;
193 ParsePosition::operator==(const ParsePosition& copy) cons
[all...]
/external/guava/guava-tests/test/com/google/common/collect/
H A DLenientSerializableTester.java6 * You may obtain a copy of the License at
48 Set<E> copy = reserialize(original);
49 assertEquals(original, copy);
50 assertTrue(copy instanceof ImmutableSet);
51 return copy;
56 Multiset<E> copy = reserialize(original);
57 assertEquals(original, copy);
58 assertTrue(copy instanceof ImmutableMultiset);
59 return copy;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
H A DMemoable.java5 * via the copy() method and then reseting the object back to that state later using the reset() method.
10 * Produce a copy of this object with its configuration and in its current state.
15 Memoable copy(); method in interface:Memoable
22 * @param other an object originally {@link #copy() copied} from an object of the same type as this instance.
/external/clang/test/CodeGen/
H A D2007-04-24-VolatileStructCopy.c8 void copy(volatile struct foo *p, struct foo *q) { function
/external/icu/icu4c/source/i18n/unicode/
H A Dfieldpos.h16 * 07/17/98 stephen Added default/copy ctors, and operators =, ==, !=
140 * @param copy the object to be copied from.
143 FieldPosition(const FieldPosition& copy) argument
144 : UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {}
154 * @param copy the object to be copied from.
157 FieldPosition& operator=(const FieldPosition& copy);
267 FieldPosition::operator=(const FieldPosition& copy) argument
[all...]
/external/libedit/src/
H A Dwcsdup.c9 * Permission to use or copy this software for any purpose is hereby granted
29 wchar_t *copy; local
35 copy = malloc(len * sizeof (wchar_t));
37 if (!copy)
40 return wmemcpy(copy, str, len);
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
H A Dcopy.pass.cpp14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n);
23 assert(std::char_traits<char>::copy(s2, s1, 3) == s2);
27 assert(std::char_traits<char>::copy(NULL, s1, 0) == NULL);
28 assert(std::char_traits<char>::copy(s1, NULL, 0) == s1);
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
H A Dcopy.pass.cpp14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n);
23 assert(std::char_traits<wchar_t>::copy(s2, s1, 3) == s2);
27 assert(std::char_traits<wchar_t>::copy(NULL, s1, 0) == NULL);
28 assert(std::char_traits<wchar_t>::copy(s1, NULL, 0) == s1);
/external/libcxx/test/std/utilities/tuple/tuple.general/
H A Dignore.pass.cpp28 { // Test that std::ignore provides constexpr copy/move constructors
29 auto copy = std::ignore; local
30 auto moved = std::move(copy);
33 { // Test that std::ignore provides constexpr copy/move assignment
34 auto copy = std::ignore; local
35 copy = std::ignore;
37 moved = std::move(copy);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DWifiConfigurationTest.java43 WifiConfiguration copy = shadowOf(wifiConfiguration).copy();
45 assertThat(copy.networkId, equalTo(1));
46 assertThat(copy.SSID, equalTo("SSID"));
47 assertThat(copy.BSSID, equalTo("BSSID"));
48 assertThat(copy.preSharedKey, equalTo("preSharedKey"));
49 assertThat(copy.status, equalTo(666));
50 assertThat(copy.wepTxKeyIndex, equalTo(777));
51 assertThat(copy.priority, equalTo(2));
52 assertThat(copy
[all...]
/external/elfutils/tests/
H A Drun-ranlib-test.sh16 # You should have received a copy of the GNU General Public License
21 tempfiles ranlib-test.a ranlib-test.a-copy
31 cp ranlib-test.a ranlib-test.a-copy
36 cmp ranlib-test.a ranlib-test.a-copy
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/
H A Dcopy.pass.cpp14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n);
24 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2);
28 assert(std::char_traits<char16_t>::copy(NULL, s1, 0) == NULL);
29 assert(std::char_traits<char16_t>::copy(s1, NULL, 0) == s1);
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
H A Dcopy.pass.cpp14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n);
24 assert(std::char_traits<char32_t>::copy(s2, s1, 3) == s2);
28 assert(std::char_traits<char32_t>::copy(NULL, s1, 0) == NULL);
29 assert(std::char_traits<char32_t>::copy(s1, NULL, 0) == s1);
/external/clang/test/Lexer/
H A Ddigraph.c10 void copy(char d<::>, const char s<::>, int len)
/external/guava/guava-testlib/src/com/google/common/testing/
H A DSerializableTester.java6 * You may obtain a copy of the License at
95 T copy = reserialize(object);
97 .addEqualityGroup(object, copy)
99 Assert.assertEquals(object.getClass(), copy.getClass());
100 return copy;
/external/icu/icu4c/source/test/intltest/
H A Dtstnrapi.cpp33 // test copy constructor
34 Normalizer copy(norm);
35 if(copy.next()!=0xac00) {
40 Normalizer *clone=copy.clone();
41 if(*clone!=copy) {
42 errln("error in Normalizer(Normalizer(CharacterIterator)).clone()!=copy");
45 if(clone->hashCode()!=copy.hashCode()) {
46 errln("error in Normalizer(Normalizer(CharacterIterator)).clone()->hashCode()!=copy.hashCode()");
52 if(clone->hashCode()==copy.hashCode()) {
53 errln("error in Normalizer(Normalizer(CharacterIterator)).clone()->next().hashCode()==copy
[all...]
/external/libcxx/test/std/localization/locales/locale/locale.operators/
H A Deq.pass.cpp24 std::locale copy(cloc);
32 assert(cloc == copy);
39 assert(copy == cloc);
40 assert(copy == copy);
41 assert(copy != n1);
42 assert(copy != n2);
43 assert(copy != noname1);
44 assert(copy != nonamec);
45 assert(copy !
[all...]

Completed in 1029 milliseconds

1234567891011>>