Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 125) sorted by relevance

12345

/cts/tools/release-parser/tests/src/com/android/cts/releaseparser/
DFileParserTest.java56 String fileName = TEST_VDEX; in testVdex() local
57 File aFile = ClassUtils.getResrouceFile(getClass(), fileName); in testVdex()
61 fileEntryBuilder.setName(fileName); in testVdex()
62 testFileParser(fileName, fileEntryBuilder.build()); in testVdex()
72 String fileName = TEST_ART; in testArt() local
73 File aFile = ClassUtils.getResrouceFile(getClass(), fileName); in testArt()
77 fileEntryBuilder.setName(fileName); in testArt()
78 testFileParser(fileName, fileEntryBuilder.build()); in testArt()
88 String fileName = TEST_OAT; in testOat() local
89 File aFile = ClassUtils.getResrouceFile(getClass(), fileName); in testOat()
[all …]
DApkParserTest.java75 private void testApkParser(String fileName) throws Exception { in testApkParser() argument
76 File apkFile = ClassUtils.getResrouceFile(getClass(), fileName); in testApkParser()
79 fileEntryBuilder.setName(fileName); in testApkParser()
84 String txtProtobufFileName = fileName + PB_TXT; in testApkParser()
92 fileName, txtProtobufFileName, TextFormat.printToString(fileEntry)), in testApkParser()
DSoParserTest.java61 private void testSoParser(String fileName, String txtProtobufFileName, boolean parseInternalApi) in testSoParser() argument
63 File aFile = ClassUtils.getResrouceFile(getClass(), fileName); in testSoParser()
65 aParser.setPackageName(fileName); in testSoParser()
77 fileName, txtProtobufFileName, TextFormat.printToString(appInfo)), in testSoParser()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_DumpFileProviderTest.java51 for (String fileName : NOT_ALLOWED_FILES) { in testOpenFileDescriptor_throwsErrorWithIllegalFileName()
52 Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_throwsErrorWithIllegalFileName()
58 for (String fileName : ALLOWED_FILES) { in testOpenFileDescriptor_worksWithValidFileName()
59 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_worksWithValidFileName()
69 for (String fileName : NOT_ALLOWED_FILES) { in testQuery_throwsErrorWithIllegalFileName()
70 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_throwsErrorWithIllegalFileName()
76 for (String fileName : ALLOWED_FILES) { in testQuery_worksWithValidFileName()
77 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_worksWithValidFileName()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildStep.java34 final File fileName; field in BuildStep.BuildFile
36 BuildFile(String folder, String fileName) { in BuildFile() argument
38 this.fileName = new File(this.folder, fileName); in BuildFile()
42 this.fileName = file; in BuildFile()
46 return fileName.getAbsolutePath(); in getPath()
51 return fileName.hashCode(); in hashCode()
60 return fileName.equals(other.fileName); in equals()
DBuildDalvikSuite.java238 String fileName = dependentTestClassName.replace('.', '/').trim(); in generateBuildStepForDependant() local
240 if (new File(sourceFolder, fileName + ".dfh").exists()) { in generateBuildStepForDependant()
245 if (new File(sourceFolder, fileName + ".d").exists()) { in generateBuildStepForDependant()
255 File smaliFile = new File(sourceFolder, fileName + ".smali"); in generateBuildStepForDependant()
256 File smalisDir = new File(sourceFolder, fileName + ".smalis"); in generateBuildStepForDependant()
259 dexFile = new File(OUTPUT_FOLDER, fileName + ".dex"); in generateBuildStepForDependant()
267 dexFile = new File(OUTPUT_FOLDER, fileName + ".dex"); in generateBuildStepForDependant()
273 OUTPUT_FOLDER, fileName + ".jar"); in generateBuildStepForDependant()
282 File srcFile = new File(sourceFolder, fileName + ".java"); in generateBuildStepForDependant()
286 COMPILED_CLASSES_FOLDER, fileName); in generateBuildStepForDependant()
[all …]
DJarBuildStep.java50 if (!inputFile.fileName.equals(tempFile)) { in build()
51 copyFile(inputFile.fileName, tempFile); in build()
61 File outDir = outputFile.fileName.getParentFile(); in build()
80 File jarOutFile = outputFile.fileName; in build()
99 outputFile.fileName.getAbsolutePath() + ", " + outputJarEntryName); in build()
110 inputFile.fileName.delete(); in build()
DBuildCTSHostSources.java81 private String fileName; field in BuildCTSHostSources.HostState
84 public HostState(String fileName) { in HostState() argument
85 this.fileName = fileName; in HostState()
122 return new File(fileName); in getFileToWrite()
153 String fileName = HOSTJUNIT_SRC_OUTPUT_FOLDER + "/" + modPackage.replaceAll("\\.", "/") in openCTSHostFileFor() local
156 HostState newState = new HostState(fileName); in openCTSHostFileFor()
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DDataExtractionRulesApplicabilityTest.java62 for (String fileName : TEST_FILES) { in createFiles()
63 File testFile = new File(mContext.getFilesDir(), fileName); in createFiles()
74 for (String fileName : TEST_FILES) { in deleteFilesAfterBackup()
75 new File(fileName).delete(); in deleteFilesAfterBackup()
90 for (String fileName : TEST_FILES) { in ensureOnlyGivenFileIsExcluded()
91 File file = new File(mContext.getFilesDir(), fileName); in ensureOnlyGivenFileIsExcluded()
92 if (fileName.equals(excludedFile)) { in ensureOnlyGivenFileIsExcluded()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DClassUtils.java112 public static File getResrouceFile(Class clazz, String fileName) throws IOException { in getResrouceFile() argument
113 File tempFile = File.createTempFile(fileName, ""); in getResrouceFile()
115 try (InputStream input = openResourceAsStream(clazz, fileName); in getResrouceFile()
133 public static String getResrouceContentString(Class clazz, String fileName) throws IOException { in getResrouceContentString() argument
134 InputStream inStream = openResourceAsStream(clazz, fileName); in getResrouceContentString()
155 public static InputStream openResourceAsStream(Class clazz, String fileName) { in openResourceAsStream() argument
156 InputStream input = clazz.getResourceAsStream("/" + fileName); in openResourceAsStream()
167 public static InputStreamReader openResourceAsStreamReader(Class clazz, String fileName) { in openResourceAsStreamReader() argument
169 openResourceAsStream(clazz, fileName), Charset.forName("UTF-8")); in openResourceAsStreamReader()
DDepPrinter.java62 String fileName = String.format("%s/%s.gv", dirName, exeName); in compareEntries() local
63 writeDigraph(entry, fileName); in compareEntries()
68 public void writeDeltaDigraph(String exeName, ReleaseContent bRelContent, String fileName) { in writeDeltaDigraph() argument
71 compareEntry(exeName, fileName); in writeDeltaDigraph()
74 public void compareEntry(String exeName, String fileName) { in compareEntry() argument
77 writeDigraph(entry, fileName); in compareEntry()
83 public void writeDigraph(Entry entry, String fileName) { in writeDigraph() argument
86 FileWriter fWriter = new FileWriter(fileName); in writeDigraph()
120 String fileName = String.format("%s/%s.gv", dirName, "RC-files"); in compareRcEntries() local
122 FileWriter fWriter = new FileWriter(fileName); in compareRcEntries()
DDepCsvPrinter.java64 String fileName = String.format("%s/%s.csv", dirName, exeName); in compareEntries() local
65 writeCsv(entry, fileName); in compareEntries()
70 public void writeDeltaDigraph(String exeName, ReleaseContent bRelContent, String fileName) { in writeDeltaDigraph() argument
73 compareEntry(exeName, fileName); in writeDeltaDigraph()
76 public void compareEntry(String exeName, String fileName) { in compareEntry() argument
79 writeCsv(entry, fileName); in compareEntry()
85 public void writeCsv(Entry entry, String fileName) { in writeCsv() argument
88 FileWriter fWriter = new FileWriter(fileName); in writeCsv()
135 String fileName = String.format("%s/%s.csv", dirName, "RC-files"); in compareRcEntries() local
137 FileWriter fWriter = new FileWriter(fileName); in compareRcEntries()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDumpOnFailure.java105 final var fileName = getFilename(description, entry.getKey());
106 Log.i(TAG, "Dumping " + root + "/" + fileName);
107 entry.getValue().writeToFile(root.toString(), fileName);
212 abstract void writeToFile(@NonNull String directoryName, @NonNull String fileName);
222 void writeToFile(@NonNull String directoryName, @NonNull String fileName) {
223 BitmapUtils.saveBitmap(mData, directoryName, fileName);
234 void writeToFile(@NonNull String directoryName, @NonNull String fileName) {
235 Log.i(TAG, "Writing to file: " + fileName + " in directory: " + directoryName);
237 final var file = new File(directoryName, fileName);
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileCopyHelper.java63 public String copy(int resId, String fileName) throws IOException { in copy() argument
65 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); in copy()
67 mFilesList.add(fileName); in copy()
68 return mContext.getFileStreamPath(fileName).getAbsolutePath(); in copy()
/cts/tests/tests/uirendering/src/android/uirendering/cts/runner/
DTestArtifactCollector.java45 TestArtifact(String fileName, Function<File, Void> populateFile) { in TestArtifact() argument
46 mFileName = fileName; in TestArtifact()
164 public static void addArtifact(String fileName, Function<File, Void> populateFile) { in addArtifact() argument
165 sInstance.doAddArtifact(fileName, populateFile); in addArtifact()
168 private void doAddArtifact(String fileName, Function<File, Void> populateFile) { in doAddArtifact() argument
169 mTestArtifacts.add(new TestArtifact(fileName, populateFile)); in doAddArtifact()
/cts/tests/tests/systemui/src/android/systemui/cts/
DScreenshotTestRule.java63 private void capture(String fileName) { in capture() argument
65 screenCapture.setName(fileName); in capture()
76 String fileName = description.getTestClass().getSimpleName() + "#" in capture() local
78 capture(fileName + "_" + result); in capture()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecodeAccuracyTest.java152 private String fileName; field in DecodeAccuracyTest
157 public DecodeAccuracyTest(String decoderName, String fileName, String testName) { in DecodeAccuracyTest() argument
159 this.fileName = fileName; in DecodeAccuracyTest()
225 runTest(new GLSurfaceViewFactory(), new VideoFormat(fileName), decoderName); in testGLViewDecodeAccuracy()
231 runTest(new GLSurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName)), in testGLViewLargerHeightDecodeAccuracy()
238 runTest(new GLSurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName)), in testGLViewLargerWidthDecodeAccuracy()
245 runTest(new SurfaceViewFactory(), new VideoFormat(fileName), decoderName); in testSurfaceViewVideoDecodeAccuracy()
251 runTest(new SurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName)), in testSurfaceViewLargerHeightDecodeAccuracy()
258 runTest(new SurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName)), in testSurfaceViewLargerWidthDecodeAccuracy()
DDecoderRenderTest.java117 private void onFrameRendered_indicatesAllFramesRendered(String fileName, Surface surface, in onFrameRendered_indicatesAllFramesRendered() argument
127 primeVideoPipeline(fileName); in onFrameRendered_indicatesAllFramesRendered()
129 MediaExtractor videoExtractor = createMediaExtractor(fileName); in onFrameRendered_indicatesAllFramesRendered()
134 assumeFalse("No video codec found for " + fileName, videoCodec == null); in onFrameRendered_indicatesAllFramesRendered()
253 public void onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered(String fileName, in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered() argument
264 primeVideoPipeline(fileName); in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered()
266 MediaExtractor videoExtractor = createMediaExtractor(fileName); in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered()
271 assumeFalse("No video codec found for " + fileName, videoCodec == null); in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered()
380 private void primeVideoPipeline(String fileName) throws Exception { in primeVideoPipeline() argument
381 MediaExtractor videoExtractor = createMediaExtractor(fileName); in primeVideoPipeline()
[all …]
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaActivity.java85 String fileName = getMediaString(); in onSurfaceCreated()
86 File f = new File(fileName); in onSurfaceCreated()
87 Log.i(TAG, "start playing " + fileName + ", exists: " + f.exists()); in onSurfaceCreated()
88 Assert.assertTrue("file '" + fileName + "' does not exist", f.exists()); in onSurfaceCreated()
89 Assert.assertTrue(createMediaPlayer("file://" + fileName)); in onSurfaceCreated()
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DUtils.kt53 fun Context.copiedAssetFile(fileName: String): ParcelFileDescriptor { in Context()
54 return resources.assets.open(fileName).use { input -> in Context()
57 val copiedFile = File(filesDir, fileName) in Context()
/cts/tests/video/src/android/video/cts/
DCodecDecoderPerformanceTest.java92 for (String fileName : fileList) { in input()
94 MediaFormat format = getVideoFormat(fileName); in input()
97 "in the file: " + fileName); in input()
109 argsList.add(new Object[]{decoder, fileName, keyPriority, in input()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DExifInterfaceTest.java246 private void printExifTagsAndValues(String fileName, ExifInterface exifInterface) { in printExifTagsAndValues() argument
251 Log.v(TAG, fileName + " Thumbnail size = " + thumbnailBytes.length); in printExifTagsAndValues()
254 Log.e(TAG, fileName + " Corrupted thumbnail!"); in printExifTagsAndValues()
256 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", " in printExifTagsAndValues()
260 Log.e(TAG, fileName + " Unexpected result: No thumbnails were found. " in printExifTagsAndValues()
265 Log.e(TAG, fileName + " Unexpected result: A thumbnail was found. " in printExifTagsAndValues()
268 Log.v(TAG, fileName + " No thumbnail"); in printExifTagsAndValues()
273 Log.v(TAG, fileName + " Altitude = " + exifInterface.getAltitude(.0)); in printExifTagsAndValues()
277 Log.v(TAG, fileName + " Latitude = " + latLong[0]); in printExifTagsAndValues()
278 Log.v(TAG, fileName + " Longitude = " + latLong[1]); in printExifTagsAndValues()
[all …]
/cts/tests/signature/api-check/shared-libs-api/
DAndroid.bp119 " fileName=$$(basename $${f} .txt) && " +
120 " fileName=$${fileName%%.stubs.source*} && " +
128 " signature-to-jdiff $${f} $(genDir)/list/$${fileName}-current-$${apiLevel}.api; " +
148 " fileName=$$(basename $${f} .txt) && " +
149 …" if [ $${fileName} == android ] || [[ $${fileName} =~ removed ]] || [[ $${fileName} =~ incompati…
155 …" signature-to-jdiff $${f} $(genDir)/list/$${fileName}-$${platformSdkVersion}-$${apiLevel}.api; "…
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/
DInstallUpdateTest.java182 private void assertUpdateError(String fileName, int expectedErrorCode) { in assertUpdateError() argument
183 Log.v(TAG, "assertUpdateError(" + fileName + ", " + expectedErrorCode + ")"); in assertUpdateError()
188 errorCode.set(getUpdateError(fileName)); in assertUpdateError()
193 assertWithMessage("error code when updating %s", fileName).that(errorCode.get()) in assertUpdateError()
197 private int getUpdateError(String fileName) throws InterruptedException { in getUpdateError() argument
199 Uri uri = Uri.fromFile(new File(TEST_SYSTEM_UPDATES_DIR, fileName)); in getUpdateError()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DRemoteQueryProvider.java60 private Cursor fileQuery(String fileName) { in fileQuery() argument
62 File probe = new File(deCtx.getFilesDir(), fileName); in fileQuery()
65 cursor.addRow(new Object[] {0, fileName, probe.exists() ? 1 : 0}); in fileQuery()

12345