33337 Commits

Author SHA1 Message Date
Ben Lin
0df63e9080 Add android:label to ExternalStorageProvider.
Test: Builds.
Bug: 30138665
Change-Id: I6ac028f97c1451f9d78f7f5a0960f1a3f8bde5b7
2017-03-20 10:20:41 -07:00
Winson Chung
c9201b077b Merge "Adding check to ensure device exists before setting pointer type." 2017-03-10 17:18:46 +00:00
fionaxu
19d1e1d09d Merge "polish the notification of the default carrier app" am: b224b318a0 am: 64e0d4553b
am: b920519c91

Change-Id: Idb6513f6706bed29caa616aa08e3bd16778930ae
2017-03-10 10:04:00 +00:00
fionaxu
2dffa5c5ed Merge "decouple carrierdefaultapp from phone process" am: e32fc81c5d am: 1fdd29d799
am: 780c1cc26d

Change-Id: Ib46becf994bba0c18b4a58af494331baa0c78959
2017-03-10 09:54:53 +00:00
fionaxu
64e0d4553b Merge "polish the notification of the default carrier app"
am: b224b318a0

Change-Id: I4bb9f08d155def15a79a4960f05650cb5d7615fd
2017-03-10 09:52:22 +00:00
Treehugger Robot
b224b318a0 Merge "polish the notification of the default carrier app" 2017-03-10 09:44:02 +00:00
fionaxu
1fdd29d799 Merge "decouple carrierdefaultapp from phone process"
am: e32fc81c5d

Change-Id: I3b03e57609ab649f01a45a6b70edca1402f80b3e
2017-03-10 09:40:59 +00:00
Treehugger Robot
e32fc81c5d Merge "decouple carrierdefaultapp from phone process" 2017-03-10 09:33:08 +00:00
fionaxu
91009327d2 decouple carrierdefaultapp from phone process
Bug: 36114351
Test: Manual
Change-Id: I679d97bd9854fe478499d1fac6225c3f954ecdbc
2017-03-09 23:59:15 -08:00
TreeHugger Robot
642028fccd Merge "Replaced auto-fill by autofill to keep it consistent with API style." 2017-03-10 07:05:41 +00:00
TreeHugger Robot
1eb124656d Merge "Fixed a bug where the increased height wasn't applied correctly" 2017-03-10 03:22:16 +00:00
TreeHugger Robot
05eb84582e Merge "Address comments from API council." 2017-03-10 02:32:58 +00:00
Selim Cinek
10790672a9 Fixed a bug where the increased height wasn't applied correctly
The wrong value was used for the increased heads-up and the
increased contentViewHeight.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationinflaterTest.java
Change-Id: Ia72b2de890d89d4cffb40eaa653a62f426945451
2017-03-09 17:15:12 -08:00
TreeHugger Robot
eb6d731fc5 Merge "re-enable StatusBarTest tests" 2017-03-10 00:19:23 +00:00
TreeHugger Robot
b6c6eaf8d4 Merge "Updating expanded PiP menu." 2017-03-10 00:17:42 +00:00
Adrian Roos
7446235e7d Merge changes Ie17eedfd,Icb80843a,If1619c10,Iee23682a
* changes:
  AOD: Add wakelock for charging text while dozing
  AOD: Show charging status on AOD1
  AOD: Fix default for always-on setting
  Revert "Revert "AOD: Refactor always on configuration""
2017-03-09 23:25:56 +00:00
Chris Wren
fd57db6ead re-enable StatusBarTest tests
Also fix a broken test by passing the fake
logger deeper into the status bar.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I74dda6fbcf1e48d9723cd0e7f63eff4a5e561338
2017-03-09 17:51:19 -05:00
Winson Chung
e7a3d2225c Updating expanded PiP menu.
- Adding consistent scrim behind menu
- Tweaking icon/button sizes
- Updating the expand button depending on the current placement of the PiP
- Better centering of the expand button

Bug: 35358425
Test: Expand pip
Change-Id: I34575bb08d4815f51b6f14f8b0e25b20b9a97320
2017-03-09 14:46:05 -08:00
Adrian Roos
c1b50324a2 AOD: Add wakelock for charging text while dozing
Also refactors the WakeLocks in SystemUI.

Bug: 30876804
Bug: 35850304
Test: runtest systemui
Change-Id: Ie17eedfd266deb3aa46dabd701bc784330b2e030
2017-03-09 14:31:24 -08:00
Adrian Roos
5602189a6d AOD: Show charging status on AOD1
- Change PowerManager to not turn on display when on AOD
- Add charging icon to AOD1
- Add transient charging indication when plugged in

