OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Fix API review: Camera prewarm" into mnc-dev
Jorim Jaggi [Tue, 2 Jun 2015 22:25:28 +0000 (22:25 +0000)]
Merge "Fix API review: Camera prewarm" into mnc-dev

9 years agoMerge "Make sure starting windows only draw once" into mnc-dev
Jorim Jaggi [Tue, 2 Jun 2015 22:24:47 +0000 (22:24 +0000)]
Merge "Make sure starting windows only draw once" into mnc-dev

9 years agoMerge "Make ACTION_PROVISION_MANAGED_DEVICE public." into mnc-dev
Nicolas Prevot [Tue, 2 Jun 2015 22:11:10 +0000 (22:11 +0000)]
Merge "Make ACTION_PROVISION_MANAGED_DEVICE public." into mnc-dev

9 years agoMerge "Fix java doc" into mnc-dev
Svetoslav [Tue, 2 Jun 2015 22:09:17 +0000 (22:09 +0000)]
Merge "Fix java doc" into mnc-dev

9 years agoFix java doc
Svetoslav [Tue, 2 Jun 2015 22:08:48 +0000 (15:08 -0700)]
Fix java doc

Change-Id: I927a1766e1e4cac99d0d7999fef568b82af769af

9 years agoMerge "Rename PhoneNumberUtils APIs" into mnc-dev
Brian Attwell [Tue, 2 Jun 2015 22:02:23 +0000 (22:02 +0000)]
Merge "Rename PhoneNumberUtils APIs" into mnc-dev

9 years agoMerge "Add API to hint whether to show on-board UI before a permission request."...
Svetoslav [Tue, 2 Jun 2015 21:53:19 +0000 (21:53 +0000)]
Merge "Add API to hint whether to show on-board UI before a permission request." into mnc-dev

9 years agoAdd API to hint whether to show on-board UI before a permission request.
Svetoslav [Fri, 29 May 2015 22:43:04 +0000 (15:43 -0700)]
Add API to hint whether to show on-board UI before a permission request.

bug:21511988

Change-Id: I9d1d7adf34b68074e65510f53b6e642cf784cf6b

9 years agoRename PhoneNumberUtils APIs
Brian Attwell [Tue, 2 Jun 2015 20:27:47 +0000 (13:27 -0700)]
Rename PhoneNumberUtils APIs

In response to more API review.

Bug: 21571895
Change-Id: Ia1fa69da07a3427997919ba61c77fcbad7e79f2a

9 years agoMerge "Revert "Migrating MmsConfig to CarrierConfigManager."" into mnc-dev
Jonathan Basseri [Tue, 2 Jun 2015 21:14:59 +0000 (21:14 +0000)]
Merge "Revert "Migrating MmsConfig to CarrierConfigManager."" into mnc-dev

9 years agoRevert "Migrating MmsConfig to CarrierConfigManager."
Jonathan Basseri [Tue, 2 Jun 2015 21:13:48 +0000 (21:13 +0000)]
Revert "Migrating MmsConfig to CarrierConfigManager."

Forgot to update-API

This reverts commit 9444f4be82d2bbc6b8668e73e91cfa70aee2d4dc.

Change-Id: I8e1bb7ff5b86d478ae7a79497d28ee9310209de6

9 years agoMerge "Patches for IKeyguardStateCallback" into mnc-dev
Adrian Roos [Tue, 2 Jun 2015 21:05:21 +0000 (21:05 +0000)]
Merge "Patches for IKeyguardStateCallback" into mnc-dev

9 years agoMake ACTION_PROVISION_MANAGED_DEVICE public.
Nicolas Prevot [Wed, 29 Apr 2015 13:43:49 +0000 (14:43 +0100)]
Make ACTION_PROVISION_MANAGED_DEVICE public.

Also remove the doc saying that factory reset is impossible if there
is a device owner: the device owner may not set the user restriciton
DISALLOW_FACTORY_RESET.

BUG:19889110

Change-Id: Iadc084a38e541061c0b0c95bfc95da73d48842d7

9 years agoDecouple ProviderStatus & internal provider state
Brian Attwell [Fri, 29 May 2015 02:25:21 +0000 (19:25 -0700)]
Decouple ProviderStatus & internal provider state

Bug: 21090207
Change-Id: I7e93e36ad0c0d667ac56983c76acb1b97bd8755c

9 years agoMerge "Hide and disable emergency assist API" into mnc-dev
Adrian Roos [Tue, 2 Jun 2015 20:50:34 +0000 (20:50 +0000)]
Merge "Hide and disable emergency assist API" into mnc-dev

