393832 Commits

Author SHA1 Message Date
Wale Ogunwale
38f72bd49d Revert "Added mockito-extended support to WmTests."
This reverts commit 953fd225ccba3f46e336228362063bcafcac7fd5.

Reason for revert: Breaks pre-submit tests in cloud...
Bug: 113806960

Change-Id: I464d6a3acd40bfb112d94cbc4ff1c076ba5b59f1
2018-11-20 02:53:49 +00:00
Tony Zhu
7655d9dd0f Merge "[API Review]Clarify method that obtain a component name"
am: c128fa0f93

Change-Id: If127b95d63bcde41bbd6b4417bf79fecbdbf8514
2018-11-19 18:45:54 -08:00
Tony Zhu
c128fa0f93 Merge "[API Review]Clarify method that obtain a component name" 2018-11-20 02:36:32 +00:00
Chen Xu
7cf6b04641 Merge "Telephony light grey list clean up for Q" am: 71ca860ff7 am: 0daf5ca480
am: f4626014ea

Change-Id: I35da50b43ebef204d56c7e9e28173aba32f50f94
2018-11-19 18:28:24 -08:00
Tej Singh
b1dbc8b4a5 Atom: Pulled battery level
Atom to pull abttery level directly from health hal

Test: manual on blueline
Test: will do cts
Bug: 119686325
Change-Id: If2e40633b2bb9a6da61fbe1f63484735727e9ac2
2018-11-19 18:21:39 -08:00
Chen Xu
f4626014ea Merge "Telephony light grey list clean up for Q" am: 71ca860ff7
am: 0daf5ca480

Change-Id: I5c18a432f3cf04f7071334e69c3726bc6775ee51
2018-11-19 18:19:00 -08:00
Mady Mellor
4c102acbf9 Merge changes from topic "initial-bubbs"
* changes:
  Update scrim controller to bubble state when bubbles are expanded
  Introduce scrim state for bubbles
  Update PIP dismiss to work a little better for bubbles
  Make status bar full screen when bubbles are present
  Auto bubble some notifications (behind debug flag)
  Introduce bubble controller & friends
2018-11-20 02:12:50 +00:00
Prabir Pradhan
e5696a5ccc InputFlinger Split: Use libinputreader in InputManagerService
This changes native InputManagerService to use the new backend library
for inputflinger: libinputreader.

Bug: 119264687
Test: manual: Build, run, and test input (touch, mouse)
Change-Id: I619492d5492cd8444d7c2cc7af9717c19c938256
2018-11-19 18:10:48 -08:00
Chen Xu
0daf5ca480 Merge "Telephony light grey list clean up for Q"
am: 71ca860ff7

Change-Id: Ic6fb07bb8e5cb94df276b7dfb3c40cb5e2325581
2018-11-19 18:07:43 -08:00
Insun Kang
06b25aeabd Add a filegroup rule for building media1.0 mainline module
Bug: 119539695
Test: build
Change-Id: I278db78c96921e2f04a90babe4155f90cd1d0039
2018-11-20 11:07:18 +09:00
Chen Xu
71ca860ff7 Merge "Telephony light grey list clean up for Q" 2018-11-20 01:56:19 +00:00
Eugene Susla
9734fa5330 Merge "Remove exclusive OWNERS for BitUtils" am: 26aff41aa5 am: 60e62c4e20
am: 6b833a4df8

Change-Id: I118be8a8b35a860192aeaebbd7364cd1a3cbf28f
2018-11-19 17:54:04 -08:00
Eugene Susla
6b833a4df8 Merge "Remove exclusive OWNERS for BitUtils" am: 26aff41aa5
am: 60e62c4e20

Change-Id: I5ff9051230f1f24277f8c864ab99a400accd4c3d
2018-11-19 17:44:39 -08:00
Sungsoo Lim
72223c2f24 Merge "Remove unused MediaBrowser2 and relevant classes" 2018-11-20 01:43:48 +00:00
Eugene Susla
60e62c4e20 Merge "Remove exclusive OWNERS for BitUtils"
am: 26aff41aa5

Change-Id: I16bc64db1a68c6e129680b9419d04de387dc14f0
2018-11-19 17:35:25 -08:00
Hai Zhang
bc0df49ed9 Add MANAGE_ROLE_HOLDERS permission to shell.
This change adds the MANAGE_ROLE_HOLDERS permission to shell, which
allows shell or code with Shell permission identity to use privileged
RoleManager APIs.

Bug: 110557011
Test: build
Change-Id: I6b8be9eec2a1dfb169536cfcda9d21cb802df327
2018-11-19 17:27:47 -08:00
Treehugger Robot
26aff41aa5 Merge "Remove exclusive OWNERS for BitUtils" 2018-11-20 01:20:44 +00:00
Hai Zhang
b295ac4793 Fix role granting flow.
This change fixes various issues realted to the role granting
flow, including allowing permission controller to be granted
SET_PREFERRED_APPLICATIONS for roles, granting
MANAGE_ROLE_HOLDERS permission to shell, and improving
RoleUserState XML parsing.

