OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Specify path for native PersistableBundle implementation" am: 477fa220b1
Samuel Tan [Thu, 17 Dec 2015 17:52:11 +0000 (09:52 -0800)]
Merge "Specify path for native PersistableBundle implementation" am: 477fa220b1
am: 0bc7647f63

* commit '0bc7647f63bcdf2d63ee71d770f9514a239eaba8':
  Specify path for native PersistableBundle implementation

8 years agoRefactor and improve window layering.
Filip Gruszczynski [Wed, 16 Dec 2015 03:17:09 +0000 (19:17 -0800)]
Refactor and improve window layering.

This CL moves layer calculation into a separate class, so the whole
logic can be encapsulated. It also extracts special cases from the
general loop and instead applies them at the end. This simplifies the
logic in the main algorithm and makes it clearer what needs to happen
for special cases.

Bug: 26144888

Change-Id: I87347bf0198bd0d3cd09e4231b4652ab979f2456

8 years agoMerge "Don't call public non-final getResources() from getAssets()"
Alan Viverette [Thu, 17 Dec 2015 16:38:42 +0000 (16:38 +0000)]
Merge "Don't call public non-final getResources() from getAssets()"

8 years agoFixing minor issue with freeform workspace not showing.
Winson Chung [Thu, 17 Dec 2015 15:27:55 +0000 (10:27 -0500)]
Fixing minor issue with freeform workspace not showing.

- Also slightly tweaking drop target sizes to be a bit smaller

Change-Id: I0e877e64acba5dd165c0d7a2cffb24dea88d673f

8 years agoMerge "Clean-ups for BitmapRegionDecoder"
Matt Sarett [Thu, 17 Dec 2015 15:13:14 +0000 (15:13 +0000)]
Merge "Clean-ups for BitmapRegionDecoder"

8 years agoMerge "Add tests for copying virtual typed files."
Tomasz Mikolajewski [Thu, 17 Dec 2015 13:36:20 +0000 (13:36 +0000)]
Merge "Add tests for copying virtual typed files."

8 years agoMerge "Device or profile owner can let another app manage app restrictions"
Esteban Talavera [Thu, 17 Dec 2015 10:59:16 +0000 (10:59 +0000)]
Merge "Device or profile owner can let another app manage app restrictions"

8 years agoMerge "Adding DPM.reboot"
Mahaver Chopra [Thu, 17 Dec 2015 10:59:01 +0000 (10:59 +0000)]
Merge "Adding DPM.reboot"

8 years agoDevice or profile owner can let another app manage app restrictions
Esteban Talavera [Thu, 10 Dec 2015 16:26:44 +0000 (16:26 +0000)]
Device or profile owner can let another app manage app restrictions

The device or profile owner can allow another
package to set app restrictions for any app in that user

Similar to the way it can give permission to access
CA certificate related APIs from M.

Bug: 22541936
Change-Id: I0c1b0804ad300dfa4fbdc1c7721c5d8653d77861

8 years agoFix AlertDialog.setIcon() not working when called after show() pt.2
Chris Banes [Thu, 17 Dec 2015 10:00:26 +0000 (10:00 +0000)]
Fix AlertDialog.setIcon() not working when called after show() pt.2

BUG: 26183328
Change-Id: I2bd8ff0315e04dd33fe720f0e5c32dec06747afc

8 years agoMerge "TextView tests: open context menu on right click."
Keisuke Kuroyanagi [Thu, 17 Dec 2015 08:51:35 +0000 (08:51 +0000)]
Merge "TextView tests: open context menu on right click."

8 years agoTextView: Open context menu on right click.
Keisuke Kuroyanagi [Thu, 17 Dec 2015 08:50:42 +0000 (17:50 +0900)]
TextView: Open context menu on right click.

- Construct context menu in #onCreateContextMenu.
- Ignore non-primary buttons for selection.
- Don't open context menu on long click.

Bug: 19544351
Bug: 19397276
Bug: 24872170

Change-Id: I4690e1485682be4f9b504b8fb6af936b979f13b8

8 years agoTextView tests: open context menu on right click.
Keisuke Kuroyanagi [Mon, 7 Dec 2015 19:09:40 +0000 (11:09 -0800)]
TextView tests: open context menu on right click.

- Extend MouseUiController and MouseClickAction to support choosing click
button.
- Introduce ContextMenuUtils to provide useful methods for context menu
testing.

