Home
last modified time | relevance | path

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

/packages/services/Car/tests/BugReportApp/tests/src/com/google/android/car/bugreport/
DBugStorageUtilsTest.java61 assertThat(BugStorageUtils.findBugReport(mContext, bug.getId()).get()).isEqualTo(bug); in test_createBugReport_createsAndReturnsMetaBugReport()
68 try (InputStream in = BugStorageUtils.openBugReportFileToRead(mContext, bug)) { in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
73 boolean deleteResult = BugStorageUtils.expireBugReport(mContext, bug, now); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
76 assertThat(BugStorageUtils.findBugReport(mContext, bug.getId()).get()) in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
81 BugStorageUtils.openBugReportFileToRead(mContext, bug)); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
88 try (InputStream in = BugStorageUtils.openBugReportFileToRead(mContext, bug)) { in test_completeDeleteBugReport_removesBugReportRecordFromDb()
92 boolean deleteResult = BugStorageUtils.completeDeleteBugReport(mContext, bug.getId()); in test_completeDeleteBugReport_removesBugReportRecordFromDb()
95 assertThat(BugStorageUtils.findBugReport(mContext, bug.getId()).isPresent()).isFalse(); in test_completeDeleteBugReport_removesBugReportRecordFromDb()
97 BugStorageUtils.openBugReportFileToRead(mContext, bug)); in test_completeDeleteBugReport_removesBugReportRecordFromDb()
103 MetaBugReport bugReport = BugStorageUtils.createBugReport( in createBugReportWithStatus()
[all …]
/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.java398 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, Status.STATUS_WRITE_FAILED, in saveBugReport()
461 BugStorageUtils.setBugReportStatus( in handleBugReportManagerError()
522 mMetaBugReport = BugStorageUtils.update(this, in zipDirectoryAndUpdateStatus()
526 BugStorageUtils.openBugReportFileToWrite(this, mMetaBugReport)); in zipDirectoryAndUpdateStatus()
529 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, Status.STATUS_WRITE_FAILED, in zipDirectoryAndUpdateStatus()
535 BugStorageUtils.setBugReportStatus(BugReportService.this, in zipDirectoryAndUpdateStatus()
543 BugStorageUtils.setBugReportStatus(BugReportService.this, in zipDirectoryAndUpdateStatus()
DSimpleUploaderAsyncTask.java181 List<MetaBugReport> bugReports = BugStorageUtils.getUploadPendingBugReports(mContext); in doInBackground()
186 BugStorageUtils.setUploadRetry(mContext, bugReport, "Upload Job Cancelled"); in doInBackground()
190 BugStorageUtils.setUploadSuccess(mContext, bugReport); in doInBackground()
194 BugStorageUtils.setUploadRetry(mContext, bugReport, e); in doInBackground()
DBugStorageUtils.java55 final class BugStorageUtils { class
56 private static final String TAG = BugStorageUtils.class.getSimpleName();
193 List<MetaBugReport> bugs = BugStorageUtils.getBugreports( in findBugReport()
DBugStorageProvider.java408 return BugStorageUtils.findBugReport(getContext(), bugreportId) in getBugReportFromUri()