OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Don't use screenshot if structure is disabled (1/2)" into mnc-dev
Jorim Jaggi [Tue, 28 Jul 2015 19:49:44 +0000 (19:49 +0000)]
Merge "Don't use screenshot if structure is disabled (1/2)" into mnc-dev

9 years agoMerge "Un-remove legacy ConnectivityManager API." into mnc-dev
Robert Greenwalt [Tue, 28 Jul 2015 19:39:48 +0000 (19:39 +0000)]
Merge "Un-remove legacy ConnectivityManager API." into mnc-dev

9 years agoUn-remove legacy ConnectivityManager API.
Robert Greenwalt [Tue, 28 Jul 2015 18:41:31 +0000 (11:41 -0700)]
Un-remove legacy ConnectivityManager API.

These were @removed too soon.  We need to keep them @deprecated until
the bulk of devices support the new API and then we can remove them.

bug:22728205
Change-Id: If1b46ff1878f1778517624112b195c461645ddd1

9 years agoMerge "Fix network name not showing in QS sometimes" into mnc-dev
Jason Monk [Tue, 28 Jul 2015 18:05:49 +0000 (18:05 +0000)]
Merge "Fix network name not showing in QS sometimes" into mnc-dev

9 years agoMerge "BatteryStats: Compensate for accuracy issues when reporting WiFi energy data...
Adam Lesinski [Tue, 28 Jul 2015 01:06:14 +0000 (01:06 +0000)]
Merge "BatteryStats: Compensate for accuracy issues when reporting WiFi energy data issues with Slog.wtf" into mnc-dev

9 years agoMerge changes I5c994de5,I6cb0dd84 into mnc-dev
Lorenzo Colitti [Tue, 28 Jul 2015 01:03:44 +0000 (01:03 +0000)]
Merge changes I5c994de5,I6cb0dd84 into mnc-dev

* changes:
  Add a test for public bugs 2111 and 2136.
  Always check off-link connectivity in NetworkDiagnostics.

9 years agoDon't use screenshot if structure is disabled (1/2)
Jorim Jaggi [Tue, 28 Jul 2015 00:48:42 +0000 (17:48 -0700)]
Don't use screenshot if structure is disabled (1/2)

Bug: 22674955
Change-Id: I694bb8dbb578da9d729414c7f2947ba4c15651e3

9 years agoMerge "Allow assist gesture when notification shade is expanded" into mnc-dev
Jorim Jaggi [Tue, 28 Jul 2015 00:36:14 +0000 (00:36 +0000)]
Merge "Allow assist gesture when notification shade is expanded" into mnc-dev

9 years agoBatteryStats: Compensate for accuracy issues when reporting WiFi energy data issues...
Adam Lesinski [Tue, 28 Jul 2015 00:19:23 +0000 (17:19 -0700)]
BatteryStats: Compensate for accuracy issues when reporting WiFi energy data issues with Slog.wtf

In practice I've seen the reported time spent in all WiFi energy states ~20 milliseconds larger
than the time between samples, which seems reasonable.

This will reduce false positives in APR.

Bug:22774068
Change-Id: Ibf33c9826586c8a1b70449b9a609cb51bdfc08b8

9 years agoMerge "Allow text selection handles to scroll horizontally" into mnc-dev
Mady Mellor [Tue, 28 Jul 2015 00:16:49 +0000 (00:16 +0000)]
Merge "Allow text selection handles to scroll horizontally" into mnc-dev

9 years agoMerge "Update DngCreator to correctly handle array sizes." into mnc-dev
Ruben Brunk [Tue, 28 Jul 2015 00:11:36 +0000 (00:11 +0000)]
Merge "Update DngCreator to correctly handle array sizes." into mnc-dev

9 years agoMerge "AAPT: Fix printing of resource configurations" into mnc-dev
Adam Lesinski [Tue, 28 Jul 2015 00:08:45 +0000 (00:08 +0000)]
Merge "AAPT: Fix printing of resource configurations" into mnc-dev

9 years agoMerge "Remove unnecessary relayout call from traversals." into mnc-dev
Filip Gruszczynski [Tue, 28 Jul 2015 00:04:44 +0000 (00:04 +0000)]
Merge "Remove unnecessary relayout call from traversals." into mnc-dev

9 years agoAAPT: Fix printing of resource configurations
Adam Lesinski [Mon, 27 Jul 2015 23:53:14 +0000 (16:53 -0700)]
AAPT: Fix printing of resource configurations