Bug: 30876804
Bug: 35850304
Test: runtest systemui; enable AOD, plug in phone, verify charging indicator shows, verify charging text shows and goes away after a few seconds
Change-Id: Icb80843a12c56c7e2abeca78115a366b4d508d4f
2017-03-09 14:31:24 -08:00
TreeHugger Robot
956d00cbe8 Merge "more testable MetricsLogger interface" 2017-03-09 21:55:47 +00:00
Adrian Roos
22a905eef1 AOD: Fix default for always-on setting
Change Ic35bd3c04d150fd3eb85d76db0043880b31a011f mistakenly
flipped the default to on. Change it back to off.

Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeConfigurationTest.java
Fixes: 36027947
Change-Id: If1619c10f8cc269f2dd852e166ac959e6c9c590a
2017-03-09 13:25:59 -08:00
Adrian Roos
0261fb2a19 Revert "Revert "AOD: Refactor always on configuration""
This reverts commit cdcc5c438949ce3d942c95204555680e080c17ed.

Bug: 36027947
Change-Id: Iee23682a9d82f930484c3f4c15d99f21a0f1bc36
2017-03-09 13:25:59 -08:00
TreeHugger Robot
af526ec9c3 Merge "Corrects the recents and home stacks position around docked state (1/2)" 2017-03-09 20:39:51 +00:00
Chris Wren
ef3199040f more testable MetricsLogger interface
Begin migration to non-static methods to allow easier mocking.
New clients should use the non-static methods.
Old clients that want to unit test metrics
should move to the new interface.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I168f3787ee50ddde8aa2d42c05b2b816d1d3a30e
2017-03-09 14:41:10 -05:00
Hector Tellez
7986b529f7 Merge "Revert "Support multiple filters per association request"" 2017-03-09 18:30:53 +00:00
Hector Tellez
d66c95fa90 Revert "Support multiple filters per association request"
This reverts commit e70e6aa62c6f3a9a79624a4f9d97df95edda0364.

Change-Id: I12857cbbea0a0c74521191ab5e3713db230626ab
2017-03-09 17:55:43 +00:00
TreeHugger Robot
70c8e86808 Merge "Protect against crash while sysui is initing" 2017-03-09 17:36:59 +00:00
Eugene Susla
acddd2c2ae Merge "Support multiple filters per association request" 2017-03-09 17:19:20 +00:00
TreeHugger Robot
71b5526a9a Merge changes I7e9aea3c,I2d23aabf
* changes:
  Remove content description from QS pages
  Fix random clicks in QS
2017-03-09 16:32:13 +00:00
Felipe Leme
640f30a776 Replaced auto-fill by autofill to keep it consistent with API style.
This change will affects 2 types of apps: autofill service implementations
and apps that use autofill APIs.

Since just the former is known to be used at the moment, we're not trying
to keep backward compatibility with the latter.

Bug: 35956626
Test: CtsAutoFillServiceTestCases pass
Test: android.provider.SettingsBackupTest pass

Change-Id: Ia720083508716deae9e887f9faa7ae7c5a82f471
2017-03-09 08:14:49 -08:00
Julia Reynolds
40805b9fd1 Merge "A11y updates for new a11y stream." 2017-03-09 15:23:32 +00:00
Hugo Benichi
a355edf4e9 Merge "CaptivePortalLoginActivity correctly gets UserAgent" am: 4903487fd9 am: 43961ee6ae
am: 4f9e934c5f

Change-Id: I234d55c758c7538717d27035fdc8864a8650d75c
2017-03-09 10:23:36 +00:00
Hugo Benichi
43961ee6ae Merge "CaptivePortalLoginActivity correctly gets UserAgent"
am: 4903487fd9

Change-Id: Iea24e914cab4128464f8866a4b9ae47c7c5325bf
2017-03-09 10:11:55 +00:00
Hugo Benichi
ec88fd6708 CaptivePortalLoginActivity correctly gets UserAgent
Change I33cbcdab9809c712d998da6d925bdd4e3093f8ff added to the intent
passed from NetworkMonitor to the CaptivePortalLoginActivity an extra
argument to set the UserAgent header of probes done by the
CaptivePortalLoginActivity.

However that extra String argument is not correctly retrieved from the
Intent and instead a null pointer is returned by getParcelableExtra().
Consequently the UserAgent header field is never set.

This patch fixes this bug and replace getParcelableExtra() with
getStringExtra().

It also adds logging of the request header and response header for every
network probes sent by CaptivePortalLoginActivity.

Bug: 35937367, 32369183
Test: manually tested
Change-Id: If5c463023474ffb0401f3cda5875ccd9fc6f79f9
2017-03-09 17:02:34 +09:00
TreeHugger Robot
fe473986fc Merge "Avoid cross lock acquisition leading to deadlocks" 2017-03-09 03:08:26 +00:00
TreeHugger Robot
35035f6066 Merge "Add version of @UiThreadTest that works at class level" 2017-03-09 03:00:43 +00:00
Svetoslav Ganov
e83df48908 Avoid cross lock acquisition leading to deadlocks
Test: manual

