Commit Graph

294965 Commits

Author SHA1 Message Date
Hugo Benichi
8b06bcdfd2 Netd events: record connect() success/errno
Test: $ runtest frameworks-net pass
Bug: 32198976
Change-Id: I6c54aa2f9116a6009d96a050e30926493f9f60db
2016-11-04 21:54:39 +09:00
TreeHugger Robot
2c442e962e Merge "Stop using return within finally" 2016-11-04 02:42:11 +00:00
TreeHugger Robot
8be6cc89ef Merge "Trust: Add missing cleanup upon removing user" 2016-11-04 00:38:15 +00:00
Dianne Hackborn
a59ddd7961 Merge "Switch settings command to use "cmd" call on service." 2016-11-04 00:15:26 +00:00
TreeHugger Robot
10398dfb1d Merge "Order non-app window containers." 2016-11-03 23:54:20 +00:00
TreeHugger Robot
a5aa9ebed0 Merge "Doze: Fix broken non-AoD" 2016-11-03 23:42:18 +00:00
Andre Eisenbach
da9d0ecb83 Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc am: 2fe13541ad am: 51d7a455aa
am: 045226008c

Change-Id: Iacd5ae71b6338bcb461ae69cc09e5158fea502dc
2016-11-03 23:38:59 +00:00
Andre Eisenbach
045226008c Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc am: 2fe13541ad
am: 51d7a455aa

Change-Id: Ia5b8bcbb6f42ef939abe71b74327d845e4a11768
2016-11-03 23:32:10 +00:00
Andre Eisenbach
51d7a455aa Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc
am: 2fe13541ad

Change-Id: Iba20aef49c4d34875d8521cba82e6ffc26051ac3
2016-11-03 23:25:37 +00:00
Andre Eisenbach
2fe13541ad Merge "BT: Don't switch devices when one of the connected BT headsets disconnects"
am: 0bebfe76fc

Change-Id: Ibd4c4f9defec469bb14a282c53d64932123d4905
2016-11-03 23:22:07 +00:00
Andre Eisenbach
0bebfe76fc Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" 2016-11-03 23:13:18 +00:00
Phil Weaver
a46f009bbf Merge "Add tests for MagnificationController." 2016-11-03 23:11:55 +00:00
TreeHugger Robot
c2a2b94393 Merge "Get rid of Keyguard visibility modifiers on WindowState" 2016-11-03 23:08:26 +00:00
Jean-Michel Trivi
ecbf80b62d Merge "MediaRecorder: Fix some audio source descriptions" 2016-11-03 22:34:15 +00:00
TreeHugger Robot
eea591b08e Merge "Fix RenderNodeDrawable to draw nonzero Z nodes when needed" 2016-11-03 22:30:11 +00:00
Phil Weaver
b2dc39c09e Merge "Make calls from apps to a11y oneway." 2016-11-03 22:23:27 +00:00
Adrian Roos
ae025828bb Trust: Add missing cleanup upon removing user
Change-Id: I4a1d9d38344aea54d1f0ae6d6834a45b2e73cb1c
Fixes: 31995569
2016-11-03 14:46:21 -07:00
Ray Essick
7601049275 Stop using return within finally
Refactor code to avoid a return statement inside a finally block. Such
constructs interfere with exception propagation in non-obvious ways
and are therefore considered bad practice.

Bug: 32586420
Test: manual code walk
2016-11-03 14:45:56 -07:00
Stephen Chen
ab8220f340 Merge "Document Subtype additions for ACTION_WIFI_CONNECT, ACTION_WIFI_OFF." 2016-11-03 21:09:49 +00:00
Satish Kodishala
2980980a75 BT: Don't switch devices when one of the connected BT headsets disconnects
Usecase:
1. Enable multi-hf.
2. Connect to HS1.
3. Connect to HS2.
4. Make a call on AG. Here call audio is present on HS2.
5. Now disconnect HS1 from AG.

Failure:
When HS1 is disconnected, call audio is routed to handset/speaker.

Root cause:
When hs1 disconnection intent is received, SCO path is cleared
and audio is routed to handset/speaker.

Fix:
Check if the device being disconnected is same as the device
call audio is present before clearing SCO path.

