HomeSort by relevance Sort by last modified time
    Searched refs:File (Results 301 - 325 of 1913) sorted by null

<<11121314151617181920>>

  /packages/apps/Gallery2/src/com/android/photos/data/
FileRetriever.java 5 * you may not use this file except in compliance with the License.
26 import java.io.File;
33 public File getLocalFile(Uri contentUri) {
34 return new File(contentUri.getPath());
60 public boolean getMedia(Uri contentUri, MediaSize imageSize, File tempFile) {
65 File preview = MediaCache.getInstance().getCachedFile(contentUri, MediaSize.Preview);
71 File highRes = new File(contentUri.getPath());
  /external/quake/src/com/android/quake/
DownloaderActivity.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
78 * @param configVersion The version of the configuration file.
89 File dest = new File(dataPath);
115 return deleteTree(new File(directory), true);
118 private static boolean deleteTree(File base, boolean deleteBase) {
121 for (File child : base.listFiles()) {
131 private static boolean versionMatches(File dest, String expectedVersion) {
139 private static Config getLocalConfig(File destPath, String configFilename)
    [all...]
  /cts/tools/vm-tests-tf/src/util/build/
DasmBuildStep.java 5 * you may not use this file except in compliance with the License.
25 import java.io.File;
58 private boolean assemble(File file) {
60 String fname = file.getAbsolutePath();
62 // read and parse .d file
66 dAsm.readD(inp, new File(fname).getName(), generate_linenum);
93 // determine where to place .dex file
96 String class_dir = class_path[0].replaceAll("/|\\.", Character.toString(File.separatorChar));
98 dest_dir = dest_dir + File.separator + class_dir
    [all...]
  /libcore/luni/src/main/java/java/util/prefs/
FilePreferencesImpl.java 2 * contributor license agreements. See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
28 * platform, using the file system as its back end.
30 * TODO some sync mechanism with backend, Performance - check file edit date
36 //prefs file name
45 //file path for this preferences node
51 //file represents this preferences node
52 private File prefsFile
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/zip/
OldAndroidZipStressTest.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
38 public void checkJarCertificates(File file) throws Exception {
39 JarFile jarFile = new JarFile(file);
61 private File[] getFiles() {
62 File[] result = new File("/system/app").listFiles(new FilenameFilter() {
63 public boolean accept(File dir, String name) {
67 return result != null ? result : new File[0]
    [all...]
OldZipInputStreamTest.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
21 import java.io.File;
34 private byte[] dataBytes = "Some data in my file".getBytes();
40 System.out.println("file hyts_ZipFile.zip can not be found");
61 File resources = Support_Resources.createTempFolder();
63 FileInputStream fis = new FileInputStream(new File(resources,
90 File resources = Support_Resources.createTempFolder();
92 FileInputStream fis = new FileInputStream(new File(resources
    [all...]
ZipEntryTest.java 5 * you may not use this file except in compliance with the License.
20 import java.io.File;
33 private static File createTemporaryZipFile() throws IOException {
34 File result = File.createTempFile("ZipFileTest", "zip");
39 private static ZipOutputStream createZipOutputStream(File f) throws IOException {
53 // Create a zip file containing non-ASCII filenames.
54 File f = File.createTempFile("your", "mum");
107 File f = createTemporaryZipFile()
    [all...]
  /packages/apps/Email/src/org/apache/james/mime4j/util/
SimpleTempStorage.java 3 * or more contributor license agreements. See the NOTICE file *
5 * regarding copyright ownership. The ASF licenses this file *
7 * "License"); you may not use this file except in compliance *
24 import java.io.File;
61 File p = null;
65 p = new File(parent.getAbsolutePath(), prefix + n);
88 File f = null;
94 f = new File(parent.getAbsolutePath(), prefix + n + suffix);
99 throw new IOException("Creating temp file failed: "
100 + "Unable to find unique file name");
188 private File file = null; field in class:SimpleTempStorage.SimpleTempFile
    [all...]
  /cts/hostsidetests/aadb/src/com/android/cts/aadb/
TestDeviceStressTest.java 5 * you may not use this file except in compliance with the License.
28 import java.io.File;
51 private File createTempTestFiles() throws IOException {
52 File tmpDir = null;
53 File tmpFile = null;
57 final String fileContents = "this is the test file contents";
67 * Stress test to push a folder which contains 200 text file to device
71 File tmpDir = null;
  /cts/tests/tests/speech/src/android/speech/tts/cts/
TextToSpeechServiceTest.java 5 * you may not use this file except in compliance with the License.
22 import java.io.File;
55 File sampleFile = new File(Environment.getExternalStorageDirectory(), SAMPLE_FILE_NAME);
63 assertTrue("synthesizeToFile() didn't produce a file", sampleFile.exists());
64 assertTrue("synthesizeToFile() produced a non-sound file",
78 File sampleFile = new File(Environment.getExternalStorageDirectory(), "notsound.wav");
  /development/tools/mkstubs/src/com/android/mkstubs/
SourceGenerator.java 5 * you may not use this file except in compliance with the License.
26 import java.io.File;
38 * {@link #generateSource(File, Map, Filter)}.
52 public void generateSource(File baseDir,
71 FileWriter createWriter(File baseDir, String name) throws IOException {
72 File f = new File(baseDir, name);
  /external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
ParserLoader.java 52 File dir = new File(classDir);
56 File[] files = dir.listFiles(new ClassFilenameFilter(grammarName));
57 for(File f : files) {
118 public boolean accept(File dir, String name) {
  /external/dexmaker/src/test/java/com/google/dexmaker/
AppDataDirGuesserTest.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
89 public boolean isWriteableDirectory(File file) {
90 return !notWriteable.contains(file.getAbsolutePath());
93 boolean fileOrDirExists(File file) {
97 File[] results = guesser.guessPath(path);
101 assertEquals("Element " + i, new File(files[i]), results[i]);
  /external/littlemock/tests/com/google/testing/littlemock/
AppDataDirGuesserTest.java 5 * use this file except in compliance with the License. You may obtain a copy of
21 import java.io.File;
91 public boolean isWriteableDirectory(File file) {
92 return !notWriteable.contains(file.getAbsolutePath());
95 boolean fileOrDirExists(File file) {
99 File[] results = guesser.guessPath(path);
103 assertEquals("Element " + i, new File(files[i]), results[i]);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/bytecode/
RobolectricClassLoader.java 8 import java.io.File;
27 final File classCacheDirectory;
29 classCacheDirectory = new File("./tmp");
31 classCacheDirectory = new File(classCachePath);
34 classCache = new ClassCache(new File(classCacheDirectory, "cached-robolectric-classes.jar").getAbsolutePath(), AndroidTranslator.CACHE_VERSION);
  /external/webkit/Tools/Scripts/
make-script-test-wrappers 36 use File::Basename;
37 use File::Find;
82 push @files, $File::Find::name if substr($_, -3) eq ".js";
97 for my $file (@files) {
98 my $html = $file;
102 system("cat ${file} | tr '\\0' ' ' | grep -q 'successfullyParsed ='");
104 `echo "" >> "${file}"`;
105 `echo "var successfullyParsed = true;" >> "${file}"`;
110 my $output = ($file =~ /-n\.js/) ? $templateNegative : $template;
111 $output =~ s:YOUR_JS_FILE_HERE:$file:
    [all...]
  /frameworks/base/core/tests/coretests/src/android/database/
DatabaseErrorHandlerTest.java 5 * you may not use this file except in compliance with the License.
27 import java.io.File;
34 private File mDatabaseFile;
36 private File dbDir;
42 mDatabaseFile = new File(dbDir, DB_NAME);
60 // database file should still exist
67 // write junk into the database file
72 // since the database file is now corrupt, doing any sql on this database connection
90 // database file should be gone
92 // after corruption handler is called, the database file should be free o
    [all...]
  /frameworks/base/drm/java/android/drm/
DrmRights.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
31 * {@link DrmRights#DrmRights(String, String)} constructor, which takes a path to a file
49 * @param rightsFilePath Path to the file containing rights information.
53 File file = new File(rightsFilePath); local
54 instantiate(file, mimeType);
60 * @param rightsFilePath Path to the file containing rights information.
73 * @param rightsFilePath Path to the file containing rights information
    [all...]
  /frameworks/testing/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DumpCommand.java 5 * you may not use this file except in compliance with the License.
30 import java.io.File;
40 private static final File DEFAULT_DUMP_FILE = new File(
54 return " dump [--verbose][file]\n"
56 + " [file]: the location where the dumped XML should be stored, default is\n "
62 File dumpFile = DEFAULT_DUMP_FILE;
69 dumpFile = new File(arg);
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
Package.java 5 * use this file except in compliance with the License. You may obtain a copy of
21 import java.io.File;
43 return COMMAND + " <src_filename> <dst_filename>: Package a file for distribution";
50 final File intermediateFile = File.createTempFile(PREFIX, SUFFIX);
71 return COMMAND + " <src_filename> <dst_filename>: Detects how a file is packaged and\n"
72 + "decrypts/uncompresses as necessary to produce a raw binary file.";
80 BinaryDictOffdeviceUtils.getRawBinaryDictionaryOrNull(new File(mArgs[0]));
87 final FileOutputStream dstStream = new FileOutputStream(new File(mArgs[1]));
  /external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
JarFileTest.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;
42 * The file contains the following entries:
66 private File resources;
68 private final String jarName = "hyts_patch.jar"; // a 'normal' jar file
88 * @tests java.util.jar.JarFile#JarFile(java.io.File)
92 File f = new File(resources, JAR1)
256 File file = Support_Resources.getExternalLocalFile(jarDirUrl local
314 File file = new File(Support_PlatformFile.getNewPlatformFile( local
    [all...]
  /external/emma/core/java12/com/vladium/emma/data/
MergeProcessor.java 11 import java.io.File;
59 * always overwrites the out file [to ensure compaction]
69 final File _file = new File (fileName);
72 throw new IllegalArgumentException ("not a file: [" + _file.getAbsolutePath () + "]");
108 final File f = m_dataPath [p];
121 File sdataOutFile = m_sdataOutFile;
124 sdataOutFile = new File (toolProperties.getProperty (EMMAProperties.PROPERTY_SESSION_DATA_OUT_FILE,
141 final File dataFile = m_dataPath [f];
142 if (verbose) log.verbose ("processing input file [" + dataFile.getAbsolutePath () + "] ...")
    [all...]
  /frameworks/base/test-runner/src/android/test/
ClassPathPackageInfoSource.java 5 * you may not use this file except in compliance with the License.
24 import java.io.File;
58 // A cache of jar file contents
59 private final Map<File, Set<String>> jarFiles = Maps.newHashMap();
113 File classPathEntry = new File(entryName);
124 File file = new File(apkPath); local
125 scanForApkFiles(file, packageName, classNames, subpackageNames)
    [all...]
  /packages/apps/VoiceDialer/src/com/android/voicedialer/
RecognizerLogger.java 5 * you may not use this file except in compliance with the License.
28 import java.io.File;
45 * and the rest deleted to limit space used in the file system.
66 * @return true if logging is enabled, determined by the 'enabled' file.
69 File dir = context.getDir(LOGDIR, 0);
70 File enabled = new File(dir, ENABLED);
80 File dir = context.getDir(LOGDIR, 0);
81 File enabled = new File(dir, ENABLED)
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
PhotoStore.java 5 * use this file except in compliance with the License. You may obtain a copy of
28 import java.io.File;
53 /** The file path for photo storage. */
54 private final File mStorePath;
67 public PhotoStore(File rootDirectory, ContactsDatabaseHelper databaseHelper) {
68 mStorePath = new File(rootDirectory, DIRECTORY);
84 File[] files = mStorePath.listFiles();
86 for (File file : files) {
87 cleanupFile(file);
190 File file = null; local
    [all...]

Completed in 784 milliseconds

<<11121314151617181920>>