OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Fix drawColor/drawPaint bounds" into nyc-dev
Chris Craik [Tue, 23 Feb 2016 23:33:51 +0000 (23:33 +0000)]
Merge "Fix drawColor/drawPaint bounds" into nyc-dev

8 years agoMerge "Copy shared accounts after the user is unlocked" into nyc-dev
Fyodor Kupolov [Tue, 23 Feb 2016 23:05:38 +0000 (23:05 +0000)]
Merge "Copy shared accounts after the user is unlocked" into nyc-dev

8 years agoMerge "DO NOT MERGE: Add subscription specific TelephonyManager calls." into mm-wirel...
Shishir Agrawal [Tue, 23 Feb 2016 23:04:25 +0000 (23:04 +0000)]
Merge "DO NOT MERGE: Add subscription specific TelephonyManager calls." into mm-wireless-dev
am: 29c490bcd3  -s ours

* commit '29c490bcd31cda210e1730649ba4fef02d74c69d':
  DO NOT MERGE: Add subscription specific TelephonyManager calls.

8 years agoMerge "DO NOT MERGE: Add subscription specific TelephonyManager calls." into mm-wirel...
Shishir Agrawal [Tue, 23 Feb 2016 22:59:23 +0000 (22:59 +0000)]
Merge "DO NOT MERGE: Add subscription specific TelephonyManager calls." into mm-wireless-dev

8 years agoMerge "Support running AVD on UI thread" into nyc-dev
Doris Liu [Tue, 23 Feb 2016 22:43:52 +0000 (22:43 +0000)]
Merge "Support running AVD on UI thread" into nyc-dev

8 years agoSupport running AVD on UI thread
Doris Liu [Tue, 23 Feb 2016 00:51:40 +0000 (16:51 -0800)]
Support running AVD on UI thread

By default, AVD animates on RT thread. But since in some cases there's a
need for a finer control on when the frame update for the animation should
happen, such as coordiating the AVD animation with other animations that
run on UI thread, we are providing a way to force the AVD to run on UI
thread.

Bug: 27278616
Change-Id: I372ecd3dc52e3fa0bdce3a1e9c19443f9b199027

8 years agoDO NOT MERGE Bluetooth: Restrict gain for Absolute volume case am: 9ef7634fa9 am...
Liejun Tao [Tue, 23 Feb 2016 22:14:24 +0000 (22:14 +0000)]
DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case am: 9ef7634fa9 am: d46bd91531
am: 2fb16b066b  -s ours

* commit '2fb16b066b3e4e22ee489f31f75170ebc052f0ec':
  DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case

8 years agoMerge "Scale phone state icons." into nyc-dev
Anthony Chen [Tue, 23 Feb 2016 22:11:16 +0000 (22:11 +0000)]
Merge "Scale phone state icons." into nyc-dev

8 years agoDO NOT MERGE Bluetooth: Restrict gain for Absolute volume case am: 9ef7634fa9
Liejun Tao [Tue, 23 Feb 2016 22:00:37 +0000 (22:00 +0000)]
DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case am: 9ef7634fa9
am: d46bd91531

* commit 'd46bd9153144f905138e0b609c3d8252a5d5505e':
  DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case

8 years agoDO NOT MERGE Bluetooth: Restrict gain for Absolute volume case
Liejun Tao [Tue, 23 Feb 2016 21:54:00 +0000 (21:54 +0000)]
DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case
am: 9ef7634fa9

* commit '9ef7634fa9b4e9cf9ea9380aee8b7dfd71f24b57':
  DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case

8 years agoMerge "Emulator: Replace ro.kernel.qemu.gles with qemu.gles" into nyc-dev
Bo Hu [Tue, 23 Feb 2016 21:46:31 +0000 (21:46 +0000)]
Merge "Emulator: Replace ro.kernel.qemu.gles with qemu.gles" into nyc-dev

8 years agoMerge changes from topic \'notification\' into mm-wireless-dev
Pankaj Kanwar [Tue, 23 Feb 2016 21:40:52 +0000 (21:40 +0000)]
Merge changes from topic \'notification\' into mm-wireless-dev
am: 2339b786c7

