Commit Graph

14551 Commits

Author SHA1 Message Date
Varun Shah
f17440439e Merge "Added a new "wellbeing" protection flag." 2018-12-10 22:46:14 +00:00
TreeHugger Robot
11468cdb86 Merge "Don't throw an exception if write failed" 2018-12-10 22:12:27 +00:00
Philip P. Moltmann
efcda865a5 Merge "Revert "Adds wrapper method to convert string ops to ints"" 2018-12-10 21:56:22 +00:00
Hai Zhang
f8b6203284 Merge "Add test for RoleManager." 2018-12-10 19:25:43 +00:00
Hui Yu
af4fcdcb91 Merge "Add manifest service attribute foregroundServiceType" 2018-12-10 18:59:49 +00:00
TreeHugger Robot
a5a81d2458 Merge "Add IMMS#showInputMethodPickerFromSystem." 2018-12-10 18:56:40 +00:00
Varun Shah
47f43001ed Merge "Added a new API for SUW: ActivityManager#switchUser(UserHandle)." 2018-12-10 18:33:36 +00:00
TreeHugger Robot
4c47901848 Merge "Add metrics for DevicePolicyManagerService methods (Part 1)" 2018-12-10 18:14:43 +00:00
Makoto Onuki
e9d3ef1516 Merge "Prioritize FGS jobs over BFGS jobs" 2018-12-10 17:09:55 +00:00
Ruslan Tkhakokhov
473bf69769 Make restoreSome API be @SystemAPI
Bug: 112292976
Test: atest RestoreSessionHostSideTest
Change-Id: Ic453be3ffed43a48839b3bcaf19438d9987eb201

RestoreSession#restoreSome is used from pixelmigrate to start a systemRestore
of packages selected by user, currently this needs to be done via reflection.
2018-12-10 12:13:53 +00:00
TreeHugger Robot
2eb3473d0d Merge "Private DNS connectivity check" 2018-12-08 22:50:21 +00:00
Makoto Onuki
ec8b14d02e Prioritize FGS jobs over BFGS jobs
Also improve dumpsys output for priorities.

Also now "evaluated priority" is always printed, for easier debugging.

Bug: 111360323
Test: atest CtsJobSchedulerTestCases

Change-Id: Iee74eda5fb290cf46e7c8fdd74a0804d03328d29
2018-12-08 09:42:26 -08:00
TreeHugger Robot
e5bd844eaf Merge "Revert "Notify AutofillManager in onResume() IFF activity was not recreated."" 2018-12-08 16:25:27 +00:00
Varun Shah
5f303659c2 Added a new "wellbeing" protection flag.
Permissions that have the new wellbeing protection flag will be granted
to the wellbeing app, as defined by the OEM in the system resource.

The ACCESS_INSTANT_APPS permission is updated to use the wellbeing
flag. The SUSPEND_APPS permission will also follow the same model now.

Bug: 119330345
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Test: atest com.android.server.pm.SuspendPackagesTest
Test: atest com.google.android.suspendapps.permissionpolicy.gts.SuspendAppsPermissionPolicyTest
Change-Id: Iffedc7704824292be48a4ef198fff97c1e5c39da
2018-12-07 17:10:28 -08:00
arangelov
37a6217e5b Add metrics for DevicePolicyManagerService methods (Part 1)
CTS tests will be added in a later CL.

Bug: 119911940
Test: Manual
Change-Id: I040deec232e40b223821a5c521661310f78e6cba
2018-12-07 22:03:42 +00:00
Jeff Sharkey
53dc18ba95 Merge "Define app-op controlling legacy storage behavior." 2018-12-07 20:55:15 +00:00
Ben Lin
e55cd3e84a Revert "Notify AutofillManager in onResume() IFF activity was not recreated."
This reverts commit e579033d76.

Reason for revert: b/120160981, broke CTS

