OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Add data binding to built javadoc." into mnc-dev
George Mount [Thu, 16 Jul 2015 14:19:08 +0000 (14:19 +0000)]
Merge "Add data binding to built javadoc." into mnc-dev

9 years agoDon't send app links to the parent if status = never (part 2)
Nicolas Prevot [Wed, 15 Jul 2015 13:54:45 +0000 (14:54 +0100)]
Don't send app links to the parent if status = never (part 2)

To qualify for cross-profile app linking, an intent should resolve
with a better status than "NEVER". Moved this check from canForwardTo
into the source method, getCrossProfileDomainPreferredLpr, to stop
bad resolutions leaking out.

BUG:22287521
Change-Id: I195979d78a783864d841a81f358780912bbf168e

9 years agoMerge "Remove redundant cancel events from FingerprintService" into mnc-dev
Vineeta Srivastava [Thu, 16 Jul 2015 07:06:52 +0000 (07:06 +0000)]
Merge "Remove redundant cancel events from FingerprintService" into mnc-dev

9 years agoMerge "Add new API for handling DB query per subId." into mnc-dev
Sanket Padawe [Thu, 16 Jul 2015 05:01:06 +0000 (05:01 +0000)]
Merge "Add new API for handling DB query per subId." into mnc-dev

9 years agoMerge "PopupWindow position must be specified in window coordinates." into mnc-dev
Yohei Yukawa [Thu, 16 Jul 2015 03:42:17 +0000 (03:42 +0000)]
Merge "PopupWindow position must be specified in window coordinates." into mnc-dev

9 years agoMerge "Fix comment bug in I71a8d356e868dc7715b030ca1078da4ec39368c3." into mnc-dev
Yohei Yukawa [Thu, 16 Jul 2015 03:31:52 +0000 (03:31 +0000)]
Merge "Fix comment bug in I71a8d356e868dc7715b030ca1078da4ec39368c3." into mnc-dev

9 years agoPopupWindow position must be specified in window coordinates.
Yohei Yukawa [Thu, 16 Jul 2015 02:01:32 +0000 (19:01 -0700)]
PopupWindow position must be specified in window coordinates.

This CL addresses TODOs in Ib641dda49f7ab1c7d60207c36a47767bb408.

With this CL the position of PopupWindow is always specified in
window-local coordinates even if FloatingToolbar#mParent is not a
decor view.

Bug: 22335001
Change-Id: I0cdd63a00051fa30981e517c07682075467ac598

9 years agoFix comment bug in I71a8d356e868dc7715b030ca1078da4ec39368c3.
Yohei Yukawa [Thu, 16 Jul 2015 02:00:18 +0000 (19:00 -0700)]
Fix comment bug in I71a8d356e868dc7715b030ca1078da4ec39368c3.