9 years agoMerge "Migrating MmsConfig to CarrierConfigManager." into mnc-dev
Jonathan Basseri [Tue, 2 Jun 2015 20:43:08 +0000 (20:43 +0000)]
Merge "Migrating MmsConfig to CarrierConfigManager." into mnc-dev

9 years agoMerge "Add ability to get device by address" into mnc-dev
Jason Monk [Tue, 2 Jun 2015 20:41:21 +0000 (20:41 +0000)]
Merge "Add ability to get device by address" into mnc-dev

9 years agoMerge "Temporarily whitelist an app for network during doze" into mnc-dev
Amith Yamasani [Tue, 2 Jun 2015 20:34:58 +0000 (20:34 +0000)]
Merge "Temporarily whitelist an app for network during doze" into mnc-dev

9 years agoMerge "Use immutable ashmem bitmaps in screenshot notifications." into mnc-dev
Winson Chung [Tue, 2 Jun 2015 20:20:06 +0000 (20:20 +0000)]
Merge "Use immutable ashmem bitmaps in screenshot notifications." into mnc-dev

9 years agoRemove obsolete symbols
Adrian Roos [Tue, 2 Jun 2015 02:20:07 +0000 (19:20 -0700)]
Remove obsolete symbols

Change-Id: I8e95e82ef4f954376c57685df80184416d579fe5

9 years agoMerge "Device policy: consistent javadoc and annotations" into mnc-dev
Robin Lee [Tue, 2 Jun 2015 19:53:40 +0000 (19:53 +0000)]
Merge "Device policy: consistent javadoc and annotations" into mnc-dev

9 years agoMerge "aapt: add option for stricter symbol generation" into mnc-dev
Adrian Roos [Tue, 2 Jun 2015 19:52:31 +0000 (19:52 +0000)]
Merge "aapt: add option for stricter symbol generation" into mnc-dev

9 years agoUse immutable ashmem bitmaps in screenshot notifications.
Winson Chung [Tue, 2 Jun 2015 19:18:05 +0000 (12:18 -0700)]
Use immutable ashmem bitmaps in screenshot notifications.

Bug 21037890
Change-Id: Ib5ed32bb475e1e8f7b3407ac72f53a6d640ffad1

9 years agoMerge "Fix the NPE when checking mRebootReason" into mnc-dev
Tao Bao [Tue, 2 Jun 2015 19:17:52 +0000 (19:17 +0000)]
Merge "Fix the NPE when checking mRebootReason" into mnc-dev

9 years agoMerge "Fix calls to Rect.intersect(Rect) in package com.android.server.wm" into mnc-dev
Doris Liu [Tue, 2 Jun 2015 19:13:34 +0000 (19:13 +0000)]
Merge "Fix calls to Rect.intersect(Rect) in package com.android.server.wm" into mnc-dev

9 years agoFix the NPE when checking mRebootReason
Tao Bao [Tue, 2 Jun 2015 19:12:53 +0000 (12:12 -0700)]
Fix the NPE when checking mRebootReason

Bug: 21584198
Change-Id: Ie11092dbc771b54bd049d258dc705835a3eda494

9 years agoMerge "Handle network info updates while scanning is paused" into mnc-dev
Jason Monk [Tue, 2 Jun 2015 18:59:44 +0000 (18:59 +0000)]
Merge "Handle network info updates while scanning is paused" into mnc-dev

9 years agoMerge "Make CameraService proxy retry behavior more lenient." into mnc-dev
Ruben Brunk [Tue, 2 Jun 2015 18:55:26 +0000 (18:55 +0000)]
Merge "Make CameraService proxy retry behavior more lenient." into mnc-dev

9 years agoDevice policy: consistent javadoc and annotations
Robin Lee [Tue, 2 Jun 2015 16:56:29 +0000 (09:56 -0700)]
Device policy: consistent javadoc and annotations

Annotated all uses of the ComponentName parameter to methods in
DevicePolicyManager to indicate whether null is acceptable.

Deleted/fixed some inconsistent or poorly-worded documentation.

Bug: 21422939
Change-Id: Iadfa78c5170bf4899a9daaf93c3d4e9d8b170a45

9 years agoMerge "Enabled WMS.DEBUG_STARTING_WINDOW" into mnc-dev
Wale Ogunwale [Tue, 2 Jun 2015 18:55:09 +0000 (18:55 +0000)]
Merge "Enabled WMS.DEBUG_STARTING_WINDOW" into mnc-dev

9 years agoMerge "@hide TYPE_APPLICATION_ABOVE_SUB_PANEL window type." into mnc-dev
Wale Ogunwale [Tue, 2 Jun 2015 18:54:54 +0000 (18:54 +0000)]
Merge "@hide TYPE_APPLICATION_ABOVE_SUB_PANEL window type." into mnc-dev

9 years agoHandle network info updates while scanning is paused
Jason Monk [Tue, 2 Jun 2015 18:52:22 +0000 (14:52 -0400)]
Handle network info updates while scanning is paused

Bug: 21581533
Change-Id: I4216c3e9b64cb758e32dd93c39061f9d7a642ee0

9 years agoMake sure starting windows only draw once
Jorim Jaggi [Mon, 1 Jun 2015 23:55:05 +0000 (16:55 -0700)]
Make sure starting windows only draw once

The panel menu was invalidated, and thus a runnable was posted for
the next frame, to update the panel menu, and invalidate the view. We
avoid this by not invalidating the panel menu for starting windows.

Bug: 20949632
Change-Id: I67ca47e3a7ce3ba1d685c2313efa66fb1cdee312

9 years agoEnabled WMS.DEBUG_STARTING_WINDOW
Wale Ogunwale [Tue, 2 Jun 2015 18:32:52 +0000 (11:32 -0700)]
Enabled WMS.DEBUG_STARTING_WINDOW

To debug starting window issue reported in comment #38
of b/21384482

Bug 21384482

Change-Id: I2fbafda5fa79448057cf27a65d1be9b96894770e

9 years agoMerge "Show Carrier Network Change icon SysUI even while connected" into mnc-dev
Andrew Flynn [Tue, 2 Jun 2015 18:28:22 +0000 (18:28 +0000)]
Merge "Show Carrier Network Change icon SysUI even while connected" into mnc-dev

9 years agoMerge "Revert "Consistent documentation and annotations for DPMS"" into mnc-dev
Robin Lee [Tue, 2 Jun 2015 18:25:42 +0000 (18:25 +0000)]
Merge "Revert "Consistent documentation and annotations for DPMS"" into mnc-dev

9 years agoRevert "Consistent documentation and annotations for DPMS"
Robin Lee [Tue, 2 Jun 2015 18:25:28 +0000 (18:25 +0000)]
Revert "Consistent documentation and annotations for DPMS"

This reverts commit 695142a17a657d2c254ec4e1bfad9920f4c54832.

Change-Id: Iaa2abe7e8bcecc5177a395b0dab8f66cc7100d3d

9 years agoMerge "Consistent documentation and annotations for DPMS" into mnc-dev
Robin Lee [Tue, 2 Jun 2015 18:16:25 +0000 (18:16 +0000)]
Merge "Consistent documentation and annotations for DPMS" into mnc-dev

9 years agoConsistent documentation and annotations for DPMS
Robin Lee [Tue, 2 Jun 2015 16:56:29 +0000 (09:56 -0700)]
Consistent documentation and annotations for DPMS

Annotated all uses of the ComponentName parameter to methods in
DevicePolicyManager to indicate whether null is acceptable.

Deleted or fixed some inconsistent or poorly-worded documentation.

Bug: 21422939
Change-Id: I8d86d0968c2af3595f268828ea1625f1ed256d50

9 years ago@hide TYPE_APPLICATION_ABOVE_SUB_PANEL window type.
Wale Ogunwale [Tue, 2 Jun 2015 18:07:07 +0000 (11:07 -0700)]
@hide TYPE_APPLICATION_ABOVE_SUB_PANEL window type.

Bug: 21572285
Change-Id: Iff56a8ee5b91e02bd20afb7891bd94a0ec1abba9

9 years agoAdd ability to get device by address
Jason Monk [Tue, 2 Jun 2015 18:05:18 +0000 (14:05 -0400)]
Add ability to get device by address

Bug: 21444336
Change-Id: I003092a12e93e2eccab736e7da20a6a23df30bbf

9 years agoTemporarily whitelist an app for network during doze
Amith Yamasani [Fri, 29 May 2015 22:35:26 +0000 (15:35 -0700)]
Temporarily whitelist an app for network during doze

API to allow an app to be whitelisted for network and wakelock
access for a short period. So even if the device is in idle
mode, such apps can be given a chance to download the payload
related to a high priority cloud-to-device message.

This API is meant for system apps only.

A new permission CHANGE_DEVICE_IDLE_TEMP_WHITELIST is required
to make this call.

Bug: 21525864
Change-Id: Id7a761a664f21af5d7ff55aa56e8df98d15511ca

