Commit Graph

14533 Commits

Author SHA1 Message Date
Alex Kershaw
2418ea970b Add isManagedKiosk system APIs.
Add system APIs isManagedKiosk and isUnattendedManagedKiosk. These will
be defined in the CDD.

The intention is to have privacy and security-approved definitions that
future features (removing user consent dialogs, stronger APIs) can use
specifically for publicly-accessible dedicated devices.

We use 'kiosk' rather than 'publicly-accessible dedicated device' for
ease-of-use, which is actually consistent with ChromeOS.

Bug: 111384878
Test: Each use will have its own CTS tests. The definitions themselves
will be in CDD. Currently tested by calling the methods in TestDPC.
Change-Id: If080a3b9dae285bc28823e6004750908009130d2
2018-12-11 13:01:11 +00:00
TreeHugger Robot
2eb3473d0d Merge "Private DNS connectivity check" 2018-12-08 22:50:21 +00:00
TreeHugger Robot
e5bd844eaf Merge "Revert "Notify AutofillManager in onResume() IFF activity was not recreated."" 2018-12-08 16:25:27 +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
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
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
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
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
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
TreeHugger Robot
8dfdd61718 Merge "Add checkable two target preference layout" 2018-12-04 00:42:00 +00:00
Eric Laurent
25f2eacaf9 Activity manager: native callback for process state
Make getUidProcessState() callback in IActivityManager.aidl
available to native processes.

Test: Manual test with audio recording apps pushed to background and back
to top.
Bug: 111438757
Change-Id: Ia0c87ab96baf83fb7fdd119295582f203fb1a50e
2018-12-03 16:28:33 -08:00
Felipe Leme
ecb08be22e Split IntelligenceManager / IntelligenceService.
This name is too generic, so we split it in 2 parts:

- ContentCaptureManager: the public API used by views and apps to report their
  structure.
- SmartSuggestionsServiec: the system service use to consume these events and
  provide autofill suggestions.

This CL also:

- Optimizes ContentCaptureManager allocation so they are not created on contexts that are not
  capturing events (such as views from the system server).
- Uses a generic ContentCaptureEventsRequest (rather than a list of events) to make it easier
  to be extended.
- Fixed IntelligencePerUserService so it clears the sessions when the
  implementation changes.

Test: manual verification

Bug: 119776618
Bug: 117944706
Bug: 119638877

Change-Id: I069bcd23dda94afe18b2781fd3981b8b555afa56
2018-12-03 15:29:07 -08:00
Beverly
9cb05c9546 Add checkable two target preference layout
Test: atest NotificationManagerTest
Bug: 111475013
Change-Id: I2b0fe3e33eb4d8da486d57faca0d0fe711d51445
2018-12-03 14:16:06 -05:00
Chavi Weingarten
e8f76a3642 Merge "Reparent DisplayContent layers to SurfaceControl for ActivityView" 2018-12-03 18:08:43 +00:00
TreeHugger Robot
bdec147068 Merge "Updates color and size of bell icon." 2018-12-03 16:28:10 +00:00
Julia Reynolds
b56135964d Merge "Require a permission for Q apps using full screen intents" 2018-12-03 16:13:59 +00:00
SzuWei Lin
3a96f91ac5 Merge "Nullify the default wallpaper component if it does not exist" am: b25a4d60e6 am: ae7bf51ae5
am: 83735846d4

Change-Id: I866c756b67c19a54e8a52fba9a85ceb5e16076f0
2018-12-03 07:43:44 -08:00
David Brazdil
991ff90e73 Move DexLoadReporter setup before AppComponentFactory calls
BaseDexClassLoader has a callback for reporting all loaded secondary dex
files to DexManager. The callback needs to be set up:
(a) after the default app class loader is initialized, so as to not
report the app's main APK being loaded, and
(b) before control is handed over to the app for the first time, so as
to not miss any BaseDexClassLoader instantiations.

The latter used to mean setting up the callback before
Application.onCreate() but AppComponentFactory calls happen even
earlier. Hence move the call into LoadedApk where the borderline between
(a) and (b) lies.

Test: manually check dex loads from instantiateClassLoader are reported
Change-Id: I7961913de302bcede6c231304544d21d8db806a8
2018-12-03 10:59:45 +00:00
Nicolas Geoffray
c64eef6211 Merge "Start using shared libraries class loader." am: e7753e084f
am: 4879460f35