Print out proper, copied configuration. We add fields to ResTable_config
and if we don't copy and fill in defaults when reading old configurations,
we end up with garbage values. This can potentially cause a crash as well.

Bug:22773426
Change-Id: I64f5ebe73ee72453bcdad3a19e48f8e7ad58e9c2

9 years agoMerge "Added missing check for MANAGE_USERS" into mnc-dev
Fyodor Kupolov [Mon, 27 Jul 2015 23:43:32 +0000 (23:43 +0000)]
Merge "Added missing check for MANAGE_USERS" into mnc-dev

9 years agoUpdate DngCreator to correctly handle array sizes.
Ruben Brunk [Wed, 22 Jul 2015 00:51:54 +0000 (17:51 -0700)]
Update DngCreator to correctly handle array sizes.

- Allow both pixelArraySize and preCorrectionArraySize
  buffer dimensions for input buffers.
- Adjust crop, active area, and dimensions used for
  opcode lists based on the input buffer size.

Bug: 22302614
Bug: 22210811
Change-Id: I16fb8921a144b0a251d555037ca45fdc12f7dd18

9 years agoMerge "Allow soft hyphens in languages without patterns" into mnc-dev
Raph Levien [Mon, 27 Jul 2015 21:50:16 +0000 (21:50 +0000)]
Merge "Allow soft hyphens in languages without patterns" into mnc-dev

9 years agoAdded missing check for MANAGE_USERS
Fyodor Kupolov [Mon, 27 Jul 2015 21:30:59 +0000 (14:30 -0700)]
Added missing check for MANAGE_USERS

setUserRestriction should do the same permission check as setUserRestrictions
method.

Bug: 22767990
Change-Id: I01f0508ebb23deafaa32ad5dd7063b98a78641be

9 years agoEnforce DISALLOW_MOUNT_PHYSICAL_MEDIA.
Jeff Sharkey [Mon, 27 Jul 2015 21:19:54 +0000 (14:19 -0700)]
Enforce DISALLOW_MOUNT_PHYSICAL_MEDIA.

Bug: 22697024
Change-Id: Ib7277e8850a49909e5d8d5ad5502cd9315cddf0b

9 years agoMerge "Added the content description for the fingerprint icon" into mnc-dev
Selim Cinek [Mon, 27 Jul 2015 20:51:57 +0000 (20:51 +0000)]
Merge "Added the content description for the fingerprint icon" into mnc-dev

9 years agoAllow soft hyphens in languages without patterns
Raph Levien [Mon, 27 Jul 2015 20:06:24 +0000 (13:06 -0700)]
Allow soft hyphens in languages without patterns

This patch sets up an "empty" hyphenator, which it uses by default
for locales in which there is no hyphenation pattern data. This has
the effect of enabling soft hyphens (U+00AD), which were otherwise
disabled, because the "no-hyphen" code path didn't consider them.

Bug: 19605972
Change-Id: I4dcb95cee8edc48495f7c38736f5abf26fa04935

9 years agoMerge "BatteryStats: Prevent BatteryService from blocking" into mnc-dev
Adam Lesinski [Mon, 27 Jul 2015 20:01:34 +0000 (20:01 +0000)]
Merge "BatteryStats: Prevent BatteryService from blocking" into mnc-dev

9 years agoMerge "Allow Settings to set background data restrict on secondary users." into mnc-dev
Julia Reynolds [Mon, 27 Jul 2015 19:51:24 +0000 (19:51 +0000)]
Merge "Allow Settings to set background data restrict on secondary users." into mnc-dev

9 years agoRevert "am 1c964bec: Revert "am 6397ae6a: Merge "Update data binding for RC1." into...
George Mount [Mon, 27 Jul 2015 19:39:28 +0000 (12:39 -0700)]
Revert "am 1c964bec: Revert "am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs""

This reverts commit 01fe3f86b1c1e0eb3d8c9ab0b2251233f9164c5d, reversing
changes made to b83b5fa641847ee1d533253ba5e1a3e13913b9d9.

This change is valid for mnc-dev and other mnc branches.

9 years agoMerge "Fix QS switch accessibility problem" into mnc-dev
Jason Monk [Mon, 27 Jul 2015 19:27:29 +0000 (19:27 +0000)]
Merge "Fix QS switch accessibility problem" into mnc-dev

9 years agoMerge "Pass correct extras to the custom print options activity" into mnc-dev
Svetoslav Ganov [Mon, 27 Jul 2015 19:23:37 +0000 (19:23 +0000)]
Merge "Pass correct extras to the custom print options activity" into mnc-dev

