Home
last modified time | relevance | path

Searched refs:testFile (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/cmds/incident_helper/tests/
DKernelWakesParser_test.cpp53 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()
DProcrankParser_test.cpp53 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()
DBatteryTypeParser_test.cpp53 const string testFile = kTestDataPath + "batterytype.txt"; in TEST_F() local
59 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DSystemPropertiesParser_test.cpp53 const string testFile = kTestDataPath + "system_properties.txt"; in TEST_F() local
85 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DPageTypeInfoParser_test.cpp53 const string testFile = kTestDataPath + "pagetypeinfo.txt"; in TEST_F() local
99 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DCpuFreqParser_test.cpp53 const string testFile = kTestDataPath + "cpufreq.txt"; in TEST_F() local
116 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DEventLogTagsParser_test.cpp53 const string testFile = kTestDataPath + "event-log-tags.txt"; in TEST_F() local
118 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DCpuInfoParser_test.cpp53 const string testFile = kTestDataPath + "cpuinfo.txt"; in TEST_F() local
144 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DPsParser_test.cpp53 const string testFile = kTestDataPath + "ps.txt"; in TEST_F() local
210 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
/frameworks/base/cmds/incidentd/tests/
DProtoFileReader_test.cpp52 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()
DFdBuffer_test.cpp236 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/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java114 final File testFile = in testReadLegacyNetwork() local
116 stageFile(R.raw.netstats_v1, testFile); in testReadLegacyNetwork()
119 collection.readLegacyNetwork(testFile); in testReadLegacyNetwork()
142 final File testFile = in testReadLegacyUid() local
144 stageFile(R.raw.netstats_uid_v4, testFile); in testReadLegacyUid()
147 collection.readLegacyUid(testFile, false); in testReadLegacyUid()
170 final File testFile = in testReadLegacyUidTags() local
172 stageFile(R.raw.netstats_uid_v4, testFile); in testReadLegacyUidTags()
175 collection.readLegacyUid(testFile, true); in testReadLegacyUidTags()
274 final File testFile = in testAugmentPlan() local
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceTest.java1525 File testFile = createTestFile(); in testDump_onRegisteredUser_callsMethodForUser() local
1527 PrintWriter printWriter = new PrintWriter(testFile); in testDump_onRegisteredUser_callsMethodForUser()
1541 File testFile = createTestFile(); in testDump_onUnknownUser_doesNotPropagateCall() local
1543 PrintWriter printWriter = new PrintWriter(testFile); in testDump_onUnknownUser_doesNotPropagateCall()
1577 File testFile = new File(mContext.getFilesDir(), "test"); in createTestFile() local
1578 testFile.createNewFile(); in createTestFile()
1579 return testFile; in createTestFile()
1611 File testFile = new File(mContext.getFilesDir(), "test"); in getFileDescriptorForAdbTest() local
1612 testFile.createNewFile(); in getFileDescriptorForAdbTest()
1613 return ParcelFileDescriptor.open(testFile, ParcelFileDescriptor.MODE_READ_WRITE); in getFileDescriptorForAdbTest()
DUserBackupManagerServiceTest.java1236 File testFile = new File(mContext.getFilesDir(), "test"); in createTestFile() local
1237 testFile.createNewFile(); in createTestFile()
1238 return testFile; in createTestFile()
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java1101 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/
DMemoryFileProviderTest.java70 public void testFile() throws Exception { in testFile() method in MemoryFileProviderTest
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java274 public void testFile() { in testFile() method in UriTest