Convert SQLite IIF function to CASE/WHEN

IIF was added in SQLite version 3.32.0 which is available on Android S
devices, however Android R devices only support SQLite version 3.28

As per the documentation:

The iif(X,Y,Z) function is logically equivalent to and generates the
same bytecode as the CASE expression "CASE WHEN X THEN Y ELSE Z END"

Test: atest PickerDbFacadeTest
Bug: 203524245
Change-Id: Ia0615a2b9c19edf021ef987943af4af9482a144e
1 file changed