OSDN Git Service

android-x86/frameworks-base.git
8 years agoUn-hide string set persistence methods in Preference
Adam Powell [Wed, 24 Feb 2016 00:06:42 +0000 (16:06 -0800)]
Un-hide string set persistence methods in Preference

6 years is enough time for API approval.

Bug 27324328

Change-Id: I5d5af0fc291250cd9ea5b50cd5031378475eacec

8 years agoMerge "Make android.media.AudioFormat parcelable" into nyc-dev
Jean-Michel Trivi [Tue, 23 Feb 2016 16:54:11 +0000 (16:54 +0000)]
Merge "Make android.media.AudioFormat parcelable" into nyc-dev

8 years agoMerge changes I78305f7f,I6faf0167 into nyc-dev
Jorim Jaggi [Tue, 23 Feb 2016 16:03:40 +0000 (16:03 +0000)]
Merge changes I78305f7f,I6faf0167 into nyc-dev

* changes:
  Fix disappearing windows after moving divider to side
  Recents transition fixes

8 years agoMerge "Only copy layout param title if it is different from the current one." into...
Wale Ogunwale [Tue, 23 Feb 2016 16:01:22 +0000 (16:01 +0000)]
Merge "Only copy layout param title if it is different from the current one." into nyc-dev

8 years agoOnly copy layout param title if it is different from the current one.
Wale Ogunwale [Tue, 23 Feb 2016 02:04:58 +0000 (18:04 -0800)]
Only copy layout param title if it is different from the current one.

Fixes WindowManager_LayoutParamsTest failure introduced in ag/866860

Bug: 27297744
Change-Id: I27ebf5d35b074d6b9c1634bc7cd18bba2844352e

8 years agoMerge "Make accessing mWaitingForDrawn thread-safe" into nyc-dev
Wale Ogunwale [Tue, 23 Feb 2016 15:52:58 +0000 (15:52 +0000)]
Merge "Make accessing mWaitingForDrawn thread-safe" into nyc-dev

8 years agoFix disappearing windows after moving divider to side
Jorim Jaggi [Sat, 20 Feb 2016 02:02:13 +0000 (18:02 -0800)]
Fix disappearing windows after moving divider to side

Because we only hide the surface when the clip rect got empty
but never showed it again if it got non-empty, app windows
disappeared after moving the docked stack divider to the
edge of the screen. Now we reshow the surfaces if the clip-rect
gets non-empty.

However, this introduces another bug while dismissing the docked
stack: Because we move all windows to the fullscreen stack, we resize
them but until the app transition starts, it can take a while and
during this time the app surface would be visible with the wrong
bounds. To fix this, we notify the windows that we are repositioning
ourselves in our stack. When applying the clip-rect, we detect that
situation and then we set the clip rect to empty if it was just empty
before and we just moved in the stack, to fix this very specific
issue.

I'm really not proud of this solution but at this point we can't
revisit how app transitions are executed in terms of timing and
ordering, so I thought this little hack is the best solution at
this point.

Bug: 26588506
Change-Id: I78305f7f7ef6c3da3c126a58d751117fcee23ca9

8 years agoRecents transition fixes
Jorim Jaggi [Sat, 20 Feb 2016 03:54:39 +0000 (19:54 -0800)]
Recents transition fixes

- Make sure to destroy the saved surfaces while we resize a task. The
usual destroying mechanism doesn't work here because we don't add the
windows to WMS.mResizingWindows.
- Make sure not to save the surface when a resize happened after the
window has been marked as gone (exiting). In this case, we resize the
task, so we add the window to mResizingWindows, but then when we don't
layout the window because win.isGoneForLayout() == true, so it would
save a surface that has the wrong size.
- Ensure the configuration of the top task when dismissing the docked
stack. First, this speeds up when the user navigates to it in the
fullscreen stack. Second, it fixes some other weirdness with saving
surfaces.
- Only exclude windows from layout when hidden is requested, so when
transitioning from hidden -> shown, the app immediately gets the
updated size when the task was resized when the window was hidden.

Bug: 27276087
Change-Id: I6faf016724136d984b259d184af58d41684f3425

8 years agoMake accessing mWaitingForDrawn thread-safe
tiger_huang [Tue, 23 Feb 2016 12:34:52 +0000 (20:34 +0800)]
Make accessing mWaitingForDrawn thread-safe

mWaitingForDrawn can be accessed by multiple threads, but it was not
protected by the mWindowMap lock perfectly.

Change-Id: I128ba1a00f40af83b051c0d1df4350d0635a9dff

