Home
last modified time | relevance | path

Searched refs:inputFileName (Results 1 – 12 of 12) sorted by relevance

/frameworks/av/media/libstagefright/tests/extractorFactory/
DExtractorFactoryTest.cpp50 int32_t createDataSource(string inputFileName);
57 int32_t ExtractorFactoryTest::createDataSource(string inputFileName) { in createDataSource() argument
58 FILE *mInputFp = fopen(inputFileName.c_str(), "rb"); in createDataSource()
60 ALOGE("Unable to open input file : %s for reading", inputFileName.c_str()); in createDataSource()
64 int32_t status = stat(inputFileName.c_str(), &buf); in createDataSource()
66 ALOGE("Failed to read file properties for input file : %s", inputFileName.c_str()); in createDataSource()
71 ALOGE("Invalid file descriptor for input file : %s", inputFileName.c_str()); in createDataSource()
110 string inputFileName = gEnv->getRes() + GetParam().first; in TEST_P() local
115 int32_t status = createDataSource(inputFileName); in TEST_P()
119 ASSERT_EQ(status, 0) << "Extractor creation failed for input: " << inputFileName; in TEST_P()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DNative.java22 public native int Extract(String inputFilePath, String inputFileName, String statsFile); in Extract() argument
24 public native int Mux(String inputFilePath, String inputFileName, String outputFilePath, in Mux() argument
27 public native int Decode(String inputFilePath, String inputFileName, String statsFile, in Decode() argument
30 public native int Encode(String inputFilePath, String inputFileName, String statsFile, in Encode() argument
/frameworks/av/media/module/extractors/tests/
DExtractorUnitTest.cpp170 int32_t setDataSource(string inputFileName);
230 int32_t ExtractorUnitTest::setDataSource(string inputFileName) { in setDataSource() argument
231 mInputFp = fopen(inputFileName.c_str(), "rb"); in setDataSource()
237 stat(inputFileName.c_str(), &buf); in setDataSource()
381 string inputFileName = gEnv->getRes() + get<1>(GetParam()); in TEST_P() local
383 int32_t status = setDataSource(inputFileName); in TEST_P()
404 string inputFileName = gEnv->getRes() + get<1>(GetParam()); in TEST_P() local
406 int32_t status = setDataSource(inputFileName); in TEST_P()
455 string inputFileName = gEnv->getRes() + get<1>(GetParam()); in TEST_P() local
457 int32_t status = setDataSource(inputFileName); in TEST_P()
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeExtractor.cpp32 const char *inputFileName = env->GetStringUTFChars(jInputFileName, nullptr); in Java_com_android_media_benchmark_library_Native_Extract() local
33 string sFilePath = string(inputFilePath) + string(inputFileName); in Java_com_android_media_benchmark_library_Native_Extract()
74 extractObj->dumpStatistics(string(inputFileName), string(mime), statsFile); in Java_com_android_media_benchmark_library_Native_Extract()
77 env->ReleaseStringUTFChars(jInputFileName, inputFileName); in Java_com_android_media_benchmark_library_Native_Extract()
DNativeMuxer.cpp36 const char *inputFileName = env->GetStringUTFChars(jInputFileName, nullptr); in Java_com_android_media_benchmark_library_Native_Mux() local
37 string sInputFile = string(inputFilePath) + string(inputFileName); in Java_com_android_media_benchmark_library_Native_Mux()
142 muxerObj->dumpStatistics(string(inputFileName), muxFormat, statsFile); in Java_com_android_media_benchmark_library_Native_Mux()
145 env->ReleaseStringUTFChars(jInputFileName, inputFileName); in Java_com_android_media_benchmark_library_Native_Mux()
/frameworks/av/media/libstagefright/xmlparser/test/
DXMLParserTest.cpp355 string inputFileName = gEnv->getRes() + XML_FILE_NAME; in TEST_F() local
356 mEleStream.open(inputFileName, ifstream::binary); in TEST_F()
357 ASSERT_EQ(mEleStream.is_open(), true) << "Failed to open inputfile " << inputFileName; in TEST_F()
359 mParser.parseXmlPath(inputFileName); in TEST_F()
401 string inputFileName = gEnv->getRes() + XML_FILE_NAME; in TEST_F() local
402 mEleStream.open(inputFileName, ifstream::binary); in TEST_F()
403 ASSERT_EQ(mEleStream.is_open(), true) << "Failed to open inputfile " << inputFileName; in TEST_F()
405 mParser.parseXmlPath(inputFileName); in TEST_F()
440 string inputFileName = gEnv->getRes() + XML_FILE_NAME; in TEST_F() local
441 mEleStream.open(inputFileName, ifstream::binary); in TEST_F()
[all …]
/frameworks/av/media/module/codecs/flac/dec/test/
DFlacDecoderTest.cpp199 string inputFileName = gEnv->getRes() + get<0>(params); in TEST_P() local
206 mEleStream.open(inputFileName, ifstream::binary); in TEST_P()
228 string inputFileName = gEnv->getRes() + get<0>(params); in TEST_P() local
235 mEleStream.open(inputFileName, ifstream::binary); in TEST_P()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesManagerPerfTest.java65 private static File copyApkToTemp(String inputFileName, String fileName) throws Exception { in copyApkToTemp() argument
68 InputStream is = sContext.getResources().getAssets().openNonAsset(inputFileName)) { in copyApkToTemp()
/frameworks/av/media/module/codecs/m4v_h263/dec/test/
DMpeg4H263DecoderTest.cpp318 string inputFileName = gEnv->getRes() + get<0>(params); in TEST_P() local
319 mEleStream.open(inputFileName, ifstream::binary); in TEST_P()
347 string inputFileName = gEnv->getRes() + get<0>(params); in TEST_P() local
348 mEleStream.open(inputFileName, ifstream::binary); in TEST_P()
/frameworks/av/media/module/foundation/tests/OpusHeader/
DOpusHeaderTest.cpp208 string inputFileName = gEnv->getRes() + get<0>(params); in TEST_P() local
209 mEleStream.open(inputFileName, ifstream::binary); in TEST_P()
217 stat(inputFileName.c_str(), &buf); in TEST_P()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DEncoderTest.java168 private static int decodeFile(String inputFileName, File outputDecodeFile) throws IOException { in decodeFile() argument
170 File inputFile = new File(inputFileName); in decodeFile()
171 assertTrue("Cannot open input file " + inputFileName, inputFile.exists()); in decodeFile()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp163 void getInputBufferInfo(string inputFileName, string inputInfo, int32_t idx = 0);
169 void setupExtractor(AMediaExtractor *extractor, string inputFileName, int32_t &trackCount);
209 void WriterTest::getInputBufferInfo(string inputFileName, string inputInfo, int32_t idx) { in getInputBufferInfo() argument
226 mInputStream[idx].open(inputFileName.c_str(), std::ifstream::binary); in getInputBufferInfo()
329 void WriterTest::setupExtractor(AMediaExtractor *extractor, string inputFileName, in setupExtractor() argument
331 ALOGV("Input file for extractor: %s", inputFileName.c_str()); in setupExtractor()
333 int32_t fd = open(inputFileName.c_str(), O_RDONLY); in setupExtractor()