/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidFileTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 23 * Checks creation and deletion of a file. 28 File file = File.createTempFile(String.valueOf(System.currentTimeMillis()), null, null); local 30 assertTrue(file.exists()); 31 assertTrue(file.delete()); 32 assertFalse(file.exists());
|
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/ |
FileEntry.cpp | 34 #include "core/fileapi/File.h" 53 void FileEntry::file(PassOwnPtr<FileCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback) function in class:WebCore::FileEntry
|
FileEntrySync.cpp | 35 #include "core/fileapi/File.h" 46 PassRefPtr<File> FileEntrySync::file(ExceptionState& exceptionState) function in class:WebCore::FileEntrySync
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
brw_eu_debug.c | 39 static const char *file[] = { local 61 if (hwreg.file == BRW_GENERAL_REGISTER_FILE && 71 else if (hwreg.file == BRW_GENERAL_REGISTER_FILE && 79 else if (hwreg.file == BRW_IMMEDIATE_VALUE) { 84 file[hwreg.file],
|
/external/chromium_org/tools/gyp/test/rules-use-built-dependencies/src/ |
main.cc | 3 // found in the LICENSE file. 10 FILE* file; local 11 file = fopen(argv[1], "wb"); 13 fwrite(output, 1, sizeof(output) - 1, file); 14 fclose(file);
|
/external/elfutils/libdwfl/ |
dwfl_lineinfo.c | 3 This file is part of Red Hat elfutils. 25 those well defined interfaces identified in the file named EXCEPTION 36 covered by this exception. If you modify this file, you may extend this 37 exception to your version of the file, but you are not obligated to do 40 this file solely under the GPL without exception. 70 struct Dwarf_Fileinfo_s *file = &info->files->info[info->file]; local 72 *mtime = file->mtime; 74 *length = file->length; 75 return file->name [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_eu_debug.c | 39 static const char *file[] = { local 61 if (hwreg.file == BRW_GENERAL_REGISTER_FILE && 71 else if (hwreg.file == BRW_GENERAL_REGISTER_FILE && 79 else if (hwreg.file == BRW_IMMEDIATE_VALUE) { 84 file[hwreg.file],
|
/frameworks/base/tools/aapt/ |
SourcePos.h | 12 String8 file; member in class:SourcePos 24 static void printErrors(FILE* to);
|
/art/runtime/base/unix_file/ |
fd_file_test.cc | 5 * you may not use this file except in compliance with the License. 43 FdFile file; local 44 EXPECT_EQ(-1, file.Fd()); 45 EXPECT_FALSE(file.IsOpened()); 46 EXPECT_TRUE(file.GetPath().empty()); 50 std::string good_path(GetTmpPath("some-file.txt")); 51 FdFile file; local 52 ASSERT_TRUE(file.Open(good_path, O_CREAT | O_WRONLY)); 53 EXPECT_GE(file.Fd(), 0); 54 EXPECT_TRUE(file.IsOpened()) [all...] |
/external/chromium_org/tools/gyp/test/standalone/ |
gyptest-standalone.py | 5 # found in the LICENSE file. 20 # of them reference the gyp file. 22 for file in files: 24 if os.path.splitext(__file__)[0] in file: 26 file = os.path.join(root, file) variable 27 contents = open(file).read() 29 print 'gyp file referenced in generated output: %s' % file
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
EntropyMixerTest.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE); 32 File file = File.createTempFile("testInitialWrite", "dat", dir); local 33 file.deleteOnExit(); 34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); 36 // The constructor has the side effect of writing to file 37 new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath()) [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
VpnServiceTest.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 112 File file = new File("/dev/tun"); local 113 assertTrue(file.exists()); 114 assertFalse(file.isFile()); 115 assertFalse(file.isDirectory()); 116 assertFalse(file.canExecute()); 117 assertFalse(file.canRead()) [all...] |
/cts/libs/vogar-expect/src/vogar/commands/ |
Rm.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 26 public void file(File file) { method in class:Rm 27 new Command("rm", "-f", file.getPath()).execute(); 30 public void directoryTree(File directory) {
|
/external/chromium_org/chrome/common/safe_browsing/ |
zip_analyzer.cc | 3 // found in the LICENSE file. 17 VLOG(1) << "Failed to open zip file"; 28 VLOG(1) << "Failed to open current entry in zip file"; 31 const base::FilePath& file = reader.current_entry_info()->file_path(); local 32 if (download_protection_util::IsBinaryFile(file)) { 35 if (download_protection_util::IsArchiveFile(file)) { 38 VLOG(2) << "Downloaded a zipped executable: " << file.value(); 43 VLOG(3) << "Ignoring non-binary file: " << file.value();
|
/external/chromium_org/media/base/ |
media_file_checker_unittest.cc | 3 // found in the LICENSE file. 15 base::PlatformFile file = base::CreatePlatformFile( local 22 MediaFileChecker checker(file); 27 base::ClosePlatformFile(file);
|
/external/chromium_org/sandbox/win/sandbox_poc/pocdll/ |
fs.cc | 3 // found in the LICENSE file. 8 // This file contains the tests used to verify the security of the file system. 10 // Tries to open a file and outputs the result. 13 void TryOpenFile(wchar_t *path, FILE *output) { 21 HANDLE file; local 22 file = ::CreateFile(path_expanded, 30 if (file && INVALID_HANDLE_VALUE != file) { 31 fprintf(output, "[GRANTED] Opening file \"%S\". Handle 0x%p\r\n", path [all...] |
/external/chromium_org/third_party/angle/src/compiler/ |
InfoSink.cpp | 4 // found in the LICENSE file. 34 void TInfoSinkBase::location(int file, int line) { 37 stream << file << ":" << line; 39 stream << file << ":? "; local
|
/external/iproute2/tc/ |
tc_monitor.c | 40 FILE *fp = (FILE*)arg; 70 char *file = NULL; local 74 if (matches(*argv, "file") == 0) { 76 file = *argv; 88 if (file) { 89 FILE *fp; 90 fp = fopen(file, "r");
|
/external/junit/src/org/junit/rules/ |
TemporaryFolder.java | 3 import java.io.File; 20 * File createdFile= folder.newFile("myfile.txt"); 21 * File createdFolder= folder.newFolder("subfolder"); 28 private File folder; 49 * Returns a new fresh file with the given name under the temporary folder. 51 public File newFile(String fileName) throws IOException { 52 File file= new File(getRoot(), fileName); local 53 file.createNewFile() 68 File file = getRoot(); local [all...] |
/external/libmtp/examples/ |
getfile.c | 2 * \file getfile.c 3 * Example program to retrieve a file off the device. 48 printf("\nError getting file from MTP device.\n"); 60 char *file; local 62 // We need file ID and filename 74 fprintf(stderr, "bad file/track id %u\n", id); 79 file = argv[2]; 80 printf("Getting file/track %d to local file %s\n", id, file); [all...] |
/external/libvpx/libvpx/ |
vpxstats.h | 5 * that can be found in the LICENSE file in the root of the source 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 24 FILE *file; member in struct:__anon24062
|
/external/valgrind/main/none/tests/ |
mmap_fcntl_bug.c | 3 * mmap. Feed it a r/w file, such as its own source code. */ 19 const char *file = /* argv[1]; */ local 24 if (!file) 25 errx(1, "Usage: %s <normal-file>", argv[0]); 27 fd = open(file, O_RDWR); 29 err(1, "Opening %s", file); 45 err(1, "Locking %s", file); 47 /* If under valgrind, mmap re-opens and closes file, screwing us */ 49 err(1, "mmap of %s", file);
|
/system/core/libcutils/ |
cpu_info.c | 6 ** you may not use this file except in compliance with the License. 31 FILE* file; local 37 file = fopen("proc/cpuinfo", "r"); 38 if (! file) 41 while ((chp = fgets(serial_number, sizeof(serial_number), file)) != NULL) 79 fclose(file);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
TracingControllerAndroidTest.java | 3 // found in the LICENSE file. 17 import java.io.File; 41 File file = new File(tracingController.getOutputPath()); local 42 assertTrue(file.getName().startsWith("chrome-profile-results")); 52 // close the output file. Give it a little time. 61 // It says it stopped, so it should have written the output file. 62 assertTrue(file.exists()); 63 assertTrue(file.delete()) [all...] |