Commit Graph

100534 Commits

Author SHA1 Message Date
Sudheer Shanka
31961ce780 Update references of "DONT_DELETE_DATA" to "DELETE_KEEP_DATA".
The flag PackageManager.DONT_DELETE_DATA was renamed to DELETE_KEEP_DATA
long ago in commit 7767eac.

Bug: 28343859
Test: n/a
Change-Id: I9e4079ec394f92a3e293df7b80b627e2b6130827
2020-01-22 20:56:31 -08:00
Danning Chen
5ff476a902 Merge "Add isConversation() API to NotificationRecord and a corresponding key in Adjustment" 2020-01-22 19:15:26 +00:00
Santos Cordon
8f6ae9798e Merge "Add display configuration files." 2020-01-22 18:35:04 +00:00
Santos Cordon
4505e5e6e8 Add display configuration files.
Adds a static display configuration file for specifying static display
configurations as a sustainable API.

Bug: 131813802
Test: Verify brightness changes work as expected.  Verify changes going
through system to HAL conversion.
Exempt-From-Owner-Approval: I am new owner of lights, but OWNERS rights hasnt yet propogated.
Change-Id: I17922267f4695bc042d7c0687d4dcc10554e1b85
2020-01-22 18:34:39 +00:00
Ying Xu
6fc642806f Merge "[Telephony Mainline] Telephony uses own user activity notification" 2020-01-22 18:30:06 +00:00
Amit Mahajan
77129e43f2 Merge changes from topics "npm-add-rm-listener-api", "rename-override-constants"
* changes:
  NetworkPolicyManager: Add @SystemApi for mainlne module
  Use Context.NETWORK_POLICY_SERVICE to get network policy service
  Add setSubscriptionPlans() and getSubscriptionPlans() @SystemApi
  Add setSubscriptionOverride() to system API
2020-01-22 18:26:49 +00:00
Perumaal Shanmugam
9f22c5356f Merge "Change provideContextImage() API to accept Bitmap" 2020-01-22 18:19:34 +00:00
TreeHugger Robot
177318a092 Merge "Change method to PackageManager#getBackgroundPermissionOptionLabel" 2020-01-22 18:06:29 +00:00
TreeHugger Robot
351e3b3627 Merge "Update NetworkInfo public API." 2020-01-22 16:38:59 +00:00
Automerger Merge Worker
44d70123be Merge "Add API for CaptivePortalData" am: 144519f45d am: f3011f77d1 am: 36337e9ae1
Change-Id: I951f2eb2a0e2550f65ac87a84b76ea68c2449423
2020-01-22 16:27:53 +00:00
TreeHugger Robot
f3f7580965 Merge "Clarify lockNow usage from a managed profile" 2020-01-22 16:10:11 +00:00
Remi NGUYEN VAN
f3011f77d1 Merge "Add API for CaptivePortalData"
am: 144519f45d

Change-Id: Iaf58a9dbba5fd5fbe45ec4d795585efe9e3a9e2a
2020-01-22 08:05:11 -08:00
Oli Lan
14f52544cd Merge "Allow ModuleInfo to be retrieved using apex name." 2020-01-22 16:04:36 +00:00
Yogisha Dixit
648a443653 Merge "Add APIs in PowerManager for suppressing ambient display." 2020-01-22 16:01:42 +00:00
Automerger Merge Worker
f6d194648e Merge "Add NetworkCapabilities#getSSID to SystemApi" am: 385afc999e am: 3a8c533d65 am: c6ac75035c
Change-Id: I9bc5d535a809f4873786edbd126ee6ab7a1a293d
2020-01-22 16:01:10 +00:00
Remi NGUYEN VAN
144519f45d Merge "Add API for CaptivePortalData" 2020-01-22 15:55:17 +00:00
Automerger Merge Worker
ac3c3256aa Merge "Add new module-lib APIs for MTS testing" am: b9e3e9e34c am: 876c59823e am: 8c4c7d0039
Change-Id: I37488a81d4066d240bdc0a22dbd3c72cafd55749
2020-01-22 15:35:36 +00:00
Remi NGUYEN VAN
3a8c533d65 Merge "Add NetworkCapabilities#getSSID to SystemApi"
am: 385afc999e

Change-Id: I56b30b2719d30660e2efb32a01ab0ce4f7b30236
2020-01-22 07:30:49 -08:00
Treehugger Robot
385afc999e Merge "Add NetworkCapabilities#getSSID to SystemApi" 2020-01-22 15:23:07 +00:00
TreeHugger Robot
892e8d8767 Merge "Reset unset app-ops when the admin sets cross-profile packages." 2020-01-22 15:23:02 +00:00
Neil Fuller
876c59823e Merge "Add new module-lib APIs for MTS testing"
am: b9e3e9e34c

