Commit Graph

440746 Commits

Author SHA1 Message Date
Jiyong Park
1a307062bc Merge "Mark updatable APEXes" 2020-02-29 15:10:24 +00:00
Jiyong Park
6ced1221cd Mark updatable APEXes
Mark updatable APEXes as updatable: true so that they are opted-out from
optimizations that make sense only for non-updatable modules; such as
symlinking to the libs in the system partition.

Bug: 149805758
Test: m and check that there is no symlink from the APEX to the system
partition.

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

Merged-In: Idb55300a60a261c7bb6359439ed220ff51fcf06c
(cherry picked from commit 8201bdfab0)
Change-Id: Idb55300a60a261c7bb6359439ed220ff51fcf06c
2020-02-29 09:18:24 +00:00
Jovana Knezevic
e9565c937b Merge changes Ib3d70d21,I005c7665,I41bbcff0
* changes:
  Fixes switch-user -w command.
  Improved 'am switch' to handle errors.
  Add wait flag to am switch-user command.
2020-02-29 06:49:27 +00:00
Shuo Qian
3d2b3a114b Merge "API Review Feedbacks" 2020-02-29 00:31:18 +00:00
Peter Wang
d7d92d6517 Merge "[Telephony Mainline] Expose getActiveSubscriptionIdList" 2020-02-28 23:49:05 +00:00
Abhijit Adsule
fa871a3642 Merge "Add feature to disable slices" 2020-02-28 22:13:01 +00:00
Amit Mahajan
3300730d3d Merge "Hide TelephonyRegistryManager." 2020-02-28 17:45:26 +00:00
Amit Mahajan
796d96ed05 Merge "Hide CarrierMessagingServiceWrapper for now." 2020-02-28 17:45:20 +00:00
jovanak
9950e5a81d Fixes switch-user -w command.
We handle failures better and exit early if already switched to a current user.

Fixes: 150019926
Test: manual verification
Change-Id: Ib3d70d21cc379f136983f9ddcda31f5bab3f045e
Merged-In: Ib3d70d21cc379f136983f9ddcda31f5bab3f045e
2020-02-28 17:21:43 +00:00
Felipe Leme
2d950c12b5 Improved 'am switch' to handle errors.
Bug: 146207078
Test: adb shell am switch-user 42 ; echo $?

Change-Id: I005c76652be1fd0908f5c2b40e2513362b5ce5ac
Merged-In: I005c76652be1fd0908f5c2b40e2513362b5ce5ac
2020-02-28 17:20:41 +00:00
satayev
24e54e64d5 Merge "Move hiddenapi lists droidcore calls to tools/platform-compat/." 2020-02-28 16:11:10 +00:00
Tyler Gunn
9fefb65aa9 Merge "Add USSD codes over IMS feature" 2020-02-28 15:48:56 +00:00
Tyler Gunn
1b637fe165 Merge "Format incoming call numbers with the national format for Japan" 2020-02-28 15:48:15 +00:00
Treehugger Robot
34bc8d2a88 Merge "Change icon mappings in MobileSignalController" 2020-02-28 07:55:33 +00:00
Lorenzo Colitti
41c82c99df Merge "Fix crash and duplicated ethernet tethering request" 2020-02-28 02:37:45 +00:00
Jack Yu
622153fc70 Merge "Added missed incoming call SMS support" 2020-02-28 01:08:52 +00:00
Daniel Bright
0aff2e35ac Change icon mappings in MobileSignalController
The specific goal was to remove NETWORK_TYPE_LTE_CA from being used in the controller.
In order to make this smoother, the logic was refactored to use a string based
hashmap instead of an array to support the carrier aggregation variations in LTE
and 5G \ LTE.

Bug: 147465477
Test: SystemUITests
Change-Id: Ice6e795675e0c8281531c3cf52ce181a460e4bfd
Merged-In: Ice6e795675e0c8281531c3cf52ce181a460e4bfd
2020-02-28 01:07:04 +00:00
Amit Mahajan
da6a199972 Hide TelephonyRegistryManager.
This was added for telephony mainline, and as such is not needed in
R now.

Test: basic sanity
Bug: 149850449
Merged-in: I2b47ab45839f07494dcad4f1878809a55ddd3087
Change-Id: I2b47ab45839f07494dcad4f1878809a55ddd3087
(cherry picked from commit 7411d22e57)
2020-02-27 16:58:09 -08:00
Amit Mahajan
5c88e4767a Hide CarrierMessagingServiceWrapper for now.
Based on api-council feedback there are some changes required.
Will incorporate the changes and expose this class in a later
release.

Test: basic sanity
Bug: 144346062
Merged-in: Icb65f90261ea6000aecd72a1888d5ee23eed6527
Change-Id: Icb65f90261ea6000aecd72a1888d5ee23eed6527
(cherry picked from commit e75a35d3b3)
2020-02-27 16:58:09 -08:00
Treehugger Robot
3c424220a1 Merge "AlarmManagerService: Fix FWR before boot completed" 2020-02-28 00:49:32 +00:00
jovanak
fddf07e8ad Add wait flag to am switch-user command.
Previously, command returns right away. CTS tests that use it are forced to
loop waiting for the change in am get-current-user to see if the switch
completed. This method is unreliable because it returns the new user id before
UserController.mCurrentUser updated.

