Commit Graph

439968 Commits

Author SHA1 Message Date
Steven Ng
733ac0d946 Grant READ_DREAM_STATE & WRITE_DREAM_STATE permissions to shell
This is required for ambient display tests

Bug: 147874708
Test: Run newly added ambient display tests.
Merged-In: I61c28e15c4e5c3d0ffee4137ecb86e33f7e8f64d
Change-Id: I26ab1cd48816ddb3aa8b30708726a3e1a3a20b9a
2020-01-29 09:54:19 +00:00
Paul Trautrim
062625165e Merge "Add implementation of getInterfaceHash()" 2020-01-29 05:12:12 +00:00
Paul Trautrim
e01ea259c4 Add implementation of getInterfaceHash()
Exempt-From-Owner-Approval: cherry-pick from internal
Bug: 136065010
Test: m
Change-Id: I314f19aeca82cc8653eab71c9526ea7a208e6b50
Merged-In: I314f19aeca82cc8653eab71c9526ea7a208e6b50
2020-01-29 14:09:56 +09:00
Treehugger Robot
88d4019b82 Merge "CloseGuard: Fix JavaDoc code sample to use correct API" 2020-01-29 01:18:12 +00:00
Xiao Ma
34a5bbda41 Merge "Make Information Elements (IE) of a scan result available as a public API." 2020-01-29 00:12:20 +00:00
Jorim Jaggi
b6d051c228 Merge "Reduce the number of rotations of flicker tests" 2020-01-28 20:34:21 +00:00
Jorim Jaggi
e56396645b Merge "Disable flaky flicker tests" 2020-01-28 20:34:11 +00:00
Sarah Chin
b739deddc6 Merge changes from topics "phone_cap", "tdscdma"
* changes:
  Modify PhoneCapabilities for device capabilities
  Added TD-SCDMA bands for network scanning
2020-01-28 17:26:11 +00:00
Jordan Liu
dd6d0b26af Merge "Fix ordered background broadcast API" 2020-01-28 16:33:18 +00:00
Nataniel Borges
0f5ebe8048 Disable flaky flicker tests
These tests are still flaky. Disable them for now so that we can move the flicker tests to presubmit.

Test: atest FlickerTests
Change-Id: I811f32723cdbaece3aff7d6dbb100c0c5b2653fa
2020-01-28 16:58:36 +01:00
Nataniel Borges
e894f6a870 Reduce the number of rotations of flicker tests
To reduce the flicker test time, reduce the tests to consider only:
* Start test at 0 degrees
* Start test at 90 degrees
* Rotation tests from 0 to 90 degrees
* Rotation tests from 90 to 0 degrees

Also, execute each action a single time.

Test: atest FlickerTest
Change-Id: I5976cf950998a8150fd5a1b32f0f1432cd731ee1
2020-01-28 16:47:18 +01:00
Zimuzo Ezeozue
3dca32381d Merge "Request MANAGE_EXTERNAL_STORAGE permission" 2020-01-28 14:46:46 +00:00
Anton Hansson
4cb0a11907 Merge "Add dariofreni@ to sdkextensions OWNERS" 2020-01-28 12:54:14 +00:00
Andrei-Valentin Onea
418169d181 Merge "Add permissions for using PlatformCompat methods" 2020-01-28 12:04:43 +00:00
Anton Hansson
2f8f24c119 Add dariofreni@ to sdkextensions OWNERS
Test: N/A
Change-Id: I011ebedc46e8f4164d4d196b9e7d3cfb18431280
2020-01-28 11:29:38 +00:00
Nikita Ioffe
147863d9fc Merge "Add @RequiresPermission annotation to reboot APIs" 2020-01-28 10:45:34 +00:00
Lorenzo Colitti
fb3dccd961 Merge changes I34842acd,Icc6c4d6b
* changes:
  Add support for Ethernet tethering
  Local Tethering with ncm interface
2020-01-28 10:43:33 +00:00
Remi NGUYEN VAN
f2f3f3e345 Add support for Ethernet tethering
Ethernet tethering can be started via
startTethering(TETHERING_ETHERNET).

Test: flashed, enabled ethernet tethering, verified internet access on
      downstream.
Bug: 130840861

Merged-In: I34842acd94b972e440c3622f7617df10c18acf65
Change-Id: I34842acd94b972e440c3622f7617df10c18acf65
(cherry-pick with conflicts in test-current.txt)
2020-01-28 17:52:06 +09:00
Milim Lee
58527ba974 Local Tethering with ncm interface
Bug: 130840842
Test: build, boot
      atest TetheringTest
      manual test (call startTethering(TETHERING_NCM))

