Commit Graph

253881 Commits

Author SHA1 Message Date
Hugo Benichi
5e055187be Adding tests for DnsEventListenerService
Bug: 29035129
Change-Id: Iaf0d9ec781da7a473b6f7d8623060ecde44b9cbd
2016-06-29 14:28:51 +09:00
Hugo Benichi
cfddd68792 Refactor IP connectivity event logging
This patch removes static methods for logging IP connectivity events
defined in android.net.metrics and replaces them with a single log()
instance method defined on IpConnectivityLog. Event constructors are
now public also. Every classes logging such events now create an
instance of IpConnectivityLog for logging event objects directly
instantiated with new.

Removing static dependencies allow straightforward testing of logging.

This patch also removes the base IpConnectivityEvent class which is not
needed any more.

Bug: 29035129
Change-Id: I3de700f93f46deaa48a759f938f7d00e1d8bff98
2016-06-29 14:28:51 +09:00
Robert Carr
5bf74ae1b9 Merge \"Only use one SurfaceControlWithBackground per AppToken.\" into nyc-dev
am: 55427a6650

Change-Id: I8f4eae6fe2ab09cd0b14473cba7d4dbbc42dc469
2016-06-29 03:33:24 +00:00
Rob Carr
55427a6650 Merge "Only use one SurfaceControlWithBackground per AppToken." into nyc-dev 2016-06-29 03:27:48 +00:00
Robert Carr
91b2280964 Only use one SurfaceControlWithBackground per AppToken.
In the past, if an app never renders to a SurfaceView, it will be
invisible despite having FLAG_OPAQUE. This means an app could leave a
totally empty SurfaceView (never drawing in to it) on top of a second
SurfaceView, and expect the second one to be visible. This is probably
buggy app behavior because FLAG_OPAQUE means if they ever draw anything at all
in to the top SurfaceView the bottom one will become totally invisible.
However this has worked in the past, so we have to preserve things for
apps. To accomplish this we ensure only the bottom most visible
SurfaceView for a given AppToken will receive a background. We achieve
this by synchronizing through the app token whenever visibility or
layering of a SurfaceView changes.

Bug: 29580298
Change-Id: I0023326323cb961b56404fd49093384e7b72aa54
2016-06-28 20:09:09 -07:00
Winson
52cfea9c35 Move preloading to boot complete.
am: 16ef39a7f6

Change-Id: Idaf6c79e076a6b2a1c2d2a2b7282e58bb7c23bce
2016-06-29 02:20:33 +00:00
Winson
16ef39a7f6 Move preloading to boot complete.
Bug: 29320695
Change-Id: I14b5127b218597f3c32e647e0443a88b5a708ce1
2016-06-29 02:13:37 +00:00
TreeHugger Robot
634ed6bc17 Merge changes Id876f01f,If7c94cf8 into nyc-mr1-dev
* changes:
  Improving the Reset Demo Warning dialog
  Enabling auto-ota in retail demo mode
2016-06-29 01:38:02 +00:00
TreeHugger Robot
2d8c91f238 Merge "Prevent PrintSpooler from being disabled" into nyc-mr1-dev 2016-06-29 01:29:41 +00:00
Chong Zhang
2fde939272 Fix off-by-one in am start -R (repeat)
bug: 26028552
Change-Id: I075b378b6f126d124d867282d76a78d865b54178
2016-06-28 18:08:13 -07:00
Chong Zhang
8e3b57aad5 Merge "Add a few trace points for animation loading." into nyc-mr1-dev 2016-06-29 01:03:27 +00:00
Jim Miller
ef26bf0f0a Merge \"Relax security constraint around getAuthenticatorId().\" into nyc-dev
am: 60c04126c9

Change-Id: I28a3559159340d663693976cc58dc34f3c730f6c
2016-06-29 00:45:08 +00:00
Jim Miller
60c04126c9 Merge "Relax security constraint around getAuthenticatorId()." into nyc-dev 2016-06-29 00:37:42 +00:00
Fyodor Kupolov
3864183146 Fixed race condition by using a separate counter
Otherwise a broadcast item replies before the loop completes causing
curWaitingUserSwitchCallbacks to be erroneously empty triggering a
premature call to sendContinueUserSwitchLocked.

Bug: 29039588
Change-Id: I48f48ef68c178166d3473b898346f516905ee70c
2016-06-28 17:37:09 -07:00
Hugo Benichi
41a3acc55a Merge changes I9b4e55c2,I429562a0 into nyc-mr1-dev
* changes:
  Add tests for MetricsLoggerService
  Tests for IpConnectivityMetricsLog
2016-06-29 00:15:49 +00:00
Amith Yamasani
1c41dc8ec5 An API to check if running in a demo user
Add an API to query if the calling app is running
in a demo user sandbox. This allows apps to customize
the starting experience to a potential customer.

