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

Commit 9ef78f00 authored by Flavio Lerda's avatar Flavio Lerda
Browse files

Constants for accessing call log with voicemails.

Move the constants from the contacts provider implementation to the
framework.

These constants will remain hidden as currently only the system is
allowed access to the voicemail, protected by a signature permission.

Change-Id: I7cdb0fe217603b3d755238067a877f4209f4c26c
parent b0b713f2
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -56,6 +56,29 @@ public class CallLog {
        public static final Uri CONTENT_FILTER_URI =
                Uri.parse("content://call_log/calls/filter");

        /**
         * An optional URI parameter which instructs the provider to allow the operation to be
         * applied to voicemail records as well.
         * <p>
         * TYPE: Boolean
         * <p>
         * Using this parameter with a value of {@code true} will result in a security error if the
         * calling package does not have appropriate permissions to access voicemails.
         *
         * @hide
         */
        public static final String ALLOW_VOICEMAILS_PARAM_KEY = "allow_voicemails";

        /**
         * Content uri with {@link #ALLOW_VOICEMAILS_PARAM_KEY} set. This can directly be used to
         * access call log entries that includes voicemail records.
         *
         * @hide
         */
        public static final Uri CONTENT_URI_WITH_VOICEMAIL = CONTENT_URI.buildUpon()
                .appendQueryParameter(ALLOW_VOICEMAILS_PARAM_KEY, "true")
                .build();

        /**
         * The default sort order for this table
         */