Bug: 120160981
Change-Id: I2caa58b155e24281ae02f96dc9c54458df15fc5a
2018-12-07 20:30:57 +00:00
Wei Wang
c90e979d6e Merge "Throttle jobs when thermal status is in THROTTLING_SEVERE and above" 2018-12-07 19:17:40 +00:00
Selim Cinek
691f5a71a2 Merge "Fixed a padding issue if there is no right icon but a reply icon" 2018-12-07 18:41:18 +00:00
Amith Yamasani
6283cb89ae Don't throw an exception if write failed
When passing input/output streams between shell command
and caller via UiAutomation, the stream could be closed
by the instrumentation test. Don't throw an exception
if the write failed (due to race). Just log the error.

Change-Id: I601589c6dc36fe51f5cc57276084a11f0be3d57d
Fixes: 119848628
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
2018-12-07 10:12:13 -08:00
TreeHugger Robot
c3effa7b8d Merge "Add extra in DevicePolicyManager for provisioning trigger." 2018-12-07 17:43:22 +00:00
David Brazdil
32ef51c24a Merge "Move DexLoadReporter setup before AppComponentFactory calls" am: 385c42a2e9 am: 4e7a33fb08
am: aa1361470d

Change-Id: Ice606e7cee5e7e121b1e3f76f88cbb092a45bcdd
2018-12-07 01:42:59 -08:00
lumark
0b05f9e49d Add IMMS#showInputMethodPickerFromSystem.
Since the NavBar will be supported for multi-display, for
single session IME, it will be possible that IME switcher icon
will shown on external display.

Add IMMS#showInputMethodPickerFromSystem for system modules (i.e.
Settings or SystemUI) to pass displayId for creating right display
context, so that IME switcher dialog can shown on the display
correctly.

Also Add a TODO item for ACTION_SHOW_INPUT_METHOD_PICKER notification
that currently only support showing IME picker for default display,
this should support per display after supporting status bar per display.

Bug: 119933861
Fix: 120050928
Test: manual, verify IME switcher dialog can shown on external display
      when tapping IME switcher icon on external navbar.
Test: atest InputMethodManagerTest#testShowInputMethodPicker

Change-Id: Ic7d7c5a7ad8005a3fbd9d1c1b73e3c5a39a07001
2018-12-07 17:30:24 +08:00
David Brazdil
aa1361470d Merge "Move DexLoadReporter setup before AppComponentFactory calls" am: 385c42a2e9
am: 4e7a33fb08

Change-Id: Ic9de05b50ce8bb914e1c69d20561e63fd1430d8f
2018-12-07 01:26:28 -08:00
David Brazdil
385c42a2e9 Merge "Move DexLoadReporter setup before AppComponentFactory calls" 2018-12-07 09:04:56 +00:00
Philip P. Moltmann
a859fc1b87 Revert "Adds wrapper method to convert string ops to ints"
This reverts commit 05dfae98d6.

Reason for revert: Not needed more as re-up is now in permission controller

Bug: 117677214
Change-Id: I78b15576eb64a912b08d82efca361422f3ec72af
2018-12-06 21:49:47 -08:00
Wei Wang
8c0c3c10ec Throttle jobs when thermal status is in THROTTLING_SEVERE and above
Bug: 116541003
Test: manually lower thermal thresholds on Pixel3
Change-Id: I26344716e2b6d84a04d9da02493673cc48c2854d
2018-12-06 21:30:11 -08:00
Selim Cinek
6e41b0e39f Fixed a padding issue if there is no right icon but a reply icon
The text wasn't actually flowing around the picture in that case.

Test: add bigtext notification without image, observe normal padding
Change-Id: I0c3513dac6ffecec50023ba6cc1a0ef54f581bd4
Fixes: 120423951
2018-12-06 18:10:20 -08:00
Hui Yu
1ea855202f Add manifest service attribute foregroundServiceType
Foreground service must use attribute foregroundServiceType to
specify its foreground service type in <sevice> element of manifest
file, otherwise a warning message is printed when startForeground()
method is called. (We will replace the warning message with a security
exception when the feature is formally activiated.)
The manifest attribute is:
android:foregroundServiceType="<type>"

