Home
last modified time | relevance | path

Searched refs:BugStorageUtils (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/BugReportApp/tests/src/com/android/car/bugreport/
DBugStorageUtilsTest.java75 assertThat(BugStorageUtils.findBugReport(mContext, bug.getId()).get()).isEqualTo(bug); in test_createBugReport_createsAndReturnsMetaBugReport()
84 try (InputStream in = BugStorageUtils.openBugReportFileToRead(mContext, bug)) { in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
87 try (InputStream in = BugStorageUtils.openAudioFileToRead(mContext, bug)) { in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
91 boolean deleteResult = BugStorageUtils.expireBugReport(mContext, bug.getId()); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
94 MetaBugReport updatedBug = BugStorageUtils.findBugReport(mContext, bug.getId()).get(); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
105 BugStorageUtils.openBugReportFileToRead(mContext, finalBug)); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
107 BugStorageUtils.openAudioFileToRead(mContext, finalBug)); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
116 try (InputStream in = BugStorageUtils.openBugReportFileToRead(mContext, bug)) { in test_completeDeleteBugReport_removesBugReportRecordFromDb()
119 try (InputStream in = BugStorageUtils.openAudioFileToRead(mContext, bug)) { in test_completeDeleteBugReport_removesBugReportRecordFromDb()
123 boolean deleteResult = BugStorageUtils.completeDeleteBugReport(mContext, bug.getId()); in test_completeDeleteBugReport_removesBugReportRecordFromDb()
[all …]
DTtlPointsDecrementalTest.java97 return BugStorageUtils.findBugReport(mContext, bug.getId()).get(); in find()
113 return BugStorageUtils.findBugReport(mContext, in createBugReport()
118 for (MetaBugReport bug : BugStorageUtils.getAllBugReportsDescending(mContext)) { in deleteAllBugReports()
119 BugStorageUtils.completeDeleteBugReport(mContext, bug.getId()); in deleteAllBugReports()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugReportActivity.java363 MetaBugReport bug = BugStorageUtils.findBugReport(this, bugreportId).orElseThrow( in addAudioToExistingBugReport()
434 BugStorageUtils.deleteBugReportFiles(this, mMetaBugReport.getId()); in cancelAudioMessageRecording()
437 BugStorageUtils.setBugReportStatus( in cancelAudioMessageRecording()
482 BugStorageUtils.completeDeleteBugReport(this, mMetaBugReport.getId()); in buttonShowBugReportsClick()
527 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, in handleNoPermission()
530 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, in handleNoPermission()
622 return BugStorageUtils.createBugReport(context, title, timestamp, username, type); in createBugReport()
692 MetaBugReport bug = BugStorageUtils.update(mContext, in doInBackground()
694 try (OutputStream out = BugStorageUtils.openAudioMessageFileToWrite(mContext, bug); in doInBackground()
698 BugStorageUtils.setBugReportStatus(mContext, bug, in doInBackground()
[all …]
DBugReportInfoActivity.java141 BugStorageUtils.setBugReportStatus(this, bugReport, Status.STATUS_UPLOAD_PENDING, ""); in onBugReportItemClicked()
175 MetaBugReport updatedBugReport = BugStorageUtils.setBugReportStatus(this, in onActivityResult()
249 return BugStorageUtils.setBugReportStatus( in doInBackground()
269 BugStorageUtils.deleteBugReportFiles(mActivity, mBugReport.getId()); in copyFilesToUsb()
270 return BugStorageUtils.setBugReportStatus(mActivity, mBugReport, in copyFilesToUsb()
355 return BugStorageUtils.getAllBugReportsDescending(activity); in doInBackground()
DBugReportService.java400 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, Status.STATUS_WRITE_FAILED, in saveBugReport()
463 BugStorageUtils.setBugReportStatus( in handleBugReportManagerError()
525 mMetaBugReport = BugStorageUtils.update(this, in zipDirectoryAndUpdateStatus()
529 BugStorageUtils.openBugReportFileToWrite(this, mMetaBugReport)); in zipDirectoryAndUpdateStatus()
532 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, Status.STATUS_WRITE_FAILED, in zipDirectoryAndUpdateStatus()
538 BugStorageUtils.setBugReportStatus(BugReportService.this, in zipDirectoryAndUpdateStatus()
546 BugStorageUtils.setBugReportStatus(BugReportService.this, in zipDirectoryAndUpdateStatus()
DSimpleUploaderAsyncTask.java183 List<MetaBugReport> bugReports = BugStorageUtils.getUploadPendingBugReports(mContext); in doInBackground()
188 BugStorageUtils.setUploadRetry(mContext, bugReport, "Upload Job Cancelled"); in doInBackground()
192 BugStorageUtils.setUploadSuccess(mContext, bugReport); in doInBackground()
196 BugStorageUtils.setUploadRetry(mContext, bugReport, e); in doInBackground()
DExpireOldBugReportsJob.java73 BugStorageUtils.getUnexpiredBugReportsWithZipFile( in run()
79 BugStorageUtils.expireBugReport(this, bug.getId()); in run()
DBugStorageUtils.java57 final class BugStorageUtils { class
58 private static final String TAG = BugStorageUtils.class.getSimpleName();
248 List<MetaBugReport> bugs = BugStorageUtils.getBugreports( in findBugReport()
DTtlPointsDecremental.java53 BugStorageUtils.getUnexpiredBugReportsWithZipFile( in run()
DBugInfoAdapter.java127 && BugStorageUtils.canBugReportBeExpired(bugreport.getStatus())) { in onBindViewHolder()
DBugStorageProvider.java446 return BugStorageUtils.findBugReport(getContext(), bugreportId) in getBugReportFromUri()