Home
last modified time | relevance | path

Searched refs:DataTypeResult (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperEventLoggerTest.java83 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_IMG_SYSTEM); in onSystemImgWallpaperBackedUp_logsSuccess()
94 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_IMG_LOCK); in onLockImgWallpaperBackedUp_logsSuccess()
105 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_LIVE_SYSTEM); in onSystemLiveWallpaperBackedUp_logsSuccess()
116 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_LIVE_LOCK); in onLockLiveWallpaperBackedUp_logsSuccess()
127 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_IMG_SYSTEM); in onImgWallpaperBackedUp_nullInfo_doesNotLogMetadata()
139 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_LIVE_SYSTEM); in onLiveWallpaperBackedUp_logsMetadata()
151 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_IMG_SYSTEM); in onSystemImgWallpaperBackupFailed_logsFail()
163 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_IMG_LOCK); in onLockImgWallpaperBackupFailed_logsFail()
176 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_LIVE_SYSTEM); in onSystemLiveWallpaperBackupFailed_logsFail()
188 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_LIVE_LOCK); in onLockLiveWallpaperBackupFailed_logsFail()
[all …]
DWallpaperBackupAgentTest.java55 import android.app.backup.BackupRestoreEventLogger.DataTypeResult;
446 DataTypeResult result = getLoggingResult(WALLPAPER_IMG_SYSTEM, in testOnFullBackup_systemWallpaperImgSuccess_logsSuccess()
460 DataTypeResult result = getLoggingResult(WALLPAPER_IMG_SYSTEM, in testOnFullBackup_systemWallpaperImgIneligible_logsFailure()
471 DataTypeResult result = getLoggingResult(WALLPAPER_IMG_SYSTEM, in testOnFullBackup_systemWallpaperImgMissing_logsFailure()
486 DataTypeResult result = getLoggingResult(WALLPAPER_LIVE_SYSTEM, in testOnFullBackup_systemWallpaperImgMissingButHasLiveComponent_logsLiveSuccess()
501 DataTypeResult result = getLoggingResult(WALLPAPER_IMG_SYSTEM, in testOnFullBackup_systemWallpaperImgMissingButHasLiveComponent_logsNothingForImg()
513 DataTypeResult result = getLoggingResult(WALLPAPER_IMG_LOCK, in testOnFullBackup_lockWallpaperImgSuccess_logsSuccess()
527 DataTypeResult result = getLoggingResult(WALLPAPER_IMG_LOCK, in testOnFullBackup_lockWallpaperImgIneligible_logsFailure()
538 DataTypeResult result = getLoggingResult(WALLPAPER_IMG_LOCK, in testOnFullBackup_lockWallpaperImgMissing_logsFailure()
553 DataTypeResult result = getLoggingResult(WALLPAPER_LIVE_LOCK, in testOnFullBackup_lockWallpaperImgMissingButHasLiveComponent_logsLiveSuccess()
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupRestoreEventLogger.java82 private final Map<String, DataTypeResult> mResults = new HashMap<>();
223 public List<DataTypeResult> getLoggingResults() { in getLoggingResults()
250 DataTypeResult dataTypeResult = getDataTypeResult(operationType, dataType); in logSuccess()
262 DataTypeResult dataTypeResult = getDataTypeResult(operationType, dataType); in logFailure()
278 DataTypeResult dataTypeResult = getDataTypeResult(operationType, dataType); in logMetaData()
293 private DataTypeResult getDataTypeResult(@OperationType int operationType, in getDataTypeResult()
310 mResults.put(dataType, new DataTypeResult(dataType)); in getDataTypeResult()
331 public static final class DataTypeResult implements Parcelable { class in BackupRestoreEventLogger
339 public DataTypeResult(@NonNull String dataType) { in DataTypeResult() method in BackupRestoreEventLogger.DataTypeResult
405 public static final Parcelable.Creator<DataTypeResult> CREATOR =
[all …]
DBackupRestoreEventLogger.aidl19 parcelable BackupRestoreEventLogger.DataTypeResult;
DIBackupManager.aidl19 import android.app.backup.BackupRestoreEventLogger.DataTypeResult;
743 void reportDelayedRestoreResult(in String packageName, in List<DataTypeResult> results); in reportDelayedRestoreResult()
DBackupAgent.java1375 AndroidFuture<List<BackupRestoreEventLogger.DataTypeResult>> in) { in getLoggerResults()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupRestoreEventLoggerTest.java26 import android.app.backup.BackupRestoreEventLogger.DataTypeResult;
333 List<DataTypeResult> resultsList = mLogger.getLoggingResults(); in testGetLoggingResults_resultsParceledAndUnparceled_recreatedCorrectly()
339 List<DataTypeResult> recreatedList = new ArrayList<>(); in testGetLoggingResults_resultsParceledAndUnparceled_recreatedCorrectly()
341 recreatedList, DataTypeResult.class.getClassLoader(), DataTypeResult.class); in testGetLoggingResults_resultsParceledAndUnparceled_recreatedCorrectly()
369 private static DataTypeResult getResultForDataType( in getResultForDataType()
371 Optional<DataTypeResult> result = getResultForDataTypeIfPresent(logger, dataType); in getResultForDataType()
378 private static Optional<DataTypeResult> getResultForDataTypeIfPresent( in getResultForDataTypeIfPresent()
380 List<DataTypeResult> resultList = logger.getLoggingResults(); in getResultForDataTypeIfPresent()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupManagerMonitorEventSenderTest.java247 List<BackupRestoreEventLogger.DataTypeResult> loggingResults = new ArrayList<>(); in setUpLoggingAgentForOperation()
248 loggingResults.add(new BackupRestoreEventLogger.DataTypeResult("testLoggingResult")); in setUpLoggingAgentForOperation()
251 AndroidFuture<List<BackupRestoreEventLogger.DataTypeResult>> in = in setUpLoggingAgentForOperation()
273 List<BackupRestoreEventLogger.DataTypeResult> loggingResults = new ArrayList<>(); in sendAgentLoggingResults_onBackup_fillsBundleCorrectly()
274 loggingResults.add(new BackupRestoreEventLogger.DataTypeResult("testLoggingResult")); in sendAgentLoggingResults_onBackup_fillsBundleCorrectly()
286 List<BackupRestoreEventLogger.DataTypeResult> loggingResults = new ArrayList<>(); in sendAgentLoggingResults_onRestore_fillsBundleCorrectly()
287 loggingResults.add(new BackupRestoreEventLogger.DataTypeResult("testLoggingResult")); in sendAgentLoggingResults_onRestore_fillsBundleCorrectly()
311 List<BackupRestoreEventLogger.DataTypeResult> filledLoggingResults = in assertCorrectBundleSentToMonitor()
314 BackupRestoreEventLogger.DataTypeResult.class); in assertCorrectBundleSentToMonitor()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupManagerMonitorEventSender.java32 import android.app.backup.BackupRestoreEventLogger.DataTypeResult;
146 AndroidFuture<List<DataTypeResult>> resultsFuture = in monitorAgentLoggingResults()
162 public void sendAgentLoggingResults(PackageInfo pkg, List<DataTypeResult> results, in sendAgentLoggingResults()
DBackupManagerMonitorDumpsysUtils.java159 ArrayList<BackupRestoreEventLogger.DataTypeResult> agentLogs = in hasAgentLogging()
179 ArrayList<BackupRestoreEventLogger.DataTypeResult> agentLogs = in addAgentLogsIfAvailable()
182 for (BackupRestoreEventLogger.DataTypeResult result : agentLogs) { in addAgentLogsIfAvailable()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java38 import android.app.backup.BackupRestoreEventLogger.DataTypeResult;
297 List<DataTypeResult> results = Arrays.asList(new DataTypeResult(/* dataType */ "type_1"), in testReportDelayedRestoreResult_sendsLogsToMonitor()
298 new DataTypeResult(/* dataType */ "type_2")); in testReportDelayedRestoreResult_sendsLogsToMonitor()
/frameworks/base/core/java/android/app/
DIBackupAgent.aidl208 in AndroidFuture<List<BackupRestoreEventLogger.DataTypeResult>> resultsFuture); in getLoggerResults()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java24 import android.app.backup.BackupRestoreEventLogger.DataTypeResult;
920 ArrayList<DataTypeResult> results = event.getParcelableArrayList( in onEvent()
922 DataTypeResult.class); in onEvent()
923 for (DataTypeResult result : results) { in onEvent()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java1100 ArrayList<BackupRestoreEventLogger.DataTypeResult> results = in onEvent()
1103 BackupRestoreEventLogger.DataTypeResult.class); in onEvent()
1105 for (BackupRestoreEventLogger.DataTypeResult result : results) { in onEvent()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java28 import android.app.backup.BackupRestoreEventLogger.DataTypeResult;
1636 public void reportDelayedRestoreResult(String packageName, List<DataTypeResult> results) { in reportDelayedRestoreResult()
DUserBackupManagerService.java3070 List<BackupRestoreEventLogger.DataTypeResult> results) { in reportDelayedRestoreResult()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java1467 List<BackupRestoreEventLogger.DataTypeResult> results = new ArrayList<>(); in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor()
1468 results.add(new BackupRestoreEventLogger.DataTypeResult("testDataTypeResult")); in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor()
1471 AndroidFuture<List<BackupRestoreEventLogger.DataTypeResult>> in = in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor()
1484 List<BackupRestoreEventLogger.DataTypeResult> sentLoggingResults = in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor()
1487 BackupRestoreEventLogger.DataTypeResult.class); in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor()
/frameworks/base/core/api/
Dsystem-current.txt1871 …public static final class BackupRestoreEventLogger.DataTypeResult implements android.os.Parcelable…
1872 ctor public BackupRestoreEventLogger.DataTypeResult(@NonNull String);
1880 … android.os.Parcelable.Creator<android.app.backup.BackupRestoreEventLogger.DataTypeResult> CREATOR;