Commit Graph

11024 Commits

Author SHA1 Message Date
TreeHugger Robot
ba5cb9136c Merge changes from topic "whichless"
* changes:
  BatteryStats remove which - log warnings
  LongSamplingCounter - remove update()
  Remove which from BatteryStats
2019-03-21 14:16:28 +00:00
Annie Meng
153edfc35e Merge "API Review: Make dataManagementLabel a CharSequence" 2019-03-21 10:17:09 +00:00
TreeHugger Robot
b9b1befb36 Merge "Trigger Augmented Autofill when the standard service used FillResponse.disableAutofill()" 2019-03-20 23:59:30 +00:00
Jeff Sharkey
5212157f0b Merge "Fix reading app ops data - framework" 2019-03-20 23:44:16 +00:00
Felipe Leme
adb34f58de Trigger Augmented Autofill when the standard service used FillResponse.disableAutofill()
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.DisableAutofillTest
Test: atest CtsAutoFillServiceTestCases # sanity check

Fixes: 123099744

Change-Id: Ic40727a72f931d7a062dedf02fa83d091648498b
2019-03-20 12:03:30 -07:00
Bookatz
db6d624a19 BatteryStats remove which - log warnings
In ag/6694908, BatteryStats is changed to only support the "which" of
STATS_SINCE_CHARGED. Here, we deal with BatteryStats calls that attempt
to use a different which, logging the event, exiting, and/or just using
STATS_SINCE_CHARGED as applicable.

Test: compiles
Bug: 70892428
Change-Id: Id0e9f863d8b1a5fb7baa770683c0c4ec5880e976
2019-03-20 10:13:58 -07:00
Adrian Roos
5f9ec2c1c6 Merge "Gestures: Assemble per-window exclusion zones" 2019-03-20 15:28:03 +00:00
Svet Ganov
8e5bf968c1 Fix reading app ops data - framework
There was an optimized code path that is hit if the op
has not been accessed that does not write the uid state
information which did not add the closing tag which
resulted in producing a malformed XML.

Test: atest android.app.appops.cts.AppOpsTest#testNonHistoricalStatePersistence

bug:128872367

Change-Id: Iaddcce09b41f3e124e1838b65731d8dac9ca64e3
2019-03-20 15:12:23 +00:00
Annie Meng
4eb4efc466 API Review: Make dataManagementLabel a CharSequence
Make the data management label a CharSequence for the system APIs:
- BackupManager#updateTransportAttributes
- BackupManager#getDataManagementLabel
- BackupTransport#dataManagementLabel

Renames dataManagementLabel -> dataManagementIntentLabel to change
return type

Removes getDataManagementLabel AIDL method as usages converted to use
"forUser" version in topic CL.

Bug: 113856654
Test: 1) atest RunBackupFrameworksServicesRoboTests
2) atest BackupManagerTransportAttributesHostSideTest
3) atest $(find \
frameworks/base/services/tests/servicestests/src/com/android/server/backup \
-name '*Test.java')
4) Manual: boot and verify transports registered properly using old API;
Modify LocalTransport to use new API, verify success

Change-Id: Ia48017156debe0a29684909f58927fa1fbf972f9
2019-03-20 12:13:10 +00:00
Adam He
c384395d1a Merge changes from topics "aa_fill_ui", "aa_cancellation"
* changes:
  Don't show fill ui if fillrequest times out.
  Implemented CancellationSignal for augmented autofill requests.
2019-03-19 17:31:37 +00:00
Matt Pietal
73a873f235 Sharesheet - Profile switching & permissions
Need to make sure all content uris have the userid prepended in them,
otherwise when switching profiles the chooser will be denied access.
This is needed for content preview in the chooser itself.

Bug: 128597855
Test: atest ChooserActivityTest
Change-Id: Id835c7b443c1c5a83a8bf61d0545d86e32e92bfc
2019-03-19 07:36:10 -04:00
Andreas Gampe
5c22b02211 Merge "Zygote: Load system server code early" 2019-03-19 00:09:44 +00:00
Bookatz
1371b9ac52 LongSamplingCounter - remove update()
It wasn't being used anywhere and was requiring an extra long. Since
LongSamplingCounter takes up (cumulatively, due the huge number of
them) a lot of memory, each byte counts for a lot. (It was added in
ag/3771500, but appears to have never been used, so we restore its
original algorithm.)