Merged-In: Icc6c4d6be39e787503cecf3a5835b40d4be12a57
Change-Id: Icc6c4d6be39e787503cecf3a5835b40d4be12a57
(clean cherry-pick)
2020-01-28 17:52:06 +09:00
Remi NGUYEN VAN
e7e38501e8 Merge "Support putting one Ethernet interface in server mode." 2020-01-28 08:30:18 +00:00
Lorenzo Colitti
261b2ee873 Support putting one Ethernet interface in server mode.
requestTetheredInterface can be used to put an interface in server mode,
which will persist until release() is called on the returned request, or
until the requesting process dies.

Test: Enabled ethernet tethering with change on top
Bug: 130840861
Merged-In: Id96d581acb3fa4e52ca62dd94ec257f56bd3a1ce
Change-Id: Id96d581acb3fa4e52ca62dd94ec257f56bd3a1ce
(clean cherry-pick from internal branch)
2020-01-28 16:25:43 +09:00
Treehugger Robot
9e01566c50 Merge "SystemApi is @Repeatable" 2020-01-28 06:42:08 +00:00
Xiao Ma
ac16b8ae3e Make Information Elements (IE) of a scan result available as a public API.
Bug: 137835398
Test: atest FrameworksWifiTests
Test: attach to upstream hotspot device by selecting the sanned
      ssid from wifi settings, then check the OUI, vendor specific
      type fileds of IEs from the logcat.

Merged-In: If3b9906c75033f51bd35fcf054154125719ea958
Change-Id: If3b9906c75033f51bd35fcf054154125719ea958
2020-01-28 06:23:36 +00:00
Jing Ji
4e46c416a0 Merge "Avoid IOB while bringDownDisabledPackageServicesLocked()" 2020-01-28 04:58:13 +00:00
Shuo Qian
fb9adf0d1e Merge "Make ModemActivityInfo isValid system" 2020-01-28 01:28:15 +00:00
Aurimas Liutikas
d4454de42f Merge "Specify which packages metalava should skip in API linting." 2020-01-28 00:09:27 +00:00
Shuo Qian
419caebfc9 Merge "Refactor SmsManager not to use ActivityThread hidden API in Mainline" 2020-01-27 23:47:50 +00:00
Shuo Qian
260a0aac29 Merge "Support always reporting signal strength phone state listener" 2020-01-27 23:42:28 +00:00
Treehugger Robot
d44b5d9ec5 Merge "Expose system API ACTION_SERVICE_PROVIDERS_UPDATED" 2020-01-27 23:42:12 +00:00
sqian
498cc25dc3 Make ModemActivityInfo isValid system
Make ModemActivityInfo.isValid system because
 getIdleTimeMillis(), getSleepTimeMillis(), and getReceiveTimeMillis()
 are system.

Bug: 146436760
Test: build
Change-Id: Ifc1a1853fe0b7ca143ef95fe3a1abe70e2dc70d4
Merged-In: Ifc1a1853fe0b7ca143ef95fe3a1abe70e2dc70d4
(cherry picked from commit 3349553a99)
2020-01-27 23:33:33 +00:00
Shuo Qian
1d40225791 Merge "Use changeID and Compatibility.isChangeEnabled for Mainline" 2020-01-27 23:28:31 +00:00
Qingxi Li
1e5d7a9020 Merge "Update location permission check for ConnectivityUtil" 2020-01-27 23:13:01 +00:00
Shuo Qian
f7de016204 Refactor SmsManager not to use ActivityThread hidden API in Mainline
Introduce a server API to get current package name to remove
 ActivityThread for Mailine

Test: Treehugger; no function change; Manual: tried to send a message to 22000,
      and observed that it pops out a notification window to ask me: "Messages
      would like to send a message to 22000, Cancel or Send?" I clicked on "Send".
      UI shows that SMS is sent successfully.
Bug: 145147528
Change-Id: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
Merged-In: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
(cherry picked from commit 24fded67fb)
2020-01-27 14:48:23 -08:00
David Su
ab2c291b46 CloseGuard: Fix JavaDoc code sample to use correct API
The code sample in the JavaDoc shows
`CloseGuard.get()` to create a new CloseGuard,
which is incorrect.
The correct API is `new CloseGuard()`.

Bug: 148291235
Test: compiles
Change-Id: I1dd24fff150e671007b67c023b20e078557f2966
2020-01-27 14:41:16 -08:00
Shuo Qian
9939a8b949 Use changeID and Compatibility.isChangeEnabled for Mainline
Test: Treehugger
Bug: 145147528
Bug: 147600208

