/cts/tests/tests/security/jni/ |
D | android_security_cts_MMapExecutableTest.cpp | 41 ScopedUtfChars filename(env, jfilename); in mmap_executable() local 42 int fd = open(filename.c_str(), O_RDONLY); in mmap_executable() 44 ALOGE("open %s: %s", filename.c_str(), strerror(errno)); in mmap_executable() 50 ALOGE("fstat %s: %s", filename.c_str(), strerror(errno)); in mmap_executable() 55 ALOGE("file %s is too small", filename.c_str()); in mmap_executable() 63 ALOGE("mmap %s: %s", filename.c_str(), strerror(errno)); in mmap_executable() 68 ALOGE("munmap %s: %s", filename.c_str(), strerror(errno)); in mmap_executable()
|
/cts/libs/migration/src/com/android/cts/migration/ |
D | MigrationHelper.java | 23 public static File getTestFile(IBuildInfo mBuild, String filename) in getTestFile() argument 31 File file = new File(dir, filename); in getTestFile() 32 CLog.i("Looking for test file %s in dir %s", filename, dir.getAbsolutePath()); in getTestFile() 34 CLog.i("File %s found", filename); in getTestFile() 46 File file = (File) method.invoke(helper, filename); in getTestFile() 47 CLog.i("Looking for test file %s as %s", filename, file.getAbsolutePath()); in getTestFile() 49 CLog.i("File %s found", filename); in getTestFile() 56 throw new FileNotFoundException("Couldn't load file " + filename); in getTestFile()
|
/cts/suite/audio_quality/lib/src/audio/ |
D | Buffer.cpp | 80 Buffer* Buffer::loadFromFile(const android::String8& filename) in loadFromFile() argument 83 if (StringUtil::endsWith(filename, EXTENSION_S16_STEREO)) { in loadFromFile() 85 } else if (StringUtil::endsWith(filename, EXTENSION_S16_MONO)) { in loadFromFile() 88 LOGE("Buffer::loadFromFile specified file %s has unknown extension.", filename.string()); in loadFromFile() 91 std::ifstream file(filename.string(), std::ios::in | std::ios::binary | in loadFromFile() 94 LOGE("Buffer::loadFromFile cannot open file %s.", filename.string()); in loadFromFile() 108 bool Buffer::saveToFile(const android::String8& filename) in saveToFile() argument 110 android::String8 filenameWithExtension(filename); in saveToFile()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | MediaRecorderStressTest.java | 216 String filename; in testStressRecorder() local 264 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressRecorder() 265 Log.v(TAG, filename); in testStressRecorder() 269 mRecorder.setOutputFile(filename); in testStressRecorder() 297 String filename; in testStressCameraSwitchRecorder() local 347 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressCameraSwitchRecorder() 348 Log.v(TAG, filename); in testStressCameraSwitchRecorder() 358 mRecorder.setOutputFile(filename); in testStressCameraSwitchRecorder() 390 public void removeRecodedVideo(String filename){ in removeRecodedVideo() argument 391 File video = new File(filename); in removeRecodedVideo() [all …]
|
D | MediaFrameworkTest.java | 85 public void startPlayback(String filename){ in startPlayback() argument 87 Uri path = Uri.parse(filename); in startPlayback()
|
D | MediaPlayerStressTest.java | 61 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument 62 output.write("File Name: " + filename); in writeTestOutput()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | IvfWriter.java | 51 public IvfWriter(String filename, in IvfWriter() argument 54 mOutputFile = new RandomAccessFile(filename, "rw"); in IvfWriter() 73 public IvfWriter(String filename, int width, int height) throws IOException { in IvfWriter() argument 74 this(filename, width, height, 1, 1000000); in IvfWriter()
|
D | TextureRender.java | 254 public static void saveFrame(String filename, int width, int height) { in saveFrame() argument 287 fos = new FileOutputStream(filename); in saveFrame() 292 throw new RuntimeException("Failed to write file " + filename, ioe); in saveFrame() 297 throw new RuntimeException("Failed to close file " + filename, ioe2); in saveFrame() 300 Log.d(TAG, "Saved " + width + "x" + height + " frame as '" + filename + "'"); in saveFrame()
|
D | IvfReader.java | 59 public IvfReader(String filename) throws IOException{ in IvfReader() argument 60 mIvfFile = new RandomAccessFile(filename, "r"); in IvfReader()
|
D | MediaRecorderTest.java | 572 private void setupRecorder(String filename, boolean useSurface, boolean hasAudio) in setupRecorder() argument 597 mMediaRecorder.setOutputFile(filename); in setupRecorder() 824 String filename, in recordFromSurface() argument 831 setupRecorder(filename, true /* useSurface */, hasAudio); in recordFromSurface() 907 private boolean checkCaptureFps(String filename, int captureRate) { in checkCaptureFps() argument 910 retriever.setDataSource(filename); in checkCaptureFps() 950 String filename = (k == 0) ? OUTPUT_PATH : OUTPUT_PATH2; in testRecordFromSurface() local 968 success = recordFromSurface(filename, captureRate, hasAudio, surface); in testRecordFromSurface() 970 checkTracksAndDuration(0, true /* hasVideo */, hasAudio, filename, frameRate); in testRecordFromSurface() 973 if (timelapse && !checkCaptureFps(filename, captureRate)) { in testRecordFromSurface()
|
D | DecodeAccuracyTestBase.java | 1291 private final String filename; field in VideoFormat 1301 public VideoFormat(String filename, Uri uri) { in VideoFormat() argument 1302 this.filename = filename; in VideoFormat() 1306 public VideoFormat(String filename) { in VideoFormat() argument 1307 this(filename, null); in VideoFormat() 1311 this(videoFormat.filename, videoFormat.uri); in VideoFormat() 1324 return filename; in getFilename() 1383 File cacheFile = new File(context.getCacheDir(), filename); in createCacheFile() 1388 InputStream inputStream = context.getAssets().open(filename); in createCacheFile()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BannedFilesTest.java | 100 private static void assertFileDoesNotContain(String filename, byte[] pattern) { in assertFileDoesNotContain() argument 102 File f = new File(filename); in assertFileDoesNotContain() 115 fail("Found banned pattern in " + filename); in assertFileDoesNotContain()
|
D | KernelSettingsTest.java | 137 static String getFile(String filename) throws IOException { in getFile() argument 140 in = new BufferedReader(new FileReader(filename)); in getFile()
|
D | MMapExecutableTest.java | 38 public static final native boolean mmapExecutable(String filename); in mmapExecutable() argument
|
D | ClonedSecureRandomTest.java | 248 private static String getFirstLineFromFile(String filename) throws IOException { in getFirstLineFromFile() argument 251 in = new BufferedReader(new FileReader(filename)); in getFirstLineFromFile() 254 throw new EOFException("EOF encountered before reading first line of " + filename); in getFirstLineFromFile()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | ContentTest.java | 187 String filename = mContext.getFilesDir() + File.separator + "texts" + File.separator in getUriWithTextInFile() local 189 Log.i(TAG, "Creating file " + filename + " with text \"" + text + "\""); in getUriWithTextInFile() 190 final File file = new File(filename); in getUriWithTextInFile() 197 Log.e(TAG, "Could not create file " + filename + " with text " + text); in getUriWithTextInFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaTextureRender.java | 258 public static void saveFrame(String filename, int width, int height) { in saveFrame() argument 291 fos = new FileOutputStream(filename); in saveFrame() 296 throw new RuntimeException("Failed to write file " + filename, ioe); in saveFrame() 301 throw new RuntimeException("Failed to close file " + filename, ioe2); in saveFrame() 304 Log.d(TAG, "Saved " + width + "x" + height + " frame as '" + filename + "'"); in saveFrame()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | Buffer.h | 112 bool saveToFile(const android::String8& filename); 120 static Buffer* loadFromFile(const android::String8& filename);
|
/cts/tools/utils/ |
D | android_api_description_splitter.py | 123 … filename = os.path.join(self.out, elem.getAttribute("name").replace(".", "_").lower() + ".xml") 130 fd = open(filename, "w")
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileAccessPermissionTest.java | 86 public boolean accept(File dir, String filename) { in testApksAlwaysReadable() 87 return filename.endsWith(".apk"); in testApksAlwaysReadable()
|
/cts/tools/signature-tools/src/signature/converter/doclet/ |
D | DocletFactory.java | 49 for (String filename : fileNames) { in loadApi() 50 buf.append(filename); in loadApi()
|
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/ |
D | ResultReporterTest.java | 192 for (String filename : FORMATTING_FILES) { in testCopyFormattingFiles() 193 File file = new File(resultDir, filename); in testCopyFormattingFiles() 194 assertTrue(String.format("%s (%s) was not created", filename, file.getAbsolutePath()), in testCopyFormattingFiles()
|
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/ |
D | DalvikTestRunner.java | 148 private static void loadFilters(String filename, Set<String> filters) { 150 Scanner in = new Scanner(new File(filename)); 156 System.out.println(String.format("File %s not found when loading filters", filename));
|
/cts/hostsidetests/aadb/src/android/aadb/cts/ |
D | TestDeviceFuncTest.java | 139 final String filename = "tmp_testPushPull.txt"; in testPushPull_extStorageVariable() local 145 deviceFilePath = String.format("%s/%s", externalStorePath, filename); in testPushPull_extStorageVariable() 157 tmpDestFile2 = mTestDevice.pullFileFromExternal(filename); in testPushPull_extStorageVariable()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | FramebufferTest.java | 602 String filename = file.toString(); in saveFrame() local 621 bos = new BufferedOutputStream(new FileOutputStream(filename)); in saveFrame() 628 Log.d(TAG, "Saved " + mWidth + "x" + mHeight + " frame as '" + filename + "'"); in saveFrame()
|