Home
last modified time | relevance | path

Searched refs:file1 (Results 1 – 25 of 36) sorted by relevance

12

/aosp12/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java50 File file1 = null; in testMountMultipleObb() local
54 file1 = createObbFile(OBB_FILE_1, R.raw.obb_file1); in testMountMultipleObb()
55 String filePath1 = file1.getAbsolutePath(); in testMountMultipleObb()
73 if (file1 != null) { in testMountMultipleObb()
74 file1.delete(); in testMountMultipleObb()
113 File file1 = null; in testMountTwoEncryptedObb() local
120 file1 = createObbFile(OBB_FILE_1_ENCRYPTED, R.raw.obb_enc_file100_orig1); in testMountTwoEncryptedObb()
121 String filePath1 = file1.getAbsolutePath(); in testMountTwoEncryptedObb()
131 if (file1 != null) { in testMountTwoEncryptedObb()
132 file1.delete(); in testMountTwoEncryptedObb()
/aosp12/system/update_engine/scripts/
H A Dblockdiff.py32 def BlockDiff(block_size, file1, file2, name1, name2, max_length=-1): argument
55 data1 = file1.read(read_length)
102 with open(args.file1) as file1:
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.cpp101 const string file1 = testDir + "2557169347_1066_1"; variable
103 const string file1_history = file1 + "_history";
108 open(file1.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR))); in prepareLocalHistoryTestFiles()
126 TEMP_FAILURE_RETRY(remove(file1.c_str())); in clearLocalHistoryTestFiles()
146 EXPECT_FALSE(fileExist(file1)); in TEST()
161 EXPECT_FALSE(fileExist(file1)); in TEST()
176 EXPECT_TRUE(fileExist(file1)); in TEST()
191 EXPECT_FALSE(fileExist(file1)); in TEST()
/aosp12/system/apex/apexer/
H A Druntests.sh50 head -c 1M </dev/urandom > ${input_dir}/file1
54 ln -s file1 ${input_dir}/sym1
114 sudo diff ${input_dir}/file1 ${output_dir}/mnt/file1
120 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file1` = "1001,1001,-rw-r--r--" ]
128 [ `sudo ls -Z ${output_dir}/mnt/file1 | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DIconTest.java188 final File file1 = new File(dir, "file1-original.png"); in testWithFile() local
190 new FileOutputStream(file1)); in testWithFile()
192 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testWithFile()
212 final File file1 = new File(dir, "async-original.png"); in testAsync() local
214 new FileOutputStream(file1)); in testAsync()
216 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testAsync()
269 final Icon file1 = Icon.createWithFilePath(originalfile.getAbsolutePath()); in testParcel() local
270 imgs.add(file1); in testParcel()
/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):
125 DOTTED_LINE, ReadFileToStr(file1), 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):
124 DOTTED_LINE, ReadFileToStr(file1), DOTTED_LINE,
/aosp12/system/timezone/distro/core/src/test/com/android/timezone/distro/
H A DFileUtilsTest.java55 File file1 = createRegularFile(dir, "file1"); in testDeleteRecursive() local
57 File symLink1 = createSymlink(file1, dir, "symLink1"); in testDeleteRecursive()
61 File symLink2 = createSymlink(file1, dir, "symLink2"); in testDeleteRecursive()
69 File[] filesToDelete = { dir, file1, file2, symLink1, subDir, file3, file4, symLink2, in testDeleteRecursive()
/aosp12/frameworks/base/packages/SystemUI/scripts/
H A Dnew_merge.py150 def diff(file1, file2): argument
151 call([DIFF_TOOL, file1, file2])
/aosp12/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
H A DLoaderDicom.java520 for (File file1 : files) { in buildRSVolume2()
521 if (file1.isDirectory()) { in buildRSVolume2()
524 if (file1.getName().equals(".DS_Store")) { in buildRSVolume2()
527 toRun.add(file1); in buildRSVolume2()
528 fileMap.put(file1, count); in buildRSVolume2()
/aosp12/system/apex/apexd/
H A Dapexd_test_utils.h170 std::ifstream file1(filename1, std::ios::binary); in CompareFiles()
173 if (file1.bad() || file2.bad()) { in CompareFiles()
177 std::istreambuf_iterator<char> begin1(file1); in CompareFiles()
/aosp12/build/make/tools/releasetools/
H A Dtarget_files_diff.py136 def diff(name, file1, file2, out_file): argument
140 with preprocess(name, file1) as f1:
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.java211 final File file1 = mock(File.class); in testHandleIdleMaintenance_deleteUnknownBlobs() local
212 doReturn(String.valueOf(testId1)).when(file1).getName(); in testHandleIdleMaintenance_deleteUnknownBlobs()
220 doReturn(new File[] {file1, file2, file3}).when(mBlobsDir).listFiles(); in testHandleIdleMaintenance_deleteUnknownBlobs()
227 verify(file1, never()).delete(); in testHandleIdleMaintenance_deleteUnknownBlobs()
/aosp12/art/dex2oat/
H A Ddex2oat_image_test.cc146 std::unique_ptr<File> file1(OS::OpenFileForReading(filename1.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/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DHelpersTest.java621 final File file1 = new File(Environment.getExternalStoragePublicDirectory( in prepareData() local
623 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData()
639 final File file1 = new File(Environment.getExternalStoragePublicDirectory( in prepareData() local
641 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData()
/aosp12/frameworks/native/libs/binder/rust/tests/
H A Dserialization.rs269 let file1 = parcel.read::<ParcelFileDescriptor>()?; in on_transact() localVariable
273 reply.write(&file1)?; in on_transact()
/aosp12/system/logging/logcat/
H A Dlogcat.cpp156 std::string file1 = in RotateLogs() local
166 if (!file0.length() || !file1.length()) { in RotateLogs()
173 int err = rename(file0.c_str(), file1.c_str()); in RotateLogs()
/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
1075 if (!ReadAll(file1, &content1)) return false; in AreFilesEqual()
/aosp12/build/soong/androidmk/androidmk/
H A Dandroidmk_test.go812 LOCAL_COMPATIBILITY_SUPPORT_FILES := file1
/aosp12/system/apex/docs/
H A Dhowto.md485 /file1 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" ...

12