Commit Graph

253881 Commits

Author SHA1 Message Date
Hemal Patel
a8e1c75bf6 Docs: Fixed the link that loads Fragments guide
In the class description, fixed the reference link that points to the
Fragments guide.

Bug: 29007808
Change-Id: I3399e5f10c461eb6666a04f8829c6cde774948e0
2016-08-08 16:43:22 -07:00
Kevin Hufnagle
87c2ed97b8 Merge "docs: Revised "Optimizing Content for the Assistant" page." into nyc-dev 2016-08-08 23:35:27 +00:00
Christopher Tate
dd7110db2b Handle empty/unspecified crop properly in wallpaper restore
Pass 'null' as the crop hint when the crop as expressed in the restored
wallpaper metadata is either unspecified or effectively empty.

Bug 30521402
Bug 30274136

Change-Id: I14e5d2bae1ec30fb27e8fd45b340b2ca87f35a01
2016-08-08 16:15:52 -07:00
TreeHugger Robot
369c6ebf02 Merge "ShortcutManager improve app udpate check" into nyc-mr1-dev 2016-08-08 23:01:43 +00:00
Mark Lu
66847abba6 docs: fixed generics in data binding code samples am: b1b5efd3be
am: 7f703bde72

Change-Id: Ibc12639849de4edcbcfdaa1c0f543d6f2eb868f8
2016-08-08 23:00:09 +00:00
TreeHugger Robot
6cb5152e9f Merge "Fix bug where foreground activity fails to cancel auth/enrollment" into nyc-mr1-dev 2016-08-08 22:55:06 +00:00
Mark Lu
325399bfb9 Merge "docs: add info to SharedPreferences.Editor.putString" into nyc-dev
am: a6ee9c1848

Change-Id: Ief38c0b6b1b61e8fcc060224c298fb3a4711cc94
2016-08-08 22:49:11 +00:00
Mark Lu
9bc63b9bf0 docs: add info to SharedPreferences.Editor.putString
am: fb48521f41

Change-Id: I948c8091a70180e29a601d6cba40d7fb0cf2d76a
2016-08-08 22:49:08 +00:00
Mark Lu
7f703bde72 docs: fixed generics in data binding code samples
am: b1b5efd3be

Change-Id: Iecafea06866a4579824435467c5dd31859c0dbd4
2016-08-08 22:37:19 +00:00
Mark Lu
95698f127a docs: fix code snippets in SQL Databases page
In the "Saving Data in SQL Databases" page, this commit makes the
following updates:
-the create snippet now includes the subtitle column
-the insert and query snippets no longer references undefined variables
-the delete snippet now references the table with "FeedEntry.TABLE_NAME"

Bug: 25856493
Change-Id: I4fdf8e271a1141776c2427c0b3fef8ec403dc423
2016-08-08 15:35:57 -07:00
Winson Chung
d983386c31 Merge "Reverting ag/1288123" into nyc-mr1-dev 2016-08-08 22:34:00 +00:00
Mark Lu
a6ee9c1848 Merge "docs: add info to SharedPreferences.Editor.putString" into nyc-dev 2016-08-08 22:26:36 +00:00
Selim Cinek
9bfba9c157 Made background updater more robust to state changes
With raceconditions, the background of notifications could
become colored when dozing.

Change-Id: Ib39f873e6dce40e97a8df06dec281733a8ae2fd9
Fixes: 29331596
2016-08-08 15:20:06 -07:00
Chris Craik
3c53ec51ef Prevent EndLayerOps when Begin was rejected
bug:30537130

BeginLayerOps were being rejected in a way that allowed the associated
EndLayerOps to still be recorded. This was a violation of DisplayList
content expectations, and caused crashes in FrameBuilder when trying to
play these DisplayLists back.

Change-Id: I531b840aa5c4ffb1ee458da3f4b366978eaeafbe
2016-08-08 15:15:58 -07:00
John Reck
8bcd5bc5b0 Merge "Fix currentAnimationTimeMillis to use vsync time" into nyc-mr1-dev 2016-08-08 21:49:04 +00:00
Makoto Onuki
64183d5188 ShortcutManager improve app udpate check
- Don't use lastUpdateTime for system apps since it's not reliable.

- Scan downgraded apps too.

Bug 30708050
Bug 30734178
Change-Id: I98253f4c635466197548385275ab08c5e3a1a10b
2016-08-08 14:40:32 -07:00
Doris Liu
a5dc817c75 Merge "Fix infinite AVD not running" into nyc-mr1-dev 2016-08-08 21:03:52 +00:00
Robert Carr
798fb79866 PopupWindow: Be more consistent about Gravity calculation.
Currently we are only appending the DISPLAY_CLIP_VERTICAL
if the API user happens to call update() after showAsDropDown().
This fixes that behavior, and fixes a RTL issue (START v. LEFT).
Unblocks a CTS test I am working on.

