Home
last modified time | relevance | path

Searched refs:inputFile (Results 1 – 23 of 23) sorted by relevance

/frameworks/av/media/libaudioclient/tests/
Dtest_create_utils.cpp26 int readLine(FILE *inputFile, char *line, int size) { in readLine() argument
29 char *str = fgets(line, size, inputFile); in readLine()
34 if (feof(inputFile) != 0 || ferror(inputFile) != 0) { in readLine()
45 bool checkVersion(FILE *inputFile, const char *version) in checkVersion() argument
51 if (readLine(inputFile, line, MAX_INPUT_FILE_LINE_LENGTH) != 0) { in checkVersion()
77 FILE *inputFile = nullptr; in main() local
92 inputFile = fopen(*argv, "r"); in main()
93 if (inputFile == nullptr) { in main()
121 ret = testFunc(inputFile, outputFileFd); in main()
123 if (inputFile) { in main()
[all …]
Dtest_create_utils.h30 int readLine(FILE *inputFile, char *line, int size);
32 bool checkVersion(FILE *inputFile, const char *version);
36 typedef int (*test_func_t)(FILE *inputFile, int outputFileFd);
Dtest_create_audiorecord.cpp35 int testRecord(FILE *inputFile, int outputFileFd) in testRecord() argument
42 if (inputFile == nullptr) { in testRecord()
58 if (!checkVersion(inputFile, VERSION_VALUE)) { in testRecord()
62 while (readLine(inputFile, line, MAX_INPUT_FILE_LINE_LENGTH) == 0) { in testRecord()
Dtest_create_audiotrack.cpp34 int testTrack(FILE *inputFile, int outputFileFd) in testTrack() argument
41 if (inputFile == nullptr) { in testTrack()
56 if (!checkVersion(inputFile, VERSION_VALUE)) { in testTrack()
60 while (readLine(inputFile, line, MAX_INPUT_FILE_LINE_LENGTH) == 0) { in testTrack()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DExtractorTest.java92 File inputFile = new File(mInputFilePath + mInputFileName); in testExtractor() local
94 inputFile.exists()); in testExtractor()
95 FileInputStream fileInput = new FileInputStream(inputFile); in testExtractor()
112 File inputFile = new File(mInputFilePath + mInputFileName); in testNativeExtractor() local
114 inputFile.exists()); in testNativeExtractor()
115 FileInputStream fileInput = new FileInputStream(inputFile); in testNativeExtractor()
DDecoderTest.java68 public DecoderTest(String inputFile, boolean asyncMode) { in DecoderTest() argument
69 this.mInputFile = inputFile; in DecoderTest()
122 File inputFile = new File(mInputFilePath + mInputFile); in testDecoder() local
124 inputFile.exists()); in testDecoder()
125 FileInputStream fileInput = new FileInputStream(inputFile); in testDecoder()
196 File inputFile = new File(mInputFilePath + mInputFile); in testNativeDecoder() local
198 inputFile.exists()); in testNativeDecoder()
199 FileInputStream fileInput = new FileInputStream(inputFile); in testNativeDecoder()
DMuxerTest.java114 File inputFile = new File(mInputFilePath + mInputFileName); in testMuxer() local
116 inputFile.exists()); in testMuxer()
117 FileInputStream fileInput = new FileInputStream(inputFile); in testMuxer()
164 File inputFile = new File(mInputFilePath + mInputFileName); in testNativeMuxer() local
166 inputFile.exists()); in testNativeMuxer()
DEncoderTest.java119 File inputFile = new File(mInputFilePath + mInputFile); in testEncoder() local
121 inputFile.exists()); in testEncoder()
122 FileInputStream fileInput = new FileInputStream(inputFile); in testEncoder()
275 File inputFile = new File(mInputFilePath + mInputFile); in testNativeEncoder() local
277 inputFile.exists()); in testNativeEncoder()
280 FileInputStream fileInput = new FileInputStream(inputFile); in testNativeEncoder()
/frameworks/av/media/tests/benchmark/tests/
DExtractorTest.cpp33 string inputFile = gEnv->getRes() + GetParam().first; in TEST_P() local
34 FILE *inputFp = fopen(inputFile.c_str(), "rb"); in TEST_P()
35 ASSERT_NE(inputFp, nullptr) << "Unable to open " << inputFile << " file for reading"; in TEST_P()
39 stat(inputFile.c_str(), &buf); in TEST_P()
DMuxerTest.cpp54 string inputFile = gEnv->getRes() + GetParam().first; in TEST_P() local
55 FILE *inputFp = fopen(inputFile.c_str(), "rb"); in TEST_P()
56 ASSERT_NE(inputFp, nullptr) << "Unable to open " << inputFile << " file for reading"; in TEST_P()
70 stat(inputFile.c_str(), &buf); in TEST_P()
DDecoderTest.cpp35 string inputFile = gEnv->getRes() + get<0>(params); in TEST_P() local
36 FILE *inputFp = fopen(inputFile.c_str(), "rb"); in TEST_P()
37 ASSERT_NE(inputFp, nullptr) << "Unable to open " << inputFile << " file for reading"; in TEST_P()
47 stat(inputFile.c_str(), &buf); in TEST_P()
DC2DecoderTest.cpp65 string inputFile = gEnv->getRes() + GetParam().first; in TEST_P() local
66 FILE *inputFp = fopen(inputFile.c_str(), "rb"); in TEST_P()
67 ASSERT_NE(inputFp, nullptr) << "Unable to open " << inputFile << " file for reading"; in TEST_P()
74 stat(inputFile.c_str(), &buf); in TEST_P()
DEncoderTest.cpp34 string inputFile = gEnv->getRes() + get<0>(params); in TEST_P() local
35 FILE *inputFp = fopen(inputFile.c_str(), "rb"); in TEST_P()
36 ASSERT_NE(inputFp, nullptr) << "Unable to open " << inputFile << " file for reading"; in TEST_P()
46 stat(inputFile.c_str(), &buf); in TEST_P()
DC2EncoderTest.cpp65 string inputFile = gEnv->getRes() + GetParam().first; in TEST_P() local
66 FILE *inputFp = fopen(inputFile.c_str(), "rb"); in TEST_P()
77 stat(inputFile.c_str(), &buf); in TEST_P()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/
DAmrnbDecoderTest.cpp109 string inputFile = gEnv->getRes() + GetParam(); in TEST_P() local
110 mFpInput = fopen(inputFile.c_str(), "rb"); in TEST_P()
111 ASSERT_NE(mFpInput, nullptr) << "Error opening input file " << inputFile; in TEST_P()
132 string inputFile = gEnv->getRes() + GetParam(); in TEST_P() local
133 mFpInput = fopen(inputFile.c_str(), "rb"); in TEST_P()
134 ASSERT_NE(mFpInput, nullptr) << "Error opening input file " << inputFile; in TEST_P()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp55 string inputFile; member
259 inputFilePath += kInputData[streamIndex].inputFile; in getFileDetails()
300 string inputFile = gEnv->getRes(); in TEST_P() local
305 getFileDetails(inputFile, inputInfo, param, isAudio, inputFileIdx); in TEST_P()
306 ASSERT_NE(inputFile.compare(gEnv->getRes()), 0) << "No input file specified"; in TEST_P()
308 ASSERT_NO_FATAL_FAILURE(getInputBufferInfo(inputFile, inputInfo)); in TEST_P()
337 string inputFile = gEnv->getRes(); in TEST_P() local
342 getFileDetails(inputFile, inputInfo, param, isAudio, inputFileIdx); in TEST_P()
343 ASSERT_NE(inputFile.compare(gEnv->getRes()), 0) << "No input file specified"; in TEST_P()
345 ASSERT_NO_FATAL_FAILURE(getInputBufferInfo(inputFile, inputInfo)); in TEST_P()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/test/
DAmrwbDecoderTest.cpp153 string inputFile = gEnv->getRes() + GetParam(); in TEST_P() local
154 mFpInput = fopen(inputFile.c_str(), "rb"); in TEST_P()
155 ASSERT_NE(mFpInput, nullptr) << "Error opening input file " << inputFile; in TEST_P()
183 string inputFile = gEnv->getRes() + GetParam(); in TEST_P() local
184 mFpInput = fopen(inputFile.c_str(), "rb"); in TEST_P()
185 ASSERT_NE(mFpInput, nullptr) << "Error opening input file " << inputFile; in TEST_P()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/test/
DAmrnbEncoderTest.cpp114 string inputFile = gEnv->getRes() + GetParam().first; in TEST_P() local
115 FILE *fpInput = fopen(inputFile.c_str(), "rb"); in TEST_P()
116 ASSERT_NE(fpInput, nullptr) << "Error opening input file " << inputFile; in TEST_P()
145 string inputFile = gEnv->getRes() + GetParam().first; in TEST_P() local
146 FILE *fpInput = fopen(inputFile.c_str(), "rb"); in TEST_P()
147 ASSERT_NE(fpInput, nullptr) << "Error opening input file " << inputFile; in TEST_P()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DAutomaticActivity.java153 File inputFile = new File(Environment.getExternalStorageDirectory(), in beginTest() local
155 if (inputFile.exists() && inputFile.canRead() && inputFile.length() > 0) { in beginTest()
157 FileInputStream inputStream = new FileInputStream(inputFile); in beginTest()
159 StringBuffer content = new StringBuffer((int)inputFile.length()); in beginTest()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
DMp3DecoderTest.cpp124 string inputFile = gEnv->getRes() + GetParam(); in TEST_P() local
125 bool status = mMp3Reader.init(inputFile.c_str()); in TEST_P()
155 string inputFile = gEnv->getRes() + GetParam(); in TEST_P() local
156 bool status = mMp3Reader.init(inputFile.c_str()); in TEST_P()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DBackupFileDecryptorTask.java103 public void decryptFile(File inputFile, DecryptedChunkOutput decryptedChunkOutput) in decryptFile() argument
107 RandomAccessFile input = new RandomAccessFile(inputFile, READ_MODE); in decryptFile()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java530 final AtomicFile inputFile = new AtomicFile(file); in readLegacyNetwork() local
534 in = new DataInputStream(new BufferedInputStream(inputFile.openRead())); in readLegacyNetwork()
569 final AtomicFile inputFile = new AtomicFile(file); in readLegacyUid() local
573 in = new DataInputStream(new BufferedInputStream(inputFile.openRead())); in readLegacyUid()
/frameworks/base/tools/aapt/
DCommand.cpp2847 std::string inputFile, outputFile; in runInDaemonMode() local
2848 std::getline(std::cin, inputFile); in runInDaemonMode()
2850 bundle->setSingleCrunchInputFile(inputFile.c_str()); in runInDaemonMode()
2852 std::cout << "Crunching " << inputFile << std::endl; in runInDaemonMode()