Commit Graph

463372 Commits

Author SHA1 Message Date
Automerger Merge Worker
c3230c9739 [automerger skipped] Fix potential double destroy of AssetManager am: 0a8a1e9d40 am: 303d3874f2 am: e29951e29e am: 901ee527fc -s ours
am skip reason: Change-Id Ia938502d2443f5a6de6a3cabdb7ce1d41d3ff6d1 with SHA-1 cfa2284cd8 is in history

Change-Id: I6213f57e1417533b12b63be352d4937d561fad1f
2020-01-29 00:47:57 +00:00
Automerger Merge Worker
8cfc4fef61 [automerger skipped] Merge "Make Information Elements (IE) of a scan result available as a public API." am: 34a5bbda41 am: 15e9305761 am: 49c19c5134 -s ours
am skip reason: Change-Id If3b9906c75033f51bd35fcf054154125719ea958 with SHA-1 8e5ca5cd7e is in history

Change-Id: If5a183ec39456825c497b18cb910f6b57e243f11
2020-01-29 00:47:29 +00:00
Automerger Merge Worker
901ee527fc Fix potential double destroy of AssetManager am: 0a8a1e9d40 am: 303d3874f2 am: e29951e29e
Change-Id: Ie636f378bb68f414760453198f4c08762182568a
2020-01-29 00:39:53 +00:00
Automerger Merge Worker
49c19c5134 Merge "Make Information Elements (IE) of a scan result available as a public API." am: 34a5bbda41 am: 15e9305761
Change-Id: I55c5cf81ba19cec36efdde8dfd7bd6b4acca519a
2020-01-29 00:34:20 +00:00
Automerger Merge Worker
e29951e29e Fix potential double destroy of AssetManager am: 0a8a1e9d40 am: 303d3874f2
Change-Id: I3ddb9a9b1b67341b76ead480662356944d9146e6
2020-01-29 00:28:12 +00:00
Muhammad Qureshi
9652ad9514 Merge "Add bluetooth module" 2020-01-29 00:26:01 +00:00
Xiao Ma
15e9305761 Merge "Make Information Elements (IE) of a scan result available as a public API."
am: 34a5bbda41

Change-Id: Ia0680401d2c670eb795027ebc3256ec314f41c45
2020-01-28 16:21:45 -08:00
Automerger Merge Worker
303d3874f2 Fix potential double destroy of AssetManager am: 0a8a1e9d40
Change-Id: I10010fa2087e7978dc88b1d1e6f6e5d3a4661499
2020-01-29 00:12:51 +00:00
Xiao Ma
34a5bbda41 Merge "Make Information Elements (IE) of a scan result available as a public API." 2020-01-29 00:12:20 +00:00
TreeHugger Robot
3ae3310311 Merge "Made DataShareCallbackDelegate a static class not storing a hard reference to its parent." 2020-01-29 00:03:39 +00:00
TreeHugger Robot
6db19b2386 Merge "Update classes in tuner JNI" 2020-01-28 23:54:18 +00:00
TreeHugger Robot
eeeb47d83c Merge "Tests for libstatspull" 2020-01-28 23:49:25 +00:00
Winson Chung
8ce640f9ad Merge "Always add the task to the recent task list when starting" 2020-01-28 23:36:27 +00:00
Paul Trautrim
c446689491 Merge "Add implementation of getInterfaceHash()" 2020-01-28 23:34:16 +00:00
TreeHugger Robot
8326cae642 Merge "Fix response id in FillResponse parceling." 2020-01-28 23:26:39 +00:00
Yinglei Wang
f367889de8 Merge "modify quick settings to adopt the accessibility state api" 2020-01-28 23:18:15 +00:00
Jean-Michel Trivi
6923cdd83d Merge "MediaSessionRecord: fix volume stream query" 2020-01-28 22:49:46 +00:00
Jorim Jaggi
a649c24efa Merge "Fix nav inset for gesture nav" 2020-01-28 22:49:40 +00:00
Danny Epstein
dab6c77154 Merge "Don't draw default focus highlight unless focused." 2020-01-28 22:48:32 +00:00
Tej Singh
f11e0a3913 Tests for libstatspull
Sets up a new test suite in frameworks/base/apex/statsd. Creates a JNI
wrapper around libstatspull so that configs can be added and removed
from java, but the pulls happen in native code.

Bug: 145310729
Test: atest LibStatsPullTests
Change-Id: Ib3df74cac12f4276892be3f4a060a4a9dd120464
2020-01-28 14:27:53 -08:00
TreeHugger Robot
8fd198216c Merge "Use correct actor string for OverlayableInfo" 2020-01-28 22:26:41 +00:00
Ned Burns
a004f24f68 Merge changes I5fe67e17,I2c7c272c
* changes:
  Example implementations of new logging system
  Hyper-lightweight logging update
