Commit Graph

111326 Commits

Author SHA1 Message Date
Lee Shombert
be9ba356aa Clean up hasSystemFeature binder cache
Bug: 140788621

This is a non-functional clean-up.
1. Rename the classes and methods used by the binder cache so that
   everything public is based off of the binder name "hasSystemFeature".
2. Modified the hashCode() method to conform to the comments in cl/9965760

Test: Built a debug image and ran one iteration of MPTS.  Verified that no
errors were seen.

Change-Id: I3ffdda43a7dbe30a12449ff346e1e22b379ee308
2020-01-24 10:48:53 -08:00
TreeHugger Robot
614a7316f1 Merge "BatteryStatsManager: Address API council feedback" 2020-01-23 23:30:36 +00:00
Brad Ebinger
782e5ac9d9 Merge "Add IMS_RCS_UCE_ENABLED column to SimInfo database" 2020-01-23 23:26:19 +00:00
TreeHugger Robot
296afcc029 Merge "Expose system update related API to corp-owned managed profile" 2020-01-23 21:41:39 +00:00
Shuzhen Wang
0d7929c51c Merge "CameraManager: Add physical camera availability callback" 2020-01-23 21:04:19 +00:00
Alex Buynytskyy
37009349f0 Merge "Add system API annotation to expose Incremental classes as system APIs." 2020-01-23 20:11:19 +00:00
Mike Ma
42e623587a Merge "Dump contexthub in protobuf format" 2020-01-23 19:45:54 +00:00
Steven Thomas
8c9f31b8b0 Merge "Add setFrameRate() api" 2020-01-23 19:40:20 +00:00
Alex Buynytskyy
6f527bfff5 Merge "Streaming Installation API update." 2020-01-23 19:03:34 +00:00
Sudheer Shanka
04ca345ef2 Merge "Update references of "DONT_DELETE_DATA" to "DELETE_KEEP_DATA"." 2020-01-23 18:46:48 +00:00
Alex Johnston
371edb56f3 Merge "Modify setApplicationHidden and isApplicationHidden APIs" 2020-01-23 18:42:54 +00:00
Grace Jia
c3458b6bc7 Merge "Delete hidden API in Telephony.ServiceStateTable" 2020-01-23 18:28:51 +00:00
shengcow
0696c44824 Add system API annotation to expose Incremental classes as system APIs.
Test: None
Change-Id: Iddf69534cd88670af34267287ae8ee63ed24d7c7
Bug: 148217803
2020-01-23 18:09:08 +00:00
Rubin Xu
ca00dd4900 Expose system update related API to corp-owned managed profile
Allows profile owner of corporate-owned managed profile to call
the following APIs:
* setSystemUpdatePolicy
* installSystemUpdate

The following APIs can already be called by regular profile owners
so no changes are needed:
* getSystemUpdatePolicy
* getPendingSystemUpdate

Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testSystemUpdatePolicy
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testInstallUpdate
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSystemUpdatePolicy
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testInstallUpdate
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testInstallUpdateLogged
Bug: 147414327
Change-Id: I7224eb208f665ca7cb301daa7d17cce5126f7858
2020-01-23 17:35:41 +00:00
Alex Johnston
a552dd65fa Modify setApplicationHidden and isApplicationHidden APIs
* Introduced new logic that allows the profile owner of an
  organization-owned device (COPE PO) to hide/unhide system
  apps in the personal profile.
* Modified both APIs to be callable on the parent profile
  instance if called by the COPE PO.
* When called by the COPE PO, the package provided
  must be a system package, otherwise an IllegalArgument
  Exception is thrown.

Bug: 147413198
Test: manual testing
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testApplicationHidden
      atest com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled

Change-Id: I4fae8acee9f00e3b9c805f29cf826f917cda6abd
2020-01-23 17:05:58 +00:00
Alex Buynytskyy
e069787195 Streaming Installation API update.
- location and streaming signature,
- obtain data loader params.

Test: atest PackageManagerShellCommandTest SplitTests
Bug: b/136132412 b/133435829

Change-Id: I08a06e827aaf8f0eab40fe1d59f5c9826ce6e78b
2020-01-23 08:53:23 -08:00
Brad Ebinger
071d4201fc Add IMS_RCS_UCE_ENABLED column to SimInfo database
Add the ability for the user to turn on/off UCE in settings.

