Commit Graph

1323 Commits

Author SHA1 Message Date
Shuo Qian
da241c5355 Merge "Call Redirection Service enhancement" 2019-01-07 23:00:37 +00:00
sqian
3ac6c04acc Call Redirection Service enhancement
- Add an extra with onPlaceCall in the current CallRedirectionService
surface to indicate whether an interactive response is allowed or not
when call is initiated into the implemented redirection service.

- Add an extra with redirectCall to indicate if Telecom should show UI
to users to confirm the redirection.

- Rename targetPhoneAccount in onPlaceCall to initialPhoneAccount

Bug: 64959558
Test: Treehugger
Change-Id: Ic924bb234b2b2e5533c5869257e815777580ac5d
2019-01-03 01:13:28 +00:00
shilu
ccd86941b4 Propagate some SIP INVITE header fields on a MT call
These fields can be used for Spoof call detection in the Dialer

Bug: 115537553
Test: compile and test on device
Change-Id: Ib92043536e0fc43e40efc53189a28c4e58064ddc
2018-12-28 22:39:26 +00:00
Mathew Inwood
31755f94e1 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 11:50:04 +00:00
Hall Liu
57416ae169 Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2" am: db5b77c275 am: 5bf7e2cc5c
am: 372277f219

Change-Id: Ied4e9e0ff774c595eb5d82e184e8aa402e05529e
2018-12-19 15:16:54 -08:00
Hall Liu
25f0ff5d5a Add the PhoneAccountSuggestionService am: c47570d5d0 am: df448f5ea2
am: 08fd16b47c

Change-Id: I74aafb91fd233d28f6840f5bd1247c3663dc35aa
2018-12-19 15:09:58 -08:00
Hall Liu
372277f219 Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2" am: db5b77c275
am: 5bf7e2cc5c

Change-Id: Ib9b33541a9679a6001fbeacb23d687cfb1a0740a
2018-12-19 14:23:54 -08:00
Hall Liu
08fd16b47c Add the PhoneAccountSuggestionService am: c47570d5d0
am: df448f5ea2

Change-Id: I7555d7dfbbf25fc35549d1a7cb29bbe3a83bebde
2018-12-19 14:18:47 -08:00
Hall Liu
df448f5ea2 Add the PhoneAccountSuggestionService
am: c47570d5d0

Change-Id: Ia7823ff16f1684db71845cb9d92434c448290c9a
2018-12-19 13:57:48 -08:00
Hall Liu
db5b77c275 Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2"
* changes:
  Enable CTS testing for phone account suggestions
  Add the PhoneAccountSuggestionService
2018-12-19 21:36:54 +00:00
Hall Liu
7ddcfd698e Enable CTS testing for phone account suggestions
Add TestApi annotation on PhoneAccountSuggestionService and add sensible
equals and hashCode methods to PhoneAccountSuggestions

Bug: 111455117
Test: CTS
Change-Id: I112e350cc637cb086252c53be5e08596e743537d
2018-12-17 15:27:48 -08:00
Hall Liu
c47570d5d0 Add the PhoneAccountSuggestionService
Add a service base class for phone acct suggestion. Also add associated
aidl plumbing and a new permission for the service to require.

Test: CTS to come
Bug: 111455117
Change-Id: I30d7d004bdddbab3dfbb5408c07775ea56d490fe
2018-12-17 15:27:32 -08:00
Chen Xu
432f643749 Merge "public API for VideoProfile.CameraCapability with zoom" am: 610673690c am: efac7fdbf7
am: fcd87384c4

Change-Id: I18bf350eac7eb8c3e5c9ce80bb04a0793722d1c1
2018-12-17 11:05:46 -08:00
Chen Xu
fcd87384c4 Merge "public API for VideoProfile.CameraCapability with zoom" am: 610673690c
am: efac7fdbf7

