/packages/services/Car/tests/BugReportApp/tests/src/com/android/car/bugreport/ |
D | BugStorageUtilsTest.java | 18 import static com.android.car.bugreport.MetaBugReport.TYPE_INTERACTIVE; 19 import static com.android.car.bugreport.MetaBugReport.TYPE_SILENT; 56 private static final String TIMESTAMP_TODAY = MetaBugReport.toBugReportTimestamp(new Date()); 72 MetaBugReport bug = createBugReport(TIMESTAMP_TODAY, in test_createBugReport_createsAndReturnsMetaBugReport() 80 MetaBugReport bug = createBugReport(TIMESTAMP_TODAY, in test_expireBugReport_marksBugReportDeletedAndDeletesZip() 94 MetaBugReport updatedBug = BugStorageUtils.findBugReport(mContext, bug.getId()).get(); 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() [all …]
|
D | TtlPointsDecrementalTest.java | 47 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 …]
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | BugStorageUtils.java | 96 static MetaBugReport createBugReport( in createBugReport() 101 @MetaBugReport.BugReportType int type) { in createBugReport() 117 @NonNull Context context, @NonNull MetaBugReport metaBugReport) in openBugReportFileToWrite() 126 @NonNull Context context, @NonNull MetaBugReport metaBugReport) in openAudioMessageFileToWrite() 139 static InputStream openFileToRead(Context context, MetaBugReport bug) in openFileToRead() 147 static InputStream openBugReportFileToRead(Context context, MetaBugReport bug) in openBugReportFileToRead() 155 static InputStream openAudioFileToRead(Context context, MetaBugReport bug) in openAudioFileToRead() 199 public static List<MetaBugReport> getUploadPendingBugReports(@NonNull Context context) { in getUploadPendingBugReports() 211 public static List<MetaBugReport> getAllBugReportsDescending(@NonNull Context context) { in getAllBugReportsDescending() 224 static List<MetaBugReport> getUnexpiredBugReportsWithZipFile( in getUnexpiredBugReportsWithZipFile() [all …]
|
D | MetaBugReport.java | 33 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()
|
D | BugReportInfoActivity.java | 74 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 …]
|
D | BugReportActivity.java | 115 private MetaBugReport mMetaBugReport; 144 static Intent buildAddAudioIntent(Context context, MetaBugReport bug) { in buildAddAudioIntent() 343 MetaBugReport bugReport = createBugReport(this, MetaBugReport.TYPE_SILENT); in onActivityStartedWithBugReportServiceBound() 363 MetaBugReport bug = BugStorageUtils.findBugReport(this, bugreportId).orElseThrow( in addAudioToExistingBugReport() 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; [all …]
|
D | BugStorageProvider.java | 163 + 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()
|
D | BugInfoAdapter.java | 55 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()
|
D | SimpleUploaderAsyncTask.java | 84 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()
|
D | FileUtils.java | 79 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()
|
D | ExpireOldBugReportsJob.java | 72 List<MetaBugReport> bugReportsWithZeroTtlPoints = in run() 75 for (MetaBugReport bug : bugReportsWithZeroTtlPoints) { in run()
|
D | TtlPointsDecremental.java | 52 List<MetaBugReport> unexpiredBugReports = in run() 56 for (MetaBugReport bugReport : unexpiredBugReports) { in run()
|
D | BugReportService.java | 142 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()
|
/packages/services/Car/tests/BugReportApp/ |
D | README.md | 12 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/ |
D | bugreport_app_tester.py | 85 MetaBugReport = namedtuple( variable 285 MetaBugReport(
|