9 years agoMerge "Should reset mDismissKeyguard on keyguard secure change" into mnc-dev
Olawale Ogunwale [Tue, 2 Jun 2015 17:51:15 +0000 (17:51 +0000)]
Merge "Should reset mDismissKeyguard on keyguard secure change" into mnc-dev

9 years agoMerge "Fix null pointer dereference when security exception occurs" into mnc-dev
Olawale Ogunwale [Tue, 2 Jun 2015 17:51:00 +0000 (17:51 +0000)]
Merge "Fix null pointer dereference when security exception occurs" into mnc-dev

9 years agoMerge "WindowManagerService not propagating X and Y steps" into mnc-dev
Olawale Ogunwale [Tue, 2 Jun 2015 17:50:37 +0000 (17:50 +0000)]
Merge "WindowManagerService not propagating X and Y steps" into mnc-dev

9 years agoMake CameraService proxy retry behavior more lenient.
Ruben Brunk [Tue, 2 Jun 2015 01:41:28 +0000 (18:41 -0700)]
Make CameraService proxy retry behavior more lenient.

Bug: 21527760
Change-Id: I70abea66f1d1fafffcfdd8e30b0cff244f814e59

9 years agoMerge "System Health: Support expiring tokens" into mnc-dev
Carlos Valdivia [Tue, 2 Jun 2015 17:31:27 +0000 (17:31 +0000)]
Merge "System Health: Support expiring tokens" into mnc-dev

9 years agoMerge "Print exception stacktrace on failed scanPackageLI" into mnc-dev
Dmitriy Ivanov [Tue, 2 Jun 2015 17:28:21 +0000 (17:28 +0000)]
Merge "Print exception stacktrace on failed scanPackageLI" into mnc-dev

9 years agoMerge "Expose a few system APIs for BLE scan only mode." into mnc-dev
Wei Wang [Tue, 2 Jun 2015 17:23:59 +0000 (17:23 +0000)]
Merge "Expose a few system APIs for BLE scan only mode." into mnc-dev

9 years agoExpose a few system APIs for BLE scan only mode.
Wei Wang [Mon, 1 Jun 2015 19:14:28 +0000 (12:14 -0700)]
Expose a few system APIs for BLE scan only mode.

Bug: 21562349
Change-Id: Ifc58efcf01edac5b4f9e5266adb966e7bc492209

9 years agoMigrating MmsConfig to CarrierConfigManager.
Jonathan Basseri [Wed, 27 May 2015 08:18:46 +0000 (01:18 -0700)]
Migrating MmsConfig to CarrierConfigManager.

Define variables in CarrierConfigManager that mirror those in
SmsManager. These will replace MmsConfig. The literal values had to be
moved into this class because classes in frameworks/base/telephony
cannot reference classes in frameworks/opt/telephony.

There is no change to the SmsManager API, but the data available from
SmsManager#getCarrierConfigValues is moving from mms_config.xml files
into the new carrier config API.

Bug: 21085630
Change-Id: I8a88f46c770ddcb3ac6988c29d86f0ca1f211f4a

9 years agoSystem Health: Support expiring tokens
Carlos Valdivia [Fri, 22 May 2015 21:11:35 +0000 (14:11 -0700)]
System Health: Support expiring tokens

In the past android:customTokens=true authenticators were required to handle
their own token caching. This is detrimental for battery when high traffic
authenticators are constantly spinning up processes to start services to do
file io to check their own caches.  This change allows authenticator
implementers to optionally let the framework do some of the work for them by
providing the framework with a expiration time.

The AccountManagerService will make a best effort to re-use the cached
token if possible.

Bug: 21530782

Change-Id: I16a7edba36a220e3891e55cf61c725c2be863323

9 years agoMerge "Respect accessibility importance for before/after node ordering." into mnc-dev
Svet Ganov [Tue, 2 Jun 2015 16:49:46 +0000 (16:49 +0000)]
Merge "Respect accessibility importance for before/after node ordering." into mnc-dev

9 years agoMerge "Remove strict mode violation from value to string coercion" into mnc-dev
Alan Viverette [Tue, 2 Jun 2015 16:47:52 +0000 (16:47 +0000)]
Merge "Remove strict mode violation from value to string coercion" into mnc-dev

9 years agoRespect accessibility importance for before/after node ordering.
Svet Ganov [Tue, 2 Jun 2015 16:45:16 +0000 (09:45 -0700)]
Respect accessibility importance for before/after node ordering.

One can set a view to be visited before/after another one for
accessibility but the before/after target views were always added
to the node info for the view regardless if they are included
for accessiilbity. Now the target viwes are reported only if they
should be included for accessibility.

