Commit Graph

17492 Commits

Author SHA1 Message Date
Pavel Grafov
6e4ef9b5eb Merge "Make work profile maximum time off at least 3 days." into rvc-dev 2020-03-17 11:24:48 +00:00
Lucas Lin
19f09b234a Merge "Add some comments in isAlwaysOnVpnLockdownEnabled" into rvc-dev 2020-03-17 04:42:52 +00:00
Kweku Adams
e78f4abb70 Merge "Convert system forced reasons to flags." into rvc-dev 2020-03-17 04:28:24 +00:00
Automerger Merge Worker
a3630a528f Add some comments in isAlwaysOnVpnLockdownEnabled
Bug: 141621373
Test: Build pass.

Change-Id: Ie063d9ad35fd703ad376e993345e7158c6082b87
Merged-In: Ib9df71192937164ff95ce564195d5d68508ec69d
2020-03-17 02:43:49 +00:00
Hongwei Wang
ca111769ac Merge "Get PiP bounds from layout dimensions if applicable" into rvc-dev 2020-03-16 20:59:09 +00:00
Hall Liu
e6045973f7 Merge "Hide setDisabledForSimNetworkLock" into rvc-dev 2020-03-16 20:45:58 +00:00
Hall Liu
61d30d7d98 Merge "Re-hide OPSTR_READ_DEVICE_IDENTIFIERS" into rvc-dev 2020-03-16 20:37:27 +00:00
Selim Cinek
8a6c2bf38d Merge "Fixed various paddings of the messaging layout" into rvc-dev 2020-03-16 19:46:09 +00:00
Kweku Adams
aa46194fea Convert system forced reasons to flags.
Switching the reasons to flags allows us to track mulitple reasons for
an app being in a bucket.

Bug: 149507105
Test: atest FrameworksServicesTests:AppIdleHistoryTests
Test: atest FrameworksServicesTests:AppStandbyControllerTests
Change-Id: I6fb9e980652ac76e927fbba3d65da2b39b55f1b9
2020-03-16 12:14:09 -07:00
Yara Hassan
018978b77c Merge "Enabled Content Capture in Service" into rvc-dev 2020-03-16 16:28:09 +00:00
Pavel Grafov
1628ee0aaf Make work profile maximum time off at least 3 days.
Bug: 150668401
Test: manual, with TestDPC (not testOnly)
Test: atest OrgOwnedProfileOwnerTest#testWorkProfileMaximumTimeOff
Change-Id: I9d274c67ff99d903ceb26b2233038b405c58e958
2020-03-16 16:08:04 +00:00
Ricky Wai
bac0268f63 Merge "Pass bind mount storage data decision from java to zygote" into rvc-dev 2020-03-16 15:39:52 +00:00
Yara Hassan
988f7e0cd4 Enabled Content Capture in Service
In AiAi we require calling the data share ContentCapture API from a Service.  Therefore we would like to enable ContentCapture in a Service. We do this by having the Service implement the ContentCaptureClient interface.

Bug: 150451947
Fix: 150451947
Test: Locally
Change-Id: I4a2c600e7c09a5441dc681d78549cd21abba44cc
2020-03-16 12:49:04 +00:00
TreeHugger Robot
317603dc2f Merge "Improve doc for DPM.generateKeyPair" into rvc-dev 2020-03-16 12:12:53 +00:00
Charles Chen
3d9fc0f924 Show class name in error message
Show class name instead of service name in error message
Context#getSystemService to make developers easier to debug.

Bug: 150632074
Test: manual - check error log
Change-Id: Icb00c972c3a4fd4c71383dd5da29d4864bb06379
2020-03-16 17:46:27 +08:00
Stanislav Zholnin
86e27477a7 Merge "Delay initialization of RarelyUsedPackages and package sampling." into rvc-dev 2020-03-16 09:23:17 +00:00
TreeHugger Robot
777531511f Merge "Rename get/setProtectedPackages methods" into rvc-dev 2020-03-15 23:05:42 +00:00
Stanislav Zholnin
48811ee600 Add logging operation ids.
Add operation ids which are used only for logging. They will
allow to reduce bandwidth required for logging. Mapping between
operation string ids (OPSTR_, public API) and Logging ids
is enforced by statsd CTS test.

Bug:143519689
Test: android.cts.statsd.atom.UidAtomTests#testAppOps
Test: android.cts.statsd.atom.UidAtomTests#testForegroundServiceAccessAppOp
Exempt-From-Owner-Approval: discussed  with moltmann@ in chat.

Change-Id: I2f85d6889e946219557d26b28334d4bacde06b12
Merged-In: I2f85d6889e946219557d26b28334d4bacde06b12
2020-03-15 14:29:32 +00:00
Stanislav Zholnin
4c32385bf6 Delay initialization of RarelyUsedPackages and package sampling.
Delay uniform sampling of packages.
Introduce boot time sampling of packages - simplified sampling designed
to save time during start up sequence.