Change-Id: If83325679b70b5893e44e8d844000ee028d0246c
2016-11-03 20:57:56 +00:00
Wale Ogunwale
3a93169454 Order non-app window containers.
- Add non-app window tokens to the display child container based on
their base layer so the highest based layer is z-ordered on-top.
- Separated DisplayContent.mNonAppWindowContainers into
mAboveAppWindowContainer and mBelowAppWindowContainer where the former
contains non-app windows that should be z-ordered on-top of all app
windows and the later contains non-app windows that should be
z-ordered below app windows.
- Change wallpaper base layer to 1 so that it is always below all other
window types.
- Add Ime related windows/tokens to DisplayContent.mImeWindowContainers
so that we can track them together
- Use alternative binder token when adding window TYPE_INPUT_METHOD_DIALOG
so that it can properly be associated as an IME token in WM vs. with
system_server or sys-ui token.

Test: Existing tests pass.
Bug: 30060889
Change-Id: Ib53e09af12545868c3741d83aaccb7311c872b41
2016-11-03 20:56:57 +00:00
Etan Cohen
8402d511c9 Merge "Update service test runner to allow test args" am: 56b92e8191 am: dde9ea21e4 am: 10840d1897
am: be8e13de60

Change-Id: I48302e70e01fb290634f66bd679268fea0ede22d
2016-11-03 20:45:31 +00:00
Etan Cohen
be8e13de60 Merge "Update service test runner to allow test args" am: 56b92e8191 am: dde9ea21e4
am: 10840d1897

Change-Id: I200c88f0d6d00bef77fe00a59f8e99b3b91f7aa2
2016-11-03 20:39:26 +00:00
Greg Plesur
c33f83c13c Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev am: 343dbac2e0 am: c447d9ef6a
am: 0cbe2e1a5c

Change-Id: I98803fd185b5d523e5aec610d29c112ee78a6254
2016-11-03 20:37:33 +00:00
Greg Plesur
794e66cfd2 New Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a am: a71a0b8da1
am: e44736a819

Change-Id: I36f1980ede5ea483c4750386a7b5905254ce33f8
2016-11-03 20:36:27 +00:00
Etan Cohen
10840d1897 Merge "Update service test runner to allow test args" am: 56b92e8191
am: dde9ea21e4

Change-Id: I59d572e233720ecf0ddc6cbb5893323b563a3241
2016-11-03 20:32:54 +00:00
Greg Plesur
0cbe2e1a5c Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev am: 343dbac2e0
am: c447d9ef6a

Change-Id: I17a831ab2c537c00452f250d151ec3f63b2d6277
2016-11-03 20:30:59 +00:00
Greg Plesur
e44736a819 New Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a
am: a71a0b8da1

Change-Id: I9a19eea21e008a9253ea7abbd854b21f4696548c
2016-11-03 20:29:55 +00:00
Etan Cohen
dde9ea21e4 Merge "Update service test runner to allow test args"
am: 56b92e8191

Change-Id: Ib5f44685228bab61d50dea4c5bd226c4b80c2dd1
2016-11-03 20:26:29 +00:00
Greg Plesur
c447d9ef6a Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev
am: 343dbac2e0

Change-Id: Ia7b6297443c555edc9372e6991784b2a6920d2ba
2016-11-03 20:23:29 +00:00
Greg Plesur
a71a0b8da1 New Wear devices need to update their DISABLE_LOCKSCREEN_KEY.
am: eb2e45369a

Change-Id: I64c1cc38bc38d9d0ee6214a64c6ddfaa57095ce0
2016-11-03 20:23:24 +00:00
Etan Cohen
56b92e8191 Merge "Update service test runner to allow test args" 2016-11-03 20:18:53 +00:00
Greg Plesur
343dbac2e0 Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev 2016-11-03 20:15:21 +00:00
Michael Kwan
46998bc3b2 Merge "Disable multiwindow support for watch devices by default." into cw-f-dev am: 0d3f740316 am: 10f3eda0fd
am: af03cd3c5b

Change-Id: Ifac814e3904d92dc193dcb17ea9c4bc046ad0272
2016-11-03 20:09:24 +00:00
Michael Kwan
e3dbcb7ed7 Disable multiwindow support for watch devices by default. am: 1cb6777e51 am: 620a33b827
am: 4c5d4dd64d

