Commit Graph

445111 Commits

Author SHA1 Message Date
Mark Chien
ec6cf543f9 Merge "Tethering: Add an exported flag in manifest" 2020-04-14 01:38:42 +00:00
Eric Laurent
c48b0c9e96 Merge "AudioService: fix AudioProductStrategy matching rule" 2020-04-13 21:32:59 +00:00
Treehugger Robot
6ed4be3ab4 Merge "Include what you use: <fcntl.h>" 2020-04-13 19:14:29 +00:00
Hans Boehm
b7383f2c5f Merge "Don't call exit() with threads running" 2020-04-13 18:51:16 +00:00
Francois Gaffie
05672e534e AudioService: fix AudioProductStrategy matching rule
Strategies use rules on attributes, and use public getter
to compare usages. However, some usage are system only and
now filtered by public getter.
This CL fixes this issue by adding a hidden get for usage
that return whatever public or system usage.

Test: adb shell am instrument -w -e class com.android.audiopolicytest.AudioManagerTest#testAudioAttributesToStreamTypes com.android.audiopolicytest

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: Iddd55af8f230cb063dcaa9ba950b890cbbb81643
Merged-In: I377e840b18443c33fb0b562b27fbc706aaeb8055
2020-04-13 18:42:34 +00:00
Tom Cherry
30f8f823aa Include what you use: <fcntl.h>
This was transitively included, but no longer is, so it must be
explicitly included.

Exempt-From-Owner-Approval: Janitorial
Test: build
Change-Id: Id88ee5113aa9f0a223dfabfc164ce17747727647
2020-04-13 11:10:30 -07:00
Chalard Jean
2f46cd181a Merge "Allow testing of signal strength" 2020-04-13 17:27:06 +00:00
Treehugger Robot
5bfe628d0b Merge "Remove some hdmi ro properties" 2020-04-13 17:00:42 +00:00
Ashwini Oruganti
64fa4f8154 Tethering: Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.

Bug: 150232615
Test: TH
Change-Id: I25b55378df393cd4fb8932b7ae64f97eb9f1aa8e
Merged-In: I25b55378df393cd4fb8932b7ae64f97eb9f1aa8e
(cherry picked from commit 9226d6c835)
2020-04-14 00:08:24 +08:00
Chalard Jean
40517308f2 Merge "Add instrumentation to test NetworkAgent." 2020-04-13 14:47:58 +00:00
Chalard Jean
ca241694cb Allow testing of signal strength
- Let any process with NETWORK_SETTINGS register for signal strength
  wakeup.
- Allow agents registering test networks to assign them a signal
  strength.

Test: NetworkAgentTest
Bug: 139268426
Change-Id: I2b4b89be3e69f4853fd6978d2c8f5c8eb4271f21
2020-04-13 21:55:32 +09:00
Chiachang Wang
0bb146e48c Merge "Add more tests for CaptivePortalData" 2020-04-13 09:46:20 +00:00
Chiachang Wang
55bde27f29 Add more tests for CaptivePortalData
Add missing tests to cover all system APIs

Bug: 152280218
Bug: 150640683
Test: atest CtsNetTestCasesLatestSdk:CaptivePortalDataTest on
      both Q and R device
Change-Id: I6d3826922f16816d5b18ed3540266442a0ed3e49
2020-04-13 08:58:48 +00:00
Chiachang Wang
fcdea07db4 Merge "Move CaptivePortalDataTest to common test to support cts" 2020-04-13 08:56:31 +00:00
Chiachang Wang
f4ebfd4bde Move CaptivePortalDataTest to common test to support cts
Commit has to on top of aosp/1281921 to skip whole test in Q
device since CaptivePortalData class is introduced in R.

Result in Q will be:
[1/1] android.net.CaptivePortalDataTest#skippedClassForDevSdkMismatch: IGNORED

Bug: 152280218
Bug: 150640683
Test: atest CtsNetTestCasesLatestSdk:CaptivePortalDataTest on
      both Q and R device
Change-Id: Iddd00e1c85abe767b1a41a1761d3266ba322dba6
2020-04-13 08:13:04 +00:00
Lorenzo Colitti
964975c842 Merge "Set transport types to resolver" 2020-04-13 07:03:20 +00:00
Chalard Jean
eea3b016ce Add instrumentation to test NetworkAgent.
Test: NetworkAgentTest, new tests using this API
Bug: 139268426
Change-Id: Ia83b1c896df63bb18e2aa4b74d6cc09eba990eb5
2020-04-13 15:44:07 +09:00
chenbruce
3d268e45fb Set transport types to resolver
For a given network, resolver doesn't know what transport types are.
Therefore, when a new network is created or transport types are changed
in a give network, transport types will be updated and sent by calling
setResolverConfiguration(). In the same time, if link properties or
transport types are null, setResolverConfiguration() won't be called.
The original behaviors of setResolverConfiguration() aren't changed.
Only increasing one new behavior that when a given network has transport
type change, calling setResolverConfiguration() directly and resolver
updates the transport types for that given network.