Test: atest LongSamplingCounterTest
Change-Id: I7349e927ae6fe8c941e408c4d0843b638bf070e9
2019-03-18 16:17:56 -07:00
Mike Ma
99e57c3c40 Remove which from BatteryStats
BatteryStats tracks three "which" states:
STATS_SINCE_CHARGED,
STATS_CURRENT,
STATS_SINCE_UNPLUGGED

However, only STATS_SINCE_CHARGED is really needed; the other two
just take up a lot of unjustifiable RAM. We therefore remove them from
the implementation here.
We also remove mLastTime and mLastCount from Timers and Counters, since
it was always zero anyway.

While the other two "whiches" are left as constants, they are ignored,
and all functions treat any which as STATS_SINCE_CHARGED. In particular,
SystemHealthManager now uses STATS_SINCE_CHARGED, rather than
STATS_SINCE_UNPLUGGED for all of its Battery statistics.

This is adapted from ag/4310406, but slimmed down to just the 'which'
removal parts.

Bug: 70892428
Test: com.android.internal.os.BatteryStatsTests
Change-Id: I86f2743ff30afc15bbaa12c68f3206ea528857a1
2019-03-18 16:17:36 -07:00
TreeHugger Robot
93b4ed4cd8 Merge "Force LSKF in ConfirmCredential UI when pending escrow token exists" 2019-03-18 19:44:47 +00:00
Adam He
52577fcc24 Implemented CancellationSignal for augmented autofill requests.
Fixes: 122728762
Bug: 127062800
Test: atest android.autofillservice.cts.augmented.AugmentedLoginActivityTest#testCancellationSignalCalledAfterTimeout
Change-Id: Id6f0d6f5ac4e47b07e32c255fdbb02af878b6921
2019-03-18 11:42:33 -07:00
Adrian Roos
4ffc8977e2 Gestures: Assemble per-window exclusion zones
Adds a facility to listen for per-window exclusion zones and
assembles them into a per-display exclusion zone ready for
consumption by interested parties.

Bug: 126360272
Test: atest DisplayContentTests
Change-Id: Ic186f86ca551af98a5f77beb254d257c281a4160
2019-03-18 17:45:05 +00:00
Rubin Xu
fc06773c0a Force LSKF in ConfirmCredential UI when pending escrow token exists
Escrow tokens can only be activated by user confirming their LSKF,
while ConfirmCredential allows both LSKF and biometrics by default.
By requiring LSKF, it simplifies the DPC's flow of requesting the user
to activate a pending escrow token.

This change introduces an internal API to query the existence of
pending escrow tokens.

Bug: 127377026
Bug: 76084679
Bug: 79547502
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
Change-Id: Ie1ae58d2639394a9e6e1bf13d8bde44dfea240e8
2019-03-18 17:27:24 +00:00
Andreas Gampe
76b4b2c366 Zygote: Load system server code early
In an effort to allow loading integrity-checked artifacts from
the dalvik-cache, attempt to create and cache the system server's
classloader early, while still being in the system_server_startup
selinux domain.

The advantage of this approach is that allowances for loading
from the cache are restricted to startup.

Bug: 128688902
Test: m
Test: Device boots, picks up /system artifacts
Test: Device boots, picks up integrity-checked /data artifacts
Change-Id: If4a75fa106db09f1bd666d6d8df7ac3ac3e35a8c
2019-03-15 12:12:49 -07:00
TreeHugger Robot
3b11e376ce Merge "Update resolver icon generation" 2019-03-14 21:45:47 +00:00
Matt Pape
64e8dd211a Merge "Remove interfaces for runtime and runtime_native namespaces." 2019-03-14 20:07:46 +00:00
Mike Digman
220587edef Update resolver icon generation
Adds support for launcher-like icons via a ported form of
Iconloaderlib. Only fetches resolved activity's app icons with a special
cutout based on permission.