Bug: 25730231
Change-Id: I4f04716428b8cfdcf9f953fe8f8d27f5374b0425

8 years agoMerge "Add support to virtual and typed files in StubProvider."
Tomasz Mikolajewski [Thu, 17 Dec 2015 08:05:36 +0000 (08:05 +0000)]
Merge "Add support to virtual and typed files in StubProvider."

8 years agoAdd tests for copying virtual typed files.
Tomasz Mikolajewski [Wed, 16 Dec 2015 07:23:00 +0000 (16:23 +0900)]
Add tests for copying virtual typed files.

Bug: 26147488
Change-Id: I44cfae518f4b6dfceed5b9f50b132e2acf161b3f

8 years agoMerge "TIF: add signal detection feature for HW inputs"
Wonsik Kim [Thu, 17 Dec 2015 07:05:51 +0000 (07:05 +0000)]
Merge "TIF: add signal detection feature for HW inputs"

8 years agoTIF: add signal detection feature for HW inputs
Wonsik Kim [Thu, 26 Nov 2015 09:51:09 +0000 (18:51 +0900)]
TIF: add signal detection feature for HW inputs

Bug: 23820259
Change-Id: If7f03b49f7510ec405dfc4fb2b6f709b8c8b820d

8 years agoAdd support to virtual and typed files in StubProvider.
Tomasz Mikolajewski [Mon, 14 Dec 2015 09:50:24 +0000 (18:50 +0900)]
Add support to virtual and typed files in StubProvider.

Bug: 26147488
Change-Id: I40a75547ff16bb7d45f36843c29692268b4291b6

8 years agoMerge "Append a correct extension in case of copying virtual files."
Tomasz Mikolajewski [Thu, 17 Dec 2015 06:03:44 +0000 (06:03 +0000)]
Merge "Append a correct extension in case of copying virtual files."

8 years agoMerge "Rename and simplify DropPermissionHolder"
Vladislav Kaznacheev [Thu, 17 Dec 2015 04:07:39 +0000 (04:07 +0000)]
Merge "Rename and simplify DropPermissionHolder"

8 years agoMerge "Change cursor shape to STYLE_HAND on ClickableSpans"
Keisuke Kuroyanagi [Thu, 17 Dec 2015 04:05:49 +0000 (04:05 +0000)]
Merge "Change cursor shape to STYLE_HAND on ClickableSpans"

8 years agoMerge "Fixes NPE bug in JobScheduler.getAllPendingJobs()"
Shreyas Basarge [Thu, 17 Dec 2015 03:00:00 +0000 (03:00 +0000)]
Merge "Fixes NPE bug in JobScheduler.getAllPendingJobs()"

8 years agoAppend a correct extension in case of copying virtual files.
Tomasz Mikolajewski [Wed, 16 Dec 2015 08:08:37 +0000 (17:08 +0900)]
Append a correct extension in case of copying virtual files.

Bug: 26147488
Change-Id: I3e310c102e7c819ea16b47dfe7902d389cfc9d00

8 years agoMerge "Fix CopyService after recent refactoring."
Tomasz Mikolajewski [Thu, 17 Dec 2015 02:04:22 +0000 (02:04 +0000)]
Merge "Fix CopyService after recent refactoring."

8 years agoFix CopyService after recent refactoring.
Tomasz Mikolajewski [Wed, 16 Dec 2015 06:19:01 +0000 (15:19 +0900)]
Fix CopyService after recent refactoring.

My recent CL broke tests badly. This time double checked.

Bug: 26218041
Bug: 26176231
Change-Id: Ia1f68d7cff83ec9c3cfb9bccb9c91ff092b25ced

8 years agoRename and simplify DropPermissionHolder
Vladislav Kaznacheev [Tue, 15 Dec 2015 20:16:28 +0000 (12:16 -0800)]
Rename and simplify DropPermissionHolder

Rename DropPermissionHolder to DropPermissions and move
all server-side implementation details into a separate class.
Rename DragEvent.getDropPermissionHolder to
requestDropPermissions and make it take the permissions
implicitly.

Change-Id: Ia83f7cb8af07ce13ba9536d24b0f9d63331d8736

