/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMetadataTest.java | 75 private static void validateMetatData(int fileIndex, String[][] metadataFile) in validateMetatData() argument 77 Log.v(TAG, "filePath = " + metadataFile[fileIndex][0]); in validateMetatData() 78 if ((metadataFile[fileIndex][0].endsWith("wma") && !MediaProfileReader.getWMAEnable()) in validateMetatData() 79 || (metadataFile[fileIndex][0].endsWith("wmv") in validateMetatData() 86 retriever.setDataSource(metadataFile[fileIndex][0]); in validateMetatData() 88 Log.v(TAG, "Failed: " + metadataFile[fileIndex][0] + " " + e.toString()); in validateMetatData() 96 assertEquals(TAG, metadataFile[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData() 100 assertEquals(TAG, metadataFile[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData() 104 assertEquals(TAG, metadataFile[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData() 108 assertEquals(TAG, metadataFile[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/ |
D | AppMetadataBackupWriterTest.java | 262 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_writesCorrectData() local 265 mBackupWriter.backupWidget(packageInfo, metadataFile, mFilesDir, widgetBytes); in testBackupWidget_writesCorrectData() 281 metadataFile.delete(); in testBackupWidget_writesCorrectData() 288 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_withNullWidgetData_throwsNullPointerException() local 294 packageInfo, metadataFile, mFilesDir, /* widgetData */ null)); in testBackupWidget_withNullWidgetData_throwsNullPointerException() 296 metadataFile.delete(); in testBackupWidget_withNullWidgetData_throwsNullPointerException() 304 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException() local 310 packageInfo, metadataFile, mFilesDir, new byte[0])); in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException() 312 metadataFile.delete(); in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException() 320 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_whenRunPreviouslyWithSameData_producesSameBytesOnSecondRun() local [all …]
|
/frameworks/base/services/core/java/com/android/server/integrity/ |
D | IntegrityFileManager.java | 100 File metadataFile = new File(mRulesDir, METADATA_FILE); in IntegrityFileManager() local 101 if (metadataFile.exists()) { in IntegrityFileManager() 102 try (FileInputStream inputStream = new FileInputStream(metadataFile)) { in IntegrityFileManager() 212 File metadataFile = new File(directory, METADATA_FILE); in writeMetadata() local 214 try (FileOutputStream outputStream = new FileOutputStream(metadataFile)) { in writeMetadata()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | AppMetadataBackupWriter.java | 170 PackageInfo packageInfo, File metadataFile, File filesDir, byte[] widgetData) in backupWidget() argument 175 FileOutputStream fileOutputStream = new FileOutputStream(metadataFile); in backupWidget() 187 metadataFile.setLastModified(0); in backupWidget() 194 metadataFile.getAbsolutePath(), in backupWidget()
|
D | FullBackupEngine.java | 127 File metadataFile = new File(mFilesDir, BACKUP_METADATA_FILENAME); in run() local 129 mPackage, metadataFile, mFilesDir, widgetData); in run() 130 metadataFile.delete(); in run()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | InstantAppRegistry.java | 921 File metadataFile = new File(instantDir, INSTANT_APP_METADATA_FILE); 922 if (!metadataFile.exists()) { 927 - metadataFile.lastModified(); 1078 File metadataFile = new File(getInstantApplicationDir(packageName, userId), 1080 UninstalledInstantAppState uninstalledAppState = parseMetadataFile(metadataFile); 1108 File metadataFile = new File(instantDir, 1111 parseMetadataFile(metadataFile); 1131 @NonNull File metadataFile) { 1132 if (!metadataFile.exists()) { 1137 in = new AtomicFile(metadataFile).openRead(); [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | PackageWatchdog.java | 1982 File metadataFile = new File(filePath); in readAllObserversBootMitigationCountIfNecessary() local 1983 if (metadataFile.exists()) { in readAllObserversBootMitigationCountIfNecessary() 1985 FileInputStream fileStream = new FileInputStream(metadataFile); in readAllObserversBootMitigationCountIfNecessary()
|
/frameworks/base/services/incremental/ |
D | IncrementalService.cpp | 1589 for (auto&& [metadataFile, bindRecord] : permanentBindPoints) { in adoptMountedInstances() 1599 addBindMountRecordLocked(*ifs, bindRecord.storage_id(), std::move(metadataFile), in adoptMountedInstances() 1611 if (addBindMountWithMd(*ifs, bindRecord.storage_id(), std::move(metadataFile), in adoptMountedInstances() 1615 mIncFs->unlink(ifs->control, metadataFile); in adoptMountedInstances()
|