445309 Commits

Author SHA1 Message Date
Tyler Gunn
cc0dcc6ad6 Add carrier config to support local disconnect of empty IMS conference.
Adding carrier config key to support ability to locally disconnect an
empty IMS conference.  The network normally does this, but there             are some
carriers which rely on the device to do it.

Test: Add unit test to verify local disconnect when participant count is
zero.
Test: Use conference event package test cmd/intents to inject test CEP to
simulate a conference dropped to 0 participants.  Verify IMS conference is
disconnected.
Bug: 151707520
Fixes: 154245549
Merged-In: If6fb25b669a74e7e586736c04101a42ab6adcffe
Change-Id: Id7238bc668e6d6d2d7a04a8696263b260d6b6fd8
2020-04-22 11:26:25 -07:00
Tyler Gunn
559ac652d0 Add carrier config to indicate if cep is supported on peer.
Adding new carrier config option to indicate if conference event package
data is supported on the conference peer.  We already have an option for
the conference host.  This new option is used to indicate when the peer
can or cannot support the CEP data.  When not supported, even if the
network provides CEP data, it is ignored by the device.

Test: Manual testing using test intents.
Test: Added unit tests for these cases.
Bug: 150860282
Fixes: 154245604
Merged-In: I47b5e49acf08e085ea23e21a5f6b2d5a5d00bc09
Change-Id: Ib8d8f171699f21f45b0ce2eec2dbe75d7466b76a
2020-04-22 10:51:42 -07:00
paulhu
f8d6163cab [TNU09] Adjust restricted notification
1. Let restricted notification that can be dismissed.
2. Only put up restricted notification when any of tethering is
   activating.

Bug: 154214549
Test: atest TetheringTests
Change-Id: Ib980aca154036828abdab35e3bb11d42f85ff610
2020-04-23 00:17:28 +08:00
Tyler Gunn
2c1bef9037 Hide adhoc conference APIs.
Most of this was previously hidden; these last stragglers were missed.

Test: make update-api ; verify hidden
Bug: 152394802
Fixes: 153376610
Merged-In: I90e05379d3c779bdc6b64e3ff68513bb3f302456
Change-Id: I41bda5b8ad368e1c88e4dd9e45d978a111a22e53
2020-04-22 16:08:28 +00:00
Tyler Gunn
76ab5fb247 Fix potential issue where sub info change listener is not registered.
SubscriptionManager#addOnSubscriptionsChangedListener can fail to
register a listener if the TELEPHONY_REGISTRY system service is not up.
Currently this is just silently ignored.

Adding a callback method on the listener to notify the registrant that the
listener failed to be registered, and adding exponential backoff code in
TelecomAccountRegistry to retry registration.

Test: Manual; edited code in Subscriptionmanager to fail the first attempts
to add a listener for TelecomAccountRegistry.  Verified the backoff took
place and registration still occurred for the listener.
Test: Tried to write a mockito test but gave up because this code has
far too many intertwined dependencies and is not inherently testable
Bug: 152217039
Fixes: 153376310

Change-Id: Icf3133cdeca526979cb621f29659b880127b680a
Merged-In: Ib032072dcfd2d3d5e700e380af08b7b3142ebb8e
2020-04-22 15:42:35 +00:00
Paul Hu
97e28ae76d Merge "Add TetheredClient tests" 2020-04-22 15:22:32 +00:00
Anton Hansson
ccd13f6c52 Merge "Revert "Set min_sdk_version to be part of mainline modules"" 2020-04-22 15:09:31 +00:00
Anton Hansson
b3e93ccc15 Revert "Set min_sdk_version to be part of mainline modules"
This reverts commit 3e302d27794cd61db1014010a5a3623cceeb7db1.

Reason for revert: b/154711554

Change-Id: Ie38d43f8936e45f1e4783b28b940a5faacd1772d
2020-04-22 15:08:34 +00:00
Nathan Harold
796cfb89fd Fix EmergencyAffordanceService
Significantly rework Emergency Affordance Service.

-Enable country-by-country behavior based on ISO not MCC.
-Rely on LocaleTracker for the cellular network country.
-Remove all locking/synchronization.

