Home
last modified time | relevance | path

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

1234

/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/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/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/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java222 String filename; in testStressRecorder() local
270 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressRecorder()
271 Log.v(TAG, filename); in testStressRecorder()
275 mRecorder.setOutputFile(filename); in testStressRecorder()
291 removeRecodedVideo(filename); in testStressRecorder()
307 String filename; in testStressCameraSwitchRecorder() local
357 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressCameraSwitchRecorder()
358 Log.v(TAG, filename); in testStressCameraSwitchRecorder()
368 mRecorder.setOutputFile(filename); in testStressCameraSwitchRecorder()
384 removeRecodedVideo(filename); in testStressCameraSwitchRecorder()
[all …]
/cts/tests/tests/notification/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/common/device-side/interactive/src/main/java/com/android/interactive/steps/
DScreenshotValidationStep.java33 protected ScreenshotValidationStep(String instruction, String filename) { in ScreenshotValidationStep() argument
35 mFilename = filename; in ScreenshotValidationStep()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DIvfWriter.java58 String filename, String mimeType, int width, int height, int scale, in IvfWriter() argument
60 mOutputFile = new RandomAccessFile(filename, "rw"); in IvfWriter()
81 public IvfWriter(String filename, String mimeType, int width, int height) throws IOException { in IvfWriter() argument
82 this(filename, mimeType, width, height, 1, 1000000); in IvfWriter()
/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/hostsidetests/stagedinstall/
DAndroid.bp115 filename: "com.android.apex.cts.shim.v2_signed_bob.apex",
138 filename: "com.android.apex.cts.shim.v2_signed_bob_rot.apex",
161 filename: "com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex",
184 filename: "com.android.apex.cts.shim.v3_signed_bob.apex",
207 filename: "com.android.apex.cts.shim.v3_signed_bob_rot.apex",
230 filename: "com.android.apex.cts.shim.v1.apex",
253 filename: "com.android.apex.cts.shim.v2.apex",
276 filename: "com.android.apex.cts.shim.v3.apex",
297 filename: "com.android.apex.cts.shim.v2_add_apk_to_apex.apex",
320 filename: "com.android.apex.cts.shim.v2_additional_file.apex",
[all …]
/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/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DHelper.java98 final String filename = prefix + "-" + name; in createTestFile() local
100 return createFile(dir, filename); in createTestFile()
113 private static File createFile(File dir, String filename) throws IOException { in createFile() argument
114 final File file = new File(dir, filename); in createFile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DAssetsProvider.java44 String filename = uri.getLastPathSegment(); in openAssetFile() local
45 if (mode.equals("r") && assets != null && filename != null) { in openAssetFile()
47 return assets.openFd("notifications/" + filename); in openAssetFile()
/cts/tests/tests/security/src/android/security/cts/
DKernelSettingsTest.java93 static String getFile(String filename) throws IOException { in getFile() argument
96 in = new BufferedReader(new FileReader(filename)); in getFile()
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()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DCompilationTest.java146 public void testCompileSecondaryDex(String filename) throws Exception { in testCompileSecondaryDex() argument
150 .addInstrumentationArg("secondary-dex-filename", filename); in testCompileSecondaryDex()
155 checkDexoptStatus(dump, Pattern.quote(filename), ".*?"); in testCompileSecondaryDex()
160 checkDexoptStatus(dump, Pattern.quote(filename), "speed"); in testCompileSecondaryDex()
165 checkDexoptStatus(dump, Pattern.quote(filename), "verify"); in testCompileSecondaryDex()
169 checkDexoptStatus(dump, Pattern.quote(filename), "run-from-apk"); in testCompileSecondaryDex()
174 String filename = "secondary-unsupported-clc.jar"; in testCompileSecondaryDexUnsupportedClassLoader() local
178 .addInstrumentationArg("secondary-dex-filename", filename); in testCompileSecondaryDexUnsupportedClassLoader()
185 checkDexoptStatus(dump, Pattern.quote(filename), "verify"); in testCompileSecondaryDexUnsupportedClassLoader()
/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/tests/mediapc/src/android/mediapc/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/tests/tests/media/common/src/android/media/cts/
DTextureRender.java265 public static void saveFrame(String filename, int width, int height) { in saveFrame() argument
298 fos = new FileOutputStream(filename); in saveFrame()
303 throw new RuntimeException("Failed to write file " + filename, ioe); in saveFrame()
308 throw new RuntimeException("Failed to close file " + filename, ioe2); in saveFrame()
311 Log.d(TAG, "Saved " + width + "x" + height + " frame as '" + filename + "'"); in saveFrame()
/cts/tests/media/common/src/android/mediav2/common/cts/
DTextureRender.java288 public static void saveFrame(String filename, int width, int height) { in saveFrame() argument
321 fos = new FileOutputStream(filename); in saveFrame()
326 throw new RuntimeException("Failed to write file " + filename, ioe); in saveFrame()
331 throw new RuntimeException("Failed to close file " + filename, ioe2); in saveFrame()
334 Log.d(TAG, "Saved " + width + "x" + height + " frame as '" + filename + "'"); in saveFrame()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0689/
Dpoc.cpp44 char *filename = argv[1]; in main() local
45 FILE *file = fopen(filename, "r"); in main()
/cts/tests/translation/src/android/translation/cts/
DHelper.java222 final String filename = prefix + "-" + name; in createTestFile() local
224 return createFile(dir, filename); in createTestFile()
237 private static File createFile(File dir, String filename) throws IOException { in createFile() argument
238 final File file = new File(dir, filename); in createFile()
/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()

1234