Change-Id: Ifa619269c6781a3653b6dafc80380f1857dd554e
2018-12-17 10:51:15 -08:00
Chen Xu
610673690c Merge "public API for VideoProfile.CameraCapability with zoom" 2018-12-17 18:24:15 +00:00
Nicholas Sauer
8d7120f68a Retrieve packages for the specified user.
DefaultDialerManager#setDefaultDialerApplication is meant to execute on
the current user. However it retreives packages for the user specified
in the context --  which can be different than the user specified in the
method call. As a result, calls to setDefaultDialerApplication can be
successful even if the component is disabled in the current (secondary)
user.

bug: 121094764
Test: via CTS
adb shell am switch-user 10
cts-tradefed run cts-dev -a arm64-v8a -m CtsTelecomTestCases -t android.telecom.cts.DefaultDialerOpest#testSetDefaultDialerNoDialIntent_notSupported

adb shell am switch-user 0
cts-tradefed run cts-dev -a arm64-v8a -m CtsTelecomTestCases -t android.telecom.cts.DefaultDialerOpest#testSetDefaultDialerNoDialIntent_notSupported

Change-Id: I0992594f8791791eacba43e03ca1c293832eddcf
2018-12-16 19:34:36 +00:00
chen xu
055b1de272 public API for VideoProfile.CameraCapability with zoom
Bug: 120796998
Test: Build & CTS videoprofiletest
Change-Id: I12b3d1c510065666e2fdf5186d924e657f66d039
2018-12-14 15:27:31 -08:00
Tyler Gunn
d1d6911207 Merge "Add CallerIdentification to CallScreeningService API." 2018-12-14 17:44:09 +00:00
Tyler Gunn
b9a1dcd7e4 Merge "Update CallScreeningService API docs." am: c3275b673c
am: 41890c7e1e

Change-Id: I92d74b3a2cf15e8b526fdf052587144b078f4959
2018-12-14 07:38:12 -08:00
Tyler Gunn
c3275b673c Merge "Update CallScreeningService API docs." 2018-12-14 15:06:53 +00:00
Hector Dearman
923382cb10 Fix SDK build
See ag/5184749

Test: make
Exempt-From-Owner-Approval: Build Cop
Change-Id: I531364aeeb042b699b2cc2c4ff9b2139e1040cfc
2018-12-13 16:55:37 +00:00
Tyler Gunn
7e45b7241b Add CallerIdentification to CallScreeningService API.
Updating the CallScreeningService to support passing call identification
information for incoming/outgoing calls.
Updating call log to log call identification information.

Bug: 63966743
Test: Manual with test app.
Change-Id: Ie6c172c09007eb5f4853d36ae0a99b782bfb5ddb
2018-12-12 15:12:31 -08:00
Youming Ye
dcd62ad6c3 Merge "Enable Telecom to bind third party InCallServices." 2018-12-12 21:18:35 +00:00
Adrian Roos
d4f9f9f666 Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi" am: af0e1c2fa5
am: 963172ac83

Change-Id: I2251db66ef73d5b69c84b4e83f2788d2bc953eda
2018-12-12 08:44:43 -08:00
Adrian Roos
6115769c16 API: Clean up redundant and ineffective usages of SystemApi and TestApi
Everything that is marked SystemApi or TestApi, but not @hide is still
part of the public SDK, it is therefore not sound to have that combination.

In the future, specifing such a combination will be considered an error
to prevent inadvertently exposing SystemApi and TestApi as public API.

Bug: 115333477
Change-Id: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Merged-In: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi
Exempt-From-Owner-Approval: API cleanup
2018-12-12 15:02:26 +01:00
Adrian Roos
e77ff79fdb Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi" 2018-12-12 13:43:34 +00:00
Shuo Qian
9bb51e769f Merge "Add Call redirection app in Telecom test-commands" am: 58ee538e62 am: 32827c217b
am: abc148cccd

Change-Id: I28f53e5fd88ed0a781392fe753309cf9338db459
2018-12-11 16:33:20 -08:00
Shuo Qian
abc148cccd Merge "Add Call redirection app in Telecom test-commands" am: 58ee538e62
am: 32827c217b