Bug: 130187110
Test: com.android.server.emergency.EmergencyAffordanceServiceTest
Test: Feature regression test located at go/EAS-regression
Merged-In: I66315988b14d7cbdb5278a1006327818dc5ab11e
Change-Id: I66315988b14d7cbdb5278a1006327818dc5ab11e
(cherry picked from commit 30e7471e5d392fb2693bc825216855104b3e2d6c)
2020-04-22 07:59:01 -07:00
Philip P. Moltmann
da8697a48b Merge "Set attributionTag for noteOp(WRITE_SETTINGS) calls" 2020-04-22 14:58:13 +00:00
Frank Li
4f61c9e961 Merge "Correct the 1st item name of enum LinuxErrno as SYS_NO_ERROR in DNS Resolver atom." 2020-04-22 14:27:11 +00:00
Paul Hu
bbb5a3c7f7 Merge "Add TetheringCommonTests" 2020-04-22 12:46:39 +00:00
Sonalika Paul
10d67ed1b8 IMS: Explicit Call transfer APIS.
Test: Manual
Bug: 62170207
Change-Id: I136ffb1d5b4df9de9be0406d6d5ebd33ef7a97ac
2020-04-22 15:50:24 +05:30
Jooyung Han
f50c5c5ebd Merge "Set min_sdk_version to be part of mainline modules" 2020-04-22 10:07:28 +00:00
Mark Chien
467f0b0cca Merge "Include NetworkStaticLibTestsLib into tethering coverage test" 2020-04-22 08:51:23 +00:00
paulhu
b908f04f53 Add TetheredClient tests
Test APIs below:
getAddresses()
getMacAddress()
getTetheringType()
AddressInfo.getAddress()
AddressInfo.getHostname()
AddressInfo.writeToParcel(android.os.Parcel, int)

Bug: 153614365
Bug: 153613717
Test: atest TetheringTests
Change-Id: Ic7cbebe54a38af5b5c4639eb7641a20de6864a26
2020-04-22 16:32:58 +08:00
paulhu
bf0d419301 Add TetheringCommonTests
Bug: 153614365
Bug: 153613717
Test: atest TetheringTests TetheringCoverageTests
Change-Id: If7c933ec0c72943312cd37bfc66918f10a5504a9
2020-04-22 16:15:33 +08:00
Paul Hu
626a089358 Merge "[TNU08] Remove the "tethering is on" notification" 2020-04-22 05:37:17 +00:00
Jooyung Han
3e302d2779 Set min_sdk_version to be part of mainline modules
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Bug: 152655956
Test: m
Change-Id: I80b7dcb0bf2ff88e22b65149d957dbbbb0c95b42
2020-04-22 12:42:27 +09:00
David Su
6ef1235b47 framework-wifi: remove duplicate classes
Preconditions & Inet4AddressUtils are statically
linked into both framework-wifi and service-wifi.
This creates duplicate classes, which should be
avoided. Instead, service-wifi should simply refer
to the copy of Preconditions/Inet4AddressUtils in
framework-wifi.

(dirty cherry pick from internal branch)

Bug: 153596226
Test: device boots up and connects to wifi
Change-Id: Ie78e5cf0f6ff7bc8a2fa8d7264b742f912601143
Merged-In: Ie78e5cf0f6ff7bc8a2fa8d7264b742f912601143
2020-04-21 20:14:23 -07:00
Jiyong Park
b50e662b3e Make CtsShim*Prebuilt be available to the test APEXes
android_app_import now supports apex_available property. Fill the
property for the CtsShim*Prebuilt apks so that they can be correctly
included in the test APEXes.

Bug: 154488897
Test: m
Change-Id: I9cf2e30bb38abbb33bf76a0eab0dc2a10a5647c9
2020-04-22 11:45:54 +09:00
Paul Hu
fcdacd8e0c Merge "[TNU07] Remove unused resources" 2020-04-22 02:33:46 +00:00
Hall Liu
04ca56ddc6 Expose android.telephony.DisconnectCause
Expose these constants since they're referred to by a public carrier
config key.

