/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. 45 import java.io.File; 55 private static final File TEST_FILE = new File( 59 * Set of file paths that should all refer to the same location to verify 62 private static final File[] IDENTICAL_FILES = { 63 new File("/sdcard/caek"), 64 new File(System.getenv("EXTERNAL_STORAGE"), "caek"), 65 new File(Environment.getExternalStorageDirectory(), "caek"), 72 for (File file : IDENTICAL_FILES) [all...] |
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
CommonExternalStorageTest.java | 5 * you may not use this file except in compliance with the License. 33 import java.io.File; 75 final File single = getContext().getExternalCacheDir(); 77 final File firstMultiple = getContext().getExternalCacheDirs()[0]; 85 final File single = getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES); 87 final File firstMultiple = getContext() 96 final File single = getContext().getObbDir(); 98 final File firstMultiple = getContext().getObbDirs()[0]; 106 final List<File> paths = getAllPackageSpecificPaths(getContext()); 107 for (File path : paths) [all...] |
/external/smali/util/src/main/java/org/jf/util/ |
PathUtil.java | 31 import java.io.File; 39 public static File getRelativeFile(File baseFile, File fileToRelativize) throws IOException { 44 return new File(getRelativeFileInternal(baseFile.getCanonicalFile(), fileToRelativize.getCanonicalFile())); 48 File baseFile = new File(basePath); 54 new File(pathToRelativize).getCanonicalFile()); 57 static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) [all...] |
/development/tools/idegen/src/ |
IntelliJ.java | 5 * you may not use this file except in compliance with the License. 17 import java.io.File; 33 File templatesDirectory = new File(c.toolDirectory, "templates"); 34 String ipr = Files.toString(new File(templatesDirectory, IDEA_IPR)); 35 Files.toFile(ipr, new File(IDEA_IPR)); 37 String iml = Files.toString(new File(templatesDirectory, IDEA_IML)); 40 for (File sourceRoot : c.sourceRoots) { 41 sourceRootsXml.append("<sourceFolder url=\"file://$MODULE_DIR$/") 53 for (File excludedDir : c.excludesUnderSourceRoots()) [all...] |
/external/jacoco/org.jacoco.examples/src/org/jacoco/examples/ |
ReportGenerator.java | 14 import java.io.File; 38 private final File executionDataFile; 39 private final File classesDirectory; 40 private final File sourceDirectory; 41 private final File reportDirectory; 50 public ReportGenerator(final File projectDirectory) { 52 this.executionDataFile = new File(projectDirectory, "jacoco.exec"); 53 this.classesDirectory = new File(projectDirectory, "bin"); 54 this.sourceDirectory = new File(projectDirectory, "src"); 55 this.reportDirectory = new File(projectDirectory, "coveragereport") [all...] |
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/io/ |
File.java | 5 * use this file except in compliance with the License. You may obtain a copy of 23 /** LocalStorage based File implementation for GWT. Should probably have used Harmony as a starting point instead of writing this 27 public class File { 29 public static final File ROOT = new File(""); 41 File parent; 45 public File (String pathname) { 58 parent = new File(pathname.substring(0, cut)); 61 // Compatibility.println("new File ('"+pathname+ "'); canonical name: '" + getCanonicalPath() + "'"); 64 public File (String parent, String child) [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/platform/jvm/ |
JvmPlatform.java | 5 * you may not use this file except in compliance with the License. 32 import java.io.File; 80 public File vmExecutable(File javaHome) { 83 File bin = new File(javaHome, "bin"); 86 File jvm = new File(bin, "java"); 88 jvm = new File(bin, "java.exe"); 146 public File customVmHomeDir(Map<String, String> vmGroupMap, String vmConfigName [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
IoTestCase.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 51 private File testDir; 52 private File tempDir; 54 private final Set<File> filesToDelete = Sets.newHashSet(); 58 for (File file : filesToDelete) { 59 if (file.exists()) { 60 delete(file); 66 private File getTestDir() throws IOException 99 File file = new File(getTestDir(), name); local [all...] |
/libcore/tzdata/update/src/test/libcore/tzdata/update/ |
ConfigBundleTest.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 38 private final List<File> testFiles = new ArrayList<>(); 44 for (File tempFile : testFiles) { 55 addZipEntry(zipOutputStream, "subDir/../file"); 56 addZipEntry(zipOutputStream, "subDir/subDir/subDir/file"); 60 File dir = createTempDir(); 61 File targetDir = new File(dir, "target"); 67 new File(targetDir, "leadingSlash") [all...] |
/art/compiler/linker/ |
file_output_stream.h | 5 * you may not use this file except in compliance with the License. 28 explicit FileOutputStream(File* file); 39 File* const file_;
|
/art/runtime/ |
os_linux.cc | 5 * you may not use this file except in compliance with the License. 30 File* OS::OpenFileForReading(const char* name) { 34 File* OS::OpenFileReadWrite(const char* name) { 38 static File* CreateEmptyFile(const char* name, int extra_flags) { 39 // In case the file exists, unlink it so we get a new file. This is necessary as the previous 40 // file may be in use and must not be changed. 46 File* OS::CreateEmptyFile(const char* name) { 50 File* OS::CreateEmptyFileWriteOnly(const char* name) { 54 File* OS::OpenFileWithFlags(const char* name, int flags) [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
ITestResultRepo.java | 5 * you may not use this file except in compliance with the License. 18 import java.io.File; 44 * @return A {@link File} representing the report directory for the given sessionId 46 public File getReportDir(int sessionId);
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/ |
DeltaApplier.java | 4 // you may not use this file except in compliance with the License. 17 import java.io.File; 34 public void applyDelta(File oldBlob, InputStream deltaIn, OutputStream newBlobOut)
|
/external/clang/bindings/python/tests/cindex/ |
test_file.py | 1 from clang.cindex import Index, File 6 file = File.from_name(tu, "t.c") 7 assert str(file) == "t.c" 8 assert file.name == "t.c" 9 assert repr(file) == "<File: t.c>"
|
/external/emma/core/java12/com/vladium/util/ |
Files.java | 12 import java.io.File; 36 public static String [] readFileList (final File atfile) 88 public static File [] pathToFiles (final String [] path, final boolean canonical) 96 final String separators = ",".concat (File.pathSeparator); 112 _result.add (new File (pathname)); 117 final File [] result = new File [_result.size ()]; 125 * will return the absolute form of 'pathname' if File.getCanonicalPath() fails. 133 return new File (pathname).getCanonicalPath (); 137 return new File (pathname).getAbsolutePath () [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
DiskCacheAdapter.java | 5 import java.io.File; 12 public File get(Key key) {
|
/external/jacoco/jacoco-maven-plugin.test/it/it-check-passes/ |
verify.bsh | 16 String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
|
/external/jacoco/jacoco-maven-plugin.test/it/it-dump/ |
verify.bsh | 16 String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
|
/external/jacoco/jacoco-maven-plugin.test/it/it-report-unreadable-dump/ |
verify.bsh | 15 String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) ); 16 if ( buildLog.indexOf( "Unable to read execution data file" ) < 0 ) {
|
/external/jacoco/jacoco-maven-plugin.test/it/it-report-without-debug/ |
verify.bsh | 15 String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
|
/external/jacoco/jacoco-maven-plugin.test/it/it-report-without-dump/ |
verify.bsh | 15 String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) ); 16 if ( buildLog.indexOf( "Skipping JaCoCo execution due to missing execution data file" ) < 0 ) {
|
/external/jetty/src/java/org/eclipse/jetty/util/component/ |
FileDestroyable.java | 21 import java.io.File; 35 final List<File> _files = new ArrayList<File>(); 41 public FileDestroyable(String file) throws IOException 43 _files.add(Resource.newResource(file).getFile()); 46 public FileDestroyable(File file) 48 _files.add(file); 51 public void addFile(String file) throws IOException 53 _files.add(Resource.newResource(file).getFile()) [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/ |
FileSystemResourceLoader.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 34 private final File rootDir; 36 public FileSystemResourceLoader(File rootDir) { 41 this(new File(rootDir)); 46 File file = new File(rootDir, name); local 47 // Check for non-directory rather than is-file so that reads from 49 if (file.exists() && !file.isDirectory() && file.canRead()) 73 File file = new File(rootDir, filename); local [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
XmlLoader.java | 5 import java.io.File; 15 protected abstract void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Exception;
|
/external/vogar/src/vogar/commands/ |
Mkdir.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 32 public void mkdirs(File directory) {
|