Bug: 150239020
Test: manual verification
Change-Id: I5911b663cfefe324a443b0ba3f97c46e0984a0f3
2020-03-15 11:23:53 +00:00
Eugene Susla
1d7a7910e4 Add missing OPSTR for OPSTR_AUTO_REVOKE_MANAGED_BY_INSTALLER
Fixes: 151506845
Test: Ensure no error on boot
Change-Id: I912fb0c2058ef8db4a58b2c05a1d142a7d7d22cc
2020-03-14 09:16:43 -07:00
Eugene Susla
922cd08f62 Introduce per-app API for installer whitelisting
Test: presubmit
Bug: 146513245
Change-Id: I5a4502aeb78d2e35209ed88312d24bcafbb4ba7c
2020-03-13 22:09:22 -07:00
Selim Cinek
afc2058776 Fixed various paddings of the messaging layout
Previously the expand button could run into the header
And the content had no padding at the end.
Also, the content was incorrectly padded when collapsed.

Bug: 150905003
Test: add messagingLayout, observe UI
Change-Id: I3178b21dc8831f986a8249ee1e22aebffff75ef1
2020-03-13 20:15:38 -07:00
Eugene Susla
2ac02b0d3e Add public API to check if current app is auto-revoke exempt
Test: presubmit
Bug: 146513245
Change-Id: I18ac5957eb9ae1ea0d7de2daf407e6d797079937
2020-03-13 22:44:00 +00:00
Selim Cinek
5f003f4e10 Merge changes I69b33b0c,If904c85e,I28444df4,I3bfa4580,I88d9667d, ... into rvc-dev
* changes:
  Decrease avatar and sender name sizes in MessagingStyle
  Fixed various conversation layout appearences
  Implemented FacePile if no group icon is present
  Fixed the behavior of headers in conversation groups
  Ensured correct coloring of badge in dark mode
  Fixed an issue where the bubble badge was visible independent of the icon
  Improved transitions for expanding messaging notifications
  Adjusted single line representation to include a colon
  Made the expand button positioning conditional on expanded state
  Ensured that the sender of the first message is hidden
  Baseline for the new ConversationLayout
2020-03-13 21:01:24 +00:00
Selim Cinek
83cf855163 Merge "Made sure that templated views support RTL" into rvc-dev 2020-03-13 20:58:52 +00:00
Shuo Qian
aa49e5b750 Merge "Add updateMccMncConfiguration as @TestApi for CTS" into rvc-dev 2020-03-13 20:40:31 +00:00
Hall Liu
1b243291f4 Merge "Hide RoleManager#getDefaultSmsPackage" into rvc-dev 2020-03-13 20:28:36 +00:00
Hongwei Wang
2e725beeb3 Get PiP bounds from layout dimensions if applicable
Per CDD change proposal, will honor the layout dimensions such as
AndroidManifest_minWidth / AndroidManifest_minHeight specified by an
activity. Specs in detail: go/cdd-proposal-pip-size

Bug: 147360777
Test: atest PinnedStackTests PipBoundsHandlerTest
Change-Id: I9752aa272968eff15eb7dd2a46ae4591c1c5727f
2020-03-13 09:54:04 -07:00
Jerome Gaillard
f9fe6f87a9 Rename AutoTime and AutoTimeZone APIs part 2
Some usages were forgotten.

Bug: 150958098
Test: m docs
Change-Id: I1d3dc332942638160e35c9f5c224f51b47e71bb3
2020-03-13 16:34:23 +00:00
Rubin Xu
4b06918fcd Improve doc for DPM.generateKeyPair
Document concurrency and thread interruption behaviour.

Bug: 141539329
Test: make docs
Change-Id: I0d98db99f5ca0675d71da5e799ec8415e1a4c612
2020-03-13 16:09:44 +00:00
Pavel Grafov
75e2ea6bb4 Merge "Clarify time units for setManagedProfileMaximumTimeOff argument." into rvc-dev 2020-03-13 14:30:07 +00:00
Philip P. Moltmann
d7a823623f Merge "Rename featureId -> attributionTag" into rvc-dev 2020-03-13 14:26:31 +00:00
Alex Johnston
1dbdcbc689 Merge "Rename AutoTime and AutoTimeZone APIs" into rvc-dev 2020-03-13 10:00:43 +00:00
Philip P. Moltmann
767ef39c1a Add docs for users, permissions, appops.
Test: Only docs changes
Change-Id: I2115b32c41a500d3a9847a5ea3c1d8b82dd5112c
Fixes: 151379035
2020-03-13 00:52:22 +00:00
Hall Liu
5ed337a06d Re-hide OPSTR_READ_DEVICE_IDENTIFIERS
Fixes: 151184555
Test: NA
Change-Id: I2d19869278530e2f8999284845bc128df6617faa
2020-03-13 00:02:25 +00:00
Hall Liu
d7eb86f1f6 Hide setDisabledForSimNetworkLock
Hide StatusBarManager#setDisabledForSimNetworkLock since it isn't
necessary for mainline this cycle. Revisit in S if necessary.