Bug: 126568207
Test: manual, mostly port of known to work code
Change-Id: Iba2c6f9aa5e63c457d9fd47921817c6529776b7a
2019-03-14 11:19:48 -07:00
TreeHugger Robot
f7b8614b18 Merge "Sharesheet - Scroll the content preview area" 2019-03-14 18:01:25 +00:00
Matt Pape
e9b680a3ae Remove interfaces for runtime and runtime_native namespaces.
Per API council feedback, we are making changes to include only the
namespace in the system API defined in DeviceConfig.java. Strings which
define property names should be defined in code local to the feature
instead.

Bug: 126411407
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: I73157c127a246719afb37eca65cabf2e3d24b38a
2019-03-14 10:07:41 -07:00
TreeHugger Robot
95335a500e Merge "Sharesheet - Remove pin/unpin actions" 2019-03-14 15:12:38 +00:00
Matt Pietal
1ef8800605 Sharesheet - Scroll the content preview area
Moved the content preview into the listview to be scrolled
with the rest of the content. Finally separated out each
content preview into its own layout file.

Bug: 120419296
Test: atest ChooserActivityTest, observe content preview area being scrolled
Change-Id: I2720ca5264a4db34abae178e653e4e91bc54500c
2019-03-14 11:04:15 -04:00
TreeHugger Robot
97640451bb Merge "Add missing XmlUtils.skipCurrentTag(parser); to "bugreport-whitelisted" case" 2019-03-14 12:58:59 +00:00
Nikita Ioffe
08146efa74 Add missing XmlUtils.skipCurrentTag(parser); to "bugreport-whitelisted" case
Somehow missed it in the original CL. :(
CL with CP into aosp already has this fix:
aosp/ee4d7be21948307a0fedc6ab75a21d41660aa0c5.

Test: m
Bug: 126541701
Change-Id: Ib5a0f0c7e07699e99f618fc70f4b3cba3abd235d
2019-03-14 11:08:36 +00:00
TreeHugger Robot
ca877189c1 Merge "Addressed deferred CL feedback comments." 2019-03-14 00:44:37 +00:00
Chris Wailes
fe3a348e7b Addressed deferred CL feedback comments.
This CL addresses several bits of feedback from previous CLs:
* ZygoteState.mABIList => ZygoteState.mAbiList
* Adding appropriate whitespace
* Finalizing variables where appropriate
* TEMP_RETRY_FAILURE around write
* Zygote.getSystemProperty => Zygote.getConfigurationProperty

Test: m
Test: Treehugger
Change-Id: I5ae4c8dfc336c7511bee375a80966abb1ead275e
2019-03-13 16:50:54 -07:00
TreeHugger Robot
248e3e5965 Merge "Fix issue with filtering threads with low CPU usage in KernelCpuThreadReader" 2019-03-13 19:47:31 +00:00
TreeHugger Robot
d5c06b57a2 Merge "Call AbstractRemoteService.finishRequest() on PendingRequest timeout." 2019-03-13 18:39:23 +00:00
Matt Pietal
df634cc099 Sharesheet - Remove pin/unpin actions
The new sharesheet design calls for the removal of
direct share/app pinning and unpinning

Bug: 128521718
Test: atest ChooserActivityTest
Change-Id: I5e89c775d3ce3df31a16310689fc36222ad2a107
2019-03-13 14:17:19 -04:00
Misha Wagner
2d938f364d Fix issue with filtering threads with low CPU usage in KernelCpuThreadReader
Also remove banned word from KernelCpuThreadReader to unblock commit.

Test: Existing unit tests

Change-Id: Iba872e8b48d81bef782f1cd51a22149520d78b4f
2019-03-13 18:15:52 +00:00
Matt Pietal
95574b0204 Sharesheet - Only show direct share with ACTION_SEND*
Do not run direct share logic with non ACTION_SEND* action
codes, as ChooserActivity can be used for many other types.
Update tests to check for correct target counts.

Bug: 127806974
Test: atest ChooserActivityTest
Change-Id: I2b37fc8312ca3602475dee1c989d945c0fdce7e1
2019-03-13 08:50:05 -04:00
TreeHugger Robot
309eb41ae1 Merge "Sharesheet - expand 4 direct share to 8 when possible" 2019-03-13 12:00:26 +00:00
Matvei Malkov
6deeabb6bc Merge "Rename methods for PopupWindow" 2019-03-13 11:55:17 +00:00
Ganesh Mahendran
b116b20732 Merge "continue read file when returned count > 0" am: 894c578a02 am: 2a82e9a69c
am: 289ccbd48d

Change-Id: I8921e6be0760cdedef05c74ae1e77e18b9bd2b04
2019-03-13 01:24:38 -07:00
Ganesh Mahendran
289ccbd48d Merge "continue read file when returned count > 0" am: 894c578a02
am: 2a82e9a69c

Change-Id: I2880bdc9157996d30472e3eddb714c498b14e66b
2019-03-13 01:15:04 -07:00
Ganesh Mahendran
2a82e9a69c Merge "continue read file when returned count > 0"
am: 894c578a02

Change-Id: I43f5be6a4b365e2e7ea11ae413860d9cb0c37949
2019-03-13 00:59:30 -07:00
Treehugger Robot
894c578a02 Merge "continue read file when returned count > 0" 2019-03-13 07:36:51 +00:00
Kiyoung Kim
82ce8e4176 Merge "Schematize Crypto state system property" am: 88b57a2c4d
am: d5f216ac8b

Change-Id: I38fa65ef0864d8a40eb7546ad50ab254e7e0ec25
2019-03-12 22:08:25 -07:00
Kiyoung Kim
d5f216ac8b Merge "Schematize Crypto state system property"
am: 88b57a2c4d

Change-Id: Idb96ab95b1ea69a636f315edeb84c8ba025d75bd
2019-03-12 21:33:34 -07:00
Treehugger Robot
88b57a2c4d Merge "Schematize Crypto state system property" 2019-03-13 01:30:58 +00:00
Christian Wailes
cbee8d1b23 Merge changes I29d91abd,Ie13d2c1a
* changes:
  Fixes initialization bug in USAP pool properties.
  Fixed a nullptr exception in ZygoteProcess.java.
2019-03-12 21:07:31 +00:00
Chris Wailes
84efefd666 Fixes initialization bug in USAP pool properties.
This patch fixes an initialization order bug in the USAP pool policy
management code.  Previously, bad values were used when initializing the
USAP pool when it was enabled on device boot.  This patch ensures that
the policy system properties have been checked before the pool is
initialized.

Test: Boot with USAP pool enabled
Change-Id: I29d91abd511bc35c7a70a3a56668c7ee2290864b
2019-03-12 11:19:42 -07:00
Matt Pietal
5b64856b96 Sharesheet - expand 4 direct share to 8 when possible
When the user scrolls, expand or collapse the direct share targets
when more than 4 targets exist.  Move the caller row below the
direct share row and limit to 4 items.

Bug: 126565347
Test: atest ChooserActivityTest
Change-Id: Ibae2dc0522d9393f2022d699ee641a4f6d553974
2019-03-12 13:40:45 -04:00
Matvei Malkov
25c9ac3f5b Rename methods for PopupWindow
This CL renames 4 methods for PopupWindow based on API council
suggestions. Also remove unused import in order to `repo upload`

Bug: b/126354063
Test: All ListPopupWindow, MenuPopup and PopupWindow passed
Change-Id: I5db93b1c18a7a3dc9033cb9c5bbe89107ac22024
2019-03-12 17:12:44 +00:00
Kiyoung Kim
453a487b29 Merge "Add product apk support from libnativeloader" am: 307df45b5f
am: ad0ca523a6

Change-Id: I896f609e4994eb6b0494e3fcf38737c4a69352a8
2019-03-12 02:14:20 -07:00
Kiyoung Kim
ad0ca523a6 Merge "Add product apk support from libnativeloader"
am: 307df45b5f

Change-Id: I1f9c9e63c1cf7477436b8bc38e5e62e075183c64
2019-03-12 02:05:13 -07:00