Commit Graph

1309 Commits

Author SHA1 Message Date
Hall Liu
37c22c1018 Merge "IMS: Propagate media profile changed message" am: 7ae295368d am: 4dee3b2193
am: c5c6046579

Change-Id: Icfa541a094255b3b60600e479cac31fc5220612c
2019-01-14 15:13:10 -08:00
Hall Liu
c5c6046579 Merge "IMS: Propagate media profile changed message" am: 7ae295368d
am: 4dee3b2193

Change-Id: I95e75988b622f788b4fc63a9c3e5205b67d0455b
2019-01-14 14:30:55 -08:00
Wileen Chiu
f2ec298d7d IMS: Propagate media profile changed message
- RTT Voice information will be passed to the UI via
  media profile changed message

- The RTT voice information - SPEECH/SILENCE, will be conveyed
  via the ImsStreamMediaProfile.hasRttAudioSpeech

- A connection event will be sent from frameworks to the UI -
  EVENT_RTT_AUDIO_INDICATION_CHANGED

- Add listeners, connection event and extras to propagate
  media profile changed to the UI

Test: Manual
Bug: 110976450
Change-Id: I34d2dd612915d65f5047986dabece968c78f0abe
2019-01-11 11:58:31 -08:00
Hall Liu
b8d605bc29 Merge "Propagate some SIP INVITE header fields on a MT call" am: a24ced9e9b
am: fb1c1a61db

Change-Id: I85abf94a108439da8a0858778f5fccc10cf2a415
2019-01-11 11:46:07 -08:00
shilu
b7ec9a0c9a 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
2019-01-10 15:59:06 -08:00
Tyler Gunn
d7acc5a49f Merge "Call Screening / Caller ID API Changes" 2019-01-10 19:12:38 +00:00
Tyler Gunn
9e76fd19bc 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
Change-Id: Ic4547b8ead791690305f7be58e43272c4155b7fb
2019-01-08 15:01:19 -08:00
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
Mathew Inwood
8501ae1763 Merge "Limit access to suspected false positives." am: aeda49d185
am: 152d5a5dcd

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08: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
55418eada5 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: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +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
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
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
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
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