Commit Graph

1365 Commits

Author SHA1 Message Date
Tyler Gunn
d490ce1483 Merge "Change data types on CallIdentification API." 2019-02-22 15:21:44 +00:00
Tyler Gunn
befee0b6dd Merge "Add support for Telecom logging to obfuscate string phone numbers." am: ae941732bb am: bfd852a7bb
am: 600db05fb1

Change-Id: If249e9ac6f579856de3e3790eb2844ca93c7e5d2
2019-02-19 21:16:32 -08:00
Tyler Gunn
bfd852a7bb Merge "Add support for Telecom logging to obfuscate string phone numbers."
am: ae941732bb

Change-Id: I3ca1652cfd23ad3f94991c21e5072d4082cc20c8
2019-02-19 20:57:50 -08:00
Tyler Gunn
ae941732bb Merge "Add support for Telecom logging to obfuscate string phone numbers." 2019-02-20 04:40:13 +00:00
Tyler Gunn
b483055581 Change data types on CallIdentification API.
Per API council feedback update the call identification name, details,
description and app name to use CharSequence.

Test: Update apis, run tests.
Bug: 123241094
Change-Id: I42df17506535c1dd598ffd61a44cb0d0440b8159
2019-02-15 16:04:13 -08:00
Shuo Qian
b75330904e Merge "Populate 'hasKnownUserIntentEmergency'"
am: 59d8275546

Change-Id: If7167ecae8c4de2cfb3a8032beb350fe1e327f32
2019-02-15 13:43:51 -08:00
Shi Lu
2e31d35a35 Merge "API Review: SIP INVITE fields on a MT call" 2019-02-15 21:01:25 +00:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
sqian
5e5d303982 Populate 'hasKnownUserIntentEmergency'
This is only used to specify when the dialed number is ambiguous,
identified as both emergency number and any other non-emergency number;
e.g. in some situation, 611 could be both an emergency number in a
country and a non-emergency number of a carrier's customer service hotline.

Test: Manual
Bug: 123999640
Change-Id: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
Merged-In: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
(cherry picked from commit 6d9e7457da)
2019-02-13 19:30:40 -08:00
Shuo Qian
ce1826b2ed Merge "Populate 'hasKnownUserIntentEmergency'" 2019-02-14 01:44:36 +00:00
Tyler Gunn
fd74d53f6f Add support for Telecom logging to obfuscate string phone numbers.
Test: Manual
Bug: 117472746
Change-Id: I48e29fd9a6ab1d41fdefb55393c7c326ec72a87f
2019-02-13 15:07:59 -08:00
Shi Lu
528eb5b06d API Review: SIP INVITE fields on a MT call
Bug: 123927153
Change-Id: I163aaa2b0cc2cd9dd36d1c63cd54bfca43a0d932
2019-02-13 22:12:20 +00:00
sqian
6d9e7457da Populate 'hasKnownUserIntentEmergency'
This is only used to specify when the dialed number is ambiguous,
identified as both emergency number and any other non-emergency number;
e.g. in some situation, 611 could be both an emergency number in a
country and a non-emergency number of a carrier's customer service hotline.

Test: Manual
Bug: 123999640
Change-Id: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
2019-02-13 12:19:27 -08:00
TreeHugger Robot
3ac202db6f Merge "Revert "Make getInstalledDialerApplications() require an InCallService."" 2019-02-11 23:17:51 +00:00
Hai Zhang
7c8d2e79a7 Revert "Make getInstalledDialerApplications() require an InCallService."
This reverts commit b73ec01a17.

Reason for revert: Dialer actually don't require an InCallService.

Bug: 124238689
Change-Id: Idba1af59ad39da87cf3c77c9c5e31843ce2d78d1
2019-02-11 19:15:11 +00:00
Tyler Gunn
4614e4f22c Merge "Expose some APIs as test APIs to facilitate CTS" 2019-02-11 03:24:48 +00:00
Hai Zhang
b0146d7f22 Add missing parts for renaming of the call redirection role.
Also drops the _APP suffix in role names, to be consistent with other
roles.

Test: manual
Change-Id: Iee3566b353fdf49a916067dfffebcf3d5b87c326
2019-02-07 16:29:46 -08:00
Hai Zhang
f28075bf00 Merge "Add flags parameter for managing role holders." 2019-02-06 23:04:44 +00:00
Youming Ye
300cdfcd1b Merge "Add connect time to conference participant." am: bd2016353c am: 5ff42a7991
am: f62df78690

Change-Id: I5ccd356cc36abb68ef6112368c588a86574945ee
2019-02-06 14:39:25 -08:00
Youming Ye
f62df78690 Merge "Add connect time to conference participant." am: bd2016353c
am: 5ff42a7991

