OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fixed some rotation while unlocking screen issue." into oc-dev
Wale Ogunwale [Sat, 24 Jun 2017 01:35:46 +0000 (01:35 +0000)]
Merge "Fixed some rotation while unlocking screen issue." into oc-dev
am: 0b138595de

Change-Id: Ic30cff4e2b4224f035fae512cdee65f137b10836

6 years agoMerge "Fixed some rotation while unlocking screen issue." into oc-dev
TreeHugger Robot [Sat, 24 Jun 2017 01:21:39 +0000 (01:21 +0000)]
Merge "Fixed some rotation while unlocking screen issue." into oc-dev

6 years agoMerge "Fixed an issue in the contrast calculation" into oc-dev
Selim Cinek [Sat, 24 Jun 2017 00:55:44 +0000 (00:55 +0000)]
Merge "Fixed an issue in the contrast calculation" into oc-dev
am: 9bf5c0c3e1

Change-Id: I0989afc46b82f5dad45ee3f2fa8c32ab55f9cb71

6 years agoMerge "Fixed an issue in the contrast calculation" into oc-dev
Selim Cinek [Sat, 24 Jun 2017 00:44:08 +0000 (00:44 +0000)]
Merge "Fixed an issue in the contrast calculation" into oc-dev

6 years agoFixed an issue in the contrast calculation
Selim Cinek [Sat, 24 Jun 2017 00:22:38 +0000 (17:22 -0700)]
Fixed an issue in the contrast calculation

The parameters were passed the wrong way around.

Test: manual inspection
Fixes: 62937149
Change-Id: I7ae2bb2a4136da37d6b59b2b1406c68ce7fe7b6b

6 years agoMerge "Add ActivityInfo logging." into oc-dev
Bryce Lee [Fri, 23 Jun 2017 23:53:35 +0000 (23:53 +0000)]
Merge "Add ActivityInfo logging." into oc-dev
am: 4b6219dab3

Change-Id: I850a17a05ead7a84cbd0d2ff877a5349cbbe42cb

6 years agoMerge "Add ActivityInfo logging." into oc-dev
Bryce Lee [Fri, 23 Jun 2017 23:45:15 +0000 (23:45 +0000)]
Merge "Add ActivityInfo logging." into oc-dev

6 years agoAdd ActivityInfo logging.
Bryce Lee [Fri, 23 Jun 2017 21:53:02 +0000 (14:53 -0700)]
Add ActivityInfo logging.

This changelist adds additional logging around the ActivityInfo used
during startActivity to trace down when the userid changes.

Bug: 38121026
Test: manual
Change-Id: I162f4772845bc2cae585b7e4b027f3cce33439f4

6 years agoFixed some rotation while unlocking screen issue.
Wale Ogunwale [Fri, 23 Jun 2017 21:52:40 +0000 (14:52 -0700)]
Fixed some rotation while unlocking screen issue.

- Don't use snapshot that is in different orientation than the current
display orientation. This is a follow up to a previous CL whose
implementation wasn't complete.
- Disabled fixed for unnecessary relaunches when unlocking with
fingerprint sensor introduced in ag/2310557. This causes regression in
the experience from N. We still have the relaunches, but we cover up the
delay by displaying the apps starting window.
- Added more trace log points.

Fixes: 62796190
Fixes: 62904487
Bug: 38494778
Test: go/wm-smoke and manual verification of bug.
Change-Id: Id161a334cb4455dd9eb25c6bb63d5bb3f8a6f1f0

6 years agoMerge "Fix for the missing focus in WebView form fields." into oc-dev
susnata [Fri, 23 Jun 2017 22:42:55 +0000 (22:42 +0000)]
Merge "Fix for the missing focus in WebView form fields." into oc-dev
am: c34dec82a9

Change-Id: I9abbb5016ea806955e6f83aebe7029a08a883430

6 years agoMerge "Fix for the missing focus in WebView form fields." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 22:33:10 +0000 (22:33 +0000)]
Merge "Fix for the missing focus in WebView form fields." into oc-dev

6 years agoMerge "Fix notification contrast with transparent bg" into oc-dev
Lucas Dupin [Fri, 23 Jun 2017 19:19:15 +0000 (19:19 +0000)]
Merge "Fix notification contrast with transparent bg" into oc-dev
am: 9b73401191