Change-Id: I3acc8118e444ba3255f393a622ea8405c03ffe03
2020-01-22 07:09:25 -08:00
Neil Fuller
b9e3e9e34c Merge "Add new module-lib APIs for MTS testing" 2020-01-22 15:02:23 +00:00
Aaron Huang
9204f468b0 NetworkPolicyManager: Add @SystemApi for mainlne module
1) Add NetworkPolicyManager.registerSubscriptionCallback and
   NetworkPolicyManager.unregisterSubscriptionCallback for
   registering and unregister.
2) Create SubscriptionCallback to support new @SystemApi
   so that caller could use this object to register and
   unregister.

Bug: 138306002
Test: FrameworksNetTests
      FrameworksTelephonyTests

Change-Id: I56833254a93383e8054c96d296bcb54b777a6e33
2020-01-22 23:35:24 +09:00
Oli Lan
425dd66c95 Merge "Add ApexContext API including methods to get paths for data directories." 2020-01-22 14:13:41 +00:00
Chalard Jean
c4bcf75ff7 Update NetworkInfo public API.
Wifi needs to create these objects so it can include them
in the broadcasts.

Bug: 135998869
Test: FrameworksWifiTests
Change-Id: Ic50d9b5c65e8771708620badc3bc242a8ffbb5cc
2020-01-22 06:07:00 -08:00
Aaron Huang
58d9559369 Add setSubscriptionPlans() and getSubscriptionPlans() @SystemApi
Add two interfaces to communicate with NetworkPolicyManagerService
and make them @SystemApi for mainline support.

Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests

Change-Id: I9f1168bbc70dce9b2b107e1f946737b1d85599c7
2020-01-22 23:03:28 +09:00
Aaron Huang
2d471ca1e1 Add setSubscriptionOverride() to system API
Add new API setSubscriptionOverride() in NetworkPolicyManager
and rename constants OVERRIDE_* to SUBSCRIPTION_OVERRIDE_*.
Make them @SystemApi for mainline support.

Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests

Change-Id: I56c777aa66d6f455695f133f9889979c13cd1bc8
2020-01-22 23:01:47 +09:00
Remi NGUYEN VAN
aa4c511696 Add NetworkCapabilities#getSSID to SystemApi
setSSID was added to the API, so it makes sense to have getSSID be part
of the API as well.

Test: m
Bug: 139268426
Change-Id: I6fa9c513ce4fb8ce1e3530776ce8fd5b2e77055e
2020-01-22 22:52:53 +09:00
Remi NGUYEN VAN
ead1ef41ee Add API for CaptivePortalData
CaptivePortalData will be used to hold data advertised by the network
following RFC7710bis.

To fetch the CaptivePortalData, the API URL is added to LinkProperties,
to be provided by the NetworkAgent.

Because CaptivePortalData can be used to guess user location (especially
from the URLs provided by the portal), it is only exposed to
applications that have privileged permissions.

Test: atest FrameworksNetTests
Bug: 139269711
Change-Id: I341175b5fece8ee00e19898af5e8eabe66cefbf3
2020-01-22 22:27:44 +09:00
Alex Kershaw
4b0197d8ba Reset unset app-ops when the admin sets cross-profile packages.
When the admin unsets cross-profile packages, reset the
INTERACT_ACROSS_PROFILES app-op back to the default if it is no longer
configurable by the user.

Other minor changes:
- Remove the explicit app-op permission check from
setInteractAcrossProfilesAppOp, since AppOpManager performs that check
when required.
- Fix the broadcasting logic in CrossProfileAppsServiceImpl to correctly
set the component and flags.

Bug: 136249261
Bug: 148010178
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.ManagedProfileCrossProfileTest
Change-Id: Ib8b5f331fb92fc475bc95ad039adf93fac04da37
2020-01-22 13:20:24 +00:00
Yogisha Dixit
9c20afa9d0 Add APIs in PowerManager for suppressing ambient display.
Added 4 methods:
boolean isAmbientDisplayAvailable()
void suppressAmbientDisplay(String token, boolean suppress)
boolean isAmbientDisplaySuppressedForToken(String token)
boolean isAmbientDisplaySuppressed()

This CL simply adds the API to toggle SUPPRESS_DOZE. The code for
actually turning off doze when the secure setting is updated will be
implemented in a follow-up CL.