8 years agoMerge "Don't show UNLOCK button when there are no users." into nyc-dev
Vadim Tryshev [Tue, 23 Feb 2016 15:40:06 +0000 (15:40 +0000)]
Merge "Don't show UNLOCK button when there are no users." into nyc-dev

8 years agoMerge "PackageManager: add Vulkan system features" into nyc-dev
Jesse Hall [Tue, 23 Feb 2016 15:11:50 +0000 (15:11 +0000)]
Merge "PackageManager: add Vulkan system features" into nyc-dev

8 years agoMerge "Don't load profile widgets until parent is unlocked." into nyc-dev
Kenny Guy [Tue, 23 Feb 2016 15:09:01 +0000 (15:09 +0000)]
Merge "Don't load profile widgets until parent is unlocked." into nyc-dev

8 years agoDon't load profile widgets until parent is unlocked.
Kenny Guy [Mon, 22 Feb 2016 21:12:31 +0000 (21:12 +0000)]
Don't load profile widgets until parent is unlocked.

Wait for parent user to be unlocked before attempting
to load widgets for a user.
Fixes issue with profile being unlocked and AppWidgetServiceImpl
thinking it has loaded parents widgets while locked and
therefore not seeing any widgets.

Bug: 27037962
Change-Id: Ice9c5e6e1dd062a622c5f984eeb3531de893f9be

8 years agoMerge "Scale volume panel with density changes." into nyc-dev
Julia Reynolds [Tue, 23 Feb 2016 14:51:33 +0000 (14:51 +0000)]
Merge "Scale volume panel with density changes." into nyc-dev

8 years agoMerge "Fix build" into nyc-dev
Alan Viverette [Tue, 23 Feb 2016 14:44:23 +0000 (14:44 +0000)]
Merge "Fix build" into nyc-dev

8 years agoFix build
Alan Viverette [Tue, 23 Feb 2016 14:00:26 +0000 (09:00 -0500)]
Fix build

Change-Id: I61a63e66831bbbcade17b3656f9ec18ced8ad628

8 years agoMerge "Make user provisioning state SystemApi" into nyc-dev
Benjamin Franz [Tue, 23 Feb 2016 13:51:06 +0000 (13:51 +0000)]
Merge "Make user provisioning state SystemApi" into nyc-dev

8 years agoMake user provisioning state SystemApi
Benjamin Franz [Fri, 19 Feb 2016 14:19:05 +0000 (14:19 +0000)]
Make user provisioning state SystemApi

These APIs are used by the SUW. To go with the convention that all SUW
APIs should be SystemApi, adding it to these ones.

Bug: 25858670
Change-Id: Icffc9cdc13fa87da3543d92308f87dd0c9764c81

8 years agoMerge "add @SystemApi to WEBVIEW_MULTIPROCESS to enable it to be used in WebView...
Toby Sargeant [Tue, 23 Feb 2016 10:35:08 +0000 (10:35 +0000)]
Merge "add @SystemApi to WEBVIEW_MULTIPROCESS to enable it to be used in WebView glue" into nyc-dev

8 years agoMerge "Update javadoc of DISALLOW_OUTGOING_CALLS" into nyc-dev
Tony Mak [Tue, 23 Feb 2016 10:24:49 +0000 (10:24 +0000)]
Merge "Update javadoc of DISALLOW_OUTGOING_CALLS" into nyc-dev

8 years agoMerge "Add a unit test for MessageUtils." into mm-wireless-dev
Lorenzo Colitti [Tue, 23 Feb 2016 07:49:06 +0000 (07:49 +0000)]
Merge "Add a unit test for MessageUtils." into mm-wireless-dev
am: 6f027b4f06

* commit '6f027b4f0651837877e0f291bbf121436dfe3958':
  Add a unit test for MessageUtils.

8 years agoMerge "Add a unit test for MessageUtils." into mm-wireless-dev
Lorenzo Colitti [Tue, 23 Feb 2016 07:43:39 +0000 (07:43 +0000)]
Merge "Add a unit test for MessageUtils." into mm-wireless-dev

8 years agoMerge "Stop unexpected truncation of suggestion items." into nyc-dev
Seigo Nonaka [Tue, 23 Feb 2016 06:26:40 +0000 (06:26 +0000)]
Merge "Stop unexpected truncation of suggestion items." into nyc-dev

8 years agoMerge "Cleanup error handling in jobs." into nyc-dev
Tomasz Mikolajewski [Tue, 23 Feb 2016 06:00:09 +0000 (06:00 +0000)]
Merge "Cleanup error handling in jobs." into nyc-dev

