HomeSort by relevance Sort by last modified time
    Searched refs:File (Results 476 - 500 of 3205) sorted by null

<<11121314151617181920>>

  /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/hostsidetests/security/src/android/security/cts/
SELinuxHostTest.java 5 * you may not use this file except in compliance with the License.
28 import java.io.File;
39 * These tests analyze the policy file in use on the subject device directly or
57 * Tests that all domains in the running policy file are in enforcing mode
65 File execFile = File.createTempFile("sepolicy-analyze", ".tmp");
75 /* obtain sepolicy file from running device */
76 File policyFile = File.createTempFile("sepolicy", ".tmp");
79 /* run sepolicy-analyze permissive check on policy file */
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
MultinetworkTest.java 5 * you may not use this file except in compliance with the License.
25 import java.io.File;
88 File[] interfaceDirs = new File(IPV6_SYSCTL_DIR).listFiles();
89 for (File interfaceDir : interfaceDirs) {
93 String sysctl = new File(interfaceDir, AUTOCONF_SYSCTL).getAbsolutePath();
  /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/chromium_org/chrome/browser/chromeos/file_system_provider/fileapi/
file_stream_reader.h 3 // found in the LICENSE file.
23 // Implements a streamed file reader. It is lazily initialized by the first call
31 base::File::Error result)> InitializeCompletedCallback;
48 // Initializes the reader by opening the file. When completed with success,
60 base::File::Error result);
62 // Called when a file system provider returns chunk of read data. Note, that
65 // successful, and the file has not changed while reading.
69 base::File::Error result);
71 // Called when fetching length of the file is completed with either a success
75 base::File::Error result
    [all...]
  /external/chromium_org/chrome/browser/chromeos/file_system_provider/operations/
get_metadata.cc 3 // found in the LICENSE file.
19 base::File::Info* output) {
73 base::File::Info file_info;
77 callback_.Run(base::File::FILE_OK, file_info);
80 void GetMetadata::OnError(int /* request_id */, base::File::Error error) {
81 callback_.Run(error, base::File::Info());
  /external/chromium_org/content/browser/fileapi/
recursive_operation_delegate_unittest.cc 3 // found in the LICENSE file.
74 callback.Run(base::File::FILE_OK);
80 callback.Run(base::File::FILE_OK);
92 base::File::Error result,
93 const base::File::Info& file_info) {
94 if (result != base::File::FILE_OK) {
100 base::File::FILE_ERROR_NOT_A_FILE :
101 base::File::FILE_OK);
112 void ReportStatus(base::File::Error* out_error,
113 base::File::Error error)
    [all...]
obfuscated_file_util_unittest.cc 3 // found in the LICENSE file.
11 #include "base/files/file.h"
104 {"file://", false, true},
294 base::File::Info file_info;
296 base::File::Error error = ofu()->GetFileInfo(
298 return error == base::File::FILE_OK;
322 void CheckFileAndCloseHandle(const FileSystemURL& url, base::File file) {
325 EXPECT_EQ(base::File::FILE_OK,
328 base::File::Info file_info0
824 base::File file = ofu()->CreateOrOpen(context.get(), url, file_flags); local
1771 base::File file = local
1859 base::File file = local
2355 base::File file = local
2421 base::File file = local
    [all...]
  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
ImportantFileWriterAndroidTest.java 3 // found in the LICENSE file.
17 import java.io.File;
45 private void checkFile(File testFile, byte[] data) {
58 fail("Failed to read file");
66 // Try writing a file that can't be created.
68 assertFalse("Writing bad file succeded",
71 File dir = getInstrumentation().getTargetContext().getFilesDir();
72 File testFile = new File(dir, "ImportantFileTest");
74 // Make sure the file doesn't already exis
    [all...]
  /external/clang/include/clang/Basic/
FileSystemStatCache.h 5 // This file is distributed under the University of Illinois Open Source
10 /// \file
26 class File;
57 CacheExists, ///< We know the file exists and its cached stat data.
58 CacheMissing ///< We know that the file doesn't exist.
68 /// success for directories (not files). On a successful file lookup, the
69 /// implementation can optionally fill in \p F with a valid \p File object and
72 std::unique_ptr<vfs::File> *F, FileSystemStatCache *Cache,
91 // unique_ptr. Optional<unique_ptr<vfs::File>&> might be nicer, but
94 std::unique_ptr<vfs::File> *F
    [all...]
  /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/nanohttpd/webserver/markdown-plugin/src/main/java/fi/iki/elonen/
MarkdownWebServerPlugin.java 26 @Override public boolean canServeUri(String uri, File rootDir) {
27 File f = new File(rootDir, uri);
32 public NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, NanoHTTPD.IHTTPSession session, File file, String mimeType) {
33 String markdownSource = readSource(file);
38 private String readSource(File file) {
42 fileReader = new FileReader(file);
  /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);
  /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);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
FileDescriptorTest.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;
32 File f = File.createTempFile("FileDescriptorText", "txt");
74 File f = File.createTempFile("FileDescriptorText", "txt");
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
CheckedOutputStreamTest.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;
36 File.createTempFile("CheckedOutputStreamTest", ".txt"));
43 fail("Unable to find file");
46 "file cannot be opened for writing due to security reasons");
58 File.createTempFile("CheckedOutputStreamTest", ".txt"));
76 fail("Unable to find file");
79 "file cannot be opened for writing due to security reasons")
    [all...]
  /external/llvm/include/llvm/IR/
DIBuilder.h 5 // This file is distributed under the University of Illinois Open Source
10 // This file defines a DIBuilder that is useful for creating debugging
81 MDNode *File = nullptr, unsigned LineNo = 0,
98 /// @param File File name
109 /// @param SplitName The name of the file that we'll split debug info out
117 /// assembly or object file. This supports tracking
121 DICompileUnit createCompileUnit(unsigned Lang, StringRef File,
129 /// createFile - Create a file descriptor to hold debugging information
130 /// for a file
    [all...]
  /external/chromium_org/webkit/browser/fileapi/
file_writer_delegate.cc 3 // found in the LICENSE file.
59 write_callback_.Run(base::File::FILE_ERROR_ABORT, 0,
68 OnError(base::File::FILE_ERROR_SECURITY);
74 OnError(base::File::FILE_ERROR_SECURITY);
81 OnError(base::File::FILE_ERROR_SECURITY);
88 OnError(base::File::FILE_ERROR_SECURITY);
94 OnError(base::File::FILE_ERROR_FAILED);
104 OnError(base::File::FILE_ERROR_FAILED);
119 OnError(base::File::FILE_ERROR_FAILED);
173 void FileWriterDelegate::OnError(base::File::Error error)
    [all...]
recursive_operation_delegate.cc 3 // found in the LICENSE file.
57 base::File::Error error) {
63 if (canceled_ || error != base::File::FILE_ERROR_NOT_A_FILE) {
89 base::File::Error error) {
96 if (canceled_ || error != base::File::FILE_OK) {
111 base::File::Error error,
117 if (canceled_ || error != base::File::FILE_OK) {
169 base::File::Error error) {
171 if (error != base::File::FILE_OK) {
188 Done(base::File::FILE_ERROR_ABORT)
    [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...]

Completed in 1942 milliseconds

<<11121314151617181920>>