Home
last modified time | relevance | path

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

12

/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/libstagefright/tests/ESDS/
DESDSTest.cpp38 const char *inputFile; member
55 mESDSParams.inputFile = get<0>(GetParam()); in ESDSUnitTest()
78 string inputFile = gEnv->getRes() + mESDSParams.inputFile; in readESDSData() local
79 mInputFp = fopen(inputFile.c_str(), "rb"); in readESDSData()
80 ASSERT_NE(mInputFp, nullptr) << "File open failed for file: " << inputFile; in readESDSData()
82 ASSERT_GE(fd, 0) << "File descriptor invalid for file: " << inputFile; in readESDSData()
85 status_t status = stat(inputFile.c_str(), &buf); in readESDSData()
86 ASSERT_EQ(status, 0) << "Failed to get properties of input file: " << mESDSParams.inputFile; in readESDSData()
90 ASSERT_NE(mDataSource, nullptr) << "Unable to create data source for file: " << inputFile; in readESDSData()
95 ASSERT_TRUE(false) << "Unable to create extractor for file: " << inputFile; in readESDSData()
[all …]
/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.java170 File inputFile = new File(inputFileName); in decodeFile() local
171 assertTrue("Cannot open input file " + inputFileName, inputFile.exists()); in decodeFile()
172 FileInputStream fileInput = new FileInputStream(inputFile); in decodeFile()
/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/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()
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()
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()
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.cpp38 string inputFile = gEnv->getRes() + get<0>(params); in TEST_P() local
39 FILE *inputFp = fopen(inputFile.c_str(), "rb"); in TEST_P()
40 ASSERT_NE(inputFp, nullptr) << "Unable to open " << inputFile << " file for reading"; in TEST_P()
50 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/tests/writer/
DWriterTest.cpp79 string inputFile; member
305 inputFilePath += kInputData[streamIndex].inputFile; in getFileDetails()
354 string inputFile = gEnv->getRes(); in TEST_P() local
358 getFileDetails(inputFile, inputInfo, param, isAudio, inpId[idx]); in TEST_P()
359 ASSERT_NE(inputFile.compare(gEnv->getRes()), 0) << "No input file specified"; in TEST_P()
361 ASSERT_NO_FATAL_FAILURE(getInputBufferInfo(inputFile, inputInfo, idx)); in TEST_P()
407 string inputFile = gEnv->getRes(); in TEST_P() local
414 getFileDetails(inputFile, inputInfo, param, isAudio, inpId); in TEST_P()
415 ASSERT_NE(inputFile.compare(gEnv->getRes()), 0) << "No input file specified"; in TEST_P()
417 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/av/media/libstagefright/mpeg2ts/test/
DMpeg2tsUnitTest.cpp71 string inputFile = gEnv->getRes() + get<0>(params); in SetUp() local
72 mFpInput = fopen(inputFile.c_str(), "rb"); in SetUp()
73 ASSERT_NE(mFpInput, nullptr) << "Failed to open file: " << inputFile; in SetUp()
76 int8_t err = stat(inputFile.c_str(), &buf); in SetUp()
77 ASSERT_EQ(err, 0) << "Failed to get information for file: " << inputFile; in SetUp()
/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/av/media/libstagefright/foundation/tests/AVCUtils/
DAVCUtilsUnitTest.cpp142 string inputFile = gEnv->getRes() + get<0>(params); in TEST_P() local
144 inputFileStream.open(inputFile, ifstream::in); in TEST_P()
145 ASSERT_TRUE(inputFileStream.is_open()) << "Failed to open: " << inputFile; in TEST_P()
148 int8_t err = stat(inputFile.c_str(), &buf); in TEST_P()
149 ASSERT_EQ(err, 0) << "Failed to get information for file: " << inputFile; in TEST_P()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeEncoder.cpp42 string inputFile = string(filePath) + string(fileName); in Java_com_android_media_benchmark_library_Native_Encode() local
48 eleStream.open(inputFile, ifstream::binary | ifstream::ate); in Java_com_android_media_benchmark_library_Native_Encode()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java506 final AtomicFile inputFile = new AtomicFile(file); in readLegacyNetwork() local
510 in = new DataInputStream(new BufferedInputStream(inputFile.openRead())); in readLegacyNetwork()
545 final AtomicFile inputFile = new AtomicFile(file); in readLegacyUid() local
549 in = new DataInputStream(new BufferedInputStream(inputFile.openRead())); in readLegacyUid()

12