311896 Commits

Author SHA1 Message Date
TreeHugger Robot
84d7e77ace Merge "Provide deprecated API to avoid build breakage" 2017-03-28 01:29:56 +00:00
TreeHugger Robot
212310ee71 Merge "Fixed yet another missing check for null anchor..." 2017-03-28 00:50:11 +00:00
TreeHugger Robot
77a1f7522e Merge "Parse NotificationChannel ID meta-data." 2017-03-28 00:46:57 +00:00
TreeHugger Robot
31417b3ebf Merge "Deprecate Setting that is no longer used." 2017-03-28 00:45:34 +00:00
TreeHugger Robot
2c6ac0ead0 Merge "Add missing assert that task isn't queued" 2017-03-28 00:41:11 +00:00
TreeHugger Robot
6e42a1d0ce Merge "Moved Session and ViewState to its own classes." 2017-03-28 00:28:59 +00:00
Michael Kwan
1d34605fcb Merge "Catch exception where SwipeDismissLayout cannot monitor screen off." 2017-03-28 00:20:07 +00:00
Peter Qiu
a5b543ec11 Merge "hotspot2: register Passpoint related intents as protected broadcast" am: 97bdedf655 am: 61f58f0676
am: 8e94d9e32d

Change-Id: Ib293b1fed8a7d5101987d50742cdde66dc670d43
2017-03-28 00:09:06 +00:00
Peter Qiu
8e94d9e32d Merge "hotspot2: register Passpoint related intents as protected broadcast" am: 97bdedf655
am: 61f58f0676

Change-Id: I924befd6d9a1fb1e6bdb257bc6d662172d2354d9
2017-03-28 00:03:03 +00:00
TreeHugger Robot
b567b580a8 Merge "Sync the constants in HAL and framework" 2017-03-28 00:02:23 +00:00
Peter Qiu
61f58f0676 Merge "hotspot2: register Passpoint related intents as protected broadcast"
am: 97bdedf655

Change-Id: I06d54b99006d631c5792f823e9ae7da1703a201d
2017-03-27 23:54:37 +00:00
Treehugger Robot
97bdedf655 Merge "hotspot2: register Passpoint related intents as protected broadcast" 2017-03-27 23:44:43 +00:00
TreeHugger Robot
9d421ba050 Merge changes Ia971b2bc,I0001eb3d,I55a6951e
* changes:
  Remove framework-protos from SystemUI
  Disable proguard for PluginDummyLib
  Enable multidex for dx
2017-03-27 23:37:10 +00:00
TreeHugger Robot
d52cdfb89f Merge "Simplify the media button handling logic" 2017-03-27 23:36:38 +00:00
TreeHugger Robot
55bea5e308 Merge "Add a few asserts for possible corruption cases" 2017-03-27 23:30:22 +00:00
TreeHugger Robot
52b716df85 Merge "Don't spam the log during quota calculations." 2017-03-27 23:27:53 +00:00
Mady Mellor
73a55f7506 Merge "Fix for edge swipe/fling to minimize" 2017-03-27 23:26:52 +00:00
Felipe Leme
6f79717014 Fixed yet another missing check for null anchor...
Test: CtsAutoFillServiceTestCases pass
Bug: 36643768

Change-Id: I6f97f3aec88c59a94c593958aca8b4a992d4806e
2017-03-27 15:45:47 -07:00
TreeHugger Robot
2388f0c81c Merge "Disable PIP minimize and put it behind a tuner item" 2017-03-27 22:29:32 +00:00
Shubang
39f285d5a7 Sync the constants in HAL and framework
Test: Build and flash device

Bug: 36233336
Change-Id: Ie81862825b601bdafd7653564d7393686d54f531
2017-03-27 15:15:46 -07:00
Dmitry Dementyev
117e0c9b5a Merge "Add cache for Account Visibility values." 2017-03-27 22:14:34 +00:00
Peter Qiu
cb9ad34e66 hotspot2: register Passpoint related intents as protected broadcast
These intents should only be broadcast by the System Service, so
register them as protected broadcast.

Bug: 36655814
Test: Build with go/aog/355397, verify in logcat that no non-protected
      broadcast error gets thrown when
      android.net.wifi.action.PASSPOINT_OSU_PROVIDERS_LIST intent
      is broadcasted

