/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/login/ |
DefaultConfigParserTest.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 24 import java.io.File; 61 File f = new File(fconf); 96 * test on correct initialization of a config file 126 * test on invalid initialization of a config file 151 File file = File.createTempFile("auth_neg_", ".conf") local [all...] |
/external/bison/src/ |
location.h | 5 This file is part of Bison, the GNU Compiler Compiler. 28 /* The name of the file that contains the boundary. */ 29 uniqstr file; member in struct:__anon64 53 b->file = f; 63 int res = strcmp (a.file, b.file); 77 && UNIQSTR_EQ (a.file, b.file)); 101 /* Print location to file. Return number of actually printed 103 unsigned location_print (FILE *out, location loc) [all...] |
/external/chromium/chrome/common/ |
win_safe_util.cc | 3 // found in the LICENSE file. 40 // user can select for different file types. 50 // To help windows decide if the downloaded file is dangerous we can provide 53 // Set the file itself as evidence. 68 // "windows found that this file is potentially harmful. To help protect 69 // your computer, Windows has blocked access to this file." 70 // Upon dismissal of the dialog windows will delete the file (!!). 90 HANDLE file = CreateFile(path.c_str(), GENERIC_WRITE, kShare, NULL, local 92 if (INVALID_HANDLE_VALUE == file) 99 BOOL result = WriteFile(file, kIdentifier, kIdentifierSize, &written [all...] |
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
ArchiveTest.java | 3 // found in the LICENSE file. 17 import java.io.File; 39 File file = new File(path); local 40 if (file.exists()) 41 assertTrue(file.delete()); 42 assertFalse(file.exists()); 73 File file = new File(expectedPath) local [all...] |
/external/chromium_org/base/files/ |
scoped_temp_dir_unittest.cc | 3 // found in the LICENSE file. 105 base::PlatformFile file = base::CreatePlatformFile(file_path, file_flags, local 107 EXPECT_NE(base::kInvalidPlatformFileValue, file); 111 EXPECT_TRUE(base::ClosePlatformFile(file));
|
/external/chromium_org/base/third_party/xdg_user_dirs/ |
xdg_user_dir_lookup.cc | 2 This file is not licenced under the GPL like the rest of the code. 51 FILE *file; local 84 file = fopen (config_file, "r"); 86 if (file == NULL) 90 while (fgets (buffer, sizeof (buffer), file)) 162 fclose (file);
|
/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
truncate_operation.cc | 3 // found in the LICENSE file. 28 // Truncates the local file at |local_cache_path| to the |length| bytes, 43 base::PlatformFile file = base::CreatePlatformFile( local 51 DCHECK_NE(base::kInvalidPlatformFileValue, file); 52 base::ScopedPlatformFileCloser file_closer(&file); 54 if (!base::TruncatePlatformFile(file, length))
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
file_system_util_unittest.cc | 3 // found in the LICENSE file. 91 // Set up file system context for testing. 239 EXPECT_FALSE(util::IsSpecialResourceId("file:123")); 256 base::FilePath file = temp_dir.path().AppendASCII("test.gdoc"); local 257 EXPECT_TRUE(CreateGDocFile(file, url, resource_id)); 258 EXPECT_TRUE(HasGDocFileExtension(file)); 259 EXPECT_EQ(url, ReadUrlFromGDocFile(file)); 260 EXPECT_EQ(resource_id, ReadResourceIdFromGDocFile(file)); 263 file = temp_dir.path().AppendASCII("test.gsheet"); 264 EXPECT_TRUE(CreateGDocFile(file, url, resource_id)) [all...] |
/external/chromium_org/chrome/browser/net/ |
net_log_temp_file.cc | 3 // found in the LICENSE file. 52 dict->SetString("file", log_path_.LossyDisplayName()); 96 // Try to make sure we can create the file. 98 // to the user if we couldn't create the file. 99 FILE* file = base::OpenFile(log_path_, "w"); local 100 if (file == NULL) 104 net_log_logger_.reset(new net::NetLogLogger(file, *constants));
|
/external/chromium_org/chrome/browser/profiles/ |
profile_browsertest.cc | 3 // found in the LICENSE file. 33 // Creates a prefs file in the given directory. 36 base::PlatformFile file = base::CreatePlatformFile(pref_path, local 38 ASSERT_TRUE(file != base::kInvalidPlatformFileValue); 39 ASSERT_TRUE(base::ClosePlatformFile(file)); 83 // creating a profile synchronously with an existing prefs file. 128 // creating a profile asynchronously with an existing prefs file. 152 // Test that a README file is created for profiles that didn't have it. 176 content::RunAllPendingInMessageLoop(content::BrowserThread::FILE); 183 // Test that Profile can be deleted before README file is created [all...] |
/external/chromium_org/chrome/common/extensions/api/storage/ |
storage_schema_manifest_handler.cc | 3 // found in the LICENSE file. 44 base::FilePath file = base::FilePath::FromUTF8Unsafe(path); local 45 if (file.IsAbsolute() || file.ReferencesParent()) { 50 file = extension->path().AppendASCII(path); 51 if (!base::PathExists(file)) { 53 base::StringPrintf("File does not exist: %s", file.value().c_str()); 57 if (!base::ReadFileToString(file, &content)) { 58 *error = base::StringPrintf("Can't read %s", file.value().c_str()) [all...] |
/external/chromium_org/chrome/installer/util/ |
delete_tree_work_item.cc | 3 // found in the LICENSE file. 74 HANDLE file = ::CreateFile(key_file.value().c_str(), FILE_ALL_ACCESS, local 77 if (file != INVALID_HANDLE_VALUE) { 78 VLOG(1) << "Acquired exclusive lock for key file: " << key_file.value(); 79 opened_key_files.push_back(file); 158 // This could happen if we could not delete the key file to begin with. 159 PLOG(WARNING) << "Rollback: Failed to move backup file back in place: "
|
delete_tree_work_item_unittest.cc | 3 // found in the LICENSE file. 31 // Simple function to dump some text into a new file. 34 std::ofstream file; local 35 file.open(filename.c_str()); 36 ASSERT_TRUE(file.is_open()); 37 file << contents; 38 file.close(); 175 // Create a key path file. 189 // Run the key path file to keep it in use. 207 // delete should fail as file in use [all...] |
duplicate_tree_detector_unittest.cc | 3 // found in the LICENSE file. 26 // Simple function to dump some text into a new file. 29 std::wofstream file; local 30 file.open(filename.c_str()); 31 ASSERT_TRUE(file.is_open()); 32 file << contents; 33 file.close(); 36 // Creates a two level deep source dir with a file in each in |first_root| and 117 // Test when the file hierarchies are the same but one of the files is changed. 131 // Test when both file hierarchies are empty [all...] |
move_tree_work_item_unittest.cc | 3 // found in the LICENSE file. 32 // Simple function to dump some text into a new file. 35 std::wofstream file; local 36 file.open(WideToASCII(filename).c_str()); 37 ASSERT_TRUE(file.is_open()); 38 file << contents; 39 file.close(); 42 // Simple function to read text from a file. 45 std::wifstream file; local 46 file.open(WideToASCII(path.value()).c_str()) [all...] |
/external/chromium_org/cloud_print/gcp20/prototype/ |
cloud_print_response_parser.h | 3 // found in the LICENSE file. 34 std::string file; member in struct:cloud_print_response_parser::Job
|
/external/chromium_org/content/browser/ |
safe_util_win.cc | 3 // found in the LICENSE file. 22 // Sets the Zone Identifier on the file to "Internet" (3). Returns true if the 27 // |full_path| is the path to the downloaded file. 31 HANDLE file = CreateFile(path.c_str(), GENERIC_WRITE, kShare, NULL, local 33 if (INVALID_HANDLE_VALUE == file) 40 BOOL result = WriteFile(file, kIdentifier, kIdentifierSize, &written, NULL); 41 BOOL flush_result = FlushFileBuffers(file); 42 CloseHandle(file); 88 // A failure in the Save() call below could result in the downloaded file
|
/external/chromium_org/content/renderer/media/ |
media_stream_audio_processor_options.cc | 3 // found in the LICENSE file. 80 base::FilePath file = path.Append(FILE_PATH_LITERAL("audio.aecdump")); local 83 const std::string file_name = WideToUTF8(file.value()); 85 const std::string file_name = file.value();
|
/external/chromium_org/net/base/ |
net_log_logger_unittest.cc | 3 // found in the LICENSE file. 31 FILE* file = base::OpenFile(log_path_, "w"); local 32 ASSERT_TRUE(file); 34 NetLogLogger logger(file, *constants); 53 FILE* file = base::OpenFile(log_path_, "w"); local 54 ASSERT_TRUE(file); 56 NetLogLogger logger(file, *constants); 85 FILE* file = base::OpenFile(log_path_, "w") local [all...] |
/external/chromium_org/ppapi/native_client/src/trusted/plugin/ |
utility.cc | 4 * found in the LICENSE file. 16 FILE* gNaClPluginLogFile = NULL; 35 * Opens file where plugin log should be written. The file name is 37 * If environment variable doesn't exist or file can't be opened, 40 FILE* NaClPluginLogFileEnv() { 41 char* file = getenv("NACL_PLUGIN_LOG"); local 42 if (NULL != file) { 43 FILE* log_file = fopen(file, "w+") [all...] |
/external/chromium_org/ppapi/proxy/ |
serialized_handle.cc | 3 // found in the LICENSE file. 57 case FILE: 77 case FILE: 78 base::PlatformFile file = local 81 base::ClosePlatformFile(file); 83 close(file); 100 if (hdr.type == FILE) { 123 case FILE: {
|
/external/chromium_org/sandbox/win/src/ |
app_container_test.cc | 3 // found in the LICENSE file. 36 base::win::ScopedHandle file; local 37 file.Set(CreateFile(file_name, GENERIC_READ | STANDARD_RIGHTS_READ, kSharing, 40 if (!file.IsValid()) 44 if (!AtlGetSecurityDescriptor(file.Get(), SE_FILE_OBJECT, &sd,
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
DataLog.cpp | 36 // Uncomment to force logging to the given file regardless of what the environment variable says. Note that 48 static FilePrintStream* file; member in namespace:WTF 63 file = FilePrintStream::open(actualFilename, "w").leakPtr(); 64 if (!file) 65 fprintf(stderr, "Warning: Could not open log file %s for writing.\n", actualFilename); 68 if (!file) 69 file = new FilePrintStream(stderr, FilePrintStream::Borrow); 71 setvbuf(file->file(), 0, _IONBF, 0); // Prefer unbuffered output, so that we get a full log upon crash or deadlock. 79 if (!file) [all...] |
/external/chromium_org/third_party/angle/src/common/ |
debug.cpp | 4 // found in the LICENSE file. 50 FILE* file = fopen(TRACE_OUTPUT_FILE, "a"); local 51 if (file) 53 vfprintf(file, format, vararg); 54 fclose(file);
|
/external/chromium_org/third_party/freetype/src/base/ |
ftsystem.c | 10 /* This file is part of the FreeType project, and may only be used, */ 13 /* this file you indicate that you have read the license and */ 20 /* This file contains the default interface used by FreeType to access */ 206 FT_FILE* file; local 212 file = STREAM_FILE( stream ); 215 ft_fseek( file, offset, SEEK_SET ); 217 return (unsigned long)ft_fread( buffer, 1, count, file ); 227 FT_FILE* file; local 240 file = ft_fopen( filepathname, "rb" ); 241 if ( !file ) [all...] |