Home
last modified time | relevance | path

Searched refs:inputFile (Results 1 – 16 of 16) 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/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/bytecode/
DClassFilesMoveTest.kt83 val inputFile = File(javaClass.getResource(inputZipPath).file) in fileMove_forwardRewrite_shouldMoveFilesProperly() constant
88 val resultFiles = processor.transform(setOf(FileMapping(inputFile, expectedFile))) in fileMove_forwardRewrite_shouldMoveFilesProperly()
105 val inputFile = File(javaClass.getResource(inputZipPath).file) in fileMove_forwardRewrite_nestedArchive_shouldMoveFilesProperly() constant
110 val resultFiles = processor.transform(setOf(FileMapping(inputFile, expectedFile))) in fileMove_forwardRewrite_nestedArchive_shouldMoveFilesProperly()
127 val inputFile = File(javaClass.getResource(inputZipPath).file) in fileMove_forwardRewrite_backwardsRewrite_shouldKeepFilesProperly() constant
132 val resultFiles = processor.transform(setOf(FileMapping(inputFile, expectedFile))) in fileMove_forwardRewrite_backwardsRewrite_shouldKeepFilesProperly()
/frameworks/support/webkit-codegen/src/test/java/androidx/webkit/internal/codegen/
DBoundaryInterfaceTest.java77 PsiFile inputFile = in testFilterMethods() local
79 PsiClass psiClass = TestUtils.getSingleClassFromFile(inputFile); in testFilterMethods()
95 PsiFile inputFile = TestUtils.getTestFile(mProjectEnv.getProject(), className); in testBoundaryInterfaceGeneration() local
96 ClassRepr classRepr = ClassRepr.fromPsiClass(TestUtils.getSingleClassFromFile(inputFile)); in testBoundaryInterfaceGeneration()
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/pom/
DPomRewriteInZipTest.kt61 val inputFile = File(javaClass.getResource(inputZipPath).file) in rewritePomInZip_rewritingSL_shouldRewrite() constant
66 val resultFiles = processor.transform(setOf(FileMapping(inputFile, expectedFile))) in rewritePomInZip_rewritingSL_shouldRewrite()
95 val inputFile = File(javaClass.getResource(inputZipPath).file) in rewritePomInZip_notRewritingSL_shouldStillRewrite() constant
100 val resultFiles = processor.transform(setOf(FileMapping(inputFile, expectedFile))) in rewritePomInZip_notRewritingSL_shouldStillRewrite()
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/
DChangeDetectionTest.kt160 val inputFile = File(javaClass.getResource(inputClassPath).file) in javaClass_archiveChanged() constant
164 file = ArchiveFile(Paths.get("/", "preference.class"), inputFile.readBytes()), in javaClass_archiveChanged()
172 val inputFile = File(javaClass.getResource(inputClassPath).file) in javaClass_archiveNotChanged() constant
176 file = ArchiveFile(Paths.get("/", "preference.class"), inputFile.readBytes()), in javaClass_archiveNotChanged()
/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/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/sherlockholmes/
DTextMappingWorker.java50 public static OneTimeWorkRequest.Builder create(String inputFile) { in create() argument
52 .putString(INPUT_FILE, inputFile) in create()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java104 DataInputStream inputFile = openFileOnMountedObb(mOfficialObbFilePath, in run() local
106 assertTrue("Failed to open file!", inputFile != null); in run()
121 inputFile.close(); in run()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
DLayoutFileParser.java71 public ResourceBundle.LayoutFileBundle parseXml(final File inputFile, final File outputFile, in parseXml() argument
75 File originalFileFor = originalFileLookup.getOriginalFileFor(inputFile); in parseXml()
84 final String encoding = findEncoding(inputFile); in parseXml()
85 stripFile(inputFile, outputFile, encoding, originalFileLookup); in parseXml()
/frameworks/data-binding/
DsupportBundle.gradle122 def getSha1(File inputFile) {
124 … HashCode hashCode = hashFunction.hashString(inputFile.getAbsolutePath(), Charset.forName("UTF-8"))
/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.cpp2845 std::string inputFile, outputFile; in runInDaemonMode() local
2846 std::getline(std::cin, inputFile); in runInDaemonMode()
2848 bundle->setSingleCrunchInputFile(inputFile.c_str()); in runInDaemonMode()
2850 std::cout << "Crunching " << inputFile << std::endl; in runInDaemonMode()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...