Fixes: 145663507
Test: compile
Change-Id: I276761170b3cf5d740f7dbe945834934082a1428
Merged-In: I276761170b3cf5d740f7dbe945834934082a1428
2020-04-22 00:35:38 +00:00
Elliott Hughes
bf7cb1ca91 Merge "Tell bionic when we overwrite argv[0]." 2020-04-21 23:05:51 +00:00
Treehugger Robot
8a6beab15e Merge "Remove proofread files that aren't created" 2020-04-21 22:31:23 +00:00
Treehugger Robot
eed1c8dd79 Merge "Update Identity Credential API docs." 2020-04-21 22:07:42 +00:00
Bill Yi
0415986ef2 Merge "Import translations. DO NOT MERGE" 2020-04-21 18:55:16 +00:00
Eric Laurent
9a9dab22dd Merge "AudioService: default volume group is not restored" 2020-04-21 17:56:56 +00:00
Eric Laurent
346f1bcf90 Merge "AudioService: Focus: cleanup FocusOwner upon requestAudioFocus failure" 2020-04-21 17:55:49 +00:00
Francois Gaffie
6677621887 AudioService: default volume group is not restored
Volume Group with associated stream type does not have their volume
restore after restart / crash due even if correctly stored in
Settings DB.
A guard prevent to restore it. However, when using volume per attributes,
Settings DB is used, so it is safe to restore volumes for all group.
This CL fixes this issue by removing this guard.

Test: set Music volume & reboot & dumpsys audio
    Ensure indexes matches
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>

Change-Id: I00aa8c17bffca21a128086fbbbeafffc26521a3b
Merged-In: I239145d8bc50237ff902026594423c6d1fa04ad4
2020-04-21 17:04:48 +00:00
Francois Gaffie
9704e1275a AudioService: Focus: cleanup FocusOwner upon requestAudioFocus failure
When the focus is owned by an external audio policy, and when
a client's request fails, the FocusRequester dedicated Map is not
cleared.
As the client app may not call AudioManager#abandonAudioFocus (since
the requestAudioFocus failed), it leads to not only dumpsys side effects but
also it triggers upon client's focus binder died event, the call
of notifyExtFocusPolicyFocusAbandon_syncAf.

This CL fixes this issue by removing the FocusRequester when the request
fails, the same way it is already done on permanent loss of focus.

Test: build & boot

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I4d1b216b606c8f73c9b68353723284d9e178297d
2020-04-21 16:29:23 +00:00
Treehugger Robot
094eafd471 Merge "Retry the call that fetches the tethering offload HAL." 2020-04-21 14:45:39 +00:00
Lorenzo Colitti
e87bf543fb Retry the call that fetches the tethering offload HAL.
The CL that moved the initialization of the tethering offload
config HAL from C++ to Java caused the code not to retry
fetching the service if it is not ready when tethering is
started. This is because the C++ version of getService() retries,
but the Java version only retries if getService(true) is called.

Make the new code retry as well.

b/152430668#comment4 asserts that the fetch will be retried only
if the service is installed on the device, so the retries should
be attempted (and thus should not have any startup time impact)
on devices that do not support tethering offload.

Bug: 152430668
Test: builds, boots, tethering offload works
Change-Id: I093f127d90b2aa1b13eb0748378a24726d419472
2020-04-21 22:22:54 +09:00
lifr
68e5670221 Correct the 1st item name of enum LinuxErrno as SYS_NO_ERROR in DNS Resolver atom.
Bug: 150194702
Test: Manual test with statsd_testdrive
Change-Id: If2abc419a92f1c53654fe7b2b11a15928bf7ba21
2020-04-21 18:25:56 +08:00
markchien
25fff15879 Include NetworkStaticLibTestsLib into tethering coverage test
Bug: 148636687
Test: atest NetworkStaticLibTests
Test: atest TetheringCoverageTests
Change-Id: I8cd9dbc9fe163583ff1d016c9262546949105b80
2020-04-21 09:50:28 +00:00
Dan Willemsen
cece97c664 Remove proofread files that aren't created
These would cause these actions (and any that depended upon them) to
re-run during every incremental build. These now produce warnings:

ninja: output file missing after successful execution: out/soong/.intermediates/frameworks/base/ds-ref-navtree-docs/android_common/ds-ref-navtree-docs-proofrerad.txt