Allowed types are: "sync", "mediaPlay", "phoneCall",
"location", "deviceCompanion", "ongoingProcess".

Bug: 111453223
Test: atest frameworks/base/tests/FrameworkPerf
Change-Id: I5d2ab203d400f3c549cd153480b6252a2f9adb3c
2018-12-06 16:59:18 -08:00
Felipe Leme
749b889889 Yet another (major) refactoring on Content Capture and Augmented Autofill.
Bunch of changes:

- Split public SmartSuggestionsService info ContentCaptureService and
  AugmentedAutofillService
- Renamed 'intelligence' packages to either 'contentcapture' or
  'autofil.augmented'
- Renamed internal packages and classes.
- Changed permissions, resource names, etc...
- Moved Augmented Autofill logic from IntelligeceManagerService (R.I.P.) to
  Autofill.
- Optimized IPCs by passing a String instead of the InteractionSessionId
  (that also solves the view -> service dependency).

Test: atest CtsContentCaptureServiceTestCases \
            CtsAutoFillServiceTestCases \
            FrameworksCoreTests:SettingsBackupTest
Test: manual verification with Augmented Autofill Service

Bug: 119638877
Bug: 117944706

Change-Id: I787fc2a0dbd9ad53e4d5edb0d2a9242346e4652d
2018-12-06 16:56:39 -08:00
Jeff Sharkey
e82cbb135f Define app-op controlling legacy storage behavior.
This app-op will be used to control if apps get a "legacy" view of
storage, which means they won't be put into an isolated sandbox.  The
current plan is to set this to "allow" for all apps installed before
the Q upgrade, to keep them working well.

Making it an app-op will give privacy-sensitive users the ability to
"revoke" this functionality.

Bug: 120287776
Test: manual
Change-Id: I21d5d53966eb26dff4893017708a9316b057aa6c
2018-12-06 15:53:13 -07:00
Antoan Angelov
7ae9663d6c Merge "Add metric wrapper class for managed device metrics." 2018-12-06 19:26:48 +00:00
arangelov
aeb04599f9 Add extra in DevicePolicyManager for provisioning trigger.
We need this @SystemApi extra so that ManagedProvisioning can
know what triggered it.

Bug: 120496001
Test: None
Change-Id: I7f1e8ab53c877a6ecb56bf2601f3ef37e2779fb8
2018-12-06 15:16:16 +00:00
Dianne Hackborn
77b13fd30a Merge "Fix various issues in ordering of grouped bindings." 2018-12-06 00:44:24 +00:00
Eran Messeri
309e071bb6 Private DNS connectivity check
Implement connectivity check to DNS-over-TLS servers, checking that the
RFC-defined port on the host is reachable and a TLS handshake can be
performed.

Bug: 112982691
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testPrivateDnsPolicy
Change-Id: I1eb4ec201d7e096b969b7bc2bcba271f99de2d2f
2018-12-05 21:28:39 +00:00
Yunfan Chen
832a305fff Merge "Introduce display windowing mode to WindowConfiguration" 2018-12-05 19:10:15 +00:00
Dianne Hackborn
2f55e5a929 Fix various issues in ordering of grouped bindings.
Everything needed to get the CTS tests to work.

Also:

- Change process names to be unique per isolated instance,
  and no longer use isolated uid in proc stats, so we don't
  have a crazy number of process entries there.
- Again move activity manager dumpsys output so we aren't
  spewing less useful stuff at the end where it hides the
  core state about processes.
- Fix protos so that we can read InstrumentationInfo from the
  activity manager protos.  (There was confusion about writing
  protos for a PackageItemInfo vs. an ApplicationInfo.)