Change-Id: Ia592c52798c7449616e06290d8c44708066f8af3

6 years agoMerge "Fix notification contrast with transparent bg" into oc-dev
Lucas Dupin [Fri, 23 Jun 2017 19:11:11 +0000 (19:11 +0000)]
Merge "Fix notification contrast with transparent bg" into oc-dev

6 years agoMerge "Emergency SUPL when location is disabled" into oc-dev
Siddharth Ray [Fri, 23 Jun 2017 17:19:46 +0000 (17:19 +0000)]
Merge "Emergency SUPL when location is disabled" into oc-dev
am: 2ffd98670f

Change-Id: If18b8305753542110533b56ed5963f6313cfcf7e

6 years agoMerge "Emergency SUPL when location is disabled" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 17:12:22 +0000 (17:12 +0000)]
Merge "Emergency SUPL when location is disabled" into oc-dev

6 years agoFix notification contrast with transparent bg
Lucas Dupin [Fri, 23 Jun 2017 16:30:49 +0000 (09:30 -0700)]
Fix notification contrast with transparent bg

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/StatusBarIconViewTest.java
Change-Id: I2f0595408be61acb8267bb7449486ee46f7aad19
Fixes: 62937149

6 years agoFix for the missing focus in WebView form fields.
susnata [Fri, 23 Jun 2017 16:13:05 +0000 (09:13 -0700)]
Fix for the missing focus in WebView form fields.

This looks like a regression for WebView (58.0.3029.125) in android
'O'. But this seems to have been fixed in early version of 60 (webview).
This workaround gets us past the problem, until we get the newer version
of WebView.