Change-Id: I57849d0decef407624cac380a0f12f5428e0f1de
2017-03-27 15:10:04 -07:00
Jaewan Kim
92dea33bfe Simplify the media button handling logic
Here's the new media handling logic.

1. If the foreground app consumes the media key event
  (Activity.onKeyDown/Up() or Activity.setMediaController()),
  we stop here.
2. Find the media app whose AudioPlaybackConfiguration becomes
  PLAYER_STATE_STARTED lastly across the boot. The media app is the app
  with the media session.
  - If its session is still alive, send the media key event
    to the media session.
  - If its session has been released but the session set the media
    button receiver, send the media key event through the media button
    receiver.
  - If it has multiple media sessions, pick the media session whose
    PlaybackState matches with the AudioPlaybackConfiguration's player
    state.
3. Stop here. Don't try revive any other app.

This approach has two limitations.
1. If an app has multiple AudioPlaybackConfigurations and/or
   media sessions, the MediaSessionService may pick the wrong media
   session to send media key events.
2. If an app with a media session plays sound effects differently from
   the SoundPool class, the MediaSessionService would consider the app
   as the lastly played media app.

Bug: 33032080
Test: Manual tests as follows
  1. Checked that the lastly played app receives the media key events
     although the app's media session doesn't report its playback state.
  2. Checked that the lastly played app receives the media key events
     although the app's media session is released.
  3. Checked that the lastly played app doesn't receive the media key
     events if its playback is remote.
Change-Id: I1fd6f9eee0750da4dea9fcc7401fdb1c3f249a72
2017-03-27 14:58:43 -07:00
Daniel Nishi
f59418f29c Don't spam the log during quota calculations.
We base the cache quotas on usage stats on the device. These stats,
however, can contain entries from apps which are no longer installed.
In this case, we skip its calculation and log a warning. This patch
removes the warning aspect of it, because it is a legitimate case.

Change-Id: I2a6a797966bfee007515735308535a5dcc118f03
Fixes: 36649802
Test: Manual
2017-03-27 14:52:46 -07:00
John Reck
1b7184f8d2 Add a few asserts for possible corruption cases
Bug: 36502346
Test: builds & boots
Change-Id: Id96a26a30e4a8c6f51a68bf07cfe6bd6d07c244e
2017-03-27 14:47:46 -07:00
Peter Qiu
7c665f783f Merge "wifi: catch UnsupportedOperationException for getMatchingWifiConfig" am: ae3bae715e am: 78eeb9b090
am: bc3fefbacd

Change-Id: I2fa6998d854ca61aa18ef2e61ed6a7196ed0be4d
2017-03-27 21:38:26 +00:00
John Reck
2f944482ec Add missing assert that task isn't queued
Probably won't fix anything but this assert is in queue()
but not queueAtFront() and inserting a task twice is Really Bad.

Bug: 36139852
Test:  ¯\_(ツ)_/¯
Change-Id: Ida0f829eecfdd46c17c36b816528c49d12b7cf29
2017-03-27 21:38:09 +00:00
Amith Yamasani
53e100c468 Provide deprecated API to avoid build breakage
Restored onUtteranceRangeStart() temporarily as a deprecated API.

Bug: 36646809
Test: N/A
Change-Id: I7da927aca4f4ad1f5cc76564e8fdc4261849898b
2017-03-27 14:36:37 -07:00
Jakub Pawlowski
1d978329df Merge "Bluetooth GATT callback naming fix "Ext" -> "" (1/2)" am: beb8ceada8 am: cfe099b01d
am: b4e8fd65bf

Change-Id: I31be1d92cf7ad95214bf353dca20b990a280f996
2017-03-27 21:34:23 +00:00
Peter Qiu
bc3fefbacd Merge "wifi: catch UnsupportedOperationException for getMatchingWifiConfig" am: ae3bae715e
am: 78eeb9b090

Change-Id: Icf369fc41387dbd1ed854434f2d77ecd867c4532
2017-03-27 21:33:46 +00:00
Peter Qiu
78eeb9b090 Merge "wifi: catch UnsupportedOperationException for getMatchingWifiConfig"
am: ae3bae715e

Change-Id: If47b5c5fae03ad2e6a68771da893acaad743fcbd
2017-03-27 21:29:53 +00:00
Jakub Pawlowski
b4e8fd65bf Merge "Bluetooth GATT callback naming fix "Ext" -> "" (1/2)" am: beb8ceada8
am: cfe099b01d

