/cts/tools/release-parser/tests/src/com/android/cts/releaseparser/ |
D | FileParserTest.java | 56 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 …]
|
D | ApkParserTest.java | 75 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()
|
D | SoParserTest.java | 61 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/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_DumpFileProviderTest.java | 51 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/ |
D | BuildStep.java | 34 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()
|
D | BuildDalvikSuite.java | 238 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 …]
|
D | JarBuildStep.java | 50 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()
|
D | BuildCTSHostSources.java | 80 private String fileName; field in BuildCTSHostSources.HostState 83 public HostState(String fileName) { in HostState() argument 84 this.fileName = fileName; in HostState() 121 return new File(fileName); in getFileToWrite() 152 String fileName = HOSTJUNIT_SRC_OUTPUT_FOLDER + "/" + modPackage.replaceAll("\\.", "/") in openCTSHostFileFor() local 155 HostState newState = new HostState(fileName); in openCTSHostFileFor()
|
D | D8BuildStep.java | 48 builder.setOutput(Paths.get(outputFile.fileName.getAbsolutePath()), OutputMode.DexIndexed); in build() 50 Paths.get(inputFile.fileName.getAbsolutePath()), in build() 67 inputFile.fileName.delete(); in build()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | ClassUtils.java | 112 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()
|
D | DepCsvPrinter.java | 64 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()
|
D | DepPrinter.java | 62 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()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ExifInterfaceTest.java | 199 private void printExifTagsAndValues(String fileName, ExifInterface exifInterface) { in printExifTagsAndValues() argument 204 Log.v(TAG, fileName + " Thumbnail size = " + thumbnailBytes.length); in printExifTagsAndValues() 207 Log.e(TAG, fileName + " Corrupted thumbnail!"); in printExifTagsAndValues() 209 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", " in printExifTagsAndValues() 213 Log.e(TAG, fileName + " Unexpected result: No thumbnails were found. " in printExifTagsAndValues() 218 Log.e(TAG, fileName + " Unexpected result: A thumbnail was found. " in printExifTagsAndValues() 221 Log.v(TAG, fileName + " No thumbnail"); in printExifTagsAndValues() 226 Log.v(TAG, fileName + " Altitude = " + exifInterface.getAltitude(.0)); in printExifTagsAndValues() 230 Log.v(TAG, fileName + " Latitude = " + latLong[0]); in printExifTagsAndValues() 231 Log.v(TAG, fileName + " Longitude = " + latLong[1]); in printExifTagsAndValues() [all …]
|
D | DecodeAccuracyTest.java | 141 private String fileName; field in DecodeAccuracyTest 175 public DecodeAccuracyTest(String testname, String fileName) { in DecodeAccuracyTest() argument 176 this.fileName = fileName; in DecodeAccuracyTest() 181 runTest(new GLSurfaceViewFactory(), new VideoFormat(fileName)); in testGLViewDecodeAccuracy() 186 runTest(new GLSurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName))); in testGLViewLargerHeightDecodeAccuracy() 191 runTest(new GLSurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName))); in testGLViewLargerWidthDecodeAccuracy() 196 runTest(new SurfaceViewFactory(), new VideoFormat(fileName)); in testSurfaceViewVideoDecodeAccuracy() 201 runTest(new SurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName))); in testSurfaceViewLargerHeightDecodeAccuracy() 206 runTest(new SurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName))); in testSurfaceViewLargerWidthDecodeAccuracy()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FileCopyHelper.java | 62 public String copy(int resId, String fileName) throws IOException { in copy() argument 64 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); in copy() 66 mFilesList.add(fileName); in copy() 67 return mContext.getFileStreamPath(fileName).getAbsolutePath(); in copy()
|
D | BitmapUtils.java | 147 private static void logIfBitmapSolidColor(String fileName, Bitmap bitmap) { in logIfBitmapSolidColor() argument 157 Log.w(TAG, String.format("%s entire bitmap color is %x", fileName, firstColor)); in logIfBitmapSolidColor() 160 public static void saveBitmap(Bitmap bitmap, String directoryName, String fileName) { in saveBitmap() argument 163 Log.d(TAG, "Saving file: " + fileName + " in directory: " + directoryName); in saveBitmap() 170 logIfBitmapSolidColor(fileName, bitmap); in saveBitmap() 172 File file = new File(directoryName, fileName); in saveBitmap()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FileCopyHelper.java | 62 public String copy(int resId, String fileName) throws IOException { in copy() argument 64 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); in copy() 66 mFilesList.add(fileName); in copy() 67 return mContext.getFileStreamPath(fileName).getAbsolutePath(); in copy()
|
D | BitmapUtils.java | 147 private static void logIfBitmapSolidColor(String fileName, Bitmap bitmap) { in logIfBitmapSolidColor() argument 157 Log.w(TAG, String.format("%s entire bitmap color is %x", fileName, firstColor)); in logIfBitmapSolidColor() 160 public static void saveBitmap(Bitmap bitmap, String directoryName, String fileName) { in saveBitmap() argument 163 Log.d(TAG, "Saving file: " + fileName + " in directory: " + directoryName); in saveBitmap() 170 logIfBitmapSolidColor(fileName, bitmap); in saveBitmap() 172 File file = new File(directoryName, fileName); in saveBitmap()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | NativeMediaActivity.java | 85 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/systemui/src/android/systemui/cts/ |
D | ScreenshotTestRule.java | 63 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/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 66 final String fileName = "text.txt"; in testAssetOperations() local 73 InputStream inputStream = mAssets.open(fileName); in testAssetOperations() 77 inputStream = mAssets.open(fileName, AssetManager.ACCESS_BUFFER); in testAssetOperations() 81 AssetFileDescriptor assetFileDes = mAssets.openFd(fileName); in testAssetOperations() 105 assertThat(files).asList().containsAllOf(fileName, "subdir"); in testAssetOperations()
|
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/ |
D | ProcStatsValidationTests.java | 59 final String fileName = "PROCSTATSQ_PROCS_STATE_TOP_DURATION.pbtxt"; in testProcessStateTopDuration() local 60 StatsdConfig config = createValidationUtil().getConfig(fileName); in testProcessStateTopDuration() 124 final String fileName = "PROCSTATSQ_PROCS_STATE_CACHED_EMPTY_DURATION.pbtxt"; 125 StatsdConfig config = createValidationUtil().getConfig(fileName); 189 final String fileName = "PROCSTATSQ_PROCS_STATE_PSS_VALUE.pbtxt"; 190 StatsdConfig config = createValidationUtil().getConfig(fileName); 279 final String fileName = "PROCSTATSQ_PULL.pbtxt"; 280 StatsdConfig config = createValidationUtil().getConfig(fileName); 384 final String fileName = "PROCSTATSQ_PULL_PKG_PROC.pbtxt"; in testProcStatsPkgProcStats() local 385 StatsdConfig config = createValidationUtil().getConfig(fileName); in testProcStatsPkgProcStats()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodIconSamplerActivity.java | 65 String fileName = Environment.getExternalStorageDirectory().getPath() + "/badged_icon.png"; in sampleImage() local 68 file = new FileOutputStream(fileName); in sampleImage() 76 Log.d(TAG, "Wrote badged icon to file: " + fileName); in sampleImage()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | VintfFilesCollector.java | 62 String fileName = guessFileName(content); in collect() local 63 if (fileName != null) { in collect() 64 writeStringToFile(content, new File(dir, fileName)); in collect()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | IntentGenerationTests.java | 116 private TestCase readFromStorage(String fileName) throws IOException, JSONException { in readFromStorage() argument 119 Path testsFilePath = documentsDirectory.toPath().resolve(fileName); in readFromStorage() 123 return TestCase.fromJson(jsonInTestFile, TABLE, fileName); in readFromStorage()
|