Change-Id: Ie88693e8ec940d9116c7ed459a44685e88e3aa88
2019-02-06 14:26:59 -08:00
Youming Ye
bd2016353c Merge "Add connect time to conference participant." 2019-02-06 21:55:06 +00:00
Hai Zhang
71d70360b2 Add flags parameter for managing role holders.
This change allows passing a flag parameter when managing role
holders, including a DONT_KILL_APP flag that can be used by the
request role dialog.

Bug: 123429697
Test: manual
Change-Id: I57b690dcdfbf6fd13940cf45d392a48adeccdfaa
2019-02-05 15:37:40 -08:00
Tyler Gunn
b03099d9dd Merge "Add nuisance call reporting API to Telecom." am: d6471064e9
am: 41aa3fa1bc

Change-Id: I1a2318fb310c5c8f172a729f30e4ee8727bed0da
2019-02-05 13:48:47 -08:00
Tyler Gunn
c30ce782c0 Add nuisance call reporting API to Telecom.
Adding new nuisance call reporting API to Telecom. Dialer will use this
to report to Telecom when the user marks a call as nuisance or not
nuisance.  We relay this to the CallScreeningService the user has chosen
to fill the call screening role, along with some basic information about
the call type (missed, rejected, incoming) and a the coarse call duration
bucket.  These values can be used by the CallScreeningService to train
the nuisance detection model it employs.

Test: Manual tested using test app.
Test: Added new CTS test coverage.
Test: Added unit tests to Telecom
Bug: 63966743
Merged-In: I389617491f640afd9ca28ec3f247912365e6cc53
Change-Id: I389617491f640afd9ca28ec3f247912365e6cc53
2019-02-05 08:42:15 -08:00
Tyler Gunn
6c14a699e9 Expose some APIs as test APIs to facilitate CTS
Test: added new cts tests
Bug: 123896388
Change-Id: I742f23be57e731307338591d816f7888e198b333
2019-02-04 15:12:24 -08:00
Youming Ye
d6de26ea61 Add connect time to conference participant.
Bug: 78176188
Test: Manual
Change-Id: Ifb7f061ddcc69356a21d08c9c446edeb38a6674c
2019-02-04 10:14:49 -08:00
Tyler Gunn
8303572af5 Merge "Deprecate acceptRingingCall and endCall." am: 6e3a88a3e2 am: 280019629c
am: 994c17768a

Change-Id: I10fee83408de8a1af75555eedf2403dfdbc4b857
2019-02-01 13:06:23 -08:00
Tyler Gunn
994c17768a Merge "Deprecate acceptRingingCall and endCall." am: 6e3a88a3e2
am: 280019629c

Change-Id: Ie2bc60b8c8f5abc1651944fa3f927b23ab545d0f
2019-02-01 12:31:53 -08:00
Eugene Susla
03f6205e3e Merge "Fix dialer cts test" 2019-02-01 18:27:58 +00:00
Tyler Gunn
6e3a88a3e2 Merge "Deprecate acceptRingingCall and endCall." 2019-02-01 17:27:58 +00:00
Eugene Susla
98a872d75b Fix dialer cts test
Whether setting default dialer succeeds is propagated all the way to API,
and (apparently) enforced by cts, so it looks like we should wait for it

Fixes: 123718729
Test: atest android.telecom.cts.DefaultDialerOperationsTest#testSetDefaultDialerNoDialIntent_notSupported
Change-Id: I2f7b8d4a32d1b570d0aba8cc4cc529f58a9dbc20
2019-01-31 18:31:15 -08:00
Hai Zhang
6ded0caca0 Merge "Make getInstalledDialerApplications() require an InCallService." 2019-01-31 23:05:46 +00:00
Tyler Gunn
9bd8db4af7 Deprecate acceptRingingCall and endCall.
These APIs are replaced by CallScreeningService and the new
companion app roles in InCallService.

Test: Update Apis and verify deprecated.
Bug: 63966743
Change-Id: Ib4c4ac6b723ccd46d3052fb2b9c9f58b3151cc29
2019-01-31 10:54:03 -08:00
Tyler Gunn
63f489cf39 Merge "Call Screening / Caller ID API Changes" am: 8b194fe9d8
am: d030f9d160

Change-Id: I2bed419aaf6e357c82e48506f70085ac98e729f7
2019-01-30 19:45:30 -08:00
Tyler Gunn
8b194fe9d8 Merge "Call Screening / Caller ID API Changes" 2019-01-31 03:05:52 +00:00
Hai Zhang
b73ec01a17 Make getInstalledDialerApplications() require an InCallService.
So that the old default dialer app picker don't show apps that don't
qualify for this new requirement in dialer role.

Bug: 110557011
Test: manual
Change-Id: Iafb33c7ee0f865991822013c839890d2fe18c692
2019-01-30 16:37:33 -08:00
Chen Xu
60a12e3118 Merge "Add IntRange and FloatRange annotations" am: 94a9377222 am: 74798a771a
am: 7c3084c349

