Commit Graph

253881 Commits

Author SHA1 Message Date
smain@google.com
b433d73843 update Cloud Test Lab guide for Firebase / Studio 2.2.
Originally written by Aaron Carey.
bug: 30400568

Change-Id: I49132b33b388f1aeca0d286fc589940a4a6e3098
2016-09-08 16:55:05 -07:00
Svetoslav Ganov
821dd78512 Merge "[DO NOT MERGE] Remove toast window immediately" into nyc-mr1-dev 2016-09-08 23:49:38 +00:00
Svet Ganov
91d37f43c7 [DO NOT MERGE] While-list apps to access account if already saw it
Sync adapters without an account access cannot run until the
user approves the account access (for the case the account
access is not allowed by other policy such as being singed
with the same cert as the authenticator). However, if the
sync adapter package already got the account from another
app which means it already saw the account we white-list
the sync adapter app to access the account as it already
saw it - the bird is out of the cage.

bug:31162498

Change-Id: I2b72f3b0d6307561ed68db2f2e9c900b15e8d098
2016-09-08 16:46:46 -07:00
Vladislav Kaznacheev
048f3bfaf0 Update JavaDoc for DragEvent.getLocalState
Explicitly state that "local state" is local to the window
which has started the drag operation.

Bug: 31372686
Change-Id: Idbea7586c4e74097362067fa90390b97744181bb
2016-09-08 16:37:23 -07:00
TreeHugger Robot
abf1e82594 Merge "Don't update app idle rules on updateRulesForRestrictPowerUL()." into nyc-mr1-dev 2016-09-08 23:17:49 +00:00
Svet Ganov
6367e4ed30 [DO NOT MERGE] Remove toast window immediately
To address a security issue where a toast window can be
used by an app to overlay other apps without a permission
we now allow legacy apps to be able to put at most one
toast window on the screen to prevent adding the same
window over and over again to go around the new restriction
that toast windows are always removed after a timeout.
This change ensures that Toast removes its window immediately.

bug:31340854

Change-Id: Ia7f90844eb64b583321103d090e4407038b41547
(cherry picked from commit 1777c91f8f)
2016-09-08 23:12:11 +00:00
Akhila musunuri
44a59499ea CameraJNI: Fix memory leak in stop recording.
Issue:
Due to race conditions, if a recording frame callback is received
after a proxy listener is set to NULL, the callback is forwarded
to JNIContext which does nothing. This will lead to buffer leak
in metadata mode because fd would have been duped already.

Fix:
Release recording frame from JNIContext.

Bug: 30299751
CRs-Fixed: 1040448
Change-Id: I315ec3124014c6309d68fdc1be1e18091a84e154
Bug : 30143478
2016-09-08 15:55:20 -07:00
Kevin Hufnagle
0090727d95 docs: Added note about permission/feature changes with network/GPS.
As of API level 21, the ACCESS_COARSE_LOCATION permission no longer
implies the android.hardware.location.network feature, and the
ACCESS_FINE_LOCATION permission no longer implies the
android.hardware.location.gps feature. Updated several docs
accordingly.

Bug: 28052540
Change-Id: Ia86dfd390f85c7a99b50af862d5096f0ac64a133
2016-09-08 15:53:15 -07:00
Todd Kennedy
c2e96d45d2 Add filter ordering
Filter ordering allows automatic disambiguation between multiple filters
that matching a pattern. Ordering currently only works for EphemeralResolveInfo
objects.

Bug: 30837021
Change-Id: Ia217218c7c7d159dbd75d7733c45556e690d06d2
2016-09-08 15:34:03 -07:00
smain@google.com
346f6d395c add dev guide for constraint layout.
originally written and reviewed for Piper:
https://critique.corp.google.com/#review/129818554

bug: 28428669
Change-Id: If81f8792d3f7afb89ab75fba5c6994201eea234e
2016-09-08 15:25:20 -07:00
sergeyv
baf29e7cf4 HWUI: calculate used memory in FontCache for gfxinfo
bug:30427106
Change-Id: I653571d6a4e974e975fb0dc03fc2364eecbf2f84
2016-09-08 14:50:50 -07:00
Jean-Michel Trivi
e89877245f Audio focus: clean up FocusRequester early
For audio focus client death:
- call release on stack entry,
- fix logs messages.

