/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_DumpFileProviderTest.java | 52 for (String fileName : NOT_ALLOWED_FILES) { in testOpenFileDescriptor_throwsErrorWithIllegalFileName() 53 Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_throwsErrorWithIllegalFileName() 59 for (String fileName : ALLOWED_FILES) { in testOpenFileDescriptor_worksWithValidFileName() 60 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_worksWithValidFileName() 70 for (String fileName : NOT_ALLOWED_FILES) { in testQuery_throwsErrorWithIllegalFileName() 71 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_throwsErrorWithIllegalFileName() 77 for (String fileName : ALLOWED_FILES) { in testQuery_worksWithValidFileName() 78 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_worksWithValidFileName()
|
D | MediaStore_FilesTest.java | 180 String fileName = fileDir + "/Test.Mp3"; in testCaseSensitivity() local 181 writeFile(R.raw.testmp3, fileName); in testCaseSensitivity() 193 new File(fileName).delete(); in testCaseSensitivity() 370 String fileName = fileDir + "/TestSecondary.Mp3"; in testAccess() local 371 writeFile(R.raw.testmp3_2, fileName); // file without album art in testAccess() 376 values.put(MediaStore.Audio.Media.DATA, fileName); in testAccess() 398 writeFile(R.raw.testmp3, fileName); // file with album art in testAccess() 420 new File(fileName).delete(); in testAccess()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | MultinetworkSysctlTest.java | 50 private void checkSysctlPermissions(String fileName) throws ErrnoException { in checkSysctlPermissions() argument 51 StructStat stat = Os.stat(fileName); in checkSysctlPermissions() 52 assertEquals("mode of " + fileName + ":", SYSCTL_MODE, stat.st_mode); in checkSysctlPermissions() 53 assertEquals("UID of " + fileName + ":", SYSCTL_UID, stat.st_uid); in checkSysctlPermissions() 54 assertEquals("GID of " + fileName + ":", SYSCTL_GID, stat.st_gid); in checkSysctlPermissions() 61 private String readFile(String fileName) throws ErrnoException, IOException { in readFile() argument 63 FileDescriptor fd = Os.open(fileName, 0, OsConstants.O_RDONLY); in readFile() 65 assertLess("length of " + fileName + ":", bytesRead, buf.length); in readFile()
|
/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 | JackDexBuildStep.java | 41 String outputFilePath = outputFile.fileName.getAbsolutePath(); in build() 47 File outDir = outputFile.fileName.getParentFile(); in build() 60 commandLine.add(inputFile.fileName.getAbsolutePath()); in build() 66 inputFile.fileName.delete(); in build() 71 + inputFile.fileName.getAbsolutePath() + " to " in build() 72 + outputFile.fileName.getAbsolutePath()); in build()
|
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 | DxBuildStep.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 | JillBuildStep.java | 35 File outDir = outputFile.fileName.getParentFile(); in build() 45 commandLine[1] = outputFile.fileName.getAbsolutePath(); in build() 46 commandLine[2] = inputFile.fileName.getAbsolutePath(); in build()
|
D | BuildDalvikSuite.java | 502 String fileName = dependentTestClassName.replace('.', '/').trim(); 504 if (new File(sourceFolder, fileName + ".dfh").exists()) { 507 JAVASRC_FOLDER, fileName + ".dfh"); 509 OUTPUT_FOLDER, fileName + ".dex"); 514 OUTPUT_FOLDER, fileName + ".jar"); 523 if (new File(sourceFolder, fileName + ".d").exists()) { 526 JAVASRC_FOLDER, fileName + ".d"); 528 OUTPUT_FOLDER, fileName + ".dex"); 533 OUTPUT_FOLDER, fileName + ".jar"); 542 File srcFile = new File(sourceFolder, fileName + ".java"); [all …]
|
/cts/libs/deviceutil/src/android/cts/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()
|
/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()
|
/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/tests/tests/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 50 final String fileName = "text.txt"; in testAssetOperations() local 51 InputStream inputStream = mAssets.open(fileName); in testAssetOperations() 55 inputStream = mAssets.open(fileName, AssetManager.ACCESS_BUFFER); in testAssetOperations() 59 AssetFileDescriptor assetFileDes = mAssets.openFd(fileName); in testAssetOperations() 79 if (files[i].equals(fileName)) { in testAssetOperations()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/ |
D | CtsFilePusher.java | 44 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument 45 return new File(getCtsBuildHelper(buildInfo).getTestCasesDir(), fileName); in resolveRelativeFilePath()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
D | MultipartForm.java | 52 public MultipartForm addFormFile(String name, String fileName, byte[] data) { in addFormFile() argument 54 mFileName = fileName; in addFormFile() 136 private void writeFormFileHeader(PrintWriter writer, String name, String fileName) { in writeFormFileHeader() argument 139 writer.append("\"; filename=\"").append(fileName).println("\""); in writeFormFileHeader()
|
/cts/tools/cfassembler/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/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/suite/audio_quality/lib/src/ |
D | FileUtil.cpp | 97 bool FileUtil::init(const char* fileName) in init() argument 99 if (fileName == NULL) { in init() 103 mFile.open(fileName, std::ios::out | std::ios::trunc); in init()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaScannerConnectionTest.java | 50 String fileName = "test" + System.currentTimeMillis(); in setUp() local 51 copier.copy(R.raw.testmp3, fileName); in setUp() 54 mMediaFile = new File(dir, fileName); in setUp()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | NativeMediaActivity.java | 86 String fileName = getMediaString(); in onSurfaceCreated() 87 Log.i(TAG, "start playing " + fileName); in onSurfaceCreated() 88 Assert.assertTrue(createMediaPlayer("file://" + fileName)); in onSurfaceCreated()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESCipherNistCavpKatTest.java | 135 private void runTestsForKatFile(String fileName) throws Exception { in runTestsForKatFile() argument 148 if (fileName.equals(entryName)) { in runTestsForKatFile() 154 fail(fileName + " not found"); in runTestsForKatFile() 158 String blockMode = fileName.substring(0, 3); in runTestsForKatFile() 160 blockMode = fileName.substring(0, 4); in runTestsForKatFile()
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskSave.cpp | 88 android::String8 fileName(dirName); in handleFile() local 89 fileName.appendPath(it->first); in handleFile() 90 if (!it->second->saveToFile(fileName)) { in handleFile()
|
/cts/suite/audio_quality/lib/include/ |
D | FileUtil.h | 47 virtual bool init(const char* fileName);
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | TestPackageDefTest.java | 36 InputStream getFileStream(File dir, String fileName) { in testGenerateDigest()
|