8 years agoMerge branch 'nyc-dev' of /usr/local/google/game/mirror/googleplex-android_googlesour...
Wei Wang [Tue, 23 Feb 2016 05:14:27 +0000 (05:14 +0000)]
Merge branch 'nyc-dev' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev

8 years agoMerge "Disallow duplicate listeners for WifiScanner." into mm-wireless-dev
Wei Wang [Tue, 23 Feb 2016 05:13:19 +0000 (05:13 +0000)]
Merge "Disallow duplicate listeners for WifiScanner." into mm-wireless-dev
am: 3c0d65de0b

* commit '3c0d65de0bbd7889f340aca4a45e55972de5896f':
  Disallow duplicate listeners for WifiScanner.

8 years agoMerge "Don't enable move to for non deletable selections." into nyc-dev
Steve McKay [Tue, 23 Feb 2016 05:12:38 +0000 (05:12 +0000)]
Merge "Don't enable move to for non deletable selections." into nyc-dev

8 years agoMerge "Disallow duplicate listeners for WifiScanner." into mm-wireless-dev
Wei Wang [Tue, 23 Feb 2016 05:09:38 +0000 (05:09 +0000)]
Merge "Disallow duplicate listeners for WifiScanner." into mm-wireless-dev

8 years agoDon't enable move to for non deletable selections.
Steve McKay [Tue, 23 Feb 2016 02:38:09 +0000 (18:38 -0800)]
Don't enable move to for non deletable selections.

Bug: 27135562
Change-Id: Id09b4c9d4f9836a4e5b2f66b8cbad63be9bb62b3

8 years agoMerge "Fix issue #26695393: Remove NEW_PICTURE and NEW_VIDEO broadcast" into nyc-dev
Dianne Hackborn [Tue, 23 Feb 2016 03:26:47 +0000 (03:26 +0000)]
Merge "Fix issue #26695393: Remove NEW_PICTURE and NEW_VIDEO broadcast" into nyc-dev

8 years agoMerge "Add ability to separately disable light and deep idle." into nyc-dev
Dianne Hackborn [Tue, 23 Feb 2016 03:26:35 +0000 (03:26 +0000)]
Merge "Add ability to separately disable light and deep idle." into nyc-dev

8 years agoMerge "Unload logic for generic and keyphrase sound models." into nyc-dev
Arunesh Mishra [Tue, 23 Feb 2016 03:11:17 +0000 (03:11 +0000)]
Merge "Unload logic for generic and keyphrase sound models." into nyc-dev

8 years agoMerge "Expose removed permissions flag as system API" into nyc-dev
Svetoslav Ganov [Tue, 23 Feb 2016 02:21:00 +0000 (02:21 +0000)]
Merge "Expose removed permissions flag as system API" into nyc-dev

8 years agoIpConfigStore: New constructor to accept writer
Roshan Pius [Tue, 23 Feb 2016 02:19:40 +0000 (02:19 +0000)]
IpConfigStore: New constructor to accept writer
am: 718df42b23

* commit '718df42b23e7913dad7f9520a2f2c6810c33c956':
  IpConfigStore: New constructor to accept writer

8 years agoExpose removed permissions flag as system API
Svet Ganov [Tue, 23 Feb 2016 01:20:35 +0000 (17:20 -0800)]
Expose removed permissions flag as system API

There are some permissions that were removed from the platform
and guard nothing but legacy apps may be checking them before
calling APIs. Hence, these apps should get the permissions as
expected despite them being a no-op. To address this the platform
declares removed permissions as normal permissions that are hidden
such that legacy apps can always get them. These permissions are
not shown in the UI. Play needs a way to filter out these
permissions like the platform as they have permissions UI too.

bug:23361760

Change-Id: I10f442dfc09a299ddc5480d8bf2db0bd786aec62

8 years agoCleanup error handling in jobs.
Tomasz Mikolajewski [Thu, 18 Feb 2016 07:45:44 +0000 (16:45 +0900)]
Cleanup error handling in jobs.

Change-Id: Icf6a7aad1b84dc92285064810776239e93494e38

8 years agoMake android.media.AudioFormat parcelable
Jean-Michel Trivi [Tue, 23 Feb 2016 01:12:15 +0000 (17:12 -0800)]
Make android.media.AudioFormat parcelable

Bug 22876530

Change-Id: If027715aad32ce8796a7e223ba51c301a3dd1192

