OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Only system can set application restrictions via UserManager"
Esteban Talavera [Wed, 16 Dec 2015 10:44:12 +0000 (10:44 +0000)]
Merge "Only system can set application restrictions via UserManager"

8 years agoMerge "Exclude accessing settings from PointerIcon."
Jun Mukai [Wed, 16 Dec 2015 02:11:56 +0000 (02:11 +0000)]
Merge "Exclude accessing settings from PointerIcon."

8 years agoMerge "Refactoring of ASS.startActivityUncheckedLocked."
Filip Gruszczynski [Wed, 16 Dec 2015 01:51:07 +0000 (01:51 +0000)]
Merge "Refactoring of ASS.startActivityUncheckedLocked."

8 years agoAdd crop hint and backup-eligible info to wallpaper API
Christopher Tate [Fri, 11 Dec 2015 23:08:46 +0000 (15:08 -0800)]
Add crop hint and backup-eligible info to wallpaper API

The OS will not distinguish between the physical underlying wallpaper
image and the target displayable subrect of that image.  This will enable
more pleasing conveyance of backed-up wallpaper imagery between dissimilar
devices.  The allow-backup hint is a way for wallpaper sources to ensure
that the OS doesn't back up imagery that should not be propagated across
devices.

(NB: the backing implementation isn't in place yet; this is just to
permit forward-looking work on client apps in the interim.)

Bug 25454501
Bug 25453848

Change-Id: Id014d552ae509f659992d57b915ef95c5d4b8d1a

8 years agoStore device document even if the device is not opened.
Daichi Hirono [Tue, 15 Dec 2015 09:52:26 +0000 (18:52 +0900)]
Store device document even if the device is not opened.

BUG=26197156

Change-Id: I2a80bb3e85310cf63253173b1110a155ee1391ba

8 years agoMerge "API for launching activities to the side in side-by-side mode."
Filip Gruszczynski [Wed, 16 Dec 2015 00:52:06 +0000 (00:52 +0000)]
Merge "API for launching activities to the side in side-by-side mode."

8 years agoMerge "Negotiate locales during Resources contruction and updates"
Roozbeh Pournader [Wed, 16 Dec 2015 00:44:01 +0000 (00:44 +0000)]
Merge "Negotiate locales during Resources contruction and updates"

8 years agoExclude accessing settings from PointerIcon.
Jun Mukai [Wed, 16 Dec 2015 00:19:20 +0000 (16:19 -0800)]
Exclude accessing settings from PointerIcon.

This code structure causes a crash as rerported, better to extract
access to the settings to InputManagerService, who actually cares
about it.

Bug: 26196092
Change-Id: I4e0dbcc24ccf5d11681738ca3576b64471aa8cc4

8 years agoRefactoring of ASS.startActivityUncheckedLocked.
Filip Gruszczynski [Wed, 16 Dec 2015 00:35:38 +0000 (16:35 -0800)]
Refactoring of ASS.startActivityUncheckedLocked.

Remove 3 levels of unnecessary indentation in an if.

Change-Id: Ief38db3bebbcb44a9a9b5e0dfa5dbf487a0a49ab

8 years agoMerge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev...
Adam Lesinski [Wed, 16 Dec 2015 00:13:42 +0000 (00:13 +0000)]
Merge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev am: 1d6d4c5a69 am: d5808d0d35
am: 72c1a0a110  -s ours

* commit '72c1a0a110fc1e5af1dce8f00cf114e7a6ea32b8':
  DO NOT MERGE: Fix batterystats battery level int packing

8 years agoUse wakeup reason when FingerPrint sensor wakes up the device am: 9289560aa0 am:...
Adam Lesinski [Wed, 16 Dec 2015 00:12:05 +0000 (00:12 +0000)]
Use wakeup reason when FingerPrint sensor wakes up the device am: 9289560aa0 am: 7197bb49a7
am: b31f1a5f0e

* commit 'b31f1a5f0ecc9d66e83202fd907126633dc28a63':
  Use wakeup reason when FingerPrint sensor wakes up the device

8 years agoAPI for launching activities to the side in side-by-side mode.
Filip Gruszczynski [Mon, 14 Dec 2015 22:58:30 +0000 (14:58 -0800)]
API for launching activities to the side in side-by-side mode.