Bug: 110557011
Test: build
Change-Id: Ia095580ad497af9cf7b29e6bedab70046b09d542
2018-11-20 01:09:33 +00:00
Jeff Sharkey
d2a1f0d693 Define app-ops for new storage permissions in Q.
Mostly mirrored off existing READ/WRITE_EXTERNAL_STORAGE app-ops,
but with new Aural/Visual runtime permission groups called out.

Bug: 117777783
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ibeb93428b6a20b33879117e455e9ef63af58f79e
2018-11-19 18:07:35 -07:00
Ryan Mitchell
0d5a91b137 Merge "Fix copying null reference across themes" 2018-11-20 01:00:45 +00:00
Etan Cohen
c7513249b0 [automerger skipped] Merge "Add IPv6 link-local address generation from EUI-48" am: a2a9df3e3a am: 674479afe5
am: 5faec91513  -s ours

Change-Id: I3121a9d36008857cb244ecbd4fc579cb4ac6e33c
2018-11-19 16:59:40 -08:00
Wale Ogunwale
2a47d12fec Return ProcessRecord toString() for WindowProcessController
So it works the way developers are used to.

Bug: N/A
Test: prints
Change-Id: I9cc831d8df1816aea611a6500d20ed0a23cb51da
2018-11-20 00:56:36 +00:00
Etan Cohen
5faec91513 Merge "Add IPv6 link-local address generation from EUI-48" am: a2a9df3e3a
am: 674479afe5

Change-Id: I63de4fa185649d9389a771860c479899e90b37e4
2018-11-19 16:48:22 -08:00
Chenjie Yu
e077fd2e9c deprecate ALL_CONDITION_CHANGE in gauge
The feature set for GaugeMetric is the following:

1. Pull/Push once per bucket ----> RANDON_ONE_SAMPLE
  Have 1 gauge per bucket, if condition is true

2. Pull when condition becomes true ----> CONDITION_CHANGE_TO_TRUE
  Have 1 gauge per condition change to true, up to n

3. Pushed events multiple copies ----> FIRST_N_SAMPLE
  Have 1 gauge per event, up to n

4. Pull on trigger ----> FIRST_N_SAMPLE
  Have 1 gauge per trigger, up to n

For P, feature 1,2,3 work and same config can be used for P&Q.
(FIRST_N_SAMPLES is new but the code works, as would otherwise be
intended)
Feature 4 is new in Q.

Bug: 119783642
Bug: 118639742
Test: unit test
Change-Id: I671f7a5d3fdf9c2db4e8b6a137e3e45211874dcc
2018-11-19 16:39:47 -08:00
Etan Cohen
674479afe5 Merge "Add IPv6 link-local address generation from EUI-48"
am: a2a9df3e3a

Change-Id: I463cc804b21c99512e506b60a44cd62732d3c2b2
2018-11-19 16:38:06 -08:00
TreeHugger Robot
089815d081 Merge "Fix user setting for dark mode not being applied" 2018-11-20 00:33:40 +00:00
John Reck
635ca17ff5 Merge "Add an OWNERS to HWUI" 2018-11-20 00:25:09 +00:00
Etan Cohen
a2a9df3e3a Merge "Add IPv6 link-local address generation from EUI-48" 2018-11-20 00:19:54 +00:00
Felipe Leme
2eadd14d5a Merge "Minor changes on IntelligenceManager APIs." 2018-11-20 00:09:31 +00:00
Varun Shah
24efb38c07 [automerger skipped] Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into oc-dev am: 546ba589a2 am: 84376cb95a am: abff788177 -s ours am: bc890b6608
am: 439ed702da  -s ours

Change-Id: Ic356421428addee7dade6cf54d1438b1dc01a62d
2018-11-19 15:49:07 -08:00
Wale Ogunwale
6552c64db6 Merge "Added mockito-extended support to WmTests." 2018-11-19 23:43:41 +00:00
Varun Shah
439ed702da [automerger skipped] Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into oc-dev am: 546ba589a2 am: 84376cb95a am: abff788177 -s ours
am: bc890b6608

Change-Id: Ic31303bbe6238b1cad72991004a1607a257b732f
2018-11-19 15:43:02 -08:00
Varun Shah
bc890b6608 [automerger skipped] Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into oc-dev am: 546ba589a2 am: 84376cb95a
am: abff788177  -s ours

Change-Id: I79b6c04d2aca7543507f064bbe827f8d2ac9340d
2018-11-19 15:25:46 -08:00
Varun Shah
9237d02c16 [automerger skipped] Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into pi-dev am: c0175af954
am: 7f812ed0bb  -s ours

Change-Id: If36a01bfb13aae49ade3af3e8fbd744d720746e4
2018-11-19 15:20:39 -08:00
Varun Shah
abff788177 Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into oc-dev am: 546ba589a2
am: 84376cb95a

Change-Id: I096470de6d03ab34591b12bc7172056a1ffe38ed
2018-11-19 15:19:59 -08:00
Mady Mellor
cd9b130827 Update scrim controller to bubble state when bubbles are expanded
There's one issue with this where if you expand status bar
on top of the expanded bubble there is no scrim in between.