Bug: 30578621
Change-Id: Ibf838544d453986b66eb223e2ac0f7d909fe5630
(cherry picked from commit 8367c50972)
2016-08-08 20:35:17 +00:00
Geoffrey Pitsch
305087991d BootAnimation system property to play sound.
Optional system property "persist.sys.bootanim.play_sound"
If nonexistent, default behavior plays the sound.

Bug: 30690353
Change-Id: Ie5ed456d891632be5ec8be255ac7c1193753c741
2016-08-08 16:18:21 -04:00
Julia Reynolds
67abc837af Merge "Restore padding." into nyc-mr1-dev 2016-08-08 20:05:53 +00:00
Hemal Patel
86bbfaabdd Docs: Renamed Google Now to Google Voice Actions
This commit contains the following changes:
- Renamed instances of Google Now to Google Voice Actions
- Removed the Intents fired by Google Now section as it is obselete
- Added link to the Google Voice Actions page
- Changed the voice-icon.png's reference link to the System Actions reference
  section on the Google Voice Actions page
- Revised the HTML comment and local CSS by replacing Google Now box with
  Google Voice Actions box.

Bug: 19501778
Change-Id: I3e4364aaceaff4f5bceb090dd4f8da548dfa5c30
2016-08-08 13:05:42 -07:00
Dianne Hackborn
154cc8237b Merge "Have BatteryStats track and report the running wakelocks." into nyc-mr1-dev 2016-08-08 19:58:57 +00:00
Doris Liu
18e08a0170 Fix infinite AVD not running
This CL fixed an integer overflow error caused by using integer literal
when it should be a float literal that defines a double.

BUG:30739855
Change-Id: If2bdb0eb7a2e93d28434bfe72ec11e8f1f2a1eda
2016-08-08 19:57:34 +00:00
Julia Reynolds
eded2fcf7a Restore padding.
Change-Id: I532e5007c2a9152554b8f5130196a2f0cb3c8f1e
Fixes: 30738806
2016-08-08 19:48:48 +00:00
Selim Cinek
5a3e33a82a Merge changes Idc4c2c14,Ibea016c6,I49ab58c3,Id911d405,I0f17dc5f, ... into nyc-mr1-dev
* changes:
  Improved the transition when clicking on the last notification
  Fixed a bug that could lead to an empty notification
  Removed contentDescriptions that hindered accessibility usability
  Fixes a bug where setting a null bigLargeIcon would not clear it
  Fixed the transition of the background of the notifications
  Fixed a bug where the notification would fade out in a ugly way
2016-08-08 19:18:33 +00:00
TreeHugger Robot
c830bd1071 Merge "Don't ensure configuration for activity we are resuming." into nyc-mr1-dev 2016-08-08 18:27:02 +00:00
Christopher Tate
d6f3a11107 DO NOT MERGE: Backport N backup/restore stability work to M
This is a squashed rollup of backup/restore infrastructural work in
the N release.  It intentionally omits semantic/API changes such
as the introduction of the onQuotaExceeded() callback.

This patchset should not be merged beyond M maintenance releases.

Bug 29617908
Bug 29848715

Change-Id: I1eb25ad07f3bbf1132198d8a233722c41f1ac4cc
2016-08-08 10:48:26 -07:00
Muyuan Li
a6b1a9485c Merge "Prevents screenshot layer from dismissing IME." into nyc-mr1-dev 2016-08-08 17:43:11 +00:00
Phil Weaver
a8918f23c7 Limit capabilities of a11y gesture dispatch.
Changing the service side to accept descriptions of
motion events, not motion events themselves, so we can
control their creation.

Bug: 30647115
Change-Id: Ia6772a1fc05df91818e3f88959d1e2b4a35fe0cc
2016-08-08 10:23:17 -07:00
Wale Ogunwale
950faffd02 Don't ensure configuration for activity we are resuming.
Regression introduced in ag/865988 when ASS.ensureActivitiesVisibleLocked()
was added to the end of AS.completePauseLocked() without specifing the
starting/resuming activity. If the starting/resuming activity isn't specified
the resuming activity can be relaunched with the current configuration which
might be different from the configuration the activity will end up in if it has
fixed orientation.
We now pass in the starting/resuming activity to avoid this.

Bug: 30509213
Change-Id: Idd0be84745bad83a1924e850b9b4020b927a78d8
2016-08-08 09:51:04 -07:00
Jason Monk
c1aac02a37 Merge "QS: Tweak animation paths when few icons" into nyc-mr1-dev 2016-08-08 15:32:47 +00:00
Jason Monk
a6ab28d3c9 Merge "QS: Fix expanding on closing detail" into nyc-mr1-dev 2016-08-08 15:32:24 +00:00
John Reck
295d81c360 Merge "Ensure Dequeue/Queue duration is always set" into nyc-mr1-dev 2016-08-08 14:52:05 +00:00
TreeHugger Robot
867f6d5dd5 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-08 13:42:36 +00:00
TreeHugger Robot
96707c53cc Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-08 13:40:44 +00:00
Bill Yi
b046cefd8a Import translations. DO NOT MERGE
Change-Id: Ia177ed731331dbc6420eafe17a1615a7bc65dac2
Auto-generated-cl: translation import
2016-08-08 04:16:48 -07:00
Bill Yi
8d7bd6b735 Import translations. DO NOT MERGE
Change-Id: Ib195a4f4c102694bc911d6987dc1506f511cadd4
Auto-generated-cl: translation import
2016-08-08 04:01:55 -07:00
Erik Kline
703b0974e0 Ensure known good state when starting.
Split StartedState into StartedState and RunningState, and ensure
known good state before proceeding from the former to the latter.