bug:36007738

Change-Id: I3db09af07857435682754916849433a809547974
2017-03-08 17:32:42 -08:00
Eugene Susla
e70e6aa62c Support multiple filters per association request
By supporting multiple filters per one request we should be able to cover
multiple kinds of use cases such as:
 - Letting the user select from a list of devices of more then one medium
 type (e.g. Bluetooth and BLE)
 - Allowing to provide multiple criteria for any field (e.g. filtering by
 more than one service UUID)

Bug: 30932767
Test: Provide multiple filters and ensure that devices matching either are
shown in the list to choose from.
Ensure wifi SSIDs are shown in the list if wifi filter is provided
Change-Id: I6621da388e2bf4ed97c5af2692629a321d0b63c7
2017-03-08 16:52:14 -08:00
TreeHugger Robot
62dd27ab3b Merge "Move lagging users over to new storage API." 2017-03-08 22:51:52 +00:00
Selim Cinek
3660504f14 Merge "Fixed a bug where the scrim was distracting when pulling on HUN" 2017-03-08 21:52:59 +00:00
Jeff Sharkey
60f95aa00a Move lagging users over to new storage API.
Over the last month we've been moving everyone over to the new
StorageStatsManager public APIs, but we missed these users.

The ApplicationsState changes are straightforward, but we had to
completely rewrite StorageMeasurement to use the new fast-path
quota APIs.

Test: builds, boots, UI using StorageMeasurement works.
Bug: 36056120
Change-Id: If02177c95bf8c96ae4eceac4d631a168f99bef84
2017-03-08 13:57:29 -07:00
Matthew Ng
330757dffa Corrects the recents and home stacks position around docked state (1/2)
Since splitting home stack into home and recents, some problems where
the home stack would appear above when home stack is not visible. This
would cause home stack to be below docked stack and think home is
visible when it is not. Then docking an app would minimize the docked
stack and go into a wierd state when recents is resumed/launched.

When docked stack is used, it will verify that recents is created and
avoids seeing home stack as visible when below docked stack with at
least 1 stack in between. Whenever an app is docked, this will make sure
home stack is below recents.

This will fix some parts of the cts tests that use
"adb shell am stack move-task <taskId> 3 true" and avoid glitches with
the docked stack.

The following scenarios were tested:
- Boot and dock and app without starting recents
- Dock after launching an app (when recents already created)
- Toggle dock with "adb shell am stack move-task <taskId> 3 true" and
undocking multiple times
- Dock with long press recents

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests
Bug: 35351074, 35145587
Change-Id: I6ac25c64f7d1050ea2260631ff4c052fcca3f185
2017-03-08 11:47:36 -08:00
Selim Cinek
f72baf17fc Merge changes I6823a613,I7763b473
* changes:
  Fixed a bug where the low-priority header wasn't cleared
  Fixes an issue where the notification header could be invisible
2017-03-08 19:04:19 +00:00
Jason Monk
a41a9add3b Remove content description from QS pages
This info is surfaced by the page indicator so it isn't needed here.

Change-Id: I7e9aea3c6493592c1f33ecdf563542b44e3f9d2b
Fixes: 35255217
Test: Select QS panel background
2017-03-08 10:07:19 -05:00
Jason Monk
1fdde2da76 Fix random clicks in QS
The entire header was getting set as clickable because of old code
which would eat the clicks of the brightness slider (and other things)
when expanded.

Fixes: 35628944
Test: Trigger expandable update (like clear user_setup and set it)
      then click on brightness in QS

Change-Id: I2d23aabf6b8a5b05f3b2b93ee723ec145514ce5e
2017-03-08 09:41:17 -05:00
Jason Monk
ba3643290d Add version of @UiThreadTest that works at class level
Saves a bunch of lines of tagging every test with @UiThreadTest

Test: runtest systemui
Change-Id: Id565dbe6bf1ae3dd7b3b23c507d1b3c386a36974
2017-03-08 09:15:48 -05:00
Jason Monk
9f1422d04a Protect against crash while sysui is initing
Sometimes when switching users not all the views are there yet, but
we will get another layout callback once they are, and can update
our animators then.

Change-Id: I029839e5c69c8c441cf89b0536a90e223dc35180
Fixes: 35949496
Test: Switch users
2017-03-08 09:11:51 -05:00
Eugene Susla
915b42bd95 Merge "Record app<->device association to xml file" 2017-03-08 02:16:13 +00:00
Selim Cinek
ae76b4c2f7 Fixed a bug where the scrim was distracting when pulling on HUN
Test: add hun, pull down, observe no scrim jump
Change-Id: Iec2a12476ac1f728c76119653226d2ca5a9d4145
Fixes: 35968030
2017-03-07 17:07:13 -08:00