8 years agoMerge "Specify path for native PersistableBundle implementation"
Samuel Tan [Thu, 17 Dec 2015 00:49:19 +0000 (00:49 +0000)]
Merge "Specify path for native PersistableBundle implementation"
am: 477fa220b1

* commit '477fa220b1766a3822171fa514983198e09daabb':
  Specify path for native PersistableBundle implementation

8 years agoMerge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev am: cae2f2415b am: fc376...
Bryce Lee [Thu, 17 Dec 2015 00:42:08 +0000 (00:42 +0000)]
Merge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev am: cae2f2415b am: fc3762aafd am: 0ccc3a1cb5
am: 972c616ce2

* commit '972c616ce2f83622e5529ef86c9d7f243a60b601':
  Add UUID to BluetoothHeadsetClientCall

8 years agoDO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2 am...
Adam Lesinski [Thu, 17 Dec 2015 00:40:32 +0000 (00:40 +0000)]
DO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2 am: 8c9209183f am: 7f5ad22330 am: 1f7a36b8e6
am: 087e0fcba6  -s ours

* commit '087e0fcba687bce677f39fd2b708a9cbb1defcd0':
  DO NOT MERGE: AAPT: Dump uses-permission-sdk-23

8 years agoMerge "Revert "Camera2: create new streams if surface size has changed"" am: 79ac3edc57
Eino-Ville Talvala [Thu, 17 Dec 2015 00:39:07 +0000 (00:39 +0000)]
Merge "Revert "Camera2: create new streams if surface size has changed"" am: 79ac3edc57
am: 6e49caeaab

* commit '6e49caeaabeb852f0b6cd1e75d9871bc6b70b981':
  Revert "Camera2: create new streams if surface size has changed"

8 years agoMerge "Camera2: create new streams if surface size has changed" am: bcb636d423
Eino-Ville Talvala [Thu, 17 Dec 2015 00:37:41 +0000 (00:37 +0000)]
Merge "Camera2: create new streams if surface size has changed" am: bcb636d423
am: c8a16ab564

* commit 'c8a16ab564532cbbdd781d0528c825945c63e907':
  Camera2: create new streams if surface size has changed

8 years agoMerge "Specify path for native PersistableBundle implementation"
Samuel Tan [Thu, 17 Dec 2015 00:35:35 +0000 (00:35 +0000)]
Merge "Specify path for native PersistableBundle implementation"

8 years agoMerge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev am: cae2f2415b am: fc376...
Bryce Lee [Thu, 17 Dec 2015 00:28:04 +0000 (00:28 +0000)]
Merge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev am: cae2f2415b am: fc3762aafd
am: 0ccc3a1cb5

* commit '0ccc3a1cb5487fb2640d749be698866475a2c435':
  Add UUID to BluetoothHeadsetClientCall

8 years agoMerge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev am: cae2f2415b
Bryce Lee [Thu, 17 Dec 2015 00:20:34 +0000 (00:20 +0000)]
Merge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev am: cae2f2415b
am: fc3762aafd

* commit 'fc3762aafd58ff9eada0b5ed261de20a40d7b07a':
  Add UUID to BluetoothHeadsetClientCall

8 years agoMerge "If pinned stack is focused, look for the one below for logging."
Filip Gruszczynski [Thu, 17 Dec 2015 00:11:28 +0000 (00:11 +0000)]
Merge "If pinned stack is focused, look for the one below for logging."

8 years agoMerge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev
Bryce Lee [Thu, 17 Dec 2015 00:09:56 +0000 (00:09 +0000)]
Merge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev
am: cae2f2415b

* commit 'cae2f2415ba04eb854fdcdc6aa66c857ad7148d0':
  Add UUID to BluetoothHeadsetClientCall

8 years agoMerge "Remove dependency on android.telecom.Call in VideoCallImpl for testing."
Tyler Gunn [Thu, 17 Dec 2015 00:09:55 +0000 (00:09 +0000)]
Merge "Remove dependency on android.telecom.Call in VideoCallImpl for testing."

8 years agoFix build
Chris Craik [Thu, 17 Dec 2015 00:05:49 +0000 (16:05 -0800)]
Fix build

Change-Id: I1fc72636afc070257526ce1500e96e9b39089640

8 years agoMerge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev
Bryce Lee [Thu, 17 Dec 2015 00:02:41 +0000 (00:02 +0000)]
Merge "Add UUID to BluetoothHeadsetClientCall" into cw-e-dev

