Commit Graph

12590 Commits

Author SHA1 Message Date
TreeHugger Robot
c18efd1f4d Merge "Use new UnsupportedAppUsage annotation." 2020-01-08 07:55:21 +00:00
Automerger Merge Worker
af62773f71 Merge "Revert "Implement the ThreadPrioritySetter interface"" am: e716ff86af am: bca74a47bc am: 2f162c37cf
Change-Id: I83c6720bd80c85d4446ce5b173102dc6fbe5cdc2
2020-01-08 07:38:57 +00:00
Automerger Merge Worker
2f162c37cf Merge "Revert "Implement the ThreadPrioritySetter interface"" am: e716ff86af am: bca74a47bc
Change-Id: I81839f9092d261042c0d5cad918b35ab24244674
2020-01-08 07:23:22 +00:00
Rick Yiu
e716ff86af Merge "Revert "Implement the ThreadPrioritySetter interface"" 2020-01-08 06:49:37 +00:00
Meng Wang
1ce0f39441 Merge "ANY_DATA_CONNECTION_STATE_CHANGED: define locally" 2020-01-08 02:26:44 +00:00
Rick Yiu
6df72bd988 Revert "Implement the ThreadPrioritySetter interface"
Revert submission 1194951-ThreadPrioritySetter2

Reason for revert: need to update new API
Reverted Changes:
Iee33a26c0: Implement the ThreadPrioritySetter interface
I71c5052be: Use ThreadPrioritySetter to set thread priority

Change-Id: I38c1335bff657662d82ff8778bffade323ced620
2020-01-08 02:22:39 +00:00
Kenny Root
155d5648fd Merge "Support Resume on Reboot" 2020-01-08 01:51:17 +00:00
Meng Wang
dd43acc58f ANY_DATA_CONNECTION_STATE_CHANGED: define locally
to cut the tie with telephony mainline module.

Bug: 147101086
Test: make
Change-Id: I2b749cadbbf425649b38786821025a1634fe4d4e
2020-01-07 14:05:25 -08:00
TreeHugger Robot
e4f93070ed Merge "Collect historical appops by feature" 2020-01-07 19:20:21 +00:00
TreeHugger Robot
26eb022b1b Merge "Sharesheet - Crash during work profile share" 2020-01-07 18:17:52 +00:00
Nathan Harold
8b804f3308 Merge "Add Callback for Registration Failure" 2020-01-07 18:17:03 +00:00
Kenny Root
f76cfc314c Support Resume on Reboot
When an OTA is downloaded, the RecoverySystem can be triggered to store
the user's lock screen knowledge factor in a secure way using the
IRebootEscrow HAL. This will allow the credential encrypted (CE)
storage, keymaster credentials, and possibly others to be unlocked when
the device reboots after an OTA.

Bug: 63928581
Test: atest FrameworksServicesTests:RebootEscrowDataTest \
            FrameworksServicesTests:LockSettingsServiceTests \
            FrameworksServicesTests:RecoverySystemServiceTest \
            FrameworksServicesTests:RebootEscrowManagerTests
Test: use fake OTA console app to apply update
Change-Id: I59df6942b27ea2bdd11b757922f5169085a325f0
2020-01-07 08:18:02 -08:00
Matt Pietal
2025a1bee2 Sharesheet - Crash during work profile share
RecyclerView was crashing, due to a view being added without an
appropriate viewholder. Needed to delay view/viewholder creation until
requested by the recyclerview.

Bug: 147137182
Test: atest ChooserActivityTest
Change-Id: I5f8a9713a3e72523edef1d296eb627bcb2e8fd7d
2020-01-07 10:12:33 -05:00
Artur Satayev
00f8b53650 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I8ffa1da1bcd43c25f4ff817575db77a33c0f3d31
2020-01-07 14:40:02 +00:00
Artur Satayev
74cb719964 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-07 14:19:21 +00:00
Automerger Merge Worker
d6bf5aa253 Merge "Implement the ThreadPrioritySetter interface" am: bc0290a7b0 am: 4db03331ac am: 09b06a3f1f
Change-Id: I54ee7272cd69f5e8e14777f8f717db8ce2239232
2020-01-07 03:42:21 +00:00
Automerger Merge Worker
09b06a3f1f Merge "Implement the ThreadPrioritySetter interface" am: bc0290a7b0 am: 4db03331ac
Change-Id: Ib8df0e26ebc61f6d2014d8784e91c16197389fb1
2020-01-07 03:25:43 +00:00
Rick Yiu
bc0290a7b0 Merge "Implement the ThreadPrioritySetter interface" 2020-01-07 02:31:17 +00:00
Philip P. Moltmann
4aacd7138f Collect historical appops by feature
This
- pipes through the featureId from AppOpsService to HistoricalRegistry
- changes the file format of historical app ops by adding the feature-id
  tag. This will make us loose all previously collected app-ops. This is
  ok as we never shipped a device with historical app-ops enabled
