223147 Commits

Author SHA1 Message Date
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
Lifu Tang
1f3341de8b Merge "Remembers previous location mode when location off" 2015-11-30 23:23:55 +00:00
Filip Gruszczynski
64cdc1458b Remove dock divider surface when it's not visible.
We achieve the removal by notifying System UI about the visibility of
the dock divider. This way System UI can change visibility of the root
view, which in turn will cause the WMS to destroy or create the surface
as necessary.

Bug: 25844096
Bug: 25683717

Change-Id: Idbc33368db697a059af49106dfadb80c3d7d06c1
2015-11-30 15:21:48 -08:00
Adam Lesinski
7fc76b17e3 Merge "Implement AAPT Bundle format" 2015-11-30 23:20:25 +00:00
Winson Chung
963c0a0b6c Merge "Improving drag and drop" 2015-11-30 23:02:14 +00:00
Felipe Leme
10d73a55af Merge "Created a new bug report workflow so user can keep track of its progress." 2015-11-30 23:01:04 +00:00
Tom Taylor
5a1c7e975f Merge "Add two new intents" 2015-11-30 23:00:11 +00:00
John Reck
c34f1b093f Fix RippleDrawable exit animation
Bug: 25602850

The exit-out animation doesn't want to animate from the current
value, but rather the final value of the exit-in animation

Change-Id: I1cd12b0653b5241c6e21ef1cca86b0a83ce9c5a2
2015-11-30 14:47:59 -08:00
Adam Lesinski
07dfd2d864 Implement AAPT Bundle format
AAPT will scan XML files looking for the <aapt:attr> XML tag.

<!-- @layout/bundle.xml -->
<ImageView xmlns:aapt="http://schemas.android.com/aapt">
  <aapt:attr name="android:src">
    <vector android:pathData="..." ...>
    </vector>
  </aapt:attr>
</ImageView>

The SINGLE child element of the <aapt:attr> tag is extracted into its own top
level resource. It is given a generated name.

The parent element of <aapt:attr> is then given the resource attribute that was assigned
to the `name' attribute. The value is set to a reference to the generated resource.

<!-- @layout/bundle.xml -->
<ImageView android:src="@drawable/bundle_1.xml">
</ImageView>

<!-- @layout/bundle_1.xml -->
<vector android:pathData="..." ...>
</vector>

Bug:22627686
Change-Id: I8575fc4f739011402662fbf6b3db96df0012f598
2015-11-30 14:43:43 -08:00
Phil Weaver
14ed6cf3e7 Ignore feedbackType in AccessibilityEvent dispatch
Send AccessibilityEvents to all accessibility services
that request them. No longer refuse to send them to
services with the same feedback type.

Change-Id: I137905c24fc75c075ab938175ecb6ea5f39112cf
2015-11-30 14:36:34 -08:00
Chien-Yu Chen
2829e99660 Merge "Add and copy video stop sound" 2015-11-30 21:47:54 +00:00