Commit Graph

445231 Commits

Author SHA1 Message Date
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
Paul Hu
fcdacd8e0c Merge "[TNU07] Remove unused resources" 2020-04-22 02:33:46 +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
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
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
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 ac3ca33567)
2020-04-20 09:22:33 -07:00
Tarundeep Singh
126eb8c6a0 Fix Hdmi Control service
Corrected the boolean expression in
6dab93b419

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
Lorenzo Colitti
e2bd3ad00c Merge "Stop prefix discovery if an RA prefix arrives in DISCOVERING" 2020-04-20 11:10:31 +00:00
Lorenzo Colitti
11dde57b7f Merge "Make the Nat464Xlat tests more realistic." 2020-04-20 11:06:08 +00:00
Lorenzo Colitti
a3319d24a3 Merge "Support learning the NAT64 prefix from two different sources." 2020-04-20 11:05:52 +00:00
Jiyong Park
77a58cde80 Merge "Mark some aidl_interface modules as unstable" 2020-04-20 10:11:54 +00:00
Lorenzo Colitti
632092bb28 Stop prefix discovery if an RA prefix arrives in DISCOVERING
Currently, if a prefix is learned from an RA while prefix
discovery is running, clatd will be correctly started, but
prefix discovery will be stopped.

In order to fix this, make it possible to call
stopPrefixDiscovery without transitioning to IDLE state (which
is obviously necessary in this case), by moving the assignment of
the next state from that method to its callers. For consistency,
do the same for startPrefixDiscovery.

Bug: 150648313
Test: new test coverage
Change-Id: I3803fa3d9806848b331c35ee8bac256934bd1f21
2020-04-20 17:54:20 +09:00
Lorenzo Colitti
0a9b1b6a4b Make the Nat464Xlat tests more realistic.
464xlat will never be started on a network that is not connected,
or on a network that has no IPv6 address.

This is a no-op test-only change but it is necessary for an
upcoming change that violates some of the invalid assumptions
currently made by this test and causes it to fail.

Bug: 150648313
Test: test-only change
Change-Id: I41766e9adaa7c24454648b371e6e3cc647693be5
2020-04-20 17:54:20 +09:00
paulhu
d954d2cd7c [TNU08] Remove the "tethering is on" notification
All carriers discarded the requirement to put up a standing
notification when tethering is on. Thus, remove the "tethering
is on" notification.

Bug: 154438388
Test: atest TetheringTests
Change-Id: Ife3915837b6b7b83d3eaaa84b71b6409ff37b71c
2020-04-20 16:10:08 +08:00
paulhu
08e2029428 [TNU07] Remove unused resources
Some strings are not used, so just remove them.

Bug: 154445061
Test: atest TetheringTests
Change-Id: Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60
2020-04-20 15:52:11 +08:00
Lorenzo Colitti
e5b220d179 Support learning the NAT64 prefix from two different sources.
The NAT64 prefix from the RA always takes precedence over the
NAT64 prefix from DNS discovery, because it is detected faster,
and detecting it does not require sending any packets.

Bug: 150648313
Test: new unit test
Change-Id: Ic7452431d2d9aea1ae59b67a9d8383c6cc5b3902
2020-04-20 16:50:53 +09:00
Jiyong Park
803dc1c218 Mark some aidl_interface modules as unstable
With b/152655547, all aidl_interface modules are considered as stable
unless it is explicitly with "unstable: true". This change marks the
aidl_interface that are not used across updatable module bounraries
as unstable, so that the build system does not run the API
dumping/checking on them.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 152655547
Test: m
Merged-In: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
(cherry picked from commit db589dded4)
Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
2020-04-20 07:44:52 +00:00
Aaron Huang
79ae68b5e1 Merge "Add network agent to enhance NetworkProvider test" 2020-04-20 07:20:25 +00:00
Jack Yu
e68ccd06fc Merge "Get rid of SIM record access in DcTracker" 2020-04-19 08:48:13 +00:00
Jack Yu
7d7adf75e0 Get rid of SIM record access in DcTracker
DcTracker uses several SIM related signals for different purposes.
Those signals include SIM record loaded/not-loaded, subscription
changed event, and carrier config changed event. Those signals
are slightly different but not that really important to DcTracker.
What DcTracker cares is
1. Whether SIM is inserted or not.
2. Whether configuration changes or not.

