Fix Redaction calculation.

The redaction code in the FUSE daemon made mistaken assumptions
about the ranges returned by ExifInterface, particularly that they
were inclusive of the end index. This sometimes leads to extra
bytes being redacted. The code has now been revamped to be clearer
and better tested..

Test: atest RedactionInfoTest
Test: atest ScopedStorageTest
Bug: 169389401

(cherry picked from commit 11700c0f4057ebc61f10d50384760e1156b91090)

Change-Id: I61f995c0e4f9178f0fa9e08d1ee69ac13bb5a196
Merged-In: I7ff2107cb62629b3ec7d9beba898d688a3aa1add
4 files changed