Fixes: 151184693
Test: compile
Change-Id: Ieb24ebe02433b41699b3ca633e9a1db49711f816
2020-03-12 14:19:22 -07:00
Selim Cinek
2f7f7b8803 Fixed various conversation layout appearences
Previously the layout would break if the developer
specified empty names or no avatars. Similarly if
a developer specified a conversationtitle in a
one to one chat, it would break badly as well.

Bug: 150905003
Test: create various edge case chats and observe the layout
Change-Id: If904c85e6d582b4735eb928d66749a7863fbbc06
2020-03-12 13:39:36 -07:00
Selim Cinek
e9714eb0c7 Ensured correct coloring of badge in dark mode
Bug: 6701275011
Test: add conversation in darkmode, observe dark badge background
Change-Id: I88d9667d82a134233ff8c0c19f06dffdd5b16a67
2020-03-12 13:39:36 -07:00
Ricky Wai
486d760e6b Pass bind mount storage data decision from java to zygote
Before we used store dirty data in system property to record
if FUSE for a user is mounted, and zygote uses it to determine
if storage mount is needed. It introduces performance issues and
not reliable.

This CL does the following changes:

- System server determines if storage dirs mount are needed, and store
the record inside system server.

- It passes the verdict to zygote so zygote just need to follow the
input.

- When emulated storage is mounted / unmounted, it will record if
FUSE for that user is ready to use, and will be used for determining
if storage dirs mount are needed when a new process starts.

- After emulated storage is mounted, it will create an async thread
to remount all storage dirs for existing app processes. As we have a
record of pids that storage dirs are not mounted yet, we can use it
directly without scanning the whole /proc in vold.

Bug: 149548518
Test: After flag is enabled, AdoptableHostTest still pass.
Change-Id: Ic99d027d42b2b9a1c7fd03070b36c44882c6e7c5
2020-03-12 19:36:26 +00:00
Philip P. Moltmann
12ac3f406f Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 19:26:10 +00:00
Shuo Qian
501a606c11 Add updateMccMncConfiguration as @TestApi for CTS
Test: cts; https://paste.googleplex.com/5930499648258048
Bug: 147897445
Change-Id: I63288be1acd9e898548ced345799ac1ae69ce427
Merged-In: I63288be1acd9e898548ced345799ac1ae69ce427
2020-03-12 16:48:19 +00:00
Philip P. Moltmann
9f0ee82df5 Merge "Call Compatibility.isChangeEnabled in calling app" into rvc-dev 2020-03-12 15:40:38 +00:00
Selim Cinek
20d1ee2402 Baseline for the new ConversationLayout
Introduced a new Layout for Conversation Notifications.
There are still various open issues that will be
fixed in follow up Cls

Bug: 150905003
Test: Add conversations, obverve visuals
Change-Id: I8ab2e2988d3205a4491006df68ec14235109466f
2020-03-11 21:53:03 -07:00
Lucas Dupin
888edd6fdc Merge "Implement wallpaper zoom hooking it to the shade" into rvc-dev 2020-03-12 04:07:51 +00:00
Hall Liu
c732c366c7 Hide RoleManager#getDefaultSmsPackage
Fixes: 151184554
Test: NA
Change-Id: I1e502362d866caea04ce6f1529d8591f6de272d0
2020-03-12 00:25:45 +00:00
Philip P. Moltmann
7641cd0aa6 Call Compatibility.isChangeEnabled in calling app
As this checks the "change-enabled" state of the current app. Hence
calling this in the system server does not make sense.

This change sets a flag if we want to enable the old behavior.

Test: TH
Bug: 148180766
Change-Id: Ic17f8ff9ff7dcf984b55b978f582343286fa67c4
2020-03-11 14:47:43 -07:00
Srinivas Paladugu
8faac83a3f Rename get/setProtectedPackages methods
Based on API council feedback that current method names are ambiguous,
renaming them with
setUserControlDisabledPackages/getUserControlDisabledPackages.

Bug: 150865604
Test: atest DevicePolicyManagerTest
atest com.android.cts.devicepolicy.DeviceOwnerTest#testSetUserControlDisabledPackages

Change-Id: I74f07ae5f0e9b425a6f2e4aa52d2cb8ac42da68e
2020-03-11 11:21:49 -07:00
Julia Reynolds
34621b08e3 Merge "Increase test coverage for NotificationChannel" into rvc-dev 2020-03-11 17:14:42 +00:00
Philip P. Moltmann
093ba7e506 Merge "Allow to exempt apps from restrictions to RECORD_AUDIO" into rvc-dev 2020-03-11 16:11:16 +00:00
Winson Chung
cfdd34adab Merge "Always notify SystemUI when launching activity to existing task" into rvc-dev 2020-03-11 02:28:09 +00:00