Home
last modified time | relevance | path

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

123

/cts/tools/cts-test-metrics/
Dparse_test_metrics.py31 def _Parse(self, filename): argument
32 json_file = open(filename)
35 self._PrintJson(filename, json_data)
37 def _PrintJson(self, filename, json_data): argument
38 print "\nFilename: %s" % filename
50 for filename in self._args.filenames:
51 self._Parse(filename)
DREADME12 The MetricsParser class defines functions to parse a json file. The _Parse function takes a filename
14 takes the filename and corresponding json_data and prints out the streams as key, value pairs.
/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/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.java217 String filename; in testStressRecorder() local
265 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressRecorder()
266 Log.v(TAG, filename); in testStressRecorder()
270 mRecorder.setOutputFile(filename); in testStressRecorder()
298 String filename; in testStressCameraSwitchRecorder() local
348 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressCameraSwitchRecorder()
349 Log.v(TAG, filename); in testStressCameraSwitchRecorder()
359 mRecorder.setOutputFile(filename); in testStressCameraSwitchRecorder()
391 public void removeRecodedVideo(String filename){ in removeRecodedVideo() argument
392 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()
/cts/tools/incremental-cts/testdata/
Dperf_dump.txt4 prot 1, flags 6146, filename file_0
12 prot 1, flags 6146, filename file_1
32 prot 1, flags 6146, filename file_2
40 prot 1, flags 6146, filename /data/file
48 prot 1, flags 6146, filename /dmabuf:dmabuf1234
56 prot 1, flags 6146, filename [vdso]
64 prot 1, flags 6146, filename file_3
/cts/hostsidetests/stagedinstall/
DAndroid.bp109 filename: "com.android.apex.cts.shim.v2_signed_bob.apex",
129 filename: "com.android.apex.cts.shim.v2_signed_bob_rot.apex",
149 filename: "com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex",
169 filename: "com.android.apex.cts.shim.v3_signed_bob.apex",
189 filename: "com.android.apex.cts.shim.v3_signed_bob_rot.apex",
209 filename: "com.android.apex.cts.shim.v1.apex",
229 filename: "com.android.apex.cts.shim.v2.apex",
249 filename: "com.android.apex.cts.shim.v3.apex",
269 filename: "com.android.apex.cts.shim.v2_additional_file.apex",
289 filename: "com.android.apex.cts.shim.v2_additional_folder.apex",
[all …]
/cts/tests/tests/media/src/android/media/cts/
DIvfWriter.java56 String filename, String mimeType, int width, int height, int scale, in IvfWriter() argument
58 mOutputFile = new RandomAccessFile(filename, "rw"); in IvfWriter()
79 public IvfWriter(String filename, String mimeType, int width, int height) throws IOException { in IvfWriter() argument
80 this(filename, mimeType, 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()
/cts/tests/app/NotificationProvider/src/com/android/test/notificationprovider/
DAssetFileProvider.kt31 val filename = uri.lastPathSegment in openAssetFile() constant
32 if (mode == "r" && assets != null && filename != null) { in openAssetFile()
33 return assets.openFd(filename) in openAssetFile()
/cts/tests/app/app/src/android/app/stubs/
DAssetFileProvider.kt29 val filename = uri.lastPathSegment in onCreate() constant
30 if (mode == "r" && assets != null && filename != null) { in onCreate()
31 return assets.openFd(filename) in onCreate()
/cts/tests/tests/graphics/jni/
DMediaTestHelpers.cpp78 const char *filename = env->GetStringUTFChars(jfilename, NULL); in createExtractor() local
79 ASSERT(filename); in createExtractor()
92 AAssetManager_open(AAssetManager_fromJava(env, assetMgr), filename, 0), in createExtractor()
94 env->ReleaseStringUTFChars(jfilename, filename); in createExtractor()
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/src/android/appsecurity/cts/apkveritytestapp/
DInstalledFilesCheck.java65 String filename = dirname.resolve(basename).toString(); in getInterestedFiles() local
66 Log.d(TAG, "Adding interested file " + filename); in getInterestedFiles()
67 output.add(filename); in getInterestedFiles()
/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java101 private static void assertFileDoesNotContain(String filename, byte[] pattern) { in assertFileDoesNotContain() argument
103 File f = new File(filename); in assertFileDoesNotContain()
116 fail("Found banned pattern in " + filename); in assertFileDoesNotContain()
DKernelSettingsTest.java93 static String getFile(String filename) throws IOException { in getFile() argument
96 in = new BufferedReader(new FileReader(filename)); in getFile()
/cts/tests/media/src/android/mediav2/cts/
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()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2017-13234/
Dpoc.c39 static void PlayFile(EAS_DATA_HANDLE easData, const char* filename) { in PlayFile() argument
42 file.handle = (void*) fopen(filename, "rb"); in PlayFile()
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h112 bool saveToFile(const android::String8& filename);
120 static Buffer* loadFromFile(const android::String8& filename);
/cts/tests/camera/src/android/hardware/camera2/cts/
DHeifWriterTest.java129 String filename = "Cam" + id + "_" + width + "x" + height + in testHeif() local
132 new File(mFilePath, filename).getAbsolutePath()); in testHeif()
331 String filename, int width, int height, int rotation, boolean useGrid, int numImages) in verifyResult() argument
334 retriever.setDataSource(filename); in verifyResult()
337 throw new Exception("No images found in file " + filename); in verifyResult()
355 extractor.setDataSource(filename); in verifyResult()
/cts/tests/tests/content/jni/
DNativeCursorWindow.cpp77 jstring filename, jint offset, jint size, jboolean isBlob) { in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd() argument
79 const char* chars = env->GetStringUTFChars(filename, NULL); in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
/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/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DContentTest.java274 String filename = mContext.getFilesDir() + File.separator + "texts" + File.separator in getUriWithTextInFile() local
276 Log.i(TAG, "Creating file " + filename + " with text \"" + text + "\""); in getUriWithTextInFile()
277 final File file = new File(filename); in getUriWithTextInFile()
284 Log.e(TAG, "Could not create file " + filename + " with text " + text); in getUriWithTextInFile()

123