Change-Id: I0d3898a78d116aebb425a9a1cacb5dbac82b3e6d
2018-12-02 13:14:26 -08:00
Nicolas Geoffray
e7753e084f Merge "Start using shared libraries class loader." 2018-12-02 20:39:38 +00:00
Nicolas Geoffray
972b39e4e4 Start using shared libraries class loader.
Change 1/2. Change 2/2 will setup the class loader namespace for
shared libraries.

This change sets up shared libraries class loaders for applications
and for dexopt.

bug: 111174995
Test: DexoptUtilsTest, device boots
Exempt-From-Owner-Approval: PS1 was approved by owner, PS2 is a build fix.

(cherry picked from commit 8d144eb8bd)
Merged-In: Ie9a2b4eaa85cda59951703433f7a2d03bc12095d

Change-Id: I76383308418485ad6739f8a404d02c2771e4afe4
2018-12-02 20:39:29 +00:00
chaviw
1afc65d2fd Fix ActivityView input forwarding.
The current behavior for input expects the input to be in screen space.
However, ActivityView was forwarding input in View space so it was
causing the touch to be in the wrong place.

This fix updates the touch event so it's translated into screen space
before forwarding to the InputManager.

Test: ActivityView touches
Change-Id: I8b86a17adb166fdd95f24610f2ba9ae55c39f7c5
Fixes: 111440225
2018-11-30 16:04:01 -08:00
Gus Prevas
bae5ba39dd Updates color and size of bell icon.
Test: manual
Bug: 116622974
Change-Id: I0419759e8f99f0a0b3d8b68f18f5a445680ec1af
2018-11-30 16:38:56 -05:00
chaviw
ff2e7d8f41 Reparent DisplayContent layers to SurfaceControl for ActivityView
With the current implementation, when an ActivityView is created, it creates
a new Display in both DisplayManager and SurfaceFlinger. Then it attaches the
SurfaceView's surface to the Display so the content generated for the second
display renders into the SurfaceView. However, this is inefficient since it
requires the rendered content to get copied over.

With this change, the ActivityView creates a VirtualDisplay but also creates
a new SurfaceControl. It then notifies WindowManager so WM can instead
reparent the windows that represent the new VirtualDispay to be a child of
the SurfaceControl passed in. The SurfaceControl passed in is a child of the
SurfaceView's SC so the content in the new VirtualDisplay will just
automatically render onto the main display without having to copy.

The SF hierarchy will have the VirtualDisplay's surfaces as children of the
SurfaceView, but the WM will still represent the VirtualDisplay as a second
display.

Test: Run app with ActivityView and launch Activity in AV
Change-Id: I21c9bb189b6c12b0d98c67c8e68f53c621a4a802
Fixes: 111440225
2018-11-30 10:48:28 -08:00
SzuWei Lin
83735846d4 Merge "Nullify the default wallpaper component if it does not exist" am: b25a4d60e6
am: ae7bf51ae5

Change-Id: I03cdecc05ab9247d35a35caff986948fa008cadc
2018-11-30 09:09:55 -08:00
Rafal Slawik
d03ae420b0 Delete rss_high_watermark_in_bytes field
Reading RSS high-water mark was moved to a separate atom.

Bug: 119598534
Test: atest UidAtomTests#testProcessMemoryState
Test: atest UidAtomTests#testNativeProcessMemoryState
Test: atest MemoryStatUtilTest
Change-Id: I18424ea3f0ab1555febe62df1be97b174e93a55c
2018-11-30 13:35:46 +00:00
SzuWei Lin
1c7ae31e97 Nullify the default wallpaper component if it does not exist
The default wallpaper component cannot be found after GSI is flashed.
The home screen background will have no wallpaper and be black.
It will also cause the following CTS tests to fail:

- KeyguardTests#testDialogShowWhenLockedActivity
- KeyguardTests#testTranslucentShowWhenLockedActivity

The patch will check if the package of the default component exists.
If not, it will fall back to null, which is the AOSP default value, and
display the wallpaper in framework resource.

Bug: 119895131
Bug: 111909699
Test: flash GSI aosp_arm64-userdebug on a crosshatch, got AOSP wallpaper
Test: flash full crosshatch-userdebug on a crosshatch, got crosshatch wallpaper
Change-Id: I9d618d05458a03a675324cb2f861decf31c5bf18
2018-11-30 13:33:55 +08:00