Commit Graph

26784 Commits

Author SHA1 Message Date
Rhed Jao
a7ac868de8 Merge "Accessibility shortcut improvement (4/n)" 2019-11-25 03:53:24 +00:00
Roshan Pius
61069abccb Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module" 2019-11-24 06:57:07 +00:00
Shuo Qian
4aeff5ba6e Merge "Introduce APIs for Emergency Number Database version" 2019-11-23 02:33:50 +00:00
TreeHugger Robot
276b49f758 Merge "Create empty PowerWhitelistManager." 2019-11-23 01:33:12 +00:00
TreeHugger Robot
cd79af4eec Merge "Initial IME inline suggestions APIs" 2019-11-23 01:21:02 +00:00
TreeHugger Robot
2768219198 Merge "Revert "Make getStateDescription() in View none final"" 2019-11-22 22:37:00 +00:00
TreeHugger Robot
72672006c8 Merge "Make Settings.Global.HIDE_ERROR_DIALOGS a TestApi" 2019-11-22 22:09:36 +00:00
Ahmed ElArabawy
c9f242dad3 Wifi: Make setScanningEnabled() a system API
This commit makes the the API WifiScanner.setScanningEnabled() a System
API to allow priviliged apps to use it.

Bug: 140541571
Test: atest com.android.wifi.server
Change-Id: Id7377415699f2d8a8aea396889716dca1e23ecd5
2019-11-22 21:56:48 +00:00
Kweku Adams
e371b09fbf Create empty PowerWhitelistManager.
This is the first step in extracting the power whitelist from
DeviceIdleController. The whitelist will stay inside the JobScheduler
mainline module boundary, so all calls will have to be made through a
stable API. Eventually, all users of IDeviceIdleController will be
migrated to this interface.

Bug: 140141678
Bug: 141155196
Bug: 144864180
Test: atest PowerWhitelistTest
Change-Id: I8468e74ac8fe6611bfa957d4f5093c8d15be1299
2019-11-22 11:54:24 -08:00
Deepika Likhite
27b2fa177d Revert "Make getStateDescription() in View none final"
This reverts commit c9cb2e8307.

Reason for revert: <http://b/144786884>

Bug: 144786884

Exempt-From-Owner-Approval:see go/perf-revert-first

Change-Id: I0dd6047c2d3c8d757d8e1afe66d85a60075536b6
2019-11-22 18:31:01 +00:00
Feng Cao
04830a3faf Initial IME inline suggestions APIs
Test: manual verification with other local changes
Bug: 137800469

Change-Id: Ia0ead9d7208512920a3277559cef0bb92bea35f5
2019-11-22 10:23:37 -08:00
David Su
3a9a1fb8f9 Merge changes from topic "wifi-manager-constructors"
* changes:
  Removed references to Manager AIDL from constructors
  Migrate WifiCommand to WifiShellCommand
2019-11-22 18:00:23 +00:00
Mohammad Samiul Islam
07b53113f1 Merge "Prevent staging multiple sessions on devices not supporting checkpoint" 2019-11-22 17:44:32 +00:00
Jack Yu
563151db65 Merge "Added sub id to SmsCbMessage" 2019-11-22 17:28:43 +00:00
Matt Pape
e6bc101c5f Merge "Add DeviceConfig.setProperties method for atomic writing." 2019-11-22 17:19:28 +00:00
Rhed Jao
b7d554f4a8 Merge "Revert "Accessibility shortcut improvement (2/n)"" 2019-11-22 08:04:04 +00:00
cncn
f4878a0094 Merge "Make Notification.Builder.SetFlag public" am: c8bd4aecb3 am: dca2d45630
am: 689403c3d5

Change-Id: I8e8d117020327593833536ae7ee43e5b94899c9e
2019-11-21 19:02:49 -08:00
cncn
dca2d45630 Merge "Make Notification.Builder.SetFlag public"
am: c8bd4aecb3

Change-Id: I3b8ff8e7c754b12778e40a9abcc829fb7a12671b
2019-11-21 18:41:27 -08:00
TreeHugger Robot
3674ae2f7b Merge "Use static filter for inflater of RemoteViews" 2019-11-22 01:02:28 +00:00
Treehugger Robot
c8bd4aecb3 Merge "Make Notification.Builder.SetFlag public" 2019-11-22 00:39:10 +00:00
Ytai Ben-tsvi
a99e006cd8 Merge changes from topic "hidl-memory-java"
* changes:
  Add HidlMemoryUtil
  Add parceling support for HIDL memory in Java