2020-01-28 22:17:49 +00:00
Adam He
cb6826a9e2 Fix response id in FillResponse parceling.
Fixes: 148412653
Test: atest CtsAutoFillServiceTestCases
Change-Id: I5c3dfa81d09e613deadf2f3969e3d6122de230db
2020-01-28 14:06:12 -08:00
Mady Mellor
bd35832d9b Merge "Bubble API: post update when bubble notification suppression flag changes" 2020-01-28 22:04:38 +00:00
TreeHugger Robot
ab2fa88e20 Merge "Move Platinum tests to BVT" 2020-01-28 22:03:50 +00:00
Rob Carr
f0a9dd1e94 Merge "IME Layering: Don't assign relative layering in all multi-window modes" 2020-01-28 21:33:15 +00:00
yingleiw
4a72a74b2a modify quick settings to adopt the accessibility state api
Seperated out the state part from contentDescription. Also changed the
tile on/off states from mocking switch to unavailable/on/off state
description based on State.state. During testing, I removed event
merging (including source node merging) for state and content change
events. Use event text for state description changed part will be in a
seperate CL.

Test: tested on the quick settings tiles for focusing and state change
evnets. With the event merging removed, the state change is announced
when the focus keeps on the tile. Before my change, content change is
not announced when the focus keeps on the tile due to source node change
in event merging.

Fix: 148473520

Change-Id: I5b6aee6f0982cf4e0a3962fbe15239314f3a2de4
2020-01-28 13:31:13 -08:00
shubang
d351b825e2 Update classes in tuner JNI
Test: make
Change-Id: I582d747f2bf8dc9b9cb6c73861a42b5629b8b9e6
2020-01-28 13:28:29 -08:00
TreeHugger Robot
1b1bdd3642 Merge "Remove usage of android.os.Build.IS_USER" 2020-01-28 21:24:27 +00:00
Automerger Merge Worker
01a6af0611 Merge "Reduce the number of rotations of flicker tests" am: b6d051c228 am: 77f788067d am: 425a97149a
Change-Id: Ie7551934d419d5c9ca102e0b5b86f28a7c8f2b97
2020-01-28 21:14:25 +00:00
Automerger Merge Worker
e1422db2b9 Merge "Disable flaky flicker tests" am: e56396645b am: 29ff225c90 am: 575f7ef7bb
Change-Id: I53636801cc06fe23eccb35e033770b504a166073
2020-01-28 21:13:34 +00:00
TreeHugger Robot
42ce71195c Merge "Handle controlInputMethodAnim correctly when IME isn't ready" 2020-01-28 21:09:07 +00:00
Soonil Nagarkar
4183a6290e Merge "Fix rebind issue in ServiceWatcher" 2020-01-28 21:08:07 +00:00
Automerger Merge Worker
425a97149a Merge "Reduce the number of rotations of flicker tests" am: b6d051c228 am: 77f788067d
Change-Id: I9b9ae2ac2f877812919ca31a8968e9c505598e3a
2020-01-28 21:03:53 +00:00
Jean-Michel Trivi
84d483e1e2 MediaSessionRecord: fix volume stream query
Use the correct AudioAttributes method to query which volume stream
  is associated with audio attributes.
Prevent AudioProductStrategy from returning invalid volume stream
  types / stream types unknown for volume control

Bug: 148263626
Test: see bug

