fix(edt): Exclude barcodes from inversion in force invert
Detects barcodes using a simple heuristic based on black and white pixel
count, then for any detected barcode image: the image is *not* inverted
and a white border is drawn around the image to provide the "quiet zone"
necessary for most barcode scanners to recognize the barcode.
Bug: 411725862
Test: atest RenderNodeDrawable
Test: Use in various apps that provide barcodes and QR codes, observe
barcodes are not inverted and other images are unaffected.
Test: Repeat using automated app crawl tests
Flag: android.view.accessibility.force_invert_color
Change-Id: I83e5302e18c69c01fd67f2ff0ca0f6e3abbdb75e
Loading
Please register or sign in to comment