Change-Id: Iba64e6f0ee0dc090c8c3e6a0a940df8c7ecd49d9

9 years agoShow Carrier Network Change icon SysUI even while connected
Andrew Flynn [Fri, 29 May 2015 12:33:46 +0000 (08:33 -0400)]
Show Carrier Network Change icon SysUI even while connected

Taking connect/disconnect events into accounts results in frequent jank
while trying to show the icon.

Bug: 21504588
Change-Id: If271980cc46cfc20f80083de17a4b57c42439069

9 years agoFixed a crash with HUNs
Selim Cinek [Mon, 1 Jun 2015 13:11:19 +0000 (06:11 -0700)]
Fixed a crash with HUNs

Bug: 21500600
Change-Id: Idf0a7be5d58bb5c666b930a0beada1e0ed2869aa

9 years agoBluetooth PAN: Set isPreferred to true (1/2)
Andre Eisenbach [Tue, 2 Jun 2015 08:38:03 +0000 (01:38 -0700)]
Bluetooth PAN: Set isPreferred to true (1/2)

isPreferred must always be true for PAN so that the DUT can initiate
a PANU connection with the remote device not only from the internet
access menu in the profile setting, but also from the paired device
list menu.

Currently isPreferred is only true when PAN is in connected state
for the PANU role, so it will return false when the PAN profile is
not connected and the PANU connection will never be initiated
from the paired device list menu.

Change-Id: I120e681a113f56b74b45e01870adf96cdc2ca262

9 years agoBluetooth: Fix to avoid framework reboot during monkey testing
Nitin Shivpure [Thu, 12 Dec 2013 14:33:49 +0000 (20:03 +0530)]
Bluetooth: Fix to avoid framework reboot during monkey testing

When running monkeyrunner, sometimes the framework is disconnected due
to an unhandled Java exception while binding the PAN service (when it
is unsuccessful). Handing the Java exception while binding PAN service
solves this issue.

Change-Id: Idea710593a3f9496305f636042605303e73e7749

9 years agoMerge "Hide the software input based on its state." into mnc-dev
Seigo Nonaka [Tue, 2 Jun 2015 07:55:48 +0000 (07:55 +0000)]
Merge "Hide the software input based on its state." into mnc-dev

9 years agoMerge "Fix DHCP lease time parsing." into mnc-dev
Lorenzo Colitti [Tue, 2 Jun 2015 07:47:46 +0000 (07:47 +0000)]
Merge "Fix DHCP lease time parsing." into mnc-dev

9 years agoMerge "pass a defensive copy of DhcpResults" into mnc-dev
Erik Kline [Tue, 2 Jun 2015 07:42:53 +0000 (07:42 +0000)]
Merge "pass a defensive copy of DhcpResults" into mnc-dev

9 years agopass a defensive copy of DhcpResults
Erik Kline [Tue, 2 Jun 2015 06:51:45 +0000 (15:51 +0900)]
pass a defensive copy of DhcpResults

Also: correct state transition handling in DhcpBoundState#enter().

Bug: 20451261
Change-Id: I3be50f6b1b3fae179d6fff7ca8ae1d687caa3221

9 years agoFix DHCP lease time parsing.
Lorenzo Colitti [Tue, 2 Jun 2015 04:15:50 +0000 (13:15 +0900)]
Fix DHCP lease time parsing.

Currently we treat a lease time larger than 2**31-1 as a negative
value, which causes DhcpClient to attempt to renew its IP address
constantly. Fix this by properly handling large and infinite
lifetimes, and while we're at it, impose a minimum lease time of
60 seconds.

Bug: 21352084
Change-Id: If62c9efeffad6222e2fe0c110f77d0e4c70de96d

9 years agoam 65f6996a: (-s ours) am eb4bd19e: Terminate loop properly when cursor window is...
Jeff Brown [Tue, 2 Jun 2015 03:45:27 +0000 (03:45 +0000)]
am 65f6996a: (-s ours) am eb4bd19e: Terminate loop properly when cursor window is full. DO NOT MERGE

* commit '65f6996add7fe38000b5e28675b70064cec31837':
  Terminate loop properly when cursor window is full. DO NOT MERGE

9 years agoam eb4bd19e: Terminate loop properly when cursor window is full. DO NOT MERGE
Jeff Brown [Tue, 2 Jun 2015 03:33:31 +0000 (03:33 +0000)]
am eb4bd19e: Terminate loop properly when cursor window is full. DO NOT MERGE

* commit 'eb4bd19ef09b2c277347b08c4a050f01f686c9c2':
  Terminate loop properly when cursor window is full. DO NOT MERGE