Bug: 62449959
Test: Manual
Change-Id: I29883bf7d1567c1ce7be90b4efde4b3da93b99a2

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Fri, 23 Jun 2017 15:21:20 +0000 (15:21 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: b39c08f9d7  -s ours

Change-Id: Ief41b8c9a76f5d02b7aa5114d47f04d8bf4899fb

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 15:11:46 +0000 (15:11 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Fri, 23 Jun 2017 12:49:10 +0000 (12:49 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: d406f38d24  -s ours

Change-Id: I1b385911cc3c7b096b55e6ed2af00719b43b10e7

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 12:42:32 +0000 (12:42 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 23 Jun 2017 07:43:50 +0000 (00:43 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib851156b7d64c1f1c3ea398dc1d80602219d2c0f
Auto-generated-cl: translation import

6 years agoMerge "Ensure that the recent tasks are loaded for SysUI's current user." into oc-dev
Winson Chung [Fri, 23 Jun 2017 05:22:09 +0000 (05:22 +0000)]
Merge "Ensure that the recent tasks are loaded for SysUI's current user." into oc-dev
am: cd73cc4c6d

Change-Id: I10168e6918e1127b46ae609351faaff13753380d

6 years agoMerge "Ensure that the recent tasks are loaded for SysUI's current user." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 05:16:08 +0000 (05:16 +0000)]
Merge "Ensure that the recent tasks are loaded for SysUI's current user." into oc-dev

6 years agoMerge "WifiEnterpriseConfig: New copy method to ignore masked password" into oc-dev
Roshan Pius [Fri, 23 Jun 2017 04:33:06 +0000 (04:33 +0000)]
Merge "WifiEnterpriseConfig: New copy method to ignore masked password" into oc-dev
am: db11f55cb7

Change-Id: Ic8ad2bdd0f88bc2fb15c132fe97d57c6d03e588c

6 years agoMerge "WifiEnterpriseConfig: New copy method to ignore masked password" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 04:26:45 +0000 (04:26 +0000)]
Merge "WifiEnterpriseConfig: New copy method to ignore masked password" into oc-dev

6 years agoMerge "Stop loading other package's font by default." into oc-dev
Seigo Nonaka [Fri, 23 Jun 2017 04:23:28 +0000 (04:23 +0000)]
Merge "Stop loading other package's font by default." into oc-dev
am: 824d75e0e1

Change-Id: Iec86839e2646bc6bf8ff45d0267d8aff82ae3452

6 years agoMerge "Add in the getCacheQuotaBytes method to wrapper." into oc-dev
Daniel Nishi [Fri, 23 Jun 2017 04:19:12 +0000 (04:19 +0000)]
Merge "Add in the getCacheQuotaBytes method to wrapper." into oc-dev
am: f14c1e12cf

Change-Id: I2bd3a8eba2d488425009f6cbceed8a07a42916bf

6 years agoMerge "Stop loading other package's font by default." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 04:10:42 +0000 (04:10 +0000)]
Merge "Stop loading other package's font by default." into oc-dev

6 years agoMerge "Add in the getCacheQuotaBytes method to wrapper." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 04:09:32 +0000 (04:09 +0000)]
Merge "Add in the getCacheQuotaBytes method to wrapper." into oc-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 23 Jun 2017 03:47:22 +0000 (20:47 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8e7e2885713047eef21b2885aa82aec71a5f5aa8
Auto-generated-cl: translation import

6 years agoMerge "Dump user id in dumpsys activity starter" into oc-dev
Wale Ogunwale [Fri, 23 Jun 2017 02:19:22 +0000 (02:19 +0000)]
Merge "Dump user id in dumpsys activity starter" into oc-dev
am: b55b842898

Change-Id: I64bec352717f9bf307092a93b6d864b03bc0b9c2

6 years agoMerge "Dump user id in dumpsys activity starter" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 02:10:32 +0000 (02:10 +0000)]
Merge "Dump user id in dumpsys activity starter" into oc-dev

6 years agoStop loading other package's font by default.
Seigo Nonaka [Thu, 22 Jun 2017 15:22:18 +0000 (08:22 -0700)]
Stop loading other package's font by default.

Since CONTEXT_RESTRICTED is not a default flag of createPackageContext,
we can't rely on it for preventing unexpected font injections.
To protect developers and existing apps from a risk of font injection,
stop loading font from other package's resouce unless the developer
explicitly set CONTEXT_IGNORE_SECURITY.

This CL contains Iac2a6fb3d82ef23d5ca6ee33f4aaa9ed28455271 by manual
merging to handle repository split.

Bug: 62813533
Bug: 62879353
Test: Manually done
Merged-In: I4442ddc48dadb5c968b444be86038b602074d301
Change-Id: I4442ddc48dadb5c968b444be86038b602074d301

6 years agoAdd in the getCacheQuotaBytes method to wrapper.
Daniel Nishi [Fri, 23 Jun 2017 01:53:03 +0000 (18:53 -0700)]
Add in the getCacheQuotaBytes method to wrapper.

Bug: 62623731
Test: Settings Unit Test
Change-Id: Ibd779c7d9e60c44440483489b231ba0715321bc1

6 years agoImproved documentation for AutofillService package:
Felipe Leme [Fri, 23 Jun 2017 00:36:17 +0000 (00:36 +0000)]
Improved documentation for AutofillService package:
am: 2ef19c1d73

Change-Id: Ieaf980369f4097c77da02e382fb74290c3a9947b

6 years agoDump user id in dumpsys activity starter
Wale Ogunwale [Thu, 22 Jun 2017 23:43:53 +0000 (16:43 -0700)]
Dump user id in dumpsys activity starter

To help with ANR debugging.

Test: adb shell dumpsys activity starter
Bug: 38121026
Change-Id: I96d530662e6a362b817df3ca8410cb173a2c0dd4

6 years agoWifiEnterpriseConfig: New copy method to ignore masked password
Roshan Pius [Thu, 22 Jun 2017 18:36:53 +0000 (11:36 -0700)]
WifiEnterpriseConfig: New copy method to ignore masked password

To ignore the masked password sent by apps, add a new copy-constructor
equivalent method which will ignore the masked password.

Bug: 62893342
Test: Unit tests.
Test: Manual tests with the linked CL.
Test: Regression tests.

Change-Id: Ib208dcd94a888e07a9b3dc0442620233ea7791e5

6 years agoMerge "Allow any app to dynamically install a split" into oc-dev
Todd Kennedy [Thu, 22 Jun 2017 22:34:40 +0000 (22:34 +0000)]
Merge "Allow any app to dynamically install a split" into oc-dev
am: 16503a8f7e

Change-Id: Ib29e3e3b5773975b16e7392860537331ebc0079d

6 years agoImproved documentation for AutofillService package:
Felipe Leme [Mon, 5 Jun 2017 18:32:32 +0000 (11:32 -0700)]
Improved documentation for AutofillService package:

- Moved (and expanded) overall documentation from FillResponse to
  AutofillService.
- Improved SaveInfo documentation.
- Improved FillRequest documentation.
- Improved Dataset documentation.

Bug: 37567048
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML

Change-Id: I157893deac06a5ed5e1cb7fd082da485f227b9ee

6 years agoMerge "ListPopupWindow: Wrap new bounds checking in targetSdk check." into oc-dev
Rob Carr [Thu, 22 Jun 2017 22:25:29 +0000 (22:25 +0000)]
Merge "ListPopupWindow: Wrap new bounds checking in targetSdk check." into oc-dev
am: 82b41e460c

Change-Id: Idbb623e64dbaf079d603c3fbb93e60e8325209fe

6 years agoMerge "Allow any app to dynamically install a split" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 22:11:44 +0000 (22:11 +0000)]
Merge "Allow any app to dynamically install a split" into oc-dev

