Home
last modified time | relevance | path

Searched refs:MetaBugReport (Results 1 – 15 of 15) sorted by relevance

/aosp12/packages/services/Car/tests/BugReportApp/tests/src/com/android/car/bugreport/
H A DBugStorageUtilsTest.java18 import static com.android.car.bugreport.MetaBugReport.TYPE_INTERACTIVE;
19 import static com.android.car.bugreport.MetaBugReport.TYPE_SILENT;
72 MetaBugReport bug = createBugReport(TIMESTAMP_TODAY, in test_createBugReport_createsAndReturnsMetaBugReport()
80 MetaBugReport bug = createBugReport(TIMESTAMP_TODAY, in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
103 final MetaBugReport finalBug = bug; in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
112 MetaBugReport bug = createBugReport(TIMESTAMP_TODAY, in test_completeDeleteBugReport_removesBugReportRecordFromDb()
127 final MetaBugReport finalBug = bug; in test_completeDeleteBugReport_removesBugReportRecordFromDb()
136 MetaBugReport bugUserPending = createBugReport(TIMESTAMP_TODAY, in test_getUnexpiredBugReportsWithZipFile_withNonZeroTtlPoints()
183 private MetaBugReport createBugReport( in createBugReport()
202 private MetaBugReport createBugReportFile(MetaBugReport bug) throws IOException { in createBugReportFile()
[all …]
H A DTtlPointsDecrementalTest.java47 private static final String TIMESTAMP_TODAY = MetaBugReport.toBugReportTimestamp(new Date());
68 MetaBugReport bugUserPending_ttl_points0 = createBugReport(TIMESTAMP_TODAY, in test_decrementsTtlPointsForPendingBugReports()
70 MetaBugReport bugUserPending_ttl_points1 = createBugReport(TIMESTAMP_TODAY, in test_decrementsTtlPointsForPendingBugReports()
72 MetaBugReport bugUserPending_ttl_points2 = createBugReport(TIMESTAMP_TODAY, in test_decrementsTtlPointsForPendingBugReports()
74 MetaBugReport bugUploadPending = createBugReport(TIMESTAMP_TODAY, in test_decrementsTtlPointsForPendingBugReports()
76 MetaBugReport bugUploadFailed = createBugReport(TIMESTAMP_TODAY, in test_decrementsTtlPointsForPendingBugReports()
78 MetaBugReport bugUploadWritePending = createBugReport(TIMESTAMP_TODAY, in test_decrementsTtlPointsForPendingBugReports()
96 private MetaBugReport find(MetaBugReport bug) { in find()
100 private MetaBugReport createBugReport(String timestamp, Status status, int ttlPoints) { in createBugReport()
107 values.put(BugStorageProvider.COLUMN_TYPE, MetaBugReport.TYPE_SILENT); in createBugReport()
[all …]
/aosp12/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
H A DBugStorageUtils.java96 static MetaBugReport createBugReport( in createBugReport()
101 @MetaBugReport.BugReportType int type) { in createBugReport()
139 static InputStream openFileToRead(Context context, MetaBugReport bug) in openFileToRead()
224 static List<MetaBugReport> getUnexpiredBugReportsWithZipFile( in getUnexpiredBugReportsWithZipFile()
248 List<MetaBugReport> bugs = BugStorageUtils.getBugreports( in findBugReport()
256 private static List<MetaBugReport> getBugreports( in getBugreports()
258 ArrayList<MetaBugReport> bugReports = new ArrayList<>(); in getBugreports()
279 MetaBugReport meta = MetaBugReport.builder() in getBugreports()
374 static MetaBugReport setBugReportStatus( in setBugReportStatus()
390 static MetaBugReport setBugReportStatus( in setBugReportStatus()
[all …]
H A DMetaBugReport.java33 abstract class MetaBugReport implements Parcelable { class
152 public static final Parcelable.Creator<MetaBugReport> CREATOR =
153 new Parcelable.Creator<MetaBugReport>() {
154 public MetaBugReport createFromParcel(Parcel in) {
166 return MetaBugReport.builder()
181 public MetaBugReport[] newArray(int size) {
182 return new MetaBugReport[size];
222 public abstract MetaBugReport build(); in build()
H A DBugReportInfoActivity.java74 private MetaBugReport mLastSelectedBugReport;
138 int buttonType, MetaBugReport bugReport, BugInfoAdapter.BugInfoViewHolder holder) { in onBugReportItemClicked()
175 MetaBugReport updatedBugReport = BugStorageUtils.setBugReportStatus(this, in onActivityResult()
222 private final MetaBugReport mBugReport;
231 MetaBugReport bugReport, BugInfoAdapter.BugInfoViewHolder holder, in AsyncMoveFilesTask()
243 protected MetaBugReport doInBackground(Void... params) { in doInBackground()
255 private MetaBugReport copyFilesToUsb() throws IOException { in copyFilesToUsb()
332 protected void onPostExecute(MetaBugReport updatedBugReport) { in onPostExecute()
341 AsyncTask<Void, Void, List<MetaBugReport>> {
349 protected List<MetaBugReport> doInBackground(Void... voids) { in doInBackground()
[all …]
H A DBugReportActivity.java115 private MetaBugReport mMetaBugReport;
144 static Intent buildAddAudioIntent(Context context, MetaBugReport bug) { in buildAddAudioIntent()
343 MetaBugReport bugReport = createBugReport(this, MetaBugReport.TYPE_SILENT); in onActivityStartedWithBugReportServiceBound()
381 MetaBugReport bug = createBugReport(this, MetaBugReport.TYPE_INTERACTIVE); in createNewBugReportWithAudioMessage()
390 boolean isNewBugReport, MetaBugReport bug, File audioFile) { in startAudioMessageRecording()
463 private void startBugReportCollection(MetaBugReport bug) { in startBugReportCollection()
618 static MetaBugReport createBugReport(Context context, int type) { in createBugReport()
619 String timestamp = MetaBugReport.toBugReportTimestamp(new Date()); in createBugReport()
678 private final MetaBugReport mOriginalBug;
691 MetaBugReport.toBugReportTimestamp(new Date()), mOriginalBug); in doInBackground()
[all …]
H A DBugInfoAdapter.java55 void onItemClicked(int buttonType, MetaBugReport metaBugReport, BugInfoViewHolder holder); in onItemClicked()
95 private List<MetaBugReport> mDataset;
117 MetaBugReport bugreport = mDataset.get(position); in onBindViewHolder()
175 void setDataset(List<MetaBugReport> bugReports) { in setDataset()
181 void updateBugReportInDataSet(MetaBugReport bugReport, int position) { in updateBugReportInDataSet()
H A DBugStorageProvider.java163 + COLUMN_TYPE + " INTEGER DEFAULT " + MetaBugReport.TYPE_INTERACTIVE + ","
183 + COLUMN_TYPE + " INTEGER DEFAULT " + MetaBugReport.TYPE_INTERACTIVE); in onUpgrade()
420 Function<MetaBugReport, String> fileNameExtractor; in openFile()
423 fileNameExtractor = MetaBugReport::getBugReportFileName; in openFile()
426 fileNameExtractor = MetaBugReport::getAudioFileName; in openFile()
436 MetaBugReport bugReport = getBugReportFromUri(uri); in openFile()
444 private MetaBugReport getBugReportFromUri(@NonNull Uri uri) { in getBugReportFromUri()
464 private boolean deleteFilesFor(MetaBugReport bugReport) { in deleteFilesFor()
H A DSimpleUploaderAsyncTask.java84 Storage storage, MetaBugReport bugReport, String fileName, InputStream data) in uploadSimple()
113 private void upload(MetaBugReport bugReport) throws IOException { in upload()
157 private File zipBugReportFiles(MetaBugReport bugReport) throws IOException { in zipBugReportFiles()
183 List<MetaBugReport> bugReports = BugStorageUtils.getUploadPendingBugReports(mContext); in doInBackground()
185 for (MetaBugReport bugReport : bugReports) { in doInBackground()
H A DFileUtils.java79 static String getZipFileName(MetaBugReport bug) { in getZipFileName()
92 static String getAudioFileName(String timestamp, MetaBugReport bug) { in getAudioFileName()
97 private static String extractLookupCode(MetaBugReport bug) { in extractLookupCode()
H A DExpireOldBugReportsJob.java72 List<MetaBugReport> bugReportsWithZeroTtlPoints = in run()
75 for (MetaBugReport bug : bugReportsWithZeroTtlPoints) { in run()
H A DTtlPointsDecremental.java52 List<MetaBugReport> unexpiredBugReports = in run()
56 for (MetaBugReport bugReport : unexpiredBugReports) { in run()
H A DBugReportService.java142 private MetaBugReport mMetaBugReport;
244 mMetaBugReport = BugReportActivity.createBugReport(this, MetaBugReport.TYPE_SILENT); in onStartCommand()
492 static void showBugReportFinishedNotification(Context context, MetaBugReport bug) { in showBugReportFinishedNotification()
537 if (mMetaBugReport.getType() == MetaBugReport.TYPE_SILENT) { in zipDirectoryAndUpdateStatus()
/aosp12/packages/services/Car/tests/BugReportApp/
H A DREADME.md12 5. Otherwise it creates MetaBugReport record in a local db and starts recording audio message.
18 and when finished it updates MetaBugReport using BugStorageProvider.
59 - generates `MetaBugReport.Type.INTERACTIVE` bug report, shows audio message dialog before
62 - generates `MetaBugReport.Type.SILENT` bug report, without audio message. It shows audio dialog
/aosp12/packages/services/Car/tests/BugReportApp/utils/
H A Dbugreport_app_tester.py85 MetaBugReport = namedtuple( variable
285 MetaBugReport(