8 years agoMerge "Add TextureView support to new renderer/reorderer"
Chris Craik [Wed, 16 Dec 2015 23:48:27 +0000 (23:48 +0000)]
Merge "Add TextureView support to new renderer/reorderer"

8 years agoDO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2 am...
Adam Lesinski [Wed, 16 Dec 2015 23:44:25 +0000 (23:44 +0000)]
DO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2 am: 8c9209183f am: 7f5ad22330
am: 1f7a36b8e6

* commit '1f7a36b8e6aa55dcb22a63c250fb318260ac349f':
  DO NOT MERGE: AAPT: Dump uses-permission-sdk-23

8 years agoClean-ups for BitmapRegionDecoder
Matt Sarett [Wed, 9 Dec 2015 20:16:31 +0000 (15:16 -0500)]
Clean-ups for BitmapRegionDecoder

Check for OOM after calling encodedFormatToString().

Do not correct Alpha8 to Gray8.  This will be handled in Skia.

Change-Id: Id573548608fbd5fbeef2898844480d8f8f73e1d0

8 years agoAdd TextureView support to new renderer/reorderer
Chris Craik [Wed, 16 Dec 2015 22:27:20 +0000 (14:27 -0800)]
Add TextureView support to new renderer/reorderer

bug:22480459

Change-Id: I2e4c0bc6b904706132f3f5087ededc9cac9b40fb

8 years agoDO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2 am...
Adam Lesinski [Wed, 16 Dec 2015 23:35:17 +0000 (23:35 +0000)]
DO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2 am: 8c9209183f
am: 7f5ad22330

* commit '7f5ad223306a482bdf33d213971af041e9fba590':
  DO NOT MERGE: AAPT: Dump uses-permission-sdk-23

8 years agoAdd UUID to BluetoothHeadsetClientCall
Bryce Lee [Wed, 16 Dec 2015 23:33:59 +0000 (15:33 -0800)]
Add UUID to BluetoothHeadsetClientCall

This will allow for unique identification of a call as id only provides
uniqueness per session.

Bug: 26016489
Change-Id: I643d24bf5ff5680c26e530075649ef2a4f378295

8 years agoDO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2
Adam Lesinski [Wed, 16 Dec 2015 23:25:45 +0000 (23:25 +0000)]
DO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638 am: 40d1ab91d2
am: 8c9209183f

* commit '8c9209183fa67953bebe1adb5dfb529c1b6273f0':
  DO NOT MERGE: AAPT: Dump uses-permission-sdk-23

8 years agoMerge "Revert "Camera2: create new streams if surface size has changed""
Eino-Ville Talvala [Wed, 16 Dec 2015 23:20:29 +0000 (23:20 +0000)]
Merge "Revert "Camera2: create new streams if surface size has changed""
am: 79ac3edc57

* commit '79ac3edc57f93d6b8e8187b549dd23512b841fb2':
  Revert "Camera2: create new streams if surface size has changed"

8 years agoDO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638
Adam Lesinski [Wed, 16 Dec 2015 23:16:18 +0000 (23:16 +0000)]
DO NOT MERGE: AAPT: Dump uses-permission-sdk-23 am: b2c5155638
am: 40d1ab91d2

* commit '40d1ab91d2a0ed1f066b6a8de821c9c4c70ca512':
  DO NOT MERGE: AAPT: Dump uses-permission-sdk-23

8 years agoMerge "Added config_defaultPictureInPictureBounds"
Wale Ogunwale [Wed, 16 Dec 2015 23:16:03 +0000 (23:16 +0000)]
Merge "Added config_defaultPictureInPictureBounds"

8 years agoMerge "Camera2: create new streams if surface size has changed"
Eino-Ville Talvala [Wed, 16 Dec 2015 23:09:29 +0000 (23:09 +0000)]
Merge "Camera2: create new streams if surface size has changed"
am: bcb636d423

* commit 'bcb636d4232bedfb421ecaa157f67b96a1b26944':
  Camera2: create new streams if surface size has changed

8 years agoDO NOT MERGE: AAPT: Dump uses-permission-sdk-23
Adam Lesinski [Wed, 16 Dec 2015 23:09:27 +0000 (23:09 +0000)]
DO NOT MERGE: AAPT: Dump uses-permission-sdk-23
am: b2c5155638