6 years agoMerge "ListPopupWindow: Wrap new bounds checking in targetSdk check." into oc-dev
Rob Carr [Thu, 22 Jun 2017 22:08:03 +0000 (22:08 +0000)]
Merge "ListPopupWindow: Wrap new bounds checking in targetSdk check." into oc-dev

6 years agoMerge "Change PIP notification icon" into oc-dev
Shubang [Thu, 22 Jun 2017 21:44:01 +0000 (21:44 +0000)]
Merge "Change PIP notification icon" into oc-dev
am: 9f3967fee1

Change-Id: I7399fcf583823b3ab8f901c6c454a774deab4f02

6 years agoMerge "Change PIP notification icon" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 21:31:56 +0000 (21:31 +0000)]
Merge "Change PIP notification icon" into oc-dev

6 years agoEmergency SUPL when location is disabled
Siddharth Ray [Wed, 21 Jun 2017 22:14:44 +0000 (15:14 -0700)]
Emergency SUPL when location is disabled

A cycle of native_init() and native_cleanup() is needed so that
callbacks are registered after bootup even when location is disabled.
This will allow Emergency SUPL to work even when location is disabled
before device restart.

Merged-In: I423d5a7142709fc0579be009bb8b14d3778aa090

BUG:38362097

Change-Id: I423d5a7142709fc0579be009bb8b14d3778aa090

6 years agoMerge "Added more systrace points to window manager" into oc-dev
Wale Ogunwale [Thu, 22 Jun 2017 19:55:46 +0000 (19:55 +0000)]
Merge "Added more systrace points to window manager" into oc-dev
am: 182d5ec2d2

Change-Id: I91d214d202eb1883cd9298e248c0cc8a20f52ce8

6 years agoAllow any app to dynamically install a split
Todd Kennedy [Thu, 22 Jun 2017 19:40:39 +0000 (12:40 -0700)]
Allow any app to dynamically install a split

Any application starting an activity resolved to a dyanmic split
should initiate split installation. Previously, only the application
defining the split could start installation of the split.

Bug: 62872325
Test: Manual; install instant app and start intent using 'adb shell am' and see that dynamic split installation occurs
Change-Id: I232dc5df82fb2c04653015a4a6b9f07c9e382205

6 years agoMerge "Added more systrace points to window manager" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 19:30:40 +0000 (19:30 +0000)]
Merge "Added more systrace points to window manager" into oc-dev

6 years agoListPopupWindow: Wrap new bounds checking in targetSdk check.
Robert Carr [Wed, 21 Jun 2017 17:25:05 +0000 (10:25 -0700)]
ListPopupWindow: Wrap new bounds checking in targetSdk check.

While a negative height is pretty silly, crashing apps on
the new version of android makes them sad.

Test: Existing CTS passes.
Bug: 62434804
Change-Id: I5fc3fc50fb6ccfa9e96f38ded4fb8e338f263f09

6 years agoMerge "Ensure icon contrast on the shelf" into oc-dev
Lucas Dupin [Thu, 22 Jun 2017 17:36:15 +0000 (17:36 +0000)]
Merge "Ensure icon contrast on the shelf" into oc-dev
am: d0550a9b6c

Change-Id: Ib66c544b60b47d6f2b0043055582fe854b2430d8

6 years agoAdded more systrace points to window manager
Wale Ogunwale [Thu, 22 Jun 2017 16:08:14 +0000 (09:08 -0700)]
Added more systrace points to window manager

To help debug performance issues

Test: external/chromium-trace/systrace.py -t 3
Bug: 62796190
Change-Id: Ie6012a895174053c4732fb58b9365546fdb979de

