Commit Graph

301953 Commits

Author SHA1 Message Date
TreeHugger Robot
84884684fe Merge "Some cleanups for window cropping functionality." 2016-11-30 00:24:16 +00:00
David Stevens
7cea0a05e5 Merge "Exit accessory mode after debounce timeout when necessary" 2016-11-30 00:23:05 +00:00
TreeHugger Robot
36f97300ac Merge "Require INSTALL_PACKAGES permission" 2016-11-30 00:14:35 +00:00
Anthony Hugh
f73d085395 DO NOT MERGE: Properly set FLAG_ACTIVITY_BROUGHT_TO_FRONT for onNewIntent() callback
It looks like there was a regression where #onNewIntent() was called
before the FLAG_ACTIVITY_BROUGHT_TO_FRONT flag was set.  This
change updates the code so we set the flag properly.

BUG: 33034247
Change-Id: I61959a289dc5af14ee9d3d7bfa213191238efc88
2016-11-30 00:00:15 +00:00
Steven Moreland
9893740dbc LightService: don't use implicit cast of Return<*>
Test: pass
Bug: 31348667
Change-Id: I9881bf1235bb775d92c119f1889d924aa4b0d292
2016-11-29 15:48:59 -08:00
Andreas Gampe
437474990d Preload2: Add sequence UI
Add a fake UI that can run a sequence of actions (and replies).

Bug: 31961946
Test: manual
Change-Id: Iee0fac5ddf75a97eff7b401c9c932634489349de
2016-11-29 15:22:02 -08:00
Matt Sarett
f58cc92066 Add overdraw debugging feature to Skia pipelines
Test: Compared to OpenGL pipeline and sanity checked
with understanding of the drawing pipeline.  Also
wrote a unit test.

BUG:32370375

Change-Id: Iab397d21f0def725fa89551d48c764c67fd2bda8
2016-11-29 18:03:40 -05:00
Adam Lesinski
ea7897954f Add --testdata flag for easier testing
Instead of hardcoding or assuming a path for testdata,
allow the testdata path to be specified via the command
line.
Test: make libandroidfw_tests

Change-Id: Ideae880b21c157b70a11bb5a90a94556771aead6
2016-11-29 15:01:15 -08:00
Jeff Sharkey
2683dd13aa Merge "Relax missing service check for normal apps." 2016-11-29 22:16:40 +00:00
Robert Carr
fbbde85b04 Some cleanups for window cropping functionality.
At a high level I had two sorts of goals:

1. To remove the weird pinned logic in setSurfaceBoundariesLocked
2. To seperate base crop calculation, and animation exceptions, between
   window state and window state animator.

Itemized changes are as follows:

1. Rename updateSurfaceWindowCrop and calculateSurfaceWindowCrop to
   applyCrop/calculateCrop. It doesn't feel that "SurfaceWindow" was
   adding much.
2. Split screen space and window space (final v non) clip rect
   computation, to make clarity about when each one should be used.
3. Eliminate weird case for pinned stack in setSurfaceBoundaries by
   building it in to calculateFinalClipRect.
4. Extract calculateSystemDecorRect to WindowState as it mostly accesses
   window members.
5. Extract part of calculateCrop to WindowState as
   "calculatePolicyCrop". This was the part that fills mSystemDecorRect.
6. Extract wallpaper animation logic outside of calculatePolicyCrop

Test: bit FrameworksServicesTests:com.android.server.wm.WindowFrameTests
Change-Id: I8ff1dc6ec1206a34994f50ba44d765ab619efbff
2016-11-29 13:15:48 -08:00
Selim Cinek
73c3bb1380 Merge "Fixed a crash when changing font scales" 2016-11-29 20:59:00 +00:00
George Mount
0c3ab75c6a Don't change visibility of fragment Views that aren't visible
Bug 32864127

When a fragment creates a view that is either invisible or gone,
it should remain that way. This means that the fragment won't have
any animations. When transactions are optimized, transitions
will avoid invisible and gone fragment views, but unoptimized
transactions will lead to failed transitions because none of the
views will be visible.

Test: Ie71902d1b5f5f647c758a1bd60cdfd6814cda29d
Change-Id: If952f81859227a28569d234d8232ff6bb100e74c
2016-11-29 12:43:05 -08:00
Kenny Guy
58feeac96b Merge "Allow overriding max profile in debugable builds." 2016-11-29 20:12:17 +00:00
David Stevens
049c718684 Exit accessory mode after debounce timeout when necessary
Change-Id: I1e7c1f4f31a310ff0369690a25859b33aaed14fc
Fixes: 29377436
Test: manual testing with 2011 ADK and multiple Android Auto headunits
2016-11-29 12:10:30 -08:00
Adam Lesinski
8fc495ed94 Merge "Fix CTS breakage in Context and Override configurations" 2016-11-29 20:07:38 +00:00
Adam Lesinski
c97019422e Fix CTS breakage in Context and Override configurations
The base Activity resources need to be created differently so that
other configuration contexts can be rebased properly.
Bug:33166230
Test: cts-tradefed run cts --module CtsAndroidAppTestCases --test android.app.cts.ApplyOverrideConfigurationTests