Change-Id: I64d01286815474d5e23fbe7e57c58bfdf57ebd3e
2020-01-28 13:03:44 -08:00
Automerger Merge Worker
575f7ef7bb Merge "Disable flaky flicker tests" am: e56396645b am: 29ff225c90
Change-Id: If564155af0bb2eb3790345153f8324f0f02baab1
2020-01-28 21:03:34 +00:00
Lucas Dupin
e5dc1d9d05 Move Platinum tests to BVT
Test: atest --test-mapping frameworks/base/packages/SystemUI:staged-platinum-postsubmit
Test: atest --test-mapping frameworks/base/packages/SystemUI:platinum-postsubmit
Change-Id: I67f47e5214a74f13634de062e9005b680c7dce47
2020-01-28 12:57:37 -08:00
Automerger Merge Worker
77f788067d Merge "Reduce the number of rotations of flicker tests" am: b6d051c228
Change-Id: I04c4587ecd3d7406c95f5a177356fa1a6b3763d0
2020-01-28 20:51:20 +00:00
Automerger Merge Worker
29ff225c90 Merge "Disable flaky flicker tests" am: e56396645b
Change-Id: I5add5c709494699ef98eb6629325cb7060c5f4ef
2020-01-28 20:50:51 +00:00
TreeHugger Robot
68fe9164d5 Merge "Specify explicit actions for bubble / unbubble" 2020-01-28 20:37:29 +00:00
Jorim Jaggi
b6d051c228 Merge "Reduce the number of rotations of flicker tests" 2020-01-28 20:34:21 +00:00
Jorim Jaggi
e56396645b Merge "Disable flaky flicker tests" 2020-01-28 20:34:11 +00:00
Rob Carr
55a32151b4 Merge "WM: Defer transactions for BLAST Surfaces too." 2020-01-28 20:19:18 +00:00
Ruslan Tkhakokhov
c2f1781b28 Merge "Stage 'android' package in PerformUnifiedRestoreTask" 2020-01-28 20:02:05 +00:00
Malcolm Chen
b30b3ba232 Remove usage of android.os.Build.IS_USER
Bug: 140908357
Test: build
Change-Id: I572736ff773e71e420a732aa4c56d5dceee1a454
2020-01-28 11:58:23 -08:00
Ned Burns
7d2e9c1c27 Example implementations of new logging system
Test: manual
Change-Id: I5fe67e17ed10bc6ab9cd32a158cdbcf6778ece12
2020-01-28 14:46:30 -05:00
Ned Burns
56a0ea125a Hyper-lightweight logging update
Update to our system for high-volume logging with the goal of having any
logging call result in *zero* allocations, not even strings.

The core pieces are LogBuffer and LogMessage. LogBuffer is a simple
ring buffer that holds instances of LogMessage. LogMessages store
data related the thing they're logging, but in a generic way that
allows them to be reused across ALL log types.

In order to log a message, the caller must supply two things:

- The _initializer_, a function that stores data on a LogMessage
- The _printer_, a function that converts a LogMessage containing the
stored data into a human-readable string.

When a message is logged, the initializer is called on a newly-obtained
instance of LogMessage. The printer is also stored on the message and
the message itself is inserted into the buffer. Later, when the message
needs to be dumped, the printer is called on the message instance to
create a human-readable string.

Using features of Kotlin, we can inline calls to the initializer so the
function is effectively erased. The printers cannot be erased (we need
to maintain a reference to them) and so each printer requires a (small)
classdef. However, because the printers are stateless, we only ever need
one instance copy per printer.

Advantages of this system:
- Lightweight: no-allocation logging (still some overhead, but it's
very slight).
- Ease of use: easy to add new logs. Log-generating code is easy to
read.
- Closer match to logcat: system uses TAG and logcat levels (VERBOSE,
etc)
- Finer-grained control over debugging: Can control which tags and/or
buffers log to logcat and at what logging level (VERBOSE, etc).

Disadvantages:
- Each log type requires the creation of an anonymous class def (the
printer function). With a ton of such class defs, our code might get
bloated (it's unlikely for us to reach this point, however).
- Easy to accidentally write a log message that triggers an allocation
(if your printer function captures any outside scope, such as one of the
original log parameters, then the system will need to instantiate a new
instance of the printer function for each call instead of reusing a
singleton static instance).

Test: manual
Change-Id: I2c7c272cda4ce61d56427ab1d6eb270d9365b325
2020-01-28 14:43:42 -05:00
Rob Carr
c847a7ad12 Merge "ViewRootImpl: Always run finishBLASTSync" 2020-01-28 19:32:53 +00:00
Mady Mellor
d7fcf05d3f Specify explicit actions for bubble / unbubble
It's not always safe to flip the channel setting because the notif might
be allowed to bubble, but is not currently displayed as bubble. In that
case the button would say "show as bubble" but the code would flip the
setting to false, doing the opposite of the user action.

This CL specifies actions for bubble / unbubble and only commits the
channel change if the setting actually changed.

Test: atest NotificationConversationInfo
Fixes: 148425750
Bug: 148424396
Change-Id: I6f561cf388d2595df53ac41b9a183f6c50976d21
2020-01-28 11:31:51 -08:00
Jorim Jaggi
d7f10ed088 Handle controlInputMethodAnim correctly when IME isn't ready
- Store pending control request when request needs to go over IME
- Abort pending control request when losing control
- Use timeout in case we haven't heard back from IME

Test: InsetsControllerTest
Bug: 111084606
Change-Id: Icb6a9d8ad9134f8cb836e15c09c2b2295219fc15
2020-01-28 20:24:02 +01:00