313449 Commits

Author SHA1 Message Date
Winson Chung
d62acec309 Fixing regression in PiP TV.
- Don't clobber the state if we are deferring resizing due to finishing
  activities.
- Fix issue with PiP tasks being visible after the stack is removed, due
  to it being put below a non-fullscreen task in the fullscreen stack.
  Instead just move it to the back of the stack.

Bug: 36592307
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia18fe155b8a045a8ffea84612fd08af3ef3982d8
2017-04-03 09:30:42 -07:00
Philip P. Moltmann
ebc8ee266c Not send switch intents if there is no real intent
When resolving activtities for the USB device/accessory connection UI a
special intent that allows to switch between profiles get added. This
also gets added if there is no activity in the secondary profile that
can be started.

Fixes: 36544815
Test: Added work profile. Add USB handling app only to personal profile
      and plugged in USB device -> no crash anymore

Change-Id: I311ddd53b3ff0c8406e62bac57972d4b790ebddc
2017-04-03 09:06:09 -07:00
TreeHugger Robot
974b5b13b2 Merge "Fix broken perf tests" into oc-dev 2017-04-03 15:57:40 +00:00
TreeHugger Robot
a56b6e530a Merge "QS: Add transient animations for bluetooth and wifi" into oc-dev 2017-04-03 15:37:18 +00:00
TreeHugger Robot
2a071d69b4 Merge "Launch Intents from QS security footer as current user" 2017-04-03 15:10:36 +00:00
TreeHugger Robot
f244f7e1b8 Merge "Fix losing status bar icons on config changes" into oc-dev 2017-04-03 15:05:38 +00:00
TreeHugger Robot
35110948b7 Merge "Implement service filtering" into oc-dev 2017-04-03 14:45:57 +00:00
Bryce Lee
7efe56b779 Merge "Add app bounds to configuration." into oc-dev 2017-04-03 14:30:49 +00:00
Geoffrey Pitsch
326eb2ee80 Fix deleting Misc channel for o-aps
Change-Id: If5ebebcd1b983e12dee860801db578dfe882bd9c
Fixes: 36816111
Test: runtest systemui-notification
2017-04-03 10:19:11 -04:00
Diego Perez
fdf453aa9d Fix broken perf tests
Do not dispose Bridge on tearDown. The concept of disposing the Bridge
only made sense when we were loading it dynamically. Some classes have
static initializers that will fail after the dispose (like Typeface).

Test: N/A
Change-Id: I9c934432232bda02a4d26425587096fb6dc957b0
(cherry picked from commit f1532e36e16e2b55f175a24f11df91cf344833ff)
2017-04-03 14:11:23 +00:00
Chris Wren
ef3a28cb92 Merge "standardize network policy notification IDs" into oc-dev 2017-04-03 13:42:44 +00:00
Jason Monk
de8cd0e8f5 Merge "Switch cast over to support library dialog" into oc-dev 2017-04-03 13:34:19 +00:00
Jorim Jaggi
91232840aa Revert "Temporarily bg-whitelist the default container package-cleaning service"
Causes bootloop.

This reverts commit f16e7423c79c4ccccf43265a5b1966eb8e7f7be7.
2017-04-03 14:40:39 +02:00
Bartosz Fabianowski
e46e2b944a Launch Intents from QS security footer as current user
Intents triggered from QS should be resolved as the current user,
not as the user that QS is running as (which will always be user 0).
ActivityStarter knows how to do this and can handle this for us
automatically.

Bug: 36118203
Test: Manual

Change-Id: I48d880f0a17d7a9f218ab07ef807ad49ebeda624
2017-04-03 13:29:15 +02:00
TreeHugger Robot
0c224f9674 Merge "Revert "Whitelist ManagedProvisioning from bg check"" into oc-dev 2017-04-03 11:06:59 +00:00
Lorenzo Colitti
1f4c17a807 Merge "Add test coverage for NetworkSpecifiers." am: 9a029b5262 am: 0e068f6360 am: 8ee38521bc
am: 391c97d506

Change-Id: Ia71b72cc10dba6bac7c8fbe1ab3c5f40bc5506ff
2017-04-03 11:06:24 +00:00
Lorenzo Colitti
391c97d506 Merge "Add test coverage for NetworkSpecifiers." am: 9a029b5262 am: 0e068f6360
am: 8ee38521bc

Change-Id: Ia7d36096f0e3f0b203d1d838043c03fcd1cea829
2017-04-03 10:59:17 +00:00
Lorenzo Colitti
8ee38521bc Merge "Add test coverage for NetworkSpecifiers." am: 9a029b5262
am: 0e068f6360

Change-Id: I376b9011aaae7f0b8a2899a942d1a43e26605101
2017-04-03 10:52:20 +00:00
Lorenzo Colitti
0e068f6360 Merge "Add test coverage for NetworkSpecifiers."
am: 9a029b5262