Adding "-w" to the switch command will make it wait for the switch to be
completed.

Fixes:141998718
Test: manual switch-user tests with -w flag
Change-Id: I41bbcff0c79677ba3bf6b58e1fc96cd13a681b33
Merged-In: I41bbcff0c79677ba3bf6b58e1fc96cd13a681b33
2020-02-28 00:39:49 +00:00
Jiyong Park
fcccac54d9 Merge "stubs inheriting from framework-module-stubs-defaults-* now works" 2020-02-27 23:57:03 +00:00
Steven Moreland
a9117815ed Merge "Use String8 ostream from String8.h" 2020-02-27 23:18:49 +00:00
Geoff Lang
b4cbb98dae Merge "Allow WRITE_SECURE_SETTINGS for ANGLE to provide developer options." 2020-02-27 22:12:13 +00:00
Shuo Qian
ad46ae1bcf API Review Feedbacks
1) Rethrow the remoteException instead of returning empty string
 for CarrierConfigManager#getDefaultCarrierServicePackageName()

2) Flip documentation to use “valid” instead of “invalid” for
 ModemActivityInfo.isValid()

Bug: 147804136
Test: Treehugger; Cts
Change-Id: I595837dfb24a09c68e33a732aa24b5b25ff28ac0
2020-02-27 21:19:27 +00:00
Jack Yu
dad5a5f5cf Merge "Add support for customized network list" 2020-02-27 19:59:08 +00:00
Nishizawa Nobuhiro
e8e1ed69c1 Format incoming call numbers with the national format for Japan
Add a new carrier config to control whether the incoming call number
should be formatted to national number for Japan.

Test: manual - Checked that incoming call number is converted to
national format
Bug: 143239889

Change-Id: I46e24589fea405f231d81736fec67803ce070c7b
2020-02-27 19:17:45 +00:00
Tyler Gunn
76db055e20 Merge "Update EmergencyNumber API docs to indicate they can throw." 2020-02-27 19:09:43 +00:00
Amit Mahajan
ba07b06d19 Merge "Change Context parameter to @NonNull." 2020-02-27 19:02:14 +00:00
Jorim Jaggi
db3931fe93 Merge changes from topic "flicker"
* changes:
  New flicker test: Add rotation to split screen test
  Ensure screenshot layer appears during rotation
  New FlickerTests: Create initial flicker tests for Pip
2020-02-27 11:39:03 +00:00
Jorim Jaggi
ef04ccb466 Merge "Print the checksum of the trace file on failure" 2020-02-27 11:39:03 +00:00
markchien
d2d8d45b89 Fix crash and duplicated ethernet tethering request
This change fix two things:
1. Handle ethernet callback in internal thread to avoid crash. IpServer
should be created from tethering thread, otherwise mIpNeighborMonitor of
IpServer would throw
   IllegalStateException("start() called from off-thread")
2. Ethernet tethering request may be duplicated if multiple
startTethering is called but no stopTethering

Bug: 130840861
Bug: 148824036
Test: ON/OFF ethernet tehtering manually
      atest TetheringTests

Change-Id: I7c5127e96d80d077735010d2e62c7227805ccb10
2020-02-27 14:50:16 +08:00
Sarah Chin
1bd0e487cd Merge changes from topics "caps_refactor", "phone-cap-revert"
* changes:
  Revert "Modify PhoneCapabilities for device capabilities"
  Revert "PhoneCapability cleanup"
2020-02-27 05:46:08 +00:00
Jiyong Park
7f1e9b27ce stubs inheriting from framework-module-stubs-defaults-* now works
This change fixes a problem that droidstub modules inheriting from
framework-module-stubs-defaults-* don't emit any source code. The
problem was happening because

1) --show-annotation was with incorrect format; it had trailing
"," in the parameter list and
2) the class SystemApi was not available to metalava, which made
prevented it from processing any API annotated with @SystemApi.

Fixing the problem by forcibly adding framework annotations to the
sources of the default modules.

Bug: 1241127
Test: `m ike-stubs` and check its output
Merged-In: Icbbbddb4fb68055f27aa314983a9c556e51f037a
(cherry picked from commit b4f8a85245)
Change-Id: Icbbbddb4fb68055f27aa314983a9c556e51f037a
2020-02-27 12:26:47 +09:00
Aaron Huang
bdb86ff8ab Merge "Add methods to send connected/disconnected state." 2020-02-27 03:21:14 +00:00
Jooyung Han
12ac74a11f Merge "Use optional for nullable types" 2020-02-27 03:06:14 +00:00
Jooyung Han
f452968ae8 Use optional for nullable types
AIDL generates optional<T> for nullable T types for C++, which is more
efficient and idomatic and easy to use.