8 years agoMerge "Fixed bug with non-focusable stack activity not displaying on start." into...
Wale Ogunwale [Tue, 23 Feb 2016 01:25:03 +0000 (01:25 +0000)]
Merge "Fixed bug with non-focusable stack activity not displaying on start." into nyc-dev

8 years agoIpConfigStore: New constructor to accept writer
Roshan Pius [Tue, 23 Feb 2016 01:06:47 +0000 (17:06 -0800)]
IpConfigStore: New constructor to accept writer

Add a new constructor to accept a DelayeDiskWrite object from the
caller.

BUG: 27293150
Change-Id: I13fb86c76ee5a0d05b45fec0c42b7e1b2233ee76
TEST: `runtest frameworks-wifi`

8 years agoPackageManager: add Vulkan system features
Jesse Hall [Fri, 5 Feb 2016 02:41:33 +0000 (18:41 -0800)]
PackageManager: add Vulkan system features

FEATURE_VULKAN_HARDWARE_FEATURES describes the feature set supported
by the device hardware and driver. FEATURE_VULKAN_HARDWARE_VERSION
describes the Vulkan API version supported by the driver, which may be
lower than the API version supported by a particular Android release.

Bug: 26583896
Change-Id: Ia3e6be496abf631cb677eb838d632d3c7b4dd24b

8 years agoMerge "Added fake shadows in order to have the shadow nicely fade in" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 00:59:05 +0000 (00:59 +0000)]
Merge "Added fake shadows in order to have the shadow nicely fade in" into nyc-dev

8 years agoMerge "Fixed the usage of the menu key to unlock" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 00:58:51 +0000 (00:58 +0000)]
Merge "Fixed the usage of the menu key to unlock" into nyc-dev

8 years agoMerge "Fixed a bug where the numpad wasn't working correctly" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 00:56:08 +0000 (00:56 +0000)]
Merge "Fixed a bug where the numpad wasn't working correctly" into nyc-dev

8 years agoMerge "Allow dismissal of sensitive notification" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 00:55:58 +0000 (00:55 +0000)]
Merge "Allow dismissal of sensitive notification" into nyc-dev

8 years agoMerge "Fixed a bug with public notifications" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 00:55:47 +0000 (00:55 +0000)]
Merge "Fixed a bug with public notifications" into nyc-dev

8 years agoMerge "Fixed a bug where the dozemode was incorrectly applied" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 00:55:37 +0000 (00:55 +0000)]
Merge "Fixed a bug where the dozemode was incorrectly applied" into nyc-dev

8 years agoMerge "Made the Chronometer able to count downwards" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 00:55:25 +0000 (00:55 +0000)]
Merge "Made the Chronometer able to count downwards" into nyc-dev

8 years agoMerge "Fix positioning in path fallback case" into nyc-dev
Chris Craik [Tue, 23 Feb 2016 00:54:28 +0000 (00:54 +0000)]
Merge "Fix positioning in path fallback case" into nyc-dev

8 years agoAdded fake shadows in order to have the shadow nicely fade in
Selim Cinek [Sat, 20 Feb 2016 03:32:22 +0000 (19:32 -0800)]
Added fake shadows in order to have the shadow nicely fade in

Bug: 26743157
Change-Id: I21c51aa3175276f7edeed4b6df6b8730909b6051

8 years agoMerge "Moving recent tasks and images to /data/system_ce" into nyc-dev
Suprabh Shukla [Tue, 23 Feb 2016 00:53:05 +0000 (00:53 +0000)]
Merge "Moving recent tasks and images to /data/system_ce" into nyc-dev

8 years agoFix positioning in path fallback case
Chris Craik [Tue, 23 Feb 2016 00:42:24 +0000 (16:42 -0800)]
Fix positioning in path fallback case

bug:26923968
Change-Id: Iaf686fb69b629cf5c8762188073e57c8664150a8

8 years agoMerge "TIF: Add information of TvInputHardwareManager to dumpsys" into nyc-dev
Yang Ren [Tue, 23 Feb 2016 00:35:24 +0000 (00:35 +0000)]
Merge "TIF: Add information of TvInputHardwareManager to dumpsys" into nyc-dev

8 years agoAdd ability to separately disable light and deep idle.
Dianne Hackborn [Mon, 22 Feb 2016 20:20:13 +0000 (12:20 -0800)]
Add ability to separately disable light and deep idle.

(Previously called "full" idle is now referred to as "deep" idle.)

We now keep separate enabled states for light and full idle
modes, and shell commands dealing with them now include an
argument to specify which they should impact.

Change-Id: Idf6d3d4bd85f800ebc034d97f57863351138fb4a