Change-Id: Ia328b945af4c4f55ef560b33b00fa861b8f81b0d
2017-04-03 10:45:22 +00:00
Treehugger Robot
9a029b5262 Merge "Add test coverage for NetworkSpecifiers." 2017-04-03 10:37:01 +00:00
TreeHugger Robot
891e03203c Merge "Prevent NPE when draw is called without bounds being set Test: unit test inside AdaptiveIconDrawableTest.java" into oc-dev 2017-04-03 09:52:19 +00:00
Hugo Benichi
3d8cf2254e Merge "ConnectivityService: simplify WakeLock management" am: c98db5caa2 am: 6db00a22b0 am: 56ca1705d6
am: e92a4ba79b

Change-Id: Id8ae92f0eec4284ff5ba59a4a8c2227e9a77765a
2017-04-03 09:24:14 +00:00
Hugo Benichi
e92a4ba79b Merge "ConnectivityService: simplify WakeLock management" am: c98db5caa2 am: 6db00a22b0
am: 56ca1705d6

Change-Id: Iacc2e977c1eec2ebc9deb9395e1f77a62b57f070
2017-04-03 09:17:18 +00:00
Hugo Benichi
56ca1705d6 Merge "ConnectivityService: simplify WakeLock management" am: c98db5caa2
am: 6db00a22b0

Change-Id: I468e31800d5cfe1dd385d773fcc393b615cfa343
2017-04-03 09:10:44 +00:00
Hugo Benichi
6db00a22b0 Merge "ConnectivityService: simplify WakeLock management"
am: c98db5caa2

Change-Id: I1e0ae930cd7a329febf21ff3fc83ad2d0a3be69b
2017-04-03 09:03:13 +00:00
Hugo Benichi
c98db5caa2 Merge "ConnectivityService: simplify WakeLock management" 2017-04-03 08:56:24 +00:00
Lorenzo Colitti
6556a220d7 Add test coverage for NetworkSpecifiers.
Tests various combinations of empty / non-empty NetworkSpecifiers
and changing specifiers on the fly.

Test: ConnectivityServiceTest passes
Bug: 27533960
Change-Id: Ibd6b4efc861dc51689e46f3882ba859223411bf0
2017-04-03 17:46:35 +09:00
TreeHugger Robot
713b7c6b53 Merge "Lower-level user enumeration; fix disabled bug." into oc-dev 2017-04-03 08:36:09 +00:00
TreeHugger Robot
fd463121c6 Merge "We really want f_frsize and f_bavail." into oc-dev 2017-04-03 07:37:49 +00:00
TreeHugger Robot
e1df48d3a0 Merge "Camera: add batching support to HAL1 recording path" into oc-dev 2017-04-03 07:34:06 +00:00
Hyunyoung Song
55211c032c Prevent NPE when draw is called without bounds being set
Test: unit test inside AdaptiveIconDrawableTest.java

Change-Id: Ic3260ce9c6bae595c7eba7be1cd7ae249939a1cf
2017-04-03 00:23:49 -07:00
Daichi Hirono
c971eb5168 Merge "Process FuseAppLoop messages in Handler.Callback" into oc-dev am: cb9ceb3fd4
am: fd88a3aba7

Change-Id: I14919d6eef09fc3b4fc0f94faae2b6c8c1222abc
2017-04-03 07:07:03 +00:00
Daichi Hirono
fd88a3aba7 Merge "Process FuseAppLoop messages in Handler.Callback" into oc-dev
am: cb9ceb3fd4

Change-Id: I8708c1e60300c5384071106d9b3f75a534d1fbf6
2017-04-03 07:00:35 +00:00
TreeHugger Robot
cb9ceb3fd4 Merge "Process FuseAppLoop messages in Handler.Callback" into oc-dev 2017-04-03 06:55:04 +00:00
TreeHugger Robot
a06240021a Merge "Process FuseAppLoop messages in Handler.Callback" 2017-04-03 06:49:05 +00:00
Jeff Sharkey
60bca4e4bf Enforce PACKAGE_USAGE_STATS for usage data. am: 6df866a851
am: 979f227fb9

Change-Id: Ia3aaf773b4defb4b1399544ff7475cd4142f16aa
2017-04-03 06:27:05 +00:00
Jeff Sharkey
558b0dd418 Consistent dump() permission checking. am: fe9a53bc45
am: 020de02854

Change-Id: Iffbf78a7b48cea41ed4b0763f2452738e084225c
2017-04-03 06:26:04 +00:00
Jeff Sharkey
979f227fb9 Enforce PACKAGE_USAGE_STATS for usage data.
am: 6df866a851

