Home
last modified time | relevance | path

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

/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugStorageUtils.java81 static MetaBugReport createBugReport( in createBugReport()
86 @MetaBugReport.BugReportType int type) { in createBugReport()
102 @NonNull Context context, @NonNull MetaBugReport metaBugReport) in openBugReportFileToWrite()
111 @NonNull Context context, @NonNull MetaBugReport metaBugReport) in openAudioMessageFileToWrite()
124 static InputStream openFileToRead(Context context, MetaBugReport bug) in openFileToRead()
132 static InputStream openBugReportFileToRead(Context context, MetaBugReport bug) in openBugReportFileToRead()
140 static InputStream openAudioFileToRead(Context context, MetaBugReport bug) in openAudioFileToRead()
173 public static List<MetaBugReport> getUploadPendingBugReports(@NonNull Context context) { in getUploadPendingBugReports()
185 public static List<MetaBugReport> getAllBugReportsDescending(@NonNull Context context) { in getAllBugReportsDescending()
190 static Optional<MetaBugReport> findBugReport(Context context, int bugreportId) { in findBugReport()
[all …]
DMetaBugReport.java33 abstract class MetaBugReport implements Parcelable { class
145 public static final Parcelable.Creator<MetaBugReport> CREATOR =
146 new Parcelable.Creator<MetaBugReport>() {
147 public MetaBugReport createFromParcel(Parcel in) {
158 return MetaBugReport.builder()
172 public MetaBugReport[] newArray(int size) {
173 return new MetaBugReport[size];
210 public abstract MetaBugReport build(); in build()
DBugReportInfoActivity.java74 private MetaBugReport mLastSelectedBugReport;
138 int buttonType, MetaBugReport bugReport, BugInfoAdapter.BugInfoViewHolder holder) { in onBugReportItemClicked()
175 MetaBugReport updatedBugReport = BugStorageUtils.setBugReportStatus(this, in onActivityResult()
220 private static final class AsyncMoveFilesTask extends AsyncTask<Void, Void, MetaBugReport> {
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>> {
[all …]
DBugReportActivity.java115 private MetaBugReport mMetaBugReport;
144 static Intent buildAddAudioIntent(Context context, MetaBugReport bug) { in buildAddAudioIntent()
344 MetaBugReport bugReport = createBugReport(this, MetaBugReport.TYPE_SILENT); in onActivityStartedWithBugReportServiceBound()
364 MetaBugReport bug = BugStorageUtils.findBugReport(this, bugreportId).orElseThrow( in addAudioToExistingBugReport()
382 MetaBugReport bug = createBugReport(this, MetaBugReport.TYPE_INTERACTIVE); in createNewBugReportWithAudioMessage()
391 boolean isNewBugReport, MetaBugReport bug, File audioFile) { in startAudioMessageRecording()
464 private void startBugReportCollection(MetaBugReport bug) { in startBugReportCollection()
615 static MetaBugReport createBugReport(Context context, int type) { in createBugReport()
616 String timestamp = MetaBugReport.toBugReportTimestamp(new Date()); in createBugReport()
675 private final MetaBugReport mOriginalBug;
[all …]
DBugStorageProvider.java149 + COLUMN_TYPE + " INTEGER DEFAULT " + MetaBugReport.TYPE_INTERACTIVE + ","
168 + COLUMN_TYPE + " INTEGER DEFAULT " + MetaBugReport.TYPE_INTERACTIVE); in onUpgrade()
376 Function<MetaBugReport, String> fileNameExtractor; in openFile()
379 fileNameExtractor = MetaBugReport::getBugReportFileName; in openFile()
382 fileNameExtractor = MetaBugReport::getAudioFileName; in openFile()
392 MetaBugReport bugReport = getBugReportFromUri(uri); in openFile()
400 private MetaBugReport getBugReportFromUri(@NonNull Uri uri) { in getBugReportFromUri()
420 private boolean deleteFilesFor(MetaBugReport bugReport) { in deleteFilesFor()
DBugInfoAdapter.java52 void onItemClicked(int buttonType, MetaBugReport metaBugReport, BugInfoViewHolder holder); in onItemClicked()
88 private List<MetaBugReport> mDataset;
110 MetaBugReport bugreport = mDataset.get(position); in onBindViewHolder()
162 void setDataset(List<MetaBugReport> bugReports) { in setDataset()
168 void updateBugReportInDataSet(MetaBugReport bugReport, int position) { in updateBugReportInDataSet()
DSimpleUploaderAsyncTask.java82 Storage storage, MetaBugReport bugReport, String fileName, InputStream data) in uploadSimple()
111 private void upload(MetaBugReport bugReport) throws IOException { in upload()
155 private File zipBugReportFiles(MetaBugReport bugReport) throws IOException { in zipBugReportFiles()
181 List<MetaBugReport> bugReports = BugStorageUtils.getUploadPendingBugReports(mContext); in doInBackground()
183 for (MetaBugReport bugReport : bugReports) { in doInBackground()
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()
DBugReportService.java138 private MetaBugReport mMetaBugReport;
233 mMetaBugReport = BugReportActivity.createBugReport(this, MetaBugReport.TYPE_SILENT); in onStartCommand()
478 static void showBugReportFinishedNotification(Context context, MetaBugReport bug) { in showBugReportFinishedNotification()
522 if (mMetaBugReport.getType() == MetaBugReport.TYPE_SILENT) { in zipDirectoryAndUpdateStatus()
/packages/services/Car/tests/BugReportApp/tests/src/com/google/android/car/bugreport/
DBugStorageUtilsTest.java18 import static com.google.android.car.bugreport.MetaBugReport.TYPE_INTERACTIVE;
44 private static final String TIMESTAMP_TODAY = MetaBugReport.toBugReportTimestamp(new Date());
57 MetaBugReport bug = createBugReportWithStatus(TIMESTAMP_TODAY, in test_createBugReport_createsAndReturnsMetaBugReport()
65 MetaBugReport bug = createBugReportWithStatus(TIMESTAMP_TODAY, in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
85 MetaBugReport bug = createBugReportWithStatus(TIMESTAMP_TODAY, in test_completeDeleteBugReport_removesBugReportRecordFromDb()
99 private MetaBugReport createBugReportWithStatus( in createBugReportWithStatus()
102 MetaBugReport bugReport = BugStorageUtils.createBugReport( in createBugReportWithStatus()
/packages/services/Car/tests/BugReportApp/
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
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py85 MetaBugReport = namedtuple( variable
285 MetaBugReport(