Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 1855) sorted by relevance

12345678910>>...75

/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()
89 string contents; in TEST() local
90 ASSERT_TRUE(section.GetContents(&contents)); in TEST()
96 EXPECT_EQ(expected, contents); in TEST()
107 string contents; in TEST() local
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DBenchmarkHelpers.java42 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
43 return new HashSet<E>(contents); in create()
47 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
48 return new LinkedHashSet<E>(contents); in create()
52 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
53 return new TreeSet<E>(contents); in create()
57 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
58 return Collections.unmodifiableSet(new HashSet<E>(contents)); in create()
62 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument
63 return Collections.synchronizedSet(new HashSet<E>(contents)); in create()
[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()
95 for (List<Integer> contents : SAMPLE_INPUTS) { in testReadsThroughAdd()
96 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd()
100 List<Integer> target = Lists.newArrayList(contents); in testReadsThroughAdd()
109 for (List<Integer> contents : SAMPLE_INPUTS) { in testAdd()
111 boolean expectedResult = createUnfiltered(contents).add(toAdd); in testAdd()
113 C filtered = filter(createUnfiltered(contents), EVEN); in testAdd()
125 for (List<Integer> contents : SAMPLE_INPUTS) { in testRemove()
[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/boringssl/src/crypto/bytestring/
Dbytestring_test.cc121 CBS data, contents; in TestGetASN1() local
130 if (!CBS_get_asn1(&data, &contents, 0x30) || in TestGetASN1()
131 CBS_len(&contents) != 2 || in TestGetASN1()
132 memcmp(CBS_data(&contents), "\x01\x02", 2) != 0) { in TestGetASN1()
138 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
144 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
150 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
156 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
162 if (CBS_get_asn1(&data, &contents, 0x31)) { in TestGetASN1()
174 if (!CBS_get_optional_asn1(&data, &contents, &present, 0xa0) || in TestGetASN1()
[all …]
Dber.c42 CBS contents; in cbs_find_ber() local
46 if (!CBS_get_any_ber_asn1_element(&in, &contents, &tag, &header_len)) { in cbs_find_ber()
49 if (CBS_len(&contents) == header_len && in cbs_find_ber()
51 CBS_data(&contents)[header_len-1] == 0x80) { in cbs_find_ber()
56 if (!CBS_skip(&contents, header_len) || in cbs_find_ber()
57 !cbs_find_ber(&contents, ber_found, depth + 1)) { in cbs_find_ber()
78 static char is_eoc(size_t header_len, CBS *contents) { in is_eoc() argument
79 return header_len == 2 && CBS_len(contents) == 2 && in is_eoc()
80 memcmp(CBS_data(contents), "\x00\x00", 2) == 0; in is_eoc()
96 CBS contents; in cbs_convert_ber() local
[all …]
/external/pdfium/xfa/src/fxbarcode/oned/
DBC_OnedCode39Writer.cpp41 const CFX_WideStringC& contents) { in CheckContentValidity() argument
43 return CheckExtendedContentValidity(contents); in CheckContentValidity()
45 for (int32_t i = 0; i < contents.GetLength(); i++) { in CheckContentValidity()
46 FX_WCHAR ch = contents.GetAt(i); in CheckContentValidity()
59 const CFX_WideStringC& contents) { in CheckExtendedContentValidity() argument
60 for (int32_t i = 0; i < contents.GetLength(); i++) { in CheckExtendedContentValidity()
61 FX_WCHAR ch = contents.GetAt(i); in CheckExtendedContentValidity()
69 const CFX_WideStringC& contents) { in FilterContents() argument
71 return FilterExtendedContents(contents); in FilterContents()
74 for (int32_t i = 0; i < contents.GetLength(); i++) { in FilterContents()
[all …]
DBC_OnedCode128Writer.cpp46 const CFX_WideStringC& contents) { in CheckContentValidity() argument
51 while (position < contents.GetLength()) { in CheckContentValidity()
52 patternIndex = (int32_t)contents.GetAt(position); in CheckContentValidity()
68 const CFX_WideStringC& contents) { in FilterContents() argument
71 for (int32_t i = 0; i < contents.GetLength(); i++) { in FilterContents()
72 ch = contents.GetAt(i); in FilterContents()
99 filtercontents = contents; in FilterContents()
110 uint8_t* CBC_OnedCode128Writer::Encode(const CFX_ByteString& contents, in Encode() argument
121 CBC_OneDimWriter::Encode(contents, format, outWidth, outHeight, hints, e); in Encode()
125 uint8_t* CBC_OnedCode128Writer::Encode(const CFX_ByteString& contents, in Encode() argument
[all …]
DBC_OnedCode39Writer.h17 uint8_t* Encode(const CFX_ByteString& contents,
22 uint8_t* Encode(const CFX_ByteString& contents,
28 uint8_t* Encode(const CFX_ByteString& contents,
31 void RenderResult(const CFX_WideStringC& contents,
36 CFX_WideString encodedContents(const CFX_WideStringC& contents, int32_t& e);
37 FX_BOOL CheckContentValidity(const CFX_WideStringC& contents);
38 FX_BOOL CheckExtendedContentValidity(const CFX_WideStringC& contents);
39 CFX_WideString FilterContents(const CFX_WideStringC& contents);
40 CFX_WideString FilterExtendedContents(const CFX_WideStringC& contents);
41 CFX_WideString RenderTextContents(const CFX_WideStringC& contents);
[all …]
/external/chromium-trace/catapult/catapult_build/
Djs_checks_unittest.py13 contents = """
23 [], js_checks.CheckStrictMode(contents, is_html_file=True))
26 contents = """
30 [], js_checks.CheckStrictMode(contents, is_html_file=True))
33 contents = """
39 [], js_checks.CheckStrictMode(contents, is_html_file=False))
42 contents = """
51 [], js_checks.CheckStrictMode(contents, is_html_file=False))
54 contents = """
58 [], js_checks.CheckStrictMode(contents, is_html_file=True))
[all …]
/external/boringssl/src/ssl/
Dt1_lib.c669 int (*parse_serverhello)(SSL *ssl, uint8_t *out_alert, CBS *contents);
671 int (*parse_clienthello)(SSL *ssl, uint8_t *out_alert, CBS *contents);
689 CBB contents, server_name_list, name; in ext_sni_add_clienthello() local
691 !CBB_add_u16_length_prefixed(out, &contents) || in ext_sni_add_clienthello()
692 !CBB_add_u16_length_prefixed(&contents, &server_name_list) || in ext_sni_add_clienthello()
705 CBS *contents) { in ext_sni_parse_serverhello() argument
706 if (contents == NULL) { in ext_sni_parse_serverhello()
710 if (CBS_len(contents) != 0) { in ext_sni_parse_serverhello()
729 CBS *contents) { in ext_sni_parse_clienthello() argument
730 if (contents == NULL) { in ext_sni_parse_clienthello()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMinimalCollection.java36 public static <E> MinimalCollection<E> of(E... contents) { in of() argument
37 return new MinimalCollection<E>(Object.class, true, contents); in of()
42 Class<? super E> type, E... contents) { in ofClassAndContents() argument
43 return new MinimalCollection<E>(type, true, contents); in ofClassAndContents()
46 private final E[] contents; field in MinimalCollection
51 MinimalCollection(Class<? super E> type, boolean allowNulls, E... contents) { in MinimalCollection() argument
53 this.contents = Platform.clone(contents); in MinimalCollection()
58 for (Object element : contents) { in MinimalCollection()
67 return contents.length; in size()
78 return Arrays.asList(contents).contains(object); in contains()
[all …]
/external/libchrome/base/
Dsys_info_linux.cc37 std::string contents; in MaxSharedMemorySize() local
38 base::ReadFileToString(base::FilePath("/proc/sys/kernel/shmmax"), &contents); in MaxSharedMemorySize()
39 DCHECK(!contents.empty()); in MaxSharedMemorySize()
40 if (!contents.empty() && contents[contents.length() - 1] == '\n') { in MaxSharedMemorySize()
41 contents.erase(contents.length() - 1); in MaxSharedMemorySize()
45 if (!base::StringToUint64(contents, &limit)) { in MaxSharedMemorySize()
85 std::string contents; in CPUModelName() local
86 ReadFileToString(FilePath("/proc/cpuinfo"), &contents); in CPUModelName()
87 DCHECK(!contents.empty()); in CPUModelName()
88 if (!contents.empty()) { in CPUModelName()
[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/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_rsync.py89 contents='obj1')
123 contents='obj1')
125 contents='.obj2')
127 contents='subdir/obj3')
129 contents='.OBJ2')
131 contents='obj4')
133 contents='subdir/obj5')
168 contents='obj6')
170 contents='obj7')
209 contents='obj1')
[all …]
Dtest_file_part.py31 contents = 100 * 'x'
32 fpath = self.CreateTempFile(file_name=filename, contents=contents)
42 contents = 100 * 'x'
45 fpath = self.CreateTempFile(file_name=filename, contents=contents)
72 contents = ''
74 contents += str(i)
77 fpath = self.CreateTempFile(file_name=filename, contents=contents)
82 self.assertEqual(contents[start_pos:(start_pos + part_length)], whole_file)
89 contents[start_pos:(start_pos + offset)],
95 contents[(start_pos + offset):(start_pos + part_length)],
[all …]
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DFileEntry.java58 public FileEntry(String path, String contents) { in FileEntry() argument
60 setContents(contents); in FileEntry()
86 public void setContents(String contents) { in setContents() argument
87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents()
96 public void setContents(byte[] contents) { in setContents() argument
99 if (contents != null) { in setContents()
100 newBytes = new byte[contents.length]; in setContents()
101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents()
172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument
173 this.bytes = contents; in setContentsInternal()
/external/bsdiff/
Dtest_utils.cc72 bool WriteFile(const string& path, vector<uint8_t> contents) { in WriteFile() argument
76 size_t written = fwrite(contents.data(), 1, contents.size(), fp); in WriteFile()
77 bool result = written == contents.size() && !ferror(fp); in WriteFile()
93 vector<uint8_t> contents; in LoadFromFile() local
94 if (!ReadFile(filename, &contents)) in LoadFromFile()
96 file_size = contents.size(); in LoadFromFile()
98 TEST_AND_RETURN_FALSE(contents.size() >= kHeaderSize); in LoadFromFile()
99 magic = string(contents.data(), contents.data() + 8); in LoadFromFile()
100 memcpy(&ctrl_len, contents.data() + 8, sizeof(ctrl_len)); in LoadFromFile()
101 memcpy(&diff_len, contents.data() + 16, sizeof(diff_len)); in LoadFromFile()
[all …]

12345678910>>...75