Change-Id: I86def4e2414dc366dd1d5cbc9104c5d0c06a4d61
2016-11-29 20:06:59 +00:00
Andrii Kulian
ca007a6284 Check if the display is attached when updating config
The display might not be added yet or be already detached when
config is updated.

Bug: 32983305
Test: android.media.cts.EncodeVirtualDisplayWithCompositionTest
Test: #testVirtualDisplayRecycles
Change-Id: I3b0e52e8ebb93a57ab6b0e80c0599db33ce2ae03
2016-11-29 12:03:08 -08:00
Jeff Sharkey
589f309909 Relax missing service check for normal apps.
The new missing-service behavior was mostly added for core system
components, so don't wtf() when normal apps ask for missing services.

Continue to emit one-line log for third-party apps so they know why
getSystemService() might be returning null.

Test: builds, boots
Bug: 33109365
Change-Id: I3a6118a3db570d796a26da5b8d63015b13e53a87
2016-11-29 12:56:59 -07:00
Selim Cinek
0e8d77e0ba Fixed a crash when changing font scales
The shelf doesn't need to be reinflated but should
reload its properties. Recreating lead to a bunch
of crashes.

Change-Id: I4628e0469f74c1a0201f7b1e6e86d187ad0e548d
Test: Change font size, observe no crash
Fixes: 33189282
2016-11-29 19:35:02 +00:00
Filip Pavlis
db234ef0ac Adds keyword "default" to the API-linter.
This will fix issue when linting Java 8 default methods on interfaces,
e.g. Ie46a876dcb14b46b8b2584735c106c25655ec6cf.

Test: Manualy tried that the linter no longer gives the error.

Change-Id: I68ade6ba6401439667408076a5454caef77ef72d
2016-11-29 19:21:21 +00:00
TreeHugger Robot
6a022fe327 Merge "Import translations. DO NOT MERGE" 2016-11-29 19:21:02 +00:00
TreeHugger Robot
1ac77c4fc4 Merge "Import translations. DO NOT MERGE" 2016-11-29 18:55:12 +00:00
Pankaj Kanwar
5ffbb69cca Merge "Allow Carriers to specify Wifi Networks." 2016-11-29 18:53:23 +00:00
George Mount
1dddc057ec Merge "Use transparent instead of null background during Activity Transitions" 2016-11-29 18:26:51 +00:00
TreeHugger Robot
df68c9119c Merge "Make LD stateful / opacity management look more like DC" 2016-11-29 18:05:39 +00:00
Philip P. Moltmann
6fc01e0483 Merge "Create actions for permission and log revokations" 2016-11-29 17:46:32 +00:00
TreeHugger Robot
0884abb8ff Merge "Revert "Yet another interface that should be oneway."" 2016-11-29 17:38:37 +00:00
TreeHugger Robot
d738d1beab Merge "Fix hwui compile error only seen with debug switch." 2016-11-29 17:22:42 +00:00
Victor Chang
e061a79041 Merge "Add EXTRA_PROVISIONING_SKIP_USER_CONSENT" 2016-11-29 17:15:55 +00:00
Jorim Jaggi
fd97505fe9 Let lock icon reappear after fingerprint draw off am: f6103695f8
am: a034e7b47e

Change-Id: Ia2498fe32cca8d0e0e419293806f5759d018228e
2016-11-29 16:57:49 +00:00
Jorim Jaggi
a034e7b47e Let lock icon reappear after fingerprint draw off
am: f6103695f8

Change-Id: I4164417babaea46cce421d82530597b6e743e34b
2016-11-29 16:52:20 +00:00
Michal Karpinski
69beada2b5 Merge "Fix Lint errors for network logging API" 2016-11-29 16:42:42 +00:00
TreeHugger Robot
26b4494808 Merge "Improve "Try again in 1 seconds" behavior in lockscreen" 2016-11-29 16:41:10 +00:00
Filip Pavlis
0b0c6cbdaf Adds data store to provide data abstracion layer for Preferences.
Developers will be able to use PreferenceDataStore to replace default
SharedPreferences to store / retrieve the data.

Test: Separate CTS CL being submitted along this one, see the topic.

