50650 Commits

Author SHA1 Message Date
Svet Ganov
19ffd1d0a5 Fill UI polish
1. Avoid jank when the suggesting list scrolled

2. Remove hard-coded values from max popup height

3. UX requested tweaks

4. Remove dead code

Test: manual

bug:37245055
bug:37179467

Change-Id: I6a6760edb06230e3d4925e23863667cfd3ac0601
2017-04-12 09:53:13 -07:00
Robert Carr
c33658e597 Fix auto-pip visibility issues.
In the case that we defer stop for auto-enter picture
in picture, we should also defer changing the visibility. This causes
particularly awkward issues with SurfaceView as the views are left
in a severed state.

Test: Auto-pip Chrome from youtube. Things look alright!
Bug: 36355266
Bug: 36640131
Change-Id: I77de1c3eb9c61b03740cbe49f88dec1af2ed6577
2017-04-12 09:50:40 -07:00
Daniel Nishi
00ab1deef7 Merge "Use the StorageStatsManager in FileCollector." into oc-dev
am: feada91060

Change-Id: I11d4cd7a4acb384c3a4d134d55d8630de24ce533
2017-04-12 16:43:42 +00:00
Daniel Nishi
feada91060 Merge "Use the StorageStatsManager in FileCollector." into oc-dev 2017-04-12 16:37:53 +00:00
Charles He
e7c5ced211 Disallow direct-boot aware activities to bypass work lock
Effectively reverting 89927b3cd96472c478a988d6c731cd09d412a043, which
allowed direct-boot aware activities in the work profile to show before
the profile was unlocked. This causes problems with key eviction
introduced in O. Specifically, many system activities (e.g.
ChooserActivity, activities in Settings, etc.) are marked direct-boot
aware, and therefore can be started while the work profile is locked
with key evicted. Currently they either bypass the keyguard when they
should not, or simply crash due to profile still being locked.

In the future, we need to create a new mechanism to allow activities
such as video calls, alarm clocks, etc. to bypass the work keyguard. It
probably involves checking for something like FLAG_SHOW_WHEN_LOCKED.

Bug: 36961785
Bug: 35708183
Bug: 30296144
Test: manual, by following the steps in the bugs quoted
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
Change-Id: I5ccaaf963f3dd96e4abb785a10aa258b15363178
2017-04-12 17:35:07 +01:00
Julia Reynolds
da78147f29 Clear calling identity before verifying listeners
Also don't throw when can't verify listener.

And update mocking in tests to clean state between tests.

Bug: 36783632
Fixes: 37263567
Test: runtest-systemui-notification, create a secondary user
Change-Id: I5ec95539c9859b67b8fbc7e6a85334e08e6b5a98
2017-04-12 12:08:56 -04:00
Jean-Michel Trivi
163cdf2fb5 Merge "VolumeShaper: update API, use "Millis" instead of "Ms"" into oc-dev
am: 170e3e242b

Change-Id: Ie4784a0933e5113b8069da09683a13f4166bc87e
2017-04-12 15:55:12 +00:00
Jean-Michel Trivi
170e3e242b Merge "VolumeShaper: update API, use "Millis" instead of "Ms"" into oc-dev 2017-04-12 15:45:58 +00:00
Winson Chung
e3c21e0015 Fix regression when removing task.
- Limit removing the task immediately to when there is a single task
  overlay activity. Certain activities may not work when force-removed
  before the clean up work in removeTask() completes especially if the
  finishing activity is a part of a launch process (ie. trampoline
  activity). This behaviour is only needed for finishing activities that
  have actual task overlays.

Bug: 36761629
Test: Launch SiriusXM, and check that it loads
Change-Id: I34c812ab111819e858fe36b6359f82da717ba459
2017-04-12 08:41:39 -07:00
Jesse Evans
fc1bfc442c Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED
Renames the instant apps setting to reflect what it is for.

Adds the SystemApi annotation to make this field visible
to the resolver and installer.

Test: existing tests

