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

Commit 6c082fad authored by Pranav Madapurmath's avatar Pranav Madapurmath
Browse files

Filter VOIP call logs

Adds ability to filter the voip call entries from the call log depending
on a provided key. If the key is enabled (false by default), then
querying the call log will include those entries.

Bug: 435498803
Flag: com.android.server.telecom.flags.filter_voip_call_logs
Test: atest CallLogProviderTest
Change-Id: Ibff0e2fdd1a41fc8959fdbe825307bc61838894e
parent fa344b2b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -37167,6 +37167,7 @@ package android.provider {
    field public static final String CONTENT_TYPE = "vnd.android.cursor.dir/calls";
    field public static final android.net.Uri CONTENT_URI;
    field public static final android.net.Uri CONTENT_URI_WITH_VOICEMAIL;
    field @FlaggedApi("com.android.server.telecom.flags.filter_voip_call_logs") @NonNull public static final android.net.Uri CONTENT_URI_WITH_VOIP_CALLS;
    field @FlaggedApi("com.android.server.telecom.flags.integrated_call_logs") @NonNull public static final android.net.Uri CONTENT_VOIP_URI;
    field public static final String COUNTRY_ISO = "countryiso";
    field public static final String DATA_USAGE = "data_usage";
@@ -37183,6 +37184,7 @@ package android.provider {
    field public static final int FEATURES_VOLTE = 64; // 0x40
    field public static final int FEATURES_WIFI = 8; // 0x8
    field public static final String GEOCODED_LOCATION = "geocoded_location";
    field @FlaggedApi("com.android.server.telecom.flags.filter_voip_call_logs") @NonNull public static final String INCLUDE_VOIP_CALLS_PARAM_KEY = "include_voip_calls";
    field public static final int INCOMING_TYPE = 1; // 0x1
    field @FlaggedApi("com.android.server.telecom.flags.business_call_composer") public static final String IS_BUSINESS_CALL = "is_business_call";
    field public static final String IS_READ = "is_read";
+19 −0
Original line number Diff line number Diff line
@@ -451,6 +451,16 @@ public class CallLog {
         * @hide
         */
        public static final String ALLOW_VOICEMAILS_PARAM_KEY = "allow_voicemails";
        /**
         * An optional URI parameter which instructs the provider to allow the operation to be
         * applied to VOIP call records as well.
         * <p>
         * TYPE: Boolean
         *
         */
        @FlaggedApi(Flags.FLAG_FILTER_VOIP_CALL_LOGS)
        @NonNull
        public static final String INCLUDE_VOIP_CALLS_PARAM_KEY = "include_voip_calls";
        /**
         * An optional extra used with {@link #CONTENT_TYPE Calls.CONTENT_TYPE} and
         * {@link Intent#ACTION_VIEW} to specify that the presented list of calls should be filtered
@@ -480,6 +490,15 @@ public class CallLog {
        public static final Uri CONTENT_URI_WITH_VOICEMAIL = CONTENT_URI.buildUpon()
                .appendQueryParameter(ALLOW_VOICEMAILS_PARAM_KEY, "true")
                .build();
        /**
         * Content uri used to access call log entries, including VOIP call records. You must have
         * the READ_CALL_LOG and WRITE_CALL_LOG permissions to read and write to the call log.
         */
        @FlaggedApi(Flags.FLAG_FILTER_VOIP_CALL_LOGS)
        @NonNull
        public static final Uri CONTENT_URI_WITH_VOIP_CALLS = CONTENT_URI.buildUpon()
                .appendQueryParameter(INCLUDE_VOIP_CALLS_PARAM_KEY, "true")
                .build();
        /**
         * The default sort order for this table
         */