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.java60 assertThat(BugStorageUtils.findBugReport(mContext, bug.getId()).get()).isEqualTo(bug); in test_createBugReport_createsAndReturnsMetaBugReport()
67 try (InputStream in = BugStorageUtils.openBugReportFileToRead(mContext, bug)) { in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
72 boolean deleteResult = BugStorageUtils.expireBugReport(mContext, bug, now); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
75 assertThat(BugStorageUtils.findBugReport(mContext, bug.getId()).get()) in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
80 BugStorageUtils.openBugReportFileToRead(mContext, bug)); in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
87 try (InputStream in = BugStorageUtils.openBugReportFileToRead(mContext, bug)) { in test_completeDeleteBugReport_removesBugReportRecordFromDb()
91 boolean deleteResult = BugStorageUtils.completeDeleteBugReport(mContext, bug.getId()); in test_completeDeleteBugReport_removesBugReportRecordFromDb()
94 assertThat(BugStorageUtils.findBugReport(mContext, bug.getId()).isPresent()).isFalse(); in test_completeDeleteBugReport_removesBugReportRecordFromDb()
96 BugStorageUtils.openBugReportFileToRead(mContext, bug)); in test_completeDeleteBugReport_removesBugReportRecordFromDb()
102 MetaBugReport bugReport = BugStorageUtils.createBugReport( in createBugReportWithStatus()
[all …]
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportActivity.java364 MetaBugReport bug = BugStorageUtils.findBugReport(this, bugreportId).orElseThrow( in addAudioToExistingBugReport()
435 BugStorageUtils.deleteBugReportFiles(this, mMetaBugReport.getId()); in cancelAudioMessageRecording()
438 BugStorageUtils.setBugReportStatus( in cancelAudioMessageRecording()
483 BugStorageUtils.completeDeleteBugReport(this, mMetaBugReport.getId()); in buttonShowBugReportsClick()
524 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, in handleNoPermission()
527 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, in handleNoPermission()
619 return BugStorageUtils.createBugReport(context, title, timestamp, username, type); in createBugReport()
689 MetaBugReport bug = BugStorageUtils.update(mContext, in doInBackground()
691 try (OutputStream out = BugStorageUtils.openAudioMessageFileToWrite(mContext, bug); in doInBackground()
695 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.java386 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, Status.STATUS_WRITE_FAILED, in saveBugReport()
449 BugStorageUtils.setBugReportStatus( in handleBugReportManagerError()
510 mMetaBugReport = BugStorageUtils.update(this, in zipDirectoryAndUpdateStatus()
514 BugStorageUtils.openBugReportFileToWrite(this, mMetaBugReport)); in zipDirectoryAndUpdateStatus()
517 BugStorageUtils.setBugReportStatus(this, mMetaBugReport, Status.STATUS_WRITE_FAILED, in zipDirectoryAndUpdateStatus()
523 BugStorageUtils.setBugReportStatus(BugReportService.this, in zipDirectoryAndUpdateStatus()
531 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.java402 return BugStorageUtils.findBugReport(getContext(), bugreportId) in getBugReportFromUri()