/libcore/tzdata/update/src/main/libcore/tzdata/update/ |
TzDataBundleInstaller.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 34 private final File installDir; 36 public TzDataBundleInstaller(String logTag, File installDir) { 49 File oldTzDataDir = new File(installDir, OLD_TZ_DATA_DIR_NAME); 54 File currentTzDataDir = new File(installDir, CURRENT_TZ_DATA_DIR_NAME); 55 File workingDir = new File(installDir, WORKING_DIR_NAME) 127 File file = new File(filePath); local [all...] |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 39 * Creates a new {@link java.io.File} from the {@code parentDir} and {@code name}, but only if 40 * the resulting file would exist beneath {@code parentDir}. Useful if {@code name} could 43 * @throws java.io.IOException if the file would not exist beneath {@code parentDir} 45 public static File createSubFile(File parentDir, String name) throws IOException { 48 File subFile = new File(parentDir, name).getCanonicalFile(); 66 public static void ensureDirectoriesExist(File dir, boolean makeWorldReadable 173 File file = new File(rootDir, fileName); local [all...] |
/packages/apps/Camera2/src/com/android/camera/session/ |
SessionStorageManagerImpl.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 38 private final File mBaseDirectory; 44 private final File mDeprecatedBaseDirectory; 58 SessionStorageManagerImpl(File baseDirectory, File deprecatedBaseDirectory) { 64 public File getSessionDirectory(String subDirectory) throws IOException { 65 File sessionDirectory = new File(mBaseDirectory, subDirectory); 78 File deprecatedSessionDirectory = new File(mDeprecatedBaseDirectory, subDirectory) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldFileTest.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; 36 File tempDir = new File(System.getProperty("java.io.tmpdir")); 39 File f = new File(tempDir, files[i]); 45 new File(tempDir, files[i]).delete(); 49 private void deleteTempFolder(File dir) [all...] |
/development/tools/idegen/src/com/android/idegen/ |
IntellijProject.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 48 File indexFile; 49 File projectPath; 54 this.indexFile = new File(Preconditions.checkNotNull(indexFile)); 55 this.projectPath = new File(Preconditions.checkNotNull(projectPath)); 63 File repoRoot = DirectorySearch.getRepoRoot(); 65 File frameworkDir = new File(repoRoot, FRAMEWORK_MODULE_DIR); 68 buildFrameWorkModule(new File(repoRoot, FRAMEWORK_MODULE_DIR)) [all...] |
FrameworkModule.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 42 public FrameworkModule(File moduleDir) throws IOException { 50 appendContentRoot(sb, DirectorySearch.getRepoRoot() + File.separator + 51 REL_OUT_APP_DIR + File.separator + intermediate); 54 appendContentRoot(sb, DirectorySearch.getRepoRoot() + File.separator + 55 REL_OUT_LIB_DIR + File.separator + intermediate); 62 File intermediates = new File(rootPath); 63 ImmutableList<File> intermediateSrcDirs = DirectorySearch.findSourceDirs(intermediates) [all...] |
/external/libchrome/base/files/ |
file_unittest.cc | 3 // found in the LICENSE file. 5 #include "base/files/file.h" 17 using base::File; 26 // Don't create a File at all. 27 File file; local 28 EXPECT_FALSE(file.IsValid()); 29 EXPECT_EQ(base::File::FILE_ERROR_FAILED, file.error_details()); 31 File file2(base::File::FILE_ERROR_TOO_MANY_OPENED) 65 File file; local [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TestResultRepo.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 37 * ordered list of result directories. the index of each file is its session id. 39 private List<File> mResultDirs; 46 public TestResultRepo(File testResultsDir) { 47 mResultDirs = new ArrayList<File>(); 48 File[] resultArray = testResultsDir.listFiles(new ResultDirFilter()); 50 List<File> resultList = new ArrayList<File>(); 54 File resultFile = new File(resultList.get(i) [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/file/ |
StreamFileDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.file; 11 import java.io.File; 16 * cache file from {@link java.io.InputStream} data. 18 public class StreamFileDataLoadProvider implements DataLoadProvider<InputStream, File> { 21 private final ResourceDecoder<File, File> cacheDecoder; 30 public ResourceDecoder<File, File> getCacheDecoder() { 35 public ResourceDecoder<InputStream, File> getSourceDecoder() { 45 public ResourceEncoder<File> getEncoder() [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/comparator/ |
SizeFileComparator.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; 27 * {@link File#length()} and {@link FileUtils#sizeOfDirectory(File)}). 35 * List<File> list = ... 42 * File[] array = ... 52 public class SizeFileComparator implements Comparator<File>, Serializable { 55 public static final Comparator<File> SIZE_COMPARATOR = new SizeFileComparator() [all...] |
/external/okhttp/okhttp-testing-support/src/main/java/com/squareup/okhttp/internal/io/ |
InMemoryFileSystem.java | 5 * you may not use this file except in compliance with the License. 18 import java.io.File; 28 /** A simple file system where all files are held in memory. Not safe for concurrent use. */ 30 private final Map<File, Buffer> files = new LinkedHashMap<>(); 32 @Override public Source source(File file) throws FileNotFoundException { 33 Buffer result = files.get(file); 38 @Override public Sink sink(File file) throws FileNotFoundException { 40 files.put(file, result) 71 File file = i.next(); local [all...] |
/external/vogar/src/vogar/ |
LocalTarget.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 47 public static File defaultDeviceDir() { 48 return new File("/tmp/vogar"); 59 @Override public void await(File nonEmptyDirectory) { 62 @Override public void rm(File file) { 63 rm.file(file); 66 @Override public List<File> ls(File directory) throws FileNotFoundException [all...] |
Target.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 36 public abstract List<File> ls(File directory) throws FileNotFoundException; 37 public abstract void await(File nonEmptyDirectory); 38 public abstract void rm(File file); 39 public abstract void mkdirs(File file); 41 public abstract void push(File local, File remote) [all...] |
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
MultiUserStorageTest.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 47 private void wipeTestFiles(File dir) { 49 final File[] files = dir.listFiles(); 51 for (File file : files) { 52 if (file.getName().startsWith(FILE_PREFIX)) { 53 Log.d(TAG, "Wiping " + file); 54 file.delete(); 70 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) [all...] |
/development/tools/idegen/src/ |
Configuration.java | 5 * you may not use this file except in compliance with the License. 17 import java.io.File; 37 public final SortedSet<File> sourceRoots; 40 public final List<File> jarFiles; 43 public final SortedSet<File> excludedDirs; 46 public final File toolDirectory; 48 /** File name used for excluded path files. */ 56 this.toolDirectory = new File("development/tools/idegen"); 68 List<File> jarFiles = new ArrayList<File>(500) [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/ |
FileProcessor.java | 2 * Copyright 2011 See AUTHORS file.
5 * you may not use this file except in compliance with the License.
21 import java.io.File;
29 /** Collects files recursively, filtering by file name. Callbacks are provided to process files and the results are collected,
31 * the callbacks have the original file, the output directory, and the output file. If {@link #setFlattenOutput(boolean)} is
36 Comparator<File> comparator = new Comparator<File>() {
37 public int compare (File o1, File o2) { [all...] |
/art/test/577-profile-foreign-dex/src/ |
Main.java | 5 * you may not use this file except in compliance with the License. 17 import java.io.File; 31 private static final String TEMP_FILE_NAME_SUFFIX = "-file"; 34 File tmpFile = null; 35 File appDir = null; 36 File profileFile = null; 37 File foreignDexProfileDir = null; 42 appDir = new File(tmpFile.getParent(), APP_DIR_PREFIX + tmpFile.getName()); 44 foreignDexProfileDir = new File(tmpFile.getParent(), FOREIGN_DEX_PROFILE_DIR); 74 private static void testMarkerForForeignDex(File foreignDexProfileDir) throws Exception [all...] |
/external/jacoco/org.jacoco.report/src/org/jacoco/report/ |
FileMultiReportOutput.java | 17 import java.io.File; 28 private final File basedir; 36 public FileMultiReportOutput(final File basedir) { 41 final File file = new File(basedir, path); local 42 final File parent = file.getParentFile(); 47 return new BufferedOutputStream(new FileOutputStream(file));
|
/external/proguard/src/proguard/io/ |
FileDataEntry.java | 28 * This <code>DataEntry</code> represents a file. 34 private final File directory; 35 private final File file; field in class:FileDataEntry 39 public FileDataEntry(File directory, 40 File file) 43 this.file = file; 51 // Chop the directory name from the file name and get the right separators [all...] |
/libcore/ojluni/src/main/java/java/io/ |
UnixFileSystem.java | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 14 * version 2 for more details (a copy is included in the LICENSE file that 42 new GetPropertyAction("file.separator")).charAt(0); 124 public boolean isAbsolute(File f) { 128 public String resolve(File f) { 140 // On Unix symlinks can jump anywhere in the file system, so we only 180 File f = new File(res) [all...] |
/art/runtime/base/ |
scoped_flock.h | 5 * you may not use this file except in compliance with the License. 32 // Attempts to acquire an exclusive file lock (see flock(2)) on the file 36 // It is an error if its inode changed (usually due to a new file being 38 // locking will be retried if the file changed. In non-blocking mode, false 41 // The file is opened with the provided flags. 45 // Attempt to acquire an exclusive file lock (see flock(2)) on 'file'. 48 bool Init(File* file, std::string* error_msg) [all...] |
/cts/common/host-side/util/src/com/android/compatibility/common/util/ |
DynamicConfigHostSide.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 32 File configFile = getConfigFile(new File(CONFIG_FOLDER_ON_HOST), moduleName);
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
TestPackageDefTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 30 * Regression test for {@link TestPackageDef#generateDigest(File, String)} that ensures expected 36 InputStream getFileStream(File dir, String fileName) { 40 String digest = def.generateDigest(new File("unused"), "alsounused");
|
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
RandomAccessFileInputStreamFactory.java | 4 // you may not use this file except in compliance with the License. 17 import java.io.File; 28 * Argument for {@link RandomAccessFileInputStream#RandomAccessFileInputStream(File, long, long)}. 30 private final File file; field in class:RandomAccessFileInputStreamFactory 33 * Argument for {@link RandomAccessFileInputStream#RandomAccessFileInputStream(File, long, long)}. 38 * Argument for {@link RandomAccessFileInputStream#RandomAccessFileInputStream(File, long, long)}. 45 * @param file the file to use in {@link #newStream()} 49 public RandomAccessFileInputStreamFactory(File file, long rangeOffset, long rangeLength) [all...] |
/external/jacoco/org.jacoco.ant.test/src/org/jacoco/ant/ |
AgentTaskTest.java | 14 import java.io.File; 26 final File file = new File("src/org/jacoco/ant/AgentTaskTest.xml"); local 27 return new AntUnitSuite(file, AgentTaskTest.class);
|