Bug: 143732914
Test: atest FrameworksNetTests
      atest FrameworksNetIntegrationTests
Merged-In: I03fc5c62dfd9a51a78a720860531df282fdecc20
Change-Id: I6527cde0e177ba08c886576131b35fc769c2bb53
2020-04-11 23:00:13 +08:00
Nikita Ioffe
b332edd6a9 Merge "UserspaceRebootLogger: query sys.boot.reason.last" 2020-04-11 11:08:58 +00:00
Dan Willemsen
f86f9eddd2 Merge "Master is now S" 2020-04-11 01:14:16 +00:00
Hans Boehm
0fcf4a605d Don't call exit() with threads running
Otherwise running threads race with destructors.

Bug: 150176543
Test: Build and boot AOSP
Change-Id: I159164a36d9808ae86c2928271b14736178e127b
2020-04-10 18:02:42 -07:00
Hall Liu
cc8b84c221 Merge changes from topic "phonestatelistener-limit-rvc-dev"
* changes:
  Add gating, logging for PhoneStateListener's limit
  Institute limit on PhoneStateListener
2020-04-11 00:36:13 +00:00
Treehugger Robot
819d39bf3e Merge "Need to check current user when triggering notification lights" 2020-04-10 22:30:28 +00:00
Nikita Ioffe
361274ed8f UserspaceRebootLogger: query sys.boot.reason.last
Also did a small refactoring in computeOutcome() method to make it work
for cases when boot reason has a sub-reason, e.g.:
reboot,mount_userdata_failed,no_userdata_in_fstab.

Test: adb shell svc reboot userspace
Bug: 148767783
Change-Id: I13474d8a5be9382f56fdc8f17cf201666492e60d
Merged-In: I13474d8a5be9382f56fdc8f17cf201666492e60d
(cherry picked from commit 7bc82dd543)
2020-04-10 23:19:54 +01:00
Treehugger Robot
f2f9b0667e Merge "AppLaunch: use iorapd's dumpsys command interface" 2020-04-10 21:39:55 +00:00
Igor Murashkin
1f3b306330 AppLaunch: use iorapd's dumpsys command interface
Make the iorapd compilation more robust by introducing retries and
switching to direct iorapd dumpsys commands instead of indirect
commands.

Test: forrest runs
Test: am instrument (manual)
Bug: 152322429
Change-Id: I7f75f0df95a1a5272237295a75bed8c34f95f859
Merged-In: I7f75f0df95a1a5272237295a75bed8c34f95f859
2020-04-10 13:17:38 -07:00
Treehugger Robot
c312053b39 Merge "Fix a theoretical NPE" 2020-04-10 16:25:07 +00:00
Chalard Jean
3854ed0c53 Fix a theoretical NPE
Test: NetworkAgentTests
Bug: 153718627
Change-Id: I08f57cce0cd85d5cd66e9a0ef948224290e9200e
2020-04-10 23:08:00 +09:00
Anton Hansson
ad2433ffcd Merge "Use sdk_version: none for platform stubs" 2020-04-10 14:00:16 +00:00
Treehugger Robot
758f448fe3 Merge "Don't ask libc for PT feature w/o kernel support." 2020-04-10 09:46:42 +00:00
Treehugger Robot
95f4ad098a Merge "Disable stubs generation when generating module_lib .txt file" 2020-04-10 07:29:48 +00:00
Dan Willemsen
0985ac8982 Master is now S
Bug: 150754986
Test: treehugger
Change-Id: I44d1b5a0fea74e2bb9e332dcb8486fd30fbd2f07
Merged-In: I44d1b5a0fea74e2bb9e332dcb8486fd30fbd2f07
2020-04-10 05:18:32 +00:00
Mitch Phillips
41cd04b822 Don't ask libc for PT feature w/o kernel support.
Check that the kernel supports the Tagged Pointers feature before asking
libc to disable/enable pointer tagging.

Bug: 153114333
Test: Build coral, note no messages from SetHeapTaggingLevel.
Test: atest CtsTaggingHostTestCases

Change-Id: Id5fbd731aa70f7b0a75525387479f6123628a012
Merged-In: Id5fbd731aa70f7b0a75525387479f6123628a012
2020-04-09 15:35:05 -07:00
Cody Kesting
138575a48c Merge "Fix typo in VpnManager Docs." 2020-04-09 21:12:23 +00:00
Eric Laurent
87685d3648 Merge "AudioService: fix audio mode not reset to MODE_NORMAL" 2020-04-09 18:52:02 +00:00
Nikita Ioffe
d8f9951f21 Merge "Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()" 2020-04-09 18:12:09 +00:00
Paul Duffin
4c5dc18da5 Disable stubs generation when generating module_lib .txt file
Avoids droidstubs doing unnecessary work to create stubs files that are
not actually used.