Change-Id: I7dda88f7c2c26cbb3ae192f313dcc4bd15afd6d6
2017-03-27 21:27:25 +00:00
Jakub Pawlowski
cfe099b01d Merge "Bluetooth GATT callback naming fix "Ext" -> "" (1/2)"
am: beb8ceada8

Change-Id: Ie88e330a1d50adac8c6b83581079c6096c4d898a
2017-03-27 21:22:15 +00:00
Peter Qiu
ae3bae715e Merge "wifi: catch UnsupportedOperationException for getMatchingWifiConfig" 2017-03-27 21:21:42 +00:00
Alan Viverette
b758b3542a Merge "Avoid NPE when PopupWindow is shown while dismissing" 2017-03-27 21:21:18 +00:00
Jakub Pawlowski
beb8ceada8 Merge "Bluetooth GATT callback naming fix "Ext" -> "" (1/2)" 2017-03-27 21:15:22 +00:00
Mady Mellor
84a0f8936d Fix for edge swipe/fling to minimize
- Actually include check for fling
- Base left or right side on starting position instead of current position

Test:  Long quick swipe PIP from opposite edge of screen -> no longer minimizes
Bug:35358628
Change-Id: I7cd62b94943afe28b89a8bcb0e0cab58bc0841a9
2017-03-27 14:12:39 -07:00
Chen Xu
e30227e5b0 Merge "make carrier default app direct boot aware" am: 98ded6c9ab am: 3f26682252
am: 51742e58fc

Change-Id: Ic3f9de6063bb605c87af8d6218c0cf7306d2c5d0
2017-03-27 21:06:09 +00:00
Steven Moreland
96b14c7d78 Merge "Fix nativeProcs being null." 2017-03-27 21:03:23 +00:00
Martijn Coenen
94a0dcdde1 Fix nativeProcs being null.
dumpStackTraces originally checked this. This only happens when a silent
ANR is triggerred on a process name not in NATIVE_STACKS_OF_INTEREST.

Bug: 36414311
Bug: 36652737
Test: manual
Change-Id: I24402fb2ef2e08482f866dc1086ce83c1365d7ec
2017-03-27 21:01:34 +00:00
Chen Xu
51742e58fc Merge "make carrier default app direct boot aware" am: 98ded6c9ab
am: 3f26682252

Change-Id: Ic58ee1d881a85622ce03cc7ccbba1b2e274e8760
2017-03-27 21:00:25 +00:00
Peter Qiu
0ffb89d1d1 wifi: catch UnsupportedOperationException for getMatchingWifiConfig
On a device without Passpoint support, an UnsupportedOperationException
will be thrown when invoking WifiManager#getMatchingWifiConfig.
So catch it to avoid crash.

Bug: 36649203
Test: manually set config_wifi_hotspot2_enabled to false and verify
      Settings app doesn't crash

Change-Id: I69f37897449033da9d21edda9953ad2738f7e314
2017-03-27 13:55:34 -07:00
Chen Xu
3f26682252 Merge "make carrier default app direct boot aware"
am: 98ded6c9ab

Change-Id: I6a8f45b2839a07a9bfae23ab41a9c6ebd1c0e5e1
2017-03-27 20:54:53 +00:00
TreeHugger Robot
3ebc1b7f5a Merge "Updating to new aspect ratio limits." 2017-03-27 20:54:45 +00:00
Chen Xu
98ded6c9ab Merge "make carrier default app direct boot aware" 2017-03-27 20:45:14 +00:00
Sudheer Shanka
995d1c97ea Merge "Uncomment a test." 2017-03-27 20:40:37 +00:00
Dmitry Dementyev
71fa5261d3 Add cache for Account Visibility values.
Test: cts
Bug: 36485175
Change-Id: I075b81f8b287199d51ea09dc1108748310ab846c
2017-03-27 13:22:58 -07:00
Wale Ogunwale
ff9ce0f674 Merge "Fixed logic error with setting maxAspectRatio" 2017-03-27 20:21:00 +00:00
Jason Monk
b29e0db8f8 Merge "Fix status bar visibility initialization" 2017-03-27 20:20:28 +00:00
TreeHugger Robot
b3544c1565 Merge "MediaCas: rethrow MediaCas specific exception" 2017-03-27 20:17:15 +00:00