Merge "Add more debug logs for screenshots" into udc-dev

This commit is contained in:
Miranda Kephart
2023-03-29 20:40:15 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 6 deletions

View File

@@ -190,9 +190,7 @@ class SaveImageInBackgroundTask extends AsyncTask<Void, Void, Void> {
} catch (Exception e) {
// IOException/UnsupportedOperationException may be thrown if external storage is
// not mounted
if (DEBUG_STORAGE) {
Log.d(TAG, "Failed to store screenshot", e);
}
Log.d(TAG, "Failed to store screenshot", e);
mParams.clearImage();
mImageData.reset();
mQuickShareData.reset();

View File

@@ -1119,9 +1119,7 @@ public class ScreenshotController {
/** Reset screenshot view and then call onCompleteRunnable */
private void finishDismiss() {
if (DEBUG_DISMISS) {
Log.d(TAG, "finishDismiss");
}
Log.d(TAG, "finishDismiss");
if (mLastScrollCaptureRequest != null) {
mLastScrollCaptureRequest.cancel(true);
mLastScrollCaptureRequest = null;

View File

@@ -253,6 +253,7 @@ public class TakeScreenshotService extends Service {
Consumer<Uri> uriConsumer, RequestCallback callback) {
mUiEventLogger.log(ScreenshotEvent.getScreenshotSource(screenshot.getSource()), 0,
screenshot.getPackageNameString());
Log.d(TAG, "Screenshot request: " + screenshot);
mScreenshot.handleScreenshot(screenshot, uriConsumer, callback);
}