8 years agoMerge "Rename suppressal to suppression." into nyc-dev
Abhijith Shastry [Tue, 23 Feb 2016 00:11:26 +0000 (00:11 +0000)]
Merge "Rename suppressal to suppression." into nyc-dev

8 years agoRename suppressal to suppression.
Abhijith Shastry [Tue, 23 Feb 2016 00:07:14 +0000 (16:07 -0800)]
Rename suppressal to suppression.

BUG: 26989170
Change-Id: Iafa21b885f7df7f5ec5e46f3fad095cf1a531cfc

8 years agoFixed the usage of the menu key to unlock
Selim Cinek [Sat, 20 Feb 2016 01:25:08 +0000 (17:25 -0800)]
Fixed the usage of the menu key to unlock

The menu key was not unlocking the keyguard properly
and didn't hide the notifications.

Bug: 26539875
Change-Id: I9dd89767f00d29c15d1d4e840a1ab22d59e58c8d

8 years agoFixed a bug where the numpad wasn't working correctly
Selim Cinek [Sat, 20 Feb 2016 00:16:54 +0000 (16:16 -0800)]
Fixed a bug where the numpad wasn't working correctly

Also accepting the enter key now from the numpad as a
confirm key.

Bug: 27108451
Change-Id: I63dbd4b6cad3d2dce74e297dcb7abad9c5e66cbe

8 years agoAllow dismissal of sensitive notification
Selim Cinek [Fri, 19 Feb 2016 23:16:33 +0000 (15:16 -0800)]
Allow dismissal of sensitive notification

If the general setting is not to hide sensitive information
we allow the user to dismiss it.

Bug: 26328503
Change-Id: Ibea5d94e544291f00d8a2923b8cbf14170510bd8

8 years agoFixed a bug with public notifications
Selim Cinek [Fri, 19 Feb 2016 21:46:55 +0000 (13:46 -0800)]
Fixed a bug with public notifications

Public notification titles were incorrectly modified when
the notification wasn't autoredacted (i.e screenshot).
This also lead to the doze mode not working correctly anymore
as notifications were colored.

Bug: 24866646
Change-Id: I3d4cdb0e13cfbf3fb8082b930936260d7c4749af

8 years agoFixed a bug where the dozemode was incorrectly applied
Selim Cinek [Fri, 19 Feb 2016 20:22:33 +0000 (12:22 -0800)]
Fixed a bug where the dozemode was incorrectly applied

This could lead to invisible white text.

Bug: 27147160
Change-Id: I1196c251c795a7e271545405fb3936bcbb84cb19

8 years agoMade the Chronometer able to count downwards
Selim Cinek [Fri, 19 Feb 2016 01:12:57 +0000 (17:12 -0800)]
Made the Chronometer able to count downwards

Bug: 26862188
Change-Id: I3a4a34ffccdbcbcb8001b1894ce47bb75b11821d

8 years agoBind background services to the top app correctly.
Tim Murray [Thu, 18 Feb 2016 22:59:22 +0000 (14:59 -0800)]
Bind background services to the top app correctly.

bug 27187310

Change-Id: I7d1ff989d7d36319b12dc20e3b25a47303729600

8 years agoMerge "TIF: Add android.permission.READ_TV_LISTINGS" into nyc-dev
Jae Seo [Mon, 22 Feb 2016 23:44:46 +0000 (23:44 +0000)]
Merge "TIF: Add android.permission.READ_TV_LISTINGS" into nyc-dev

8 years agoFix issue #26695393: Remove NEW_PICTURE and NEW_VIDEO broadcast
Dianne Hackborn [Mon, 22 Feb 2016 21:55:34 +0000 (13:55 -0800)]
Fix issue #26695393: Remove NEW_PICTURE and NEW_VIDEO broadcast

Ignored!  Removed!  A non-broadcast!

Any attempt to send these will be silently (except a log)
ignored.

Change-Id: Ia19357d4c90fdcd18e45f2b41c57e654ef94edb1

8 years agoMerge "Fix build breakage." into nyc-dev
Yohei Yukawa [Mon, 22 Feb 2016 23:22:44 +0000 (23:22 +0000)]
Merge "Fix build breakage." into nyc-dev

8 years agoMerge "Support persist.sys.audit_safemode" into nyc-dev
Sami Tolvanen [Mon, 22 Feb 2016 23:22:28 +0000 (23:22 +0000)]
Merge "Support persist.sys.audit_safemode" into nyc-dev

