Assigned
Status Update
Comments
ce...@amazon.corp-partner.google.com <ce...@amazon.corp-partner.google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
What steps are needed to reproduce this issue? Frequency of occurrence?
Which Android build are you using? (e.g. TQ3A.230705.001.A1)
Which device did you use to reproduce this issue?
Can you confirm if this issue is reproducible on a Pixel/Nexus device?
Are you reporting this as Developer or User?
Screen Record of the Issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Attach the file to this issue.
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:https://developer.android.com/studio/debug/bug-report#bugreportdevice
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to android-bugreport@google.com, then share the link here.
What steps are needed to reproduce this issue? Frequency of occurrence?
Which Android build are you using? (e.g. TQ3A.230705.001.A1)
Which device did you use to reproduce this issue?
Can you confirm if this issue is reproducible on a Pixel/Nexus device?
Are you reporting this as Developer or User?
Screen Record of the Issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Attach the file to this issue.
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to android-bugreport@google.com, then share the link here.
ra...@google.com <ra...@google.com> #3
What steps are needed to reproduce this issue? Frequency of occurrence?
1. Set "animator duration scale" to "animation off" in the developer settings
2. Open ANY app, then press minimize button on the bottom of the display to minimize the app. The moment the app is minimized, a huge icon shortly flickers on upper half of screen.
Frequency: everytime
Which Android build are you using? (e.g. TQ3A.230705.001.A1)
T3TD33.16-66-3
Which device did you use to reproduce this issue?
Moto G54 5G
Can you confirm if this issue is reproducible on a Pixel/Nexus device?
unable to test, do not own such device
Are you reporting this as Developer or User?
as a user
Screen Record of the Issue
do not know how to use adb shell, sorry.
Please capture screen record or video of the issue using following steps:
1. Set "animator duration scale" to "animation off" in the developer settings
2. Open ANY app, then press minimize button on the bottom of the display to minimize the app. The moment the app is minimized, a huge icon shortly flickers on upper half of screen.
Frequency: everytime
Which Android build are you using? (e.g. TQ3A.230705.001.A1)
T3TD33.16-66-3
Which device did you use to reproduce this issue?
Moto G54 5G
Can you confirm if this issue is reproducible on a Pixel/Nexus device?
unable to test, do not own such device
Are you reporting this as Developer or User?
as a user
Screen Record of the Issue
do not know how to use adb shell, sorry.
Please capture screen record or video of the issue using following steps:
ce...@amazon.corp-partner.google.com <ce...@amazon.corp-partner.google.com> #4
It could also be related to the 120 Hz display maybe, that only that makes the issue noticable? Just a theory.
ce...@amazon.corp-partner.google.com <ce...@amazon.corp-partner.google.com> #5
It looks like you are raising an issue as an Android user, rather than an Android Open Source Developer.
For user support, please see the
For Pixel phone support, please see the
Support for other devices is provided by the device manufacturers or by the carriers selling those devices,
ra...@google.com <ra...@google.com> #6
Does Obsolete in this case mean that this issue is fixed in Android 14? :D
ce...@amazon.corp-partner.google.com <ce...@amazon.corp-partner.google.com> #7
Well???
Description
In my case, the device size ratio is 4:3, while the selected preview size ratio is 16:9, then in the image crop, about half of the image will be discard, then lead to a QR code decode failure.
Android version: android 14
log snippet:
10-24 07:09:25.714 10379 11511 E QrCamera: getBestPreviewSize winRatio w = 479, h = 479, ratio = 1.0
10-24 07:09:25.714 10379 11511 E QrCamera: getBestPreviewSize supported w = 176, h = 144, ratio = 0.8181818181818182, bw = 1.0, rw = 0.18181818181818177
10-24 07:09:25.714 10379 11511 E QrCamera: getBestPreviewSize best choice w = 176, h = 144
10-24 07:09:25.714 10379 11511 E QrCamera: getBestPreviewSize supported w = 320, h = 240, ratio = 0.75, bw = 0.18181818181818177, rw = 0.25
10-24 07:09:25.714 10379 11511 E QrCamera: getBestPreviewSize best choice w = 320, h = 240
10-24 07:09:25.714 10379 11511 E QrCamera: getBestPreviewSize supported w = 640, h = 480, ratio = 0.75, bw = 0.25, rw = 0.25
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize best choice w = 640, h = 480
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize supported w = 960, h = 720, ratio = 0.75, bw = 0.25, rw = 0.25
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize best choice w = 960, h = 720
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize supported w = 1024, h = 576, ratio = 0.5625, bw = 0.25, rw = 0.4375
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize supported w = 1024, h = 768, ratio = 0.75, bw = 0.25, rw = 0.25
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize best choice w = 1024, h = 768
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize supported w = 1280, h = 720, ratio = 0.5625, bw = 0.25, rw = 0.4375
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize best choice w = 1280, h = 720
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize supported w = 1280, h = 960, ratio = 0.75, bw = 0.4375, rw = 0.25
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize best choice w = 1280, h = 960
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize supported w = 1600, h = 896, ratio = 0.56, bw = 0.25, rw = 0.43999999999999995
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize best choice w = 1600, h = 896
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize supported w = 1600, h = 1200, ratio = 0.75, bw = 0.43999999999999995, rw = 0.25
10-24 07:09:25.715 10379 11511 E QrCamera: getBestPreviewSize best choice w = 1600, h = 1200
10-24 07:09:25.716 10379 11511 E QrCamera: getBestPreviewSize supported w = 1920, h = 1080, ratio = 0.5625, bw = 0.25, rw = 0.4375
10-24 07:09:25.716 10379 11511 E QrCamera: getBestPreviewSize best choice w = 1920, h = 1080
10-24 07:09:25.716 10379 11511 E QrCamera: getBestPreviewSize supported w = 2560, h = 1440, ratio = 0.5625, bw = 0.4375, rw = 0.4375
10-24 07:09:25.716 10379 11511 E QrCamera: getBestPreviewSize best choice w = 2560, h = 1440
10-24 07:09:25.716 10379 11511 E QrCamera: preview size set w = 2560, h = 1440
debug code snippet:
private Size getBestPreviewSize(Camera.Parameters parameters) {
final double minRatioDiffPercent = 0.1;
final Size windowSize = mScannerCallback.getViewSize();
final double winRatio = getRatio(windowSize.getWidth(), windowSize.getHeight());
Log.e(TAG, "getBestPreviewSize winRatio w = " + windowSize.getWidth()
+ ", h = " + windowSize.getHeight() + ", ratio = " + winRatio);
double bestChoiceRatio = 0;
Size bestChoice = new Size(0, 0);
List<Camera.Size> supportedPreviewSizes = parameters.getSupportedPreviewSizes();
supportedPreviewSizes.sort(Comparator.comparingInt(Camera.Size::hashCode));
for (Camera.Size size : supportedPreviewSizes) {
double ratio = getRatio(size.width, size.height);
Log.e(TAG, "getBestPreviewSize supported w = " + size.width + ", h = " +
size.height + ", ratio = " + ratio +
", bw = " + (Math.abs(bestChoiceRatio - winRatio) / winRatio) +
", rw = " + (Math.abs(ratio - winRatio) / winRatio));
if (size.height * size.width > bestChoice.getWidth() * bestChoice.getHeight()
&& (Math.abs(bestChoiceRatio - winRatio) / winRatio > minRatioDiffPercent
|| Math.abs(ratio - winRatio) / winRatio <= minRatioDiffPercent)) {
bestChoice = new Size(size.width, size.height);
bestChoiceRatio = getRatio(size.width, size.height);
Log.e(TAG, "getBestPreviewSize best choice w = " + size.width
+ ", h = " + size.height);
}
}
return bestChoice;
}