Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 35) sorted by relevance

12

/cts/tests/tests/security/jni/
Dandroid_security_cts_MMapExecutableTest.cpp41 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/tests/tests/graphics/src/android/graphics/cts/
DVulkanReservedTest.java29 private static void assertNoFile(String filename) { in assertNoFile() argument
30 assertFalse(filename + " must not exist", new File(filename).exists()); in assertNoFile()
/cts/suite/audio_quality/lib/src/audio/
DBuffer.cpp80 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/
DMediaRecorderStressTest.java216 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 …]
DMediaFrameworkTest.java85 public void startPlayback(String filename){ in startPlayback() argument
87 Uri path = Uri.parse(filename); in startPlayback()
DMediaPlayerStressTest.java62 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument
63 output.write("File Name: " + filename); in writeTestOutput()
/cts/tests/tests/media/src/android/media/cts/
DIvfWriter.java51 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()
DTextureRender.java254 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()
DIvfReader.java59 public IvfReader(String filename) throws IOException{ in IvfReader() argument
60 mIvfFile = new RandomAccessFile(filename, "r"); in IvfReader()
DMediaRecorderTest.java510 private void setupRecorder(String filename, boolean useSurface, boolean hasAudio) in setupRecorder() argument
535 mMediaRecorder.setOutputFile(filename); in setupRecorder()
762 String filename, in recordFromSurface() argument
769 setupRecorder(filename, true /* useSurface */, hasAudio); in recordFromSurface()
845 private boolean checkCaptureFps(String filename, int captureRate) { in checkCaptureFps() argument
848 retriever.setDataSource(filename); in checkCaptureFps()
881 String filename = (k == 0) ? OUTPUT_PATH : OUTPUT_PATH2; in testRecordFromSurface() local
899 success = recordFromSurface(filename, captureRate, hasAudio, surface); in testRecordFromSurface()
901 checkTracksAndDuration(0, true /* hasVideo */, hasAudio, filename); in testRecordFromSurface()
904 if (timelapse && !checkCaptureFps(filename, captureRate)) { in testRecordFromSurface()
/cts/tools/signature-tools/test/signature/converter/doclet/
DDocletTestConverter.java80 String filename = source.getName(); // a.b.C in putSource() local
81 int pos = filename.indexOf("."); in putSource()
83 directory = directory + filename.substring(0, pos) + separator; in putSource()
84 filename = filename.substring(pos+1); in putSource()
85 pos = filename.indexOf("."); in putSource()
88 File file = new File(directory, filename + ".java"); in putSource()
/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java86 private static void assertFileDoesNotContain(String filename, byte[] pattern) { in assertFileDoesNotContain() argument
88 File f = new File(filename); in assertFileDoesNotContain()
101 fail("Found banned pattern in " + filename); in assertFileDoesNotContain()
DKernelSettingsTest.java137 static String getFile(String filename) throws IOException { in getFile() argument
140 in = new BufferedReader(new FileReader(filename)); in getFile()
DMMapExecutableTest.java38 public static final native boolean mmapExecutable(String filename); in mmapExecutable() argument
DBrowserTest.java166 String filename = "jsfileaccess.html"; in testBrowserPrivateDataAccess() local
168 FileOutputStream out = mContext.openFileOutput(filename, in testBrowserPrivateDataAccess()
175 String filepath = mContext.getFileStreamPath(filename).getAbsolutePath(); in testBrowserPrivateDataAccess()
DClonedSecureRandomTest.java244 private static String getFirstLineFromFile(String filename) throws IOException { in getFirstLineFromFile() argument
247 in = new BufferedReader(new FileReader(filename)); in getFirstLineFromFile()
250 throw new EOFException("EOF encountered before reading first line of " + filename); in getFirstLineFromFile()
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h112 bool saveToFile(const android::String8& filename);
120 static Buffer* loadFromFile(const android::String8& filename);
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DContentTest.java187 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/
DCtsMediaTextureRender.java258 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/tools/utils/
Dandroid_api_description_splitter.py123filename = os.path.join(self.out, elem.getAttribute("name").replace(".", "_").lower() + ".xml")
130 fd = open(filename, "w")
/cts/common/host-side/java-scanner/tests/src/com/android/compatibility/common/scanner/
DJavaScannerTest.java88 private static String runScanner(String filename, String content) throws Exception { in runScanner() argument
97 f = new File(parent4, filename + ".java"); in runScanner()
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java86 public boolean accept(File dir, String filename) { in testApksAlwaysReadable()
87 return filename.endsWith(".apk"); in testApksAlwaysReadable()
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletFactory.java49 for (String filename : fileNames) { in loadApi()
50 buf.append(filename); in loadApi()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DVectorDrawableTest.java198 private void compareImages(Bitmap ideal, Bitmap given, String filename) { in compareImages() argument
221 fail((filename + ": totalError is " + totalError)); in compareImages()
228 fail((filename +": totalDiffPixelCount is " + totalDiffPixelCount)); in compareImages()
/cts/hostsidetests/aadb/src/com/android/cts/aadb/
DTestDeviceFuncTest.java140 final String filename = "tmp_testPushPull.txt"; in testPushPull_extStorageVariable() local
146 deviceFilePath = String.format("%s/%s", externalStorePath, filename); in testPushPull_extStorageVariable()
158 tmpDestFile2 = mTestDevice.pullFileFromExternal(filename); in testPushPull_extStorageVariable()

12