Bug 28781809

Change-Id: I2d3e2b0635f7db2c52fcae0d6f5d6d3a773c6549
2016-09-08 14:42:54 -07:00
TreeHugger Robot
cbed5a74a4 Merge "KeyguardStatusBar: Fix bad state after canceled animation" into nyc-mr1-dev 2016-09-08 21:31:54 +00:00
Lei Yu
b1f01b752a Merge "Remove the deleted userhanle in cache to stop crashing." into nyc-mr1-dev 2016-09-08 21:14:27 +00:00
Greg Kaiser
f16abd98c7 ContextHubService: Keep handles across hub reboot
Previously, when a Context Hub rebooted, this service would reset
all of the "handles" used to identify the nanoapps on the Context
Hub.  This caused many issues for Java application code trying to
track nanoapps, and these issues were exacerbated under nanohub,
which reboots every times it loads an app.

We change this so that we keep the same handle across reboot if
the same nanoapp is still running post-reboot.  We accomplish
this by never "invalidating" our caches, but rather performing
a query post-reboot and removing stale entries.

Due to b/30835598, we needed to change our post-load query to
be all apps.  Without that change, a race between the two
query responses we would have post nanohub app load (one for
post-load, one for post-reboot) would leave us without knowing
which response we're dealing with.  Now, since both requests
are the same, we don't care which response we deal with.

This is all (hopefully) just for the Nougat release.  In the
O release, we hope to remove these caches (b/30835981) and
the idea of the JNI code inventing handles (b/30810861).

Bug: 30950975
Change-Id: I85a84ba5c1a039d69c1adaaea56609e0a38cce42
2016-09-08 14:12:42 -07:00
TreeHugger Robot
c779cdc560 Merge "Change density for the correct user" into nyc-mr1-dev 2016-09-08 21:07:01 +00:00
Felipe Leme
84d3973d85 Calls setUidFirewallRules() and enableFirewallChain() asynchronously.
The updateRulesForRestrictPowerUL() method is used to set the
power-related restrictions for all apps and it ends up by calling
NetworkManagerService twice (and each call spawns an iptables process,
which takes ~50ms to complete). This method is called on some critical
paths, like when the device leaves Doze Light mode.

This change makes these calls asynchronously, hence reducing the delay
on such critical paths in the O(100ms).

Fixes: 31281543

Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t
com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: If720a7112c72a18193ea9614ae187b7ed9c741ec
2016-09-08 13:57:06 -07:00
Robert Carr
387838be95 SurfaceView: Force surface disconnection before reuse.
Prior to N, if a client received the surfaceDestroyed callback
from their SurfaceView they could trust that the surface would not be
reused. Now that is not true in multiple scenarios. If a client fails
to shut down its EGL context then, we could end up in a situation where,
the client will never disconnect. Then when we reuse the same
underlying IGraphicBufferProducer for surfaceCreated next
the app will crash with a double connect error. There is no valid
use of the surface inbetween surfaceDestroyed and surfaceCreated,
so we just force the disconnection after surfaceDestroyed.

Bug: 30236166
Change-Id: I2e3e4b3176492dc0c2d46a59e0b5a781bf9bc356
2016-09-08 13:54:29 -07:00
Todd Kennedy
7d59cb81f8 Invoke service w/ action
GMS uses a service proxy and needs the action to be able to route
the connection to the proper service.