Change-Id: Ie2b8265b69771835609679e9656c4e6bade96e3f
2018-12-11 16:14:59 -08:00
Shuo Qian
58ee538e62 Merge "Add Call redirection app in Telecom test-commands" 2018-12-11 19:43:00 +00:00
Adrian Roos
66f859135b API: Clean up redundant and ineffective usages of SystemApi and TestApi
Everything that is marked SystemApi or TestApi, but not @hide is still
part of the public SDK, it is therefore not sound to have that combination.

In the future, specifing such a combination will be considered an error
to prevent inadvertently exposing SystemApi and TestApi as public API.

Bug: 115333477
Change-Id: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi
Exempt-From-Owner-Approval: API cleanup
2018-12-11 20:38:02 +01:00
Youming Ye
8ded93ac94 Enable Telecom to bind third party InCallServices.
Changes for Telecom to bind third party companion apps or
automotive ui installed from Play Store. Add new permissions and
settings for the third party InCallService APIs.

Bug: 78174835
Test: Manual
Change-Id: I1b4eff28b9dfd61f1c951d14b6c82395b51fe769
2018-12-11 18:25:38 +00:00
Hall Liu
c174448a16 Merge changes from topic "acct-suggestion-1" am: f3935f0268 am: 5da9fe3d79
am: 3b74db277d

Change-Id: I647e891b6e7b0dbfe02c8f9f5d7a4bebc3ea18c5
2018-12-10 19:27:05 -08:00
Hall Liu
3b74db277d Merge changes from topic "acct-suggestion-1" am: f3935f0268
am: 5da9fe3d79

Change-Id: I2d342eef80a5bcfed1e538add6c5807f5faf3dd1
2018-12-10 19:06:06 -08:00
Hall Liu
34d9e24008 Add docs and more annotations
Add docs to some constants in PhoneAccountSuggestion and add @TestApi
annotations to enable CTS testing for the new APIs.

Test: compiles
Bug: 111455117

Change-Id: I2b55a411ff4f0da37eefa0996f7316ea53bca41d
2018-12-10 18:41:01 -08:00
sqian
6dcf8879cb Add Call redirection app in Telecom test-commands
Bug: 64959558
Test: Treehugger
Change-Id: I15cb3b766c4c5fbef4e50824ccda0f3328643cf9
2018-12-07 19:36:27 -08:00
Tyler Gunn
3cd820f66d Update CallScreeningService API docs.
Cleanup some formatting issues.
Update the docs to more clearly indicate what data will be passed
to the CallScreeningService about a call.
Update the docs to clearly indicate the new behavior for setSkipCallLog
with respect to logging of calls.

Bug: 63966743
Test: API doc only change; build.
Merged-In: I5daeea32f6cfbef1b94105a826925a878ac98596
Change-Id: I5daeea32f6cfbef1b94105a826925a878ac98596
2018-12-07 21:42:01 +00:00
Hall Liu
066612a910 Add PhoneAccountSuggestion class
Add parcelable data class for the phone acct suggestion feature.

Test: TBD
Bug: 111455117
Change-Id: I6d5368133abfc076ccb2e6ddfff70de8b6a56e8f
2018-12-06 18:19:48 -08:00
Tyler Gunn
f374fdcb83 Merge "Add telecom test-commands for maintaining role overrides." am: d2d1a5a23e
am: eacfc9fd85

Change-Id: I131fbd59984aa825403a3c63add8b9a9b6c366d2
2018-12-03 17:34:47 -08:00
Tyler Gunn
8b68d7760f Add telecom test-commands for maintaining role overrides.
This allows for easier testing of role-dependencies for Telecom (since
RoleManager is not yet fully implemented).

Bug: 63966743
Test: Manual
Merged-In: I92fd86411d1312be2255ec0634f059cd8e4bfc26
Change-Id: I92fd86411d1312be2255ec0634f059cd8e4bfc26
2018-12-03 20:58:48 +00:00
Tyler Gunn
e0caec7afb Update CallScreeningService API docs.
Cleanup some formatting issues.
Update the docs to more clearly indicate what data will be passed
to the CallScreeningService about a call.
Update the docs to clearly indicate the new behavior for setSkipCallLog
with respect to logging of calls.