Bug: 30290336
Change-Id: I0a93f8fe53c65a0b90c28c3cf708792146a92aab
2016-08-08 15:31:08 +09:00
Bill Yi
15b3229561 Import translations. DO NOT MERGE
Change-Id: I6b7b641340466819a50ee8838278b352948891f9
Auto-generated-cl: translation import
2016-08-07 21:46:38 -07:00
Tyler Gunn
aa1e49c168 Merge "Add Connection Event for wifi handover failures." into nyc-mr1-dev 2016-08-08 00:33:45 +00:00
Muyuan Li
36ca72c6c2 Prevents screenshot layer from dismissing IME.
Add code to adjustWindowLw to force the flag
FLAG_NOT_FOCUSABLE to be set for layer type
TYPE_SCREENSHOT.

Bug: 30485483
Change-Id: I11725eb89fda59b6d50fa1700845cdfe9ffb930b
2016-08-06 20:49:51 -07:00
TreeHugger Robot
04828df84e Merge "Make sure IME focus is synced to View focus" into nyc-mr1-dev 2016-08-06 18:18:57 +00:00
Jim Miller
37979c9db0 Fix bug where foreground activity fails to cancel auth/enrollment
This fixes a bug where the currently authenticating application
can't cancel itself in onPause(). The problem is that some applications
can set FLAG_RESUME_WHILE_PAUSING (like the home screen), which changes
the life cycle of IMPORTANCE_FOREGROUND to be removed before onPause()
completes.  The result is the currently authenticating activity
can't cancel fingerprint authentication or enrollment.

The fix is to allow apps to always cancel themselves.

Fixes bug 30380234

Change-Id: If65c2028014da8d5129506d0b45cc6c1e25f7860
2016-08-05 18:54:58 -07:00
Doris Liu
7ae119ebff Merge "Remove animation value change from push staging" into nyc-mr1-dev 2016-08-06 01:07:15 +00:00
Doris Liu
26d4ab07d5 Merge "Support repeatMode = reverse in AVD" into nyc-mr1-dev 2016-08-06 00:47:04 +00:00
Phil Weaver
f861b916e4 Merge "Improve handling of crashing a11y services." into nyc-mr1-dev 2016-08-05 23:28:48 +00:00
Joe Onorato
adbee556a9 Have BatteryStats track and report the running wakelocks.
The times reported are in the screen off / on battery time base.

Bug: 29546924
Change-Id: I025b2959becb256a26cf531e944786d4e9a59149
2016-08-05 16:10:13 -07:00
Chris Tate
1b72661e45 Merge "Reschedule date-change alarm whenever the time is set" into nyc-mr1-dev 2016-08-05 22:48:57 +00:00
Yohei Yukawa
dd228fbb4d Make sure IME focus is synced to View focus
This CL fixes an edge case that my previous CL [1] forgot to handle.

The goal of my previous CL was to avoid InputMethodManager from getting
confused by a false focus-in event from temporarily detached Views.
However, my CL forgot to take care of the case where the temporarily
detached View is still focused even after the temporary detach mode is
done.

The bad news is that such a situation is relatively easy to trigger by
having a ListView that has EditText as follows, which seems to be
known to be a common technique in Android developer community to put an
EditText in a ListView.
  ListView#listView.addHeaderView(new EditText(context), null, true);

If the ListView is initialized as above, and the EditText has input
focus, View focus and IME focus start to disagree immediatelly after the
ListView's layout is re-evaluated.  This is really easy to trigger, for
example just by dismissing the IME window.

In summary, the root cause is that InputMethodManager#focusIn(View) is
now always ignored as long as the View is temporarily detached, under an
assumption that IMM#focusIn(View) will be called back again with a View
that is not temporarily detached when everything is stable.  Hence the
fix is to do so by hooking up View#dispatchFinishTemporaryDetach() to
call IMM#focusIn(View) again when the View is actually focused in the
final state.

 [1]: Ia79bbd8468f768d546354382b47b39dd31ef7bb5
      a4ed0cfcb6

Bug: 30022872
Bug: 30578745
Bug: 30706985
Change-Id: Iecbdb00dcef8c72e4f7b31035c9bf0f4a40a578f
2016-08-05 15:38:55 -07:00
TreeHugger Robot
cefcb979ae Merge "Not trying to remove admins already being removed" into nyc-mr1-dev 2016-08-05 22:38:21 +00:00