It turns out that the -proofread argument to doclava is ignored with the
following argument combinations:

 * -static -devsite
 * -navtreeonly

Test: m docs; m docs (nothing to do)
Change-Id: I21b939951f5a2f33914e9fc9414df8206091d262
2020-04-20 22:43:18 -07:00
Philip P. Moltmann
6bb9c7bdc4 Set attributionTag for noteOp(WRITE_SETTINGS) calls
Test: atest FrameworksNetTests TetheringTests:TetheringServiceTest
Bug: 136595429
Merged-In: I33f787644c44d7b0e5ce17a433820cfcd985cdfb
Change-Id: Ic3d937e7bb5141798234ed5b2852c1f768e97495
2020-04-20 18:00:03 -07:00
Jack Yu
506655294e Merge "Renamed DisplayInfo to TelephonyDisplayInfo" 2020-04-20 21:16:17 +00:00
Brad Ebinger
bda2aaa2c5 Merge "Add new @hide API to pass call direction changes through Telecom" 2020-04-20 20:38:21 +00:00
Martin Stjernholm
73912d5c23 Merge "Move libsigchain version scripts to app_process, where they are used." 2020-04-20 19:29:52 +00:00
Brad Ebinger
0ae44ed738 Add a new call direction parameter to conferences for multiparty
1) Refactor ParcelableConference - too many optional params
2) Add a new call direction parameter for external multiparty
call scenarios, where a conference is assigned a direction.

Bug: 153595501
Fixes: 154246448
Test: atest TelecomUnitTests TeleServiceTests
Merged-In: Icb576a07b9a7a81e228babfea53474be83da7593
Change-Id: Icb576a07b9a7a81e228babfea53474be83da7593
2020-04-20 12:19:34 -07:00
Brad Ebinger
e0c12f4b88 Add new @hide API to pass call direction changes through Telecom
Bug: 153277327
Fixes: 154245581
Test: atest TelecomUnitTests
Merged-In: Icad12c4144bf185c24ee80bcbdd1aec29550bf4e
Change-Id: Icad12c4144bf185c24ee80bcbdd1aec29550bf4e
2020-04-20 12:14:33 -07:00
Sarah Chin
1f0a4d7261 Merge "Add rebroadcast extra to CARRIER_CONFIG_CHANGED" 2020-04-20 18:27:35 +00:00
Treehugger Robot
28b71ac415 Merge "Fix Hdmi Control service" 2020-04-20 17:56:36 +00:00
Anton Hansson
aa4f4de230 Merge "Make getExtensionVersion a little more forward-proof" 2020-04-20 17:53:19 +00:00
Chris Tate
58dd4e78b3 Merge "Allow system processes to set near-future alarms" 2020-04-20 17:49:43 +00:00
Jack Yu
ecfb37b868 Renamed DisplayInfo to TelephonyDisplayInfo
To reduce ambiguity with android.view.DisplayInfo.

Test: Telephony sanity tests + unit tests
Bug: 151101989
Merged-In: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
Change-Id: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
(cherry picked from commit ac3ca3356722b9352ed845dbeabbbc6a800dc22f)
2020-04-20 09:22:33 -07:00
Tarundeep Singh
126eb8c6a0 Fix Hdmi Control service
Corrected the boolean expression in
6dab93b419f4ac62f3907180c8d4f0062e41a608

Bug: 154208302
Test: adb shell dumpsys hdmi_control
Test: run cts -m CtsServicesHostTestCases
Change-Id: I474d47098b1b62cbdeba68df5c7bdb17b64fcafe
2020-04-20 21:33:26 +05:30
Mingming Cai
3bb2dcf607 Merge "Make MNC length hidden public" 2020-04-20 15:59:43 +00:00
Anton Hansson
a9abe9e689 Make getExtensionVersion a little more forward-proof
R_EXTENSION_INT is 0 now, but if bumped we don't want to bump
the other return values of this method.

Bug: 154486201
Test: SdkExtensionsTest
Change-Id: I36855ba1881da4056276f4a5626ca64d2129353b
Merged-In: I36855ba1881da4056276f4a5626ca64d2129353b
(cherry picked from commit 11111482211f0ff59f54f71cf0145ab572af3fae)
2020-04-20 14:45:23 +01:00