- Adds a new layer to the HistoricalOps hierarchy. For backwards
  compatibility it is possible to go directly from package to op. In this
  case a combined HistoricalOp object is generated on the fly.
- It is possible to filter historical ops requests by featureId.
  Unfortunately a 'null' featureId is a valid ID. Hence there is now a
  dedicated mask of paramters to filter for (@HistoricalOpsRequestFilter).
- Fixes the equals methods of HistoricalOp by implementing an equals
  method for LongSparseLongArray

Test: atest CtsAppOpsTestCases AppOpsServiceTest
Bug: 136595429
Change-Id: I92c41e8ae2cd471051c2d628d49a3ad6a5a66330
2020-01-06 14:42:56 -08:00
TreeHugger Robot
33872252d1 Merge "Add dumpsys cpuinfo proto" 2020-01-06 22:05:56 +00:00
Dave Mankoff
6b5b77e7bd Merge "Refactor PanelView and NotificationPanelView into Controllers." 2020-01-06 21:49:10 +00:00
Mike Ma
24b9636a3c Add dumpsys cpuinfo proto
Add protobuf dumpsys of cpuinfo, invoked by dumpsys cpuinfo --proto.
Also add "dumpsys cpuinfo --proto" section to incident.proto

Bug: 146086163
Test: adb shell dumpsys cpuinfo --proto, then verify its content
Change-Id: I84ed623dee9708e36c75d8effb71408401e0dac0
2020-01-06 12:43:32 -08:00
Dave Mankoff
59b9496c7b Refactor PanelView and NotificationPanelView into Controllers.
Bug: 141751146
Test: atest SystemUITests
Change-Id: I9a92cad636e30634ac5b1fa16121d320991492c2
2020-01-06 14:56:26 -05:00
TreeHugger Robot
b40b4ccb52 Merge "LockscreenCredential: clarify Effective Java rule" 2020-01-06 17:27:22 +00:00
TreeHugger Robot
18813f70ac Merge "Rollback collapsed flag in ResolverDrawerLayout due to b/147137182" 2020-01-06 17:07:15 +00:00
TreeHugger Robot
b6a24e67e3 Merge "Avoid calling LockPatternUtils from LockSettingsService" 2020-01-06 16:46:35 +00:00
Rubin Xu
3744acff4b Avoid calling LockPatternUtils from LockSettingsService
Bug: 63619579
Test: atest com.android.server.locksettings
Change-Id: I3f4183867b2919bc7a793c6824796a47e31cd377
2020-01-06 14:59:23 +00:00
Sergey Troshin
89b384697a Rollback collapsed flag in ResolverDrawerLayout due to b/147137182
Bug: 147137182
Test: atest ChooserActivityTest ResolverActivityTest

Change-Id: I0e81000cd11f32109ecc1a109011c53d42db3f15
2020-01-06 15:25:20 +01:00
Artur Satayev
ed5a6ae7ae Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I41e12e425284e74561c6b61663241df364ae54a1
2020-01-06 12:27:42 +00:00
Peter_Liang
3960d7ae36 Multiple shortcut menu for android R (2/n).
1. Update AccessibilityButtonChooserActivity:
  - Refactor the design
  - Add shortcut type checker and the corresponding UI
2. Add new icons

Bug: 142528666
Test: maunal
Change-Id: Ia58742f094535d42b748f56dfef84e5e06f2b0aa
2020-01-06 13:55:11 +08:00
Philip P. Moltmann
54354063a9 Merge "Collect AsyncNotedAppOp in same call as noteOp" 2020-01-04 03:24:00 +00:00
Rick Yiu
a7612150ff Implement the ThreadPrioritySetter interface
Implement the ThreadPrioritySetter interface and register it in
runtime.

Bug: 139521784
Test: CtsLibcoreTestCases, device boot to home, thread priority set
      as expected.
Change-Id: Iee33a26c0b25386dd10a51a14284cab71e71edb2
2020-01-04 02:56:38 +00:00
Julius D'souza
49b8b918d8 LockscreenCredential: clarify Effective Java rule
The "Always override hashCode when you override equals" rule in
Effective Java now has different item numbers across editions.
Update the comment to the actual rule used.

Test: new comment reads correctly

Change-Id: Ibdbce008f653f8800acc76176ad06ffe347dc106
Signed-off-by: Julius D'souza <jdsouza@google.com>
2020-01-03 15:31:12 -08:00
TreeHugger Robot
950e55d4f2 Merge "Add server side implementation for inline augmented autofill request." 2020-01-03 22:12:22 +00:00
Philip P. Moltmann
da554e4de0 Collect AsyncNotedAppOp in same call as noteOp
This reduces the overhead of collecting noted app-ops to the same amount
of binder calls as if we would not have the feature

Before (conceptionally):
---------------------------------
mode = service.noteOp()
if (mode == allowed && shouldCollectAsyncOp) {
   fixup(message)
   service.noteAsyncOp()
}
----------------------------------

