Home
last modified time | relevance | path

Searched refs:File (Results 1 – 25 of 69) sorted by relevance

123

/development/tools/idegen/src/
DConfiguration.java17 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;
56 this.toolDirectory = new File("development/tools/idegen"); in Configuration()
68 List<File> jarFiles = new ArrayList<File>(500); in Configuration()
69 SortedSet<File> excludedDirs = new TreeSet<File>(); in Configuration()
70 SortedSet<File> sourceRoots = new TreeSet<File>(); in Configuration()
72 traverse(new File("."), sourceRoots, jarFiles, excludedDirs, excludes); in Configuration()
[all …]
DIntelliJ.java17 import java.io.File;
33 File templatesDirectory = new File(c.toolDirectory, "templates"); in generateFrom()
34 String ipr = Files.toString(new File(templatesDirectory, IDEA_IPR)); in generateFrom()
35 Files.toFile(ipr, new File(IDEA_IPR)); in generateFrom()
37 String iml = Files.toString(new File(templatesDirectory, IDEA_IML)); in generateFrom()
40 for (File sourceRoot : c.sourceRoots) { in generateFrom()
53 for (File excludedDir : c.excludesUnderSourceRoots()) { in generateFrom()
77 for (File jar : c.jarFiles) { in generateFrom()
89 Files.toFile(iml, new File(IDEA_IML)); in generateFrom()
92 private static boolean isTests(File file) { in isTests()
DEclipse.java17 import java.io.File;
49 File precedence = new File("path-precedence"); in generateFrom()
67 OUTER: for (File sourceRoot : c.sourceRoots) { in generateFrom()
81 for (File sourceRoot : bucket.sourceRoots) { in generateFrom()
95 for (File jar : c.jarFiles) { in generateFrom()
109 Files.toFile(classpath.toString(), new File(".classpath")); in generateFrom()
116 private static CharSequence constructExcluding(File sourceRoot, in constructExcluding()
122 SortedSet<File> nextRoots = c.sourceRoots.tailSet(sourceRoot); in constructExcluding()
124 for (File nextRoot : nextRoots) { in constructExcluding()
146 SortedSet<File> excludedDirs = c.excludedDirs.tailSet(sourceRoot); in constructExcluding()
[all …]
/development/tools/idegen/src/com/android/idegen/
DDirectorySearch.java25 import java.io.File;
53 private static File repoRoot = null;
61 public static File getRepoRoot() { in getRepoRoot()
73 public static void findAndInitRepoRoot(File file) { in findAndInitRepoRoot()
80 File[] files = file.listFiles(new FilenameFilter() { in findAndInitRepoRoot()
82 public boolean accept(File dir, String name) { in findAndInitRepoRoot()
90 File parent = file.getParentFile(); in findAndInitRepoRoot()
106 public static File findModuleRoot(File path) throws IOException { in findModuleRoot()
108 File dir; in findModuleRoot()
115 File makeFile = new File(dir, "Android.mk"); in findModuleRoot()
[all …]
DIntellijProject.java23 import java.io.File;
48 File indexFile;
49 File projectPath;
54 this.indexFile = new File(Preconditions.checkNotNull(indexFile)); in IntellijProject()
55 this.projectPath = new File(Preconditions.checkNotNull(projectPath)); in IntellijProject()
63 File repoRoot = DirectorySearch.getRepoRoot(); in build()
65 File frameworkDir = new File(repoRoot, FRAMEWORK_MODULE_DIR); in build()
68 buildFrameWorkModule(new File(repoRoot, FRAMEWORK_MODULE_DIR)); in build()
74 File dir = new File(repoRoot, moduleDir); in build()
98 File ideaDir = new File(projectPath, ".idea"); in createProjectFiles()
[all …]
DFrameworkModule.java22 import java.io.File;
42 public FrameworkModule(File moduleDir) throws IOException { in FrameworkModule()
50 appendContentRoot(sb, DirectorySearch.getRepoRoot() + File.separator + in buildIntermediates()
51 REL_OUT_APP_DIR + File.separator + intermediate); in buildIntermediates()
54 appendContentRoot(sb, DirectorySearch.getRepoRoot() + File.separator + in buildIntermediates()
55 REL_OUT_LIB_DIR + File.separator + intermediate); in buildIntermediates()
62 File intermediates = new File(rootPath); in appendContentRoot()
63 ImmutableList<File> intermediateSrcDirs = DirectorySearch.findSourceDirs(intermediates); in appendContentRoot()
65 for (File src : intermediateSrcDirs) { in appendContentRoot()
DModule.java28 import java.io.File;
71 private File imlFile;
73 private Set<File> allDependentImlFiles = Sets.newHashSet();
75 private File makeFile;
76 private File moduleRoot;
77 private HashSet<File> sourceFiles = Sets.newHashSet();
86 Set<File> implicitModulePathDependencies = Sets.newHashSet();
92 public Module(File moduleDir) throws IOException { in Module()
96 public Module(File moduleDir, boolean parseMakeFileForSource) throws IOException { in Module()
98 this.makeFile = new File(moduleDir, "Android.mk"); in Module()
[all …]
DModuleCache.java22 import java.io.File;
49 public void init(File indexFile) throws IOException { in init()
54 public Module getAndCacheByDir(File moduleDir) throws IOException { in getAndCacheByDir()
80 File makeFile = new File(makeFileName); in getAndCacheByName()
89 private void putModule(File moduleDir, Module module) throws IOException { in putModule()
93 private Module getModule(File moduleDir) throws IOException { in getModule()
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/
DRmTypeDefsTest.java11 import java.io.File;
20 import static java.io.File.separatorChar;
30 File dir = Files.createTempDir(); in test()
104 File srcDir = new File(dir, "test" + File.separator + "pkg"); in test()
107 File srcFile1 = new File(srcDir, "TestClass.java"); in test()
110 srcDir = new File(dir, "android" + File.separator + "annotation"); in test()
113 File srcFile2 = new File(srcDir, "IntDef.java"); in test()
176 assertDoesNotContainBytes(new File(dir, in test()
183 private void assertDoesNotContainBytes(File file, String sub) throws IOException { in assertDoesNotContainBytes()
206 String getDirectoryContents(File root) { in getDirectoryContents()
[all …]
/development/tools/bugreport/src/com/android/bugreport/
DOptions.java21 import java.io.File;
50 public File bugreport;
57 public File monkey;
64 public File logcat;
69 public File html;
89 result.monkey = new File(argParser.nextData()); in parseArgs()
95 result.html = new File(argParser.nextData()); in parseArgs()
101 result.logcat = new File(argParser.nextData()); in parseArgs()
111 result.bugreport = new File(argParser.nextData()); in parseArgs()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DExternalStorage.java39 import java.io.File;
185 File path = Environment.getExternalStoragePublicDirectory( in createExternalStoragePublicPicture()
187 File file = new File(path, "DemoPicture.jpg"); in createExternalStoragePublicPicture()
227 File path = Environment.getExternalStoragePublicDirectory( in deleteExternalStoragePublicPicture()
229 File file = new File(path, "DemoPicture.jpg"); in deleteExternalStoragePublicPicture()
238 File path = Environment.getExternalStoragePublicDirectory( in hasExternalStoragePublicPicture()
240 File file = new File(path, "DemoPicture.jpg"); in hasExternalStoragePublicPicture()
253 File path = getExternalFilesDir(Environment.DIRECTORY_PICTURES); in createExternalStoragePrivatePicture()
254 File file = new File(path, "DemoPicture.jpg"); in createExternalStoragePrivatePicture()
291 File path = getExternalFilesDir(Environment.DIRECTORY_PICTURES); in deleteExternalStoragePrivatePicture()
[all …]
/development/samples/ReceiveContentDemo/src/com/example/android/receivecontent/
DAttachmentsRepo.java31 import java.io.File;
49 private final File mAttachmentsDir;
53 mAttachmentsDir = new File(mContext.getFilesDir(), "attachments"); in AttachmentsRepo()
71 File newAttachment = new File(mAttachmentsDir, fileName); in write()
85 File[] files = mAttachmentsDir.listFiles(); in deleteAll()
89 for (File file : files) { in deleteAll()
96 File[] files = mAttachmentsDir.listFiles(); in getAllUris()
101 for (File file : files) { in getAllUris()
108 private Uri getUriForFile(@NonNull File file) { in getUriForFile()
/development/tools/rmtypedefs/src/com/android/tools/rmtypedefs/
DRmTypeDefs.java28 import java.io.File;
58 private List<File> mAnnotationClassFiles = Lists.newArrayList();
59 private Set<File> mAnnotationOuterClassFiles = Sets.newHashSet();
71 List<File> dirs = new ArrayList<File>(); in run()
89 File file = new File(arg); in run()
105 for (File dir : dirs) { in run()
122 private void checkFile(File file) { in checkFile()
124 File[] files = file.listFiles(); in checkFile()
126 for (File f : files) { in checkFile()
145 private void checkClass(File file) { in checkClass()
[all …]
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
DMainActivityFragment.java34 import java.io.File;
49 private ArrayAdapter<File> mFilesArrayAdapter;
50 private ArrayList<File> mFiles;
102 mFilesArrayAdapter = new ArrayAdapter<File>(getActivity(), in onResume()
125 private ArrayList<File> createListOfFiles() { in createListOfFiles()
126 ArrayList<File> listOfFiles = new ArrayList<File>(); in createListOfFiles()
135 private void addFilesToList(ArrayList<File> listOfFiles, File dir) { in addFilesToList()
136 File[] files = dir.listFiles(); in addFilesToList()
137 for (File file: files) { in addFilesToList()
149 for (File file: mFiles) { in updateListOfFiles()
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudProvider.java38 import java.io.File;
90 private File mBaseDir;
165 final File parent = getFileForDocId(rootId); in queryRecentDocuments()
168 PriorityQueue<File> lastModifiedFiles = new PriorityQueue<File>(5, new Comparator<File>() { in queryRecentDocuments()
169 public int compare(File i, File j) { in queryRecentDocuments()
177 final LinkedList<File> pending = new LinkedList<File>(); in queryRecentDocuments()
185 final File file = pending.removeFirst(); in queryRecentDocuments()
197 final File file = lastModifiedFiles.remove(); in queryRecentDocuments()
212 final File parent = getFileForDocId(rootId); in querySearchDocuments()
221 final LinkedList<File> pending = new LinkedList<File>(); in querySearchDocuments()
[all …]
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java25 import java.io.File;
154 public static File getOutputMediaFile(int type){ in getOutputMediaFile()
161 File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory( in getOutputMediaFile()
176 File mediaFile; in getOutputMediaFile()
178 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
181 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java25 import java.io.File;
154 public static File getOutputMediaFile(int type){ in getOutputMediaFile()
161 File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory( in getOutputMediaFile()
176 File mediaFile; in getOutputMediaFile()
178 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
181 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java25 import java.io.File;
154 public static File getOutputMediaFile(int type){ in getOutputMediaFile()
161 File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory( in getOutputMediaFile()
176 File mediaFile; in getOutputMediaFile()
178 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
181 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
/development/samples/apkcachetest/src/com/android/apkcachetest/
DMain.java24 import java.io.File;
34 File preloadsFileCache = getPreloadsFileCache(); in onCreate()
44 File[] files = preloadsFileCache.listFiles(); in onCreate()
48 for (File file : files) { in onCreate()
62 String readTextFile(File file) throws IOException { in readTextFile()
/development/apps/Development/src/com/android/development/
DCacheAbuser.java19 import java.io.File;
53 final File mBaseDir;
57 AbuseTask(File cacheDir, boolean quick) { in AbuseTask()
58 File dir = new File(cacheDir, quick ? "quick" : "slow"); in AbuseTask()
59 mBaseDir = new File(dir, Long.toString(System.currentTimeMillis())); in AbuseTask()
70 File dir = new File(mBaseDir, Long.toString(dir1num)); in doInBackground()
71 File file = new File(dir, Long.toString(dir2num)); in doInBackground()
/development/tools/mkstubs/src/com/android/mkstubs/
DSourceGenerator.java26 import java.io.File;
52 public void generateSource(File baseDir, in generateSource()
67 FileWriter createWriter(File baseDir, String name) throws IOException { in createWriter()
68 File f = new File(baseDir, name); in createWriter()
/development/tools/winscope/src/traces/
DTraceBase.ts17 type File = { alias
28 _files: File[];
37 get files(): File[] {
/development/samples/browseable/CommitContentSampleIME/src/com.example.android.commitcontent.ime/
DImageKeyboard.java42 import java.io.File;
57 private File mPngFile;
58 private File mGifFile;
59 private File mWebpFile;
89 @NonNull File file) { in doCommitContent()
192 final File imagesDir = new File(getFilesDir(), "images"); in onCreate()
251 private static File getFileForResource( in getFileForResource()
252 @NonNull Context context, @RawRes int res, @NonNull File outputDir, in getFileForResource()
254 final File outputFile = new File(outputDir, filename); in getFileForResource()
/development/samples/Vault/src/com/example/android/vault/
DUtils.java23 import java.io.File;
49 public static void writeFully(File file, byte[] data) throws IOException { in writeFully()
58 public static byte[] readFully(File file) throws IOException { in readFully()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DDiskLruCache.java23 import java.io.File;
154 private final File directory;
155 private final File journalFile;
156 private final File journalFileTmp;
254 public static void deleteContents(File dir) throws IOException { in deleteContents()
255 File[] files = dir.listFiles(); in deleteContents()
259 for (File file : files) { in deleteContents()
288 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { in DiskLruCache()
291 this.journalFile = new File(directory, JOURNAL_FILE); in DiskLruCache()
292 this.journalFileTmp = new File(directory, JOURNAL_FILE_TMP); in DiskLruCache()
[all …]

123