Change-Id: I8bb789fee47c5b14612ac29ea43fd8ae4e4a7ea5
2016-11-03 20:08:25 +00:00
Android Build Merger (Role)
17d807b75d Merge "[NAN-AWARE] Rename NAN to Aware [DO NOT MERGE] am: a61b9fb569 -s ours" 2016-11-03 20:06:16 +00:00
TreeHugger Robot
18da04ed2c Merge "Implement onDrawTextBlob in the SkiaCanvasProxy." 2016-11-03 20:04:18 +00:00
Etan Cohen
b694f5edfb [NAN-AWARE] Rename NAN to Aware [DO NOT MERGE]
am: a61b9fb569  -s ours

Change-Id: I40abb81290d255c0369f4356bd78b46f5479a857
2016-11-03 20:03:59 +00:00
Michael Kwan
af03cd3c5b Merge "Disable multiwindow support for watch devices by default." into cw-f-dev am: 0d3f740316
am: 10f3eda0fd

Change-Id: I5d6ad3b9b5ce63546907f629c289229bf673186d
2016-11-03 20:03:55 +00:00
Michael Kwan
4c5d4dd64d Disable multiwindow support for watch devices by default. am: 1cb6777e51
am: 620a33b827

Change-Id: Id2f6d1e2a12c6644f41ed5f535568130139cd355
2016-11-03 20:02:55 +00:00
Phil Weaver
89e3ffc66c Add tests for MagnificationController.
Also refactoring the class to make it easier to test and
chaning behavior where the current behavior seemed poorly
defined.

Refactoring:
- Combined all handlers into one.
- Simplified animation to use a ValueAnimator.
- Eliminated ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE
  setting. Move rest of settings reading into mockable class.
- Move callbacks from WindowManager into the main class.
- Pulled out my instrumented Handler from the
  MotionEventInjectorTest into its own class so I can reuse
  it.

Behavior changes:
- Always constraining out-of-bounds values rather than
  refusing to change them.
- Constraining offsets on bounds changes. We previously
  left them alone, even if they were out of bounds.
- Keeping track of the animation starting point. We were
  interpolating between the current magnification spec
  and the final one. This change means the magnification
  animates to a different profile.

Test: This CL adds tests. I've also run a11y CTS.

Bugs: 31855954, 30325691

Change-Id: Ie00e29ae88b75d9fe1016f9d107257c9cf6425bb
2016-11-03 13:00:47 -07:00
TreeHugger Robot
40800725d2 Merge "Implement Skia pipelines for OpenGL and Vulkan." 2016-11-03 19:59:46 +00:00
Michael Kwan
10f3eda0fd Merge "Disable multiwindow support for watch devices by default." into cw-f-dev
am: 0d3f740316

Change-Id: I7867b0ff72237c7ce216f570034f6f811e5a6abb
2016-11-03 19:56:24 +00:00
Michael Kwan
620a33b827 Disable multiwindow support for watch devices by default.
am: 1cb6777e51

Change-Id: I9e42480be007387109f9e58efe594dca860e3597
2016-11-03 19:56:20 +00:00
Michael Kwan
0d3f740316 Merge "Disable multiwindow support for watch devices by default." into cw-f-dev 2016-11-03 19:48:59 +00:00
TreeHugger Robot
1106b82ea1 Merge "Reference ctable when adopting pointer in Bitmap" 2016-11-03 19:43:33 +00:00
TreeHugger Robot
c96468b062 Merge "update callers to newer Skia APIs" 2016-11-03 19:27:47 +00:00
Adrian Roos
803f33a109 Doze: Fix broken non-AoD
Fixes a bug where non-AoD doze mode
was broken.

Test: adb shell settings put secure doze_always_on 0 && echo "Test that double-tap / pickup gestures work"
Change-Id: If2720eea5081fb9f88bfe0346ec829b241532b29
2016-11-03 12:26:45 -07:00
Greg Plesur
eb2e45369a New Wear devices need to update their DISABLE_LOCKSCREEN_KEY.
Previous versions of Wear forced this flag to "true."

BUG: 32591969
Change-Id: I9619eee5df5f67e92818ef0b7b45ddd2299449f1
2016-11-03 15:01:19 -04:00
Phil Weaver
ba6285f63d Make calls from apps to a11y oneway.
Saves about 300us for each AccessibilityEvent sent, which
translates to 1 ms in gfx-avg-frame-time in the
QuickSettingsPull.

Test: Ran a11y cts and unit tests. Ran systrace and the
QuickSettingsPull to measure jank improvement.
Change-Id: I6d219b0e82c21047e50d402d930d8a5cc93fa6ad
2016-11-03 11:41:45 -07:00