Bug: 148167203
Test: atest CtsTelephonyTestCases:RcsUceAdapterTest
Change-Id: Ic53a9ef32343bfa4d96c2cf7fc0f0791265d2bd1
2020-01-23 08:40:34 -08:00
TreeHugger Robot
457318ef6d Merge "Fixes SparseSetArray#add return logic" 2020-01-23 16:39:49 +00:00
Adrian Roos
cce89e2785 Merge "Introduce WindowMetrics and WM#getCurrent/MaximumWindowMetrics" 2020-01-23 16:30:47 +00:00
Adrian Roos
1a585bec15 Merge "Window Manager Flag Migration (12/n)" 2020-01-23 16:29:44 +00:00
Roshan Pius
ed8b445e18 BatteryStatsManager: Address API council feedback
Bug: 144925883
Test: Compiles, device boots up & connects to wifi networks
Change-Id: If3e96428057232053b7edcf0442fdc001aa2dc89
2020-01-23 08:12:39 -08:00
Ivailo Karamanolev
1a6fad470a Merge changes from topics "add-lights-manager", "lights-aidl-hal"
* changes:
  Add LightsManager implementation to LightsService
  Add Lights AIDL HAL support to LightsService
  Rename Light to LogicalLight to avoid namespace conflicts when adding AIDL HAL lights support.
2020-01-23 16:05:07 +00:00
TreeHugger Robot
03e931d330 Merge changes from topic "add-work-tab"
* changes:
  Tests for personal and work tab logic.
  Add personal and work tabs to share sheet and intent picker.
2020-01-23 15:30:11 +00:00
Etan Cohen
5e170351a8 Merge "[CDM][WIFI] Provide a permission for Wi-Fi association approval for companion apps" 2020-01-23 15:28:56 +00:00
Pavel Grafov
31c7fe0459 Merge "Add DPM methods to allow org owned PO to suspend personal apps" 2020-01-23 15:22:45 +00:00
TreeHugger Robot
b43c634bb4 Merge "Export timestamp of the creation of install session. The timestamp is an useful signal for downstream to determine post-creation operation." 2020-01-23 15:21:55 +00:00
Eran Messeri
d474dcd54f Merge "Prevent auto-granting of location permission via DPM" 2020-01-23 14:38:56 +00:00
TreeHugger Robot
adaf2a3068 Merge "NetworkScoreManager: Address API review comments" 2020-01-23 14:03:18 +00:00
arangelov
cf26864a3b Add personal and work tabs to share sheet and intent picker.
Currently both tabs are disabled under the
ENABLE_TABBED_VIEW flag until other issues are fixed.

Things this CL does:
- Add personal and work tab if there is a work profile on device
- Load the sharesheet/intent resolver targets when we
open the relative tab, and only load it the first time
- Always first show the tab for the current profile, e.g. for
work profile we show the work tab first
- Disable ViewPager manual swiping
- Remove resolver list horizontal dividers
- Always show the current profile's last opened app
recommendation

Tests are in the follow-up CL.

Bug: 142537267
Bug: 142538125
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverActivityTest
Test: manually share with personal and work apps from both
the personal and work profiles.

Change-Id: Ie02c6b1d46b30facc9f1b04691cbcdd4e06b0fa9
2020-01-23 13:55:22 +00:00
Pavel Grafov
499f005e3d Add DPM methods to allow org owned PO to suspend personal apps
* When personal apps are suspended, only dialer, IMEs, a11y, launcher
  are some other critical apps are exempted.
* User is presented with notification, clicking on which invokes an
  activity in the DPC.

Bug: 147414651
Test: manual via TestDPC
Change-Id: I09f8dad08e54b0ce8201cd5c76b3f34342e0da8f
2020-01-23 13:33:39 +00:00
Adrian Roos
d7d9c3e354 Merge "Introduce WindowContext API" 2020-01-23 13:19:08 +00:00
Wale Ogunwale
ca5714920f Merge "Update IMM delegate if view root is moved to a different display" 2020-01-23 13:18:22 +00:00
Tiger Huang
527244459c Window Manager Flag Migration (12/n)
- Unhide new APIs
- MaxInsets -> InsetsIgnoringVisibility
- Deprecate SystemUI flags
- Deprecate some other stuff