After (conceptionally):
----------------------------------
if (shouldCollectAsyncOp) {
   fixup(message)
}
mode = service.noteOp(shouldCollectAsyncOp, message)
----------------------------------

Bug: 136505050
Test: atest CtsAppOpsTestCases
Change-Id: If1b535a7c4b0f431f251c5d06cdf496c34920e23
2020-01-03 12:37:23 -08:00
Feng Cao
5bf0d2bc5e Add server side implementation for inline augmented autofill request.
Test: manual
Bug: 146453195

Change-Id: Id9c3e16cd5b05ba1c87eb8cdb4a95f2f79bfd77b
2020-01-03 11:28:21 -08:00
TreeHugger Robot
c07ad2d6d5 Merge "Improve ResolverActivity UX on TV" 2020-01-03 13:49:35 +00:00
Automerger Merge Worker
c25a9dd796 Merge "Prevent double-counting of kernel stack size in dumpsys reports" am: 9493f0ed0b am: a457a78ab7 am: 6dfd9358a3
Change-Id: Ic4ed5159c6e823167bc867e29d15dc526a3c33ea
2020-01-03 01:34:01 +00:00
Automerger Merge Worker
6dfd9358a3 Merge "Prevent double-counting of kernel stack size in dumpsys reports" am: 9493f0ed0b am: a457a78ab7
Change-Id: I5454c8a0c92bd8b25956cf96b987199fffe3a898
2020-01-03 01:15:50 +00:00
Nathan Harold
5e6e983cad Add Callback for Registration Failure
Add a callback to PhoneStateListener to indicate that
a registration procedure has failed.

Bug: 143187047
Test: make update-api && make
Change-Id: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
2020-01-02 17:01:36 -08:00
Suren Baghdasaryan
2018bf03f9 Prevent double-counting of kernel stack size in dumpsys reports
When kernel is configured with CONFIG_VMAP_STACK=y kernel stacks are mapped
into process space and therefore already accounted as part of the value
returned by ReadVmallocInfo and reported under MEMINFO_VM_ALLOC_USED
category. Introduce isVmapStack function to check if kernel is configured
with that option and if so do not exclude kernel stack size in the
calculation of memory used by kernel.

Bug: 146088882
Test: dumpsys meminfo with CONFIG_VMAP_STACK enabled and disabled
Change-Id: I9230bbf0ab05524cf52ded35171fd9ec3da16fa0
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-01-02 13:36:34 -08:00
Christian Wailes
1bde472406 Merge "Fixed an issue Zygote initialization." 2020-01-02 20:50:11 +00:00
Matt Pietal
9236adcf17 Resolver/Chooser - Window inset fixes
Resolver supports numerous layouts, with optional ViewGroups. Need to
make sure the window inset is applied to the correct view. If there is
a List present, add a footer so that the list scrolls underneath the
navbar.

Test: atest ResolverActivityTest, ChooserActivityTest
Bug: 142726977
Change-Id: I34cb037046892ac96c16d705f1d8d833040a3e2c
2020-01-02 11:36:42 -05:00
Sergey Troshin
40e979e60a Improve ResolverActivity UX on TV
The following problems were fixed:

1. It's not possible to select "Just once" / "Always" buttons when the list doesn't fit all the items;

2. The list doesn't automatically scroll when selecting an item that's out of the view;

3. When there's a default action assigned, the dialog has an interactive "Use a different app" header, that's selected by default and does nothing.

Bug: 119841729
Test: atest ChooserActivityTest ResolverActivityTest
Change-Id: Ib143636ea009f9f155942af68c3a3a6250ec8261
2019-12-31 13:47:16 +01:00
PETER LIANG
abc02e8402 Merge "Multiple shortcut menu for android R (1/n)" 2019-12-27 01:59:05 +00:00
Nathan Harold
47fbf0aaa0 Merge "Expose PreciseDataConnectionState to Public API" 2019-12-26 23:05:58 +00:00
Peter_Liang
7ffd17c21d Multiple shortcut menu for android R (1/n)
Update AccessibilityButtonChooserActivity:
  - Remove legacy design codes and strings
  - Change chooser layout

Bug: 142528666
Test: maunal
Change-Id: I427987e71cbfa57ffdccbbd857f1e869c9d21d18
2019-12-24 15:08:08 +08:00
TreeHugger Robot
cd87f72f02 Merge "Send stacked apps through full standard start flow." 2019-12-23 12:50:43 +00:00
Jeff Sharkey
bc189e7d11 Merge "Block access to most Android/* directories." 2019-12-23 02:43:47 +00:00
Jeff Sharkey
c887908f28 Block access to most Android/* directories.
In a scoped storage world, access to "Android/data" style directories
is blocked for privacy reasons.

Bug: 141521616
Test: manual
Change-Id: I0f435204ce2fcb4514e774239ecb1a1ca26d9dff
2019-12-22 14:16:20 -07:00