Change-Id: I1651bb101d69bdfdaa63c004435025c68a33cd8e
2017-04-12 07:00:51 -07:00
Tony Mak
35ba7ec539 clear calling identity before calling settings provider
Test: Run a instrumentation test
cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testPhoneAccountVisibility

Change-Id: I29b1dc307e9e127b919aebe4d83ab6311ce36f2d
Fix: 34320197
2017-04-12 13:01:34 +01:00
Hugo Benichi
3bc2ac3f82 Merge "Captive portal: fix probe urls at network creation" am: 923ef69ae7 am: 65fa0676bf
am: 4c63d86db7

Change-Id: Iffc7ff461b685f14ced20ac0cd186f31aa4061ad
2017-04-12 10:00:32 +00:00
Hugo Benichi
4c63d86db7 Merge "Captive portal: fix probe urls at network creation" am: 923ef69ae7
am: 65fa0676bf

Change-Id: I3f4e5e226d6a6371a6fed02d472d1cad4995c64a
2017-04-12 09:55:06 +00:00
Kevin Chyn
0a08ec9f29 Merge "Implement enumerate in FingerprintService" into oc-dev
am: c2f8949b32

Change-Id: Iae38c3a036374d5556f1020cd3fd472b5e7c819f
2017-04-12 09:45:43 +00:00
Treehugger Robot
923ef69ae7 Merge "Captive portal: fix probe urls at network creation" 2017-04-12 09:38:41 +00:00
TreeHugger Robot
c2f8949b32 Merge "Implement enumerate in FingerprintService" into oc-dev 2017-04-12 09:35:17 +00:00
Erik Kline
227648f336 Extract SimChangeListener to its own file
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - runtest -x full/path/to/SimChangeListenerTest.java passes
Bug: 32163131
Change-Id: If90539fe9a5dc07c7c24ed0b70b920d94065a623
2017-04-12 15:57:49 +09:00
Jean-Michel Trivi
0dfbd1569d VolumeShaper: update API, use "Millis" instead of "Ms"
Test: make
Bug: 36785428
Change-Id: Ib77ff448bb8454453b1bd39f1491b0189b4ff15b
2017-04-11 19:05:26 -07:00
Julius D'souza
6717748eff Merge "DO NOT MERGE: Add WearDisplayService to the system server; add a SET_DISPLAY_OFFSET permission." into cw-f-dev am: 9e3c9eeb96
am: 3c6d6f53f3

Change-Id: I4a3785a799a523c1e650929cf70f333a2492377e
2017-04-12 02:01:28 +00:00
Julius D'souza
3c6d6f53f3 Merge "DO NOT MERGE: Add WearDisplayService to the system server; add a SET_DISPLAY_OFFSET permission." into cw-f-dev
am: 9e3c9eeb96

Change-Id: Ic97ec1a7e4c5b76bcab8350102585e4dd2cd199b
2017-04-12 01:55:57 +00:00
Andreas Gampe
fac61e4928 Merge "OtaDexOptService: Log post-reboot moves" into oc-dev 2017-04-12 01:36:40 +00:00
Julia Reynolds
a38256bb7b Merge "Allow companion device mgrs channel access" into oc-dev
am: de99065a40

Change-Id: I7de72421e62670f69d2d85837868efe0ef019a0a
2017-04-12 01:31:03 +00:00
TreeHugger Robot
de99065a40 Merge "Allow companion device mgrs channel access" into oc-dev 2017-04-12 01:22:52 +00:00
Conrad Chen
081db81a99 Merge "TIF: add TvInputManager methods to notify apps" into oc-dev
am: 307bec8572

Change-Id: I3550c39408739e0a3d1fce93cc35b09a3b77d70f
2017-04-12 01:17:00 +00:00
David Stevens
8e40723876 Merge "Reset the default usb package less often" into oc-dev
am: 1654143680

Change-Id: I8c7986ed572aea065140999281c91424aade8f48
2017-04-12 01:13:37 +00:00
Dianne Hackborn
b8633f3a2e Fix issue #37220301: Allow broadcasts with permissions to not be restricted
Allowed!

