Query arguments for grouping, other SQL clauses.
Over time we've expanded ContentResolver to accept a Bundle of arguments to influence how a query is performed, and this change expands that set to allow setting of raw GROUP BY, HAVING, and LIMIT clauses. Note that providers are not required to implement each of these arguments; they simply need to inform callers which of them were honored via EXTRA_HONORED_ARGS. This change also adds support to MediaProvider for handling these arguments. Bug: 143966486 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: Ia839b5a1917d7833f03e022cfef65652c0d7a01d
Loading
Please register or sign in to comment