9 years agoPatches for IKeyguardStateCallback
dooyoung.hwang [Thu, 21 May 2015 07:09:43 +0000 (16:09 +0900)]
Patches for IKeyguardStateCallback

1. Also notify input is restricted or not when IKeyguardStateCallback callback is added.
When first Keyguard is showing after boot, the mInputRestricted is not updated. So,
inKeyguardRestrictedInputMode still returns false, although device is locked.

2. If mShowing remains false during setup time of KeyguardViewMediator, mInputRestricted
is not updated. This is because updateInputRestrictedLocked is called only if showing
value is changed during setup time.
For this reason, when device is not provisioned, inKeyguardRestrictedInputMode returns
false, and device does not restrict key.

3. If one of callbacks causes RemoteException, the other callbacks are not called.
This is because catching RemoteException breaks for-loop.

(cherry-picked from commit 516dad062580201d7a4ad6c112b23434385d5268)

Change-Id: I0281405127bcc75285b908d01485da3ac9b40b52
Signed-off-by: Dooyoung Hwang <dooyoung.hwang@lge.com>
9 years agoaapt: add option for stricter symbol generation
Adrian Roos [Tue, 2 Jun 2015 00:59:41 +0000 (17:59 -0700)]
aapt: add option for stricter symbol generation

Adds an option that prevents generating java symbols for string
resources that don't have a default localization.

Bug: 21537397
Change-Id: Ifafa942b24d5cdbed93651cde363e859be13d395

9 years agoUn-hide connectGatt() variant with selective transport
Andre Eisenbach [Thu, 14 May 2015 21:48:00 +0000 (14:48 -0700)]
Un-hide connectGatt() variant with selective transport

Change-Id: I1d3c512160de2bd68550faf243bb151d5cf7f3c9

9 years agoMerge "Track camera and flashlight usage in battery stats." into mnc-dev
Ruben Brunk [Tue, 2 Jun 2015 01:48:21 +0000 (01:48 +0000)]
Merge "Track camera and flashlight usage in battery stats." into mnc-dev

9 years agoHide the software input based on its state.
Seigo Nonaka [Tue, 26 May 2015 11:54:43 +0000 (20:54 +0900)]
Hide the software input based on its state.

This is a 2nd trial of I20ae2749a which is reverted due to a regression.
The goals of this CL are two:
- Split setImeWindowStatus method into two: keeping IMS status and
  updating system UI e.g. NavBar icon state.
- Hide software keyboard based on a realistic IMS status.

IMMS#mImeWindowVis has been used for two purpose, keeping IMS status and
updating the NavBar icons, e.g. keyboard icon.
However, to update NavBar icon, sometimes IMMS#mImeWindowVis value is
updated without any notification from IMS. As the result, the status
value becomes incosistent with the real IMS state.
This patch extracts NavBar update logic into separate method and keeps
IMMS#mImeWindowVis as notified status. Then, use it for hiding software
input correctly in IMMS#hideCurrentInputLocked.

This CL also removes refreshImeWindowVisibilityLocked method including
workaround for fixing Bug 11186297. That issue is no longer
reproducible with latest lock screen and almost no effect for existing
users and developers.  So simply remove them in this CL.

BUG: 21446788
BUG: 20764441
BUG: 18722991
Change-Id: I33dc6278fd892f26e56352722bf9449b8b102030

9 years agoam 348d0a68: am 7af35669: docs: Added Javadocs for Testing Support Library v0.3 and...
Quddus Chong [Tue, 2 Jun 2015 01:25:21 +0000 (01:25 +0000)]
am 348d0a68: am 7af35669: docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug: 21442922

* commit '348d0a68ad317877061f23da512144b0e4c2dc7c':
  docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug: 21442922

9 years agoPrint exception stacktrace on failed scanPackageLI
Dmitriy Ivanov [Tue, 2 Jun 2015 01:19:10 +0000 (18:19 -0700)]
Print exception stacktrace on failed scanPackageLI

 The current message does not provide enough
 information to figure out what is going on.

Bug: http://b/8076853
Change-Id: I741781ce6829eac44e4edddd0a545f3be743ceeb

9 years agoMerge "Fix issue related selecting of "Contact sharing" in BT Settings." into mnc-dev
Sanket Padawe [Tue, 2 Jun 2015 01:20:25 +0000 (01:20 +0000)]
Merge "Fix issue related selecting of "Contact sharing" in BT Settings." into mnc-dev

