Skip to content
Commit 47ad186a authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Calculate MediaColumns.HASH when demanded.

We'll come back in a future change to wire up automatic hashing in
onIdleMaintenance(), but we'll hold off on that until we've
implemented our optimized in-kernel hashing.

For now, generate the has when demanded via canonicalize(), and
clear any hash whenever the file is edited.  Tests to verify sanity.

Bug: 120782363
Test: atest android.provider.cts.MediaStoreTest
Change-Id: I287f7a204655b37e4efd519579b12084ee4fb8e3
parent 52fe5dd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment