223050 Commits

Author SHA1 Message Date
Bryce Lee
155a44cee0 Merge "DO NOT MERGE ANYWHERE" into cw-e-dev am: 085796bdf5 -s ours am: 4ecf963e77 -s ours
am: 8f95fe4b71  -s ours

* commit '8f95fe4b71b54ee920d71b6b689b0e7f53994f00':
  DO NOT MERGE ANYWHERE
2015-12-01 15:57:07 +00:00
Bryce Lee
8f95fe4b71 Merge "DO NOT MERGE ANYWHERE" into cw-e-dev am: 085796bdf5 -s ours
am: 4ecf963e77  -s ours

* commit '4ecf963e770e0226c3fcef509ff5d7fb6c31ed0b':
  DO NOT MERGE ANYWHERE
2015-12-01 15:50:14 +00:00
Bryce Lee
4ecf963e77 Merge "DO NOT MERGE ANYWHERE" into cw-e-dev
am: 085796bdf5  -s ours

* commit '085796bdf5e106abd42db2d0ef7d3aee899a766b':
  DO NOT MERGE ANYWHERE
2015-12-01 15:43:15 +00:00
Bryce Lee
085796bdf5 Merge "DO NOT MERGE ANYWHERE" into cw-e-dev 2015-12-01 15:37:30 +00:00
Wale Ogunwale
56b88afcbd Add bounds information to stack/task WM dump
Change-Id: I01b0bf1feb2412f9ce73b2317ba6a56b48bc1a97
2015-12-01 07:24:14 -08:00
George Mount
408d9b17c5 Merge "Choose the correct Fragment to pull a Transiton from." 2015-12-01 15:19:56 +00:00
George Mount
266b658e6d Merge "Give transitioning fragment a context prior to retrieving transition" 2015-12-01 15:19:27 +00:00
Diego Perez
956cad8870 Add support for Choreographer animations
am: 29ed07524c

* commit '29ed07524ce0fc2e5950f5340d306247145d0efa':
  Add support for Choreographer animations
2015-12-01 10:38:17 +00:00
Abodunrinwa Toki
fc6e25ef6e TextView tests to check that selection handles appear on selection
Bug: 25730231
Change-Id: I66e44b6375e1a76e8537fca5dc5090ff841cc934
2015-12-01 10:36:51 +00:00
Diego Perez
29ed07524c Add support for Choreographer animations
First step to add support for Choreographer based animations. The
Choreographer_Delegate avoid using a handler so the animation callbacks
can be called on-demand (by using doFrame). This allows things like
frame by frame animation or selecting a specific frame, and doesn't need
a separate thread to run.

The CL also changes the System and SystemClock implementations to allow
to set specific times. Because animations heavily rely on the system
time, this allows controlling it. It can also be useful to ensure that
the rendering produces a deterministic result when using controls like
the Calendar widget.

Change-Id: Iff221d2698a82075cafbb60f341be01741f7aa13
2015-12-01 10:14:52 +00:00
Przemyslaw Szczepaniak
ef3dc06bfb Merge "Move StrictJarFile from libcore to framework" 2015-12-01 10:02:43 +00:00
Daichi Hirono
1b8f619480 Merge "Handle Android M as a MTP device in MtpManagerTest." 2015-12-01 07:42:12 +00:00
Daichi Hirono
f26af124e3 Handle Android M as a MTP device in MtpManagerTest.
MtpManagerTest uses real MTP device to test functionallity, but
previously it did not handle Android M's USB client behavior.

BUG=25939006

Change-Id: I53fa8c08c41c3adacf85f24694afdea5ec0781ca
2015-12-01 15:58:29 +09:00
Jani Suonpera
ad75169628 DO NOT MERGE ANYWHERE Add new interface for sensor physical data
This is special solution only for emerald branch.

Changes including new const char* value/interface for sensor physical data. Sensor service and manager does not take care of content, structure or other
details of string. Sensor HAL is taking care of parsing data from string and setting values to Sensor HW.

Change-Id: Id19226d7d3ac0628488a0f005f2b1c44bafcf9b6
Signed-off-by: Ben Fennema <fennema@google.com>
2015-11-30 21:24:48 -08:00
Insun Kang
30be970a8e MediaSession: Improve MediaSessionStack logic
There was an issue that media button events (play / pause) didn’t go
to the expected media session. If an app creates a media session during
all media sessions are paused, the next coming media play event is
consumed by the newly created media session. It makes sense in general,
but if the media session is created in a background process without any
visible UI, it causes unexpected results.

This patch resolves the issue by checking if a newly added session comes
from the most recent user-facing app.

Bug: 24990104
Change-Id: Ic9632bced37bffd28260afe3523d9a20ea4d3c21
2015-12-01 04:39:11 +00:00
Lorenzo Colitti
10373488f0 Merge "Don't show "Connected, no Internet" any longer than necessary." 2015-12-01 03:24:08 +00:00
Robert Carr
353ad63fe1 Ensure we update window scale when repositioning child.
In repositionChild we need to ensure we update the window scale
if the layout dimensions change without changing the surface size.
If we are doing such it seems to make more sense to update
the layout params than the window frame.

