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

Commit b0a399b8 authored by Thomas Stuart's avatar Thomas Stuart
Browse files

promote existing DO_NOT_LOG_CALL extra to @SystemApi

As a part of the mainline project, the DO_NOT_LOG_CALL extra
needs to be promoted to an @SystemApi since external processes
depend on it (wear).

This extra when injected into a call allows the call to skip the
call log. All backend logic has already been implemented. A new
CTS test has been added to assert the behavior.

Flag: com.android.server.telecom.flags.promote_extra_do_not_log_call_to_system_api
Bug: 427477225
Test: atest android.cts.telecom.IncomingCallTest#testDoNotLogCall
Change-Id: I26d87a7bf857d0a834ff2a504427d66925811349
parent 709df92c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15183,6 +15183,7 @@ package android.telecom {
    field @Deprecated public static final String EXTRA_CLEAR_MISSED_CALLS_INTENT = "android.telecom.extra.CLEAR_MISSED_CALLS_INTENT";
    field public static final String EXTRA_CONNECTION_SERVICE = "android.telecom.extra.CONNECTION_SERVICE";
    field public static final String EXTRA_CURRENT_TTY_MODE = "android.telecom.extra.CURRENT_TTY_MODE";
    field @FlaggedApi("com.android.server.telecom.flags.promote_extra_do_not_log_call_to_system_api") @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public static final String EXTRA_DO_NOT_LOG_CALL = "android.telecom.extra.DO_NOT_LOG_CALL";
    field public static final String EXTRA_IS_USER_INTENT_EMERGENCY_CALL = "android.telecom.extra.IS_USER_INTENT_EMERGENCY_CALL";
    field public static final String EXTRA_TTY_PREFERRED_MODE = "android.telecom.extra.TTY_PREFERRED_MODE";
    field public static final String EXTRA_UNKNOWN_CALL_HANDLE = "android.telecom.extra.UNKNOWN_CALL_HANDLE";
+7 −1
Original line number Diff line number Diff line
@@ -244,10 +244,16 @@ public class TelecomManager {
            "android.telecom.extra.DEFAULT_CALL_SCREENING_APP_COMPONENT_NAME";

    /**
     * Optional extra to indicate a call should not be added to the call log.
     * When placing a new outgoing call via {@link #placeCall(Uri, Bundle)} or adding a new
     * incoming call via {@link #addNewIncomingCall(PhoneAccountHandle, Bundle)}, this extra can be
     * included in the extras {@link android.os.Bundle} and set to {@code true} to prevent the call
     * from being logged.
     *
     * @hide
     */
    @SystemApi
    @FlaggedApi(Flags.FLAG_PROMOTE_EXTRA_DO_NOT_LOG_CALL_TO_SYSTEM_API)
    @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
    public static final String EXTRA_DO_NOT_LOG_CALL =
            "android.telecom.extra.DO_NOT_LOG_CALL";