Home
last modified time | relevance | path

Searched refs:fileWriter (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/content/test/data/fileapi/
Dquota_test.js7 fileEntry.createWriter(function(fileWriter) { argument
9 fileWriter.onerror = function(e) {
12 fileWriter.onwriteend = function(e) {
19 fileWriter.truncate(2500 * 1024);
26 fileEntry.createWriter(function(fileWriter) { argument
28 fileWriter.onerror = function(e) {
32 fileWriter.onwriteend = function() {
39 fileWriter.truncate(10000 * 1024);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DFileWriterTest.java67 FileWriter fileWriter = new FileWriter(f); in test_ConstructorLjava_io_FileZ() local
70 fileWriter.write(first); in test_ConstructorLjava_io_FileZ()
71 fileWriter.close(); in test_ConstructorLjava_io_FileZ()
73 fileWriter = new FileWriter(f, true); in test_ConstructorLjava_io_FileZ()
75 fileWriter.write(second); in test_ConstructorLjava_io_FileZ()
76 fileWriter.close(); in test_ConstructorLjava_io_FileZ()
84 fileWriter = new FileWriter(f); in test_ConstructorLjava_io_FileZ()
86 fileWriter.write(first); in test_ConstructorLjava_io_FileZ()
87 fileWriter.close(); in test_ConstructorLjava_io_FileZ()
89 fileWriter = new FileWriter(f, false); in test_ConstructorLjava_io_FileZ()
[all …]
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/photo/
Dgallery_item.js143 fileEntry.createWriter(function(fileWriter) { argument
145 fileWriter.onwriteend = onSuccess.bind(null, fileEntry);
146 fileWriter.write(ImageEncoder.getBlob(canvas, metadataEncoder));
148 fileWriter.onerror = function(error) {
151 fileWriter.onerror = null;
152 fileWriter.onwriteend = null;
157 fileWriter.onwriteend = writeContent;
158 fileWriter.truncate(0);
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/
DFileSystemCallbacks.cpp214 …mCallbacks> FileWriterBaseCallbacks::create(PassRefPtr<FileWriterBase> fileWriter, PassOwnPtr<File… in create() argument
216 return adoptPtr(new FileWriterBaseCallbacks(fileWriter, successCallback, errorCallback)); in create()
219 FileWriterBaseCallbacks::FileWriterBaseCallbacks(PassRefPtr<FileWriterBase> fileWriter, PassOwnPtr<… in FileWriterBaseCallbacks() argument
221 , m_fileWriter(fileWriter) in FileWriterBaseCallbacks()
226 void FileWriterBaseCallbacks::didCreateFileWriter(PassOwnPtr<blink::WebFileWriter> fileWriter, long… in didCreateFileWriter() argument
228 m_fileWriter->initialize(fileWriter, length); in didCreateFileWriter()
DDOMFileSystemSync.cpp225 RefPtr<FileWriterSync> fileWriter = FileWriterSync::create(); in createWriter() local
230 …OwnPtr<AsyncFileSystemCallbacks> callbacks = FileWriterBaseCallbacks::create(fileWriter, successCa… in createWriter()
233 …fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter.get(), callbacks.release… in createWriter()
238 return fileWriter.release(); in createWriter()
DDOMFileSystem.cpp142 RefPtr<FileWriter> fileWriter = FileWriter::create(executionContext()); in createWriter() local
144 …OwnPtr<AsyncFileSystemCallbacks> callbacks = FileWriterBaseCallbacks::create(fileWriter, conversio… in createWriter()
145 …fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter.get(), callbacks.release… in createWriter()
DFileWriter.cpp49 RefPtr<FileWriter> fileWriter(adoptRef(new FileWriter(context))); in create() local
50 fileWriter->suspendIfNeeded(); in create()
51 return fileWriter.release(); in create()
DFileWriterCallback.idl32 void handleEvent(FileWriter fileWriter);
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DIsolatedFileSystem.js397 function fileWriterCreated(fileWriter) argument
399 fileWriter.onerror = errorHandler.bind(this);
400 fileWriter.onwriteend = fileTruncated;
401 fileWriter.truncate(0);
405 fileWriter.onwriteend = writerEnd;
407 fileWriter.write(blob);
/external/chromium_org/chrome/browser/resources/chromeos/wallpaper_manager/js/
Dwallpaper_manager.js765 fileEntry.createWriter(function(fileWriter) { argument
766 fileWriter.onwriteend = function(e) {
782 fileWriter.onerror = errorHandler;
786 fileWriter.write(blob);
796 fileEntry.createWriter(function(fileWriter) { argument
797 fileWriter.addEventListener('writeend', function(e) {
810 fileWriter.addEventListener('error', errorHandler);
811 fileWriter.write(file);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DContextTest.java160 FileWriter fileWriter = new FileWriter(file); in openFileInput_shouldReturnAFileInputStream() local
161 fileWriter.write(fileContents); in openFileInput_shouldReturnAFileInputStream()
162 fileWriter.close(); in openFileInput_shouldReturnAFileInputStream()
/external/smali/smali/src/main/java/org/jf/smali/
Dmain.java237 FileWriter fileWriter = new FileWriter(dumpFileName); in main() local
238 out.writeAnnotationsTo(fileWriter); in main()
239 fileWriter.close(); in main()