Home
last modified time | relevance | path

Searched full:contents (Results 1 – 25 of 7395) sorted by relevance

12345678910>>...296

/external/guava/guava-tests/test/com/google/common/collect/
DBenchmarkHelpers.java44 <E extends Comparable<E>> Collection<E> create(Collection<E> contents); in create() argument
50 <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> contents); in create() argument
56 <E> Interner<E> create(Collection<E> contents); in create() argument
64 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
65 return new HashSet<E>(contents); in create()
70 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
71 return new LinkedHashSet<E>(contents); in create()
76 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
77 return new TreeSet<E>(contents); in create()
82 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
[all …]
DFilteredCollectionsTest.java70 abstract C createUnfiltered(Iterable<Integer> contents); in createUnfiltered() argument
75 for (List<Integer> contents : SAMPLE_INPUTS) { in testIterationOrderPreserved()
76 C unfiltered = createUnfiltered(contents); in testIterationOrderPreserved()
91 for (List<Integer> contents : SAMPLE_INPUTS) { in testForEach()
92 C unfiltered = createUnfiltered(contents); in testForEach()
109 for (List<Integer> contents : SAMPLE_INPUTS) { in testReadsThroughAdd()
110 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd()
114 List<Integer> target = Lists.newArrayList(contents); in testReadsThroughAdd()
123 for (List<Integer> contents : SAMPLE_INPUTS) { in testAdd()
125 boolean expectedResult = createUnfiltered(contents).add(toAdd); in testAdd()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DBenchmarkHelpers.java44 <E extends Comparable<E>> Collection<E> create(Collection<E> contents); in create() argument
50 <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> contents); in create() argument
56 <E> Interner<E> create(Collection<E> contents); in create() argument
64 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
65 return new HashSet<E>(contents); in create()
70 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
71 return new LinkedHashSet<E>(contents); in create()
76 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
77 return new TreeSet<E>(contents); in create()
82 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
[all …]
DFilteredCollectionsTest.java69 abstract C createUnfiltered(Iterable<Integer> contents); in createUnfiltered() argument
74 for (List<Integer> contents : SAMPLE_INPUTS) { in testIterationOrderPreserved()
75 C unfiltered = createUnfiltered(contents); in testIterationOrderPreserved()
94 for (List<Integer> contents : SAMPLE_INPUTS) { in testReadsThroughAdd()
95 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd()
99 List<Integer> target = Lists.newArrayList(contents); in testReadsThroughAdd()
108 for (List<Integer> contents : SAMPLE_INPUTS) { in testAdd()
110 boolean expectedResult = createUnfiltered(contents).add(toAdd); in testAdd()
112 C filtered = filter(createUnfiltered(contents), EVEN); in testAdd()
124 for (List<Integer> contents : SAMPLE_INPUTS) { in testRemove()
[all …]
/external/bc/
Dconfigure1185 contents=$(cat "$scriptdir/Makefile.in")
1190 contents=$(replace "$contents" "$needle" "$replacement")
1196 contents=$(gen_file_list "$contents" $unneeded)
1208 contents=$(replace "$contents" "HEADERS" "$headers")
1210 contents=$(replace "$contents" "BC_ENABLED" "$bc")
1211 contents=$(replace "$contents" "DC_ENABLED" "$dc")
1213 contents=$(replace "$contents" "BC_ALL_TESTS" "$bc_test")
1214 contents=$(replace "$contents" "BC_TESTS" "$bc_tests")
1215 contents=$(replace "$contents" "BC_SCRIPT_TESTS" "$bc_script_tests")
1216 contents=$(replace "$contents" "BC_TEST_EXEC" "$bc_test_exec")
[all …]
Dconfigure.sh1185 contents=$(cat "$scriptdir/Makefile.in")
1190 contents=$(replace "$contents" "$needle" "$replacement")
1196 contents=$(gen_file_list "$contents" $unneeded)
1208 contents=$(replace "$contents" "HEADERS" "$headers")
1210 contents=$(replace "$contents" "BC_ENABLED" "$bc")
1211 contents=$(replace "$contents" "DC_ENABLED" "$dc")
1213 contents=$(replace "$contents" "BC_ALL_TESTS" "$bc_test")
1214 contents=$(replace "$contents" "BC_TESTS" "$bc_tests")
1215 contents=$(replace "$contents" "BC_SCRIPT_TESTS" "$bc_script_tests")
1216 contents=$(replace "$contents" "BC_TEST_EXEC" "$bc_test_exec")
[all …]
/external/google-breakpad/src/processor/
Dsynth_minidump_unittest.cc63 string contents; in TEST() local
64 ASSERT_TRUE(section.GetContents(&contents)); in TEST()
65 EXPECT_EQ(string("\x78\x56\x34\x12", 4), contents); in TEST()
75 string contents; in TEST() local
76 ASSERT_TRUE(section1.GetContents(&contents)); in TEST()
78 EXPECT_EQ(expected, contents); in TEST()
85 stream.Append("stream contents"); in TEST()
86 section.Append("section contents"); in TEST()
89 string contents; in TEST() local
90 ASSERT_TRUE(section.GetContents(&contents)); in TEST()
[all …]
/external/google-breakpad/src/common/
Dtest_assembler_unittest.cc734 string contents; member in SectionFixture
767 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
768 ASSERT_EQ(sizeof(data), contents.size()); in TEST_F()
769 EXPECT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F()
775 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
776 ASSERT_EQ(2 * sizeof(data), contents.size()); in TEST_F()
777 ASSERT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F()
778 ASSERT_TRUE(0 == memcmp(contents.data() + sizeof(data), in TEST_F()
787 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
788 ASSERT_STREQ(contents.c_str(), "howdy there"); in TEST_F()
[all …]
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy33 private static final CONTENTS = "abc 123 %^& xxx"
41 entry = new FileEntry(PATH, CONTENTS)
42 verifyContents(CONTENTS)
46 * Test setting the contents of a FileEntry by setting a String
49 entry.setContents(CONTENTS)
50 verifyContents(CONTENTS)
54 * Test setting the contents of a FileEntry by setting a byte[]
57 byte[] contents = CONTENTS.getBytes()
58 entry.setContents(contents)
60 contents[1] = (byte)'#'
[all …]
/external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy32 private static final CONTENTS = "abc 123 %^& xxx"
37 entry = new FileEntry(PATH, CONTENTS)
38 verifyContents(CONTENTS)
42 entry.setContents(CONTENTS)
43 verifyContents(CONTENTS)
47 byte[] contents = CONTENTS.getBytes()
48 entry.setContents(contents)
50 contents[1] = (byte) '#'
51 verifyContents(CONTENTS)
55 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy31 private static final CONTENTS = "abc 123 %^& xxx"
36 entry = new FileEntry(PATH, CONTENTS)
37 verifyContents(CONTENTS)
41 entry.setContents(CONTENTS)
42 verifyContents(CONTENTS)
46 byte[] contents = CONTENTS.getBytes()
47 entry.setContents(contents)
49 contents[1] = (byte) '#'
50 verifyContents(CONTENTS)
54 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy31 private static final CONTENTS = "abc 123 %^& xxx"
36 entry = new FileEntry(PATH, CONTENTS)
37 verifyContents(CONTENTS)
41 entry.setContents(CONTENTS)
42 verifyContents(CONTENTS)
46 byte[] contents = CONTENTS.getBytes()
47 entry.setContents(contents)
49 contents[1] = (byte) '#'
50 verifyContents(CONTENTS)
54 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy31 private static final CONTENTS = "abc 123 %^& xxx"
36 entry = new FileEntry(PATH, CONTENTS)
37 verifyContents(CONTENTS)
41 entry.setContents(CONTENTS)
42 verifyContents(CONTENTS)
46 byte[] contents = CONTENTS.getBytes()
47 entry.setContents(contents)
49 contents[1] = (byte) '#'
50 verifyContents(CONTENTS)
54 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy31 private static final CONTENTS = "abc 123 %^& xxx"
36 entry = new FileEntry(PATH, CONTENTS)
37 verifyContents(CONTENTS)
41 entry.setContents(CONTENTS)
42 verifyContents(CONTENTS)
46 byte[] contents = CONTENTS.getBytes()
47 entry.setContents(contents)
49 contents[1] = (byte) '#'
50 verifyContents(CONTENTS)
54 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy32 private static final CONTENTS = "abc 123 %^& xxx"
37 entry = new FileEntry(PATH, CONTENTS)
38 verifyContents(CONTENTS)
42 entry.setContents(CONTENTS)
43 verifyContents(CONTENTS)
47 byte[] contents = CONTENTS.getBytes()
48 entry.setContents(contents)
50 contents[1] = (byte) '#'
51 verifyContents(CONTENTS)
55 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy32 private static final CONTENTS = "abc 123 %^& xxx"
37 entry = new FileEntry(PATH, CONTENTS)
38 verifyContents(CONTENTS)
42 entry.setContents(CONTENTS)
43 verifyContents(CONTENTS)
47 byte[] contents = CONTENTS.getBytes()
48 entry.setContents(contents)
50 contents[1] = (byte) '#'
51 verifyContents(CONTENTS)
55 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileEntryTest.groovy31 private static final CONTENTS = "abc 123 %^& xxx"
36 entry = new FileEntry(PATH, CONTENTS)
37 verifyContents(CONTENTS)
41 entry.setContents(CONTENTS)
42 verifyContents(CONTENTS)
46 byte[] contents = CONTENTS.getBytes()
47 entry.setContents(contents)
49 contents[1] = (byte) '#'
50 verifyContents(CONTENTS)
54 byte[] contents = [65, -99, 91, -115] as byte[]
[all …]
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/filesystem/
DFileEntry.groovy53 * Construct a new instance with the specified path and file contents
55 * @param contents - the contents of the file, as a String
57 FileEntry(String path, String contents) {
59 setContents(contents)
79 * Set the contents of the file represented by this entry
80 * @param contents - the String whose bytes are used as the contents
82 void setContents(String contents) {
83 assert contents != null
84 setContentsInternal(contents.getBytes())
88 * Set the contents of the file represented by this entry
[all …]
/external/clang/unittests/libclang/
DLibclangTest.cpp42 const char *Contents; member
45 TestVFO(const char *Contents) : Contents(Contents) { in TestVFO()
60 if (Contents) { in ~TestVFO()
65 EXPECT_STREQ(Contents, BufStr.c_str()); in ~TestVFO()
74 const char *contents = in TEST() local
81 " 'contents': [\n" in TEST()
85 " 'external-contents': \"/real/foo.h\"\n" in TEST()
91 TestVFO T(contents); in TEST()
96 const char *contents = in TEST() local
103 " 'contents': [\n" in TEST()
[all …]
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java53 * Construct a new instance with the specified path and file contents
56 * @param contents - the contents of the file, as a String
58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
82 * Set the contents of the file represented by this entry
84 * @param contents - the String whose bytes are used as the contents
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
92 * Set the contents of the file represented by this entry
94 * @param contents - the byte[] used as the contents
[all …]
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java53 * Construct a new instance with the specified path and file contents
56 * @param contents - the contents of the file, as a String
58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
82 * Set the contents of the file represented by this entry
84 * @param contents - the String whose bytes are used as the contents
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
92 * Set the contents of the file represented by this entry
94 * @param contents - the byte[] used as the contents
[all …]
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java53 * Construct a new instance with the specified path and file contents
56 * @param contents - the contents of the file, as a String
58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
82 * Set the contents of the file represented by this entry
84 * @param contents - the String whose bytes are used as the contents
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
92 * Set the contents of the file represented by this entry
94 * @param contents - the byte[] used as the contents
[all …]
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java53 * Construct a new instance with the specified path and file contents
56 * @param contents - the contents of the file, as a String
58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
82 * Set the contents of the file represented by this entry
84 * @param contents - the String whose bytes are used as the contents
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
92 * Set the contents of the file represented by this entry
94 * @param contents - the byte[] used as the contents
[all …]
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java53 * Construct a new instance with the specified path and file contents
56 * @param contents - the contents of the file, as a String
58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
82 * Set the contents of the file represented by this entry
84 * @param contents - the String whose bytes are used as the contents
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
92 * Set the contents of the file represented by this entry
94 * @param contents - the byte[] used as the contents
[all …]
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java53 * Construct a new instance with the specified path and file contents
56 * @param contents - the contents of the file, as a String
58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
82 * Set the contents of the file represented by this entry
84 * @param contents - the String whose bytes are used as the contents
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
92 * Set the contents of the file represented by this entry
94 * @param contents - the byte[] used as the contents
[all …]

12345678910>>...296