9 years agoFix QS switch accessibility problem
Jason Monk [Mon, 27 Jul 2015 19:17:14 +0000 (15:17 -0400)]
Fix QS switch accessibility problem

Set the switch state so it can be read back correctly.

Bug: 22710906
Change-Id: I2bcba96e53813118eb2be8dcb7e0b7d547767550

9 years agoAllow Settings to set background data restrict on secondary users.
Julia Reynolds [Mon, 27 Jul 2015 19:10:42 +0000 (15:10 -0400)]
Allow Settings to set background data restrict on secondary users.

Bug: 22721091
Change-Id: Iadfbd25f75f233f2c3c080e0de05b0244572b6cd

9 years agoMerge "Move PIN/Pattern appear animation to RenderThread (1/2)" into mnc-dev
Jorim Jaggi [Mon, 27 Jul 2015 18:55:29 +0000 (18:55 +0000)]
Merge "Move PIN/Pattern appear animation to RenderThread (1/2)" into mnc-dev

9 years agoRemove unnecessary relayout call from traversals.
Filip Gruszczynski [Mon, 27 Jul 2015 15:52:50 +0000 (08:52 -0700)]
Remove unnecessary relayout call from traversals.

All the necessary information (most importantly outsets) arrives in
addWindowToDisplay that is happening a few lines earlier.

Bug: 22073222
Change-Id: I483e98808877f32812c0e959cdfc14b4e0ca5e62

9 years agoBatteryStats: Prevent BatteryService from blocking
Adam Lesinski [Mon, 27 Jul 2015 18:43:05 +0000 (11:43 -0700)]
BatteryStats: Prevent BatteryService from blocking

BatteryService is a low level service, and we shouldn't have it
block in BatteryStatsService while collecting external data from
components like WiFi. Deadlocks can occur this way.

Bug:22559655
Change-Id: I64026453d191695eb583a47163ab6f48f882b085

9 years agoam 1c964bec: Revert "am 6397ae6a: Merge "Update data binding for RC1." into mnc-previ...
George Mount [Mon, 27 Jul 2015 18:24:40 +0000 (18:24 +0000)]
am 1c964bec: Revert "am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs"

* commit '1c964bece6ce1bbbf9f641d95df3bf2de01f6ab7':
  Revert "am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs"

9 years agoRevert "am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs"
George Mount [Mon, 27 Jul 2015 17:38:22 +0000 (10:38 -0700)]
Revert "am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs"

This reverts commit c571a9a1d026cbf262cf36a5348f99d1ca0ec835, reversing
changes made to a29cfefe2c157a28b256771b1dce4653d405dcf1.

This should fix the build break for LMP downstream branches.

Change-Id: I22aac1dd0fb7965a2877bae224bccc8df8ee8e17

9 years agoMerge "Check for ACCESS_COARSE_LOCATION/ACCESS_FINE_LOCATION" into mnc-dev
Fyodor Kupolov [Mon, 27 Jul 2015 17:27:02 +0000 (17:27 +0000)]
Merge "Check for ACCESS_COARSE_LOCATION/ACCESS_FINE_LOCATION" into mnc-dev

9 years agoMerge "Fix bitmap get/set pixels for ALPHA_8" into mnc-dev
Chris Craik [Mon, 27 Jul 2015 17:23:52 +0000 (17:23 +0000)]
Merge "Fix bitmap get/set pixels for ALPHA_8" into mnc-dev

9 years agoMerge "MIDI: fix running status parser" into mnc-dev
Phil Burk [Mon, 27 Jul 2015 17:15:04 +0000 (17:15 +0000)]
Merge "MIDI: fix running status parser" into mnc-dev

9 years agoMerge "Revert "Invoke geolocation permissions callback with denied state by default...
Tim Volodine [Mon, 27 Jul 2015 16:37:57 +0000 (16:37 +0000)]
Merge "Revert "Invoke geolocation permissions callback with denied state by default."" into mnc-dev

9 years agoRevert "Invoke geolocation permissions callback with denied state by default."
Tim Volodine [Thu, 23 Jul 2015 17:16:16 +0000 (17:16 +0000)]
Revert "Invoke geolocation permissions callback with denied state by default."

This reverts commit 954d1333c478d4dba6c9a0536510da4fd94c0622.

The revert is due to apps calling super.onGeolocationPermissionsShowPrompt see b/22685046

Bug: 22685046
Change-Id: I2a9f42b432a010828a0cafaee064480bb0f91cbe
(cherry picked from commit 0bb7d2e46710932d09688a18d4c5836f9b1413a5)