8 years agoUnload logic for generic and keyphrase sound models.
Arunesh Mishra [Mon, 22 Feb 2016 02:10:28 +0000 (18:10 -0800)]
Unload logic for generic and keyphrase sound models.

 When delete is called, now the STH unloads the corresponding models.

Fix bug with keyphrase where a delete call didn't unload (or stop)
the keyphrase model.

Bug: 27279380
Change-Id: Ia34f713d2aecef4102c0f0ccc57b8d2e5febe4bb

8 years agoMoving recent tasks and images to /data/system_ce
Suprabh Shukla [Thu, 11 Feb 2016 02:45:12 +0000 (18:45 -0800)]
Moving recent tasks and images to /data/system_ce

Moved user sensitive recents data to the credential encrypted directory
/data/system_ce. Since this directory is not available before the user
is unlocked, and unavailable task ids are needed to be known before
assigning an id to a new task, this change adds a file in /data/system_de
for each user, to store the ids of the tasks present in /data/system_ce.

Bug: b/24569398
Change-Id: I340d1abe23e2594e2cee4bff89a697bd8dc61fc7

8 years agoFix build breakage.
Yohei Yukawa [Mon, 22 Feb 2016 23:11:49 +0000 (15:11 -0800)]
Fix build breakage.

This follows up to my previous CL [1], which forgot to update
BridgeIInputMethodManager.java (again!).

  [1] I56934f18e30d90fcdf77bcbb0c35a92a5feb1b82
      05c25f8a3a033816ac25aa5cd7db5b1ab495bc3f

Bug: 25373872
Change-Id: I0643069fd0b677115c89c340b7a23f1d12bd7988

8 years agoMerge "Limit scheduled jobs to 100 per app" into nyc-dev
Chris Tate [Mon, 22 Feb 2016 23:10:23 +0000 (23:10 +0000)]
Merge "Limit scheduled jobs to 100 per app" into nyc-dev

8 years agoMerge "Revert "Add option to allow key validity after fingerprint enrollment."" into...
Shawn Willden [Mon, 22 Feb 2016 23:00:49 +0000 (23:00 +0000)]
Merge "Revert "Add option to allow key validity after fingerprint enrollment."" into nyc-dev

8 years agoRevert "Add option to allow key validity after fingerprint enrollment."
Shawn Willden [Mon, 22 Feb 2016 22:59:34 +0000 (22:59 +0000)]
Revert "Add option to allow key validity after fingerprint enrollment."

This reverts commit ada0fc1b05902b11401094b15480377d1b6c5a35.

Change-Id: I934b6e6af49ab680af726c544f0193dfcb80054e

8 years agoMerge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev...
Akshay Thakker [Mon, 22 Feb 2016 22:53:27 +0000 (22:53 +0000)]
Merge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev am: e210c99809 am: 768e1df375
am: 7e65e5c681  -s ours

* commit '7e65e5c681cc67dab31762cfce7dada402491f2e':
  DO NOT MERGE Fix for syncs being dropped when appIdle is on

8 years agoMerge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev...
Akshay Thakker [Mon, 22 Feb 2016 22:46:59 +0000 (22:46 +0000)]
Merge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev am: e210c99809
am: 768e1df375

* commit '768e1df37559c580ede46574bb1c583b0705375a':
  DO NOT MERGE Fix for syncs being dropped when appIdle is on

8 years agoMerge "Implement wildcard-host policy in reference autoVerify implementation" into...
Chris Tate [Mon, 22 Feb 2016 22:41:36 +0000 (22:41 +0000)]
Merge "Implement wildcard-host policy in reference autoVerify implementation" into nyc-dev

8 years agoMerge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev
Akshay Thakker [Mon, 22 Feb 2016 22:39:53 +0000 (22:39 +0000)]
Merge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev
am: e210c99809

* commit 'e210c9980946b440bc6f7d57fef18c7fac223d3a':
  DO NOT MERGE Fix for syncs being dropped when appIdle is on

8 years agoMerge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev
Akshay Thakker [Mon, 22 Feb 2016 22:27:24 +0000 (22:27 +0000)]
Merge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev

8 years agoDon't show UNLOCK button when there are no users.
Vadim Tryshev [Wed, 10 Feb 2016 22:11:03 +0000 (14:11 -0800)]
Don't show UNLOCK button when there are no users.

Alternate lock screen shows UNLOCK button in the middle of an
empty screen before any user has been created. See the screenshot
in the bug.

This fixes it. The approach is similar to the check in
KeyguardViewMediator.handleHide().

Bug: 27109342
Change-Id: I25536364b2c456d6fd55c79de7f25d2b0667e26f

