Commit Graph

12573 Commits

Author SHA1 Message Date
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
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
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
TreeHugger Robot
c1d50138d6 Merge "Use ContentPreview's thumbnail loader rather than ImageUtil." 2019-12-21 03:40:37 +00:00
TreeHugger Robot
fb3ddfc41d Merge "Use ServiceConnector and @DataClass in companion service" 2019-12-21 01:37:44 +00:00
Alison Cichowlas
e12616a34e Send stacked apps through full standard start flow.
Test: Verify logs manually; atest ChooserActivityTest
Fixes: 146672936
Change-Id: I25296cc13e2b5f033552623753e3271b540faa82
2019-12-20 20:08:55 -05:00
Alison Cichowlas
07acade1d1 Use ContentPreview's thumbnail loader rather than ImageUtil.
It includes extra orientation handling.

Bug: 145968771
Test: Manual per bug; atest ChooserActivityTest
Change-Id: Ic237c4ae4ddfbe11b317ec41c3b8a92b590369ce
2019-12-21 00:18:52 +00:00
Eugene Susla
b45b15a701 Use ServiceConnector and @DataClass in companion service
Refactor CompanionDeviceManagerService away from hand-rolled
ServiceConnection management in favor of ServiceConnector

Test: using toy app, ensure companion API still works
Change-Id: I90f937adf4e6f9af2137c77de91ba5cf93fa2212
2019-12-20 15:50:11 -08:00
TreeHugger Robot
8babe47482 Merge "Deferring cross-profile animation after the dialog" 2019-12-20 23:24:05 +00:00
Meng Wang
f28391eb28 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." 2019-12-20 22:46:08 +00:00
TreeHugger Robot
222053f312 Merge "Clean up on logs and javadoc about app data isolation" 2019-12-20 19:58:01 +00:00
Meng Wang
d75f97d21e Use Parcelable CellIdentity instead of CellLocation in AIDL.
Currently CellLocation is passed over AIDL by manually
marshalling/unmarshalling to/from Bundle, and type info
is not preserved in the process.

Bug: 146092124
Test: make
Change-Id: I6225f100953a2ad354acaa261a774989926393ce
2019-12-20 10:50:09 -08:00
Nathan Harold
d9b5dda461 Expose PreciseDataConnectionState to Public API
1) Remove Unused Parameters for onDataConnectionState:
The data connection state broadcast includes a number of
parameters that are never used anywhere. To prepare for
updated code that relies on PreciseDataConnectionState,
remove the unused parameters that were internal-only and
included in the broadcast.

-LinkProperties
-NetworkCapabilities
-DataRoaming
-DataAllowed
-Interface name

2) Add Disconnecting State for Data Connections

Add a disconnecting state to correct a mismatch
between the internal and externally visible enums.

This will allow apps to know when connections are
in the process of being torn down, which in the case
of radio link issues could be as much as 15 seconds.

3) Expose PreciseDataConnection for Carrier Apps

Exposes the PSL for PreciseDataConnectionState along
with existing fields in the PreciseDataConnectionState
class.

-Make PreciseDataConnectionState public along with some
 of its fields.
-Expose onPreciseDataConnectionStateChanged.
-Add onPreciseDataConnectionStatesChanged to provide PDCS
 for all APNs in one cohesive batch.

4) Cache PreciseDataConnectionState by APN Type

In telephony registry, multiple different APN types
are all piped through the same cache entry, so every
time any APN changes relative to the previous type,
it triggers an update. This also means that when
a registrant requests the data connection state, only
the most recent type's state is updated.

This change caches entries in TelephonyRegistry based
on the APN's type (specifically the type among types
which triggered the change).

Bug: 143083105
Test: make update-api && make offline-sdk-docs
      (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Merged-In: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
Change-Id: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
(cherry picked from commit 4d340f12c9)
(cherry picked from commit c95b4e5421)
2019-12-20 10:06:54 -08:00
TreeHugger Robot
fcfbf2fcf5 Merge "Use app title for stack title & dialog title." 2019-12-20 16:29:53 +00:00
Alison Cichowlas
4d21ff0a60 Use app title for stack title & dialog title.
Bug: 146581401
Test: Manual; check appearance of stacked apps in Sharesheet.
Change-Id: I88cc17d003ee40ab7d3eb2ba12cfb5069c7df040
2019-12-20 09:50:18 -05:00
Philip P. Moltmann
baa2cea8c3 Merge changes from topic "RefactorAppOpAccessCounters"
* changes:
  Encapusale running app-ops in an object
  Refactor app-op access/reject counters
2019-12-20 03:04:55 +00:00
Nathan Harold
dcbe98371e Revert "[DO NOT MERGE] Revert submission 9950791-pick-precise-dataconn"
This reverts commit d80dc8fed4.

Bug: 143082463
Test: compilation

Merged-In: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
Change-Id: I455788f72fc6dec23c0d0d24a1ca8ee9c2f637c9
2019-12-19 17:37:54 -08:00
TreeHugger Robot
fee05eb40b Merge "resolve merge conflicts of cc628869ff to master" 2019-12-20 01:35:15 +00:00
Suprabh Shukla
3267035ba6 Deferring cross-profile animation after the dialog
The animation is deferred until a cross-profile activity
is started from the dialog.

Test: Manual:
1. Install any app that uses cross profile API
2. Suspend the app in one profile only
3. Navigate to the profile instance from within the app

Fixes: 144840723
Change-Id: Ia86708c1c4d708e2bae454b4cfe1ba8d4b413c5c
2019-12-19 17:12:47 -08:00
Eugene Susla
5fd6266552 Merge "[CDM] Bypass location setting when scanning for devices" 2019-12-20 00:58:57 +00:00