Bug: 30805203
Change-Id: I4e2177170c19dd7572226fc4f7eb36f67592e45d
2016-09-08 13:49:05 -07:00
Mihai Niță
a0ace71899 Merge "Changed the header of the region selection list to "All regions"" into nyc-mr1-dev 2016-09-08 20:48:14 +00:00
Greg Kaiser
a630b2d667 Merge "ContextHubService: Avoid null pointer dereference" into nyc-mr1-dev 2016-09-08 20:41:00 +00:00
Ajay Panicker
27b3d578b9 [DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed
Bug: 28672558
Change-Id: I4bc14bd7f098e34012c2ae1eeba2d439145901f0
2016-09-08 13:23:02 -07:00
Adrian Roos
7445c0bb86 Hold WakeLock while DreamService starts
Fixes a bug where DozeService would not properly initialize
because the CPU went to sleep before onDreamingStarted completed,
causing the pickup gesture to not work.

Change-Id: I85955a2b7d6bad5171accbc336117a9660b1b198
Fixes: 31044352
2016-09-08 20:06:48 +00:00
Alan Viverette
e00fe59837 Merge "Fix hint text color to align with latest Material spec" into nyc-mr1-dev 2016-09-08 20:00:35 +00:00
Daniel Nishi
26af56d28e Fix a bug where the Deletion Helper could not delete packages.
Bug: 31096000
Change-Id: I780cf74dc6750110024dcb0008b47879597f0156
2016-09-08 11:58:36 -07:00
Felipe Leme
0970046adf Don't update app idle rules on updateRulesForRestrictPowerUL().
updateRulesForRestrictPowerUL() should only affect the global
rules (Doze and Battery Saver), while app idle is an app-specific
rule. Such call was delaying setDeviceIdle() in O(100ms).

BUG: 31281543

Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_enabled
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_whitelisted
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_blacklisted
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_enabled
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_whitelisted
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_disabled

Change-Id: I32ad6853a6d88e2709538d00cd1e77b96d331b2d
2016-09-08 11:18:29 -07:00
Marie Janssen
93326cfd9f Fix setPairingConfirmation permissions issue (2/2)
setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: I887de32d156e672ec44aa0b286cd7ea7f9f8ad55
2016-09-08 18:15:26 +00:00
Ajay Panicker
0ea21bc70e [DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: Iddc935f0b02f5ff56e930914b4b664377e786184
2016-09-08 18:03:58 +00:00
Ajay Panicker
edae39d59a [DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: Iddc935f0b02f5ff56e930914b4b664377e786184
2016-09-08 11:01:29 -07:00
Mihai Nita
543e45babe Changed the header of the region selection list to "All regions"
Bug: 31257462
Change-Id: I3112b5700e23674d2c48c7ca96a2f1a17a5f15db
2016-09-08 11:00:34 -07:00
Andrew Solovay
8c83edc43b Merge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev am: de40f9d677
am: 6cff52dbae

Change-Id: Ida064a9e8fd3498f2df2f5843c94ecd53653124a
2016-09-08 17:55:51 +00:00
Andrew Solovay
ae09fcad26 docs: Fixing links to moved Fragments guide, + redirect am: f53968061c
am: 37b32a5d31

Change-Id: Iedccf6e09180096235f438edb96bdf73e273fae0
2016-09-08 17:50:36 +00:00
Andrew Solovay
6cff52dbae Merge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev
am: de40f9d677

Change-Id: Ib6be573fb963eda1d032c55eb9da4878d7374533
2016-09-08 17:43:45 +00:00
Andrew Solovay
37b32a5d31 docs: Fixing links to moved Fragments guide, + redirect
am: f53968061c

Change-Id: Ic29b29244d2919bcd5eb5b72daeaa8a78dc71e2d
2016-09-08 17:43:40 +00:00
Andrew Solovay
de40f9d677 Merge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev 2016-09-08 17:36:49 +00:00
Phil Weaver
752047dd3d Strengthen language about use of a11y API.
Bug: 30898472
Change-Id: I0c2afde3f750e880cb1ef087d092719ea145756d
2016-09-08 10:35:49 -07:00
Marco Nelissen
1f65a69d9a Merge "Fix memory leak in MediaScannerConnection" into nyc-mr1-dev 2016-09-08 17:34:19 +00:00
TreeHugger Robot
466d359330 Merge "DO NOT MERGE: Accurately emulate historic Downloads ACTION_VIEW behavior." into nyc-mr1-dev 2016-09-08 17:25:20 +00:00
jackqdyulei
dfc6ce5d95 Remove the deleted userhanle in cache to stop crashing.
Because the user handles are not up-to-date, we need to update it when
necessary.

Bug: 30919785
Test: This branch doesn't support robo test, testcases will be added in
master branch when merged down(ag/1419729)

Change-Id: Ia095c3946c49db239e0b1b2bcc8588b02158c036
2016-09-08 09:43:22 -07:00
xiaoli.xb.zuo
439e5e49fb Fix memory leak in MediaScannerConnection
This patch adds releasing of MediaScannerConnection in ClientProxy
after disconnecting and releasing of ClientProxy and
IMediaScannerService in disconnection sequence in
MediaScannerConnection.

Bug: 30150344

Change-Id: I1e162e4c9a0b7a741ace20480bcf06f3151a93bf
2016-09-08 09:08:18 -07:00
TreeHugger Robot
6c99793491 Merge "Update icons and strings for always-on VPN info" into nyc-mr1-dev 2016-09-08 10:52:20 +00:00
Narayan Kamath
a0abd73bc9 Merge "Backport changes to whitelist sockets opened by the zygote." into mnc-dev am: 014016cf32 am: 447d3798f1 am: 71e6a6f12a am: 177ee386b9 am: b126d7c7c5
am: f04f3892fb

Change-Id: I1bfdbef0c8df640d64cdb77cdccc51d38bb75186
2016-09-08 09:21:44 +00:00
Narayan Kamath
f04f3892fb Merge "Backport changes to whitelist sockets opened by the zygote." into mnc-dev am: 014016cf32 am: 447d3798f1 am: 71e6a6f12a am: 177ee386b9
am: b126d7c7c5

Change-Id: Ibd4f7188bf500886e53d4b714e5c7de1ad5b10c0
2016-09-08 09:16:24 +00:00
Narayan Kamath
cdc2842cfc Backport changes to whitelist sockets opened by the zygote. am: 0f6a0e1560 -s ours am: 6fa8339792 am: c6ced086d1 am: 4474da7b7c am: 5556367bc1
am: 7f78990260

Change-Id: I6a6be5e38a99806f68bf33a2642a79d39f14d3b3
2016-09-08 09:06:22 +00:00
Narayan Kamath
edabef5738 Merge "Backport changes to whitelist sockets opened by the zygote." into mnc-dr-dev am: 459810b9b7 am: 47b88a15f6 am: 7a0c7ab520 am: 45d7b8dd2a
am: c83ca7267a

Change-Id: I3ec8374998a606b98d61a2e6de72b1be2800a4c8
2016-09-08 09:06:19 +00:00
Narayan Kamath
b126d7c7c5 Merge "Backport changes to whitelist sockets opened by the zygote." into mnc-dev am: 014016cf32 am: 447d3798f1 am: 71e6a6f12a
am: 177ee386b9

Change-Id: Ic7a1d8c1ba996024b02915e431f2b7aacc306225
2016-09-08 09:05:08 +00:00
Narayan Kamath
7f78990260 Backport changes to whitelist sockets opened by the zygote. am: 0f6a0e1560 -s ours am: 6fa8339792 am: c6ced086d1 am: 4474da7b7c
am: 5556367bc1

Change-Id: I5db1d9538c274cf6d5e9a001ba7d38056f3928eb
2016-09-08 08:57:48 +00:00
Narayan Kamath
c83ca7267a Merge "Backport changes to whitelist sockets opened by the zygote." into mnc-dr-dev am: 459810b9b7 am: 47b88a15f6 am: 7a0c7ab520
am: 45d7b8dd2a

Change-Id: I66a02ec7bac220d515fc623dbcd0688b72db37fb
2016-09-08 08:57:46 +00:00
Narayan Kamath
6f98f1ac62 Backport changes to whitelist sockets opened by the zygote. am: 41ca1bce01 am: 49d992fdb0 am: 67c4adb5c1 -s ours am: bf16d345a6
am: beade90fe3

Change-Id: I17a42a46943a47015a94f31d9e4298ec2162fa29
2016-09-08 08:57:35 +00:00
Narayan Kamath
beade90fe3 Backport changes to whitelist sockets opened by the zygote. am: 41ca1bce01 am: 49d992fdb0 am: 67c4adb5c1 -s ours
am: bf16d345a6

Change-Id: Iedb9a7c7428cd8a5dc5aabaf9f1f88d96c8f022a
2016-09-08 08:49:59 +00:00