8 years agoMerge "Restrict dock sides after rotation" into nyc-dev
Jorim Jaggi [Mon, 22 Feb 2016 22:07:53 +0000 (22:07 +0000)]
Merge "Restrict dock sides after rotation" into nyc-dev

8 years agoScale volume panel with density changes.
Julia Reynolds [Fri, 19 Feb 2016 21:02:01 +0000 (16:02 -0500)]
Scale volume panel with density changes.

Also remove invisible settings buttons.

Bug: 26846853
Change-Id: I15722f5705a7718a90033d24c185eb21c8c41bc9

8 years agoFixed bug with non-focusable stack activity not displaying on start.
Wale Ogunwale [Mon, 22 Feb 2016 22:00:56 +0000 (14:00 -0800)]
Fixed bug with non-focusable stack activity not displaying on start.

Activity manager normally singals window manager that it is okay to
start the app transition process for an activity we are launching
during the resume process. However, the activity will not be resumed
if the activity is been launched in a non-focusable stack
(e.g. pinned stack). So, the app transtion will not start and it will
not be visible until the app transition time's out in window manager.
Activity manager now tells window manager to execute app transitions
if we are launching an activity in non-focusable stack.

Bug: 27224884
Change-Id: I35245fceb2637b927e7885b2c02daa1d55deaabb

8 years agoSupport persist.sys.audit_safemode
Sami Tolvanen [Fri, 5 Feb 2016 22:30:45 +0000 (14:30 -0800)]
Support persist.sys.audit_safemode

Don't leave safe more if persist.sys.audit_safemode is set, unless the
current build date is newer than the specified value.

This allows us to keep the device in safe mode across reboots until an
OTA has been applied or user data is wiped.

Bug: 26902605
Change-Id: I781c3059ea8d4fb2f0c923e4488b1932d69678d3
(cherry picked from commit ee2b49283261f7b4518ec7c98f568f883f817c9d)

8 years agoRestrict dock sides after rotation
Jorim Jaggi [Sat, 20 Feb 2016 01:12:19 +0000 (17:12 -0800)]
Restrict dock sides after rotation

Bug: 27167078
Change-Id: If51626b75321eebc277eb2399ee753ffe489642b

8 years agoMerge "Unify windowGainedFocus() and startInput()." into nyc-dev
Yohei Yukawa [Mon, 22 Feb 2016 21:52:55 +0000 (21:52 +0000)]
Merge "Unify windowGainedFocus() and startInput()." into nyc-dev

8 years agoMerge "Add create_trivial_array" into nyc-dev
Chris Craik [Mon, 22 Feb 2016 21:40:57 +0000 (21:40 +0000)]
Merge "Add create_trivial_array" into nyc-dev

8 years agoMerge "Fix leaking animation" into nyc-dev
Jorim Jaggi [Mon, 22 Feb 2016 21:18:31 +0000 (21:18 +0000)]
Merge "Fix leaking animation" into nyc-dev

8 years agoFix leaking animation
Jorim Jaggi [Sat, 20 Feb 2016 03:33:26 +0000 (19:33 -0800)]
Fix leaking animation

Clear animation when destroying window surface.

Because we are not stepping in animations for windows if they don't
have a surface, we can't use it as a detached wallpaper target
animation.

When the surface was destroyed while animating,
winAnimator.mAnimating was still true, and never got false, because
we didn't call stepAnimation on the WindowAnimator anymore.

Thus, we were constantly animating, using a lot of battery (surface
flinger was constantly pushing frames) and impacting overall system
performance.

Bug: 27276043
Change-Id: I8b0943da0908c85740dc1113aedb573fb440f162

8 years agoMerge "Allow button events in ambient." into nyc-dev
Anthony Hugh [Mon, 22 Feb 2016 20:46:42 +0000 (20:46 +0000)]
Merge "Allow button events in ambient." into nyc-dev

8 years agoMerge "Remove night mode from developer settings" into nyc-dev
Alan Viverette [Mon, 22 Feb 2016 20:43:59 +0000 (20:43 +0000)]
Merge "Remove night mode from developer settings" into nyc-dev

8 years agoLimit scheduled jobs to 100 per app
Christopher Tate [Fri, 19 Feb 2016 02:36:08 +0000 (18:36 -0800)]
Limit scheduled jobs to 100 per app

Packages that are entitled to schedule jobs on behalf of other uids
are not subject to the limit.  Also break the JobStore's monolithic
set of jobs into per-uid slices for efficiency and orthogonality.

Bug 27150350

