Commit Graph

41200 Commits

Author SHA1 Message Date
Wale Ogunwale
2865b04701 Immediately deliver new intent to paused activities. am: 03f7e9e944
am: 08d6689303

Change-Id: I86bc60c70f373ae2a8df27ac32f27a3b665e1ac3
2016-09-22 22:02:28 +00:00
Vladislav Kuzkokov
5d25d52900 Add DevicePolicyManager.setBackupServiceEnabled as hidden API. am: 5a122a1ce9
am: 8a48085267

Change-Id: I0dc9c4492dfac2a72fc976a1e5204c2c14ec14c4
2016-09-22 21:59:49 +00:00
Todd Kennedy
6f38e68456 Add remote control of Instant Apps am: d15bb75af6
am: f308ffc915

Change-Id: If7a6884bb896c1bab38c7d0fe963c06125a44c26
2016-09-22 21:55:44 +00:00
Wale Ogunwale
08d6689303 Immediately deliver new intent to paused activities.
am: 03f7e9e944

Change-Id: I962edc54a173b204a5b24fb3d1871500852d35c2
2016-09-22 20:34:59 +00:00
Vladislav Kuzkokov
8a48085267 Add DevicePolicyManager.setBackupServiceEnabled as hidden API.
am: 5a122a1ce9

Change-Id: I134891f0b24cc666c34ae54cb3c937ba2f16648e
2016-09-22 20:03:40 +00:00
Todd Kennedy
f308ffc915 Add remote control of Instant Apps
am: d15bb75af6

Change-Id: I0433b101966f65daeb5d1d2ea04cf648572a8e58
2016-09-22 19:58:11 +00:00
Wale Ogunwale
03f7e9e944 Immediately deliver new intent to paused activities.
ag/1437028 tried to fix this problem, but limited intent
delivery to only paused activities in a minimized docked stack
to reduce the effect of the change since we are late in the
release cycle. However, it didn't completely solve the problem
for example when the ChooserActivity comes up in the fullscreen
stack un-minimizing the docked stack and then the user selects
the app in the docked stack from ChooserActivity.
We now immediately deliver intents to paused activities as they
are currently visible to the user and we want the user to see
the visual effects caused by the intent delivery now.

Bug: 31371093
Change-Id: I94f9717da66daa512071bb96e62b2f9811691a78
2016-09-22 09:04:09 -07:00
Stuart Scott
ab4e9b2fee Continue if package is not in system am: 434c8db80f am: 0845b025aa
am: b15c45a037

Change-Id: I8426be2a7217eb6eaf78f3e37fd787c065027411
2016-09-22 10:26:02 +00:00
Stuart Scott
b15c45a037 Continue if package is not in system am: 434c8db80f
am: 0845b025aa

Change-Id: Id87f7ab2c549d176d82fbcf18479671320a74616
2016-09-22 08:03:03 +00:00
Greg Hackmann
1eedfc6d8c AlarmManagerService: explain some timerfd_create() failures am: a0126e0857 am: dd4f59a76f
am: b79eb2540a

Change-Id: Idcedef52ac3614627bdfe67d5bcccc07434f865b
2016-09-22 07:32:22 +00:00
Greg Hackmann
396592efcd AlarmManagerService: remove legacy /dev/alarm support am: d7151c06f1 am: ccafcac745
am: d869532332

Change-Id: I62785aa1b833108f7ee69e16ac8c6ad4d4a74d4e
2016-09-22 07:30:37 +00:00
Stuart Scott
0845b025aa Continue if package is not in system
am: 434c8db80f

Change-Id: Ie2a9741583bb09ddcb27e28e18f29d63f371c8ff
2016-09-22 06:41:52 +00:00
Andrii Kulian
a646e8d657 Fix stopping activity when removed from waiting visible am: ee05681139
am: 273acdcefa

Change-Id: I451b830e704d39dee1089d28bde2625cd150d8dc
2016-09-22 05:02:23 +00:00
Andrii Kulian
273acdcefa Fix stopping activity when removed from waiting visible
am: ee05681139

Change-Id: Iefa95af94e488fbd33c567e268ab7fb7a1e09f51
2016-09-22 03:54:10 +00:00
TreeHugger Robot
3904e1bc34 Merge "Fix stopping activity when removed from waiting visible" into nyc-mr1-dev 2016-09-22 02:01:01 +00:00
Amith Yamasani
aa8e8c4ff9 Don't inform usage stats of interaction for a toast am: 43caafa2b6
am: 0775c2e29a

Change-Id: I3ee09b516288baca8eab2fb88ea905f91c042610
2016-09-22 01:36:21 +00:00
Andrii Kulian
ee05681139 Fix stopping activity when removed from waiting visible
During refactoring in ag/613666 waitingVisible flag clearing
was mistakenly removed. It was added back in ag/1221328 but
only for activities that are finishing.
This caused activity not being stopped in some cases when
window visibility change was handled before receiving idle
callback from client. This is easily reproducible when there
is a scene transition animation specified.

