Loading api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -7339,7 +7339,7 @@ package android.telecom { } } public static class CallScreeningService.CallResponse.Builder { public static class CallScreeningService.CallResponse.Builder { method public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallFurther(boolean); method @NonNull public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallViaAudioProcessing(boolean); } } public abstract class Conference extends android.telecom.Conferenceable { public abstract class Conference extends android.telecom.Conferenceable { Loading api/test-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2801,7 +2801,7 @@ package android.telecom { } } public static class CallScreeningService.CallResponse.Builder { public static class CallScreeningService.CallResponse.Builder { method public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallFurther(boolean); method @NonNull public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallViaAudioProcessing(boolean); } } public abstract class Conference extends android.telecom.Conferenceable { public abstract class Conference extends android.telecom.Conferenceable { Loading telecomm/java/android/telecom/Call.java +0 −2 Original line number Original line Diff line number Diff line Loading @@ -1512,7 +1512,6 @@ public final class Call { */ */ @SystemApi @SystemApi @TestApi @TestApi //@RequiresPermission(android.Manifest.permission.BACKGROUND_CALL_AUDIO) public void enterBackgroundAudioProcessing() { public void enterBackgroundAudioProcessing() { if (mState != STATE_ACTIVE && mState != STATE_RINGING) { if (mState != STATE_ACTIVE && mState != STATE_RINGING) { throw new IllegalStateException("Call must be active or ringing"); throw new IllegalStateException("Call must be active or ringing"); Loading @@ -1534,7 +1533,6 @@ public final class Call { */ */ @SystemApi @SystemApi @TestApi @TestApi //@RequiresPermission(android.Manifest.permission.BACKGROUND_CALL_AUDIO) public void exitBackgroundAudioProcessing(boolean shouldRing) { public void exitBackgroundAudioProcessing(boolean shouldRing) { if (mState != STATE_AUDIO_PROCESSING) { if (mState != STATE_AUDIO_PROCESSING) { throw new IllegalStateException("Call must in the audio processing state"); throw new IllegalStateException("Call must in the audio processing state"); Loading telecomm/java/android/telecom/CallScreeningService.java +13 −12 Original line number Original line Diff line number Diff line Loading @@ -144,7 +144,7 @@ public abstract class CallScreeningService extends Service { private final boolean mShouldSilenceCall; private final boolean mShouldSilenceCall; private final boolean mShouldSkipCallLog; private final boolean mShouldSkipCallLog; private final boolean mShouldSkipNotification; private final boolean mShouldSkipNotification; private final boolean mShouldScreenCallFurther; private final boolean mShouldScreenCallViaAudioProcessing; private CallResponse( private CallResponse( boolean shouldDisallowCall, boolean shouldDisallowCall, Loading @@ -152,13 +152,13 @@ public abstract class CallScreeningService extends Service { boolean shouldSilenceCall, boolean shouldSilenceCall, boolean shouldSkipCallLog, boolean shouldSkipCallLog, boolean shouldSkipNotification, boolean shouldSkipNotification, boolean shouldScreenCallFurther) { boolean shouldScreenCallViaAudioProcessing) { if (!shouldDisallowCall if (!shouldDisallowCall && (shouldRejectCall || shouldSkipCallLog || shouldSkipNotification)) { && (shouldRejectCall || shouldSkipCallLog || shouldSkipNotification)) { throw new IllegalStateException("Invalid response state for allowed call."); throw new IllegalStateException("Invalid response state for allowed call."); } } if (shouldDisallowCall && shouldScreenCallFurther) { if (shouldDisallowCall && shouldScreenCallViaAudioProcessing) { throw new IllegalStateException("Invalid response state for allowed call."); throw new IllegalStateException("Invalid response state for allowed call."); } } Loading @@ -167,7 +167,7 @@ public abstract class CallScreeningService extends Service { mShouldSkipCallLog = shouldSkipCallLog; mShouldSkipCallLog = shouldSkipCallLog; mShouldSkipNotification = shouldSkipNotification; mShouldSkipNotification = shouldSkipNotification; mShouldSilenceCall = shouldSilenceCall; mShouldSilenceCall = shouldSilenceCall; mShouldScreenCallFurther = shouldScreenCallFurther; mShouldScreenCallViaAudioProcessing = shouldScreenCallViaAudioProcessing; } } /* /* Loading Loading @@ -211,8 +211,8 @@ public abstract class CallScreeningService extends Service { * for further screening of the call. * for further screening of the call. * @hide * @hide */ */ public boolean getShouldScreenCallFurther() { public boolean getShouldScreenCallViaAudioProcessing() { return mShouldScreenCallFurther; return mShouldScreenCallViaAudioProcessing; } } public static class Builder { public static class Builder { Loading @@ -221,7 +221,7 @@ public abstract class CallScreeningService extends Service { private boolean mShouldSilenceCall; private boolean mShouldSilenceCall; private boolean mShouldSkipCallLog; private boolean mShouldSkipCallLog; private boolean mShouldSkipNotification; private boolean mShouldSkipNotification; private boolean mShouldScreenCallFurther; private boolean mShouldScreenCallViaAudioProcessing; /** /** * Sets whether the incoming call should be blocked. * Sets whether the incoming call should be blocked. Loading Loading @@ -285,13 +285,14 @@ public abstract class CallScreeningService extends Service { * This request will only be honored if the {@link CallScreeningService} shares the same * This request will only be honored if the {@link CallScreeningService} shares the same * uid as the default dialer app. Otherwise, the call will go through as usual. * uid as the default dialer app. Otherwise, the call will go through as usual. * * * @param shouldScreenCallFurther Whether to request further call screening. * @param shouldScreenCallViaAudioProcessing Whether to request further call screening. * @hide * @hide */ */ @SystemApi @SystemApi @TestApi @TestApi public Builder setShouldScreenCallFurther(boolean shouldScreenCallFurther) { public @NonNull Builder setShouldScreenCallViaAudioProcessing( mShouldScreenCallFurther = shouldScreenCallFurther; boolean shouldScreenCallViaAudioProcessing) { mShouldScreenCallViaAudioProcessing = shouldScreenCallViaAudioProcessing; return this; return this; } } Loading @@ -302,7 +303,7 @@ public abstract class CallScreeningService extends Service { mShouldSilenceCall, mShouldSilenceCall, mShouldSkipCallLog, mShouldSkipCallLog, mShouldSkipNotification, mShouldSkipNotification, mShouldScreenCallFurther); mShouldScreenCallViaAudioProcessing); } } } } } } Loading Loading @@ -380,7 +381,7 @@ public abstract class CallScreeningService extends Service { new ComponentName(getPackageName(), getClass().getName())); new ComponentName(getPackageName(), getClass().getName())); } else if (response.getSilenceCall()) { } else if (response.getSilenceCall()) { mCallScreeningAdapter.silenceCall(callDetails.getTelecomCallId()); mCallScreeningAdapter.silenceCall(callDetails.getTelecomCallId()); } else if (response.getShouldScreenCallFurther()) { } else if (response.getShouldScreenCallViaAudioProcessing()) { mCallScreeningAdapter.screenCallFurther(callDetails.getTelecomCallId()); mCallScreeningAdapter.screenCallFurther(callDetails.getTelecomCallId()); } else { } else { mCallScreeningAdapter.allowCall(callDetails.getTelecomCallId()); mCallScreeningAdapter.allowCall(callDetails.getTelecomCallId()); Loading Loading
api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -7339,7 +7339,7 @@ package android.telecom { } } public static class CallScreeningService.CallResponse.Builder { public static class CallScreeningService.CallResponse.Builder { method public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallFurther(boolean); method @NonNull public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallViaAudioProcessing(boolean); } } public abstract class Conference extends android.telecom.Conferenceable { public abstract class Conference extends android.telecom.Conferenceable { Loading
api/test-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2801,7 +2801,7 @@ package android.telecom { } } public static class CallScreeningService.CallResponse.Builder { public static class CallScreeningService.CallResponse.Builder { method public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallFurther(boolean); method @NonNull public android.telecom.CallScreeningService.CallResponse.Builder setShouldScreenCallViaAudioProcessing(boolean); } } public abstract class Conference extends android.telecom.Conferenceable { public abstract class Conference extends android.telecom.Conferenceable { Loading
telecomm/java/android/telecom/Call.java +0 −2 Original line number Original line Diff line number Diff line Loading @@ -1512,7 +1512,6 @@ public final class Call { */ */ @SystemApi @SystemApi @TestApi @TestApi //@RequiresPermission(android.Manifest.permission.BACKGROUND_CALL_AUDIO) public void enterBackgroundAudioProcessing() { public void enterBackgroundAudioProcessing() { if (mState != STATE_ACTIVE && mState != STATE_RINGING) { if (mState != STATE_ACTIVE && mState != STATE_RINGING) { throw new IllegalStateException("Call must be active or ringing"); throw new IllegalStateException("Call must be active or ringing"); Loading @@ -1534,7 +1533,6 @@ public final class Call { */ */ @SystemApi @SystemApi @TestApi @TestApi //@RequiresPermission(android.Manifest.permission.BACKGROUND_CALL_AUDIO) public void exitBackgroundAudioProcessing(boolean shouldRing) { public void exitBackgroundAudioProcessing(boolean shouldRing) { if (mState != STATE_AUDIO_PROCESSING) { if (mState != STATE_AUDIO_PROCESSING) { throw new IllegalStateException("Call must in the audio processing state"); throw new IllegalStateException("Call must in the audio processing state"); Loading
telecomm/java/android/telecom/CallScreeningService.java +13 −12 Original line number Original line Diff line number Diff line Loading @@ -144,7 +144,7 @@ public abstract class CallScreeningService extends Service { private final boolean mShouldSilenceCall; private final boolean mShouldSilenceCall; private final boolean mShouldSkipCallLog; private final boolean mShouldSkipCallLog; private final boolean mShouldSkipNotification; private final boolean mShouldSkipNotification; private final boolean mShouldScreenCallFurther; private final boolean mShouldScreenCallViaAudioProcessing; private CallResponse( private CallResponse( boolean shouldDisallowCall, boolean shouldDisallowCall, Loading @@ -152,13 +152,13 @@ public abstract class CallScreeningService extends Service { boolean shouldSilenceCall, boolean shouldSilenceCall, boolean shouldSkipCallLog, boolean shouldSkipCallLog, boolean shouldSkipNotification, boolean shouldSkipNotification, boolean shouldScreenCallFurther) { boolean shouldScreenCallViaAudioProcessing) { if (!shouldDisallowCall if (!shouldDisallowCall && (shouldRejectCall || shouldSkipCallLog || shouldSkipNotification)) { && (shouldRejectCall || shouldSkipCallLog || shouldSkipNotification)) { throw new IllegalStateException("Invalid response state for allowed call."); throw new IllegalStateException("Invalid response state for allowed call."); } } if (shouldDisallowCall && shouldScreenCallFurther) { if (shouldDisallowCall && shouldScreenCallViaAudioProcessing) { throw new IllegalStateException("Invalid response state for allowed call."); throw new IllegalStateException("Invalid response state for allowed call."); } } Loading @@ -167,7 +167,7 @@ public abstract class CallScreeningService extends Service { mShouldSkipCallLog = shouldSkipCallLog; mShouldSkipCallLog = shouldSkipCallLog; mShouldSkipNotification = shouldSkipNotification; mShouldSkipNotification = shouldSkipNotification; mShouldSilenceCall = shouldSilenceCall; mShouldSilenceCall = shouldSilenceCall; mShouldScreenCallFurther = shouldScreenCallFurther; mShouldScreenCallViaAudioProcessing = shouldScreenCallViaAudioProcessing; } } /* /* Loading Loading @@ -211,8 +211,8 @@ public abstract class CallScreeningService extends Service { * for further screening of the call. * for further screening of the call. * @hide * @hide */ */ public boolean getShouldScreenCallFurther() { public boolean getShouldScreenCallViaAudioProcessing() { return mShouldScreenCallFurther; return mShouldScreenCallViaAudioProcessing; } } public static class Builder { public static class Builder { Loading @@ -221,7 +221,7 @@ public abstract class CallScreeningService extends Service { private boolean mShouldSilenceCall; private boolean mShouldSilenceCall; private boolean mShouldSkipCallLog; private boolean mShouldSkipCallLog; private boolean mShouldSkipNotification; private boolean mShouldSkipNotification; private boolean mShouldScreenCallFurther; private boolean mShouldScreenCallViaAudioProcessing; /** /** * Sets whether the incoming call should be blocked. * Sets whether the incoming call should be blocked. Loading Loading @@ -285,13 +285,14 @@ public abstract class CallScreeningService extends Service { * This request will only be honored if the {@link CallScreeningService} shares the same * This request will only be honored if the {@link CallScreeningService} shares the same * uid as the default dialer app. Otherwise, the call will go through as usual. * uid as the default dialer app. Otherwise, the call will go through as usual. * * * @param shouldScreenCallFurther Whether to request further call screening. * @param shouldScreenCallViaAudioProcessing Whether to request further call screening. * @hide * @hide */ */ @SystemApi @SystemApi @TestApi @TestApi public Builder setShouldScreenCallFurther(boolean shouldScreenCallFurther) { public @NonNull Builder setShouldScreenCallViaAudioProcessing( mShouldScreenCallFurther = shouldScreenCallFurther; boolean shouldScreenCallViaAudioProcessing) { mShouldScreenCallViaAudioProcessing = shouldScreenCallViaAudioProcessing; return this; return this; } } Loading @@ -302,7 +303,7 @@ public abstract class CallScreeningService extends Service { mShouldSilenceCall, mShouldSilenceCall, mShouldSkipCallLog, mShouldSkipCallLog, mShouldSkipNotification, mShouldSkipNotification, mShouldScreenCallFurther); mShouldScreenCallViaAudioProcessing); } } } } } } Loading Loading @@ -380,7 +381,7 @@ public abstract class CallScreeningService extends Service { new ComponentName(getPackageName(), getClass().getName())); new ComponentName(getPackageName(), getClass().getName())); } else if (response.getSilenceCall()) { } else if (response.getSilenceCall()) { mCallScreeningAdapter.silenceCall(callDetails.getTelecomCallId()); mCallScreeningAdapter.silenceCall(callDetails.getTelecomCallId()); } else if (response.getShouldScreenCallFurther()) { } else if (response.getShouldScreenCallViaAudioProcessing()) { mCallScreeningAdapter.screenCallFurther(callDetails.getTelecomCallId()); mCallScreeningAdapter.screenCallFurther(callDetails.getTelecomCallId()); } else { } else { mCallScreeningAdapter.allowCall(callDetails.getTelecomCallId()); mCallScreeningAdapter.allowCall(callDetails.getTelecomCallId()); Loading