9 years agoMerge "Fix TextView ActionMode overflow finishes the ActionMode" into mnc-dev
Clara Bayarri [Tue, 2 Jun 2015 01:15:44 +0000 (01:15 +0000)]
Merge "Fix TextView ActionMode overflow finishes the ActionMode" into mnc-dev

9 years agoMerge "Make Text Selection Action Mode secondary items IF_ROOM" into mnc-dev
Clara Bayarri [Tue, 2 Jun 2015 01:15:02 +0000 (01:15 +0000)]
Merge "Make Text Selection Action Mode secondary items IF_ROOM" into mnc-dev

9 years agoam 7af35669: docs: Added Javadocs for Testing Support Library v0.3 and updated the...
Quddus Chong [Tue, 2 Jun 2015 01:07:57 +0000 (01:07 +0000)]
am 7af35669: docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug: 21442922

* commit '7af3566912b0e014cfd1704acdeb31a0a7cca0d3':
  docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug: 21442922

9 years agoFix API review: Camera prewarm
Jorim Jaggi [Fri, 29 May 2015 21:49:08 +0000 (14:49 -0700)]
Fix API review: Camera prewarm

Let the intent receiver of a camea launch intent declare a prewarm
service instead of sending broadcasts.

Bug: 21347653
Change-Id: I11e31aad4f788ad90eb46a661b819d3e808ddb51

9 years agoMerge "Don't take the compatibility path for non-primary ActionModes" into mnc-dev
Adam Powell [Tue, 2 Jun 2015 01:00:05 +0000 (01:00 +0000)]
Merge "Don't take the compatibility path for non-primary ActionModes" into mnc-dev

9 years agoFix calls to Rect.intersect(Rect) in package com.android.server.wm
Doris Liu [Mon, 1 Jun 2015 20:18:43 +0000 (13:18 -0700)]
Fix calls to Rect.intersect(Rect) in package com.android.server.wm

This CL checks for the return value for Rect.intersect(Rect) for whether
there is actually an intersection before taking the calling rect as the
intersection. In addtion, this CL handles the cases where there is no
intersection (Rect.intersect(Rect) returns false).

bug: 7368679
Change-Id: I7d5ef7059ac432170470a108c0d6dece230ec0b3

9 years agoMerge "Don't add real children for a view with a node provider" into mnc-dev
Svetoslav [Tue, 2 Jun 2015 00:22:38 +0000 (00:22 +0000)]
Merge "Don't add real children for a view with a node provider" into mnc-dev

9 years agoDon't add real children for a view with a node provider
Svetoslav [Tue, 2 Jun 2015 00:21:59 +0000 (17:21 -0700)]
Don't add real children for a view with a node provider

Change-Id: I1dd43fa5ff93e8eb76e2c7587fb13cd1ef097678

9 years agodocs: Added Javadocs for Testing Support Library v0.3 and updated
Quddus Chong [Wed, 27 May 2015 23:07:54 +0000 (16:07 -0700)]
docs: Added Javadocs for Testing Support Library v0.3 and updated
the corresponding setup instructions.
bug: 21442922

Change-Id: I7374e8102fc95377e83db738ab7ff20510e04faa

9 years agoTerminate loop properly when cursor window is full. DO NOT MERGE
Jeff Brown [Sat, 30 May 2015 01:48:38 +0000 (18:48 -0700)]
Terminate loop properly when cursor window is full. DO NOT MERGE

The existing code exits the column-filling loop immediately but
may continue to try to fill rows.  Ordinarily this should fail
too but it's possible for the process to continue and then
blow up a little later.  Fixed this problem by exiting the row-
filling loop promptly.

Bug: 21406130
Change-Id: Ifab59188d5d1b40f3c1f5c97604dd48da71bf37b
(cherry picked from commit bb8c841e909a2fb967db2ad3b9f8b058f9b849e8)

9 years agoFix shared drawable state
Jorim Jaggi [Mon, 1 Jun 2015 23:25:39 +0000 (16:25 -0700)]
Fix shared drawable state

Not calling mutate here had a side-effect making the icon in the
status bar untintable in SysUI.

Bug: 21566007
Change-Id: Ifb78c81ba7f04d496f14031ef635a6e964e6280e

9 years agoTrack camera and flashlight usage in battery stats.
Ruben Brunk [Wed, 27 May 2015 00:32:16 +0000 (17:32 -0700)]
Track camera and flashlight usage in battery stats.

Bug: 15986092

Change-Id: Idf03981271721c44fd43327d5d90cf6f3fecfacb