* commit '2339b786c77fb75f2f123f592195579da20554ca':
  Changing string in notification when data is blocked. b/25209821
  Changing string in notification when data is blocked. b/25209821

8 years agoMerge "Removed warning icons and use friendlier locale names" into nyc-dev
Mihai Niță [Tue, 23 Feb 2016 21:37:03 +0000 (21:37 +0000)]
Merge "Removed warning icons and use friendlier locale names" into nyc-dev

8 years agoMerge changes from topic 'notification' into mm-wireless-dev
Pankaj Kanwar [Tue, 23 Feb 2016 21:32:15 +0000 (21:32 +0000)]
Merge changes from topic 'notification' into mm-wireless-dev

* changes:
  Changing string in notification when data is blocked. b/25209821
  Changing string in notification when data is blocked. b/25209821

8 years agoMake getBatteryUptimeLocked protected so it can be mocked.
Joe Onorato [Tue, 23 Feb 2016 21:25:10 +0000 (13:25 -0800)]
Make getBatteryUptimeLocked protected so it can be mocked.

Also fix test names.

Change-Id: I43477e61c22cd36735214951c45c52b39095e1b5

8 years agoRemoved warning icons and use friendlier locale names
Mihai Nita [Tue, 23 Feb 2016 00:40:26 +0000 (16:40 -0800)]
Removed warning icons and use friendlier locale names

* Removed warning icons in locale list (b/26710677)
* Use getDisplayNameWithDialect() instead of getDisplayName()
  for the locale names (b/27066642)
* Set proper locale for the language labels (b/27130516)
* Fixed build warning in LocaleHelper (b/27148053)

Bug: 26710677
Bug: 27066642
Bug: 27130516
Bug: 27148053
Change-Id: I149a3675262b286c8b740d2ad5b02f4df31316ec

8 years agoMerge changes I4e45afed,I2ea19f9a,I922d6f38 into nyc-dev
Joe Onorato [Tue, 23 Feb 2016 21:06:22 +0000 (21:06 +0000)]
Merge changes I4e45afed,I2ea19f9a,I922d6f38 into nyc-dev

* changes:
  Add unit tests for BatteryStatsImpl.
  Turn down the logging a little bit.
  Turn down the logging a little bit.

8 years agoMerge "Offer to cache ringtones in system DE storage." into nyc-dev
Jeff Sharkey [Tue, 23 Feb 2016 20:57:45 +0000 (20:57 +0000)]
Merge "Offer to cache ringtones in system DE storage." into nyc-dev

8 years agoMerge "Clear calling identity on Session.startingMovingTask" into nyc-dev
Wale Ogunwale [Tue, 23 Feb 2016 20:50:49 +0000 (20:50 +0000)]
Merge "Clear calling identity on Session.startingMovingTask" into nyc-dev

8 years agoMerge "TIF: Add @NonNull for Programs.Genres.encode/decode" into nyc-dev
Dongwon Kang [Tue, 23 Feb 2016 20:45:21 +0000 (20:45 +0000)]
Merge "TIF: Add @NonNull for Programs.Genres.encode/decode" into nyc-dev

8 years agoAdd unit tests for BatteryStatsImpl.
Joe Onorato [Tue, 9 Feb 2016 00:49:39 +0000 (16:49 -0800)]
Add unit tests for BatteryStatsImpl.

- Add a Clocks interface to wrap SystemClock.uptimeMillis and
  SystemClock.elapsedRealtime.
- Make the inner classes static so they can be created independently,
  which meant passing explicit pointers to the BatteryStatsImpl and
  the Uid objects in a lot of places.
- Make several fields protected so they can be accessed by the tests (they are
  still @hidden)
- Add a test suite for the battery stats.
- Add the tests

Change-Id: I4e45afedc64f7050985c28a7eb4f5c1ddbaa63fa

8 years agoTurn down the logging a little bit.
Joe Onorato [Tue, 2 Feb 2016 02:04:24 +0000 (18:04 -0800)]
Turn down the logging a little bit.

Change-Id: I2ea19f9a7951c215aee98825f9cb2923295a965d

8 years agoTurn down the logging a little bit.
Joe Onorato [Tue, 2 Feb 2016 01:45:03 +0000 (17:45 -0800)]
Turn down the logging a little bit.