Bug: 25791641
Change-Id: I24ab0011936acb45e6cdf60af52edc8d9419d91e
2015-11-30 18:11:02 -08:00
Selim Cinek
038d3ae188 Finetunes parts of the notification templates
The header wasn’t positioned perfectly before

Change-Id: If3c0ea0eb7da7307d1bef7cd8036d4118243a1f1
2015-11-30 17:46:21 -08:00
Selim Cinek
d222ed60d5 Fixed the templates for the notifcation actions
Change-Id: Iac6296cc487a61e1601facb4603a7d96923d490f
2015-11-30 17:46:21 -08:00
Selim Cinek
5a175d9d54 Fixed a bug where the notification icon would stop animating
For notification children, the notification header or when updated
the notification icon would sometimes stop animating.
This is now fixed.

Change-Id: Id8ed4e1c548cd1cf4d5ea18b8e4084a376998c14
2015-11-30 17:46:21 -08:00
Selim Cinek
8fc93c9083 Cleaned up the updating of notifications
Some states were not correctly updated which could lead to
small bugs when the update was not in-place.

Change-Id: If133029acf65a9af8d297314fee5f1cd9e2015bd
2015-11-30 17:46:21 -08:00
Selim Cinek
eaa29ca6ff Migrated the systemUI based notification header
Previously the notification header had a seperate implementation
in SystemUI from which the platform implementation was derived.
Now that everything is in the framework, we’re migrating the
implementation for notification groups.ß

Change-Id: Ia61a75bd6c85e1805d4364a9e7e4587a020c1271
2015-11-30 17:46:21 -08:00
Selim Cinek
aef6c76f76 Migrated the onTouchListener of the header to its view
In order to ensure reusability and separate inflation,
the expand touch listener is now moved to its view.

Change-Id: I363fc4ae2c68833dc9f1258398ec9ad3bf44dc7f
2015-11-30 17:45:15 -08:00
Selim Cinek
1e0bf611b1 Fixed the inbox line padding with an image
If an image was present, the first line of the
Inbox style could run into the image. This Is fixed
now.

Change-Id: I60ee22166a2dc1d2de2f1fe311effc419a95748d
2015-11-30 17:45:15 -08:00
Selim Cinek
75fe38c517 Added the dozemode for the new notification templates
Previously things were not correctly inverted when dozing,
because of the new template design.

Change-Id: I05211a463c4c7aa3bcba669506975844c389097b
2015-11-30 17:45:15 -08:00
Selim Cinek
4fb12d3f8e Made the bigtext now nicely float around the image
If there is an image instead of applying the same
margin everywhere, the text now floats around the
image.

Change-Id: I87f9ca9f51fb270b0732a99374544381bd1fc4e0
2015-11-30 17:45:15 -08:00
Selim Cinek
816c8e4735 Legacy custom views now get properly layed out again
Since the minheight grew, all notifications grew.
Legacy custom notifications need to stay the same
height though.

Change-Id: I469c448014c3d3c31526466d06a60ac44838b274
2015-11-30 17:45:15 -08:00
Selim Cinek
90dcf6d706 Implemented the progressbar for the new templates
The padding was off in a few cases and the layout
was jumping when expanding when there were actions

Change-Id: Ia9a9ddbfd1c9a8104278a56ce6e1ef2a4ceafbe9
2015-11-30 17:45:15 -08:00
Selim Cinek
29603462d6 Continued implementing the notification templates
The progressbar is now also adapted to always have
at most 2 lines.

Change-Id: I092cf2fdfbbd474288398106309ad2ca85b7054b
2015-11-30 17:45:15 -08:00
Selim Cinek
5f71bee3a8 Determining the number of keyguard notifications dynamically
Instead of having a fixed number, we are now calculating the number
dynamically based on the available notifications.
This is necessary since notifications might have different sizes now.

Change-Id: I0cbe9b1c5fd731a89c242202846f42bec3fc57eb
2015-11-30 17:45:15 -08:00
Selim Cinek
177fd4324a Fixed a bug where the notifications could get scrolled on keyguard
When dragging down due to falsing, the scrollposition could
become modified and never reset again.

Change-Id: I15d24dc8a5a3302faeaf30fb20a81d77dcceb059
2015-11-30 17:45:15 -08:00
Selim Cinek
53e64a438f Adapted the big picture template
Change-Id: Ia66c5f12a8688b2f0c6ea51fb8dbdefc39f62f8f
2015-11-30 17:45:15 -08:00
Selim Cinek
03d0d65918 Made the subtexts consistent among expanded / collapsed version
To ensure that the position of the expandbutton stays.

Change-Id: I02078fed1a2b31ff6e3b0f9b2db3c4e2844acd09
2015-11-30 17:45:15 -08:00
Selim Cinek
9d9fc6e97e Improved notification templates further
Inbox and bigtext style are adapted.

