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

Commit 2b17f23d authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Self-Managed Incoming Call Disambiguation UX.

- Handle auto-disconnect of foreground call when answering a self-managed
call.
- Enforce restriction that the PhoneAccount associated with a self-managed
CS must have a label which is the app's name.
- Ensure self-managed phone accounts can't be registered with
call provider, connection manager, or sim sub capabilities.
- Add "incoming call" UX which is shown when a new incoming call from a
self-managed CS comes in and there is an existing call for another CS.

Test: Unit, manual
Bug: 34159263
Change-Id: I371be9baa6f56c77aa83349977c0131f0e319047
parent 3e9c7d20
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@
    <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
    <uses-permission android:name="android.permission.READ_BLOCKED_NUMBERS" />
    <uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS" />
    <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />

    <permission
            android:name="android.permission.BROADCAST_CALLLOG_INFO"
@@ -209,6 +210,8 @@
                <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
                <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
                <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
                <action android:name="com.android.server.telecom.ACTION_ANSWER_FROM_NOTIFICATION" />
                <action android:name="com.android.server.telecom.ACTION_REJECT_FROM_NOTIFICATION" />
            </intent-filter>
        </receiver>

+47 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2017 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->

<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
  android:oneshot="false">
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_01"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_02"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_03"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_04"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_05"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_06"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_07"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_08"
    android:duration="200"/>
  <item
    android:drawable="@drawable/ic_ongoing_phone_24px_09"
    android:duration="200"/>
</animation-list>
 No newline at end of file
+246 B
Loading image diff...
+572 B
Loading image diff...
+375 B
Loading image diff...
Loading