/cts/tests/webgl/src/android/webgl/cts/ |
ZipUtil.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 37 * Stream to a file. 40 File directory, 42 File file = new File(directory, name); local 43 streamToPath(is, file); 47 File file) throws Exception [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_GetLocal.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 22 import java.io.File; 35 static Hashtable<String, File> cache = new Hashtable<String, File>(20); 37 public static File getLocalFile(String url) throws IOException, 40 File temp = cache.get(url); 43 temp = File.createTempFile("hyts_local", ".tmp", null); 58 public static File getExternalLocalFile(String url) throws IOException 96 File file = getLocalFile("hyts_att.jar"); local [all...] |
/external/chromium_org/base/files/ |
file_util_proxy.h | 3 // found in the LICENSE file. 10 #include "base/files/file.h" 18 // This class provides asynchronous access to common file routines. 24 typedef Callback<void(File::Error)> StatusCallback; 26 typedef Callback<void(File::Error, 27 const File::Info&)> GetFileInfoCallback; 29 // Retrieves the information about a file. It is invalid to pass a null 37 // Deletes a file or a directory. 45 // Touches a file. The callback can be null.
|
/external/chromium_org/content/browser/renderer_host/ |
file_utilities_message_filter.h | 3 // found in the LICENSE file. 9 #include "base/files/file.h" 32 const base::File::Info& file_info); 35 base::File::Info* result, 36 base::File::Error* status);
|
/external/chromium_org/content/public/test/ |
async_file_test_helper.h | 3 // found in the LICENSE file. 24 // A helper class to perform async file operations in a synchronous way. 34 static base::File::Error Copy(fileapi::FileSystemContext* context, 39 static base::File::Error CopyWithProgress( 46 static base::File::Error Move(fileapi::FileSystemContext* context, 51 static base::File::Error Remove(fileapi::FileSystemContext* context, 56 static base::File::Error ReadDirectory(fileapi::FileSystemContext* context, 61 static base::File::Error CreateDirectory(fileapi::FileSystemContext* context, 64 // Creates a file at |url|. 65 static base::File::Error CreateFile(fileapi::FileSystemContext* context [all...] |
/external/chromium_org/media/base/ |
media_file_checker_unittest.cc | 3 // found in the LICENSE file. 5 #include "base/files/file.h" 15 base::File file(GetTestDataFilePath(filename), 16 base::File::FLAG_OPEN | base::File::FLAG_READ); 17 ASSERT_TRUE(file.IsValid()); 19 MediaFileChecker checker(file.Pass());
|
/external/chromium_org/net/disk_cache/blockfile/ |
file_ios.cc | 3 // found in the LICENSE file. 5 #include "net/disk_cache/blockfile/file.h" 26 FileBackgroundIO(disk_cache::File* file, const void* buf, size_t buf_len, 29 : disk_cache::BackgroundIO(controller), callback_(callback), file_(file), 37 disk_cache::File* file() { function in class:__anon13168::FileBackgroundIO 54 disk_cache::File* file_; 70 // semantics of the File asynchronous operations, with the exception that the 72 void PostRead(disk_cache::File* file, void* buf, size_t buf_len [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitperl/ |
LoadAsModule.pm | 33 use File::Spec; 35 use lib File::Spec->catdir($FindBin::Bin, "..", ".."); 51 my $scriptPath = File::Spec->catfile(sourceDir(), "Tools", "Scripts", $script); 73 local $/ = undef; # Read in the whole file at once. 74 open FILE, "<", $path or die "Cannot open $path: $!"; 75 my $contents = <FILE>; 76 close FILE;
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitruby/check-for-inappropriate-macros-in-external-headers-tests/ |
run-test.rb | 27 $test_directory = File.dirname(__FILE__) 28 $tool = File.expand_path(File.join($test_directory, '..', '..', 'check-for-inappropriate-macros-in-external-headers')) 39 ENV['TARGET_BUILD_DIR'] = File.join($test_directory, 'resources') 47 expected_output = File.read File.join($test_directory, config[:expectedOutput])
|
/external/emma/ant/ant15/com/vladium/emma/ant/ |
XFileSet.java | 11 import java.io.File; 19 * a single 'file' attribute 40 // 'file' attribute: 41 public void setFile (final File file) 45 super.setFile (file); 51 final File parent = file.getParentFile (); 55 include.setName (file.getName ());
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
FileLoader.java | 6 import java.io.File; 9 * A simple model loader for {@link File} 11 public class FileLoader<T> implements ModelLoader<File, T> { 20 public DataFetcher<T> getResourceFetcher(File model, int width, int height) {
|
/external/guava/guava-tests/test/com/google/common/io/ |
PatternFilenameFilterTest.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 42 File dir = new File("foo");
|
/external/javassist/sample/hotswap/ |
Test.java | 9 File newfile = new File("logging/HelloWorld.class"); 17 newfile = new File("HelloWorld.class");
|
/external/lldb/test/attic/ |
dotest.pl | 10 use File::Find; 11 use File::Basename; 35 my $foundFile = $File::Find::name;
|
/frameworks/base/core/java/android/content/res/ |
ObbScanner.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 24 * about an OBB file for use in a program via {@link ObbInfo}. 31 * Scan a file for OBB information. 33 * @param filePath path to the OBB file to be scanned. 34 * @return ObbInfo object information corresponding to the file path 35 * @throws IllegalArgumentException if the OBB file couldn't be found 36 * @throws IOException if the OBB file couldn't be read 40 throw new IllegalArgumentException("file path cannot be null"); 43 final File obbFile = new File(filePath) [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
PendingPackage.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 24 PendingPackage(String name, String realName, File codePath, File resourcePath,
|
/libcore/benchmarks/src/benchmarks/regression/ |
JarFileBenchmark.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 33 File f = new File(filename);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
SyncFailedExceptionTest.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 20 import java.io.File; 32 File f = null; 34 f = File.createTempFile("SyncFailedExceptionTest", "tst");
|
/libcore/support/src/test/java/tests/support/ |
Support_GetLocal.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 22 import java.io.File; 35 static Hashtable<String, File> cache = new Hashtable<String, File>(20); 37 public static File getLocalFile(String url) throws IOException, 40 File temp = cache.get(url); 43 temp = File.createTempFile("hyts_local", ".tmp", null); 58 public static File getExternalLocalFile(String url) throws IOException 96 File file = getLocalFile("hyts_att.jar"); local [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
NotFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 19 import java.io.File; 36 * Constructs a new file filter that NOTs the result of another filters. 51 * @param file the File to check 54 public boolean accept(File file) { 55 return ! filter.accept(file); [all...] |
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
WriteExternalStorageTest.java | 5 * you may not use this file except in compliance with the License. 43 import java.io.File; 54 private static final File TEST_FILE = new File( 58 * Set of file paths that should all refer to the same location to verify 61 private static final File[] IDENTICAL_FILES = { 62 new File("/sdcard/caek"), 63 new File(System.getenv("EXTERNAL_STORAGE"), "caek"), 64 new File(Environment.getExternalStorageDirectory(), "caek"), 71 for (File file : IDENTICAL_FILES) [all...] |
/external/chromium_org/chrome/browser/chromeos/file_system_provider/fileapi/ |
provider_async_file_util.cc | 3 // found in the LICENSE file. 8 #include "base/files/file.h" 32 callback.Run(base::File::FILE_ERROR_INVALID_OPERATION, base::File::Info()); 41 base::File::Error result, 42 const base::File::Info& file_info) { 54 callback.Run(base::File::FILE_ERROR_INVALID_OPERATION, 66 base::File::Error result, 86 if ((file_flags & base::File::FLAG_CREATE) || 87 (file_flags & base::File::FLAG_OPEN_ALWAYS) | [all...] |
/cts/tools/cfassembler/src/dxconvext/util/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 24 * File I/O utilities. 35 * Reads the named file, translating {@link IOException} to a 38 * @param fileName non-null; name of the file to read 39 * @return non-null; contents of the file 42 File file = new File(fileName); local 43 return readFile(file); [all...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 24 * File I/O utilities. 35 * Reads the named file, translating {@link IOException} to a 38 * @param fileName {@code non-null;} name of the file to read 39 * @return {@code non-null;} contents of the file 42 File file = new File(fileName); local 43 return readFile(file); [all...] |
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/ |
RmTypeDefsTest.java | 11 import java.io.File; 20 import static java.io.File.separatorChar; 30 File dir = Files.createTempDir(); 104 File srcDir = new File(dir, "test" + File.separator + "pkg"); 107 File srcFile1 = new File(srcDir, "TestClass.java"); 110 srcDir = new File(dir, "android" + File.separator + "annotation") [all...] |