222967 Commits

Author SHA1 Message Date
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
Tom Taylor
3589230400 Add two new intents
One intent notifies the new and previous default sms app when the user
changes which app is the default sms app. The second intent is sent to the
default sms app when some other white-listed app, such as Android Auto or
the phone, modifies the Telephony db behind the default sms app's back.

Change-Id: Iee1e1c4a4c299846f382bd8247c295cf7aaa040e
2015-11-30 13:45:57 -08:00
Adam Lesinski
ebb3a76396 Merge "Revert "Implement AAPT Bundle format"" 2015-11-30 21:08:00 +00:00
Adam Lesinski
5b9847ca3f Revert "Implement AAPT Bundle format"
This reverts commit 9d0f7d44d5cc5322415f52f7ce03cc37a478b350.

Caused a build breakage when parsing some attributes.

Change-Id: I89ca958b2f2e820d353648df8aadd90bbe8d8339
2015-11-30 21:07:44 +00:00
Raph Levien
f9b40659e6 Merge "Always invalidate TextView on checkForRelayout" 2015-11-30 21:07:07 +00:00
Alan Viverette
5ac42c92fa Always invalidate TextView on checkForRelayout
Previously we would check whether relayout was required and optionally
invalidate; however, with partial layout we leave this work for the
makeNewLayout() method. We still need to manually invalidate, though,
since makeNewLayout() does not handle invalidation.

Bug: 25857300
Change-Id: I81ef9062c9fb4964d5e42a3562e6c782492ad65f
2015-11-30 13:03:00 -08:00
Jason Monk
dfcd4c141b Merge "Guard against monkey crash" 2015-11-30 20:11:00 +00:00
Jason Monk
3175a6e395 Guard against monkey crash
Bug: 25795998
Change-Id: I351faae1e29d09b7577435207ec466a1ff5ed237
2015-11-30 15:07:40 -05:00
Adam Lesinski
be107f46cf Merge "Implement AAPT Bundle format" 2015-11-30 19:51:53 +00:00
Adam Lesinski
2a0dd0e1e3 Merge "AAPT2: Support compiling a res/ directory and output to zip" 2015-11-30 19:30:48 +00:00
Bryce Lee
842ec9c407 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev am: 52bdf11583 am: b241487c16 am: 64e41590d2
am: 0ca7de9031

* commit '0ca7de90310034d118f21343a69a38ebc02dd0bc':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 19:17:53 +00:00
Adam Lesinski
a40e972fda AAPT2: Support compiling a res/ directory and output to zip
This allows us to compile an entire directory and output to a single
file. This is important to support generated resources in the make
build, since we may not know what resources get generated.

The link step will accept the zip and read the contents of it as if they
were passed in on the command line.

Change-Id: If1a51b0abe772350c24074353eb4989953c2e0cb
2015-11-30 11:14:01 -08:00
Bryce Lee
0ca7de9031 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev am: 52bdf11583 am: b241487c16
am: 64e41590d2

* commit '64e41590d246cf1fc548b72d40436bcd2fca7b06':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 19:09:17 +00:00
Chong Zhang
fc19f14ecc Merge "Show all windows with FLAG_SHOW_WHEN_LOCKED over lock screen if" 2015-11-30 19:03:47 +00:00
Bryce Lee
64e41590d2 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev am: 52bdf11583
am: b241487c16

* commit 'b241487c16976a3f0aa6592740bba15f489eab17':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 19:02:38 +00:00
George Mount
fbaa14bc35 Choose the correct Fragment to pull a Transiton from.
Bug 25375640

When popping multiple back stacks or replacing multiple times
within a transaction, the wrong fragment could have been
chosen. This normally occured when one of the Fragments had
a null Transition.

Change-Id: Ic2c842d9228ee7d26bf067016cb3f307bdf92991
2015-11-30 10:58:37 -08:00
Bryce Lee
b241487c16 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev
am: 52bdf11583

* commit '52bdf11583366322ca14d69b895ac451a71245db':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 18:56:27 +00:00
George Mount
2b2d23aa70 Give transitioning fragment a context prior to retrieving transition
Bug 23688972

An incoming fragment that is going to execute a transition may
need to have a context in order to load the transition. This
CL moves the state of incoming fragments to CREATED prior to
getting their Transitions.

Change-Id: I08b8cda479f7542fb326aa4f0f62a07ccc5662b0
2015-11-30 10:55:20 -08:00
Bryce Lee
52bdf11583 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev 2015-11-30 18:51:39 +00:00
Filip Gruszczynski
1223c198e4 Merge "Remove unnecessary field from AppWindowToken." 2015-11-30 18:38:44 +00:00
Erik Wolsheimer
98fe08fec1 fix data race condition BUG: 25819358 am: 2242b4d2bd am: 1dbb0355dc am: 1d92c4538f
am: 48543000e0

* commit '48543000e0417213b227b1047a83eb7d8528ff35':
  fix data race condition BUG: 25819358
2015-11-30 17:43:39 +00:00