This API is intended for side-by-side mode, so that when a new activity
is launched, it will show up on the other side instead of covering the
launching activity.

Bug: 26141281

Change-Id: I97d7f2f48d42a31cfb1a86821474582b9c5d9e45

8 years agoMerge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev...
Adam Lesinski [Wed, 16 Dec 2015 00:05:41 +0000 (00:05 +0000)]
Merge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev am: 1d6d4c5a69
am: d5808d0d35

* commit 'd5808d0d356c5c7263f1ad0982a221c7a0f1df07':
  DO NOT MERGE: Fix batterystats battery level int packing

8 years agoMerge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev
Adam Lesinski [Tue, 15 Dec 2015 23:57:13 +0000 (23:57 +0000)]
Merge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev
am: 1d6d4c5a69

* commit '1d6d4c5a695051ccb9b455306b155bad5d6f136a':
  DO NOT MERGE: Fix batterystats battery level int packing

8 years agoMerge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev
Adam Lesinski [Tue, 15 Dec 2015 23:52:43 +0000 (23:52 +0000)]
Merge "DO NOT MERGE: Fix batterystats battery level int packing" into mnc-dr1.5-dev

8 years agoMerge "Allow activities to enter PiP when forceResizeableActivities is true."
Youngsang Cho [Tue, 15 Dec 2015 23:15:35 +0000 (23:15 +0000)]
Merge "Allow activities to enter PiP when forceResizeableActivities is true."

8 years agoAllow activities to enter PiP when forceResizeableActivities is true.
Youngsang Cho [Fri, 11 Dec 2015 22:32:35 +0000 (14:32 -0800)]
Allow activities to enter PiP when forceResizeableActivities is true.

Bug: 26187878
Change-Id: I074fd39748d53bb0bdf1769468b2c3a4092aa506

8 years agoAdded PackageManager#FEATURE_PICTURE_IN_PICTURE
Wale Ogunwale [Mon, 7 Dec 2015 00:23:50 +0000 (16:23 -0800)]
Added PackageManager#FEATURE_PICTURE_IN_PICTURE

Indicating that a device supports picture-in-picture
multi-window mode.

Also allow activities to be in Pip mode if force resizeable
is enabled.

Bug: 25580820
Bug: 26187878
Change-Id: If80edfee39ece5a51d21040e4d3a8a9135aa1783

8 years agoMerge "Move RemoteInputView inflation to ContentView"
Adrian Roos [Tue, 15 Dec 2015 22:18:40 +0000 (22:18 +0000)]
Merge "Move RemoteInputView inflation to ContentView"

8 years agoFix build
Alan Viverette [Tue, 15 Dec 2015 22:16:33 +0000 (17:16 -0500)]
Fix build

Change-Id: I3e1708a9e41155b9b00e0365e4392ae66202fdbb

8 years agoMove RemoteInputView inflation to ContentView
Adrian Roos [Thu, 10 Dec 2015 02:51:05 +0000 (18:51 -0800)]
Move RemoteInputView inflation to ContentView

Bug: 22452379
Change-Id: Ieed64f7fa0b0bd742ca8a7746e8baf03ca837e1c

8 years agoMerge "Fix ephemeral post-install launching"
Todd Kennedy [Tue, 15 Dec 2015 22:12:33 +0000 (22:12 +0000)]
Merge "Fix ephemeral post-install launching"

8 years agoDO NOT MERGE: Fix batterystats battery level int packing
Adam Lesinski [Fri, 13 Nov 2015 23:54:59 +0000 (15:54 -0800)]
DO NOT MERGE: Fix batterystats battery level int packing

We introduced some new flag at the lowest significant bit of the
battery level int but failed to account for it when unpacking.

Bug:25596467
Change-Id: I4320e6fcc208ec6de249b14fe3e399ab2f32d839
(cherry picked from commit 6902052c77bbcb9078b4ced243874f67542f64f9)

8 years agoMerge "Add functor support to new reorderer/renderer"
Chris Craik [Tue, 15 Dec 2015 22:08:09 +0000 (22:08 +0000)]
Merge "Add functor support to new reorderer/renderer"

8 years agoUse wakeup reason when FingerPrint sensor wakes up the device am: 9289560aa0
Adam Lesinski [Tue, 15 Dec 2015 22:07:53 +0000 (22:07 +0000)]
Use wakeup reason when FingerPrint sensor wakes up the device am: 9289560aa0
am: 7197bb49a7

