Home
last modified time | relevance | path

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

12

/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.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()
/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()
DDecodeAccuracyTestBase.java1509 private final String filename; field in VideoFormat
1518 public VideoFormat(String filename) { in VideoFormat() argument
1519 this.filename = filename; in VideoFormat()
1523 this(videoFormat.filename); in VideoFormat()
1528 filenameParser = new FilenameParser(filename); in getParsedName()
1611 return context.getAssets().openFd(filename); in getAssetFileDescriptor()
1626 private final String filename; field in FilenameParser
1633 FilenameParser(String filename) { in FilenameParser() argument
1634 this.filename = filename; in FilenameParser()
1635 parseFilename(filename); in FilenameParser()
[all …]
DCodecUtils.java169 public static void saveBitmapToFile(Bitmap bitmap, String filename) { in saveBitmapToFile() argument
171 File outputFile = new File(Environment.getExternalStorageDirectory(), filename); in saveBitmapToFile()
/cts/tests/tests/selinux/selinuxTargetSdk/src/android/selinuxtargetsdk/cts/
DSELinuxTargetSdkTest.java31 static String getFile(String filename) throws IOException { in getFile() argument
34 in = new BufferedReader(new FileReader(filename)); in getFile()
/cts/tests/tests/security/src/android/security/cts/
DKernelSettingsTest.java116 static String getFile(String filename) throws IOException { in getFile() argument
119 in = new BufferedReader(new FileReader(filename)); in getFile()
DBannedFilesTest.java103 private static void assertFileDoesNotContain(String filename, byte[] pattern) { in assertFileDoesNotContain() argument
105 File f = new File(filename); in assertFileDoesNotContain()
118 fail("Found banned pattern in " + filename); in assertFileDoesNotContain()
DMMapExecutableTest.java40 public static final native boolean mmapExecutable(String filename); in mmapExecutable() argument
/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/suite/audio_quality/lib/include/audio/
DBuffer.h112 bool saveToFile(const android::String8& filename);
120 static Buffer* loadFromFile(const android::String8& filename);
/cts/tests/tests/selinux/selinuxTargetSdk2/src/android/selinuxtargetsdk2/cts/
DSELinuxTargetSdk2Test.java32 static String getFile(String filename) throws IOException { in getFile() argument
35 in = new BufferedReader(new FileReader(filename)); in getFile()
/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/tradefed/src/com/android/compatibility/common/tradefed/build/
DCompatibilityBuildHelper.java219 public File getTestFile(String filename) throws FileNotFoundException { in getTestFile() argument
220 File testFile = new File(getTestsDir(), filename); in getTestFile()
223 "Compatibility test file %s does not exist", filename)); in getTestFile()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java158 String filename = dir.getAbsolutePath() + File.separator + UUID.randomUUID().toString(); in setupFifo() local
159 Os.mkfifo(filename, 0666); in setupFifo()
160 File f = new File(filename); in setupFifo()
/cts/tests/tests/net/src/android/net/wifi/cts/
DConfigParserTest.java49 private String loadResourceFile(String filename) throws IOException { in loadResourceFile() argument
50 InputStream in = getClass().getClassLoader().getResourceAsStream(filename); in loadResourceFile()
DPpsMoParserTest.java50 private String loadResourceFile(String filename) throws IOException { in loadResourceFile() argument
51 InputStream in = getClass().getClassLoader().getResourceAsStream(filename); in loadResourceFile()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DContentTest.java273 String filename = mContext.getFilesDir() + File.separator + "texts" + File.separator in getUriWithTextInFile() local
275 Log.i(TAG, "Creating file " + filename + " with text \"" + text + "\""); in getUriWithTextInFile()
276 final File file = new File(filename); in getUriWithTextInFile()
283 Log.e(TAG, "Could not create file " + filename + " with text " + text); in getUriWithTextInFile()
/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()

12