This is a coment-only follow up CL for I71a8d356e868dc7715b030ca,
which wrongly changed coordinates from window-local to view-local
(relative to FloatingToolbar#mParent) when showing PopupWindow.

The position of PopupWindow still needs to be specified in
window-local coordinates as we had done before
I71a8d356e868dc7715b030ca1078da4ec39368c3.

Currently the problem might not be visible to users because
  1. FloatingToolbar is not a public API hence all the instances
     are under our controll.
  2. FloatingToolbar#mParent is alwasy initialized with
     PhoneWindow#getDecorView() for now.

Bug: 22335001
Change-Id: Ib641dda49f7ab1c7d60207c36a47767bb408971c

9 years agoRemove redundant cancel events from FingerprintService
Jim Miller [Thu, 16 Jul 2015 01:57:14 +0000 (18:57 -0700)]
Remove redundant cancel events from FingerprintService

This fixes a bug where the framework was sending repeat cancel
events in response to terminal status (onAuthenticated(), onError())
which causes the underlying HAL implementation to get into a weird state.

Now, only client-initiated events like an explicit cancellation
or starting another authentication/enrollment invokes fingerprintd's
cancel() method.

Fixes bug 22438498

Change-Id: I762bab1c8635924848f9f4334db47a07130d5ae3

9 years agoMerge "Fix a bug disappearing installerPackageName info of packages after reboot...
Chris Tate [Thu, 16 Jul 2015 01:18:02 +0000 (01:18 +0000)]
Merge "Fix a bug disappearing installerPackageName info of packages after reboot." into mnc-dev

9 years agoMerge "Add tools:openDrawer to open a DrawerLayout." into mnc-dev
Deepanshu Gupta [Thu, 16 Jul 2015 00:59:33 +0000 (00:59 +0000)]
Merge "Add tools:openDrawer to open a DrawerLayout." into mnc-dev

9 years agoMerge "Change tools:list_item to listitem." into mnc-dev
Deepanshu Gupta [Thu, 16 Jul 2015 00:59:15 +0000 (00:59 +0000)]
Merge "Change tools:list_item to listitem." into mnc-dev

9 years agoam 8c5f34de: am b53568f2: docs: Added word "video" to tv app quality guidelines.
Robert Schaub [Thu, 16 Jul 2015 00:54:04 +0000 (00:54 +0000)]
am 8c5f34de: am b53568f2: docs: Added word "video" to tv app quality guidelines.

* commit '8c5f34de91fc1fb148bbee9f868d32ff6103a70a':
  docs: Added word "video" to tv app quality guidelines.

9 years agoam b53568f2: docs: Added word "video" to tv app quality guidelines.
Robert Schaub [Thu, 16 Jul 2015 00:43:26 +0000 (00:43 +0000)]
am b53568f2: docs: Added word "video" to tv app quality guidelines.

* commit 'b53568f27c384523dae58af9f4ad355a6c72d6d7':
  docs: Added word "video" to tv app quality guidelines.

9 years agoMerge "Allow selecting quick setting items by keyboard." into mnc-dev
Jun Mukai [Thu, 16 Jul 2015 00:37:13 +0000 (00:37 +0000)]
Merge "Allow selecting quick setting items by keyboard." into mnc-dev

9 years agoMerge "Make "dismiss all" button keyboard accessible." into mnc-dev
Oren Blasberg [Thu, 16 Jul 2015 00:29:33 +0000 (00:29 +0000)]
Merge "Make "dismiss all" button keyboard accessible." into mnc-dev

9 years agoMerge "Fix wrong tint mode on airplane and vpn icons" into mnc-dev
Adrian Roos [Thu, 16 Jul 2015 00:27:48 +0000 (00:27 +0000)]
Merge "Fix wrong tint mode on airplane and vpn icons" into mnc-dev

9 years agoMerge "Intent filters need CATEGORY_BROWSABLE to be app-linking eligible" into mnc-dev
Christopher Tate [Thu, 16 Jul 2015 00:20:55 +0000 (00:20 +0000)]
Merge "Intent filters need CATEGORY_BROWSABLE to be app-linking eligible" into mnc-dev

9 years agoFix a bug disappearing installerPackageName info of packages after reboot.
hyemin.hwang [Thu, 9 Jul 2015 00:16:12 +0000 (09:16 +0900)]
Fix a bug disappearing installerPackageName info of packages after reboot.

If user install apps from playstore, system has installerPackageName attribute of app.
but, after reboot, some apps(have sharedUserID) installerPackageName attribute disappearing.
because lack of copy routine.
So, I added copy routine(installerPackageName).

Testcase :
1. Install app(has sharedUserId, ex Lync2013) from market.
2. Confirm package info from packages.xml(exist installer info).
3. reboot.
4. Re-confirm package info from packages.xml(not exist installer info).

Cherry-pick from AOSP master.
Bug 22513758

Change-Id: I3fea3e573c056f6c2f574715d2ebef4df8b75a68

9 years agoMerge "Bug: 21589105 Rescoping SYSTEM_ALERT_WINDOW..." into mnc-dev
Billy Lau [Thu, 16 Jul 2015 00:04:32 +0000 (00:04 +0000)]
Merge "Bug: 21589105 Rescoping SYSTEM_ALERT_WINDOW..." into mnc-dev

9 years agoIntent filters need CATEGORY_BROWSABLE to be app-linking eligible
Christopher Tate [Wed, 15 Jul 2015 23:56:58 +0000 (16:56 -0700)]
Intent filters need CATEGORY_BROWSABLE to be app-linking eligible

Bug 22504009

Change-Id: I565b2ba4d1e5deeee8ede3363819deec206dbf58

9 years agodocs: Added word "video" to tv app quality guidelines.
Robert Schaub [Wed, 15 Jul 2015 23:41:22 +0000 (16:41 -0700)]
docs: Added word "video" to tv app quality guidelines.

Bug: 21737663

Change-Id: Ia4edcae6f2089f15156a857da295e89265f56d5d

9 years agoAdd tools:openDrawer to open a DrawerLayout.
Deepanshu Gupta [Sat, 11 Jul 2015 00:38:29 +0000 (17:38 -0700)]
Add tools:openDrawer to open a DrawerLayout.

Store a list of drawer layouts with tools:openDrawer encountered and
call openDrawer on them during the post-inflation processing.

Change-Id: Idee299a9af1bb106509a03bb2e8424c372b93dc5

9 years agoBug: 21589105 Rescoping SYSTEM_ALERT_WINDOW...
Billy Lau [Wed, 15 Jul 2015 21:29:19 +0000 (22:29 +0100)]
Bug: 21589105 Rescoping SYSTEM_ALERT_WINDOW...

AppOpsManager:
Changed the default mode for SYSTEM_ALERT_WINDOW to MODE_DEFAULT instead of
MODE_ALLOWED. Otherwise, an app that did not declare for this permission will
actually be allowed to perform OP_SYSTEM_ALERT_WINDOW, which is undesirable.
This change also allows callers to make their own decision based on the
current policy (M vs pre-M apps).

policy/PhoneWindowManager:
Added additional checks that will handle MODE_DEFAULT - this happens when an app
is newly installed but not yet configured.

wm/WindowManagerService:
Enriched some checks to include the treatment of MODE_DEFAULT - this will allow
pre-M apps uninterupted capability to draw on top of other apps.

Change-Id: I8de77730e158c97587427820cfba721bd5607bea

9 years agoMerge "Implement issue #22403908: Enable assistant to refuse context sharing" into...
Dianne Hackborn [Wed, 15 Jul 2015 23:31:09 +0000 (23:31 +0000)]
Merge "Implement issue #22403908: Enable assistant to refuse context sharing" into mnc-dev

9 years agoMerge "Fix issue #22487155: Device unresponsive (deadlock in system_server)" into...
Dianne Hackborn [Wed, 15 Jul 2015 23:30:49 +0000 (23:30 +0000)]
Merge "Fix issue #22487155: Device unresponsive (deadlock in system_server)" into mnc-dev

9 years agoChange tools:list_item to listitem.
Deepanshu Gupta [Wed, 8 Jul 2015 19:47:46 +0000 (12:47 -0700)]
Change tools:list_item to listitem.

The listitem is already in use for ListView. Reuse the same attribute
for RecyclerView rather than creating a new one.

Change-Id: I82aabe7d04fbe3e61645bc427a81c14c454d03c5

9 years agoMerge "Fix issue #22460110: AssistStructure.ViewNode.isAssistBlocked() always......
Dianne Hackborn [Wed, 15 Jul 2015 23:30:16 +0000 (23:30 +0000)]
Merge "Fix issue #22460110: AssistStructure.ViewNode.isAssistBlocked() always..." into mnc-dev

9 years agoMerge "Fix issue #22479881: Nexus 6 randomly rebooting every few hours with..." into...
Dianne Hackborn [Wed, 15 Jul 2015 23:30:06 +0000 (23:30 +0000)]
Merge "Fix issue #22479881: Nexus 6 randomly rebooting every few hours with..." into mnc-dev

9 years agoMerge "Fix issue #22124996: VI: Command Request not Active" into mnc-dev
Dianne Hackborn [Wed, 15 Jul 2015 23:29:53 +0000 (23:29 +0000)]
Merge "Fix issue #22124996: VI: Command Request not Active" into mnc-dev

9 years agoMerge "Make sure we get valid package name or fail." into mnc-dev
Svetoslav [Wed, 15 Jul 2015 23:03:45 +0000 (23:03 +0000)]
Merge "Make sure we get valid package name or fail." into mnc-dev

9 years agoMake sure we get valid package name or fail.
Svetoslav [Wed, 15 Jul 2015 22:58:01 +0000 (15:58 -0700)]
Make sure we get valid package name or fail.

bug:22492225

Change-Id: I7b7dce9a8e398c4615bcb700de80241e94c4320c

9 years agoMerge "Resolve based on the correct user's default browser" into mnc-dev
Christopher Tate [Wed, 15 Jul 2015 22:57:49 +0000 (22:57 +0000)]
Merge "Resolve based on the correct user's default browser" into mnc-dev

9 years agoMerge "Let the ActionBar handle keyboard shortcuts." into mnc-dev
Abodunrinwa Toki [Wed, 15 Jul 2015 22:38:55 +0000 (22:38 +0000)]
Merge "Let the ActionBar handle keyboard shortcuts." into mnc-dev

9 years agoMerge "fix BNNM docs" into mnc-dev
Miao Wang [Wed, 15 Jul 2015 22:21:11 +0000 (22:21 +0000)]
Merge "fix BNNM docs" into mnc-dev

9 years agoMerge "Grant default permissions to the setup app robustly." into mnc-dev
Svet Ganov [Wed, 15 Jul 2015 21:58:47 +0000 (21:58 +0000)]
Merge "Grant default permissions to the setup app robustly." into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:56:25 +0000 (21:56 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Show correct locked orientation on phones" into mnc-dev
Adrian Roos [Wed, 15 Jul 2015 21:56:12 +0000 (21:56 +0000)]
Merge "Show correct locked orientation on phones" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:55:49 +0000 (21:55 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:54:06 +0000 (21:54 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoResolve based on the correct user's default browser
Christopher Tate [Wed, 15 Jul 2015 21:52:29 +0000 (14:52 -0700)]
Resolve based on the correct user's default browser

Bug 22509659

Change-Id: Iac75e7b40609bf2c81d266e0568fbfbeb71bb3aa

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:50:46 +0000 (21:50 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:48:18 +0000 (21:48 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:47:12 +0000 (21:47 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoGrant default permissions to the setup app robustly.
Svet Ganov [Wed, 15 Jul 2015 18:04:18 +0000 (11:04 -0700)]
Grant default permissions to the setup app robustly.

There is a zoo of components that handle the home intent and
have different priority. There is no reliable way to distinguish
the setup app from the other apps that handle home as some of
them have lower priority than the setup app and some higher.
This change adds a dedicated category to recognize the default
setup app.

Uncommented the code that grants accounts permissions as the
get_accounts permission is now a runtime permission and can be
granted.

bug:22471024
bug:22501463

Change-Id: I41726751fa2567cbcd7d09c7acfa7615b8aba577

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:44:00 +0000 (21:44 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 21:41:14 +0000 (21:41 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoFix wrong tint mode on airplane and vpn icons
Adrian Roos [Wed, 15 Jul 2015 21:38:39 +0000 (14:38 -0700)]
Fix wrong tint mode on airplane and vpn icons

Bug: 22399062
Change-Id: If7d0e6d4d2ace947672f9a943bb274f07736ddb0

9 years agoImplement issue #22403908: Enable assistant to refuse context sharing
Dianne Hackborn [Wed, 15 Jul 2015 21:20:51 +0000 (14:20 -0700)]
Implement issue #22403908: Enable assistant to refuse context sharing

New APIs allow the voice interaction service to set/retrieve a filter
for which of the show flags are allowed.

Change-Id: I588cbe55afee0548ad3afa22d3a7d3bc43cb54a6

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 21:19:57 +0000 (14:19 -0700)]
Import translations. DO NOT MERGE

Change-Id: I428e579d5968139dcdf6e8e693f4d2eef182c682
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 21:17:17 +0000 (14:17 -0700)]
Import translations. DO NOT MERGE

Change-Id: I7e22afc43c9029b40ba2df53dfc10a9a688c4fd2
Auto-generated-cl: translation import

9 years agoAdjust assist disclosure stroke width to spec
Jorim Jaggi [Tue, 14 Jul 2015 19:44:12 +0000 (12:44 -0700)]
Adjust assist disclosure stroke width to spec

Bug: 21568059
Change-Id: Ib1ddb8890715b98d36ed5827f053970a9d4a7173

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 21:07:29 +0000 (14:07 -0700)]
Import translations. DO NOT MERGE

Change-Id: I376fa651ad29df01e4a7844a9e64508f4b163cf0
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 21:02:08 +0000 (14:02 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2960b24e8ab390425898ac33034b24ceae260a65
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 20:59:16 +0000 (13:59 -0700)]
Import translations. DO NOT MERGE

Change-Id: I5a4734ab26f74e593ace500f8ff19d280cf7a6a1
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 20:56:28 +0000 (13:56 -0700)]
Import translations. DO NOT MERGE

Change-Id: I4f6e47dc83c9fea23c61f43f791460d4bc5cc4ca
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 20:50:55 +0000 (13:50 -0700)]
Import translations. DO NOT MERGE

Change-Id: I37b181b340777aed3cb07cfb88c0e69803f4826a
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 20:48:05 +0000 (13:48 -0700)]
Import translations. DO NOT MERGE

Change-Id: I31dfaa6cbd223dfda3fa841edcb0f62ea576ffb2
Auto-generated-cl: translation import

9 years agoMerge "Handle exceptions when accessing Content providers." into mnc-dev
Roshan Pius [Wed, 15 Jul 2015 19:23:28 +0000 (19:23 +0000)]
Merge "Handle exceptions when accessing Content providers." into mnc-dev

9 years agoMake "dismiss all" button keyboard accessible.
Oren Blasberg [Sat, 11 Jul 2015 00:00:17 +0000 (17:00 -0700)]
Make "dismiss all" button keyboard accessible.

This allows users to hit Tab while in the notification pane and access
the Dismiss All icon, with a physical keyboard.

Bug: 22411158
Change-Id: I544bd3ccafcae210770317193099b26972d6a52b
(cherry picked from commit 10cb3105c79dd7de1f2cc9297b1d3b77598de8e3)

9 years agoMerge "Set last modified timestamp for the bugreport entry in the zipped file from...
Felipe Leme [Wed, 15 Jul 2015 19:00:41 +0000 (19:00 +0000)]
Merge "Set last modified timestamp for the bugreport entry in the zipped file from original file, otherwise it uses the date the zip was created." into mnc-dev

9 years agoMerge "Fix build." into mnc-dev
Dianne Hackborn [Wed, 15 Jul 2015 18:59:18 +0000 (18:59 +0000)]
Merge "Fix build." into mnc-dev

9 years agoFix build.
Dianne Hackborn [Wed, 15 Jul 2015 18:58:27 +0000 (11:58 -0700)]
Fix build.

Change-Id: Ib165c32d1d87e971902b4dd7300ccebd65e71a7d

9 years agofix BNNM docs
Miao Wang [Wed, 15 Jul 2015 18:35:28 +0000 (11:35 -0700)]
fix BNNM docs

bug: 22507076
Change-Id: I5fdffdde597d97b1dde77574d096b81bff4aa382

9 years agoAdd USB port manager.
Jeff Brown [Tue, 7 Jul 2015 19:44:17 +0000 (12:44 -0700)]
Add USB port manager.

Add some new internal APIs to enumerate USB Type C ports, query their
status, determine whether they support changing power or data roles,
and doing so.  The API also adds a new ACTION_USB_PORT_CHANGED broadcast
for port state changes.

The implementation includes a mechanism for simulating the behavior
of the USB stack.  See 'adb shell dumpsys usb -h' for details.

Note that the underlying kernel driver interface is still subject
to change but its behavior has been encapsulated as much as possible.

Bug: 21615151
Change-Id: I0c853ae179248a4550b3e60d02a7a7e65e4546b2

9 years agoClean up USB Manager dump.
Jeff Brown [Tue, 7 Jul 2015 19:40:53 +0000 (12:40 -0700)]
Clean up USB Manager dump.

Tidy up the dump() implementation in preparation for further work.

Bug: 21615151
Change-Id: If6d94c8dc9457b8e93103541ec1798981eeb5b54

9 years agoFix issue #22487155: Device unresponsive (deadlock in system_server)
Dianne Hackborn [Wed, 15 Jul 2015 18:32:32 +0000 (11:32 -0700)]
Fix issue #22487155: Device unresponsive (deadlock in system_server)

Using my magic potion, Deadlock-B-Gone!

Change-Id: If5c0a2b18134dc95444f3782ab5aa475414b5839

9 years agoFix issue #22460110: AssistStructure.ViewNode.isAssistBlocked() always...
Dianne Hackborn [Wed, 15 Jul 2015 18:25:55 +0000 (11:25 -0700)]
Fix issue #22460110: AssistStructure.ViewNode.isAssistBlocked() always...

...returns true

Well it wasn't *quite* always, but close enough. :p

Change-Id: I990b8b2ca7b80ce68a067b0dd92efc1c2faaa8cd

9 years agoFix issue #22479881: Nexus 6 randomly rebooting every few hours with...
Dianne Hackborn [Wed, 15 Jul 2015 18:21:38 +0000 (11:21 -0700)]
Fix issue #22479881: Nexus 6 randomly rebooting every few hours with...

..."FATAL EXCEPTION IN SYSTEM PROCESS"

Synchronous calls out of the system process are bad, m'kay?

This should be a safe change because the only place I see calling
this interface are within the system process where there is clearly
no other dependency on ordering.

Change-Id: I483b07cfd68d00d74797784c2a75012e8dd67141

9 years agoFix issue #22124996: VI: Command Request not Active
Dianne Hackborn [Wed, 15 Jul 2015 18:18:09 +0000 (11:18 -0700)]
Fix issue #22124996: VI: Command Request not Active

This stupid thing wasn't even completely implemented
in HandlerCaller!  D'oh!

Change-Id: I0dac42c208fa0f08a6e20a6cb17b072f51efcaa7

9 years agoMerge "Give DCS permission needed to measure all users." into mnc-dev
Jeff Sharkey [Wed, 15 Jul 2015 18:02:59 +0000 (18:02 +0000)]
Merge "Give DCS permission needed to measure all users." into mnc-dev

9 years agoMerge "Only send EXTRA_STACK for private intent." into mnc-dev
Jeff Sharkey [Wed, 15 Jul 2015 18:02:53 +0000 (18:02 +0000)]
Merge "Only send EXTRA_STACK for private intent." into mnc-dev

9 years agoLet the ActionBar handle keyboard shortcuts.
Abodunrinwa Toki [Wed, 1 Jul 2015 00:44:04 +0000 (17:44 -0700)]
Let the ActionBar handle keyboard shortcuts.

Bug: 18021345
Change-Id: I5df8711dcd020f172f798745846e7b6c05c69191

9 years agoMerge "Improve tracking of screen on reasons." into mnc-dev
Dianne Hackborn [Wed, 15 Jul 2015 17:11:05 +0000 (17:11 +0000)]
Merge "Improve tracking of screen on reasons." into mnc-dev

9 years agoAllow selecting quick setting items by keyboard.
Jun Mukai [Mon, 13 Jul 2015 23:18:16 +0000 (16:18 -0700)]
Allow selecting quick setting items by keyboard.

Bug: 22460275
Change-Id: Ib27456d12c9284edfdc27d010782840765728853
(cherry picked from commit 0f939fecdf9cc385a6e9472deb1cb38431995b59)

9 years agoImprove tracking of screen on reasons.
Dianne Hackborn [Mon, 13 Jul 2015 21:48:08 +0000 (14:48 -0700)]
Improve tracking of screen on reasons.

- New screen on app op to record the last time each app has
  caused the screen to be turned on.
- New battery stats event that tells us the reason the screen
  has been asked to turn on.
- Propagate out power manager API to specify the reason a caller
  is asking to have the screen turned on.

Note that currently the window flag to turn the screen on bypasses
much of this because it is being handled in the window manager by
just directly telling the power manager to turn the screen on.  To
make this better we need a new API where it can specify who it is
calling the API for.

Change-Id: I667e56cb1f80508d054da004db667efbcc22e971

9 years agoGive DCS permission needed to measure all users.
Jeff Sharkey [Wed, 15 Jul 2015 16:58:22 +0000 (09:58 -0700)]
Give DCS permission needed to measure all users.

DCS runs as owner user, but needs to measure details for other users
on the device.

Bug: 22503636
Change-Id: I6d6899fae90c4e92b94647676bda8b88bad412e6

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 16:30:20 +0000 (11:30 -0500)]
Import translations. DO NOT MERGE

Change-Id: I54d30125585b48fa3d419a991802ce6152b9cbcd
Auto-generated-cl: translation import

9 years agoOnly send EXTRA_STACK for private intent.
Jeff Sharkey [Wed, 15 Jul 2015 16:13:14 +0000 (09:13 -0700)]
Only send EXTRA_STACK for private intent.

Since it's a private Parcelable class, we can't send it to other
third-party apps, since they won't know how to unpack it.

Bug: 22255387
Change-Id: Ie2ea6cf72b733bd122eb3581a5df295cec608425

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 15:46:59 +0000 (15:46 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 15:43:54 +0000 (10:43 -0500)]
Import translations. DO NOT MERGE

Change-Id: I03908869f5a297a5400488f13e57999c4e883db0
Auto-generated-cl: translation import

9 years agoMerge "Fix input pause without resume." into mnc-dev
George Mount [Wed, 15 Jul 2015 14:12:26 +0000 (14:12 +0000)]
Merge "Fix input pause without resume." into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 15 Jul 2015 13:48:51 +0000 (13:48 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 13:47:39 +0000 (06:47 -0700)]
Import translations. DO NOT MERGE

Change-Id: I4e7c446cc9fd0a34b81173a74cddc40c22b7b74b
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 15 Jul 2015 13:42:54 +0000 (06:42 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic93e9b866c3f933bab929f480a6b8098e585ed9c
Auto-generated-cl: translation import

9 years agoMerge "Relax strict ActionMode instance checking when finishing action modes" into...
Adam Powell [Wed, 15 Jul 2015 02:31:18 +0000 (02:31 +0000)]
Merge "Relax strict ActionMode instance checking when finishing action modes" into mnc-dev

9 years agoRelax strict ActionMode instance checking when finishing action modes
Adam Powell [Wed, 15 Jul 2015 02:08:39 +0000 (19:08 -0700)]
Relax strict ActionMode instance checking when finishing action modes

In previous platform versions, finishing an action mode would clean up
the current action mode even if it was not the same ActionMode
instance. Some common shared code inadvertently relied on this
behavior, so stay bug-compatible with it based on targetSdkVersion.
New apps will get the stricter behavior.

Bug 22265882

Change-Id: Id5d6341aefc07a3cb788d5d6d0b531816f761e42

9 years agoMerge "Bump mms whitelist time up to 1 minute." into mnc-dev
Dianne Hackborn [Wed, 15 Jul 2015 01:49:52 +0000 (01:49 +0000)]
Merge "Bump mms whitelist time up to 1 minute." into mnc-dev

9 years agoBump mms whitelist time up to 1 minute.
Dianne Hackborn [Wed, 15 Jul 2015 01:48:07 +0000 (18:48 -0700)]
Bump mms whitelist time up to 1 minute.

Change-Id: I09074c440430580fcfb2581275defe61c63c8ae8

9 years agoMerge "Fix issue #21626564: MMS should be receivied while Dozing" into mnc-dev
Dianne Hackborn [Wed, 15 Jul 2015 01:45:30 +0000 (01:45 +0000)]
Merge "Fix issue #21626564: MMS should be receivied while Dozing" into mnc-dev

9 years agoMerge "Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast" into mnc-dev
Fyodor Kupolov [Wed, 15 Jul 2015 01:34:37 +0000 (01:34 +0000)]
Merge "Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast" into mnc-dev

9 years agoFix issue #21626564: MMS should be receivied while Dozing
Dianne Hackborn [Tue, 14 Jul 2015 01:00:37 +0000 (18:00 -0700)]
Fix issue #21626564: MMS should be receivied while Dozing

We now place whoever is receiving the MMS on the temporary
whitelist while doing so, so they can get network access to
download it.

There was also an issue that needed to be fixed where we
were no longer updating the list of allowed uids while
dozing based on their proc states...  we now do that.

Also did a bit of optimization of the temp white list update
path do the network policy manager, instead of going through
a broadcast we now directly call in to the network policy
manager.  This also allows us to have a synchronous version
of updating the list, so we can know the app has network access
before we tell it to do anything.

Finally added battery stats events for things going on and off
the whitelist so we can diagnose the behavior there.

Change-Id: Ic7fe010af680034d9f8cb014bb135b2addef7455

9 years agoMerge "AudioManager: fix audio device callback list access" into mnc-dev
Eric Laurent [Wed, 15 Jul 2015 01:31:44 +0000 (01:31 +0000)]
Merge "AudioManager: fix audio device callback list access" into mnc-dev

9 years agoMerge "Added sendBroadcastMultiplePermissions method" into mnc-dev
Fyodor Kupolov [Wed, 15 Jul 2015 00:48:37 +0000 (00:48 +0000)]
Merge "Added sendBroadcastMultiplePermissions method" into mnc-dev

9 years agoMerge "BatteryStats: Clear power use when removing a UID from uid_cputime kernel...
Adam Lesinski [Wed, 15 Jul 2015 00:30:17 +0000 (00:30 +0000)]
Merge "BatteryStats: Clear power use when removing a UID from uid_cputime kernel module" into mnc-dev

9 years agoAdded sendBroadcastMultiplePermissions method
Fyodor Kupolov [Tue, 14 Jul 2015 02:19:25 +0000 (19:19 -0700)]
Added sendBroadcastMultiplePermissions method

Added Context.sendBroadcastMultiplePermissions(Intent intent, String[]
receiverPermissions) method, which allows an array of required permissions
to be enforced.

Bug: 21852542
Change-Id: I27c9130e8f004b428452501ebc8a36aabde1f343

9 years agoBatteryStats: Fix deadlock
Adam Lesinski [Tue, 14 Jul 2015 23:27:40 +0000 (16:27 -0700)]
BatteryStats: Fix deadlock

Bug:22486756
Change-Id: I20e10cc344b128bfa156c5aada93d3fb2b0fcaa3

9 years agoBatteryStats: Clear power use when removing a UID from uid_cputime kernel module
Adam Lesinski [Tue, 14 Jul 2015 23:51:53 +0000 (16:51 -0700)]
BatteryStats: Clear power use when removing a UID from uid_cputime kernel module

Bug:22461683
Change-Id: Iffb847268d2872bd2a843e28dc41fa22b1e36828

9 years agoShow correct locked orientation on phones
Adrian Roos [Tue, 14 Jul 2015 23:41:57 +0000 (16:41 -0700)]
Show correct locked orientation on phones

Bug: 22487750
Change-Id: I1feaaf1e569c576c5212ef396732b2bbb5a0c0fc

9 years agoAudioManager: fix audio device callback list access
Eric Laurent [Tue, 14 Jul 2015 23:27:54 +0000 (16:27 -0700)]
AudioManager: fix audio device callback list access

Bug: 22470616.
Change-Id: Ic59e8499557395dabe789b5fec9cb7c86c13d10c