* commit 'b2c51556382acd3981e5a6380e2fb3d85c2f68a5':
  DO NOT MERGE: AAPT: Dump uses-permission-sdk-23

8 years agoMerge "Introduced PRIVATE_FLAG_REQUIRED_FOR_SYSTEM_USER"
Fyodor Kupolov [Wed, 16 Dec 2015 23:07:20 +0000 (23:07 +0000)]
Merge "Introduced PRIVATE_FLAG_REQUIRED_FOR_SYSTEM_USER"

8 years agoMerge "Fix positional arguments in strings"
Adam Lesinski [Wed, 16 Dec 2015 23:02:16 +0000 (23:02 +0000)]
Merge "Fix positional arguments in strings"

8 years agoMerge "Revert "Camera2: create new streams if surface size has changed""
Eino-Ville Talvala [Wed, 16 Dec 2015 23:01:43 +0000 (23:01 +0000)]
Merge "Revert "Camera2: create new streams if surface size has changed""

8 years agoMerge changes from topic 'directoryfragment-stable-ids'
Ben Kwa [Wed, 16 Dec 2015 22:53:13 +0000 (22:53 +0000)]
Merge changes from topic 'directoryfragment-stable-ids'

* changes:
  Wrap up the stable ID refactor.
  Re-enable sorting in the DirectoryFragment.
  Fix file deletion after the move to Model IDs.
  Transition selection to use Model IDs.
  Switch DirectoryFragment code to use model IDs.

8 years agoRevert "Camera2: create new streams if surface size has changed"
Yin-Chia Yeh [Wed, 16 Dec 2015 22:50:48 +0000 (22:50 +0000)]
Revert "Camera2: create new streams if surface size has changed"

This change is redundant after the following change is merged:

Camera2: Handle surface size change

When comparing if two OutputConfigurations are equal, also check
the width, height, format, dataspace when the output configurations
were created. With this, CameraDeviceImpl knows that the surface has
changed sizes and will reconfigure the stream.

Bug: 12250682
Change-Id: I4216260a0a08ad87b835ed97e9eaddf1df317fcc
This reverts commit f49f8b0bad0c6cd5db1b603233ad008c5bac4a60.

8 years agoDO NOT MERGE: AAPT: Dump uses-permission-sdk-23
Adam Lesinski [Wed, 2 Dec 2015 23:40:19 +0000 (15:40 -0800)]
DO NOT MERGE: AAPT: Dump uses-permission-sdk-23

Include <uses-permission-sdk-23> permissions in dump badging and dump permissions.

This will also add implied features for that permission, marked as -sdk-23 features.

Ex:

uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission-sdk-23: name='android.permission.CAMERA'

feature-group: label=''
  uses-feature: name='android.hardware.location'
  uses-implied-feature: name='android.hardware.location' reason='...'
  uses-feature-sdk-23: name='android.hardware.camera'
  uses-implied-feature-sdk-23: name='android.hardware.camera' reason='...'

Bug:24939655
Change-Id: Ifb374696ed4760b0ba2f1cc3516f3bf08e6cb6a3
(cherry picked from commit 5f3b2ecb3e9d27e77bd59c7b9006a6239b773944)

8 years agoIf pinned stack is focused, look for the one below for logging.
Filip Gruszczynski [Wed, 16 Dec 2015 22:40:04 +0000 (14:40 -0800)]
If pinned stack is focused, look for the one below for logging.

Bug: 26230638
Change-Id: Ibe0b993286c4669e0f565bd2d4af6077553a29e2

8 years agoMerge "Minor fixes to freeform workspace"
Winson Chung [Wed, 16 Dec 2015 22:37:21 +0000 (22:37 +0000)]
Merge "Minor fixes to freeform workspace"

8 years agoMerge "Add TextOnPath support to new reorderer/renderer"
Chris Craik [Wed, 16 Dec 2015 22:35:45 +0000 (22:35 +0000)]
Merge "Add TextOnPath support to new reorderer/renderer"

8 years agoFix positional arguments in strings
Adam Lesinski [Wed, 16 Dec 2015 22:33:32 +0000 (14:33 -0800)]
Fix positional arguments in strings

Change-Id: Id5768adba6b0422b5bb81e800a32be19db2a8626

