Consistent treatment of boolean-ish values.

The public API clearly states that our various IS_FOO columns are
of type Cursor.FIELD_TYPE_INTEGER, but developers often rely on how
SQLite automatically converts booleans and literal strings into
integer "1" and "0" values on disk.

This change adjusts all Java logic to parse all variants of these
boolean values to match what SQLite does internally.

Bug: 154054403
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I1f3ec650c957a6c5207c5803fb667ea006666cd0
7 files changed