/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | SimpleUploaderAsyncTask.java | 84 Storage storage, MetaBugReport bugReport, String fileName, InputStream data) in uploadSimple() argument 95 STORAGE_METADATA_TITLE, bugReport.getTitle() in uploadSimple() 113 private void upload(MetaBugReport bugReport) throws IOException { in upload() argument 124 File tmpBugReportFile = zipBugReportFiles(bugReport); in upload() 128 String fileName = bugReport.getBugReportFileName(); in upload() 131 fileName = new File(bugReport.getFilePath()).getName(); in upload() 134 StorageObject object = uploadSimple(storage, bugReport, fileName, inputStream); in upload() 139 if (!Strings.isNullOrEmpty(bugReport.getAudioFileName())) { in upload() 140 Log.v(TAG, "Deleting file " + bugReport.getAudioFileName()); in upload() 141 new File(pendingDir, bugReport.getAudioFileName()).delete(); in upload() [all …]
|
D | BugStorageUtils.java | 326 public static void setUploadSuccess(Context context, MetaBugReport bugReport) { in setUploadSuccess() argument 327 setBugReportStatus(context, bugReport, Status.STATUS_UPLOAD_SUCCESS, in setUploadSuccess() 336 public static void setUploadRetry(Context context, MetaBugReport bugReport, Exception e) { in setUploadRetry() argument 337 setBugReportStatus(context, bugReport, Status.STATUS_UPLOAD_PENDING, in setUploadRetry() 346 public static void setUploadRetry(Context context, MetaBugReport bugReport, String msg) { in setUploadRetry() argument 347 setBugReportStatus(context, bugReport, Status.STATUS_UPLOAD_PENDING, msg); in setUploadRetry() 375 Context context, MetaBugReport bugReport, Status status, String message) { in setBugReportStatus() argument 376 return update(context, bugReport.toBuilder() in setBugReportStatus() 391 Context context, MetaBugReport bugReport, Status status, Exception e) { in setBugReportStatus() argument 392 return setBugReportStatus(context, bugReport, status, getRootCauseMessage(e)); in setBugReportStatus() [all …]
|
D | BugStorageProvider.java | 436 MetaBugReport bugReport = getBugReportFromUri(uri); in openFile() local 438 FileUtils.getPendingDir(getContext()), fileNameExtractor.apply(bugReport)); in openFile() 464 private boolean deleteFilesFor(MetaBugReport bugReport) { in deleteFilesFor() argument 465 if (!Strings.isNullOrEmpty(bugReport.getFilePath())) { in deleteFilesFor() 467 return new File(bugReport.getFilePath()).delete(); in deleteFilesFor() 471 if (!Strings.isNullOrEmpty(bugReport.getAudioFileName())) { in deleteFilesFor() 472 result = new File(pendingDir, bugReport.getAudioFileName()).delete(); in deleteFilesFor() 474 if (!Strings.isNullOrEmpty(bugReport.getBugReportFileName())) { in deleteFilesFor() 475 result = result && new File(pendingDir, bugReport.getBugReportFileName()).delete(); in deleteFilesFor()
|
D | BugReportInfoActivity.java | 138 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()
|
D | TtlPointsDecremental.java | 56 for (MetaBugReport bugReport : unexpiredBugReports) { in run() 58 values.put(COLUMN_TTL_POINTS, bugReport.getTtlPoints() - 1); in run() 59 String where = COLUMN_ID + " = " + bugReport.getId(); in run()
|
D | BugInfoAdapter.java | 181 void updateBugReportInDataSet(MetaBugReport bugReport, int position) { in updateBugReportInDataSet() argument 183 mDataset.set(position, bugReport); in updateBugReportInDataSet()
|
D | BugReportActivity.java | 343 MetaBugReport bugReport = createBugReport(this, MetaBugReport.TYPE_SILENT); in onActivityStartedWithBugReportServiceBound() local 344 startBugReportCollection(bugReport); in onActivityStartedWithBugReportServiceBound()
|