Change-Id: Ie46a876dcb14b46b8b2584735c106c25655ec6cf
2016-11-29 16:15:07 +00:00
TreeHugger Robot
b57bd791bf Merge "Add user affiliation APIs" 2016-11-29 16:09:10 +00:00
Robert Sesek
c5f86647b1 Add new hostingType for startProcessLocked() that selects using the WebViewZygote.
Test: m
Test: angler boots
Test: Turn on Multiprocess WebView in Developer Options and launch the WebView
      Shell. The sandboxed_service parent process is the webview_zygote.

Bug: 21643067
Change-Id: I9dab548853372fd91f6bbe204cc8686ef2e94448
2016-11-29 11:08:49 -05:00
Jeff Sharkey
0cfd60888d Revert "Yet another interface that should be oneway."
This reverts commit 55079a9ec2.

Change-Id: Id6d46d2ac2698068b8c78e03c15a4f2047f97e20
2016-11-29 15:41:39 +00:00
George Mount
96eb6ca719 Use transparent instead of null background during Activity Transitions
Bug 32952142

When doing activity transitions, a window is temporarily translucent
during the transition. When a view hierarchy completely covers the
window, the background is never seen and applications can use a
null background to avoid overdraw. However, during the activity
transition, the underlying activity is seen during the transition.
With a null background, the buffer isn't properly cleared and
the uncleared buffer will show strange effects.

This CL forces a transparent background temporarily during the
activity transition to avoid this problem.

Test: manual testing using test application

Change-Id: I63f24dba3c2f810944bcbf07faf309f9f1c5889a
2016-11-29 07:33:14 -08:00
Paul Duffin
10a9bd905c Merge "Use junit-host instead of junit" am: 6063357ae6 am: 6fc0c5ceca am: 32317b3c8d
am: 29bf88aca9

Change-Id: I2f75d5e80d9baa411e7816958d4a6d6d220d0ba9
2016-11-29 15:31:57 +00:00
Paul Duffin
29bf88aca9 Merge "Use junit-host instead of junit" am: 6063357ae6 am: 6fc0c5ceca
am: 32317b3c8d

Change-Id: I2365d6d5f6f93f681cf1277df8356452b0c0f0f3
2016-11-29 15:26:50 +00:00
Paul Duffin
32317b3c8d Merge "Use junit-host instead of junit" am: 6063357ae6
am: 6fc0c5ceca

Change-Id: I107a1e13e3442113c8a92590156ad9362c3a12bb
2016-11-29 15:21:52 +00:00
Paul Duffin
6fc0c5ceca Merge "Use junit-host instead of junit"
am: 6063357ae6

Change-Id: I6522cedeb522fa01530d4f31b6505b4d4c265312
2016-11-29 15:12:46 +00:00
Jorim Jaggi
f6103695f8 Let lock icon reappear after fingerprint draw off
Test: Unlock with fingerprint, observe icon
Test: Unlock with fingerprint while collapsing panel, make sure
icon reappears after 800ms.

Change-Id: I8b081445bdaaa68741e4bab57a6f79f6e12f1d54
Fixes: 30507748
(cherry picked from commit 8dea48c87e)
2016-11-29 15:05:18 +00:00
Paul Duffin
e20f193a8c Add legacy-test as replacement for core-junit
Statically includes core-junit-static into legacy-test target so
that legacy-test can be used in place of core-test. Once that
switch over has been done then android.test classes that are
being removed from the public API can be safely moved into here.

Bug: 30188076
Test: make legacy-test and check contents of generated legacy-test artifacts

Change-Id: I75488303067c4ac34c46279bfce9a51273adcc34
2016-11-29 15:04:00 +00:00
Paul Duffin
6063357ae6 Merge "Use junit-host instead of junit" 2016-11-29 15:01:32 +00:00
TreeHugger Robot
5ba211a6b8 Merge "Let lock icon reappear after fingerprint draw off" 2016-11-29 14:53:50 +00:00
Android Build Merger (Role)
4c7b252d85 Merge "Merge "[AM] Fix system server may killed when monkey crash." am: 21ed56daac am: ef4267e53a am: e2ccdd9d93 am: fe9e70db6f" 2016-11-29 14:53:27 +00:00
Mike Reed
338da9c8f9 Merge "SkCanvas is no longer reference-counted" 2016-11-29 14:52:49 +00:00
Mark Lu
b866006143 Merge "[AM] Fix system server may killed when monkey crash." am: 21ed56daac am: ef4267e53a am: e2ccdd9d93
am: fe9e70db6f

Change-Id: Ibd65beb3ba4968eac43b2255e8a3ffcb8d6976f9
2016-11-29 14:52:49 +00:00
Paul Duffin
4a064d2010 Use junit-host instead of junit
Bug: 30188076
Test: make checkbuild
Change-Id: I3496b9d7e40abf7712a56ba633a2becd0aa17c06
2016-11-29 14:52:42 +00:00