Bug: 63966743
Test: API doc only change; build.
Change-Id: I5daeea32f6cfbef1b94105a826925a878ac98596
2018-12-03 08:31:59 -08:00
Tyler Gunn
c3430ea05e Add telecom test-commands for maintaining role overrides.
This allows for easier testing of role-dependencies for Telecom (since
RoleManager is not yet fully implemented).

Bug: 63966743
Test: Manual
Change-Id: I92fd86411d1312be2255ec0634f059cd8e4bfc26
2018-11-27 08:34:55 -08:00
Tyler Gunn
743ad8a78c Merge "Unsupported app usage API cleanup" am: a2b2183a24 am: ff98c6d69f
am: 940dd816a3

Change-Id: I571ad85a3e643459c3040ee4ccb3e3e2d84c741a
2018-11-13 10:34:43 -08:00
Tyler Gunn
3808bca1f7 Merge "Expose capabilitiesToString for use in Telecom." am: b7d9e55bc7 am: b9cdc48c1f
am: 1e44acb566

Change-Id: I887d9a702c85252612751a7209210db0bf78613f
2018-11-13 10:20:04 -08:00
Tyler Gunn
940dd816a3 Merge "Unsupported app usage API cleanup" am: a2b2183a24
am: ff98c6d69f

Change-Id: I3bbf9b130374b2f387de56034d22e2cf6248a9ac
2018-11-13 10:18:44 -08:00
Tyler Gunn
1e44acb566 Merge "Expose capabilitiesToString for use in Telecom." am: b7d9e55bc7
am: b9cdc48c1f

Change-Id: Ib35d4013fe5f7e7a1a34d9e74eae1b7e642f0a26
2018-11-13 10:06:16 -08:00
Tyler Gunn
a2b2183a24 Merge "Unsupported app usage API cleanup" 2018-11-13 17:49:01 +00:00
Tyler Gunn
b7d9e55bc7 Merge "Expose capabilitiesToString for use in Telecom." 2018-11-13 17:47:49 +00:00
Tyler Gunn
6e3ecc40f8 Unsupported app usage API cleanup
This CL includes a number of cleanups related to unsupported app usage
tags.

TelecomManager#EXTRA_IS_HANDOVER - public APIS exist for this usecase;
updated docs and limit to P with maxtarget sdk.
TelecomManager#getSimCallManager(int userId) - marked as max target P;
there is a public API available which can be used to accomplish the same
thing.  Nobody should be calling this.
TelecomManager#getCallCapablePhoneAccounts(boolean) - marked as max
target P; callers should use the version without the boolean parameter.

Deprecate CAPABILITY_CAN_UPGRADE_TO_VIDEO; its redundant.

New public API:
Promote TelecomManager#getSystemDialerPackage() to public API; its a
benign API and doesn't expose anything which can't be inferred other ways.

New system APIs:
TelecomManager#getCurrentTtyMode() - used by settings app.
TelecomManager#setDefaultDialer() - used by useful for settings app.
TelecomManager#TTY_MODE* constants - used by getCurrentTtyMode API.

Test: Compile / run unit tests
Bug: 119305590
Change-Id: I67d6213e6c689fb545fc9ceae4a359831f97c32f
2018-11-12 11:30:56 -08:00
Hall Liu
f6f09c5491 Merge "Fix flaky AnalytisTest by locking in EventRecord" am: 0a390095df am: e90962ff1d
am: d96fd15364

Change-Id: I37232a10e503887fdd436c4504a53f993da4f1b2
2018-11-09 14:03:51 -08:00
Tyler Gunn
1847b4eb74 Expose capabilitiesToString for use in Telecom.
We will use this in phone account registrar to make the logs more useful.

Test: Manual
Bug: 119306215
Change-Id: Ic882192bc5f135e70f37ddbba055127fdb9c1569
2018-11-09 08:43:02 -08:00