Change-Id: I922d6f3895d80292fbf613b90e502cad462bb9ef

8 years agoTIF: Add @NonNull for Programs.Genres.encode/decode
Dongwon Kang [Tue, 23 Feb 2016 18:30:51 +0000 (10:30 -0800)]
TIF: Add @NonNull for Programs.Genres.encode/decode

Bug: 27292029
Change-Id: Ib74f6383f3b0880179b51268e730ea8e88ab20c3

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

8 years agoMerge "Remove @Nullable annotation from getDrawable() methods" into nyc-dev
Alan Viverette [Tue, 23 Feb 2016 20:30:06 +0000 (20:30 +0000)]
Merge "Remove @Nullable annotation from getDrawable() methods" into nyc-dev

8 years agoOffer to cache ringtones in system DE storage.
Jeff Sharkey [Tue, 23 Feb 2016 00:52:45 +0000 (17:52 -0700)]
Offer to cache ringtones in system DE storage.

Ringtones often live on shared media, which is now encrypted with CE
keys and not available until after the user is unlocked.  To improve
the user experience while locked, cache the default ringtone,
notification sound, and alarm sound in a DE storage area.

Bug: 26730753
Change-Id: Ie6ad7790af4c87dd25759df3ed017e3b91a2fb87

8 years agoClear calling identity on Session.startingMovingTask
Wale Ogunwale [Tue, 23 Feb 2016 18:38:35 +0000 (10:38 -0800)]
Clear calling identity on Session.startingMovingTask

This call is comming from the client which doesn't have
the manage task permission required by setFocusTask in AM.

Bug: 27157914
Change-Id: I494a0c44e8fb4316a16bcd44c87bdd8d23e7e6d5

8 years agoRemove @Nullable annotation from getDrawable() methods
Alan Viverette [Tue, 23 Feb 2016 19:59:51 +0000 (14:59 -0500)]
Remove @Nullable annotation from getDrawable() methods

Developers usually do not need to check the result of getDrawable(), so
we shouldn't be annotating it like they do.

Bug: 27134828
Change-Id: I0db0ca806fd89c18781da452fe3f31ef344f3cca

8 years agoMerge "Fix NinePatchDrawable handling of density changes" into nyc-dev
Alan Viverette [Tue, 23 Feb 2016 19:56:22 +0000 (19:56 +0000)]
Merge "Fix NinePatchDrawable handling of density changes" into nyc-dev

8 years agoFix NinePatchDrawable handling of density changes
Alan Viverette [Tue, 23 Feb 2016 19:54:01 +0000 (14:54 -0500)]
Fix NinePatchDrawable handling of density changes

Scaling is now manually applied when the canvas density is not set.

Removes set/getNinePatch accessors that were added in N, since these
are not used and setting the nine patch directly will break padding.
Also removes local NinePatch, which was not necessary.

Bug: 27038114
Change-Id: Ie8b2e485b54d1ed1521081b329a09915fd0a95c1

8 years agoMerge "Camera2: Fix getInternalFormatSizes for depth" into nyc-dev
Chien-Yu Chen [Tue, 23 Feb 2016 19:52:19 +0000 (19:52 +0000)]
Merge "Camera2: Fix getInternalFormatSizes for depth" into nyc-dev

8 years agoMerge "destroyHardwareResources in onStop()" into nyc-dev
John Reck [Tue, 23 Feb 2016 19:45:05 +0000 (19:45 +0000)]
Merge "destroyHardwareResources in onStop()" into nyc-dev

8 years agoMerge "Do not show work challenge when profile is turned off." into nyc-dev
Rubin Xu [Tue, 23 Feb 2016 19:42:02 +0000 (19:42 +0000)]
Merge "Do not show work challenge when profile is turned off." into nyc-dev

8 years ago[NAN] API cleanup - rename FLAGS. [DO NOT MERGE]
Etan Cohen [Tue, 23 Feb 2016 19:11:42 +0000 (19:11 +0000)]
[NAN] API cleanup - rename FLAGS. [DO NOT MERGE]
am: ad3693d59b  -s ours

* commit 'ad3693d59b990f4994f96f6d3ca98cdbfe26723c':
  [NAN] API cleanup - rename FLAGS. [DO NOT MERGE]