6 years agoMerge "Ensure icon contrast on the shelf" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 17:25:10 +0000 (17:25 +0000)]
Merge "Ensure icon contrast on the shelf" into oc-dev

6 years agoMerge "Fix ConcurrentModificationException from LocationController" into oc-dev
Jason Monk [Thu, 22 Jun 2017 15:45:39 +0000 (15:45 +0000)]
Merge "Fix ConcurrentModificationException from LocationController" into oc-dev
am: 6791bee744

Change-Id: I64736bf7e9d4898710a09ed90acd952a80977071

6 years agoMerge "Fix ConcurrentModificationException from LocationController" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 15:39:22 +0000 (15:39 +0000)]
Merge "Fix ConcurrentModificationException from LocationController" into oc-dev

6 years agoFix ConcurrentModificationException from LocationController
Jason Monk [Thu, 22 Jun 2017 13:19:54 +0000 (09:19 -0400)]
Fix ConcurrentModificationException from LocationController

Test: runtest systemui
Change-Id: I0b7db7344217b3b7ad91f315100d1873e8167baf
Fixes: 62859544

6 years agoMerge "Create a TetherInterfaceStateMachine when told the interface name." into oc-dev
Erik Kline [Thu, 22 Jun 2017 11:34:36 +0000 (11:34 +0000)]
Merge "Create a TetherInterfaceStateMachine when told the interface name." into oc-dev
am: be7657b038

Change-Id: Ie97a6e8176300a0b5f16d3b7fa83afc939352771

6 years agoMerge "Create a TetherInterfaceStateMachine when told the interface name." into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 11:27:28 +0000 (11:27 +0000)]
Merge "Create a TetherInterfaceStateMachine when told the interface name." into oc-dev

6 years agoMerge "_exit(0) on clean shutdown, not _exit(1)" into oc-dev
Narayan Kamath [Thu, 22 Jun 2017 10:38:15 +0000 (10:38 +0000)]
Merge "_exit(0) on clean shutdown, not _exit(1)" into oc-dev
am: 31cf02742e

Change-Id: I2120427e0f78ee85a7c9629b319f954127fc5f21

6 years agoMerge "_exit(0) on clean shutdown, not _exit(1)" into oc-dev
Narayan Kamath [Thu, 22 Jun 2017 10:32:28 +0000 (10:32 +0000)]
Merge "_exit(0) on clean shutdown, not _exit(1)" into oc-dev

6 years agoOnly disable Wi-Fi IP serving on specific interface, if available
Erik Kline [Thu, 22 Jun 2017 09:46:10 +0000 (09:46 +0000)]
Only disable Wi-Fi IP serving on specific interface, if available
am: c8b180116d

Change-Id: I5d50d9a45bb8e29bbdf0289f3e13c2006e4f4baf

6 years agoCreate a TetherInterfaceStateMachine when told the interface name.
Erik Kline [Tue, 20 Jun 2017 12:18:31 +0000 (21:18 +0900)]
Create a TetherInterfaceStateMachine when told the interface name.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Bug: 62343300

Merged-In: I542e013aa19fefd3443588c9a81ee59cd669ab6f
Merged-In: I973bdc5b540cce66a9713cebfd5071ad4a4b0a08
Merged-In: I2104ecf8102c8f9541ee2d3ce6589b0081db4fe3
Change-Id: I2104ecf8102c8f9541ee2d3ce6589b0081db4fe3
(cherry picked from commit b912c50b197cc0fc49bb7897130581dd02d2af01)

6 years agoOnly disable Wi-Fi IP serving on specific interface, if available
Erik Kline [Fri, 9 Jun 2017 07:36:29 +0000 (16:36 +0900)]
Only disable Wi-Fi IP serving on specific interface, if available

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Bug: 62343300

Merged-In: Id8d9c3f67f7a850af69069abee86adfc62841b28
Merged-In: Iac19359fd8712fa6a135f31bed9f0da97b3f2977
Merged-In: I99b170ebacc4135d1a09ce1ec3d43f76c6765de4
Change-Id: Ifd9131bad20810ee24c9436d8c0df7a81fae11d5
(cherry picked from commit 218c226b0882640a351deb0dd945a30b8bc32fff)