* commit '7197bb49a73248798dd7d825927e6c849cb1255c':
  Use wakeup reason when FingerPrint sensor wakes up the device

8 years agoFix ephemeral post-install launching
Todd Kennedy [Wed, 9 Dec 2015 22:31:22 +0000 (14:31 -0800)]
Fix ephemeral post-install launching

Provide the ephemeral installer with some additional pieces of information:
1) instead of de-referencing the URL a second time, give the installer the
   exact package name
2) instead of relying on ephemeral apps to define verified links, give the
   installer a pending intent to launch when the ephemeral is installed
3) give the installer a pending intent to launch if the installer fails,
   for whatever reason, to install the ephemeral app

Bug: 25119046
Change-Id: I45f50481caee09d5d09451e4b2492e64b0faae82

8 years agoUse wakeup reason when FingerPrint sensor wakes up the device
Adam Lesinski [Tue, 15 Dec 2015 22:01:03 +0000 (22:01 +0000)]
Use wakeup reason when FingerPrint sensor wakes up the device
am: 9289560aa0

* commit '9289560aa0d195dfed67dab05811114bc7bc88a9':
  Use wakeup reason when FingerPrint sensor wakes up the device

8 years agoMerge "Postpone CascadingMenuPopup window creation until show()"
Alan Viverette [Tue, 15 Dec 2015 21:56:20 +0000 (21:56 +0000)]
Merge "Postpone CascadingMenuPopup window creation until show()"

8 years agoPostpone CascadingMenuPopup window creation until show()
Alan Viverette [Tue, 15 Dec 2015 21:53:32 +0000 (16:53 -0500)]
Postpone CascadingMenuPopup window creation until show()

This ensures that addMenu() and setters can be called in any order
as long as they occur before the show() call.

Bug: 25853211
Change-Id: I9a643d37c60046326b7d97a38026c27ba247a1b0

8 years agoUse wakeup reason when FingerPrint sensor wakes up the device
Adam Lesinski [Wed, 4 Nov 2015 00:31:25 +0000 (16:31 -0800)]
Use wakeup reason when FingerPrint sensor wakes up the device

PowerManager can log into BatteryStats the reason for the device being
woken up. This change has the Fingerprint controller report the reason
instead of a default non-descriptive 'wakeUp' reason.

Bug:26209577
Change-Id: I12d80682dad888add139cca586d4b948e9d546e5
(cherry picked from commit 5bcb8bb31ab6688dff432cb7bd20fe69016c7003)

8 years agoMerge "fix notification manager crash"
Chris Wren [Tue, 15 Dec 2015 21:28:24 +0000 (21:28 +0000)]
Merge "fix notification manager crash"

8 years agofix notification manager crash
Chris Wren [Tue, 15 Dec 2015 21:25:07 +0000 (16:25 -0500)]
fix notification manager crash

Bug: 26207891
Change-Id: I51c8665de03fb0afa1176d6cf31f98cab9749306

8 years agoMerge "Enabling history and paging by default"
Winson Chung [Tue, 15 Dec 2015 21:23:28 +0000 (21:23 +0000)]
Merge "Enabling history and paging by default"

8 years agoMerge "Removing the debug header bar icon."
Winson Chung [Tue, 15 Dec 2015 21:23:14 +0000 (21:23 +0000)]
Merge "Removing the debug header bar icon."

8 years agoMerge "Mask work widgets if work profile is in quiet mode."
Rubin Xu [Tue, 15 Dec 2015 21:03:18 +0000 (21:03 +0000)]
Merge "Mask work widgets if work profile is in quiet mode."

8 years agoEnabling history and paging by default
Winson Chung [Mon, 14 Dec 2015 16:18:57 +0000 (11:18 -0500)]
Enabling history and paging by default

- Removing associated tuner flags

Change-Id: Ia69bf273489b0079c389e7feb1428071569092d5

8 years agoRemoving the debug header bar icon.
Winson Chung [Fri, 11 Dec 2015 18:20:12 +0000 (13:20 -0500)]
Removing the debug header bar icon.

- Repurposing resize button to move tasks between
  stacks when freeform is enabled
- Enabling freeform workspaces for supported
  devices
- Removing old debug dialog

Bug: 26043230
Bug: 24815256