Change-Id: Ic838b99e169e2fd144e51199e41560efdf663fea
2019-01-29 17:04:30 -08:00
Chen Xu
7c3084c349 Merge "Add IntRange and FloatRange annotations" am: 94a9377222
am: 74798a771a

Change-Id: I6353003144e4c2cf5882d20d2d37921dc69b4bcf
2019-01-29 16:43:48 -08:00
Tyler Gunn
94f8f11342 Call Screening / Caller ID API Changes
- Fix bug in call identification parcelable; was reversing the app name
and package name.
- Add @hide RoleManager consts for the Telecom roles; this will be
replaced by values in the library for public consumption as a later
date.
- Add new call direction attribute to the Call.Details class; this is
needed so that a CallScreeningService can know if a call is incoming
or outgoing.  This way it knows whether it needs to perform call blocking
or just caller ID.
- Update CallScreeningService API docs to explain how to request the
call screening role.
- Update InCallService API docs to explain the 3 roles related to this
service and how you declare an appropriate IncallService to fill each of
them.

Bug: 63966743
Test: Manual, CTS
Merged-In: Ic4547b8ead791690305f7be58e43272c4155b7fb
Change-Id: Ic4547b8ead791690305f7be58e43272c4155b7fb
2019-01-29 14:45:55 -08:00
chen xu
e0a3eb90d9 Add IntRange and FloatRange annotations
Bug: 123223163
Test: Build
Change-Id: I17f27075007df642ec93e5b762b0717da4a1e927
2019-01-29 13:58:29 -08:00
Eugene Susla
92b88c7fab Migrate dialer to RoleManager
Test: ensure settings UI is ok, ensure stock dialer can still make a call
Change-Id: Iab835939fbb92af06d9440910fbde2725ca66f70
2019-01-25 17:20:39 -08:00
Tyler Gunn
e2a693b746 Merge "Add nuisance call reporting API to Telecom." 2019-01-23 21:50:49 +00:00
Tyler Gunn
d109d4bb58 Merge "Add get/set user selected outgoing phone account APIs." am: bf10036306 am: 6e7caec9ae
am: 5797bc598b

Change-Id: Ic1fa374c80d478586bf61956c28eedef2ba5185d
2019-01-22 20:54:33 -08:00
Tyler Gunn
5797bc598b Merge "Add get/set user selected outgoing phone account APIs." am: bf10036306
am: 6e7caec9ae

Change-Id: I5278da53a5292379c27db7da1a9029d87f785d9a
2019-01-22 20:10:33 -08:00
Tyler Gunn
1965bb1cc2 Add nuisance call reporting API to Telecom.
Adding new nuisance call reporting API to Telecom. Dialer will use this
to report to Telecom when the user marks a call as nuisance or not
nuisance.  We relay this to the CallScreeningService the user has chosen
to fill the call screening role, along with some basic information about
the call type (missed, rejected, incoming) and a the coarse call duration
bucket.  These values can be used by the CallScreeningService to train
the nuisance detection model it employs.

Test: Manual tested using test app.
Test: Added new CTS test coverage.
Test: Added unit tests to Telecom
Bug: 63966743
Change-Id: I389617491f640afd9ca28ec3f247912365e6cc53
2019-01-22 19:15:24 -08:00
Tyler Gunn
36c50ed28c Add get/set user selected outgoing phone account APIs.
Promoting getUserSelectedOutgoingPhoneAccount to a public API accessible
to the default dialer app, as well as to system priv apps such as the
settings app.

Promoting setUserSelectedOutgoingPhoneAccount to a system API accessible
to apps such as the settings app.

Add telecom shell commands to support changing the outgoing phone account
in CTS tests.

Bug: 119227574
Test: Manual
Test: Added and ran new CTS test
Change-Id: I204b2f01a1b6746aa35faf8aaacd30ebf53b9a5d
2019-01-22 07:46:06 -08:00
Tyler Gunn
7b31759f0d Merge "Support for treating single party IMS conference as a standalone call." am: 89e53d81ce am: 955c9adb36
am: 4fd8e1b376

Change-Id: I7ab00c1b82858014fb3135474a64a9fa44d8283b
2019-01-22 07:31:55 -08:00
Tyler Gunn
4fd8e1b376 Merge "Support for treating single party IMS conference as a standalone call." am: 89e53d81ce
am: 955c9adb36

Change-Id: I5af4c4591cd825adfeab8be56d7c60d29905f1c4
2019-01-22 07:20:11 -08:00
Tyler Gunn
89e53d81ce Merge "Support for treating single party IMS conference as a standalone call." 2019-01-22 14:57:10 +00:00
Tyler Gunn
68a73a4d0d Support for treating single party IMS conference as a standalone call.
Adding @hide APIs which Telephony can use to make a conference call with
a single participant look like its a standalone call.

Test: Manual testing
Bug: 75975913
Change-Id: Id8532234ab295785fc749b120898f43911e12637
2019-01-19 10:27:23 -08:00