/cts/tools/vm-tests-tf/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 return fileName.getAbsolutePath(); in getPath() 47 return fileName.hashCode(); in hashCode() 56 return fileName.equals(other.fileName); in equals()
|
D | DFHBuildStep.java | 37 File out_dir = outputFile.fileName.getParentFile(); in build() 48 r = new FileReader(inputFile.fileName); in build() 49 os = new FileOutputStream(outputFile.fileName); in build() 58 …ntln("error in DFHBuildStep for inputfile "+inputFile.fileName+", outputfile "+outputFile.fileName… in build()
|
D | JarBuildStep.java | 42 if (!inputFile.fileName.equals(tempFile)) { in build() 43 copyFile(inputFile.fileName, tempFile); in build() 53 File outDir = outputFile.fileName.getParentFile(); in build() 60 "-cMf", outputFile.fileName.getAbsolutePath(), "-C", in build() 70 inputFile.fileName.delete(); in build() 74 " \"-cMf\", "+outputFile.fileName.getAbsolutePath()+", \"-C\"," + in build()
|
D | DexBuildStep.java | 39 args.fileNames = new String[] {inputFile.fileName.getAbsolutePath()}; in build() 41 args.outName = outputFile.fileName.getAbsolutePath(); in build() 53 inputFile.fileName.delete(); in build() 58 + inputFile.fileName.getAbsolutePath() + " to " in build()
|
D | BuildDalvikSuite.java | 325 String fileName = getFileName(pName, method, ".java"); 381 String fileName = dependentTestClassName.replace('.', '/').trim(); 383 if (new File(sourceFolder, fileName + ".dfh").exists()) { 386 JAVASRC_FOLDER, fileName + ".dfh"); 388 OUTPUT_FOLDER, fileName + ".dex"); 393 OUTPUT_FOLDER, fileName + ".jar"); 402 if (new File(sourceFolder, fileName + ".d").exists()) { 405 JAVASRC_FOLDER, fileName + ".d"); 407 OUTPUT_FOLDER, fileName + ".dex"); 412 OUTPUT_FOLDER, fileName + ".jar"); [all …]
|
/cts/tools/vm-tests/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 return fileName.getAbsolutePath(); in getPath() 47 return fileName.hashCode(); in hashCode() 56 return fileName.equals(other.fileName); in equals()
|
D | DFHBuildStep.java | 37 File out_dir = outputFile.fileName.getParentFile(); in build() 48 r = new FileReader(inputFile.fileName); in build() 49 os = new FileOutputStream(outputFile.fileName); in build() 58 …ntln("error in DFHBuildStep for inputfile "+inputFile.fileName+", outputfile "+outputFile.fileName… in build()
|
D | JarBuildStep.java | 42 if (!inputFile.fileName.equals(tempFile)) { in build() 43 copyFile(inputFile.fileName, tempFile); in build() 53 File outDir = outputFile.fileName.getParentFile(); in build() 60 "-cMf", outputFile.fileName.getAbsolutePath(), "-C", in build() 70 inputFile.fileName.delete(); in build() 74 " \"-cMf\", "+outputFile.fileName.getAbsolutePath()+", \"-C\"," + in build()
|
D | DexBuildStep.java | 39 args.fileNames = new String[] {inputFile.fileName.getAbsolutePath()}; in build() 41 args.outName = outputFile.fileName.getAbsolutePath(); in build() 53 inputFile.fileName.delete(); in build() 58 + inputFile.fileName.getAbsolutePath() + " to " in build()
|
D | BuildDalvikSuite.java | 392 String fileName = getFileName(pName, method, ".java"); 534 String fileName = dependentTestClassName.replace('.', '/').trim(); 536 if (new File(sourceFolder, fileName + ".dfh").exists()) { 539 JAVASRC_FOLDER, fileName + ".dfh"); 541 OUTPUT_FOLDER, fileName + ".dex"); 546 OUTPUT_FOLDER, fileName + ".jar"); 555 if (new File(sourceFolder, fileName + ".d").exists()) { 558 JAVASRC_FOLDER, fileName + ".d"); 560 OUTPUT_FOLDER, fileName + ".dex"); 565 OUTPUT_FOLDER, fileName + ".jar"); [all …]
|
/cts/tests/src/android/provider/cts/ |
D | FileCopyHelper.java | 61 public String copy(int resId, String fileName) { in copy() argument 67 target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); in copy() 88 mFilesList.add(fileName); in copy() 89 return mContext.getFileStreamPath(fileName).getAbsolutePath(); in copy()
|
/cts/tools/signature-tools/src/signature/io/impl/ |
D | BinaryApi.java | 33 public void externalizeApi(String fileName, IApi api) throws IOException { in externalizeApi() argument 35 File directory = new File(fileName); in externalizeApi() 66 String fileName = fileNames.iterator().next(); in loadApi() local 67 File file = new File(fileName); in loadApi()
|
/cts/tools/host/src/com/android/cts/ |
D | HostConfig.java | 135 String fileName = null; in load() local 139 fileName = d; in load() 144 if (fileName == null) { in load() 150 fileName = DEFAULT_HOST_CONFIG_FILE_NAME; in load() 152 mConfigRoot = configPath.substring(0, configPath.length() - fileName.length() - 1); in load() 154 configFile = mConfigRoot + File.separator + fileName; in load() 165 String caseCfg = getStringAttributeValue(doc, "TestCase", "path", fileName); in load() 166 String planCfg = getStringAttributeValue(doc, "TestPlan", "path", fileName); in load() 167 String resCfg = getStringAttributeValue(doc, "TestResult", "path", fileName); in load() 178 String logCfg = getStringAttributeValueOpt(doc, "TestLog", "path", fileName); in load() [all …]
|
/cts/tools/dx-tests/src/dxconvext/util/ |
D | FileUtils.java | 41 public static byte[] readFile(String fileName) { in readFile() argument 42 File file = new File(fileName); in readFile()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 109 final String fileName = "text.txt"; in testAssetOperations() local 110 InputStream inputStream = mAssets.open(fileName); in testAssetOperations() 114 inputStream = mAssets.open(fileName, AssetManager.ACCESS_BUFFER); in testAssetOperations() 118 AssetFileDescriptor assetFileDes = mAssets.openFd(fileName); in testAssetOperations() 138 if (files[i].equals(fileName)) { in testAssetOperations()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | TestPackageDefTest.java | 36 InputStream getFileStream(File dir, String fileName) { in testGenerateDigest()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaScannerConnectionTest.java | 55 String fileName = "test" + System.currentTimeMillis(); in setUp() local 57 fOut = getContext().openFileOutput(fileName, Context.MODE_WORLD_READABLE); in setUp() 75 mMediaFile = new File(dir, fileName); in setUp()
|
/cts/tools/dex-tools/src/dex/reader/ |
D | DexBuffer.java | 30 public DexBuffer(String fileName) throws IOException { in DexBuffer() argument 35 fis = new FileInputStream(fileName); in DexBuffer()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | TestPackageDef.java | 351 String generateDigest(File fileDir, String fileName) { in generateDigest() argument 356 fileStream = getFileStream(fileDir, fileName); in generateDigest() 378 InputStream getFileStream(File fileDir, String fileName) throws FileNotFoundException { in getFileStream() argument 380 fileStream = new BufferedInputStream(new FileInputStream(new File(fileDir, fileName))); in getFileStream()
|
/cts/tools/signature-tools/src/signature/io/html/ |
D | HtmlDeltaExternalizer.java | 124 private void writeToFile(String fileName, String content) in writeToFile() argument 126 FileOutputStream fileOutputStream = new FileOutputStream(fileName); in writeToFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/ |
D | BackupTestActivity.java | 152 private void loadFile(String fileName, List<BackupItem> items) { in loadFile() argument 156 scanner = new Scanner(new File(getFilesDir(), fileName)); in loadFile() 168 items.add(new FileBackupItem(fileName, contents.toString())); in loadFile() 213 private void generateTestFile(String fileName, Random random) in generateTestFile() argument 215 File file = new File(getFilesDir(), fileName); in generateTestFile()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageSignatureTest.java | 120 private void writeSignature(String packageName, String fileName) in writeSignature() argument 131 File signatureFile = new File(directory, fileName + "." + i); in writeSignature()
|
/cts/tools/dex-tools/test/dex/reader/ |
D | DexTestsCommon.java | 88 protected DexFile prepareDexFile(String fileName) throws IOException{ in prepareDexFile() argument 90 return dexReader.read(new DexBuffer(fileName)); in prepareDexFile()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 282 final String fileName = "testParcelFileDescriptor"; in makeParcelFileDescriptor() local 286 fout = con.openFileOutput(fileName, Context.MODE_WORLD_WRITEABLE); in makeParcelFileDescriptor() 295 File file = new File(dir, fileName); in makeParcelFileDescriptor()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SimpleCursorAdapterTest.java | 513 public static String createTestImage(Context context, String fileName, int resId) { in createTestImage() argument 519 target = context.openFileOutput(fileName, Context.MODE_WORLD_WRITEABLE); in createTestImage() 540 return context.getFileStreamPath(fileName).getAbsolutePath(); in createTestImage() 543 public static void destroyTestImage(Context context, String fileName) { in destroyTestImage() argument 544 context.deleteFile(fileName); in destroyTestImage()
|