Change-Id: If3236999dd236de5d5bd665d69edfc17f18f74f0

8 years agoMerge "Relax permissions around NetworkStatsManager APIs."
Jeff Davidson [Tue, 15 Dec 2015 19:04:25 +0000 (19:04 +0000)]
Merge "Relax permissions around NetworkStatsManager APIs."

8 years agoAdd functor support to new reorderer/renderer
Chris Craik [Fri, 11 Dec 2015 00:25:13 +0000 (16:25 -0800)]
Add functor support to new reorderer/renderer

bug:22480459

Change-Id: I95df7e0504f62d254e8ffbd8d65ed5d763080b9c

8 years agoAssigned a unique value for PRIVATE_FLAG_EPHEMERAL
Fyodor Kupolov [Mon, 14 Dec 2015 19:31:29 +0000 (11:31 -0800)]
Assigned a unique value for PRIVATE_FLAG_EPHEMERAL

Previously the value was conflicting with a private flag
PARTIALLY_ENCRYPTION_AWARE, which has been added before.

Change-Id: I661d8b5f59a39b18288eae47b7522f87b120c57b

8 years agoOnly system can set application restrictions via UserManager
Esteban Talavera [Fri, 11 Dec 2015 15:22:34 +0000 (15:22 +0000)]
Only system can set application restrictions via UserManager

Preventing apps with MANAGE_USERS from managing application
restrictions via UserManager. Application restrictions should
only be set via DevicePolicyManager.setApplicationRestrictions,
or via Settings (for restricted profiles).

Bug: 22541936
Change-Id: Ieed51ef54b4c23a73f383465e9af9b3bcf18a514

8 years agoMerge "Fix AlertDialog.setIcon() not working when called after show()"
Chris Banes [Tue, 15 Dec 2015 18:13:02 +0000 (18:13 +0000)]
Merge "Fix AlertDialog.setIcon() not working when called after show()"

8 years agoMerge "Fixed bug with caption not showing for some apps that handle config changes"
Wale Ogunwale [Tue, 15 Dec 2015 18:11:11 +0000 (18:11 +0000)]
Merge "Fixed bug with caption not showing for some apps that handle config changes"

8 years agoMerge "Fix bit-rotted NetworkStatsServiceTest."
Jeff Davidson [Tue, 15 Dec 2015 17:48:46 +0000 (17:48 +0000)]
Merge "Fix bit-rotted NetworkStatsServiceTest."

8 years agoMerge "Avoid unneeded rect params"
Chris Craik [Tue, 15 Dec 2015 17:32:59 +0000 (17:32 +0000)]
Merge "Avoid unneeded rect params"

8 years agoFix AlertDialog.setIcon() not working when called after show()
Chris Banes [Tue, 15 Dec 2015 17:14:15 +0000 (17:14 +0000)]
Fix AlertDialog.setIcon() not working when called after show()

BUG: 26183328
Change-Id: I86a5a299c9afa105c62a709d2a60b8b2e5b590dc

8 years agoFixed bug with caption not showing for some apps that handle config changes
Wale Ogunwale [Tue, 8 Dec 2015 19:43:43 +0000 (11:43 -0800)]
Fixed bug with caption not showing for some apps that handle config changes

We currently decide when to show the decor caption onConfigurationChanged
However, if the app handles configuration changes or the threshold isn't
big enough for the configuration change to be reported to the app, we don't
display the caption in some cases when transitioning from fullscreen mode
to freeform mode.
We now also use the onMultiWindowModeChanged call to also determine if
the caption should be visible.

Change-Id: I237437f04ad90f904912ebac0253245f547b0e3e

8 years agoMerge "Log window mode to tron."
Filip Gruszczynski [Tue, 15 Dec 2015 16:53:07 +0000 (16:53 +0000)]
Merge "Log window mode to tron."

8 years agoLog window mode to tron.
Filip Gruszczynski [Fri, 11 Dec 2015 21:59:52 +0000 (13:59 -0800)]
Log window mode to tron.

Bug: 26013430
Change-Id: I45d397d956a66f407218047dc10581553f906077

8 years agoMask work widgets if work profile is in quiet mode.
Rubin Xu [Wed, 18 Nov 2015 16:48:00 +0000 (16:48 +0000)]
Mask work widgets if work profile is in quiet mode.