Test: manual / existing tests pass (atest SystemUITests)
Bug: 111236845
Change-Id: I2510758366999131ac7ffbb7505026727f4e40e1
2018-11-19 15:19:50 -08:00
Varun Shah
7f812ed0bb Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into pi-dev
am: c0175af954

Change-Id: Iea98c1411920bdd15f43f0044065e6d9f52703d0
2018-11-19 15:17:28 -08:00
Eugene Susla
973334dae7 Merge "Flip appops corresponding to default-granted permissions" 2018-11-19 23:17:03 +00:00
Mady Mellor
0c333774c8 Introduce scrim state for bubbles
When bubbles are expanded we'll want to put a scrim behind them, this
is the scrim state we'll use.

Super simple test to check that alpha / visibility state of scrims
are as expected

Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Bug: 111236845
Change-Id: I1ee8ff9e7ce35aae692cf75a912106255e0e9b5a
2018-11-19 15:12:32 -08:00
Mady Mellor
2f01ed9a2c Update PIP dismiss to work a little better for bubbles
* Buzz when the view is dragged into the target
* Adds showing / checking if bubble is dismissed to the touch handler

Test: manual / existing tests pass (atest SystemUITests)
Bug: 111236845
Change-Id: I7b99e0b81f22351dbc59025b37425a05f16a92a0
2018-11-19 15:12:32 -08:00
Mady Mellor
d1c78b26fb Make status bar full screen when bubbles are present
* Adds new state 'bubblesShowing' to StatusBarWindowController
* When bubbles are showing status bar will be full screen and
  the touchable region will be updated

Test: manual / existing tests pass (atest SystemUITests)
Bug: 111236845
Change-Id: I6d28d0313104929fba49d326a72209f701eb78d5
2018-11-19 15:12:29 -08:00
Varun Shah
84376cb95a Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into oc-dev
am: 546ba589a2

Change-Id: I0b63c0bef57320b7465c2fe4e45304fd637e712d
2018-11-19 15:11:59 -08:00
Mady Mellor
5549dd2d3e Auto bubble some notifications (behind debug flag)
When the flag is flipped notifications that fulfill any
of these will bubble:
- use MessageStyle
- have remote input
- have an app overlay intent
- have priority >= HIGH

Test: atest SystemUITests (no new tests)
Bug: 111236845
Change-Id: Iff86d78a24ab798ddb681a1ad59e1131136814d4
2018-11-19 15:11:37 -08:00
Mady Mellor
c3d6f7d386 Introduce bubble controller & friends
* BubbleController manages adding / removing / state of the bubbles,
  this is what other things should use to check what the state is.
* BubbleStackView renders the stack and deals with expanding / collapsing
  and any view stuff
* BubbleView creates the circular bubble representation and holds the
  notification entry for the bubble. BubbleStackView manages the
  BubbleViews.
* BubbleTouchHandler is where all the touch logic is, BubbleStackView
  uses and so do BubbleViews if you're dragging out a BubbleView from the
  stack to dismiss

* Adding bubbles to the screen and dismissing them are not included in
  this CL, there are later CLs including this logic

Test: manual / working on proper ones
Bug: 111236845
Change-Id: I07ae1202cc7019fcd7e00151ad3ca4a48e2e1350
2018-11-19 15:11:34 -08:00
Andrew Solovay
6fe332c07e docs: Removing @see link to hidden field
Docs had contained a @see link to #FIRST_SDK_INT , but that field
had a @hide directive, so the @see link resulted in an error message
in the output.

Doc staged to:

http://go/dac-stage/reference/android/os/Build.VERSION#SDK_INT

Bug: 80445154
Test: make ds-docs
Change-Id: Id8d461c517bd4d8b3c49b61da37ec0a16768a63d
Exempt-From-Owner-Approval: Doc-only change
2018-11-19 23:02:47 +00:00
TreeHugger Robot
5a31e0e77d Merge "Add Intent#EXTRA_CONTENT_QUERY." 2018-11-19 22:52:11 +00:00
TreeHugger Robot
c0175af954 Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into pi-dev 2018-11-19 22:50:20 +00:00
TreeHugger Robot
546ba589a2 Merge "RESTRICT AUTOMERGE: Added an app id security check in isAppForeground." into oc-dev 2018-11-19 22:49:58 +00:00
Jack Yu
4f956e0fca Move hidden APIs into system APIs
To allow vendor code to construct LinkAddress, which is
one of the parameter in the system API DataCallResponse.

Test: Build
Bug: 73659459
Merged-In: I3e203781d3a03285fa0e047cc8837ccb4a09016a
Change-Id: I3e203781d3a03285fa0e047cc8837ccb4a09016a
2018-11-19 14:40:13 -08:00
Android Build Merger (Role)
b7b483ad2c Merge "[automerger skipped] Merge "Remove dummy subscription ids" am: 22d12411fd am: f7a5ef5caa am: 75418ebfe2 -s ours" 2018-11-19 22:39:06 +00:00