350443 Commits

Author SHA1 Message Date
Jeff Sharkey
14e1b283e8 Merge "Skip FDE-specific operations, mkdir() throwing." 2017-11-28 16:57:19 +00:00
Lucas Dupin
9e3fa1033c Refactoring ScrimController
ScrimController is now a state machine with tests.

The main motivation for refactoring this class was to
centralize ownership of the scrim state. Before, animations
could be triggered by StatusBar, StatusBarKeyguardViewManager
or DozeScrimController simultaneously, causing collision,
sometimes overriding an expected state due to the call order
and making it hard to calculate an actual state.

Change-Id: I4f4d82549235d3fc7be35b235a2668e70b956cb7
Fixes: 64397851
Fixes: 65688233
Bug: 64155983
Test: runtest -x tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: runtest -x tests/src/com/android/systemui/statusbar/phone/DozeScrimControllerTest.java
Test: unlock using fingerprint, or challenge (pin/password/pattern)
Test: trigger in-app bouncer (camera app)
Test: pull down notification shade locked and unlocked
Test: lock, look at AoD (or black display when AoD isn't supported)
2017-11-28 11:25:49 -05:00
Neil Fuller
c20270b5b2 Merge "Trim away some dead code" 2017-11-28 16:16:53 +00:00
Adrian Roos
40159e5ac1 Merge "WM: Stop tampering with sysuiVisibility for layout" 2017-11-28 16:15:07 +00:00
TreeHugger Robot
b0bebcfa09 Merge "WM: Add PhoneWindowManagerLayoutTest" 2017-11-28 16:14:35 +00:00
Wyatt Riley
fb84092313 Adding GNSS Model & Version String
Adding JNI callbacks

Bug: 38003769
Test: Builds.  TODO: Basic VTS & java connection

Change-Id: I0849d3f91c0fdc2bd4af53c372e2d37f6e6aba1f
2017-11-28 08:12:58 -08:00
Paul Duffin
5c99382a19 Added new android.test.base targets
Renames ...-legacy-test-... targets related to stubs generation to
...-android-test-base-....

Bug: 30188076
Test: make checkbuild
Change-Id: I54204733612d6d3f14dd8023973e993a5ddab51d
2017-11-28 15:42:05 +00:00
Andrew Sapperstein
32ce9f76d7 Add hooks to configure system button text styling.
Adds configuration values to change the styling of buttons on system
surfaces. Specifically, adds config_fontFamilyButton and
config_buttonTextAllCaps to control the default font and whether text
is all caps.

Additionally, adds plumbing so that these configs are utilized by
Theme.DeviceDefault (and descendent) themes. Some styles are added/updated
for this support.

Bug: 64122537
Bug: 69314526
Test: ag/3228846
Change-Id: I08406633bd744c6f58d5144d035aa27bf9c175df
2017-11-28 07:26:56 -08:00
Adrian Roos
d4970af157 Display Cutout: Add Cutout to WindowInsets
Adds a facility for communicating the display cutout to
windows. A follow-up CL will make this a public API.

Bug: 65689439
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/core/tests/coretests/src/android/view/DisplayCutoutTest.java
Change-Id: I2290adea0130a7e5764a9412616fd3192800e06a
2017-11-28 16:14:31 +01:00
Paul Duffin
178dfc661d Merge "Move legacy-test to test-base" 2017-11-28 14:45:28 +00:00
TreeHugger Robot
d5c6baadb3 Merge "Remove unused target android.test.mock.sdk" 2017-11-28 14:26:22 +00:00
Naomi Musgrave
d2c83c08bf Merge "Add id to NetworkEvent." 2017-11-28 13:30:19 +00:00
Selim Cinek
9b49f6dea0 Increased the notification paddings
The notifications now have slightly bigger paddings
for better readability and in order to support the
lockscreen redesign better.

Test: manual
Bug: 69168591
Change-Id: Ib5ddee5c1695387a162f64de10385b6c92a19761
2017-11-28 14:12:14 +01:00
Adrian Roos
7737398f68 WM: Stop tampering with sysuiVisibility for layout
Instead of changing the sysuiVisibility to get the desired layout behavior
calculate the implied sysuiVisibility flags at layout time. This allows us
to check what the window originally requested, which will be needed later
for cutout-aware layout.

Bug: 65689439
Test: runtest -x services/tests/servicestests/src/com/android/server/policy/PhoneWindowManagerLayoutTest.java
Change-Id: I195f7b8ad535731614ea8f5fb2af2f001fd13036
2017-11-28 14:11:10 +01:00
Adrian Roos
e1856fe710 WM: Add PhoneWindowManagerLayoutTest
Test: runtest -x services/tests/servicestests/src/com/android/server/policy/PhoneWindowManagerLayoutTest.java
Change-Id: I85af4bdd023a274233362d42628de19483b0c4ea
2017-11-28 14:11:09 +01:00
Selim Cinek
5a673d7f75 Merge "White media notifications are now dimmable" 2017-11-28 13:03:42 +00:00
Paul Duffin
f779efd62c Move legacy-test to test-base
Make it consistent with the test-mock and test-runner directories.
Also renames the files in api/ subdirectory.

Bug: 30188076
Test: make checkbuild
Change-Id: If4f99a65fcca416ede5b3e63481398f0b451bcb7
2017-11-28 12:03:53 +00:00
Paul Duffin
10d0658bf0 Remove unused target android.test.mock.sdk
Bug: 30188076
Test: make checkbuild

Change-Id: I9b613969425e6c4d8700f6275484d6452a3cc3af
2017-11-28 11:24:40 +00:00
TreeHugger Robot
62c9860111 Merge "New Autofill API: Validators.not" 2017-11-28 08:04:26 +00:00
Tony Mak
213955e562 Fix user color overlay is not applied
Resource overlay is now done in runtime with non-system resources object.
Amend getDefaultUserIcon to take resources object as parameter.

BUG: 69355037
Test: Factory reset, verify that overlayed color is used in multiple
places, including keyguard, the bar under quick settings and Settings app.

Change-Id: I20b0527bdcb2eb38e8bea6a05f53eea1edcba932
2017-11-28 07:47:19 +00:00
Jakub Pawlowski
cb6ce25529 Add persistent state for Hearing Aid Profile
Defines the flag used in code and the Settings.Global key names for
persisting state of the Bluetooth Hearing Aid Profile.

Test: manual
Bug: 69623109
Change-Id: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
Merged-In: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
2017-11-28 07:27:29 +00:00
TreeHugger Robot
3e585ecb51 Merge "Some fixes in StatsdStats, and add some unit tests" 2017-11-28 06:58:54 +00:00
yoshiki iguchi
ff4696cf4c Decouple HeadsUpManager and ScrollContainer from remote input classes
This cl removes the dependency to the status bar related classes from
the remote input classes (RemoteInputController and RemoteInputView),
so that we can reuse the remote input code from statusbar-less Android
environment like ARC.

Bug: 63874929
Bug: 62602530
Test: Compiled and ran
Change-Id: Id594446592dd9b74ff8ef844ce8eace301b22b56
2017-11-28 14:35:35 +09:00
TreeHugger Robot
aafee0d4e6 Merge "Rip out WindowContainer#isScreenOverlay" 2017-11-28 05:20:58 +00:00
TreeHugger Robot
72ca875ec4 Merge "Thread-safe metric producers." 2017-11-28 05:16:35 +00:00
Sudheer Shanka
a81df1b714 Merge "Add tests for validating cpu freq times in batterystats dump." 2017-11-28 04:52:44 +00:00
Yao Chen
69f1baf7dd Some fixes in StatsdStats, and add some unit tests
+ Add timestamp for when metric data is reported.

Test: statsd_test

Change-Id: Ief5ec5172feed4ec74b7422b77cf69ec8361ef2f
2017-11-27 20:45:16 -08:00
Paul McLean
558ff9d3f5 Fixed class and subclass IDs sign extension on byte->int problem.
Devices - Skylab, Mir, HTC dongle, Presonus AudioBox 44VSL, HP mouse
Hard coded class ID of 0xFF and subclass 0xFD to match b/68944518 symptoms.

Bug: 68944518

Test: Manual - see above

Change-Id: I7330c57b15278158a2eb449f0463b91244a3e176
2017-11-27 20:58:38 -07:00
Paul Mclean
e6e6f2d6c1 Revert "Revert "Access already-read descriptors on device connect. (Eliminate extra read)""
This reverts commit 95966880171a8cdf7c1f6471a2794a0d3b07f69f.

Change-Id: I6f8f965fa4529ac5a027a2abac981f32b07d8659
2017-11-27 20:58:38 -07:00
Paul Mclean
9d84fee2ea Revert "Revert "Eliminate native/JNI/callback USB Descriptor parsing mechanism""
This reverts commit 115cd64f168e14401ba3a2062c8cbe9361416802.

Change-Id: I8be17cf939397b3c8ac6b11759b8195f5febab10
2017-11-27 20:58:38 -07:00
TreeHugger Robot
13a0dbc173 Merge "Speed up initiating resizing." 2017-11-28 03:36:16 +00:00
TreeHugger Robot
a6a8970baf Merge "Add persistent state for Hearing Aid Profile" 2017-11-28 03:05:01 +00:00
Robert Carr
ee4d4b9665 Rip out WindowContainer#isScreenOverlay
Messes up ordering of the windows that should be above
the navigation bar and status bar. It seems better to
achieve the IME layering we need directly.

Bug: 69591927
Test: Manual
Change-Id: I69202bca0b84cec5d9f5176645e31c5bd0af767e
2017-11-27 18:51:42 -08:00
Mike Digman
93f0834976 Add route for rotation suggestions from StatusBar to CommandQueue
Test: usused pipe
Change-Id: I7a4131f8f99edbc33f8d22eda3e7a6c97b8530bf
2017-11-27 18:42:15 -08:00
Jeff Sharkey
cba2b00258 Merge "Deeper sanity checking of emitted types." 2017-11-28 02:36:17 +00:00
Andrii Kulian
6b9d3a1400 Add transaction unit tests
Bug: 64797980
Test: android.app.servertransaction.ClientTransactionTests
Test: android.app.servertransaction.TransactionParcelTests
Change-Id: I108bacc819e9d43d0a2f5a30338ae88674a53239
2017-11-27 18:15:49 -08:00
TreeHugger Robot
352be20d06 Merge "Fix race between AnimationListener and DragState" 2017-11-28 02:03:52 +00:00
TreeHugger Robot
593f56cc81 Merge "statsd informs incidentd of anomalies" 2017-11-28 01:59:57 +00:00
Jordan Liu
5b8f69b08e Merge "Add carrier config variable to hide manage IMS conference call button" 2017-11-28 01:50:56 +00:00
TreeHugger Robot
0bb0fda72c Merge "Fix removal of IME target." 2017-11-28 01:19:48 +00:00
TreeHugger Robot
64b00066fe Merge "Statsd anomaly detection - fixes" 2017-11-28 01:17:44 +00:00
Phil Weaver
1e6ecc69b7 New API to specify accessibility focus grouping
We've been telling developers to use the focusable
attribute to control grouping for accessibility focus. This
new API can be used in place of the focusable attribute.

Bug: 63889180
Test: Adding new CTS tests for new api.

Change-Id: I5cbeb736a3b206f87aa3d921a39c43861c7ff082
2017-11-27 17:03:27 -08:00
Jakub Pawlowski
c2d7be6667 Add persistent state for Hearing Aid Profile
Defines the flag used in code and the Settings.Global key names for
persisting state of the Bluetooth Hearing Aid Profile.

Test: manual
Bug: 69623109
Change-Id: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
2017-11-28 01:03:01 +00:00
Dianne Hackborn
bd0cdcdcc7 Merge "Add documentation for O and O_MR1 target SDK changes." into oc-mr1-dev am: b94e697dcf
am: 532c2f8a36

Change-Id: I27d9a43ec394fd9634d380b385b7317d1d92d89c
2017-11-28 01:02:23 +00:00
TreeHugger Robot
4fa582be24 Merge "Applies last scroll position in recents after rotation" 2017-11-28 00:55:46 +00:00
TreeHugger Robot
a98d3891e5 Merge "Check for /dev/memcg/system/tasks before writing to it" 2017-11-28 00:54:26 +00:00
Dianne Hackborn
532c2f8a36 Merge "Add documentation for O and O_MR1 target SDK changes." into oc-mr1-dev
am: b94e697dcf

Change-Id: I40ef78ee243cbb2f5967115e40740a3f36b253ef
2017-11-28 00:50:13 +00:00
TreeHugger Robot
edbd1d3dde Merge "Fix issue #68002319: Allow current VoiceInteractionService to avoid..." 2017-11-28 00:42:46 +00:00
TreeHugger Robot
b94e697dcf Merge "Add documentation for O and O_MR1 target SDK changes." into oc-mr1-dev 2017-11-28 00:28:07 +00:00
TreeHugger Robot
72671a1864 Merge "Reject the config if condition config has errors. And add log tag." 2017-11-28 00:21:07 +00:00