8 years agoMinor fixes to freeform workspace
Winson Chung [Wed, 16 Dec 2015 20:43:12 +0000 (15:43 -0500)]
Minor fixes to freeform workspace

- Fixing regression where we were clobbering the freeform stack order
- Ensure there is padding between tasks
- Fix the header bar animation

Change-Id: I69ced3e3cb2f0c761ddf0c3bd00b17c847d74c0b

8 years agoMerge "Add SQLiteDatabase.validateSql()"
Makoto Onuki [Wed, 16 Dec 2015 22:31:44 +0000 (22:31 +0000)]
Merge "Add SQLiteDatabase.validateSql()"

8 years agoMerge "Remove 2nd line from failure"
Todd Kennedy [Wed, 16 Dec 2015 22:22:05 +0000 (22:22 +0000)]
Merge "Remove 2nd line from failure"

8 years agoAdd SQLiteDatabase.validateSql()
Makoto Onuki [Wed, 16 Dec 2015 22:02:01 +0000 (14:02 -0800)]
Add SQLiteDatabase.validateSql()

This API checks the SQL syntax by compiling it.  This is useful to
detect SQL injection, for example.

Change-Id: I956548a34f664950246856966e5601dcac3daf00

8 years agoMerge "Camera2: create new streams if surface size has changed"
Eino-Ville Talvala [Wed, 16 Dec 2015 22:18:13 +0000 (22:18 +0000)]
Merge "Camera2: create new streams if surface size has changed"

8 years agoMerge "Fixing merge issue from ag/830529"
Winson Chung [Wed, 16 Dec 2015 22:08:34 +0000 (22:08 +0000)]
Merge "Fixing merge issue from ag/830529"

8 years agoFixing merge issue from ag/830529
Winson Chung [Wed, 16 Dec 2015 22:07:19 +0000 (17:07 -0500)]
Fixing merge issue from ag/830529

- A whole slew of changes didn't make that CL

Bug: 26043233
Change-Id: I470005f1afbf4ca23e6cfe40a497c5c67bb794aa

8 years agoWrap up the stable ID refactor.
Ben Kwa [Thu, 10 Dec 2015 23:21:18 +0000 (15:21 -0800)]
Wrap up the stable ID refactor.

- Rationalize band selection: make it internally a range selection
  operation, that translates positions to IDs only when updating the
  Selection.
- Clean up TODOs and comments.
- Fix selection adjustment when things are removed from the view.

Change-Id: If917eb9dd18e755c5a0ce83c84409902c4ef3d2e

8 years agoRe-enable sorting in the DirectoryFragment.
Ben Kwa [Mon, 7 Dec 2015 21:25:27 +0000 (13:25 -0800)]
Re-enable sorting in the DirectoryFragment.

- Move sorting from the back-end (using SortingCursorWrapper) to the the
  front-end (in DocumentsAdapter).  This makes it such that re-sorting
  the directory contents doesn't necessitate a reload.
- Update DirectoryLoaders to just return unsorted results, and rely on
  the UI to sort them.
- Remove the (now-unused) SortingCursorWrapper.
- Update Model tests to test sorting.

BUG=26024369

Change-Id: I871cc0e496267d381ae546e0309125d04649415a

8 years agoRemove 2nd line from failure
Todd Kennedy [Wed, 16 Dec 2015 21:47:14 +0000 (13:47 -0800)]
Remove 2nd line from failure

In an attempt to provide more detailed information to the end-user, we
caused tests to fail [they parse the output of the 'pm' command]. Remove
the 2nd line of the output that was causing the failure.

Also took the opportunity to merge changes from the Pm command to the
Cmd command.

Bug: 26131598
Change-Id: I459f9ec8978d87dd571136222f780039e426474e

8 years agoAdded config_defaultPictureInPictureBounds
Wale Ogunwale [Mon, 7 Dec 2015 03:39:01 +0000 (19:39 -0800)]
Added config_defaultPictureInPictureBounds

Allows device to specify the default launch bounds
for the pinned stack.

Bug: 25580820
Change-Id: I477781aec910553d3b3645a0ac6106cf616949ed

8 years agoMerge "API for an Activity to enter picture-in-picture mode."
Wale Ogunwale [Wed, 16 Dec 2015 21:30:51 +0000 (21:30 +0000)]
Merge "API for an Activity to enter picture-in-picture mode."

