Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6dc43a11 authored by Tyler Gunn's avatar Tyler Gunn Committed by Automerger Merge Worker
Browse files

Merge "Update call log provider docs to clarify how to use LIMIT." am:...

Merge "Update call log provider docs to clarify how to use LIMIT." am: 5563f3ad am: 647ac1a2 am: 40f4b45d am: 8a9f7519 am: 9624f684

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1852925

Change-Id: Idfa2b501339d2cf7354598df7e46d4294a2bb626
parents e1548a4e 9624f684
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -706,6 +706,25 @@ public class CallLog {

    /**
     * Contains the recent calls.
     * <p>
     * Note: If you want to query the call log and limit the results to a single value, you should
     * append the {@link #LIMIT_PARAM_KEY} parameter to the content URI.  For example:
     * <pre>
     * {@code
     * getContentResolver().query(
     *                 Calls.CONTENT_URI.buildUpon().appendQueryParameter(LIMIT_PARAM_KEY, "1")
     *                 .build(),
     *                 null, null, null, null);
     * }
     * </pre>
     * <p>
     * The call log provider enforces strict SQL grammar, so you CANNOT append "LIMIT" to the SQL
     * query as below:
     * <pre>
     * {@code
     * getContentResolver().query(Calls.CONTENT_URI, null, "LIMIT 1", null, null);
     * }
     * </pre>
     */
    public static class Calls implements BaseColumns {
        /**