6 years ago_exit(0) on clean shutdown, not _exit(1)
Brian Carlstrom [Thu, 22 Jun 2017 05:14:40 +0000 (22:14 -0700)]
_exit(0) on clean shutdown, not _exit(1)

Test: m -j32 checkbuild
Bug: 36066697
Change-Id: Iaed45a86f9603badf26041212dfc5e9399bc0a0c

6 years agoMerge "Refactor TISM add/remove code" into oc-dev
Erik Kline [Thu, 22 Jun 2017 05:00:04 +0000 (05:00 +0000)]
Merge "Refactor TISM add/remove code" into oc-dev
am: c0af382a25

Change-Id: I4d2ceee9355a673d1c2cf6fcefe57b35bbc10fc7

6 years agoMerge "Refactor TISM add/remove code" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 04:52:32 +0000 (04:52 +0000)]
Merge "Refactor TISM add/remove code" into oc-dev

6 years agoMerge "Autofill fixes for secondary users:" into oc-dev
Felipe Leme [Thu, 22 Jun 2017 03:16:38 +0000 (03:16 +0000)]
Merge "Autofill fixes for secondary users:" into oc-dev
am: 6358cdcd28

Change-Id: I0532ceccc3cbd39c9e4b2a5280de4eea2dc31292

6 years agoEnsure that the recent tasks are loaded for SysUI's current user.
Winson Chung [Thu, 22 Jun 2017 00:37:58 +0000 (17:37 -0700)]
Ensure that the recent tasks are loaded for SysUI's current user.

- At the point where we preload tasks, the current user in the system can
  be different than the "current" user from SystemUI's perspective. Instead
  of using the CURRENT user to get the recent tasks, use SystemUI's current
  user, to ensure that the tasks fetched are the same user as the user that
  we update the OVERVIEW_LAST_STACK_ACTIVE_TIME for (even if it's not the
  actual current user).
- In addition, if user switch happens between preloadRawTasks() and
  preloadPlan(), ensure we are using the user which we loaded recent tasks
  for, for the same reason as above.

Bug: 62440327
Test: Switch between users and ensure that tasks are not lost

Change-Id: Ia7bbf7f4c4002f6082f6f668c15a8da705ff23eb

6 years agoMerge "Autofill fixes for secondary users:" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 03:11:17 +0000 (03:11 +0000)]
Merge "Autofill fixes for secondary users:" into oc-dev

6 years agoRefactor TISM add/remove code
Erik Kline [Wed, 26 Apr 2017 02:11:07 +0000 (11:11 +0900)]
Refactor TISM add/remove code

This de-duplicates all the TISM adding and teardown code.
It does not yet change the locking or threading semantics.

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - manual tethering of WiFi and USB start normally
Bug: 32163131
Bug: 36216864
Bug: 62343300

Merged-In: I8ed82272183022a0469011a1f993704ecf771e3f
Merged-In: Ic1bcb3ca011bdc886086f34be18409eb5b12f521
Merged-In: I44a57660d23e76a7c13368cb8f60eaeac5830a0a
Change-Id: I44a57660d23e76a7c13368cb8f60eaeac5830a0a
(cherry picked from commit 4dd9bb83e2779b309dcc7a7db389b16fa3cb05be)

6 years agoChange PIP notification icon
Shubang [Thu, 22 Jun 2017 02:15:26 +0000 (19:15 -0700)]
Change PIP notification icon

Bug: 62823941
Test: mmm
Change-Id: Ibb5ad0d77a006e115fc7f163381d0547979e1867

6 years agoMerge "Clarify startScan API on how to get results" into oc-dev
Amith Yamasani [Thu, 22 Jun 2017 01:20:32 +0000 (01:20 +0000)]
Merge "Clarify startScan API on how to get results" into oc-dev
am: 78f3a0f722

Change-Id: Ib77e6be122c2fd1da086528b13ec5c0e90103ef1

6 years agoMerge "Clarify startScan API on how to get results" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 01:14:12 +0000 (01:14 +0000)]
Merge "Clarify startScan API on how to get results" into oc-dev

6 years agoAutofill fixes for secondary users:
Felipe Leme [Thu, 22 Jun 2017 00:33:41 +0000 (17:33 -0700)]
Autofill fixes for secondary users:

- Display the SaveUI on all users.
- Dismiss the UI when switching users.
- Fix security check on disableOwnedAutofillServicesLocked()