Change-Id: I52d982ee864903ca93e889aa03f6315438dc6c4b
2017-04-03 06:19:57 +00:00
Jeff Sharkey
020de02854 Consistent dump() permission checking.
am: fe9a53bc45

Change-Id: I300f8bc07e1266b9e78f56d085cd458862176a85
2017-04-03 06:19:02 +00:00
TreeHugger Robot
5b01105ca3 Merge "Expose ConfigUpdater Intents in SystemApi" 2017-04-03 06:05:18 +00:00
Daichi Hirono
b8aeb6f12e Stop restoring tasks added before recent is loaded
Previously we can have duplicated tasks sharing the same taskId in
RecentTasks due to race condition.

1. A task is created before RecentTasks#loadUserRecentsLocked
   (e.g. through adb)
2. RecentTasks#notifyTaskPersisterLocked eventually writes the task file
   to storage (e.g. XX_task.xml)
3. RecentTasks#loadUserRecentsLocked tries to recover XX_task.xml while
   the task has already been added to RecentTasks.

To fix the issue, the CL stops restoring tasks added before recent is
loaded.

Bug: 36796576
Test: Build and boot Android, check the recent is correctly loaded
Change-Id: Ib57977f2a0a63f7bf7db4d3fd70bdcc359e76f7d
2017-04-03 14:43:45 +09:00
Jeff Sharkey
8231146d4e Lower-level user enumeration; fix disabled bug.
UserManager may not have been started yet, so discover users by
looking at filesystem.

Fix disabled bug where default should be "false."

Test: builds, boots
Bug: 36794413
Change-Id: If91fd27b955175072228a93aab4b8ac3b27df0bf
2017-04-02 23:42:29 -06:00
Jeff Sharkey
dafb17e7eb We really want f_frsize and f_bavail.
It's confusing, but f_bsize is not the value you're looking for; the
real block size is f_frsize.  Fix all those bugs.

Also, the vast majority of clients are interested in the usable
disk space, not including reserved space.

Test: builds, boots
Bug: 36840579
Change-Id: Ib1470389afd49c14cab62282ec1e978ebb2c4791
2017-04-02 23:33:38 -06:00
Daichi Hirono
ea6e6e17a0 Process FuseAppLoop messages in Handler.Callback
Previously FuseAppLoop instantiates Runnable for each command, which
causes lots of instantiation and GC.

Test: CTS
Bug: 35229514
Change-Id: Ifea098e5ade044b1a954c0b714c5b3270a95cd1a
2017-04-03 05:03:03 +00:00
Jeff Sharkey
6df866a851 Enforce PACKAGE_USAGE_STATS for usage data.
Some system services are offering package usage data through both
public/system APIs and through dump() calls.  In principle, usage
data hould always be protected with PACKAGE_USAGE_STATS, so start
enforcing that.  (Otherwise if a user blocked PACKAGE_USAGE_STATS
access to an app, that app could still obtain the data via dump()
if they held the DUMP permission.)

Bottom line, let's respect the user's wishes.

Protecting the entire output like this is pretty blunt, but future
CLs can add more nuance to the output if desired.

Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest
Bug: 32806790
Change-Id: I46173562713bea7d89e12a4313c78eb52ea8d77d
2017-04-02 22:29:07 -06:00
Jeff Sharkey
fe9a53bc45 Consistent dump() permission checking.
This change introduces new methods on DumpUtils that can check if the
caller has DUMP and/or PACKAGE_USAGE_STATS access.  It then moves all
existing dump() methods to use these checks so that we emit
consistent error messages.

Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest
Bug: 32806790
Change-Id: Iaff6b9506818ee082b1e169c89ebe1001b3bfeca
2017-04-02 22:29:07 -06:00
Daichi Hirono
5c2688a861 Process FuseAppLoop messages in Handler.Callback
Previously FuseAppLoop instantiates Runnable for each command, which
causes lots of instantiation and GC.

Test: CTS
Bug: 35229514
Change-Id: Ifea098e5ade044b1a954c0b714c5b3270a95cd1a
2017-04-03 13:18:40 +09:00
Bill Yi
413476a2d4 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 8f59f867f9 -s ours am: 14f8818989 -s ours
am: 5220e58299  -s ours

Change-Id: I5c32430cc7341934e7874d1b4715895b336846fb
2017-04-03 02:32:18 +00:00
Bill Yi
5220e58299 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 8f59f867f9 -s ours
am: 14f8818989  -s ours

Change-Id: I6e42ae3f5cf5a704b1f3c350af378bd178ac6714
2017-04-03 02:25:51 +00:00
Bill Yi
14f8818989 Merge "Import translations. DO NOT MERGE" into stage-aosp-master
am: 8f59f867f9  -s ours

Change-Id: Ief3fa9c34e3a1959e193d35cea0b0ace7168411e
2017-04-03 02:18:48 +00:00