Home
last modified time | relevance | path

Searched refs:file2 (Results 1 – 25 of 33) sorted by relevance

12

/aosp12/art/libartbase/base/unix_file/
H A Dfd_file_test.cc80 EXPECT_TRUE(file2.IsOpened()); in TEST_F()
81 EXPECT_TRUE(file2.ReadOnlyMode()); in TEST_F()
82 EXPECT_GE(file2.Fd(), 0); in TEST_F()
84 ASSERT_EQ(file2.Close(), 0); in TEST_F()
198 FdFile file2(std::move(file)); in TEST_F() local
200 EXPECT_TRUE(file2.IsOpened()); in TEST_F()
201 EXPECT_EQ(old_fd, file2.Fd()); in TEST_F()
203 ASSERT_EQ(file2.Flush(), 0); in TEST_F()
204 ASSERT_EQ(file2.Close(), 0); in TEST_F()
217 file2 = std::move(file); in TEST_F()
[all …]
/aosp12/system/update_engine/scripts/
H A Dblockdiff.py32 def BlockDiff(block_size, file1, file2, name1, name2, max_length=-1): argument
56 data2 = file2.read(read_length)
103 with open(args.file2) as file2:
104 diff_list = BlockDiff(args.block_size, file1, file2,
105 args.file1, args.file2, args.max_length)
/aosp12/packages/modules/StatsD/statsd/tests/storage/
H A DStorageManager_test.cpp102 const string file2 = testDir + "2557169349_1066_1"; variable
104 const string file2_history = file2 + "_history";
116 open(file2.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR))); in prepareLocalHistoryTestFiles()
127 TEMP_FAILURE_RETRY(remove(file2.c_str())); in clearLocalHistoryTestFiles()
147 EXPECT_FALSE(fileExist(file2)); in TEST()
162 EXPECT_FALSE(fileExist(file2)); in TEST()
177 EXPECT_TRUE(fileExist(file2)); in TEST()
192 EXPECT_FALSE(fileExist(file2)); in TEST()
/aosp12/system/apex/apexer/
H A Druntests.sh51 head -c 1M </dev/urandom > ${input_dir}/file2
115 sudo diff ${input_dir}/file2 ${output_dir}/mnt/file2
121 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file2` = "1001,1001,-rw-r--r--" ]
129 [ `sudo ls -Z ${output_dir}/mnt/file2 | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]
/aosp12/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java51 File file2 = null; in testMountMultipleObb() local
59 file2 = createObbFile(OBB_FILE_2, R.raw.obb_file2); in testMountMultipleObb()
60 String filePath2 = file2.getAbsolutePath(); in testMountMultipleObb()
76 if (file2 != null) { in testMountMultipleObb()
77 file2.delete(); in testMountMultipleObb()
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/tests/
H A Dtest.py117 def ReportIfDifferFromExpected(tests, name, file1, file2): argument
119 if not CompareFiles(file1, file2):
126 DOTTED_LINE, ReadFileToStr(file2), DOTTED_LINE)
/aosp12/frameworks/compile/slang/tests/
H A Dslang_test.py116 def ReportIfDifferFromExpected(tests, name, file1, file2): argument
118 if not CompareFiles(file1, file2):
125 DOTTED_LINE, ReadFileToStr(file2), DOTTED_LINE)
/aosp12/frameworks/base/packages/SystemUI/scripts/
H A Dnew_merge.py150 def diff(file1, file2): argument
151 call([DIFF_TOOL, file1, file2])
/aosp12/system/apex/apexd/
H A Dapexd_test_utils.h171 std::ifstream file2(filename2, std::ios::binary); in CompareFiles()
173 if (file1.bad() || file2.bad()) { in CompareFiles()
178 std::istreambuf_iterator<char> begin2(file2); in CompareFiles()
/aosp12/build/make/tools/releasetools/
H A Dtarget_files_diff.py136 def diff(name, file1, file2, out_file): argument
141 with preprocess(name, file2) as f2:
H A Dtest_ota_from_target_files.py1093 def _assertFilesEqual(self, file1, file2): argument
1094 with open(file1, 'rb') as fp1, open(file2, 'rb') as fp2:
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
H A DBlobStoreManagerServiceTest.java214 final File file2 = mock(File.class); in testHandleIdleMaintenance_deleteUnknownBlobs() local
215 doReturn(String.valueOf(testId2)).when(file2).getName(); in testHandleIdleMaintenance_deleteUnknownBlobs()
220 doReturn(new File[] {file1, file2, file3}).when(mBlobsDir).listFiles(); in testHandleIdleMaintenance_deleteUnknownBlobs()
228 verify(file2).delete(); in testHandleIdleMaintenance_deleteUnknownBlobs()
/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DHelpersTest.java629 final File file2 = new File(getContext().getExternalFilesDir(null), in prepareData() local
631 cursor.addRow(new Object[]{++counter, uid, destination, file2.getPath()}); in prepareData()
647 final File file2 = new File(getContext().getExternalFilesDir(null), in prepareData() local
649 cursor.addRow(new Object[]{++counter, uid, destination, file2.getPath()}); in prepareData()
/aosp12/art/dex2oat/
H A Ddex2oat_image_test.cc147 std::unique_ptr<File> file2(OS::OpenFileForReading(filename2.c_str())); in CompareFiles() local
149 if (file1 == nullptr || file2 == nullptr) { in CompareFiles()
153 if (file1->GetLength() <= 0 || file2->GetLength() != file1->GetLength()) { in CompareFiles()
156 return file1->Compare(file2.get()) == 0; in CompareFiles()
/aosp12/frameworks/native/libs/binder/rust/tests/
H A Dserialization.rs270 let file2 = parcel.read::<ParcelFileDescriptor>()?; in on_transact() localVariable
274 reply.write(&file2)?; in on_transact()
/aosp12/system/timezone/distro/core/src/test/com/android/timezone/distro/
H A DFileUtilsTest.java56 File file2 = createRegularFile(dir, "file2"); in testDeleteRecursive() local
69 File[] filesToDelete = { dir, file1, file2, symLink1, subDir, file3, file4, symLink2, in testDeleteRecursive()
/aosp12/frameworks/native/cmds/installd/tests/
H A Dinstalld_dexopt_test.cpp1071 bool AreFilesEqual(const std::string& file1, const std::string& file2) { in AreFilesEqual() argument
1076 if (!ReadAll(file2, &content2)) return false; in AreFilesEqual()
/aosp12/system/apex/docs/
H A Dhowto.md486 /file2 1000 1000 0644
/aosp12/frameworks/wilhelm/doc/
H A DDoxyfile1394 # TAGFILES = file1 file2 ...
1397 # TAGFILES = file1=loc1 "file2 = loc2" ...
/aosp12/packages/apps/LegacyCamera/jni/feature_mos/doc/
H A Dfeature_mos_API_doxyfile1330 # TAGFILES = file1 file2 ...
1332 # TAGFILES = file1=loc1 "file2 = loc2" ...
/aosp12/packages/apps/LegacyCamera/jni/feature_stab/doc/
H A Ddbreg_API_doxyfile1330 # TAGFILES = file1 file2 ...
1332 # TAGFILES = file1=loc1 "file2 = loc2" ...
/aosp12/frameworks/native/docs/
H A DDoxyfile1664 # TAGFILES = file1 file2 ...
1666 # TAGFILES = file1=loc1 "file2 = loc2" ...
/aosp12/frameworks/av/media/libaaudio/
H A DDoxyfile1975 # TAGFILES = file1 file2 ...
1977 # TAGFILES = file1=loc1 "file2 = loc2" ...
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
H A DDoxyfile.in2030 # TAGFILES = file1 file2 ...
2032 # TAGFILES = file1=loc1 "file2 = loc2" ...
/aosp12/frameworks/av/media/codec2/docs/
H A Ddoxygen.config2089 # TAGFILES = file1 file2 ...
2091 # TAGFILES = file1=loc1 "file2 = loc2" ...

12