/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/ |
test_dep_util.py | 16 new_file = os.path.join(tmpdir, 'new') 19 # Raise DistutilsFileError if 'new_file' does not exist. 20 self.assertRaises(DistutilsFileError, newer, new_file, old_file) 22 # Return true if 'new_file' exists and is more recently modified than 23 # 'old_file', or if 'new_file' exists and 'old_file' doesn't. 24 self.write_file(new_file) 25 self.assertTrue(newer(new_file, 'I_dont_exist')) 26 self.assertTrue(newer(new_file, old_file)) 29 # than 'new_file'. 30 self.assertFalse(newer(old_file, new_file)) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/ |
test_dep_util.py | 16 new_file = os.path.join(tmpdir, 'new') 19 # Raise DistutilsFileError if 'new_file' does not exist. 20 self.assertRaises(DistutilsFileError, newer, new_file, old_file) 22 # Return true if 'new_file' exists and is more recently modified than 23 # 'old_file', or if 'new_file' exists and 'old_file' doesn't. 24 self.write_file(new_file) 25 self.assertTrue(newer(new_file, 'I_dont_exist')) 26 self.assertTrue(newer(new_file, old_file)) 29 # than 'new_file'. 30 self.assertFalse(newer(old_file, new_file)) [all...] |
/external/chromium_org/chrome/installer/mac/ |
dirpatcher.sh | 128 local new_file="${2}" 132 if ! chmod -h "${mode}" "${new_file}"; then 136 if ! [[ -L "${new_file}" ]]; then 141 if ! touch -r "${patch_file}" "${new_file}"; then 150 local new_file="${3}" 158 if ! "${patcher}" "${old_file}" "${new_file}" "${patch_file}"; then 159 err "couldn't create ${new_file} by applying ${patch_file} to ${old_file}" 167 local new_file="${3}" 170 if ! "${decompressor}" -c < "${patch_file}" > "${new_file}"; then 171 err "couldn't decompress ${patch_file} to ${new_file} with ${decompressor} [all...] |
dirdiffer.sh | 191 local new_file="${1}" 195 mode="$(stat "-f%OMp%OLp" "${new_file}")" 205 if ! touch -r "${new_file}" "${patch_file}"; then 219 local new_file="${2}" 223 if ! cp "${new_file}" "${uncompressed_file}"; then 227 uncompressed_size="$(file_size "${new_file}")" 237 if ! "${BZIP2}" -9c < "${new_file}" > "${bz2_file}"; then 238 err "couldn't compress ${new_file} to ${bz2_file} with ${BZIP2}" 257 if ! "${GZIP}" -9cn < "${new_file}" > "${gz_file}"; then 258 err "couldn't compress ${new_file} to ${gz_file} with ${GZIP} [all...] |
/external/chromium_org/chrome/installer/util/ |
duplicate_tree_detector_unittest.cc | 94 base::FilePath new_file(temp_source_dir_.path()); 95 new_file = new_file.AppendASCII("FNew"); 96 CreateTextFile(new_file.MaybeAsASCII(), text_content_1_); 97 ASSERT_TRUE(base::PathExists(new_file)); 108 base::FilePath new_file(temp_dest_dir_.path()); 109 new_file = new_file.AppendASCII("FNew"); 110 CreateTextFile(new_file.MaybeAsASCII(), text_content_1_); 111 ASSERT_TRUE(base::PathExists(new_file)); [all...] |
/external/chromium_org/third_party/jemalloc/chromium/ |
apply-ed-patches.pl | 67 my $new_file = $1; 68 $new_file =~ s|^crt/src/||; 69 $new_file = "$srcdir$new_file"; 70 my $new_patch_file = "$new_file.patch"; 75 $target_file = $new_file;
|
/external/chromium_org/third_party/jemalloc/vendor/ |
apply-ed-patches.pl | 67 my $new_file = $1; 68 $new_file =~ s|^crt/src/||; 69 $new_file = "$srcdir$new_file"; 70 my $new_patch_file = "$new_file.patch"; 75 $target_file = $new_file;
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
clean-header-guards | 48 File.open(tmp_filename, "w+") do |new_file| 49 new_file.write(contents)
|
/external/chromium_org/sandbox/win/src/ |
win_utils_unittest.cc | 33 base::string16 new_file = base::string16(my_folder) + L"\\foo"; local 34 EXPECT_EQ(ERROR_SUCCESS, IsReparsePoint(new_file, &result)); 46 EXPECT_EQ(ERROR_SUCCESS, IsReparsePoint(new_file, &result));
|
/external/chromium_org/courgette/ |
courgette_tool.cc | 311 const base::FilePath& new_file, 314 std::string new_buffer = ReadOrFail(new_file, "'new' input"); 332 const base::FilePath& new_file) { 340 new_file.value().c_str()); 388 const base::FilePath& new_file, 391 std::string new_buffer = ReadOrFail(new_file, "'new' input"); 409 const base::FilePath& new_file) { 424 WriteSinkToFile(&new_stream, new_file); 491 UsageProblem("-gen <old_file> <new_file> <patch_file>"); 495 UsageProblem("-apply <old_file> <patch_file> <new_file>"); [all...] |
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
metadata_database_unittest.cc | 844 TrackedFile new_file(CreateTrackedFile(app_root, "to be added later")); 845 new_file.should_be_absent = true; 850 &new_file, 874 CreateChangeResourceFromMetadata(new_file.metadata), &changes); 881 new_file.tracker.mutable_synced_details()->set_missing(true); 882 new_file.tracker.mutable_synced_details()->clear_md5(); 883 new_file.tracker.set_active(false); 884 new_file.tracker.set_dirty(true); 885 ResetTrackerID(&new_file.tracker); 886 EXPECT_NE(0, new_file.tracker.tracker_id()) [all...] |
/external/elfutils/libdw/ |
dwarf_getsrclines.c | 280 struct filelist *new_file = local 281 (struct filelist *) alloca (sizeof (*new_file)); 302 new_file->info.name = fname; 305 new_file->info.name = libdw_alloc (dbg, char, 1, 308 char *cp = new_file->info.name; 320 assert (strlen (new_file->info.name) 325 get_uleb128 (new_file->info.mtime, linep); 328 get_uleb128 (new_file->info.length, linep); 330 new_file->next = filelist; 331 filelist = new_file; 454 struct filelist *new_file = local [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
bitmap_unittest.py | 57 new_file = bitmap.Bitmap.FromPngFile(temp_file) 58 self.assertTrue(orig.IsEqual(new_file)) 67 new_file = bitmap.Bitmap.FromPngFile(temp_file) 68 self.assertTrue(orig.IsEqual(new_file))
|
/external/compiler-rt/lib/profile/ |
GCDAProfiling.c | 66 static int new_file = 0; variable 96 if (!new_file) return; 133 if (new_file) 144 if (new_file) 248 new_file = 0; 253 new_file = 1; 277 if (new_file) { 283 new_file = 1; 403 if (new_file) {
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
change_list_processor_unittest.cc | 513 ResourceEntry new_file; local 514 new_file.set_title("new_file"); 515 new_file.set_resource_id("new_file_id"); 516 change_lists[0]->mutable_entries()->push_back(new_file); 543 // "new_file" should be added. 545 util::GetDriveMyDriveRootPath().AppendASCII(new_file.title()), &entry)); 560 ResourceEntry new_file; local 561 new_file.set_title("new_file"); [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
filesystem_unittest.py | 181 new_file = os.path.join(d, 'foo') 182 fs.write_text_file(new_file, u'foo') 184 os.remove(new_file) 190 new_file = os.path.join(d, 'foo') 191 fs.write_text_file(new_file, u'foo') 193 os.remove(new_file)
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
mount_test.cc | 221 ASSERT_EQ(0, mnt.Rename(Path("/dir1/file"), Path("/dir2/new_file"))); 223 ASSERT_EQ(0, mnt.Access(Path("/dir2/new_file"), R_OK)); 227 ASSERT_EQ(0, mnt.Rename(Path("/dir2/new_file"), Path("/dir2/new_file2"))); 228 ASSERT_NE(0, mnt.Access(Path("/dir2/new_file"), R_OK));
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
repair.cc | 447 std::string new_file = new_dir; local 448 new_file.append("/"); 449 new_file.append((slash == NULL) ? fname.c_str() : slash + 1); 450 Status s = env_->RenameFile(fname, new_file);
|
/art/runtime/base/unix_file/ |
mapped_file_test.cc | 122 FdFile new_file(TEMP_FAILURE_RETRY(open(new_path.c_str(), O_RDONLY))); 124 ASSERT_TRUE(CopyFile(new_file, &buffer));
|
/external/chromium/net/disk_cache/ |
block_files.cc | 494 int new_file = header->next_file; local 495 if (!new_file) { 502 new_file = CreateNextBlockFile(type); 503 if (!new_file) 507 header->next_file = new_file; 511 Addr address(BLOCK_256, 1, new_file, 0);
|
/external/chromium_org/net/disk_cache/ |
block_files.cc | 578 int new_file = header->next_file; local 579 if (!new_file) { 586 new_file = CreateNextBlockFile(type); 587 if (!new_file) 591 header->next_file = new_file; 595 Addr address(BLOCK_256, 1, new_file, 0);
|
/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_store_file.cc | 397 file_util::ScopedFILE new_file(file_util::OpenFile(new_filename, "wb+")); 398 if (new_file.get() == NULL) 409 new_file_.swap(new_file); 445 new_file_.swap(new_file);
|
/external/chromium_org/chrome/browser/safe_browsing/ |
safe_browsing_store_file.cc | 400 file_util::ScopedFILE new_file(base::OpenFile(new_filename, "wb+")); 401 if (new_file.get() == NULL) 412 new_file_.swap(new_file); 448 new_file_.swap(new_file);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/ |
base_unittest.py | 85 new_file = tempfile.NamedTemporaryFile() 86 new_file.write(contents.encode(encoding)) 87 new_file.flush() 88 return new_file
|
/external/linux-tools-perf/ |
builtin-diff.c | 173 "perf diff [<options>] [old_file] [new_file]",
|