2019-11-22 00:33:34 +00:00
David Su
7053199213 Merge changes from topic "rssi-level-thresholds"
* changes:
  Add new WifiManager API to calculate signal levels
  Fix broken test caused by calculateSignalLevel() migration
  Migrate WifiStatusTracker calculateSignalLevel()
2019-11-22 00:07:50 +00:00
Jordan Liu
850525ffaf Merge "Expose SmsCbLocation and SmsCbMessage constructors"
am: d87727f7d9

Change-Id: I24bfb6ed5fa25a810c2a5fe78745091f5b576162
2019-11-21 15:02:37 -08:00
cncn
9d0fd9c9d6 Make Notification.Builder.SetFlag public
Bug: 144846447
Test: Build Successfully
Change-Id: If25bede41eec1f7e7ca3ae8fc669df1964d7da05
2019-11-21 22:55:13 +00:00
Matt Pape
4bd0a6a259 Add DeviceConfig.setProperties method for atomic writing.
This method accepts multiple flags and overrides the values of all flags
in the provided namespace atomically. If any listeners are registered
for that namespace it will also trigger a callback with all of the flags
that were changed (added, updated, or removed).

Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug: 136135417

Change-Id: I2e496a3807493750ba8891dd6390055c919b5f45
2019-11-21 14:51:17 -08:00
David Su
409f371488 Removed references to Manager AIDL from constructors
Converted constructors of Wifi Managers to not reference
their AIDL interfaces since they are @hide and cannot be
referenced by the platform.

Bug: 140299412
Test: atest FrameworksWifiApiTests
Change-Id: If43ce6916ddee5357cdcc8cd27d5620a67d21165
2019-11-21 14:46:43 -08:00
Terry Wang
2cf38fe7e9 Merge "Add a new system service for app search project" 2019-11-21 22:43:08 +00:00
Jack Yu
750b8b1972 Added sub id to SmsCbMessage
Added a new field subscription id to SMS
cell broadcast message.

This is the preliminary step of deprecating
CellBroadcastMessage class.

Bug: 144891074
Test: Manual
Change-Id: I23f61e77f6a9a16ce77f7892ba96fd7485c555a4
2019-11-21 14:21:56 -08:00
Terry Wang
ecc0d1b2c1 Add a new system service for app search project
Bug: 142567528
Test: manual
Change-Id: Iefb426383f94ec89c896065c798b22cfb2977bf3
2019-11-21 14:15:22 -08:00
Ytai Ben-Tsvi
4659e18733 Add parceling support for HIDL memory in Java
This change adds support for reading/writing a HidlMemory
instance into / out of a HwParcel and HwBlob, in a format that
is compatible with the hidl_memory C++ type.
This paves the way to be able to exchange shared memory blocks
between native and Java via HwBinder, which will be exposed
as adding Java support for the HIDL 'memory' type.

Change-Id: I6cbbf852218c8a631f9014e7caa7a97d17e11889
Bug: 143566068
2019-11-21 13:38:39 -08:00
TreeHugger Robot
5d1c9a388a Merge "Exposing WorkSource hidden APIs as system APIs" 2019-11-21 21:15:48 +00:00
Jordan Liu
c3922ef9a4 Expose SmsCbLocation and SmsCbMessage constructors
Bug: 135956699
Test: manual
Change-Id: Ic2a58005db6f5d01b6769b84b8cf7d5f013bbbf1
Merged-In: Ic2a58005db6f5d01b6769b84b8cf7d5f013bbbf1
2019-11-21 13:14:02 -08:00
David Su
c4df6668bb Merge "NetworkKey: migrate from ScanResult.wifiSsid to SSID"
am: 1124e240c0

Change-Id: Ia0c92f1db33b0a884da7388cd31b33d51df29288
2019-11-21 11:50:57 -08:00
Jayachandran Chinnakkannu
5d9097c4f1 Merge "Remove access to the telephony manager constructors from SystemRegisteryService" 2019-11-21 19:09:49 +00:00
TreeHugger Robot
039f7731b9 Merge "Add more error codes." 2019-11-21 19:03:09 +00:00
David Su
1124e240c0 Merge "NetworkKey: migrate from ScanResult.wifiSsid to SSID" 2019-11-21 18:44:46 +00:00
David Su
3c9241075a Add new WifiManager API to calculate signal levels
New calculateSignalLevel() overload allows RSSI level
thresholds to be potentially overlaid.

