HomeSort by relevance Sort by last modified time
    Searched refs:File (Results 226 - 250 of 4359) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/conscrypt/src/test/java/org/conscrypt/ct/
CTLogStoreImplTest.java 5 * you may not use this file except in compliance with the License.
23 import java.io.File;
91 File testFile = writeFile(LOGS_SERIALIZED[0]);
95 // Empty log file, used to mask fallback logs
103 CTLogStoreImpl.loadLog(new File("/nonexistent"));
109 File userDir = createTempDirectory();
112 File systemDir = createTempDirectory();
121 * But mask log 3 with an empty file in the user directory.
124 File log0File = new File(userDir, LOG_FILENAMES[0])
160 File file = File.createTempFile("test", null); local
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowEnvironment.java 3 import java.io.File;
26 public static File getExternalStorageDirectory() {
32 public static File getExternalStoragePublicDirectory(String type) {
33 File f = (type == null) ? ShadowContext.EXTERNAL_FILES_DIR : new File( ShadowContext.EXTERNAL_FILES_DIR, type );
  /external/vogar/src/vogar/android/
DexTask.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
29 private final File jar;
31 private final File localDex;
34 File jar, Action action, File localDex) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
OpenRandomFileTest.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;
37 File file = File.createTempFile("test", "tmp"); local
38 assertTrue(file.exists());
39 file.deleteOnExit();
40 FileOutputStream fos = new FileOutputStream(file);
50 File file = File.createTempFile("test", "tmp"); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
FileDescriptorTest.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
29 File f= File.createTempFile("FileDescriptorTest", "tmp");
34 File f = new File("/dev/null");
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/
FileDeleteStrategy.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;
25 * There is more than one way to delete a file.
38 * The singleton instance for normal file deletion, which does not permit
43 * The singleton instance for forced file deletion, which always deletes,
44 * even if the file represents a non-empty directory.
63 * Deletes the file object, which may be a file or a directory
    [all...]
FileUtils.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;
48 * General file manipulation utilities.
52 * <li>writing to a file
53 * <li>reading from a file
59 * <li>comparing file content
60 * <li>file last changed date
108 * An empty array of type <code>File</code>
1046 File file = files[i]; local
1456 File file = files[i]; local
1523 File file = files[i]; local
    [all...]
DirectoryWalker.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;
59 * public List clean(File startDirectory) {
65 * protected boolean handleDirectory(File directory, int depth, Collection results) {
76 * protected void handleFile(File file, int depth, Collection results) {
77 * // delete file and add to list of deleted
78 * file.delete()
572 private File file; field in class:DirectoryWalker.CancelException
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
AssetFileAddress.java 5 * use this file except in compliance with the License. You may obtain a copy of
19 import java.io.File;
23 * As opposed to a normal file, an asset is usually represented as a contiguous byte array in
24 * the package file. Open it correctly thus requires the name of the package it is in, but
25 * also the offset in the file and the length of this data. This class encapsulates these three.
42 * @return the address, or null if the file does not exist or the parameters are not valid.
46 final File f = new File(filename);
57 * @return the address, or null if the file does not exist or the parameters are not valid.
62 final File f = new File(filename)
    [all...]
  /external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/
FileByFileV1DeltaApplier.java 4 // you may not use this file except in compliance with the License.
21 import java.io.File;
39 private final File tempDir;
46 public FileByFileV1DeltaApplier(File tempDir) {
51 public void applyDelta(File oldBlob, InputStream deltaIn, OutputStream newBlobOut)
55 // will fail when it tries to create the file in a few more lines anyways.
58 File tempFile = File.createTempFile("gfbfv1", "old", tempDir);
75 File oldBlob, File deltaFriendlyOldBlob, InputStream deltaIn, OutputStream newBlobOut
    [all...]
  /external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
APKExpansionSupport.java 5 * you may not use this file except in compliance with the License.
18 import java.io.File;
36 File root = Environment.getExternalStorageDirectory();
37 File expPath = new File(root.toString() + EXP_PATH + packageName);
39 // Check that expansion file path exists
42 String strMainPath = expPath + File.separator + "main."
44 File main = new File(strMainPath);
50 String strPatchPath = expPath + File.separator + "patch.
    [all...]
  /packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
FetchDownloadsLoader.java 5 * you may not use this file except in compliance with the License.
25 import java.io.File;
35 private File mDirectory;
42 public FetchDownloadsLoader(Context context, File directory) {
57 static DownloadsResult collectFiles(File dir) {
61 private static DownloadsResult collectFiles(File dir, DownloadsResult result) {
65 File downloadFiles[] = dir.listFiles();
67 for (File currentFile : downloadFiles) {
95 public ArrayList<File> files;
98 this(0, Long.MAX_VALUE, new ArrayList<File>());
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/
SdkToolsLocator.java 5 * you may not use this file except in compliance with the License.
22 import java.io.File;
49 private final File mSdkFolder;
51 public SdkToolsLocator(File sdkFolder) {
56 return new File(getSdkPlatformToolsFolder(), SdkConstants.FN_ADB).getAbsolutePath();
60 return new File(getSdkToolsFolder(), FN_TRACEVIEW).getAbsolutePath();
64 return new File(getSdkPlatformToolsFolder(), FN_HPROF_CONV).getAbsolutePath();
68 return new File(mSdkFolder, SdkConstants.FD_TOOLS).getAbsolutePath();
72 return new File(mSdkFolder, SdkConstants.FD_PLATFORM_TOOLS).getAbsolutePath();
81 File f = new File(exe)
    [all...]
  /external/guava/guava/src/com/google/common/io/
Files.java 5 * you may not use this file except in compliance with the License.
36 import java.io.File;
73 * Returns a buffered reader that reads from a file using the given
76 * @param file the file to read from
81 public static BufferedReader newReader(File file, Charset charset)
83 checkNotNull(file);
86 new InputStreamReader(new FileInputStream(file), charset));
90 * Returns a buffered writer that writes to a file using the give
117 private final File file; field in class:Files.FileByteSource
190 private final File file; field in class:Files.FileByteSink
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ContextTest.java 13 import java.io.File;
34 File[] files = context.getFilesDir().listFiles();
38 File[] cachedFiles = context.getFilesDir().listFiles();
51 public void deleteDir(File path) {
53 File[] files = path.listFiles();
55 for (File f : files) {
64 File dataDir = new File(ShadowContext.FILES_DIR, "data");
75 File dataDir = new File(ShadowContext.FILES_DIR, "data")
159 File file = new File(context.getFilesDir(), "__test__"); local
190 File file = new File("__test__"); local
226 File file = new File(filesDir, "test.txt"); local
236 File file = new File(filesDir, "test.txt"); local
    [all...]
  /external/emma/core/java12/com/vladium/emma/report/
SourcePathCache.java 11 import java.io.File;
44 final File dir = new File (sourcepath [i]);
50 m_sourcepath = new File [_sourcepath.size ()];
59 public SourcePathCache (final File [] sourcepath, final boolean removeNonExistent)
66 final File dir = sourcepath [i];
72 m_sourcepath = new File [_sourcepath.size ()];
81 public synchronized File find (final String packageVMName, final String name)
109 final File relativeFile = new File (packageVMName.replace ('/', File.separatorChar), name)
    [all...]
  /frameworks/base/services/core/java/com/android/server/updates/
SELinuxPolicyInstallReceiver.java 5 * you may not use this file except in compliance with the License.
28 import java.io.File;
70 private void installFile(File destination, BufferedInputStream stream, int length)
77 private void deleteRecursive(File fileOrDirectory) {
79 for (File child : fileOrDirectory.listFiles())
86 File tmp = new File(updateDir.getParentFile(), "tmp");
91 installFile(new File(tmp, versionPath), stream, chunkLengths[0]);
92 installFile(new File(tmp, macPermissionsPath), stream, chunkLengths[1]);
93 installFile(new File(tmp, seappContextsPath), stream, chunkLengths[2])
    [all...]
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
HelpersTest.java 5 * you may not use this file except in compliance with the License.
26 import java.io.File;
43 final File expected = new File(getContext().getFilesDir(), "file.mp4");
45 "http://example.com/file.txt", null, null, null,
51 final File expected1 = new File(getContext().getFilesDir(), "file.txt");
52 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt"
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/resource/
Support_Resources.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;
45 File resources = createTempFolder();
58 url = new URL("file:/" + resPath + "/" + fileName);
65 public static File createTempFolder() {
66 File folder = null;
68 folder = File.createTempFile("hyts_resources", "", null);
78 public static void copyFile(File root, String folder, String file)
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/jar/
OldJarFileTest.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;
31 private final String jarName = "hyts_patch.jar"; // a 'normal' jar file
33 private File resources;
42 new JarFile(new File("Wrong.file"));
48 new JarFile(new File(resources, jarName));
53 new JarFile("Wrong.file");
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
GiftTest.java 5 * you may not use this file except in compliance with the License.
29 import java.io.File;
37 final List<File> noneList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_NONE);
38 for (File none : noneList) {
43 final List<File> readList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_READ);
44 for (File read : readList) {
48 final List<File> writeList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_WRITE);
49 for (File write : writeList) {
  /cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
ReadGiftTest.java 5 * you may not use this file except in compliance with the License.
29 import java.io.File;
37 final List<File> noneList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_NONE);
38 for (File none : noneList) {
43 final List<File> readList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_READ);
44 for (File read : readList) {
49 final List<File> writeList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_WRITE);
50 for (File write : writeList) {
  /cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
WriteGiftTest.java 5 * you may not use this file except in compliance with the License.
29 import java.io.File;
37 final List<File> noneList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_NONE);
38 for (File none : noneList) {
47 final List<File> readList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_READ);
48 for (File read : readList) {
57 final List<File> writeList = getAllPackageSpecificGiftPaths(getContext(), PACKAGE_WRITE);
58 for (File write : writeList) {
  /cts/hostsidetests/theme/app/src/android/theme/app/
ThemeTestUtils.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
29 * Compresses the contents of a directory to a ZIP file.
34 public static boolean compressDirectory(File dir, File file) throws IOException {
35 if (dir == null || !dir.exists() || file == null || file.exists()) {
39 final File[] srcFiles = dir.listFiles();
44 final ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(file));
    [all...]
  /dalvik/dx/src/com/android/multidex/
FolderPathElement.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
30 private File baseFolder;
32 public FolderPathElement(File baseFolder) {
38 return new FileInputStream(new File(baseFolder,
39 path.replace(SEPARATOR_CHAR, File.separatorChar)));
53 private void collect(File folder, String prefix, ArrayList<String> result) {
54 for (File file : folder.listFiles()) {
55 if (file.isDirectory())
    [all...]

Completed in 1781 milliseconds

1 2 3 4 5 6 7 8 91011>>