Test: manual verification
Change-Id: I4e9167314f1feeda618db6c57735cc31d84486c1
Fixes: 62828906

6 years agoAdd isSmallBatteryDevice flag to ActivityManager.
Michael Kwan [Fri, 14 Apr 2017 19:34:46 +0000 (12:34 -0700)]
Add isSmallBatteryDevice flag to ActivityManager.

Bug: 37351903
Change-Id: I6fed08c35474b10987388070eafb7b16e6944638
(cherry picked from commit 15eb998e65eceef991a55cf15dba9f1769b182db)

6 years agoMerge "Provide content description for WorkLockActivity." into oc-dev
Pavel Grafov [Wed, 21 Jun 2017 21:24:46 +0000 (21:24 +0000)]
Merge "Provide content description for WorkLockActivity." into oc-dev
am: f044e0b87f

Change-Id: I8f276237444fec733255e5301a55b5129e49812a

6 years agoMerge "Provide content description for WorkLockActivity." into oc-dev
Pavel Grafov [Wed, 21 Jun 2017 21:18:31 +0000 (21:18 +0000)]
Merge "Provide content description for WorkLockActivity." into oc-dev

6 years agoMerge "Create Splash Screen context with CONTEXT_RESTRICTED." into oc-dev
Rob Carr [Wed, 21 Jun 2017 21:08:52 +0000 (21:08 +0000)]
Merge "Create Splash Screen context with CONTEXT_RESTRICTED." into oc-dev
am: 8bc0aa2559

Change-Id: I6c38402b2e3d686ffca50aed96e4f0345ee63140

6 years agoClarify startScan API on how to get results
Amith Yamasani [Wed, 21 Jun 2017 21:06:44 +0000 (14:06 -0700)]
Clarify startScan API on how to get results

Make it clear in BluetoothLeScanner on how to get results
when starting a scan for a PendingIntent.

Bug: 38365430
Test: make offline-sdk-docs
Change-Id: I0bf88d751c89a8a478db985713357e153ac08595

6 years agoMerge "Removing @TestApi from inputdevice enable/disable to fix build" into oc-wear-dev
Shreerag Jayakrishnan [Wed, 21 Jun 2017 21:05:59 +0000 (21:05 +0000)]
Merge "Removing @TestApi from inputdevice enable/disable to fix build" into oc-wear-dev

6 years agoMerge "Create Splash Screen context with CONTEXT_RESTRICTED." into oc-dev
Rob Carr [Wed, 21 Jun 2017 21:01:42 +0000 (21:01 +0000)]
Merge "Create Splash Screen context with CONTEXT_RESTRICTED." into oc-dev

6 years agoEnsure icon contrast on the shelf
Lucas Dupin [Wed, 21 Jun 2017 18:58:31 +0000 (11:58 -0700)]
Ensure icon contrast on the shelf