Bug: 140781184
Test: compiles
Change-Id: Ic6c84885dbe17ca39600dc8d8eb5aeff641a0ad3
2019-11-21 10:11:14 -08:00
Chen Xu
da22ddac87 Merge "expose systemAPI for SmsCbLocation constructor"
am: 174b988133

Change-Id: Id44432a314e2becf72818f445120dbbe8367f9bc
2019-11-21 09:49:17 -08:00
Jayachandran C
58fd3eb31a Remove access to the telephony manager constructors from SystemRegisteryService
Introduce a new system API called TelephonyFrameworkInitializer
and invoke from SystemRegisteryService for registering the services

Bug: 144892231
Test: Telephony Sanity
      atest frameworks/opt/telephony/tests/telephonytests/

Change-Id: Ic1a2f66948c53f6426be733563fb050b67dcb320
2019-11-21 17:41:50 +00:00
Chen Xu
174b988133 Merge "expose systemAPI for SmsCbLocation constructor" 2019-11-21 17:38:41 +00:00
Makoto Onuki
d52db070cd Merge "Explicitly take flags in createContextAsUser()"
am: a7948ddcb9

Change-Id: I6947903d66da1e64c461a1557e82a72a97a8848b
2019-11-21 08:05:06 -08:00
Mohammad Samiul Islam
cc4c7d8cc6 Prevent staging multiple sessions on devices not supporting checkpoint
Bug: 141843321
Test: atest StagedInstallTest#testFailStagingMultipleSessionsIfNoCheckPoint
Change-Id: I118ae628649e9bef82641ef18841205091e98a6a
2019-11-21 14:30:34 +00:00
TreeHugger Robot
2f6c5fe32f Merge changes from topic "broadcast_multiple_perm"
* changes:
  AndroidKeyStoreProvider: Add @throws documentation
  RemoteException: Add @throws documentation
  Context: Rename Context.sendBroadcastMultiplePermissions
2019-11-21 06:28:10 +00:00
TreeHugger Robot
f6924b1c55 Merge "Adds new API to cancel current session" 2019-11-21 06:27:50 +00:00
Makoto Onuki
6b1e9d2f9f Explicitly take flags in createContextAsUser()
Bug: 142472686
Test: atest android.content.cts.ContextTest#testCreateContextAsUser
Change-Id: Id2e3d5ffe5887a4916e0872a7e85d62cbb439744
(cherry picked from commit e5449f0b34)
Merged-in: Id2e3d5ffe5887a4916e0872a7e85d62cbb439744
2019-11-20 16:20:23 -08:00
Chen Xu
2105a42191 expose systemAPI for SmsCbLocation constructor
Bug: 135956699
Test: cts SmsCbLocationTest
Change-Id: I7b9c6fa453ee907aaa13d65e0b13de0556852313
(cherry picked from commit 8635f37b96)
Merged-in: I7b9c6fa453ee907aaa13d65e0b13de0556852313
2019-11-20 15:53:02 -08:00
Shuo Qian
1b28fdd6dd Introduce APIs for Emergency Number Database version
1) Test API to override file partition for testing
2) System API to notify Telephony Emergency Number database installation
 complete
3) Remove broadcast mechanism

Test: gts
Bug: 136027884

Change-Id: Ie2b0c390948c82ccbb94187a6ded9affd162f5ab
2019-11-20 15:52:20 -08:00
Roshan Pius
a2baf58e26 Context: Rename Context.sendBroadcastMultiplePermissions
Renaming based on API council feedback. Leaving the old API as @hide
since there are other modules in platform using the old API.

Bug: 144793100
Test: Compiles
Change-Id: Id3fd01da3b4163d186cf9651a5b2b82c18859239
2019-11-20 14:47:43 -08:00
Jordan Liu
337e999d5c Merge "Remove unneeded @RequiresPermission annotation" am: 0a1b47573e am: 277ea3584f
am: ec296c8e53

Change-Id: I2e8d0718a56bcc205f3fa93244b0ee9d8b367707
2019-11-20 14:37:17 -08:00
Suprabh Shukla
f7cffa7aaf Exposing WorkSource hidden APIs as system APIs
Users of these APIs are planning to move to apex.

Test: atest FrameworksCoreTests:android.os.WorkSourceTest
atest CtsOsTestCases:android.os.cts.WorkSourceTest

Bug: 143551137
Change-Id: I2e97a8b469254ea92e3ee21571ee8ae3cbb9abbe
2019-11-20 14:26:47 -08:00