/cts/tests/tests/security/jni/ |
D | android_security_cts_MMapExecutableTest.cpp | 41 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/hostsidetests/stagedinstall/ |
D | Android.bp | 88 filename: "com.android.apex.cts.shim.v2_signed_bob.apex", 95 filename: "com.android.apex.cts.shim.v2_signed_bob_rot.apex", 102 filename: "com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex", 109 filename: "com.android.apex.cts.shim.v3_signed_bob.apex", 116 filename: "com.android.apex.cts.shim.v3_signed_bob_rot.apex", 123 filename: "com.android.apex.cts.shim.v1.apex", 130 filename: "com.android.apex.cts.shim.v2.apex", 137 filename: "com.android.apex.cts.shim.v3.apex", 144 filename: "com.android.apex.cts.shim.v2_additional_file.apex", 151 filename: "com.android.apex.cts.shim.v2_additional_folder.apex", [all …]
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | MediaRecorderStressTest.java | 217 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 …]
|
D | MediaFrameworkTest.java | 85 public void startPlayback(String filename){ in startPlayback() argument 87 Uri path = Uri.parse(filename); in startPlayback()
|
/cts/suite/audio_quality/lib/src/audio/ |
D | Buffer.cpp | 80 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/media/src/android/media/cts/ |
D | IvfWriter.java | 56 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()
|
D | TextureRender.java | 254 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()
|
D | DecodeAccuracyTestBase.java | 1562 private final String filename; field in VideoFormat 1571 public VideoFormat(String filename) { in VideoFormat() argument 1572 this.filename = filename; in VideoFormat() 1576 this(videoFormat.filename); in VideoFormat() 1581 filenameParser = new FilenameParser(filename); in getParsedName() 1668 return context.getAssets().openFd(filename); in getAssetFileDescriptor() 1683 private final String filename; field in FilenameParser 1690 FilenameParser(String filename) { in FilenameParser() argument 1691 this.filename = filename; in FilenameParser() 1692 parseFilename(filename); in FilenameParser() [all …]
|
D | IvfReader.java | 59 public IvfReader(String filename) throws IOException{ in IvfReader() argument 60 mIvfFile = new RandomAccessFile(filename, "r"); in IvfReader()
|
/cts/tests/tests/graphics/jni/ |
D | MediaTestHelpers.cpp | 78 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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaTextureRender.java | 258 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/security/src/android/security/cts/ |
D | BannedFilesTest.java | 103 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()
|
D | KernelSettingsTest.java | 95 static String getFile(String filename) throws IOException { in getFile() argument 98 in = new BufferedReader(new FileReader(filename)); in getFile()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | HeifWriterTest.java | 123 String filename = "Cam" + id + "_" + width + "x" + height + in testHeif() local 126 new File(mFilePath, filename).getAbsolutePath()); in testHeif() 325 String filename, int width, int height, int rotation, boolean useGrid, int numImages) in verifyResult() argument 328 retriever.setDataSource(filename); in verifyResult() 331 throw new Exception("No images found in file " + filename); in verifyResult() 349 extractor.setDataSource(filename); in verifyResult()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | Buffer.h | 112 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/ |
D | ContentTest.java | 274 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()
|
/cts/tests/tests/content/jni/ |
D | NativeCursorWindow.cpp | 77 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/ |
D | android_api_description_splitter.py | 123 … filename = os.path.join(self.out, elem.getAttribute("name").replace(".", "_").lower() + ".xml") 130 fd = open(filename, "w")
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ConfigParserTest.java | 49 private String loadResourceFile(String filename) throws IOException { in loadResourceFile() argument 50 InputStream in = getClass().getClassLoader().getResourceAsStream(filename); in loadResourceFile()
|
D | PpsMoParserTest.java | 50 private String loadResourceFile(String filename) throws IOException { in loadResourceFile() argument 51 InputStream in = getClass().getClassLoader().getResourceAsStream(filename); in loadResourceFile()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceActivityFlowTest.java | 500 private File dumpBitmap(Bitmap bitmap, String filename) throws IOException { in dumpBitmap() argument 501 File file = createFile(filename); in dumpBitmap() 509 private static File createFile(String filename) throws IOException { in createFile() argument 511 File file = new File(dir, filename); in createFile()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | X509CertificateSigningTest.java | 92 String filename = "ic_cert.bin"; in testSigning() local 93 AtomicFile file = new AtomicFile(appContext.getFileStreamPath(filename)); in testSigning()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | Helper.java | 1288 public static void assertBitmapsAreSame(@NonNull String filename, @Nullable Bitmap bitmap1, in assertBitmapsAreSame() argument 1294 Log.v(TAG, "bitmap comparison passed for " + filename); in assertBitmapsAreSame() 1300 throw new AssertionError("bitmap comparison failed for " + filename in assertBitmapsAreSame() 1303 final File dump1 = dumpBitmap(bitmap1, dir, filename + "-1.png"); in assertBitmapsAreSame() 1304 final File dump2 = dumpBitmap(bitmap2, dir, filename + "-2.png"); in assertBitmapsAreSame() 1321 private static File createFile(@NonNull File dir, @NonNull String filename) throws IOException { in createFile() argument 1322 final File file = new File(dir, filename); in createFile() 1336 @NonNull String filename) throws IOException { in dumpBitmap() argument 1337 final File file = createFile(dir, filename); in dumpBitmap() 1362 final String filename = prefix + "-" + name; in createTestFile() local [all …]
|
/cts/tests/tests/selinux/common/src/android/security/ |
D | SELinuxTargetSdkTestBase.java | 20 protected static String getFile(String filename) throws IOException { in getFile() argument 23 in = new BufferedReader(new FileReader(filename)); in getFile()
|
/cts/tools/signature-tools/src/signature/converter/doclet/ |
D | DocletFactory.java | 49 for (String filename : fileNames) { in loadApi() 50 buf.append(filename); in loadApi()
|