/external/chromium_org/third_party/WebKit/Tools/TestResultServer/model/ |
testfile_test.py | 65 def _addFileAndAssert(self, file_data): 66 _, code = testfile.TestFile.add_file(*file_data) 67 self.assertEqual(200, code, 'Unable to create file with data: %s' % file_data) 70 file_data = TEST_DATA[0][:] 71 self._addFileAndAssert(file_data) 75 self._assertFileMatchesData(file_data, files[0]) 82 self._assertFileMatchesData(file_data, files[0]) 85 for file_data in TEST_DATA: 86 self._addFileAndAssert(file_data) 96 file_data = TEST_DATA[0][: [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
AssetFileDescriptor_AutoCloseInputStreamTest.java | 32 private static final byte[] FILE_DATA = new byte[] { 35 private static final int FILE_LENGTH = FILE_DATA.length; 46 outputStream.write(FILE_DATA); 62 assertEquals(FILE_DATA[0], mInput.read()); 64 assertEquals(FILE_DATA[1], mInput.read()); 66 assertEquals(FILE_DATA[5], mInput.read()); 74 assertEquals(FILE_DATA[i], mInput.read()); 83 assertEquals(FILE_DATA[i], mInput.read()); 94 MoreAsserts.assertEquals(FILE_DATA, buf); 102 assertEquals(FILE_DATA[0], buf[0]) [all...] |
AssetFileDescriptor_AutoCloseOutputStreamTest.java | 31 private static final byte[] FILE_DATA = new byte[] { 62 outputStream.write(FILE_DATA[0]); 63 outputStream.write(FILE_DATA, 1, 5); 64 outputStream.write(FILE_DATA); 73 assertEquals(FILE_DATA[i], inputStream.read()); 75 for (int i = 0; i < FILE_DATA.length; i++) { 76 assertEquals(FILE_DATA[i], inputStream.read());
|
AssetFileDescriptorTest.java | 35 private static final byte[] FILE_DATA = 80 mOutputStream.write(FILE_DATA); 102 byte[] dataFromFile = new byte[FILE_DATA.length]; 105 while ((readByte != FILE_END) && (readLength < FILE_DATA.length)) { 108 readLength, FILE_DATA.length - readLength); 110 assertEquals(FILE_DATA.length, readLength); 111 assertTrue(Arrays.equals(FILE_DATA, dataFromFile)); 135 mOutputStream.write(FILE_DATA);
|
/external/chromium/net/tools/flip_server/ |
mem_cache.h | 67 void CopyFrom(const FileData& file_data); 81 file_data(NULL), 89 file_data(fd), 96 FileData* file_data; member in class:net::MemCacheIter
|
mem_cache.cc | 56 void FileData::CopyFrom(const FileData& file_data) { 58 headers->CopyFrom(*(file_data.headers)); 59 filename = file_data.filename; 60 related_files = file_data.related_files; 61 body = file_data.body; 224 mci->file_data = GetFileData(filename); 225 if (mci->file_data == NULL) {
|
spdy_interface.cc | 565 headers.CopyFrom(*(mci->file_data->headers)); 569 mci->file_data->filename, 574 headers.CopyFrom(*(mci->file_data->headers)); 579 if (mci->body_bytes_consumed >= mci->file_data->body.size()) { 586 mci->file_data->body.size() - mci->body_bytes_consumed; 591 if (!mci->file_data->headers->HasHeader("content-encoding")) { 592 if (mci->file_data->headers->HasHeader("content-type")) { 594 mci->file_data->headers->GetHeader("content-type").as_string(); 601 mci->file_data->body.data() + mci->body_bytes_consumed,
|
http_interface.cc | 335 *(mci->file_data->headers)); 341 if (mci->body_bytes_consumed >= mci->file_data->body.size()) { 349 mci->file_data->body.size() - mci->body_bytes_consumed; 354 mci->file_data->body.data() + mci->body_bytes_consumed,
|
output_ordering.cc | 97 mci.file_data->headers->GetHeader("X-Server-Latency").as_string(); 104 << mci.file_data->filename.c_str();
|
/external/chromium_org/build/ |
gyp_helper.py | 21 file_data = eval(file_contents, {'__builtins__': None}, None) 39 file_val = file_data.get(var)
|
/external/chromium_org/net/base/ |
directory_lister.cc | 160 std::vector<DirectoryListerData> file_data; local 165 file_data.push_back(data); 172 if (file_data.size() < kFilesPerEvent) 177 base::Bind(&DirectoryLister::Core::SendData, file_data)); 178 file_data.clear(); 182 SortData(&file_data, sort_); 185 base::Bind(&DirectoryLister::Core::SendData, this, file_data));
|
/external/chromium_org/net/tools/flip_server/ |
mem_cache.h | 91 file_data(NULL), 99 file_data(fd), 106 FileData* file_data; member in class:net::MemCacheIter
|
spdy_interface.cc | 524 headers.CopyFrom(*(mci->file_data->headers())); 528 mci->file_data->filename(), 533 headers.CopyFrom(*(mci->file_data->headers())); 538 if (mci->body_bytes_consumed >= mci->file_data->body().size()) { 545 mci->file_data->body().size() - mci->body_bytes_consumed; 550 if (!mci->file_data->headers()->HasHeader("content-encoding")) { 551 if (mci->file_data->headers()->HasHeader("content-type")) { 553 mci->file_data->headers()->GetHeader("content-type").as_string(); 560 mci->file_data->body().data() + mci->body_bytes_consumed,
|
http_interface.cc | 335 *(mci->file_data->headers())); 341 if (mci->body_bytes_consumed >= mci->file_data->body().size()) { 349 mci->file_data->body().size() - mci->body_bytes_consumed; 354 mci->file_data->body().data() + mci->body_bytes_consumed,
|
output_ordering.cc | 102 mci.file_data->headers()->GetHeader("X-Server-Latency").as_string(); 109 << mci.file_data->filename().c_str();
|
/external/chromium_org/chrome/test/functional/ |
wifi_downloads.py | 61 file_data = [] 69 file_data.append(values) 70 for values in file_data: 78 file_data.append(new_line) 80 file_data = [[router_name, file_size, ('%2.2f' % dl_time)]] 83 for line in file_data:
|
/external/elfutils/libelf/ |
elf_getarsym.c | 195 uint32_t *file_data; local 200 file_data = (uint32_t *) alloca (n * sizeof (uint32_t)); 217 if ((size_t) pread_retry (elf->fildes, file_data, 241 file_data = (uint32_t *) (elf->map_address + elf->start_offset 244 str_data = (char *) &file_data[n]; 253 arsym[cnt].as_off = bswap_32 (file_data[cnt]); 255 arsym[cnt].as_off = file_data[cnt];
|
/external/chromium_org/content/browser/download/ |
download_file_unittest.cc | 415 static const char file_data[] = "xyzzy"; local 416 ASSERT_EQ(static_cast<int>(sizeof(file_data) - 1), 417 file_util::WriteFile(path_5, file_data, sizeof(file_data) - 1)); 420 EXPECT_EQ(std::string(file_data), file_contents); 428 EXPECT_NE(std::string(file_data), file_contents); 443 static const char file_data[] = "xyzzy"; local 444 ASSERT_EQ(static_cast<int>(sizeof(file_data)), 445 file_util::WriteFile(path_1, file_data, sizeof(file_data))); [all...] |
/external/protobuf/gtest/xcode/Scripts/ |
versiongenerate.py | 55 file_data = """// 70 version_file.write(file_data)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
tracer.c | 55 PyObject * file_data; /* PyMem_Malloc'ed, a borrowed ref. */ member in struct:__anon12910 93 /* The current file_data dictionary. Borrowed. */ 294 self->cur_file_data = self->data_stack[self->depth].file_data; 324 self->data_stack[self->depth].file_data = self->cur_file_data; 353 PyObject * file_data = PyDict_GetItem(self->data, tracename); local 354 if (file_data == NULL) { 355 file_data = PyDict_New(); 356 if (file_data == NULL) { 360 ret = PyDict_SetItem(self->data, tracename, file_data); 361 Py_DECREF(file_data); [all...] |
data.py | 190 for filename, file_data in new_lines.items(): 192 self.lines.setdefault(filename, {}).update(file_data) 193 for filename, file_data in new_arcs.items(): 195 self.arcs.setdefault(filename, {}).update(file_data)
|
/external/chromium_org/chrome/browser/mac/ |
dock.mm | 99 NSDictionary* file_data = [tile_data objectForKey:kDockFileDataKey]; 100 if (![file_data isKindOfClass:[NSDictionary class]]) { 101 LOG(ERROR) << "file_data not NSDictionary"; 105 NSURL* url = NSURLCreateFromDictionary(file_data);
|
/cts/tests/tests/os/src/android/os/cts/ |
FileObserverTest.java | 37 private static final int FILE_DATA = 0x20; 100 mOut.write(FILE_DATA); // modify, open, write, modify
|
/external/chromium/testing/gtest/xcode/Scripts/ |
versiongenerate.py | 84 file_data = """// 99 version_file.write(file_data)
|
/external/chromium_org/chrome/browser/feedback/ |
feedback_data.h | 59 // file_data. ReadFileComplete is called once this is done. 60 void StartReadFile(const std::string filename, const std::string* file_data);
|