Bug: 31078584
Change-Id: Ic09c5199ad4fceae0607e4bcce02be5335c8870b
2016-09-22 00:17:43 +00:00
Greg Hackmann
b79eb2540a AlarmManagerService: explain some timerfd_create() failures am: a0126e0857
am: dd4f59a76f

Change-Id: I79bf671f247fc4a61e2eeb4262de716611324a51
2016-09-21 21:59:07 +00:00
Amith Yamasani
0775c2e29a Don't inform usage stats of interaction for a toast
am: 43caafa2b6

Change-Id: I7b1c81eef73870b115be65dae2e2bd9094333dff
2016-09-21 21:57:54 +00:00
Greg Hackmann
d869532332 AlarmManagerService: remove legacy /dev/alarm support am: d7151c06f1
am: ccafcac745

Change-Id: I6589c292fd7f850acf7c7acd27b7cf00fe762416
2016-09-21 21:57:37 +00:00
Amith Yamasani
be2db1ef72 Merge "Don't inform usage stats of interaction for a toast" into nyc-mr1-dev 2016-09-21 21:38:22 +00:00
Greg Hackmann
dd4f59a76f AlarmManagerService: explain some timerfd_create() failures
am: a0126e0857

Change-Id: I7c9e394d2edcca81e757e351f9de25447b33c2f4
2016-09-21 21:15:13 +00:00
Greg Hackmann
ccafcac745 AlarmManagerService: remove legacy /dev/alarm support
am: d7151c06f1

Change-Id: Ibefee7970e426f69e62b9f31fb7a38d24ad63c2a
2016-09-21 21:13:56 +00:00
Stuart Scott
434c8db80f Continue if package is not in system
bug:29546655
Change-Id: Ieb17534d60db4643180b915f9b10b0c79a2224e2
2016-09-21 14:04:22 -07:00
Amith Yamasani
43caafa2b6 Don't inform usage stats of interaction for a toast
If the process is forced to the foreground due to a toast,
don't inform usage stats of an interaction. Otherwise app standby
will be defeated easily.

Bug: 31544592
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdle_toast
Change-Id: I100d839ef8cf361704fd5db4b26dcc878672a235
2016-09-21 18:53:50 +00:00
Lorenzo Colitti
60892e558a Rematch wifi networks when the avoid bad wifi setting changes. am: 836d8788a8 am: caf1f0bf0e
am: e913dded2b

Change-Id: Id45ac22c3070de67fb3455c6d8a3c44d22388ff6
2016-09-21 09:57:56 +00:00
Robin Lee
0c52e556b4 Merge "Merge commit '16a33074d8e38cf3d082c68e972a0e12fb2ad09f' into manual_merge_16a3307" into nyc-mr1-dev-plus-aosp 2016-09-21 09:53:59 +00:00
Lorenzo Colitti
e913dded2b Rematch wifi networks when the avoid bad wifi setting changes. am: 836d8788a8
am: caf1f0bf0e

Change-Id: I6d5fca7707fdc26c953df626c7eddc3f108b949c
2016-09-21 09:52:30 +00:00
Michal Karpinski
d82fccd368 Rename DnsEventListenerServiceTest to NetdEventListenerServiceTest
Change-Id: I67e645306444938a4675e91a9db5d716c0bd4881
2016-09-21 18:48:57 +09:00
Lorenzo Colitti
caf1f0bf0e Rematch wifi networks when the avoid bad wifi setting changes.
am: 836d8788a8

Change-Id: I589cfdb8792997fe94d22c551c8a53e48e45db1a
2016-09-21 09:47:28 +00:00
Michal Karpinski
7e1cdbe1fd Merge commit '16a33074d8e38cf3d082c68e972a0e12fb2ad09f' into manual_merge_16a3307
Change-Id: I0d98f0b7f1bd23c00eaa73ff0a48c75cf8f11199
2016-09-21 18:29:17 +09:00
Michal Karpinski
16a33074d8 Merge "Rename the DnsEventListenerService to NetdEventListenerService" am: 1e3f586c10
am: e2f6138710

Change-Id: I001724d2145058df0b51e581855fd663f815c209
2016-09-21 08:47:59 +00:00
Michal Karpinski
e2f6138710 Merge "Rename the DnsEventListenerService to NetdEventListenerService"
am: 1e3f586c10

Change-Id: Ie83aa7e6225a42c11c03eae45f593e74b94efc82
2016-09-21 08:39:42 +00:00
Michal Karpinski
cc6b37d9e2 Rename the DnsEventListenerService to NetdEventListenerService
The service will be extended to include listening for connect events as well.

Test: this is just a renaming change