If a work profile is in quiet mode, mask widgets belonging to that profile
with a generic RemoteView.

Bug: 22541941
Change-Id: I3baa179630af497afa02b32f236d2bdaa4a75904

8 years agoMerge "Make KEYCODE_SPACE a confirm key."
Michael Wright [Tue, 15 Dec 2015 16:41:16 +0000 (16:41 +0000)]
Merge "Make KEYCODE_SPACE a confirm key."

8 years agoMerge "Only handle Context submenus as dialogs when parent is a dialog"
Alan Viverette [Tue, 15 Dec 2015 15:10:45 +0000 (15:10 +0000)]
Merge "Only handle Context submenus as dialogs when parent is a dialog"

8 years agoMerge "Only show historical tasks in history."
Winson Chung [Tue, 15 Dec 2015 14:27:25 +0000 (14:27 +0000)]
Merge "Only show historical tasks in history."

8 years agoMerge changes I598642b1,I788fa06d
Winson Chung [Tue, 15 Dec 2015 14:26:58 +0000 (14:26 +0000)]
Merge changes I598642b1,I788fa06d

* changes:
  Removing historical tasks when packages are uninstalled.
  Saving the stack state when you rotate.

8 years agoMerge "Coordinating empty view with the history view."
Winson Chung [Tue, 15 Dec 2015 14:26:24 +0000 (14:26 +0000)]
Merge "Coordinating empty view with the history view."

8 years agoMerge "Make ConfirmCredentials take user into account when creating intent"
Clara Bayarri [Tue, 15 Dec 2015 14:14:34 +0000 (14:14 +0000)]
Merge "Make ConfirmCredentials take user into account when creating intent"

8 years agoMerge "Remove defunct EVENT_SEND_STICKY_BROADCAST_INTENT."
Lorenzo Colitti [Tue, 15 Dec 2015 13:24:52 +0000 (13:24 +0000)]
Merge "Remove defunct EVENT_SEND_STICKY_BROADCAST_INTENT."

8 years agoMake ConfirmCredentials take user into account when creating intent
Clara Bayarri [Thu, 19 Nov 2015 00:39:34 +0000 (16:39 -0800)]
Make ConfirmCredentials take user into account when creating intent

The existing implementation returned null if the device was not locked,
but when using ConfirmCredentials for the Work Profile we need to take into
account the user we want to confirm credentials for, given that the device
user might not have a lock but the work profile will.

Change-Id: Ifb5882846b0a62c73ac7cc04d90d1a4d9b103e63

8 years agoMerge "Revert "Revert "Add device document to MtpDatabase."""
Daichi Hirono [Tue, 15 Dec 2015 08:19:29 +0000 (08:19 +0000)]
Merge "Revert "Revert "Add device document to MtpDatabase."""

8 years agoRevert "Revert "Add device document to MtpDatabase.""
Daichi Hirono [Tue, 15 Dec 2015 07:45:06 +0000 (07:45 +0000)]
Revert "Revert "Add device document to MtpDatabase.""

I suspected that the commit was conflicted with ag/833494, but actually it wasn't. Let me reland this CL again.

This reverts commit b63e8c6ccc1425d56f8b9c801f4bddf906d694e5.

Change-Id: I4e734422ce10ef93ee7c4ef3b8b72a81beaa769b

8 years agoMerge "Revert "Add device document to MtpDatabase.""
Daichi Hirono [Tue, 15 Dec 2015 07:34:53 +0000 (07:34 +0000)]
Merge "Revert "Add device document to MtpDatabase.""

8 years agoRevert "Add device document to MtpDatabase."
Daichi Hirono [Tue, 15 Dec 2015 07:34:26 +0000 (07:34 +0000)]
Revert "Add device document to MtpDatabase."

This reverts commit c0ae45be046b1aed005589791e1ee483c399ab1c.

Change-Id: I03337324e768c509bdcf94c89f7abe7ca00c8a18

8 years agoMerge "Temporary enable logging for monkey testing"
Rob Carr [Tue, 15 Dec 2015 07:33:08 +0000 (07:33 +0000)]
Merge "Temporary enable logging for monkey testing"

8 years agoMerge "Add device document to MtpDatabase."
Daichi Hirono [Tue, 15 Dec 2015 07:27:19 +0000 (07:27 +0000)]
Merge "Add device document to MtpDatabase."

