Home
last modified time | relevance | path

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

/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DSimpleUploaderAsyncTask.java82 Storage storage, MetaBugReport bugReport, String fileName, InputStream data) in uploadSimple() argument
93 STORAGE_METADATA_TITLE, bugReport.getTitle() in uploadSimple()
111 private void upload(MetaBugReport bugReport) throws IOException { in upload() argument
122 File tmpBugReportFile = zipBugReportFiles(bugReport); in upload()
126 String fileName = bugReport.getBugReportFileName(); in upload()
129 fileName = new File(bugReport.getFilePath()).getName(); in upload()
132 StorageObject object = uploadSimple(storage, bugReport, fileName, inputStream); in upload()
137 if (!Strings.isNullOrEmpty(bugReport.getAudioFileName())) { in upload()
138 Log.v(TAG, "Deleting file " + bugReport.getAudioFileName()); in upload()
139 new File(pendingDir, bugReport.getAudioFileName()).delete(); in upload()
[all …]
DBugStorageUtils.java269 public static void setUploadSuccess(Context context, MetaBugReport bugReport) { in setUploadSuccess() argument
270 setBugReportStatus(context, bugReport, Status.STATUS_UPLOAD_SUCCESS, in setUploadSuccess()
279 public static void setUploadRetry(Context context, MetaBugReport bugReport, Exception e) { in setUploadRetry() argument
280 setBugReportStatus(context, bugReport, Status.STATUS_UPLOAD_PENDING, in setUploadRetry()
289 public static void setUploadRetry(Context context, MetaBugReport bugReport, String msg) { in setUploadRetry() argument
290 setBugReportStatus(context, bugReport, Status.STATUS_UPLOAD_PENDING, msg); in setUploadRetry()
334 Context context, MetaBugReport bugReport, Status status, String message) { in setBugReportStatus() argument
335 return update(context, bugReport.toBuilder() in setBugReportStatus()
350 Context context, MetaBugReport bugReport, Status status, Exception e) { in setBugReportStatus() argument
351 return setBugReportStatus(context, bugReport, status, getRootCauseMessage(e)); in setBugReportStatus()
[all …]
DBugStorageProvider.java398 MetaBugReport bugReport = getBugReportFromUri(uri); in openFile() local
400 FileUtils.getPendingDir(getContext()), fileNameExtractor.apply(bugReport)); in openFile()
426 private boolean deleteFilesFor(MetaBugReport bugReport) { in deleteFilesFor() argument
427 if (!Strings.isNullOrEmpty(bugReport.getFilePath())) { in deleteFilesFor()
429 return new File(bugReport.getFilePath()).delete(); in deleteFilesFor()
433 if (!Strings.isNullOrEmpty(bugReport.getAudioFileName())) { in deleteFilesFor()
434 result = new File(pendingDir, bugReport.getAudioFileName()).delete(); in deleteFilesFor()
436 if (!Strings.isNullOrEmpty(bugReport.getBugReportFileName())) { in deleteFilesFor()
437 result = result && new File(pendingDir, bugReport.getBugReportFileName()).delete(); in deleteFilesFor()
DBugReportInfoActivity.java138 int buttonType, MetaBugReport bugReport, BugInfoAdapter.BugInfoViewHolder holder) { in onBugReportItemClicked() argument
140 Log.i(TAG, "Uploading " + bugReport.getTimestamp()); in onBugReportItemClicked()
141 BugStorageUtils.setBugReportStatus(this, bugReport, Status.STATUS_UPLOAD_PENDING, ""); in onBugReportItemClicked()
145 Log.i(TAG, "Moving " + bugReport.getTimestamp()); in onBugReportItemClicked()
146 mLastSelectedBugReport = bugReport; in onBugReportItemClicked()
154 startActivityForResult(BugReportActivity.buildAddAudioIntent(this, bugReport), in onBugReportItemClicked()
231 MetaBugReport bugReport, BugInfoAdapter.BugInfoViewHolder holder, in AsyncMoveFilesTask() argument
235 mBugReport = bugReport; in AsyncMoveFilesTask()
DBugInfoAdapter.java168 void updateBugReportInDataSet(MetaBugReport bugReport, int position) { in updateBugReportInDataSet() argument
170 mDataset.set(position, bugReport); in updateBugReportInDataSet()
DBugReportActivity.java343 MetaBugReport bugReport = createBugReport(this, MetaBugReport.TYPE_SILENT); in onActivityStartedWithBugReportServiceBound() local
344 startBugReportCollection(bugReport); in onActivityStartedWithBugReportServiceBound()
/packages/services/Car/tests/BugReportApp/tests/src/com/google/android/car/bugreport/
DBugStorageUtilsTest.java103 MetaBugReport bugReport = BugStorageUtils.createBugReport( in createBugReportWithStatus() local
106 bugReport = BugStorageUtils.update(mContext, in createBugReportWithStatus()
107 bugReport.toBuilder().setBugReportFileName(BUGREPORT_ZIP_FILE_NAME).build()); in createBugReportWithStatus()
108 try (OutputStream out = BugStorageUtils.openBugReportFileToWrite(mContext, bugReport)) { in createBugReportWithStatus() argument
112 return BugStorageUtils.setBugReportStatus(mContext, bugReport, status, ""); in createBugReportWithStatus()