9 years agoam c571a9a1: am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs
George Mount [Mon, 27 Jul 2015 14:49:16 +0000 (14:49 +0000)]
am c571a9a1: am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs

* commit 'c571a9a1d026cbf262cf36a5348f99d1ca0ec835':
  Update data binding for RC1.

9 years agoam a29cfefe: (-s ours) am 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data...
George Mount [Mon, 27 Jul 2015 14:49:11 +0000 (14:49 +0000)]
am a29cfefe: (-s ours) am 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs

* commit 'a29cfefe2c157a28b256771b1dce4653d405dcf1':
  DO NOT MERGE ANYWHERE. Add data binding to built javadoc.

9 years agoam 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs
George Mount [Mon, 27 Jul 2015 14:35:50 +0000 (14:35 +0000)]
am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs

* commit '6397ae6a0aedb8c7d085bb8907fc46a0e5bd7065':
  Update data binding for RC1.

9 years agoam 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data binding to built javado...
George Mount [Mon, 27 Jul 2015 14:35:45 +0000 (14:35 +0000)]
am 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs

* commit '95e6ae3ad1ba8647494f0b5007b7beee76493e03':
  DO NOT MERGE ANYWHERE. Add data binding to built javadoc.

9 years agoMerge "Update data binding for RC1." into mnc-preview-docs
George Mount [Mon, 27 Jul 2015 14:24:34 +0000 (14:24 +0000)]
Merge "Update data binding for RC1." into mnc-preview-docs

9 years agoMerge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview...
George Mount [Mon, 27 Jul 2015 14:24:17 +0000 (14:24 +0000)]
Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs

9 years agoMerge "decide interruptions based on current data, not previous data." into mnc-dev
Chris Wren [Mon, 27 Jul 2015 13:10:11 +0000 (13:10 +0000)]
Merge "decide interruptions based on current data, not previous data." into mnc-dev

9 years agoMerge "add ticker to enqueue message for easier debugging" into mnc-dev
Chris Wren [Mon, 27 Jul 2015 13:09:15 +0000 (13:09 +0000)]
Merge "add ticker to enqueue message for easier debugging" into mnc-dev

9 years agoAdd a test for public bugs 2111 and 2136.
Lorenzo Colitti [Mon, 27 Jul 2015 07:35:22 +0000 (16:35 +0900)]
Add a test for public bugs 2111 and 2136.

Bug: 22602137
Bug: 22104401
Change-Id: I5c994de53b5906416767a8a1abe38fe59afb7cc0

9 years agoAlways check off-link connectivity in NetworkDiagnostics.
Lorenzo Colitti [Mon, 27 Jul 2015 07:35:33 +0000 (16:35 +0900)]
Always check off-link connectivity in NetworkDiagnostics.

Currently, NetworkDiagnostics only checks off-link connectivity if
one of the DNS servers is off-link. Make it check off-link
connectivity in all cases by sending probes to Google Public DNS
if off-link DNS servers are not specified.

Bug: 22569331
Bug: 22641669
Bug: 22748900
Change-Id: I6cb0dd8491bc0c1a488631deca56722b9c1d2b3f

9 years agoMerge "Change to connectivitycheck.gstatic.com" into mnc-dev
Erik Kline [Mon, 27 Jul 2015 02:35:09 +0000 (02:35 +0000)]
Merge "Change to connectivitycheck.gstatic.com" into mnc-dev

9 years agoPass correct extras to the custom print options activity
Svet Ganov [Sat, 25 Jul 2015 19:10:54 +0000 (12:10 -0700)]
Pass correct extras to the custom print options activity

bug:22734138

Change-Id: Iea1bc32c3e863072b2021b823bef2cefa54fa540

9 years agoMerge "Also check app-ops on path-permissions." into mnc-dev
Jeff Sharkey [Sat, 25 Jul 2015 02:05:56 +0000 (02:05 +0000)]
Merge "Also check app-ops on path-permissions." into mnc-dev

9 years agoMerge "Fixed wake to unlock when the device has never been unlocked" into mnc-dev
Selim Cinek [Sat, 25 Jul 2015 01:48:16 +0000 (01:48 +0000)]
Merge "Fixed wake to unlock when the device has never been unlocked" into mnc-dev

9 years agoFix ambient display
Jorim Jaggi [Fri, 24 Jul 2015 19:32:42 +0000 (12:32 -0700)]
Fix ambient display