Change-Id: I50e40f9a8c66da4b5672c1dc64606d7bedba3f8c
Fixes: 29833923
2016-06-28 17:05:19 -07:00
Wale Ogunwale
6cbba70461 Have wallpaper target itself when dismissing keyguard with wallpaper
We were previous setting the top app window as the wallpaper target
when the keygaurd is animating away with the wallpaper. This causes
a window that doesn't have the flag to show wallpaper behind it to
become the wallpaper target and it remains the target as long as
there are no window movements. Instead we can make the wallpaper
window target itself during this transition.

Bug: 29092234
Change-Id: If4e3972e7012c6605b1f9dfb9234ceda8db8738b
2016-06-28 17:02:54 -07:00
Suprabh Shukla
0271fd661d Improving the Reset Demo Warning dialog
Removing explicit call to setView which was distorting the layout
of a standard AlertDialog. Used the correct unicode characted for
apostrophe. Also removed calls to enable demo mode launcher for user 0.

Bug: 29520255
Change-Id: Id876f01f8e51c02634c03fce1ea93a15b111fc27
2016-06-28 16:48:34 -07:00
Jim Miller
d0063106b6 Relax security constraint around getAuthenticatorId().
Fixes bug 28603656

Change-Id: I54216d4b9a3ab23f9d5bfe0f40f2dd27e723c21e
2016-06-28 16:43:57 -07:00
Philip P. Moltmann
545a58ab6b Prevent PrintSpooler from being disabled
Change-Id: I40fb7b25174a41d04f767fbf8ee1da8c02e7156a
Fixes: 29830022
2016-06-28 23:28:48 +00:00
Adrian Roos
9b45a1545f Notification: Apply small icon level
Change-Id: I7733da7aee54fab42bdbea09e7696a7a2bf9fb65
Fixes: 29828905
2016-06-28 16:25:26 -07:00
Bert McMeen
cdfe5e4f55 Docs: Links added to pages for permissions and configuration activity
Bug: 28864917
Change-Id: Ieab325f20dac3bba6028e5c70813d4035063d0cf
2016-06-28 16:24:13 -07:00
Ajay Panicker
58dd0cd65e Protect REFRESH_BATCHED_SCAN broadcast
Bug: 29754520
Change-Id: Id3f43d36db2c5f026a5d3a94e7370051d2e23e37
2016-06-28 23:20:37 +00:00
Chong Zhang
8784be6fe4 Add a few trace points for animation loading.
Also make sure focusMayChange is set as before commit 8c5d42.
We only want to skip the applyAnimationLocked if animation is
already set, make sure the rest are equivalent.

bug: 29405575

Change-Id: I8342b82d9e6e02fab002e16ffcde4a7479bf6867
2016-06-28 16:09:35 -07:00
Chia-I Wu
15e74c9614 Use the first Vulkan layer path
The loader will scan the current layer path once when the first valid
Vulkan command call is made.  To avoid confusions and data races, never
set the layer path more than once.

This assumes the first layer path to be the app's library search path,
which should be the case.

Bug: 29780602
Change-Id: Ibb9e4de95902ee89413d213d237ea4f62ea35b38
2016-06-29 07:09:21 +08:00
Rebecca Silberstein
0dbeb9e01a DO NOT MERGE StateMachine: remove final from SendMessage
Removed final from public sendMessage and sendMessageDelayed commands to
unblock unittest development.  This allows tests to verify calls to
sendMessage and sendMessageDelayed.

Also fixed one checkstyle error with import order.

BUG: 28593024
Change-Id: I26e02c3d75049d385ded7891c4fc9967273c27be
TEST: builds
TEST: runtest frameworks-wifi
2016-06-28 16:07:23 -07:00
Michael Kwan
785bc65bd0 Updated colour theme for watch devices.
Bug: 29472335
Change-Id: I5aec872250010a1636a22c70d3955f938f17571a
2016-06-28 16:02:58 -07:00
Rebecca Silberstein
b7d13d53bf DO NOT MERGE WifiManager: add WIFI_MODE_NO_LOCKS_HELD
(cherry-pick from master)

Add a WifiLock mode representing that no locks are held (@hide).

Bug: 28669096
Change-Id: I774d5ff226e7c639812f9735555c8ea1ed6444af
Test: compiles and runtest frameworks-wifi
2016-06-28 15:53:46 -07:00
Lajos Molnar
024005e5e4 media: clarify notes in MediaCodec doc
Bug: 23709311
Change-Id: I4af683a8f43db29fa5a777832a659a6c43a7a8d1
2016-06-28 15:50:21 -07:00
mukesh agrawal
6c7a90669b wifi: allow config of default+verbose ring buffers
Add the ability to set the size of ring buffers for
both logging modes (default and verbose).

BUG=29225988
TEST=manual

Manual test: add some logging statements to WifiLogger,
verify that the default ring buffer size is 32KB,
and that the verbose ring buffer size is 1024KB.