Change-Id: Ie9251ae4bdb4b590ce93c7f2f092476d5f895b5a
Fixes: 62591326
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/StatusBarIconViewTest.java

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Wed, 21 Jun 2017 20:25:07 +0000 (20:25 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: 7c23c990f1  -s ours

Change-Id: I6608258dbf41541bd0d4c4c2ea857dcca93121ee

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 21 Jun 2017 20:17:35 +0000 (20:17 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoRemoving @TestApi from inputdevice enable/disable to fix build
shreerag [Wed, 21 Jun 2017 20:13:36 +0000 (13:13 -0700)]
Removing @TestApi from inputdevice enable/disable to fix build

Change-Id: I4f4602aeb6eb5280b70d56645122bb9fc1fab69c

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Wed, 21 Jun 2017 19:56:01 +0000 (19:56 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: 242c3c497c  -s ours

Change-Id: If90b670620769e1c4cdd4c31b1e4eee5cb762c79

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 21 Jun 2017 19:51:45 +0000 (19:51 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoMerge "Fix mobile signal icon when in airplane mode" into oc-dev
Evan Laird [Wed, 21 Jun 2017 19:40:16 +0000 (19:40 +0000)]
Merge "Fix mobile signal icon when in airplane mode" into oc-dev
am: 6a651f81b5

Change-Id: I07fd0ab9175d27de66ae4321165c710a0bf16ac5

6 years agoMerge "Fix mobile signal icon when in airplane mode" into oc-dev
Evan Laird [Wed, 21 Jun 2017 19:31:22 +0000 (19:31 +0000)]
Merge "Fix mobile signal icon when in airplane mode" into oc-dev

6 years agoFix mobile signal icon when in airplane mode
Evan Laird [Tue, 20 Jun 2017 20:10:44 +0000 (16:10 -0400)]
Fix mobile signal icon when in airplane mode

1. Empty state was drawing a line too thing and not dark enough to be
seen.
2. Airplane mode should be the slashed, full signal, not the
empty one

Going into airplane mode now draws the full signal, lighter than normal,
with a slash. And the empty state now has a thicker line.

Test: runtest systemui
Fixes: 62794461
Change-Id: Ic5e40d2e0f6ebe0d270129f10883a1fcb146d717

6 years agoMerge "Adding feature: input device disable/enable." into oc-wear-dev
TreeHugger Robot [Wed, 21 Jun 2017 19:13:03 +0000 (19:13 +0000)]
Merge "Adding feature: input device disable/enable." into oc-wear-dev

6 years agoAdding feature: input device disable/enable.
shreerag [Sat, 17 Jun 2017 01:54:37 +0000 (18:54 -0700)]
Adding feature: input device disable/enable.

This functionality will only be available for signed system applications.
A disable call will cause a file descriptor to the input device
driver to be closed, which in turn may cause the input device
to switch into a low-power mode.
An enable call will reopen the input device.

Bug: 30143923
Test: developed a custom apk with signature permission that
calls disable/enable on touchscreen device. Verified that
touchscreen stops working when disable is called and starts
working again when enable is called. Verified that the file
handle to the driver is closed and reopened. Verified that
the notification onInputDeviceChanged is received in the app.
CTS test - android.view.cts.InputDeviceEnabledTest

Change-Id: Ia352deb548b73559f821afd586893393d39a0696

6 years agoMerge "Fixed a bug where the panel could be stuck" into oc-dev
Selim Cinek [Wed, 21 Jun 2017 19:05:34 +0000 (19:05 +0000)]
Merge "Fixed a bug where the panel could be stuck" into oc-dev
am: e8dceabd98

Change-Id: Ied6a5d21db8d8de5473cc2ec5a878ae1bbbc2083

6 years agoMerge "Fixed a a11y regression to click notifications" into oc-dev
Selim Cinek [Wed, 21 Jun 2017 18:58:00 +0000 (18:58 +0000)]
Merge "Fixed a a11y regression to click notifications" into oc-dev
am: b792f98446

Change-Id: I4b371510854308fd3c7557a8e4c332a8a3e36ed9

6 years agoMerge "Fixed a bug where the panel could be stuck" into oc-dev
TreeHugger Robot [Wed, 21 Jun 2017 18:57:42 +0000 (18:57 +0000)]
Merge "Fixed a bug where the panel could be stuck" into oc-dev

6 years agoMerge "Fixed a a11y regression to click notifications" into oc-dev
Selim Cinek [Wed, 21 Jun 2017 18:48:53 +0000 (18:48 +0000)]
Merge "Fixed a a11y regression to click notifications" into oc-dev

6 years agoMerge "DnD: Total silence doesn't suppress A11y" into oc-dev
Jean-Michel Trivi [Wed, 21 Jun 2017 17:25:22 +0000 (17:25 +0000)]
Merge "DnD: Total silence doesn't suppress A11y" into oc-dev
am: 9f1494368b

Change-Id: I7bb0d0f1a1861becf172a74498cd99d1cccb269b

6 years agoMerge "DnD: Total silence doesn't suppress A11y" into oc-dev
Jean-Michel Trivi [Wed, 21 Jun 2017 17:15:31 +0000 (17:15 +0000)]
Merge "DnD: Total silence doesn't suppress A11y" into oc-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 21 Jun 2017 16:53:11 +0000 (09:53 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ieea78949e86d21bf8be5b0ef974a74c53b6cd63c
Auto-generated-cl: translation import

6 years agoFixed a bug where the panel could be stuck
Selim Cinek [Wed, 21 Jun 2017 16:44:52 +0000 (09:44 -0700)]
Fixed a bug where the panel could be stuck

Test: collapse the panels, let go, tap quickly, panel isn't stuck
Bug: 62602000
Change-Id: I449bcd4a6207c054eb5d536ba48ff8f05e26eb9a