Due to a refactoring for touch, wake and unlock for fingerprint
devices PhoneWindowManager now waits for Keyguard to draw its first
frame in all cases, including when screen turns on for pulsing.
However, since in this case the device is not awake, we need to check
for screen on instead of awakeness when proceeding with the wake-up
sequence. Without this change, screen on was blocked forever in the
pulsing case.

Bug: 22605235
Change-Id: Ib6089fd14b673e62347f2c9108d9a6783caa26b7

9 years agoFixed wake to unlock when the device has never been unlocked
Selim Cinek [Sat, 25 Jul 2015 01:15:43 +0000 (18:15 -0700)]
Fixed wake to unlock when the device has never been unlocked

Previously the fingerprint could still unlock the device
when waking up with the fingerprint sensor, since we were not
checking if it is allowed.

Bug: 22622999
Change-Id: I039a4e0701c1f161f227cf6f1d25e8147548db47

9 years agoMerge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev
Adam Lesinski [Sat, 25 Jul 2015 01:14:07 +0000 (01:14 +0000)]
Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev

9 years agoMerge "Adapted the behavior when unlocking with fingerprint is not allowed" into...
Selim Cinek [Sat, 25 Jul 2015 00:33:14 +0000 (00:33 +0000)]
Merge "Adapted the behavior when unlocking with fingerprint is not allowed" into mnc-dev

9 years agoCheck for ACCESS_COARSE_LOCATION/ACCESS_FINE_LOCATION
Fyodor Kupolov [Fri, 24 Jul 2015 01:38:10 +0000 (18:38 -0700)]
Check for ACCESS_COARSE_LOCATION/ACCESS_FINE_LOCATION

Call to checkPermission(ACCESS_COARSE_LOCATION) should return
PERMISSION_GRANTED, when package only has ACCESS_FINE_LOCATION permission

Bug: 21852542
Change-Id: I53fe2945784213693f59e7bfccc524276ea8c189

9 years agoAdded the content description for the fingerprint icon
Selim Cinek [Fri, 24 Jul 2015 23:23:23 +0000 (16:23 -0700)]
Added the content description for the fingerprint icon

Added a content description for the fingerprint icon,
which should be used throughout the platform.

Bug: 22616421
Change-Id: I8d65a568af926a692fd6be3e27d40b5d2dd6cbb1

9 years agoam 5442932a: am 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs
Chris Banes [Fri, 24 Jul 2015 22:41:35 +0000 (22:41 +0000)]
am 5442932a: am 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs

* commit '5442932a4befd66394fb155ae95a2eaadd2001a9':
  v22.2.1 support api diff

9 years agoam a65de4fd: am b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely...
Adrian Roos [Fri, 24 Jul 2015 22:41:26 +0000 (22:41 +0000)]
am a65de4fd: am b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI

* commit 'a65de4fde99c84ae7c7cab242e8e1e46ee6c0a5d':
  Prevent insanely long passwords from crashing SystemUI

9 years agoFix bitmap get/set pixels for ALPHA_8
Chris Craik [Fri, 24 Jul 2015 22:17:29 +0000 (15:17 -0700)]
Fix bitmap get/set pixels for ALPHA_8

bug:22724734

Change-Id: If8307854f6bad6fac9ee0b394bf0b044c61183e5

9 years agoAlso check app-ops on path-permissions.
Jeff Sharkey [Fri, 24 Jul 2015 22:10:20 +0000 (15:10 -0700)]
Also check app-ops on path-permissions.

Any place that we check permissions we also need to check any
app-ops associated with those permissions.  In the case of providers
with both <provider> and <path-permission> permissions, track and
report the strongest app-ops denial.

Bug: 22718722
Change-Id: I45e62de39b04d16d071558ad980b701667cfcb9a

9 years agoMerge "Use process state to filter >= UI_HIDDEN" into mnc-dev
John Reck [Fri, 24 Jul 2015 22:15:47 +0000 (22:15 +0000)]
Merge "Use process state to filter >= UI_HIDDEN" into mnc-dev

9 years agoMerge "Fix janky add guest transition" into mnc-dev
Adrian Roos [Fri, 24 Jul 2015 21:42:46 +0000 (21:42 +0000)]
Merge "Fix janky add guest transition" into mnc-dev

9 years agoMerge "Frameworks/base: Hand fingerprint to ART" into mnc-dev
Andreas Gampe [Fri, 24 Jul 2015 21:25:09 +0000 (21:25 +0000)]
Merge "Frameworks/base: Hand fingerprint to ART" into mnc-dev