Change-Id: I4b7bc0da41ba66d15f8e2b6f3c3d6d615691d507
(cherry picked from commit 6ae111026c)
2016-06-28 22:41:30 +00:00
Lajos Molnar
a1df385e74 Merge \"media: document VP9 CSD for MediaCodec\" into nyc-dev
am: 1fe8871f04

Change-Id: I5f95ce25ee8099c556f04245291da8345df42584
2016-06-28 22:32:01 +00:00
Lajos Molnar
1fe8871f04 Merge "media: document VP9 CSD for MediaCodec" into nyc-dev 2016-06-28 22:27:53 +00:00
Lajos Molnar
eb6fac8029 Merge \"media: document rotation and scaling issues for MediaCodec\" into nyc-dev
am: af9d9f9b3e

Change-Id: Ie9d890df1b77c8fd79766e5ea329e5f8db4a94eb
2016-06-28 22:26:44 +00:00
Lajos Molnar
ac43565741 Merge \"media: document format keys for MediaExtractor/CodecCapabilities\" into nyc-dev
am: 556e012979

Change-Id: I248fbd3da8dd0376d724ca8aee7f8e71bfb260b0
2016-06-28 22:26:42 +00:00
Lajos Molnar
af9d9f9b3e Merge "media: document rotation and scaling issues for MediaCodec" into nyc-dev 2016-06-28 22:21:02 +00:00
Lajos Molnar
556e012979 Merge "media: document format keys for MediaExtractor/CodecCapabilities" into nyc-dev 2016-06-28 22:19:30 +00:00
Suprabh Shukla
f8c04cbe95 Enabling auto-ota in retail demo mode
Bug: 29542384
Change-Id: If7c94cf8a8e5851011f23dc5d64fc795f9a07b22
2016-06-28 14:38:29 -07:00
Oren Blasberg
9585012ce3 Merge \"Fix popup context menu appearing brokenly.\" into nyc-dev
am: 29ea814354

Change-Id: I1fdc4c75bf763a3e0c1411230e5a0cdc21ad882a
2016-06-28 21:20:02 +00:00
Oren Blasberg
29ea814354 Merge "Fix popup context menu appearing brokenly." into nyc-dev 2016-06-28 21:12:28 +00:00
Android Build Merger (Role)
b1400b142e Merge "Merge \"Remove redundant setPendingIntentWhitelistDuration() calls.\" into nyc-dev am: c1374208e3" into nyc-mr1-dev 2016-06-28 20:49:14 +00:00
Felipe Leme
1cec26c69e Merge \"Remove redundant setPendingIntentWhitelistDuration() calls.\" into nyc-dev
am: c1374208e3

Change-Id: Ie02a847ac513f89c1c430af0e3f559cf0bc2039d
2016-06-28 20:48:51 +00:00
TreeHugger Robot
23bc74a8d5 Merge "Define deprecated fields in IntDef's" into nyc-mr1-dev 2016-06-28 20:48:37 +00:00
TreeHugger Robot
c1374208e3 Merge "Remove redundant setPendingIntentWhitelistDuration() calls." into nyc-dev 2016-06-28 20:45:40 +00:00
Adrian Roos
4aad455280 Notification icons: Correctly apply color filter for DrawableContainers
Change-Id: I3d101c717c414786817c2139ed68a8ee3fd09241
Fixes: 29824236
2016-06-28 13:21:25 -07:00
TreeHugger Robot
9d07eed168 Merge "Show notification while PRE_BOOT receivers run." into nyc-mr1-dev 2016-06-28 20:18:59 +00:00
Oren Blasberg
0e8ce872f1 Fix popup context menu appearing brokenly.
Add missing attribute to the base Theme to ensure the context menu
does not appear completely invisibly.

Bug: 29796385
Change-Id: I4f50579622e97656e09a5ddb6e13313f84efc972
2016-06-28 12:41:30 -07:00
Alan Viverette
3c5a1c8124 Remove framework dependencies on Support* demos
Required on nyc-mr1-dev since support library branch was reset.

Change-Id: I5b3ba0e7a17ee5ccd93e97b3bd9c519cb8641d97
(cherry picked from commit 80bf1f8a3c)
2016-06-28 19:26:36 +00:00
Felipe Leme
ef5c3aad4d Merge \"Fixed whitelistManager set on unbindServiceLocked()\" into nyc-dev
am: 8d78c33c9b

Change-Id: I0339e6ae9261b1ebdd7bbed54540ca253b1b6fd9
2016-06-28 19:22:23 +00:00
Todd Kennedy
a1066ed6c2 Merge \"Default minSdkVersion to \'1\'\" into nyc-dev
am: a98e3e3ede

Change-Id: I8d2b7205f80b3cae5dce04839890df6aafa8449e
2016-06-28 19:16:40 +00:00
TreeHugger Robot
8d78c33c9b Merge "Fixed whitelistManager set on unbindServiceLocked()" into nyc-dev 2016-06-28 19:15:34 +00:00