8 years agoMerge "Modify the wake reasons data structure(2/2)" into mm-wireless-dev
Roshan Pius [Tue, 23 Feb 2016 19:09:24 +0000 (19:09 +0000)]
Merge "Modify the wake reasons data structure(2/2)" into mm-wireless-dev
am: 2d3bea7f01

* commit '2d3bea7f014a7fa2eff91ce996663059218bf21d':
  Modify the wake reasons data structure(2/2)

8 years agoMerge "Add logic for selecting filename in RenameDocumentFragment - different selecti...
Aga Wronska [Tue, 23 Feb 2016 19:04:03 +0000 (19:04 +0000)]
Merge "Add logic for selecting filename in RenameDocumentFragment - different selection for directory. Prevent test from creating directories in Documents folder." into nyc-dev

8 years agoAdd logic for selecting filename in RenameDocumentFragment - different selection...
Aga Wronska [Tue, 23 Feb 2016 18:49:29 +0000 (10:49 -0800)]
Add logic for selecting filename in RenameDocumentFragment - different selection for directory.
Prevent test from creating directories in Documents folder.

Change-Id: Ib656f8d69cba27b201b5fe67bcb11fa1dec04953

8 years agoScale phone state icons.
Anthony Chen [Tue, 9 Feb 2016 15:42:25 +0000 (07:42 -0800)]
Scale phone state icons.

The status bar icons can all be optionally scaled by the scale factor in
dimens. The phone stat icons had not been updated to include this
scaling logic.

Also allow the spacing between the icons in the mobile signal group to
be adjusted.

Change-Id: I12b35d462599f8a0747477fb280a974ffa77d01c

8 years agoSupport op dumping in new pipeline
Chris Craik [Mon, 22 Feb 2016 21:39:33 +0000 (13:39 -0800)]
Support op dumping in new pipeline

bug:26565102

Change-Id: I266e420a2f18ba9ad62942b8a0de295dfa3a2a88

8 years agoMerge "Using addAssetPathAsSharedLibrary in WebViewDelegate" into nyc-dev
Tao Bai [Tue, 23 Feb 2016 18:52:14 +0000 (18:52 +0000)]
Merge "Using addAssetPathAsSharedLibrary in WebViewDelegate" into nyc-dev

8 years agoMerge "Changed sys-ui manifest to use resizeableActivity attribute..." into nyc-dev
Wale Ogunwale [Tue, 23 Feb 2016 18:37:48 +0000 (18:37 +0000)]
Merge "Changed sys-ui manifest to use resizeableActivity attribute..." into nyc-dev

8 years agoMerge "TIF: Hide android.permission.READ_TV_LISTINGS" into nyc-dev
Jae Seo [Tue, 23 Feb 2016 18:37:40 +0000 (18:37 +0000)]
Merge "TIF: Hide android.permission.READ_TV_LISTINGS" into nyc-dev

8 years agodestroyHardwareResources in onStop()
John Reck [Tue, 23 Feb 2016 18:35:19 +0000 (10:35 -0800)]
destroyHardwareResources in onStop()

Bug: 27286867

This hopefully makes everything fully-deterministic. It should
also fix some old annoyances around Bitmap lifecycle as they will
be released earlier in onStop() instead of waiting for
dispatchDetachedFromWindow() which may never happen.

Change-Id: I6e871760650780e327c0e42f62950c1052dd8019

8 years agoMerge "Fixed MetricsLogger usage." into nyc-dev
Felipe Leme [Tue, 23 Feb 2016 18:33:02 +0000 (18:33 +0000)]
Merge "Fixed MetricsLogger usage." into nyc-dev

8 years agoFixed MetricsLogger usage.
Felipe Leme [Tue, 23 Feb 2016 18:28:55 +0000 (10:28 -0800)]
Fixed MetricsLogger usage.

BUG: 26759986
Change-Id: Ice16c58f09de8778240ae845917e59bf36ccd112

8 years agoMerge "hide the nanos even harder" into nyc-dev
Chris Wren [Tue, 23 Feb 2016 18:25:12 +0000 (18:25 +0000)]
Merge "hide the nanos even harder" into nyc-dev