8 years agoMerge changes Ide26856c,I68bbef59,I2186bdfc
Winson Chung [Wed, 16 Dec 2015 21:27:55 +0000 (21:27 +0000)]
Merge changes Ide26856c,I68bbef59,I2186bdfc

* changes:
  Allowing tasks to be swiped away in the history view.
  Loading activity icons in History view.
  Ensuring that the undocked task is visible in Overview.

8 years agoDon't call public non-final getResources() from getAssets()
Alan Viverette [Wed, 16 Dec 2015 20:46:32 +0000 (15:46 -0500)]
Don't call public non-final getResources() from getAssets()

Refactors to getResourcesInternal() and calls that from both methods.
Adds documentation on Context.getResources() and getAssets() that the
instances returned should be consistent with each other.

Bug: 26228895
Change-Id: I41b09f1e9a3a0315bcdf1c08a7b431a9a697bb6f

8 years agoMerge "Clean up orphaned zen rules, synchronize better."
Julia Reynolds [Wed, 16 Dec 2015 20:40:17 +0000 (20:40 +0000)]
Merge "Clean up orphaned zen rules, synchronize better."

8 years agoClean up orphaned zen rules, synchronize better.
Julia Reynolds [Tue, 15 Dec 2015 18:54:41 +0000 (13:54 -0500)]
Clean up orphaned zen rules, synchronize better.

(If a rule was restored to the device but the user didn't restore
the matching app).

Bug: 25472361
Change-Id: Icaefd0d1fca78ff351937fbe553ae72922a5457f

8 years agoRemove DayNight themes from public API (again)
Alan Viverette [Wed, 16 Dec 2015 20:28:23 +0000 (15:28 -0500)]
Remove DayNight themes from public API (again)

Bug: 22628106
Change-Id: Id55c9e626813c70671a93aedf8b1e0cdaed45ec1

8 years agoAllowing tasks to be swiped away in the history view.
Winson Chung [Tue, 15 Dec 2015 19:46:23 +0000 (14:46 -0500)]
Allowing tasks to be swiped away in the history view.

Change-Id: Ide26856c291bcdd1b4ab5e15ae9eb876a9af719b

8 years agoLoading activity icons in History view.
Winson Chung [Mon, 14 Dec 2015 18:57:36 +0000 (13:57 -0500)]
Loading activity icons in History view.

Change-Id: I68bbef59d380ce7abe251fca75135775528429d5

8 years agoEnsuring that the undocked task is visible in Overview.
Winson Chung [Fri, 11 Dec 2015 15:24:21 +0000 (10:24 -0500)]
Ensuring that the undocked task is visible in Overview.

Bug: 26043233
Change-Id: I2186bdfc64af161b8e828061a8e064f90c5cae24

8 years agoMerge "Changed the action executed when "Take bug report" is selected."
Felipe Leme [Wed, 16 Dec 2015 19:55:08 +0000 (19:55 +0000)]
Merge "Changed the action executed when "Take bug report" is selected."

8 years agoSwitch Tuner to support prefs (and some improvements)
Jason Monk [Sat, 12 Dec 2015 02:39:54 +0000 (21:39 -0500)]
Switch Tuner to support prefs (and some improvements)

Change-Id: I2ef62c0c56d4af69f9f34e1cfd297999d59b7da6

8 years agoMerge "Allows users to add details about a bugreport in progress."
Felipe Leme [Wed, 16 Dec 2015 19:39:11 +0000 (19:39 +0000)]
Merge "Allows users to add details about a bugreport in progress."

8 years agoMerge "Fix sysui crash."
Filip Gruszczynski [Wed, 16 Dec 2015 19:38:50 +0000 (19:38 +0000)]
Merge "Fix sysui crash."

8 years agoAllows users to add details about a bugreport in progress.
Felipe Leme [Fri, 11 Dec 2015 23:07:14 +0000 (15:07 -0800)]
Allows users to add details about a bugreport in progress.

The "bugreport in progress" notification now have a "DETAILS" button
that when clicked opens a dialog window displaying the following fields:

  - Name: short name for the bugreport, will be used as part of the
    final files (and by default is the timestamp sent by dumpstate)
  - Title: a 1-line title for the bugreport, will be used as the subject
    in the final message.
  - Description: a detailed description for the bug.

The main advantage of such dialog is that it allows users to enter more
info about a bugreport while it's being generated, rather then when the
bugreport is finished (since of the user doesn't remember what the
context was when the problem happened).