Bug: 146727827
Test: framework-sdkextensions-api-module_libs_api
Change-Id: Ic537fda99b564877709666025fb8df872144d827
2020-04-09 18:11:26 +01:00
Nikita Ioffe
cca499411f Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()
This method consolidates logic of testing whenever rebooting userspace
is supported in a place that can be used both from
PowerMager.isRebootingUserspaceSupported() API and from
PowerManagerService.reboot() implementation.

Consequently, this makes `adb shell svc power reboot userspace` also
benefit from that check, and fail userspace reboot on devices that don't
support it.

Also tweaked logic of ignoring RemoteException to take into account
userspace reboot.

Test: adb root
Test: adb shell setprop init.userspace_reboot.is_supported 0
Test: adb shell svc power reboot userspace & verified error message
Test: adb shell setprop init.userspace_reboot.is_supported 1
Test: adb shell svc power reboot userspace & verified no error message
Test: atest PowerManagerTest
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 152803929
Change-Id: I2d3a8e0ae1320c408a838c5c5fdf4cd977b167b3
Merged-In: I2d3a8e0ae1320c408a838c5c5fdf4cd977b167b3
(cherry picked from commit 57300d9057)
2020-04-09 17:56:25 +01:00
Tyler Gunn
45b77f9e8b Merge "Telecom API doc cleanup." 2020-04-09 16:40:50 +00:00
Tyler Gunn
e6113628f6 Telecom API doc cleanup.
InCallService - remove references to roles cut in Q release.
TelecomManager - make it more clear how to use the silenceRinger method
and under which conditions it should be used.

Test: Compile; docs only.
Fixes: 130285730
Change-Id: I55f9c2df119140666f8167e8521a4372d1108e7a
Merged-In: I3e55166e4d0d9e68449ac7c157959e8471c16354
2020-04-09 15:49:44 +00:00
Tyler Gunn
be8256ea76 Merge "Hide car barring with password API." 2020-04-09 15:48:28 +00:00
Tyler Gunn
3722ba37e8 Merge "Fix Telecom ConnectionTest." 2020-04-09 15:47:51 +00:00
Tyler Gunn
175ae029ee Merge "Document that some Telecom broadcast and extra keys are dead-ends." 2020-04-09 15:23:43 +00:00
Anton Hansson
fbd32f3274 Use sdk_version: none for platform stubs
These stubs contain the libcore sources inside them, so need not
compile against core_current.

Also rename the defaults rule to be in line with the new neverallow.

Bug: 144149403
Test: m
Change-Id: I5f1b01875b0073f942c692882db157a8c5788ce0
2020-04-09 15:00:54 +01:00
Treehugger Robot
a3b89694e7 Merge "Add owners for RestrictionsSet.java" 2020-04-09 11:49:26 +00:00
Treehugger Robot
64ccb88948 Merge "[SM09] Add helper class to monitor RAT type change per sub" 2020-04-09 08:06:44 +00:00
Treehugger Robot
674a8f1533 Merge "Add getInterface(Version|Hash) in ILights stub for test" 2020-04-09 07:49:49 +00:00
wumin3
7d5a0048ce AudioService: fix audio mode not reset to MODE_NORMAL
when a app call setMode to set mode to non MODE_NORMAL modes many times with different audio managers in the same process, in this case the "pid" parameters are the same and the "cb" parameters are not the same, then the parameter "cb" registered and the "mCb" in hdlr are not the same, then NoSuchElementException will happen, and when the app was cleared in recent tasks the audio mode will not be reseted to MODE_NORMAL by expected flow.

Signed-off-by: wumin3 <wumin3@xiaomi.com>
Change-Id: Ifb8c66372a8e994edcea628cad7dc2a7ee4763a6
2020-04-09 15:47:01 +08:00
Treehugger Robot
06ad45a596 Merge "Fix CtsShortcutHostTestCases#testSecondaryUser" 2020-04-09 07:21:23 +00:00
junyulai
4c344553b5 [SM09] Add helper class to monitor RAT type change per sub
In current design, Rat type change in NSS is only for default
subscription. This is only correct for single sim project.
However, it does not correct for multi-sim scenarios such as
CBRS or DSDS, given that all data usage will be attributed
to the Rat type of default sub.

Thus, add a helper class to monitor subscription change event,
and register/unregister dynamically for Rat type change for
every subscription.

Note that unit test of the helper class will be addressed
in follow-up patch.

Test: m -j
Bug: 146415925
Change-Id: I0055f6b55c209a073ce997fc7a144477f9db7069
Merged-In: I0055f6b55c209a073ce997fc7a144477f9db7069
(cherry picked from ag/10977156 and fixed conflict)
2020-04-09 07:11:17 +00:00