Change-Id: I8f5f718bf200d55f9977a6fc53b7f617e7652ad9

8 years agoUnify windowGainedFocus() and startInput().
Yohei Yukawa [Mon, 22 Feb 2016 20:41:17 +0000 (12:41 -0800)]
Unify windowGainedFocus() and startInput().

This is a safe refactoring that changes nothing.

In order to improve the keyboard dismissal lags [1][2], we have used
IMMS#windowGainedFocus() as a combined event to do startInput() in
certain situations.

To make the intent of those CLs clear, this CL renames
IMMS#windowGainedFocus() to IMMS#startInputOrWindowGainedFocus().  Note
that these are @hide internal IPC protocols.  Hence this change is never
observable to application developers.

 [1] I8494cbd6e19e2ab6db03f2463d9906680dda058b
     a82ba54b0bbc3ff41f29db3998806cb45b261d58
 [2] Icb58bef75ef4bf9979f3e2ba88cea20db2e2c3fb
     7663d80f6b6fd6ca7a736c3802013a09c0abdeb9

Bug: 25373872
Change-Id: I56934f18e30d90fcdf77bcbb0c35a92a5feb1b82

8 years agoAllow button events in ambient.
Joe LaPenna [Fri, 22 Jan 2016 15:11:49 +0000 (07:11 -0800)]
Allow button events in ambient.

See thread: "key presses & Ambient"

Bluetooth media button presses and Stem buttons were being rejected in ambient.  This change allows those keys while disabling touch events while in ambient.

BUG: 25964771
BUG: 26524301

Change-Id: I914edd447c38678a06d27677be4597c0ee384635
(cherry picked from commit 7528f57c4ddbde1c6d0a2a352bd8a1af43711013)

8 years agoMerge "Fix crash on QS edit immediate collapse" into nyc-dev
Jason Monk [Mon, 22 Feb 2016 20:34:26 +0000 (20:34 +0000)]
Merge "Fix crash on QS edit immediate collapse" into nyc-dev

8 years agoAdd CREATOR class to Selection.
Steve McKay [Fri, 19 Feb 2016 18:57:08 +0000 (10:57 -0800)]
Add CREATOR class to Selection.

Bug: 27236334
Change-Id: I5f50cd63b850785194fec2db3eb68e40aa7af34f

8 years agoFix crash on QS edit immediate collapse
Jason Monk [Mon, 22 Feb 2016 20:18:36 +0000 (15:18 -0500)]
Fix crash on QS edit immediate collapse

Bug: 27164002
Change-Id: Idd47716c08987eba14826c7b1f428c3231f9fdbd

8 years agoMerge "Add option to allow key validity after fingerprint enrollment." into nyc-dev
Shawn Willden [Mon, 22 Feb 2016 20:12:41 +0000 (20:12 +0000)]
Merge "Add option to allow key validity after fingerprint enrollment." into nyc-dev

8 years agoMerge "Move directory and roots support to own ui bots." into nyc-dev
Steve McKay [Mon, 22 Feb 2016 20:01:46 +0000 (20:01 +0000)]
Merge "Move directory and roots support to own ui bots." into nyc-dev

8 years agoMerge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev...
Adam Lesinski [Mon, 22 Feb 2016 19:56:20 +0000 (19:56 +0000)]
Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev am: d201f48687  -s ours am: ab4d629294  -s ours
am: 202fbf2c34  -s ours

* commit '202fbf2c34cee4d3b66fd26dec7f49259ef638b5':
  DO NOT MERGE ANYWHERE: Hack to get devices booting again.

8 years agoMerge "DO NOT MERGE ANYWHERE: Don\'t change screen on time on time changes" into...
Adam Lesinski [Mon, 22 Feb 2016 19:53:54 +0000 (19:53 +0000)]
Merge "DO NOT MERGE ANYWHERE: Don\'t change screen on time on time changes" into mnc-dr-dev am: 3e439db8c8  -s ours am: 83fd156e21  -s ours
am: 5c918ee029  -s ours

* commit '5c918ee029276efe090e82086fd4089d7686e60f':
  DO NOT MERGE ANYWHERE: Don't change screen on time on time changes

8 years agoMove directory and roots support to own ui bots.
Steve McKay [Fri, 19 Feb 2016 20:57:05 +0000 (12:57 -0800)]
Move directory and roots support to own ui bots.

Also...sorry, snowball, don't automatically open folders
    that are created in Files app. Only do this in DocumentsActivity.

Change-Id: I271655fd3566496eced4aaa7a44d5110233150a0