Bug: 144773267
Test: build/flash/boot
Merged-In: I90cf2ce1193c479179687d71a5c1416f6cdf0b16
Change-Id: I90cf2ce1193c479179687d71a5c1416f6cdf0b16
(cherry picked from commit ff7f4279bd7fa33577f5f4d46aa9de322fb625d4)

Exempt-From-Owner-Approval: CP from master
2020-02-27 03:05:19 +00:00
Lorenzo Colitti
23a3258189 Merge "test: ConnectivityService: Validate Route Add/Del" 2020-02-27 01:00:58 +00:00
Treehugger Robot
9407b63eb8 Merge "Quiet ds-docs-switched" 2020-02-27 00:53:47 +00:00
Amit Mahajan
e2cd048549 Change Context parameter to @NonNull.
per API-council feedback.

Test: basic sanity; only an annotation change
Bug: 148380226
Merged-in: Ife6befc7be5cd488265135d6c77c0557c7545f38
Change-Id: Ife6befc7be5cd488265135d6c77c0557c7545f38
(cherry picked from commit 3d70a9a87a)
2020-02-26 23:41:36 +00:00
Peter Wang
01d128c3f0 [Telephony Mainline] Expose getActiveSubscriptionIdList
Bug: 146362577
Test: Build
Change-Id: Ic2886c8af0ef176cffcd674eb5b1a09cb49cc8f0
Merged-In: Ic2886c8af0ef176cffcd674eb5b1a09cb49cc8f0
2020-02-26 15:09:27 -08:00
jianzhou
ef2a4c3859 AlarmManagerService: Fix FWR before boot completed
Root cause: AlarmManagerService send broadcast of TIMEZONE_CHANGED
before boot completed lead to IllegalStateException in AMS and system
skip StartWindowManagerService, and finally got crashed.
Modification: add flag Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT.

Change-Id: Iab9cd5acfeabd114371a8aaaa406a4a1c5919f98
Test: Monkey
Bug: 79550062
2020-02-26 22:52:55 +00:00
Joshua Duong
be0d76d382 Merge changes I36c6ef4b,I3c31394e
* changes:
  Allow UsbDeviceManager to start adbd again.
  Remove key from adb_keys if user forgets the key.
2020-02-26 21:39:39 +00:00
Tyler Gunn
fd4d6af2e4 Update EmergencyNumber API docs to indicate they can throw.
Adding @throws tags for EmergencyNumber APIs so that callers are aware
that they can throw.
Test: Build; docs only change.
Bug: 134100020

Change-Id: Ib26c93355a0c43744787f0eacf5c6c2e50a12474
2020-02-26 13:22:02 -08:00
Colin Cross
a2410ebbb9 Quiet ds-docs-switched
The ds-docs-switched genrule was producing 18947 lines of output,
including a single line with 266986 bytes.  Quiet all the tools
used in the genrule.

Test: m ds-docs-switched
Change-Id: I5549c34f6310469e7791b56190d5b7c1f386a5f7
2020-02-26 13:10:07 -08:00
Amit Mahajan
32f87fc6fb Merge changes from topic "Delete RcsMessage code"
* changes:
  Remove the usage of Downloads.* constants.
  Delete unused RcsMessage code for now.
  Move EXTRA_SERVICE_STATE from Intent to ServiceState.
2020-02-26 18:00:11 +00:00
Treehugger Robot
a9e6a280f8 Merge "Add missing RequiresPermission annotations in BluetoothHidHost and BluetoothMap APIs, disallow null device input for setConnectionPolicy, getConnectionPolicy, and getConnectionState in BluetoothHidHost, and BluetoothMap implements AutoCloseable, its close() method is public, and utilizes a CloseGuard." 2020-02-26 17:44:26 +00:00
Steven Moreland
4351d26575 Use String8 ostream from String8.h
Bug: N/A
Test: N/A
Change-Id: If2762ec4a9bb84cca41b1752fe005605eb9b2013
2020-02-26 09:14:29 -08:00
Joshua Duong
eb6e5bc47b Allow UsbDeviceManager to start adbd again.
There's some weird state where if persist.sys.usb.config=none,adb, then
adbd won't get started. Give back adbd start permissions to
UsbDeviceManager to see if that fixes the issue.

Bug: 150130503

Test: adb shell su 0 setprop persist.sys.usb.config none,adb; adb reboot
adb should be online after.

Change-Id: I36c6ef4b20d58570a2d51ed70088ae5c54d6687d
Merged-In: I36c6ef4b20d58570a2d51ed70088ae5c54d6687d
Exempt-From-Owner-Approval: Fix adbd offline failure
2020-02-26 08:33:19 -08:00
Joshua Duong
f7378376ca Remove key from adb_keys if user forgets the key.
It was being removed from adb_temp_keys.xml but not adb_keys.

Bug: 150138676
Bug: 111434128

Test: atest AdbDebuggingManagerTest

Change-Id: I3c31394e4480e787c771e193b179a472d6ee4a62
Merged-In: I3c31394e4480e787c771e193b179a472d6ee4a62
2020-02-26 08:22:12 -08:00