/frameworks/native/cmds/installd/tests/ |
D | installd_file_test.cpp | 106 std::string testFile = GetTestFilePath(GetTestName()); in TEST_F() local 107 UniqueFile uf1(fd, testFile); in TEST_F() 113 ASSERT_EQ(testFile, uf2.path()); in TEST_F() 138 std::string testFile = GetTestFilePath(GetTestName()); in TEST_F() local 139 CreateTestFileWithContents(testFile, "OriginalContent"); in TEST_F() 142 ASSERT_FILE_OPEN(testFile, fd); in TEST_F() 144 { UniqueFile uf = UniqueFile(fd, testFile, UnlinkWithAssert); } in TEST_F() 146 ASSERT_FILE_NOT_EXISTING(testFile); in TEST_F() 150 std::string testFile = GetTestFilePath(GetTestName()); in TEST_F() local 151 CreateTestFileWithContents(testFile, "OriginalContent"); in TEST_F() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageParserTest.java | 327 final File testFile = extractFile(TEST_APP1_APK); in testParseIsolatedSplitsDefault() local 329 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseIsolatedSplitsDefault() 332 testFile.delete(); in testParseIsolatedSplitsDefault() 341 final File testFile = extractFile(TEST_APP2_APK); in testParseIsolatedSplitsConstant() local 343 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseIsolatedSplitsConstant() 346 testFile.delete(); in testParseIsolatedSplitsConstant() 355 final File testFile = extractFile(TEST_APP3_APK); in testParseIsolatedSplitsResource() local 357 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseIsolatedSplitsResource() 360 testFile.delete(); in testParseIsolatedSplitsResource() 366 final File testFile = extractFile(TEST_APP4_APK); in testParseActivityRequiredDisplayCategoryValid() local [all …]
|
/frameworks/base/cmds/incident_helper/tests/ |
D | KernelWakesParser_test.cpp | 53 const string testFile = kTestDataPath + "kernel_wakeups_short.txt"; in TEST_F() local 67 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F() 77 const string testFile = kTestDataPath + "kernel_wakeups.txt"; in TEST_F() local 105 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | ProcrankParser_test.cpp | 53 const string testFile = kTestDataPath + "procrank.txt"; in TEST_F() local 95 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F() 105 const string testFile = kTestDataPath + "procrank_short.txt"; in TEST_F() local 133 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | BatteryTypeParser_test.cpp | 53 const string testFile = kTestDataPath + "batterytype.txt"; in TEST_F() local 59 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | SystemPropertiesParser_test.cpp | 53 const string testFile = kTestDataPath + "system_properties.txt"; in TEST_F() local 85 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | PageTypeInfoParser_test.cpp | 53 const string testFile = kTestDataPath + "pagetypeinfo.txt"; in TEST_F() local 99 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | EventLogTagsParser_test.cpp | 53 const string testFile = kTestDataPath + "event-log-tags.txt"; in TEST_F() local 118 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | CpuFreqParser_test.cpp | 53 const string testFile = kTestDataPath + "cpufreq.txt"; in TEST_F() local 116 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | CpuInfoParser_test.cpp | 53 const string testFile = kTestDataPath + "cpuinfo.txt"; in TEST_F() local 144 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | PsParser_test.cpp | 53 const string testFile = kTestDataPath + "ps.txt"; in TEST_F() local 210 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/ |
D | FullRestoreEngineTest.java | 100 for (TestFile testFile : testFiles) { in assertCorrectItemsAreSkipped() 101 boolean actualExcluded = mRestoreEngine.shouldSkipReadOnlyDir(testFile.mMetadata); in assertCorrectItemsAreSkipped() 102 boolean expectedExcluded = testFile.mShouldSkip; in assertCorrectItemsAreSkipped() 103 assertWithMessage(testFile.mMetadata.path).that(actualExcluded).isEqualTo( in assertCorrectItemsAreSkipped()
|
/frameworks/base/cmds/incidentd/tests/ |
D | ProtoFileReader_test.cpp | 52 const std::string testFile = kTestDataPath + "protoFile.txt"; in TEST() local 62 unique_fd fd(open(testFile.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR)); in TEST() 74 int fd = open(testFile.c_str(), O_RDONLY | O_CLOEXEC); in TEST()
|
D | FdBuffer_test.cpp | 236 const std::string testFile = kTestDataPath + "morethan96MB.txt"; in TEST_F() local 238 unique_fd fd(open(testFile.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() 270 const std::string testFile = kTestDataPath + "morethan96MB.txt"; in TEST_F() local 272 unique_fd fd(open(testFile.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | FileHashCache.java | 195 final File testFile = new File(tokenizer.nextToken()); in load() local 198 mEntries.put(testFile, new Entry(lastModified, sha256)); in load() 199 if (DEBUG) Slog.v(TAG, "Loaded entry for " + testFile); in load()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | RollbackUnitTest.java | 438 File testFile = File.createTempFile("test", ".txt"); in readAndWriteStagedRollbackIdsFile() local 439 RollbackPackageHealthObserver.writeStagedRollbackId(testFile, 2468, null); in readAndWriteStagedRollbackIdsFile() 440 RollbackPackageHealthObserver.writeStagedRollbackId(testFile, 12345, in readAndWriteStagedRollbackIdsFile() 442 RollbackPackageHealthObserver.writeStagedRollbackId(testFile, 13579, in readAndWriteStagedRollbackIdsFile() 445 RollbackPackageHealthObserver.readStagedRollbackIds(testFile); in readAndWriteStagedRollbackIdsFile()
|
/frameworks/base/telephony/java/android/telephony/ |
D | MbmsDownloadSession.java | 1101 File testFile = new File(MbmsTempFileProvider.getEmbmsTempFileDir(mContext), in checkDownloadRequestDestination() local 1107 if (!testFile.exists()) { in checkDownloadRequestDestination() 1108 testFile.createNewFile(); in checkDownloadRequestDestination() 1110 if (!testFile.renameTo(testFileDestination)) { in checkDownloadRequestDestination() 1119 testFile.delete(); in checkDownloadRequestDestination()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | MemoryFileProviderTest.java | 70 public void testFile() throws Exception { in testFile() method in MemoryFileProviderTest
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | BackupManagerServiceRoboTest.java | 1398 File testFile = new File(mContext.getFilesDir(), "test"); in getFileDescriptorForAdbTest() local 1399 testFile.createNewFile(); in getFileDescriptorForAdbTest() 1400 return ParcelFileDescriptor.open(testFile, ParcelFileDescriptor.MODE_READ_WRITE); in getFileDescriptorForAdbTest() 1460 File testFile = new File(mContext.getFilesDir(), "test"); in createTestFile() local 1461 testFile.createNewFile(); in createTestFile() 1462 return testFile; in createTestFile()
|
D | UserBackupManagerServiceTest.java | 1368 File testFile = new File(mContext.getFilesDir(), "test"); in createTestFile() local 1369 testFile.createNewFile(); in createTestFile() 1370 return testFile; in createTestFile()
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | PackageWatchdogTest.java | 1525 AtomicFile testFile = new AtomicFile(tmpFile); in testWritingAndReadingMonitoredPackage() local 1526 FileOutputStream stream = testFile.startWrite(); in testWritingAndReadingMonitoredPackage() 1531 testFile.finishWrite(stream); in testWritingAndReadingMonitoredPackage() 1534 TypedXmlPullParser parser = Xml.resolvePullParser(testFile.openRead()); in testWritingAndReadingMonitoredPackage() 1562 AtomicFile testFile = new AtomicFile(tmpFile); in testWritingAndReadingObserverInternalRecoverability() local 1563 FileOutputStream stream = testFile.startWrite(); in testWritingAndReadingObserverInternalRecoverability() 1568 testFile.finishWrite(stream); in testWritingAndReadingObserverInternalRecoverability() 1571 TypedXmlPullParser parser = Xml.resolvePullParser(testFile.openRead()); in testWritingAndReadingObserverInternalRecoverability()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriTest.java | 301 public void testFile() { in testFile() method in UriTest
|