9 years agoFrameworks/base: Hand fingerprint to ART
Andreas Gampe [Fri, 24 Jul 2015 21:19:44 +0000 (14:19 -0700)]
Frameworks/base: Hand fingerprint to ART

To allow ANR dumps to be symbolized easily, hand the build
fingerprint to the runtime.

Bug: 22693991
Change-Id: Ibd3d3b3bd65dce84acfb97a487807d6f280a9508

9 years agoMIDI: fix running status parser
Phil Burk [Thu, 23 Jul 2015 23:46:53 +0000 (16:46 -0700)]
MIDI: fix running status parser

Running status was being parsed incorrectly.
This could cause stuck notes or exceptions when sending running
status messages to a Bluetooth MIDI device.

Bug: 22689606
Change-Id: I9f7abce9758927be587eead9614617d5b0076353
Signed-off-by: Phil Burk <philburk@google.com>
9 years agoAllow assist gesture when notification shade is expanded
Jorim Jaggi [Fri, 24 Jul 2015 20:18:19 +0000 (13:18 -0700)]
Allow assist gesture when notification shade is expanded

Bug: 22669852
Change-Id: Icf7cf981ca9b6cd5547b62fb4ae97f13f1033395

9 years agoam 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs
Chris Banes [Fri, 24 Jul 2015 20:19:09 +0000 (20:19 +0000)]
am 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs

* commit '7b099152b6bd5844c30464a7c08dde2e22124491':
  v22.2.1 support api diff

9 years agoAllow text selection handles to scroll horizontally
Mady Mellor [Fri, 24 Jul 2015 20:08:42 +0000 (13:08 -0700)]
Allow text selection handles to scroll horizontally

When selecting text and expanding the selection, the handles snap
to the end (or start) of words. The handles don't snap until the
user has moved halfway through the word.

In horizontally scrolling text views, where some of the text is
cut off, the user cannot be halfway through the word, this causes
the selection to get stuck unless the user scrolls the view and then
continues selecting.

This CL does two things:

1) Checks if the user is close to the edge of the view when the
view can scroll horizontally, and places the cursor at next offset
if available.

2) Moves the code to check if handles are crossing into own method
this should be done each time the cursor is placed and avoids the
need to duplicate the check throughout updatePosition code.

Bug: 22657879
Change-Id: Ic14cb0994cd202a897bf6532f3832bb93ed49bfb

9 years agoBatteryStats: Decode wakeup reasons in Java
Adam Lesinski [Fri, 24 Jul 2015 01:13:38 +0000 (18:13 -0700)]
BatteryStats: Decode wakeup reasons in Java

Wakeup reasons come from drivers and sometimes are malformed UTF-8.
Decode them in Java so we can easily replace malformed characters
and still have user visible strings.

Bug:22368519
Change-Id: Ifade1a7fcdf6545e7e344d74390200c329430e14

9 years agoMerge "DO NOT MERGE Enhance local log." into mnc-dev
Robert Greenwalt [Fri, 24 Jul 2015 19:54:07 +0000 (19:54 +0000)]
Merge "DO NOT MERGE Enhance local log." into mnc-dev

9 years agoam b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords...
Adrian Roos [Fri, 24 Jul 2015 19:45:24 +0000 (19:45 +0000)]
am b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI

* commit 'b2f8c716e8d2cf575c690b5a360c4efdd9f06bc8':
  Prevent insanely long passwords from crashing SystemUI

9 years agoDO NOT MERGE Enhance local log.
Robert Greenwalt [Fri, 24 Jul 2015 19:44:03 +0000 (12:44 -0700)]
DO NOT MERGE Enhance local log.

to be reverted with ag/733658
bug:22632129

Change-Id: Id3899ee8e987ccc469394dd4d0c41465c48dc37e

9 years agoMerge "Require permission for internal broadcast" into mnc-dev
Amith Yamasani [Fri, 24 Jul 2015 19:12:16 +0000 (19:12 +0000)]
Merge "Require permission for internal broadcast" into mnc-dev

9 years agoMerge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev
Fyodor Kupolov [Fri, 24 Jul 2015 17:54:14 +0000 (17:54 +0000)]
Merge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev

9 years agoMerge "Disallow dragging text in extracted mode" into mnc-dev
Andrei Stingaceanu [Fri, 24 Jul 2015 14:35:48 +0000 (14:35 +0000)]
Merge "Disallow dragging text in extracted mode" into mnc-dev