Bug: 29748723
Change-Id: I4e50e24d1bfb0b5ead4010cc7df3434d38b753d8
2016-09-21 16:17:26 +09:00
Lorenzo Colitti
836d8788a8 Rematch wifi networks when the avoid bad wifi setting changes.
Currently, when the avoid bad wifi setting changes, we rematch
all networks and requests, but do not update any NetworkFactories
with new scores. This means that if a wifi network's score goes
down as a result of enabling bad wifi avoidance, we will not look
for another network (e.g., cell data) to satisfy its requests.

This makes it so that when the user enables avoiding bad wifi,
we will attempt to bring up cell data will if it is not already
connected.

Bug: 31075769
Change-Id: Ie5b685be8676999adea8c9ecbbc1abb92f81a74f
2016-09-21 15:10:14 +09:00
Felipe Leme
114052549b Listen to ACTION_UID_REMOVED only. DO NOT MERGE. am: f1da90fe04
am: b63481d64c

Change-Id: I811a94ec8906e83c235c84952f64c741a1f6e72e
2016-09-21 03:44:34 +00:00
Felipe Leme
b63481d64c Listen to ACTION_UID_REMOVED only. DO NOT MERGE.
am: f1da90fe04

Change-Id: I6a555cc1572add73e467a829271909aade5ca1e3
2016-09-21 03:09:13 +00:00
TreeHugger Robot
1bae4e3e17 Merge "Listen to ACTION_UID_REMOVED only. DO NOT MERGE." into nyc-mr1-dev 2016-09-21 02:46:08 +00:00
Jeff Sharkey
a6cc94a1f4 Check if anyone could possibly provide service. am: f6e9b95127
am: 0e928ee97b

Change-Id: I1085fe70088698fd7d31b1b5fe4d6af05765ecf8
2016-09-21 01:58:39 +00:00
Erik Kline
7686b9f03c Handle more commands in StoppingState am: 8ec1dc8117
am: 103eeee194

Change-Id: I1681625323463bf2be87ea7072fb8b570b4b4ab8
2016-09-21 01:56:18 +00:00
Jeff Sharkey
0e928ee97b Check if anyone could possibly provide service.
am: f6e9b95127

Change-Id: I979716e66e6b5ca068e4a0de3cf2432cbbf25c37
2016-09-21 01:23:55 +00:00
Erik Kline
103eeee194 Handle more commands in StoppingState
am: 8ec1dc8117

Change-Id: I24cbb5187f82044d4f319bdb59c562854d39d374
2016-09-21 01:22:31 +00:00
Felipe Leme
f1da90fe04 Listen to ACTION_UID_REMOVED only. DO NOT MERGE.
NMPS was listening to both ACTION_UID_REMOVED and
ACTION_PACKAGE_REMOVED, which not only was redundant but would also
cause problems when a package with shared UIDs was removed.

Fixes: 31375684

Change-Id: Iec006dbbec0e6298f1e568cbf81ed3672f61b7d2
(cherry picked from commit fdebbea401)
2016-09-21 01:11:26 +00:00
Jeff Sharkey
7da2a0c571 Merge "Check if anyone could possibly provide service." into nyc-mr1-dev 2016-09-21 01:08:18 +00:00
Erik Kline
9ed777d03d Merge "Handle more commands in StoppingState" into nyc-mr1-dev 2016-09-21 01:05:33 +00:00
Jaewan Kim
e8bc7157a3 Check caller for sending media key to global priority session am: d409d18686
am: 419aeae678

Change-Id: I8e4ad81d9e4a40cc99f913e7e22ce22be88e7406
2016-09-21 01:00:53 +00:00
Jaewan Kim
419aeae678 Check caller for sending media key to global priority session
am: d409d18686

Change-Id: I533ac492152a3aee906d3bf09df9dd965e1213bf
2016-09-21 00:50:04 +00:00
Jaewan Kim
c78afedc91 Merge "Check caller for sending media key to global priority session" into nyc-mr1-dev 2016-09-21 00:36:14 +00:00
Jaewan Kim
d409d18686 Check caller for sending media key to global priority session
Prevent sending media key events from the non-system app to the global
priority session through the MediaSessionManager.dispatchMediaKeyEvent().
Note that any app can use the API indirectly with
the public API AudioManager.dispatchMediaKeyEvent().

Bug: 29833954
Tested: Installed malicious apps and confirmed that they don't work.
Tested: Run CtsTelecomTestCases and CtsMediaTestCases
Change-Id: I2a9e78196ba7455324e485f098f095d03b47ee15
2016-09-21 09:12:47 +09:00
Jeff Sharkey
f6e9b95127 Check if anyone could possibly provide service.
If no service is present that could satisfy a given ServiceWatcher,
then return false.  For example, on devices were there is no Geocoder
service implementation, we need to avoid claiming that the API is
supported.

Test: booted
Bug: 30837973
Change-Id: Ib0834cf1a12623733f8b472dc3da7b3e2adc4515
2016-09-20 23:31:06 +00:00