By listening to a single carrier config change event can handle
the cases above.

Removed all SIM record related places in DcTracker. SIM record should
not be accessed by anyone outside of UICC controller.

Test: Manual test + unit tests
Bug: 146168348
Merged-In: Iad45933ea77eb460625a891071535cbeaf8ac3b0
Change-Id: Iad45933ea77eb460625a891071535cbeaf8ac3b0
(cherry picked from commit df3001b935)
2020-04-19 00:25:09 -07:00
Mingming Cai
81a5d6ac65 Make MNC length hidden public
Make CellIdentity.MNC_MIN_LENGTH and CellIdentity.MNC_MAX_LENGTH
hidden public to support IccRecords changes.

Bug: 152518548
Test: make
Change-Id: Ic253a6bbbf07e4ce62a7ea25ca67dff54e2c67c8
Merged-In: Ic253a6bbbf07e4ce62a7ea25ca67dff54e2c67c8
(cherry picked from commit 3f9e9edb8e)
2020-04-17 17:14:51 -07:00
Elliott Hughes
07ce3ccc80 Tell bionic when we overwrite argv[0].
Otherwise bionic might still have a pointer into the old content.

Bug: https://issuetracker.google.com/152893281
Test: treehugger
Change-Id: I25e31c5da33e529c750ef6f2e3f36ca62cf4d231
2020-04-17 16:15:39 -07:00
Treehugger Robot
ca4379a866 Merge "Enable screen recording in legacy app launch test." 2020-04-17 21:41:57 +00:00
Christopher Tate
7e701dbe8c Allow system processes to set near-future alarms
Bug: 151689784
Test: atest CtsAlarmManagerTestCases
Test: atest FrameworksMockingServicesTests:AlarmManagerServiceTest
Test: observe DHCP +2 sec alarm

Merged-In: Ic987eb168fb632d77e841f33518c2d0ea650693e
Change-Id: Ic987eb168fb632d77e841f33518c2d0ea650693e
2020-04-17 12:07:58 -07:00
Chalard Jean
565160c302 Merge "[TNU06] Add roaming notification" 2020-04-17 16:08:14 +00:00
Gavin Corkery
feb3b2ace2 Merge "Ensure userspace reboot is supported before logging" 2020-04-17 15:43:02 +00:00
Aaron Huang
e66ba51271 Merge "Move DhcpInfoTest to frameworks/base/tests/net/common" 2020-04-17 14:35:41 +00:00
Gavin Corkery
eb52a69444 Ensure userspace reboot is supported before logging
Ensure that userspace reboot is supported before performing any actions.
Any call into UserspaceRebootLogger in the case that userspace reboot
is not supported should be a no-op. It is unexpected to call into
this class on an unsupported device, so log with ASSERT priority
in this case.

Test: atest UserspaceRebootHostTest
Bug: 153648276
Change-Id: Ic3041ff3abe0d2641d3d99fc8e816f1f5c491a34
2020-04-17 14:41:21 +01:00
paulhu
f98918fc2c [TNU06] Add roaming notification
Warn user of potential data charges if the backhaul is
cellular and user is roaming.

Bug: 145629001
Test: atest TetheringTests
Change-Id: I74b4f87c2f6aad09e05d3f2a779f880396885953
2020-04-17 21:25:54 +08:00
Anton Hansson
b7a96816a6 Merge "Remove obsolete dist rules" 2020-04-17 12:29:01 +00:00
Anton Hansson
019256c4a6 Merge "Convert disting of api txt from mk to bp" 2020-04-17 12:21:46 +00:00