9 years agoMerge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev
Julia Reynolds [Fri, 24 Jul 2015 14:34:02 +0000 (14:34 +0000)]
Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev

9 years agoMerge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev
Jim Miller [Fri, 24 Jul 2015 02:41:00 +0000 (02:41 +0000)]
Merge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev

9 years agoUse process state to filter >= UI_HIDDEN
John Reck [Fri, 24 Jul 2015 01:27:09 +0000 (18:27 -0700)]
Use process state to filter >= UI_HIDDEN

Bug: 22701182
Change-Id: Ia192016397c8115a19a0dca409aa70dea154c41e

9 years agoRequire permission for internal broadcast
Amith Yamasani [Fri, 24 Jul 2015 00:15:45 +0000 (17:15 -0700)]
Require permission for internal broadcast

It was possible for other apps to request removal of the guest user
that was handled by an internal receiver in SystemUI.

Fix requires the broadcast sender to have an internal permission
so that only SystemUI can send that broadcast (PendingIntent).

Bug: 22671268
Change-Id: I63a8ced692e6d1cb2872b962ad247a827dbafbc6

9 years agoMerge "MediaPlayer subtitle controller: use debug log instead of warning" into mnc-dev
Jean-Michel Trivi [Fri, 24 Jul 2015 00:46:15 +0000 (00:46 +0000)]
Merge "MediaPlayer subtitle controller: use debug log instead of warning" into mnc-dev

9 years agouse findProcess instead of getProcess
John Reck [Fri, 24 Jul 2015 00:36:13 +0000 (17:36 -0700)]
use findProcess instead of getProcess

Bug: 22701182
Change-Id: I2ec56c55c49401f2f213bbd318e867fd73b37672

9 years agoMerge "UICC : discard language setting of SIM" into mnc-dev
Amit Mahajan [Thu, 23 Jul 2015 23:59:40 +0000 (23:59 +0000)]
Merge "UICC : discard language setting of SIM" into mnc-dev

9 years agoMerge "Disable Keyguard affordances before setup is completed" into mnc-dev
Adrian Roos [Thu, 23 Jul 2015 23:56:37 +0000 (23:56 +0000)]
Merge "Disable Keyguard affordances before setup is completed" into mnc-dev

9 years agoMerge "Keep default permission grants uninstalling a sys package upgrade" into mnc-dev
Svetoslav Ganov [Thu, 23 Jul 2015 23:56:31 +0000 (23:56 +0000)]
Merge "Keep default permission grants uninstalling a sys package upgrade" into mnc-dev

9 years agoMerge "Move updateMatrix() call to animateCommon" into mnc-dev
John Reck [Thu, 23 Jul 2015 23:48:40 +0000 (23:48 +0000)]
Merge "Move updateMatrix() call to animateCommon" into mnc-dev

9 years agoKeep default permission grants uninstalling a sys package upgrade
Svet Ganov [Thu, 23 Jul 2015 23:44:05 +0000 (16:44 -0700)]
Keep default permission grants uninstalling a sys package upgrade

bug:22665508

Change-Id: I1cb1e53a8643ddad77f0be9e40d5b504501e06de

9 years agoMerge "Set support flag for custom layouts for RecyclerView." into mnc-dev
Deepanshu Gupta [Thu, 23 Jul 2015 23:47:10 +0000 (23:47 +0000)]
Merge "Set support flag for custom layouts for RecyclerView." into mnc-dev

9 years agoSet support flag for custom layouts for RecyclerView.
Deepanshu Gupta [Thu, 23 Jul 2015 23:40:23 +0000 (16:40 -0700)]
Set support flag for custom layouts for RecyclerView.

Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4

9 years agoMerge "Don't rely on broadcast intent for waking up input method." into mnc-dev
Yohei Yukawa [Thu, 23 Jul 2015 23:24:58 +0000 (23:24 +0000)]
Merge "Don't rely on broadcast intent for waking up input method." into mnc-dev

9 years agoMediaPlayer subtitle controller: use debug log instead of warning
Jean-Michel Trivi [Thu, 23 Jul 2015 17:53:37 +0000 (10:53 -0700)]
MediaPlayer subtitle controller: use debug log instead of warning

Don't use warning log for debug message.

Bug 22698299

Change-Id: Ibe3526fffffc9a7bdcda83c02fd745325db1238b

9 years agoMerge changes I9c294329,Ie4db5d28 into mnc-dev
Deepanshu Gupta [Thu, 23 Jul 2015 23:02:57 +0000 (23:02 +0000)]
Merge changes I9c294329,Ie4db5d28 into mnc-dev