8 years agoAdd device document to MtpDatabase.
Daichi Hirono [Tue, 15 Dec 2015 03:39:04 +0000 (12:39 +0900)]
Add device document to MtpDatabase.

BUG=26175081

Change-Id: Ida91c50f7e33d7b300a32ee318b6f3837edf6606

8 years agoMerge "Use column name instead of index in MtpDatabaseTest for readability."
Daichi Hirono [Tue, 15 Dec 2015 07:15:31 +0000 (07:15 +0000)]
Merge "Use column name instead of index in MtpDatabaseTest for readability."

8 years agoUse column name instead of index in MtpDatabaseTest for readability.
Daichi Hirono [Tue, 15 Dec 2015 07:02:27 +0000 (16:02 +0900)]
Use column name instead of index in MtpDatabaseTest for readability.

BUG=26194040

Change-Id: I58a6e59f4784fcc81988093bb113e721e36e46d0

8 years agoMerge "Add support for copying virtual files in DocumentsUI."
Tomasz Mikolajewski [Tue, 15 Dec 2015 05:06:45 +0000 (05:06 +0000)]
Merge "Add support for copying virtual files in DocumentsUI."

8 years agoMerge "Make public pointer icon API with custom icons."
Jun Mukai [Tue, 15 Dec 2015 04:46:53 +0000 (04:46 +0000)]
Merge "Make public pointer icon API with custom icons."

8 years agoTemporary enable logging for monkey testing
Robert Carr [Tue, 15 Dec 2015 04:07:08 +0000 (20:07 -0800)]
Temporary enable logging for monkey testing

Temporary enable logging for tracing 26157153 in monkey testing.

Bug: 26157153
Change-Id: I85aef42c426ceaa831b7919a37dd35ef78e9c779

8 years agoMerge "Move window replacement tracking to window state."
Rob Carr [Tue, 15 Dec 2015 04:05:19 +0000 (04:05 +0000)]
Merge "Move window replacement tracking to window state."

8 years agoMake public pointer icon API with custom icons.
Jun Mukai [Fri, 30 Oct 2015 22:54:33 +0000 (15:54 -0700)]
Make public pointer icon API with custom icons.

BUG: 2577834723804184
Change-Id: If138b97c750c912e9848412c27b65004899961eb

8 years agoAdd support for copying virtual files in DocumentsUI.
Tomasz Mikolajewski [Mon, 14 Dec 2015 07:15:57 +0000 (16:15 +0900)]
Add support for copying virtual files in DocumentsUI.

Bug: 26147488
Change-Id: I09cf010de7267fbdba6e3fcd0f300b0ecce19d10

8 years agoMerge "Stop reopening MTP devices."
Daichi Hirono [Tue, 15 Dec 2015 02:12:31 +0000 (02:12 +0000)]
Merge "Stop reopening MTP devices."

8 years agoStop reopening MTP devices.
Daichi Hirono [Mon, 14 Dec 2015 07:20:14 +0000 (16:20 +0900)]
Stop reopening MTP devices.

BUG=26175809

Change-Id: I45a51c0623b349f12e7d3cf787a89b089f230bc1

8 years agoMerge "Integerate mapping methods for root/child documents into the same methods."
Daichi Hirono [Tue, 15 Dec 2015 02:08:50 +0000 (02:08 +0000)]
Merge "Integerate mapping methods for root/child documents into the same methods."

8 years agoIntegerate mapping methods for root/child documents into the same
Daichi Hirono [Mon, 14 Dec 2015 08:14:29 +0000 (17:14 +0900)]
Integerate mapping methods for root/child documents into the same
methods.

The integrated methods will be used to add device documents as well as
root/child documents.

BUG=26175081

Change-Id: Ibf474cfbc41df402a2958e9efcdd0061f07f5ced

8 years agoNegotiate locales during Resources contruction and updates
Roozbeh Pournader [Tue, 15 Dec 2015 00:15:52 +0000 (16:15 -0800)]
Negotiate locales during Resources contruction and updates

This also adds a new API to Resources, to get the resolved locale
from the Resources.

Bug: 25800576
Change-Id: I431f1c1b4b6775fcbc097936d0d607400db47f7d

8 years agoAllow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39 am: 36393a5674...
Bryce Lee [Tue, 15 Dec 2015 01:17:28 +0000 (01:17 +0000)]
Allow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39 am: 36393a5674 am: 4ab8b0696a
am: 0510ad1bc9