8 years agoDo not show work challenge when profile is turned off.
Rubin Xu [Tue, 23 Feb 2016 18:21:48 +0000 (18:21 +0000)]
Do not show work challenge when profile is turned off.

When the profile is turned off, the associated user is not running so it
makes no sense to try to unlock the profile challenge.

Also adjust order of activity startup interception so suspend package takes
precedence, as that's a state user cannot recover from by his own actions.

Bug: 26928131
Change-Id: Ibb4c8ce02ba4ed2e5a5b4366cbe7b59d1535dbd7

8 years agoMerge "Fixed a bug where QS could fling up even when collapsing" into nyc-dev
Selim Cinek [Tue, 23 Feb 2016 18:21:09 +0000 (18:21 +0000)]
Merge "Fixed a bug where QS could fling up even when collapsing" into nyc-dev

8 years agoMerge "Created counter (tron_varz_dumpstate_duration) for dumpstate duration." into...
Felipe Leme [Tue, 23 Feb 2016 18:14:26 +0000 (18:14 +0000)]
Merge "Created counter (tron_varz_dumpstate_duration) for dumpstate duration." into nyc-dev

8 years agoMerge "Revive the "Optimizing apps" dialog" into nyc-dev
Nicolas Geoffray [Tue, 23 Feb 2016 18:04:39 +0000 (18:04 +0000)]
Merge "Revive the "Optimizing apps" dialog" into nyc-dev

8 years agoChanged sys-ui manifest to use resizeableActivity attribute...
Wale Ogunwale [Tue, 23 Feb 2016 18:02:58 +0000 (10:02 -0800)]
Changed sys-ui manifest to use resizeableActivity attribute...

Instead of resizeable attribute. resizeableActivity is what is used
for multi-window. The code currently works because it targets N :/

Change-Id: I82f1b1b46f66ea39ae682ed1d45f97bc6247b0bd

8 years agoMerge "Fix RenameDocumentFragment crash on rotation" into nyc-dev
Aga Wronska [Tue, 23 Feb 2016 18:00:11 +0000 (18:00 +0000)]
Merge "Fix RenameDocumentFragment crash on rotation" into nyc-dev

8 years agoMerge "New constant for BUS audio devices" into nyc-dev
Jean-Michel Trivi [Tue, 23 Feb 2016 17:55:28 +0000 (17:55 +0000)]
Merge "New constant for BUS audio devices" into nyc-dev

8 years agoMerge "Remove deprecated APIs DPM.createUser, createAndInitializeUser" into nyc-dev
Philipp Weiß [Tue, 23 Feb 2016 17:53:56 +0000 (17:53 +0000)]
Merge "Remove deprecated APIs DPM.createUser, createAndInitializeUser" into nyc-dev

8 years agoMerge "Initial implementation of logging metrics for bugreport." into nyc-dev
Felipe Leme [Tue, 23 Feb 2016 17:48:54 +0000 (17:48 +0000)]
Merge "Initial implementation of logging metrics for bugreport." into nyc-dev

8 years agoFix RenameDocumentFragment crash on rotation
Aga Wronska [Tue, 23 Feb 2016 01:57:31 +0000 (17:57 -0800)]
Fix RenameDocumentFragment crash on rotation

Bug: 26972374
Change-Id: I820661bc5363fe8ccc3ea39b3e27510907ddf2ef

8 years agoMerge "Add strings for TTS speech pitch seekbar." into nyc-dev
Shweta Chahar [Tue, 23 Feb 2016 17:40:55 +0000 (17:40 +0000)]
Merge "Add strings for TTS speech pitch seekbar." into nyc-dev

8 years agoCreated counter (tron_varz_dumpstate_duration) for dumpstate duration.
Felipe Leme [Tue, 23 Feb 2016 02:07:49 +0000 (18:07 -0800)]
Created counter (tron_varz_dumpstate_duration) for dumpstate duration.

BUG: 26759986
Change-Id: I18534c127b35776a03e31b9d5cd190d864dff9e6

8 years agoInitial implementation of logging metrics for bugreport.
Felipe Leme [Mon, 22 Feb 2016 23:22:20 +0000 (15:22 -0800)]
Initial implementation of logging metrics for bugreport.