Change-Id: I85b33f7387a2bde46fc73d2bc82538d6d13f0a70
2015-11-30 17:45:15 -08:00
Selim Cinek
850a854c0c Switched the expanded button of the big content view
Previously it was always the same.

Change-Id: Iebfbf6203241356d5acdfa5b16b02f976c8ce310
2015-11-30 17:45:15 -08:00
Selim Cinek
90c8f47a03 Adapted the layout for when the header would overflow
Now first the App name shrinks up to a minumum and then
the subtext shrinks. This way the expand button is always
visible.

Change-Id: Ibda8e9efbac7119cc31ce4c129be33a7a192f974
2015-11-30 17:45:15 -08:00
Selim Cinek
5bf069a0f2 Updated the media notification template
The media notification now lives in the new world
with the appropriate notification header.

Change-Id: Ifed0f12e4925e27a303f6f01faa2e9c17262d486
2015-11-30 17:45:15 -08:00
Selim Cinek
65b2e7c6cb Update the notification templates
Most of the notification templates have been updated.
Some cases like media notifications don't yet work well
but will be fixed in a later CL.

Bug: 25376106
Change-Id: I26c366e58ebba3852cea20de6fca311bd302bb24
2015-11-30 17:45:15 -08:00
Fyodor Kupolov
e04462caa4 Correctly set default restrictions when creating guest
Use restrictions from mGuestRestrictions when creating a guest. Initially
phone calls, SMS and installing from unknown sources is not allowed.

Bug: 25904144
Bug: 25729516
Change-Id: I461c492ad64842d3707f73dfd83b533aa31b63ef
2015-11-30 17:22:20 -08:00
Chad Brubaker
d3af962081 Expose findTrustAnchorBySubjectAndPublicKey
This allows for faster lookups of TrustAnchors when checking pin
overrides without needing to iterate over all certificates.

Currently only the system and user trusted certificate store are
optimized to avoid reading the entire source before doing the trust
anchor lookup, improvements to the resource source will come in a later
commit.

This also refactors System/UserCertificateSource to avoid code
duplication.

Change-Id: Ice00c5e047140f3d102306937556b761faaf0d0e
2015-11-30 17:20:00 -08:00
Winson Chung
ef695936f6 Merge "Fixing several bugs." 2015-12-01 01:19:41 +00:00
Jorim Jaggi
c4d81e530f Merge "Don't animate when moving task to stack if not requested" 2015-12-01 01:17:19 +00:00
Jeff Sharkey
18201f89ee Merge "API to create SharedPreferences from File." 2015-12-01 01:03:39 +00:00
Winson
37fc513d01 Fixing several bugs.
- Prevent long pressing to drag when a task is already docked
- Ensure that the history button has a bit of background protection
- When fast-toggling, the second tap should actually activate the 
  second task and not the third
- Align the history view with the stack view
- Fixing regression launching affiliated tasks

Bug: 25931916

Change-Id: I9d74d0d2427ea0b11f4817d0e635013065e3a792
2015-11-30 17:02:46 -08:00
Jeff Sharkey
8fc29cf105 API to create SharedPreferences from File.
Needed to support storage of SharedPreferences on both credential-
encrypted and device-encrypted storage paths.

Bug: 22358539
Change-Id: I576b696951b2a9de817d5be63d31b06f7e166a19
2015-11-30 18:01:20 -07:00
John Reck
2b0ebb3d5d Tweak AsyncTask#THREAD_POOL_EXECUTOR settings
Bug: 24821101
Bug: 23722178
Change-Id: I73741eb4f812e754d5823b27efec98fca9938329
2015-11-30 16:39:09 -08:00
Tom Taylor
2be1b0e975 TRON: log changes to the default SMS app
Bug 25929677

Add a constant for logging the action when a user changes the default
SMS app.

Change-Id: If0b0919f795390e98c33bcac849614c07ef1442f
2015-11-30 16:29:17 -08:00
Jeff Sharkey
96b2da271f Merge "Wire up lifecycle, send unlocked broadcast." 2015-12-01 00:13:00 +00:00
Jeff Sharkey
8924e8759f Wire up lifecycle, send unlocked broadcast.
When the correct lock pattern is presented, ask the system to also
unlock credential-encrypted storage, if enabled.  The token passed
along is empty for now, but can be wired up to gatekeeper in the
future.

During each system boot, ask vold to lock all users keys to give us
a known starting state.  This also has the effect of chmod'ing away
any CE data when in emulation mode.

Define and send a new foreground broadcast when the CE storage is
unlocked for the first time.  Add stronger last-ditch checking for
encryption-awareness before starting an app.

Bug: 22358539
Change-Id: Id1f1bece96a2b4e6f061214d565d51c7396ab521
2015-11-30 17:07:54 -07:00
Filip Gruszczynski
9a3f84ced7 Merge "Remove dock divider surface when it's not visible." 2015-11-30 23:37:02 +00:00