Test: manual, atest FrameworksServicesTests:PowerManagerServiceTest
Bug: 147584235, 147587449
Change-Id: I54f46f75fb84aae2ae806690e73eeb427ad8e8e1
2020-01-22 13:20:06 +00:00
TreeHugger Robot
a263d01c44 Merge "Rename PacProcessor#makeProxyRequest to PacProcessor#findProxyForUrl." 2020-01-22 12:35:03 +00:00
Eran Messeri
d0d2a86995 Merge "Mark storage encryption functions as deprecated." 2020-01-22 10:25:12 +00:00
Remi NGUYEN VAN
0e4d731bbc Merge "Delete NetworkFactory from frameworks/base/core." 2020-01-22 08:06:32 +00:00
TreeHugger Robot
5561857cc7 Merge "Revert "Adds a new ACCESS_CONTEXT_HUB permission"" 2020-01-22 07:59:31 +00:00
Jack Yu
26a8cbe1ed Merge "API changes for IPv6 MTU support" 2020-01-22 07:38:53 +00:00
Alex Kershaw
709517e805 Merge "Add CrossProfileApps#startActivity which takes an Intent." 2020-01-22 07:37:03 +00:00
Taran Singh
0b19cd94c8 Merge "Pipe windowToken of window requesting IME" 2020-01-22 07:36:51 +00:00
Alex Kershaw
12d0ea4b58 Merge "Add system API for building document URI with user ID." 2020-01-22 07:34:45 +00:00
Jaewan Kim
21de9eebb5 Revert "Adds a new ACCESS_CONTEXT_HUB permission"
This reverts commit 4042897855.

Bug: 135951924
Reason for revert:
   Breaks PermissionPolicyTest.platformPermissionPolicyIsUnaltered
   in CtsPermission2TestCases

Change-Id: Ie48fca6a0c54e281aae0db6cd9652b49cebbaa5c
2020-01-22 06:23:44 +00:00
Shu Chen
47ca469930 Merge "Implement the new magnifier effect." 2020-01-22 06:06:33 +00:00
TreeHugger Robot
a6a219e657 Merge "Fix some thread handling issues in InputMethodManager" 2020-01-22 06:03:38 +00:00
Sean Pont
4805925645 Merge "Add QuickAccessWallet API" 2020-01-22 05:36:01 +00:00
Chiachang Wang
23d5f84adc Merge changes from topic "networkagent"
am: 0ed49867e2

Change-Id: Iaebb3aaced18257f4beffacc13a0d87efa1a7ec7
2020-01-21 21:32:52 -08:00
Lorenzo Colitti
9e44006fb8 Rename NetworkMisc to NetworkAgentConfig.
am: 2dda9e0627

Change-Id: I1dae34487a5ea484c17895a2d7ae694e8ae1973a
2020-01-21 21:32:30 -08:00
Chiachang Wang
0ed49867e2 Merge changes from topic "networkagent"
* changes:
  Add a Builder to NetworkAgentConfig, and make it SystemApi.
  Rename NetworkMisc to NetworkAgentConfig.
2020-01-22 05:27:51 +00:00
Chiachang Wang
4fae98e083 Merge "Make NetworkAgent stop subclassing Handler."
am: a11ae54bee

Change-Id: Ie308e86e1b1173b0ec7fb7ac4a4f0b6c2bcfafa6
2020-01-21 20:42:19 -08:00
Benedict Wong
418b97e5db Merge "Add new appop for Platform VPNs"
am: b8dd5bcc23

Change-Id: Ia44f9491f3951e3f7dda2c03e5d33452bb2e94d3
2020-01-21 20:39:02 -08:00
lumark
3f733cc7ef Fix some thread handling issues in InputMethodManager
- Make sure onCheckIsTextEditor should be called on the UI thread for
preventing exception in some cases that will break start input background
thread.

- Refine IMM#checkFocus and DelegateImpl#startInput to be out of
lock object to prevent start input background thread may blocked by other
methods which already inside the lock.

- Cache InputMethodManagerDelegate object for ImeFocusController#getDelegate.

Fix: 147447217
Bug: 141738570
Test: manual as test steps:
     1) Launch Keeeps app, type some web-URL link.
     2) Long press on any URL link > From the toolbar select "open / browser"
        and observe.
     3) Expect the soft-keyboard should be hidden after entering the
     browser page.
Test: atest CtsInputMethodTestCases

Change-Id: I098df41f935438bf1889fb030c7a3e7a0645a168
2020-01-22 12:34:14 +08:00
Automerger Merge Worker
9ad283553d Merge "Throw IOException on multiple connects." am: 632e515468 am: ead7c0e489 am: e5ad71ec99
Change-Id: I2b8ebf4a2b33f754550c2865c5ac33e107feb3af
2020-01-22 04:34:11 +00:00