Home
last modified time | relevance | path

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

/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.java213 String filename; in testStressRecorder() local
237 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressRecorder()
238 Log.v(TAG, filename); in testStressRecorder()
242 mRecorder.setOutputFile(filename); in testStressRecorder()
270 String filename; in testStressCameraSwitchRecorder() local
305 filename = OUTPUT_FILE + i + OUTPUT_FILE_EXT; in testStressCameraSwitchRecorder()
306 Log.v(TAG, filename); in testStressCameraSwitchRecorder()
316 mRecorder.setOutputFile(filename); in testStressCameraSwitchRecorder()
348 public void removeRecodedVideo(String filename){ in removeRecodedVideo() argument
349 File video = new File(filename); in removeRecodedVideo()
[all …]
DMediaFrameworkTest.java87 public void startPlayback(String filename){ in startPlayback() argument
89 Uri path = Uri.parse(filename); in startPlayback()
DMediaPlayerStressTest.java77 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument
78 output.write("File Name: " + filename); in writeTestOutput()
/cts/tests/tests/media/src/android/media/cts/
DIvfWriter.java50 public IvfWriter(String filename, in IvfWriter() argument
53 mOutputFile = new RandomAccessFile(filename, "rw"); in IvfWriter()
72 public IvfWriter(String filename, int width, int height) throws IOException { in IvfWriter() argument
73 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.java58 public IvfReader(String filename) throws IOException{ in IvfReader() argument
59 mIvfFile = new RandomAccessFile(filename, "r"); in IvfReader()
DVp8EncoderTest.java116 private void decode(String filename) throws Exception { in decode() argument
119 ivf = new IvfReader(filename); in decode()
/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.java135 private String getFile(String filename) throws IOException { in getFile() argument
138 in = new BufferedReader(new FileReader(filename)); in getFile()
DClonedSecureRandomTest.java212 private static String getFirstLineFromFile(String filename) throws IOException { in getFirstLineFromFile() argument
215 in = new BufferedReader(new FileReader(filename)); in getFirstLineFromFile()
218 throw new EOFException("EOF encountered before reading first line of " + filename); in getFirstLineFromFile()
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()
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h112 bool saveToFile(const android::String8& filename);
120 static Buffer* loadFromFile(const android::String8& filename);
/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/tools/signature-tools/src/signature/converter/doclet/
DDocletFactory.java49 for (String filename : fileNames) { in loadApi()
50 buf.append(filename); in loadApi()
/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/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java816 String filename = "/system/bin/run-as"; in testRunAsHasCorrectCapabilities() local
818 assertTrue(FileUtils.getFileStatus(filename, status, false)); in testRunAsHasCorrectCapabilities()
823 File f = new File(filename); in testRunAsHasCorrectCapabilities()
828 assertTrue(FileUtils.hasSetUidCapability(filename)); in testRunAsHasCorrectCapabilities()
829 assertTrue(FileUtils.hasSetGidCapability(filename)); in testRunAsHasCorrectCapabilities()
935 private ParsedMounts(String filename) throws IOException { in ParsedMounts() argument
936 BufferedReader br = new BufferedReader(new FileReader(filename)); in ParsedMounts()
/cts/hostsidetests/aadb/src/com/android/cts/aadb/
DTestDeviceFuncTest.java134 final String filename = "tmp_testPushPull.txt"; in testPushPull_extStorageVariable() local
140 deviceFilePath = String.format("%s/%s", externalStorePath, filename); in testPushPull_extStorageVariable()
152 tmpDestFile2 = mTestDevice.pullFileFromExternal(filename); in testPushPull_extStorageVariable()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebSettingsTest.java796 private void writeFile(String filename, String content) throws Exception {
798 FileOutputStream fos = mContext.openFileOutput(filename, Context.MODE_PRIVATE);
/cts/tools/dasm/src/dasm/
DDAsm.java99 String filename; field in DAsm
1497 return new SourcePosition(new CstString(filename), -1, line_num); in createSourcePosition()
1599 filename = name; in readD()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dgbemu.js10832 function openSRAM(filename) { argument
10834 if (findValue("B64_SRAM_" + filename) != null) {
10836 return base64ToArray(findValue("B64_SRAM_" + filename));
10838 else if (findValue("SRAM_" + filename) != null) {
10840 return findValue("SRAM_" + filename);
10851 function openRTC(filename) { argument
10853 if (findValue("RTC_" + filename) != null) {
10855 return findValue("RTC_" + filename);
10866 function openState(filename, canvas) { argument
10868 if (findValue(filename) != null) {
[all …]
Dmandreel.js8757 function at_imp_mandreel_audio_playChannel(filename,channel,vol,loop,pitch) argument
8760 var fileNameNoExt = wa_getFileNameNoExt(filename);