* commit '0510ad1bc9a2da4fa84f1a5417a218dba48563e3':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.

8 years agoRelax permissions around NetworkStatsManager APIs.
Jeff Davidson [Thu, 10 Dec 2015 02:04:50 +0000 (18:04 -0800)]
Relax permissions around NetworkStatsManager APIs.

Currently, access to network usage history and statistics requires a
signature|privileged permission, an AppOps bit (associated with the
PACKAGE_USAGE_STATS permission), or device/profile ownership. Once
access is granted via one of these mechanisms, it generally applies to
any UID running in the same user as the caller.

This CL expands access as follows:

-Any app can access its own usage history with no extra requirements.
-Carrier-privileged applications can access usage history for the
entire device.
-Device owners can access per-UID breakdowns for usage. Previously
they could access the summary for the whole device, but not the
individual breakdowns.

We simplify the permission model by defining three access levels -
DEFAULT (own app only), USER (all apps in the same user), and DEVICE
(all apps on the device), and propagate these levels throughout.

Finally, this CL fixes an apparent bug in
NetworkStatsSerice#hasAppOpsPermissions - if the AppOp bit was in
MODE_DEFAULT, hasAppOpsPermission would always return false instead of
falling back to the PackageManager permission check.

Bug: 25812859
Bug: 25813856
Change-Id: Ic96e0776e2a4215a400163872acea1ededfaced9

8 years agoMerge "Protect some more broadcasts."
Jeff Sharkey [Tue, 15 Dec 2015 01:06:20 +0000 (01:06 +0000)]
Merge "Protect some more broadcasts."

8 years agoMerge "Frameworks/base: Some cleanup in PackageManagerService"
Andreas Gampe [Tue, 15 Dec 2015 01:04:49 +0000 (01:04 +0000)]
Merge "Frameworks/base: Some cleanup in PackageManagerService"

8 years agoProtect some more broadcasts.
Jeff Sharkey [Tue, 15 Dec 2015 01:02:43 +0000 (18:02 -0700)]
Protect some more broadcasts.

Bug: 26144973
Change-Id: Ic05bca52913ee5545719f0f24bed5b359f31259f

8 years agoMerge "Simplify CopyService in DocumentsUI."
Tomasz Mikolajewski [Tue, 15 Dec 2015 00:55:44 +0000 (00:55 +0000)]
Merge "Simplify CopyService in DocumentsUI."

8 years agoMerge "Refactor checking for inserting activity into existing task."
Filip Gruszczynski [Tue, 15 Dec 2015 00:32:14 +0000 (00:32 +0000)]
Merge "Refactor checking for inserting activity into existing task."

8 years agoAllow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39 am: 36393a5674
Bryce Lee [Tue, 15 Dec 2015 00:11:06 +0000 (00:11 +0000)]
Allow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39 am: 36393a5674
am: 4ab8b0696a

* commit '4ab8b0696a4383b7dec2fc2dc4f17596bcd9216a':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.

8 years agoRefactor checking for inserting activity into existing task.
Filip Gruszczynski [Mon, 14 Dec 2015 18:20:22 +0000 (10:20 -0800)]
Refactor checking for inserting activity into existing task.

Inserting into existing task is a large chunk of code with very deep
indentation. This removes 2 levels of indentation by checking them
together and returning final result.

CL also includes moving some of the permission checking code into a
separate method.

Change-Id: Ieba82ef9e410094de229b0d25b2a60bf18a1e869

8 years agoMerge "Still save config on client side when not reporting to activity."
Wale Ogunwale [Tue, 15 Dec 2015 00:06:02 +0000 (00:06 +0000)]
Merge "Still save config on client side when not reporting to activity."

8 years agoAllow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39
Bryce Lee [Mon, 14 Dec 2015 23:57:38 +0000 (23:57 +0000)]
Allow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39
am: 36393a5674

* commit '36393a5674bf50b351b5961a194ce2814ca00140':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.

8 years agoAllow access to deprecated LOCK_PATTERN_ENABLED flag.
Bryce Lee [Mon, 14 Dec 2015 23:43:54 +0000 (23:43 +0000)]
Allow access to deprecated LOCK_PATTERN_ENABLED flag.
am: 4614596a39