Test: atest CtsAppTestCases:ServiceTest\#testActivityServiceBindingLru
Bug: 111434506
Change-Id: I2c86bd1daa582a5c60950173ca12e8ec21b13ead
2018-12-05 11:03:58 -08:00
TreeHugger Robot
344131ba4d Merge "StatsManager: @Deprecated always-deprecated fields" 2018-12-05 18:37:08 +00:00
Christine Franks
ca1fd658ed Merge "Add IColorDisplayManager" 2018-12-05 16:29:51 +00:00
Yueming Wang
e95bb70598 Merge "Add a hidden API for Cross Profile Calendar Settings UI." 2018-12-05 16:10:31 +00:00
Martijn Coenen
711ef9f4fc Merge "Prevent initializing binder from LoadedApk when we can." 2018-12-05 11:46:24 +00:00
Yunfan Chen
7daa6acedf Introduce display windowing mode to WindowConfiguration
Introduce mDisplayWindowingMode to WindowConfiguration, and show caption
for standard activities if the display windowing mode is freeform.

Test: Mannual. On secondary display, full screen activities will have a
caption bar, e.g., Pixel Logger.
Test: go/wm-smoke
Test: atest DisplayContentTests
Test: atest WindowConfigurationTests
Test: atest ConfigurationContainerTests

Change-Id: Iedaeb0886bd6d61ad29db0ba98def7c004298afd
2018-12-04 21:45:01 -08:00
Sunny Goyal
cf8be14d5e Merge "Adding API to specify a dark text specific layout in app-widgets" 2018-12-05 04:12:20 +00:00
yuemingw
9dd0ba0e05 Add a hidden API for Cross Profile Calendar Settings UI.
Settings wants to know if there is currently any package that is allowed
for cross profile calendar by PO.
The UI is added in work account settings, which actually runs
in primary user, and we can't call the public
getCrossProfileCalendarPakcages(work_user_admin) from primary user.
So we need to add this hidden API.

Bug: b/117976974
Test: make ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest -j40 RunSettingsRoboTests
Change-Id: I3df29a25a7826639828041b47dcfb7dcf086c411
2018-12-05 01:01:31 +00:00
Bookatz
b47bb25f08 StatsManager: @Deprecated always-deprecated fields
When P shipped, StatsManager had some new (introduced in P) APIs that
were already deprecated but had been needed temporarily. No one should
ever have used these APIs when P shipped because they already had
comments instructing the reader that they were deprecated. They were not
marked @Deprecated, however, so this cl does that.

Fixes: 113856561
Fixes: 77648233
Test: still compiles
Test: make ROBOTEST_FILTER=AnomalyConfigJobServiceTest RunSettingsRoboTests
Test: gts-tradefed run gts-dev --module GtsStatsdHostTestCases
Change-Id: I7c5cdc616f806b9aa5a5e4ee4229750973f533ed
2018-12-04 15:59:44 -08:00
Varun Shah
3e75d757bc Added a new API for SUW: ActivityManager#switchUser(UserHandle).
The new API is a SystemApi that mirrors ActivityManager#switchUser(int).
It also requires the MANAGE_USERS permission.

Bug: 113841016
Test: atest com.android.server.pm.UserManagerTest#testSwitchUserByHandle
Test: atest com.android.server.pm.UserManagerTest#testSwitchUser
Test: manual (run setup wizard)
Change-Id: Ica59863b90226131259ae22a3980526f054fd543
2018-12-04 14:49:56 -08:00
Hai Zhang
6329be48e7 Add test for RoleManager.
This change adds the @TestApi annotations for use by RoleManagerTest.

Bug: 110557011
Test: atest android.app.role.cts.RoleManagerTest
Change-Id: I7ed762b24558be3c2cbcf5df1b748667f6b06e9d
2018-12-04 12:59:06 -08:00
Chavi Weingarten
9835522991 Merge "Fix ActivityView input forwarding." 2018-12-04 19:27:19 +00:00
Eric Laurent
5b9de38cd1 Merge "Activity manager: native callback for process state" 2018-12-04 16:40:27 +00:00
Sunny Goyal
c12d31c3b5 Adding API to specify a dark text specific layout in app-widgets
Bug: 109954539
Test: atest CtsAppWidgetTestCases
Change-Id: I785931469888a09685c45949afcf2e3633233c60
2018-12-04 02:33:53 -08:00