9 years agoMerge "Add accidentally deleted strings." into mnc-dev
Svetoslav [Mon, 1 Jun 2015 23:53:54 +0000 (23:53 +0000)]
Merge "Add accidentally deleted strings." into mnc-dev

9 years agoMerge "Remove ViewAssistStructure and use the frameworks data structure" into mnc-dev
Selim Gurun [Mon, 1 Jun 2015 23:53:06 +0000 (23:53 +0000)]
Merge "Remove ViewAssistStructure and use the frameworks data structure" into mnc-dev

9 years agoMerge "Always send VIEW_CLICKED event from AdapterView.performItemClick()" into mnc-dev
Alan Viverette [Mon, 1 Jun 2015 23:52:35 +0000 (23:52 +0000)]
Merge "Always send VIEW_CLICKED event from AdapterView.performItemClick()" into mnc-dev

9 years agoAdd accidentally deleted strings.
Svetoslav [Mon, 1 Jun 2015 23:51:11 +0000 (16:51 -0700)]
Add accidentally deleted strings.

Change-Id: I16d7c151b46c076bfdccb1ff0b2bcb0934eedf93

9 years agoMerge "Camera2: Remove isLoggable" into mnc-dev
Eino-Ville Talvala [Mon, 1 Jun 2015 23:47:31 +0000 (23:47 +0000)]
Merge "Camera2: Remove isLoggable" into mnc-dev

9 years agoAlways send VIEW_CLICKED event from AdapterView.performItemClick()
Alan Viverette [Mon, 1 Jun 2015 23:41:42 +0000 (16:41 -0700)]
Always send VIEW_CLICKED event from AdapterView.performItemClick()

This makes it consistent with View.performClick().

Bug: 19574976
Change-Id: I00b222d56aa6fac03c2e6ead0604ee2ff3a6969d

9 years agoRemove ViewAssistStructure and use the frameworks data structure
Selim Gurun [Mon, 1 Jun 2015 23:26:10 +0000 (16:26 -0700)]
Remove ViewAssistStructure and use the frameworks data structure

As part of the API rename from ViewAssistStructure to ViewStructure,
we added a temporary workaround to prevent build breakage. Remove
the temporary workaround since the current unbundled webview package
implements the updated  onProvideVirtualStructure API.

Change-Id: I13a5b8dee3e856eb585de53a0750bd52c7a909a7

9 years agoMerge "Terminate loop properly when cursor window is full." into mnc-dev
Jeff Brown [Mon, 1 Jun 2015 23:34:24 +0000 (23:34 +0000)]
Merge "Terminate loop properly when cursor window is full." into mnc-dev

9 years agoTerminate loop properly when cursor window is full.
Jeff Brown [Sat, 30 May 2015 01:48:38 +0000 (18:48 -0700)]
Terminate loop properly when cursor window is full.

The existing code exits the column-filling loop immediately but
may continue to try to fill rows.  Ordinarily this should fail
too but it's possible for the process to continue and then
blow up a little later.  Fixed this problem by exiting the row-
filling loop promptly.

Bug: 21406130
Change-Id: Ifab59188d5d1b40f3c1f5c97604dd48da71bf37b

9 years agoMerge "Translucent bars in landscape" into mnc-dev
Adrian Roos [Mon, 1 Jun 2015 23:25:33 +0000 (23:25 +0000)]
Merge "Translucent bars in landscape" into mnc-dev

9 years agoMerge "LayoutLib: Skip classes from java package." into mnc-dev
Deepanshu Gupta [Mon, 1 Jun 2015 23:20:11 +0000 (23:20 +0000)]
Merge "LayoutLib: Skip classes from java package." into mnc-dev

9 years agoMerge "Skip warnings for some unresolved references." into mnc-dev
Deepanshu Gupta [Mon, 1 Jun 2015 23:20:03 +0000 (23:20 +0000)]
Merge "Skip warnings for some unresolved references." into mnc-dev

9 years agoam 65b7485d: am 2b95561d: docs: Fixed typo for confirm credentials section in the...
Quddus Chong [Mon, 1 Jun 2015 23:11:47 +0000 (23:11 +0000)]
am 65b7485d: am 2b95561d: docs: Fixed typo for confirm credentials section in the API Overview. bug: 21444273

* commit '65b7485d64661394b61df3df7eeccd063932886e':
  docs: Fixed typo for confirm credentials section in the API Overview. bug: 21444273

9 years agoMerge "Don't focus view for invalid task index." into mnc-dev
Winson Chung [Mon, 1 Jun 2015 23:07:36 +0000 (23:07 +0000)]
Merge "Don't focus view for invalid task index." into mnc-dev