* changes:
  LayoutLib: translucent sys ui bars
  Move the layout code out of RenderSessionImpl.

9 years agoMerge "CalendarView rendering: use R.styleable to find attr." into mnc-dev
Deepanshu Gupta [Thu, 23 Jul 2015 23:02:46 +0000 (23:02 +0000)]
Merge "CalendarView rendering: use R.styleable to find attr." into mnc-dev

9 years agoLayoutLib: translucent sys ui bars
Deepanshu Gupta [Thu, 23 Jul 2015 18:35:25 +0000 (11:35 -0700)]
LayoutLib: translucent sys ui bars

Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2

9 years agoMove updateMatrix() call to animateCommon
John Reck [Thu, 23 Jul 2015 22:33:12 +0000 (15:33 -0700)]
Move updateMatrix() call to animateCommon

Bug: 22667315

HWUI internally always assumes that RenderNode->properties()
has a fully-baked matrix. However, RenderThread animations violate
this and will perform an update of that matrix after they run. This
was missing in the fallback scenario where an animation was
running on a View that is detached from the tree.

If a RenderThread animation is started on an attached view, it becomes
detached, and is then re-attached it will crash in the staging
properties push. The fix for this is to move the call to updateMatrix
from animate() to animateCommon() so that the animateNoDamage()
path will similarly perform the necessary matrix update.

Change-Id: I4c899a6f68659342a6515f1d7f20d3c4af65caf0

9 years agoUICC : discard language setting of SIM
duho.ro [Thu, 16 Jul 2015 11:05:00 +0000 (20:05 +0900)]
UICC : discard language setting of SIM

Some carrier card has incorrect language file.
This is to disable loading language setting from SIM card.

BUG=22255379

Change-Id: I217a530758c8f9b3ee85c8a277096155e95bb060

9 years agoAdapted the behavior when unlocking with fingerprint is not allowed
Selim Cinek [Mon, 20 Jul 2015 21:39:25 +0000 (14:39 -0700)]
Adapted the behavior when unlocking with fingerprint is not allowed

We now keep the fingerprint running and switch to the bouncer when
the user successfully authenticated.

Bug: 21618072
Change-Id: If00061cb3914afd4d7a7d75964594484c792a890

9 years agoDon't rely on broadcast intent for waking up input method.
Yohei Yukawa [Thu, 23 Jul 2015 22:08:59 +0000 (15:08 -0700)]
Don't rely on broadcast intent for waking up input method.

Basically this is a copy of Iabef96921dd554ce3768fb18619cefc
for InputMethodManagerService.

As described in JavaDoc of Intent#ACTION_SCREEN_OFF and
Intent#ACTION_SCREEN_ON, one can use those Intents to be
notified when the device becomes non-interactive and
interactive.  IMMS has relied on them to enable and disable
InputConnection between the IME and the application so as not
to allow IMEs to update text when the user does not present.
This is actually our design goal as documented in JavaDoc of
InputMethodManager.

   An IME can never interact with an InputConnection while
   the screen is off.  This is enforced by making all clients
   inactive while the screen is off, and prevents bad IMEs from
   driving the UI when the user can not be aware of its
   behavior.

The goal of this CL is to improve the timeliness of above
mechianism by introducing a direct communication channel from
PowerManagerService to InputMethodManagerService via Notifier.
Actually this is what InputManager has been doing since
Iabef96921dd554ce3768fb18619cefc3230b5fb0.

Reasons behind this change are:

  1. There are several bugreports that imply those Intents can
     dispatch tens of seconds after it is enqueued. This is
     indeed problematic because the user cannot type password
     to unlock their devices until queued
     Intent#ACTION_SCREEN_ON is dispatched. This CL addresses
     such an issue without waiting for figuring out the root
     cause of the delay.
  2. Intent#ACTION_SCREEN_OFF and Intent#ACTION_SCREEN_ON are
     sent as a ordered broadcast, which may not be suitable for
     tasks that require a certain level of timeliness, and what
     IMMS wants is to enable users to start typing immediately
     after the system.

This CL was originally authored by Seigo Nonaka.

Bug: 22423200
Bug: 22555778
Change-Id: I747c37ff6dd8f233faef43f2b5713a4320e848eb

9 years agoMerge "Add a wm command to dismiss the keyguard." into mnc-dev
Tim Kilbourn [Thu, 23 Jul 2015 21:58:01 +0000 (21:58 +0000)]
Merge "Add a wm command to dismiss the keyguard." into mnc-dev