Test: new CTS tests added.
Change-Id: I16f49746c0d6f5368625b54df6ffb510aa4cb5ab
2017-04-11 17:38:42 -07:00
Conrad Chen
307bec8572 Merge "TIF: add TvInputManager methods to notify apps" into oc-dev 2017-04-12 00:25:37 +00:00
Jorim Jaggi
bae01b1a70 Disallow task snapshot starting window for intent != ACTION_MAIN
We don't want to show a task snapshot if the intent wasn't the
launcher intent. Likely the app will show something different, so
we shouldn't show a snapshot in this case.

Test: AppWindowContainerControllerTests
Test: Open app, make sure we get snapshot window
Test: Open Chrome, go home, Open chrome incognito from shortcut,
make sure no flash

Change-Id: Ib608ba8070ce09f418f1036248d81eebfa354128
Fixes: 35099602
2017-04-11 17:24:26 -07:00
Jorim Jaggi
2c4640b5ad Don't consider app as top app if alpha = 0
Test: Open acetone launcher, make sure status bar changes color
Change-Id: I579034793deccabafce3399bd2c0bb7581ede016
Fixes: 37247006
2017-04-11 17:15:30 -07:00
David Stevens
1654143680 Merge "Reset the default usb package less often" into oc-dev 2017-04-12 00:12:15 +00:00
Jorim Jaggi
a18b3c475c Merge "Improve caching behavior of thumbnails" into oc-dev
am: b67e105e74

Change-Id: I48914589de80ca11c97919bb5af6903ae46d2b3f
2017-04-12 00:01:41 +00:00
Wale Ogunwale
1ee52a4c36 Merge "Ensure visible activities when device is unlocked." into oc-dev
am: 293afb3917

Change-Id: I7e8827cdc75212223fa9e42852f8505dbebee8eb
2017-04-11 23:59:22 +00:00
Daniel Nishi
bd441caaf6 Use the StorageStatsManager in FileCollector.
This should vastly improve the speed of the FileCollector.

Change-Id: I7a878a0622bbd6c758fb1d36125414d8b025e709
Fixes: 35807386
Test: Existing tests continue to pass.
2017-04-11 16:53:23 -07:00
TreeHugger Robot
b67e105e74 Merge "Improve caching behavior of thumbnails" into oc-dev 2017-04-11 23:53:19 +00:00
TreeHugger Robot
293afb3917 Merge "Ensure visible activities when device is unlocked." into oc-dev 2017-04-11 23:50:11 +00:00
Kevin Chyn
d1f1a0b60a Implement enumerate in FingerprintService
Enumeration will happen only for the current active user.

Fixes 35358801
Test: manual

Change-Id: I4c935626edba6eceb1aec4f79a7b3a39313943a5
2017-04-11 16:44:39 -07:00
Fyodor Kupolov
a1ff00157c Report app data fixup and prepare timings
They are now reported under SystemServerTimingAsync tag, which is
tracked by boottime dashboard.

Test: manual
Bug: 37186619
Change-Id: Ib3608d7cf27012b5dab1947446fcb8d8496bbf91
2017-04-11 16:40:18 -07:00
Geoffrey Pitsch
15417d0f9d Merge "Toast whenever a notification fails to post" into oc-dev
am: b287e9907a

Change-Id: Idf8e29922f1192e258dd4c76172b3dfd36f6347b
2017-04-11 23:09:20 +00:00
Powei Feng
719e70c9f2 Revert "Transition from Activity to Broadcast for TV Search"
This reverts commit 1331d26142b9b3271292e3f58e7e79e1cb78d619.

Reason for revert: b/36725187

Bug: 36725187
Test: manual testing of search on Fugu

Change-Id: I02e7abeee264ceada88f220f2eddb9f92ef397bc
2017-04-11 23:01:41 +00:00
TreeHugger Robot
b287e9907a Merge "Toast whenever a notification fails to post" into oc-dev 2017-04-11 23:00:03 +00:00
Jorim Jaggi
dd5986e035 Fix NPE in TaskSnapshotController
Test: Pray
Change-Id: Ie65f072b35fbf1a9a65caf5be48dabbb7abb6be8
Fixes: 36592724
2017-04-11 15:50:58 -07:00
Dianne Hackborn
c75587ed5b Work on issue #36427964: SecurityException: Unable to find app...
...for caller android.app.IApplicationThread