* commit '4614596a395b6c86fff3f35a07edda2e848d743c':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.

8 years agoStill save config on client side when not reporting to activity.
Wale Ogunwale [Mon, 14 Dec 2015 23:04:22 +0000 (15:04 -0800)]
Still save config on client side when not reporting to activity.

On the client side we have additional protection not to save new
configuration reported by activity manager if the app isn't handling
any of the configuration change that occurred. This is done because
the activity is expected to relaunch for any configuration it doesn't
handle. However, with multi-window support the activity manager doesn't
relaunch an activity if the configuration change doesn't cross a resource
threshold.
We now save the configuration on the client side when activity manager
tells us not to report the changes to the app (i.e. configuration
changed, but wasn't big enough for relaunch)

Bug: 23904868
Change-Id: I54f65cad65c1b8ed5da1165a8b2816adbea41d4b

8 years agoAllow access to deprecated LOCK_PATTERN_ENABLED flag.
Bryce Lee [Mon, 14 Dec 2015 22:39:10 +0000 (14:39 -0800)]
Allow access to deprecated LOCK_PATTERN_ENABLED flag.

It is possible that older platforms may have not cleared the lock pattern,
but instead only checked this flag to determine the lock pattern enabled
state. In such cases, upgrading to a platform with that only checks the
lock pattern can lead to the lock screen being re-enabled by accident.
These new methods allow this condition to be identified and resolved.

Bug: 26029690
Change-Id: I8f7ebc0e1915049afe49c219c87010aa38a16244

8 years agoMake KEYCODE_SPACE a confirm key.
Michael Wright [Thu, 26 Nov 2015 16:04:54 +0000 (16:04 +0000)]
Make KEYCODE_SPACE a confirm key.

By default space should "click" the focused item. This behavior also
applies to GridView and ListView if the items are clickable, but will
continue the previous behavior of scrolling if it's just a list of
items you can't really interact with.

Change-Id: Ic3a0334614d1dc68ff98bc4b1fb1ae2f961f71af

8 years agoMerge "Load Portuguese and German hyphenation in Hyphenator"
Roozbeh Pournader [Mon, 14 Dec 2015 21:54:26 +0000 (21:54 +0000)]
Merge "Load Portuguese and German hyphenation in Hyphenator"

8 years agoMerge "Trace SQLite operations" am: 6fe06606c4
Greg Hackmann [Mon, 14 Dec 2015 21:49:02 +0000 (13:49 -0800)]
Merge "Trace SQLite operations" am: 6fe06606c4
am: 0f13ddfdff

* commit '0f13ddfdffacffe1c8bcce3adba87dd32b0ab92a':
  Trace SQLite operations

8 years agoMerge "Trace SQLite operations"
Greg Hackmann [Mon, 14 Dec 2015 21:37:30 +0000 (13:37 -0800)]
Merge "Trace SQLite operations"
am: 6fe06606c4

* commit '6fe06606c4df39487d240cc1fa4ac6d944b33137':
  Trace SQLite operations

8 years agoMerge "Allow specifying pointer shape from xml resource."
Jun Mukai [Mon, 14 Dec 2015 21:34:28 +0000 (21:34 +0000)]
Merge "Allow specifying pointer shape from xml resource."

8 years agoLoad Portuguese and German hyphenation in Hyphenator
Roozbeh Pournader [Sat, 12 Dec 2015 20:08:37 +0000 (12:08 -0800)]
Load Portuguese and German hyphenation in Hyphenator

This also extends the fallback locale matching algorithm to consider
language+variant before just the language, so asking for "de-AT-1901"
would result in trying "de-1901" before trying "de".

Bug: 26169902
Change-Id: I55e5a73e7ac730d0bc14204126cbb3cc6ce0e9f1

8 years agoFrameworks/base: Fix typo in AccountManagerService
Andreas Gampe [Sat, 12 Dec 2015 01:23:33 +0000 (17:23 -0800)]
Frameworks/base: Fix typo in AccountManagerService

Fix an unintended tautology.

Bug: 19797138
Change-Id: Iec19b5c9c80b9f49a61b0dc3c9a9d5c13c84a992

8 years agoMerge "Trace SQLite operations"
Greg Hackmann [Mon, 14 Dec 2015 21:12:52 +0000 (21:12 +0000)]
Merge "Trace SQLite operations"