Bug: 118118435
Test: Build, CTS coming soon
Change-Id: I0a0cbdb48258b3779d536668b59e8c88f3c96d18
Exempt-From-Owner-Approval: Trivial rename
2020-01-23 14:11:39 +01:00
Jorim Jaggi
80443cf213 Merge "Fix fraction, and other cleanup" 2020-01-23 12:49:32 +00:00
Jorim Jaggi
af30559dc3 Merge changes from topic "content_apply"
* changes:
  Force non-floating main app windows to not fit anything
  Introduce Window.setContentOnApplyWindowInsetsListener
2020-01-23 10:52:36 +00:00
Riddle Hsu
d4502794dc Update IMM delegate if view root is moved to a different display
Although it makes sense to not get IMM delegate every time, the
instance may need to be refreshed if the associated display is
changed because InputMethodManager returns different instance for
different display.

Fix: 148189172
Test: atest MultiDisplayClientTests# \
            testDisplayIdUpdateWhenImeMove_NoRelaunchActivity

Change-Id: Id4c85be1c0eab51f167ba00fc355386f852c424d
2020-01-23 18:07:32 +08:00
TreeHugger Robot
1dfa08957b Merge "Call buildWorkingProcs in dumpProto" 2020-01-23 09:41:30 +00:00
Al Sutton
c8f1f33ed4 Merge "Add feature flag for "no data" backup calls" 2020-01-23 07:31:51 +00:00
TreeHugger Robot
62a96a11f8 Merge "Add surrounding text to EditorInfo to speed up IME startup" 2020-01-23 06:45:34 +00:00
Matt Pape
e4b7a310c6 Merge "Adds scoped DeviceConfig reset support to RescueParty." 2020-01-23 05:14:23 +00:00
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
Automerger Merge Worker
b864dc150e Merge changes from topic "connectivity-diagnostics-system-server" am: 9cd249c11a am: 45e0caf5dc am: 1544e76f76
Change-Id: If70281f2989778896eb34ac65bcfe0215393ef60
2020-01-23 03:41:09 +00:00
Automerger Merge Worker
922b9d3856 Merge "Remove StringNetworkSpecifier" am: bdbc3e7e4e am: fa25f2f38c am: ec06afee8a
Change-Id: I60c9e49085701e05bddbed6a8735e6973e9f2986
2020-01-23 03:40:48 +00:00
Lorenzo Colitti
5aae73ad00 Merge "Always set NetworkInfo objects to available." 2020-01-23 03:29:58 +00:00
Yinglei Wang
51683fa8fa Merge "Set stateDescription during ProgressBar initialization" 2020-01-23 03:12:13 +00:00
Cody Kesting
45e0caf5dc Merge changes from topic "connectivity-diagnostics-system-server"
am: 9cd249c11a

Change-Id: I48a9f1f734b5e2dd4f7ed91c052cec5c8c62c076
2020-01-22 19:10:05 -08:00
Nathan Harold
fa25f2f38c Merge "Remove StringNetworkSpecifier"
am: bdbc3e7e4e

Change-Id: If2b9e1ef7341b517cb0090ba0ff882b1a6305ed4
2020-01-22 19:09:13 -08:00
TreeHugger Robot
2a8fae9828 Merge changes from topic "voiceinteraction-model-enrollment"
* changes:
  async enrollment support AlwaysOnHotwordDetector
  add KeyphraseModelManager
2020-01-23 02:46:50 +00:00
Mike Ma
b17f056cfc Call buildWorkingProcs in dumpProto
dumpProto() currently does not dump any processes unless "dumpsys
cpuinfo" is called first, because we did not call buildWorkingProcs
in dumpProto().

Bug: 146086163
Test: Build and dumpsys cpuinfo --proto
Change-Id: I992eff6f429397424165277b7145cef295571982
2020-01-22 18:33:48 -08:00
Charles Chen
f65e022caa Introduce WindowMetrics and WM#getCurrent/MaximumWindowMetrics
Bug: 128338354
Bug: 146820733
Test: atest WindowMetricsTests

Change-Id: I328b1b5a2296e470072a439e412276c1b6008789
2020-01-22 18:30:40 -08:00