Verify, if we don't find the caller on the LRU process list, that
it isn't actually on the main list.  (And if it is on the main list,
we can now recover from that.)  Also fix the error message when this
fails for startService() to print the correct calling pid.

Test: booted and ran

Change-Id: I0a81c679bb7e6eb15b854ed4b457d01b386d5dba
2017-04-11 15:39:16 -07:00
Jaekyun Seok
88f49930bc Merge "Bring back the priority feature for static RRO" into oc-dev
am: 8f8a71d170

Change-Id: I6812e2617a030a33158d7f859404da2f5e9fde66
2017-04-11 21:17:17 +00:00
Jaekyun Seok
65d4c83be7 Merge "Rebase enabled overlays for every PackageParser.generateActivityInfo() call" into oc-dev
am: ad724f61ad

Change-Id: I396870c82c6cdb1e4b709ff17cc1de4f62492a0a
2017-04-11 21:16:04 +00:00
Jorim Jaggi
cdef591e52 Improve caching behavior of thumbnails
Remove the retrieval cache on system_server. It's not needed at
this point.

Instead, we cache the low-res thumbnails on SystemUI side that
will be visible when recents launches. For that, we introduce
a strong thumbnail cache, which gets filled up whenever the task
stack changes.

Also fix a couple of issues like that the visibility report was
pretty wrong as well as some tasks got unloaded because tasks were
bound before layout happend.

Also fix a merge issue where we didn't load the reduced resolution
thumbnail :/

Test: TaskSnapshotCacheTest
Test: Open a couple of apps, open recents, make sure all
thumbnails are already loaded.

Fixes: 36374895
Change-Id: Idbf1acd4ceab6a7c4656e9791e245a8b102017f2
2017-04-11 14:06:42 -07:00
TreeHugger Robot
8f8a71d170 Merge "Bring back the priority feature for static RRO" into oc-dev 2017-04-11 21:03:00 +00:00
TreeHugger Robot
ad724f61ad Merge "Rebase enabled overlays for every PackageParser.generateActivityInfo() call" into oc-dev 2017-04-11 21:02:28 +00:00
Dianne Hackborn
7da13d7c3e Add new "work queue" feature to JobScheduler.
This gives semantics similar to the start command
queue of services.

The implementation is currently lacking in URI permission
grant handling of the work intents; that will be coming
in a follow-up change.

This includes a first step of adjusting/fixing locking
within JobSchedulerService.  The JobServiceContext class
has a bunch of stuff it does that assumes it doesn't need
locking because it schedules the work on a handler.  However,
to be able to correctly implement the work finish flow (that
takes care of stopping the job when there is no more work),
we can't dispatch these asynchronously so need to get rid of
that and just do explicit locking.

The switch to explicit locking is half-way there (again the
remaining part will be a follow-on CL).  Right now we have
the locking, but still also the handler.  But it turns out
there were a number of things we were doing without a lock
held where we actually should have been holding a lock, so
this is better anyway.

Test: new tests added

Change-Id: Iebd098046209b28e60fd2f4d855d7f91cd3a8b03
2017-04-11 13:57:15 -07:00
Casey Burkhardt
5d61440564 Improved multiuser support for A11y button/Magnification
- Ensures NavigationBarFragment updates Accessibility button state
  based on the settings of the current user.
- Launches AccessibilityButtonChooserActivity as the current user

Bug: 36652061
Bug: 36699310
Bug: 37103953
Test: Manual
Change-Id: Ieded484d548fb4631ceb8a873d667dd53fd2fd79
2017-04-11 13:40:45 -07:00
Dianne Hackborn
c7214a3ade Allow appops command to modify uid ops.
The get and set commands can now operate on per-uid
app ops as well as per-package ones.

The to parse a uid string in to a more generic place, but
for now we'll leave it here.

Test: none

Change-Id: I7efbb3966ddb79639dafabbe4bf1df659bed6240
2017-04-11 13:34:14 -07:00