Change-Id: I8092f4c7d3be046da337cdcbadeed89844b3aaab
Merged-In: I8092f4c7d3be046da337cdcbadeed89844b3aaab
Merged-In: I4294359fc7bcf4d739b6e01439dc47fa99999d2c
(cherry picked from commit d0c818129a)
2020-01-27 14:40:00 -08:00
Aurimas Liutikas
1f76a5ad2e Specify which packages metalava should skip in API linting.
Test: make -j checkapi
Change-Id: Iaced9d204ba72fb17d34a7085b685978125b890d
2020-01-27 22:32:45 +00:00
sqian
6cd260243a Support always reporting signal strength phone state listener
We should not allow other stack (such as Bluetooth) to directly control
 modem indication reporting. The hidden API
 TelephonyManager.setRadioIndicationUpdateMode added before do not
 support multiple clients and do not support the case when clients'
 process die.

The new solution would be adding a new listener
 PhoneStateListener.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH and let
 telephony registry (which is running under system process) to tell
 telephony whether to always turn on signal strength update if any client
 is listening to this event.

Introduce a new system API for TelephonyRegistry
to tell Telephony module this listening mechanism.

Introduce a new permision for this function

Test: WIP (Have this CL out to try to catch up the API deadline)
Bug: 147322848

Change-Id: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
Merged-In: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
(cherry picked from commit 93642d4433)
2020-01-27 14:20:09 -08:00
Qingxi Li
545a87c852 Update location permission check for ConnectivityUtil
This CL does following updates for the ConnectivityUtil class:
1. Remove the current profile check from location permission
check since it's not related to location permission check.
2. Makes all the checking functions to static to avoid memory
allocation
3. Rename the class from util to checker.

Bug: 148180968
Bug: 148232681
Bug: 148233000
Test: atest FrameworksNetTest
Change-Id: Ibf8879fe7dbcecdf766b959cb052d4d825b9b24c
Merged-In: Ibf8879fe7dbcecdf766b959cb052d4d825b9b24c
2020-01-27 14:11:15 -08:00
Jordan Liu
f026bce66c Fix ordered background broadcast API
This API is only intended for a specific use, so do not allow the caller
to pass in other intents and use it for other things.

Bug: 144108192
Test: atest CellBroadcastIntentsTest
Change-Id: Ibf70fdbb419bbb24f2feeffedc0331e31c865a52
Merged-In: Ibf70fdbb419bbb24f2feeffedc0331e31c865a52
2020-01-27 21:58:19 +00:00
Treehugger Robot
9f85cd1bdb Merge "Preparing to finalize @SystemApi" 2020-01-27 21:20:40 +00:00
Jordan Liu
bd9ff62138 Merge "Update test to not assume 2 max SIMs" 2020-01-27 20:22:36 +00:00
Brad Ebinger
e86be6d43e Merge changes from topics "cp_rcs_uce_setting", "ims_uce_system"
* changes:
  Make remaining UCE related APIs @SystemApi
  Add IMS_RCS_UCE_ENABLED column to SimInfo database
2020-01-27 18:57:57 +00:00
Makoto Onuki
14a1ab1b9d Preparing to finalize @SystemApi
- MODULE_APPS is considered to be too confusing, we're going to remove it, and
may revive it once ART is able to support runtime protection

- Change SYSTEM_SERVER to a "client".

Test: Build / treehugger
Bug: 148177503
Change-Id: Id847e29ab211c4c009c234a2e1e469575914e12e
2020-01-27 18:23:30 +00:00
Jordan Liu
c0673e9cbf Update test to not assume 2 max SIMs
Bug: 145710242
Test: passes existing tests
Change-Id: I6546acb58a25d161634986348e7122e12c2b7c04
2020-01-27 17:30:51 +00:00
Tyler Gunn
2c12c74b33 Merge "Add support for rejecting Telecom call with a specified reason." 2020-01-27 17:27:30 +00:00
Brad Ebinger
cab43e32f0 Make remaining UCE related APIs @SystemApi
Bug: 111305845
Bug: 147613952
Test: atest CtsTelephonyTestCases
Merged-In: I8fed782e7bef10d6d136fce02e6f1b59d225272b
Change-Id: I8fed782e7bef10d6d136fce02e6f1b59d225272b
2020-01-27 09:22:48 -08:00
Anton Hansson
ca4e02fd93 Merge "Add java_api_finder to sdkextensions java code" 2020-01-27 16:19:02 +00:00
Treehugger Robot
5360a52f6d Merge "Update TestThread2 Stacktrace in align to OpenJDK 8u121-b13" 2020-01-27 15:56:57 +00:00
Jorim Jaggi
35d3ce82d4 Merge "Disable seamless rotation on flicker tests" 2020-01-27 13:11:08 +00:00
Nikita Ioffe
169fbf6d5c Add @RequiresPermission annotation to reboot APIs
Test: builds
Bug: 148286076
Fixes: 148286076
Change-Id: If58234a2197655c51b8aa43d6966097046f5030a
2020-01-27 10:58:30 +00:00