BUG: 25794470
BUG: 10676443
Change-Id: I0d1dba2a94ad989e541415a2a59475619a2e3d13

8 years agoFix sysui crash.
Filip Gruszczynski [Wed, 16 Dec 2015 19:31:12 +0000 (11:31 -0800)]
Fix sysui crash.

Bug: 26228707
Change-Id: I34e2362fecda06380e4640483a71365311f99d57

8 years agoMerge "resolve merge conflicts of 04ce46db64 to master."
John Reck [Wed, 16 Dec 2015 19:09:12 +0000 (19:09 +0000)]
Merge "resolve merge conflicts of 04ce46db64 to "

8 years agoresolve merge conflicts of 04ce46db64 to master.
John Reck [Wed, 16 Dec 2015 19:07:53 +0000 (11:07 -0800)]
resolve merge conflicts of 04ce46db64 to master.

Change-Id: I935bb47718f0e7d5fb48945dd8de6e28dac136e5

8 years agoAPI for an Activity to enter picture-in-picture mode.
Wale Ogunwale [Mon, 7 Dec 2015 02:42:57 +0000 (18:42 -0800)]
API for an Activity to enter picture-in-picture mode.

Bug: 25580820
Change-Id: I5c1bf17dd5dd92622458a61517bc9941e4ee5277

8 years agoMerge "Check for null MenuHelper before setting presenter callback"
Alan Viverette [Wed, 16 Dec 2015 18:56:08 +0000 (18:56 +0000)]
Merge "Check for null MenuHelper before setting presenter callback"

8 years agoMerge "libhwui: make setSurface asynchronous"
John Reck [Wed, 16 Dec 2015 18:44:57 +0000 (18:44 +0000)]
Merge "libhwui: make setSurface asynchronous"
am: 738a5d4f18

* commit '738a5d4f18e69c03700b77af0ea7e2a101da2c34':
  libhwui: make setSurface asynchronous

8 years agoFixes NPE bug in JobScheduler.getAllPendingJobs()
Shreyas Basarge [Wed, 16 Dec 2015 18:10:05 +0000 (18:10 +0000)]
Fixes NPE bug in JobScheduler.getAllPendingJobs()

The extras persistable bundle in JobInfo is
parcelled/unparcelled from different threads
simultaneously for IPC and persisting jobInfo.
The extras bundle in now copied before writing
it to disk.

Bug: 25344172
Change-Id: Ia190181c869d3e5d216dccee9637d3d3a4fb5cb3

8 years agoMerge "Adding catch for b/26221779"
Winson Chung [Wed, 16 Dec 2015 18:33:47 +0000 (18:33 +0000)]
Merge "Adding catch for b/26221779"

8 years agoMerge "Remove onDrawSprite API as it is no longer exposed via SkCanvas"
Derek Sollenberger [Wed, 16 Dec 2015 18:32:39 +0000 (18:32 +0000)]
Merge "Remove onDrawSprite API as it is no longer exposed via SkCanvas"

8 years agoMerge "libhwui: make setSurface asynchronous"
John Reck [Wed, 16 Dec 2015 18:27:24 +0000 (18:27 +0000)]
Merge "libhwui: make setSurface asynchronous"

8 years agoAdd TextOnPath support to new reorderer/renderer
Chris Craik [Tue, 15 Dec 2015 18:34:36 +0000 (10:34 -0800)]
Add TextOnPath support to new reorderer/renderer

bug:22480459

Change-Id: I302048ec09901420c15003e21e44a551cc59c7ad

8 years agoMerge "Allow RT animation of new renderer"
Chris Craik [Wed, 16 Dec 2015 18:25:35 +0000 (18:25 +0000)]
Merge "Allow RT animation of new renderer"

8 years agoAdding catch for b/26221779
Winson Chung [Wed, 16 Dec 2015 18:18:43 +0000 (13:18 -0500)]
Adding catch for b/26221779

Change-Id: Id0cf455cd65bf5b202a6249b0b51351addb0bd17

8 years agoAllow RT animation of new renderer
Chris Craik [Wed, 16 Dec 2015 03:17:32 +0000 (19:17 -0800)]
Allow RT animation of new renderer

Change-Id: I60136dc080dc4fd853ac8c3d37fefa85da1181df