This change logs the following user actions:

  - Interactive bug report initiated from power menu.
  - Full bug report initiated from power menu.
  - Bug report canceled using system notification.
  - Bug report details screen open using system notification.
  - Additional Bug report screen shot taken using system notification.
  - User changed bug report name using the details screen.
  - User changed bug report title using the details screen.
  - User changed bug report description using the details screen.
  - Changes made on bug report details screen were saved by user.
  - Changes made on bug report details screen were canceled by user.

BUG: 26759986
Change-Id: I1aae98b87a4dea66a1030a024dd799b97c25dd6d

8 years agoUsing addAssetPathAsSharedLibrary in WebViewDelegate
Tao Bai [Tue, 23 Feb 2016 17:01:28 +0000 (09:01 -0800)]
Using addAssetPathAsSharedLibrary in WebViewDelegate

BUG: 27245306
Change-Id: I346bc526cd9d311c290f61d0de04e33d708b81c4

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 ago[NAN] API cleanup - rename FLAGS. [DO NOT MERGE]
Etan Cohen [Thu, 18 Feb 2016 02:27:43 +0000 (18:27 -0800)]
[NAN] API cleanup - rename FLAGS. [DO NOT MERGE]

Per API guidelines - non-overlapping constants can be (should be)
named with "FLAG".

Bug: 27122760
Change-Id: If8b2c0f9b2818215a64b5635e76731c8fdfd3b8d

8 years agoAdd strings for TTS speech pitch seekbar.
shwetachahar [Tue, 23 Feb 2016 14:21:39 +0000 (14:21 +0000)]
Add strings for TTS speech pitch seekbar.

Bug: 27137452
Change-Id: Id9cb836c0e802444f0cfc611c715d7e3e2c359de

8 years agohide the nanos even harder
Chris Wren [Tue, 23 Feb 2016 16:10:44 +0000 (11:10 -0500)]
hide the nanos even harder

Bug: 26925668
Change-Id: Ic56460926bd62ac41e64f4d37f52d962976ca644

8 years agoMerge "Modify the wake reasons data structure(2/2)" into mm-wireless-dev
Roshan Pius [Tue, 23 Feb 2016 16:08:25 +0000 (16:08 +0000)]
Merge "Modify the wake reasons data structure(2/2)" into mm-wireless-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 agoRevive the "Optimizing apps" dialog
David Brazdil [Fri, 12 Feb 2016 10:56:35 +0000 (10:56 +0000)]
Revive the "Optimizing apps" dialog

Since we do spend some non-trivial time extracting APKs at OTA, we
should show a descriptive dialog. Currently the screen would read
"Optimizing storage" which is misleading.

bug:26813999

Change-Id: I4954e3b486840b5d806db8b45242fdc8ca9d0379

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 agoDO NOT MERGE Bluetooth: Restrict gain for Absolute volume case
Liejun Tao [Wed, 20 Jan 2016 23:52:20 +0000 (17:52 -0600)]
DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case

For the lowest music volume steps 1 and 2, restrict the gain to 50% and
75%. This will avoid the lowest volume steps being too loud for some
accessories. For music volume 0, set phone gain to 0 as some
accessories won't mute on their end.

Change-Id: I24e0fa7be8c8635b428a11c91ea153aad7cec55f
Signed-off-by: Liejun Tao <baibai@motorola.com>
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 agoTIF: Hide android.permission.READ_TV_LISTINGS
Jae Seo [Tue, 23 Feb 2016 05:35:32 +0000 (21:35 -0800)]
TIF: Hide android.permission.READ_TV_LISTINGS

Bug: 21959866
Change-Id: Ie0e36749b8fe86faebadfaab4ebe5847fac3c343

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 agoFixed a bug where QS could fling up even when collapsing
Selim Cinek [Tue, 23 Feb 2016 04:57:43 +0000 (20:57 -0800)]
Fixed a bug where QS could fling up even when collapsing

We previously changed the touch logic to always fling even when
the panel is fully expanded, but that lad to an issue when it didn't
even start to expand.

Bug: 26255211
Change-Id: I8c991a0a19b49eb405b8efc2d69baf29c709b363

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

This reverts commit 512c132f49fc6e8e4fc119f4cf167d33b2393509.

Change-Id: Iac381dfebcfe42f0468569eb2395ebeb97a95887

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