OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Announce when volume controls appear and disappear." into nyc-dev
Julia Reynolds [Thu, 21 Apr 2016 20:18:27 +0000 (20:18 +0000)]
Merge "Announce when volume controls appear and disappear." into nyc-dev

8 years agoMerge "Make Dismiss Icon under Cards show up only when focused." into nyc-dev
Sid Soundararajan [Thu, 21 Apr 2016 20:06:29 +0000 (20:06 +0000)]
Merge "Make Dismiss Icon under Cards show up only when focused." into nyc-dev

8 years agoMerge "Framework: change the TTS text to use the current locale" into nyc-dev
Mihai Niță [Thu, 21 Apr 2016 19:55:41 +0000 (19:55 +0000)]
Merge "Framework: change the TTS text to use the current locale" into nyc-dev

8 years agoMerge "Respect manually set HARDWARE_ACCELERATED flag." into nyc-dev
Rob Carr [Thu, 21 Apr 2016 19:52:01 +0000 (19:52 +0000)]
Merge "Respect manually set HARDWARE_ACCELERATED flag." into nyc-dev

8 years agoMerge "Fix order of operation issue with ResStringPool" into nyc-dev
Adam Lesinski [Thu, 21 Apr 2016 19:08:38 +0000 (19:08 +0000)]
Merge "Fix order of operation issue with ResStringPool" into nyc-dev

8 years agoAnnounce when volume controls appear and disappear.
Julia Reynolds [Thu, 21 Apr 2016 18:58:52 +0000 (14:58 -0400)]
Announce when volume controls appear and disappear.

Bug: 28120156
Change-Id: I4e17b9cf1cd4a442adb7513168c12e3af24c424f

8 years agoMerge "AudioManager: fix isBluetoothA2dpOn()" into nyc-dev
Eric Laurent [Thu, 21 Apr 2016 18:22:57 +0000 (18:22 +0000)]
Merge "AudioManager: fix isBluetoothA2dpOn()" into nyc-dev

8 years agoMake Dismiss Icon under Cards show up only when focused.
Sid Soundararajan [Thu, 21 Apr 2016 18:20:52 +0000 (11:20 -0700)]
Make Dismiss Icon under Cards show up only when focused.

BUG: 28299529
Change-Id: I37cd029734da5de8416705746457151c22f64280

8 years agoMerge "Fix dead surface/window left on screen" into nyc-dev
Chong Zhang [Thu, 21 Apr 2016 17:58:50 +0000 (17:58 +0000)]
Merge "Fix dead surface/window left on screen" into nyc-dev

8 years agoMerge "Accept null subtype in InputMethodSubtypeHandle." into nyc-dev
Yohei Yukawa [Thu, 21 Apr 2016 17:11:53 +0000 (17:11 +0000)]
Merge "Accept null subtype in InputMethodSubtypeHandle." into nyc-dev

8 years agoMerge "Fix shadow radius too large for RS" into nyc-dev
Chris Craik [Thu, 21 Apr 2016 17:09:02 +0000 (17:09 +0000)]
Merge "Fix shadow radius too large for RS" into nyc-dev

8 years agoFix order of operation issue with ResStringPool
Adam Lesinski [Thu, 21 Apr 2016 17:05:06 +0000 (10:05 -0700)]
Fix order of operation issue with ResStringPool

Due to ! taking precedence over bitwise &, the condition for
checking non-null terminated string blocks is incorrect.

Adds parentheses for the correct behavior.

Bug:28288210
Change-Id: Ie31fa239e5f869e6bb28deb6ae190f41f1aa4d92

8 years agoMerge "PIP: Fix system UI crash" into nyc-dev
Youngsang Cho [Thu, 21 Apr 2016 16:23:00 +0000 (16:23 +0000)]
Merge "PIP: Fix system UI crash" into nyc-dev

8 years agoMerge "Fix wrong app is launched after solving challenge from tapping notification...
Tony Mak [Thu, 21 Apr 2016 15:51:13 +0000 (15:51 +0000)]
Merge "Fix wrong app is launched after solving challenge from tapping notification" into nyc-dev

8 years agoFix wrong app is launched after solving challenge from tapping notification
Tony Mak [Thu, 21 Apr 2016 15:43:08 +0000 (16:43 +0100)]
Fix wrong app is launched after solving challenge from tapping notification

PendingIntent.FLAG_ONE_SHOT is needed to prevent the PendingIntent being
reused.

Also, flag and activity option of credential intent in BaseStatusBar
is not same as the one in ActivityStarter. Added a new
function startConfirmDeviceCredentialIntent in AM to centralize it.

Change-Id: I2d9e5923ad5d4d012f10057c409c666c8ca299a3
Fix: 28309964

8 years agoMerge "Accept the calendar name in addition to the owner as a calendar filter." into...
Julia Reynolds [Thu, 21 Apr 2016 15:36:29 +0000 (15:36 +0000)]
Merge "Accept the calendar name in addition to the owner as a calendar filter." into nyc-dev

8 years agoMerge "Always reevaluate rules when a new service is added." into nyc-dev
Julia Reynolds [Thu, 21 Apr 2016 15:24:03 +0000 (15:24 +0000)]
Merge "Always reevaluate rules when a new service is added." into nyc-dev

8 years agoMerge "Include work app in battery optimization settings" into nyc-dev
Keith Cheung [Thu, 21 Apr 2016 15:18:06 +0000 (15:18 +0000)]
Merge "Include work app in battery optimization settings" into nyc-dev

8 years agoMerge "Don't call into audiomanager holding a zen lock." into nyc-dev
Julia Reynolds [Thu, 21 Apr 2016 15:04:05 +0000 (15:04 +0000)]
Merge "Don't call into audiomanager holding a zen lock." into nyc-dev

8 years agoMerge "Reinflate QS view on Locale configuration change" into nyc-dev
Clara Bayarri [Thu, 21 Apr 2016 14:47:14 +0000 (14:47 +0000)]
Merge "Reinflate QS view on Locale configuration change" into nyc-dev

8 years agoAlways reevaluate rules when a new service is added.
Julia Reynolds [Thu, 21 Apr 2016 14:24:27 +0000 (10:24 -0400)]
Always reevaluate rules when a new service is added.

Otherwise the condition providers may never get an
onSubscribe call and may not turn on at the right time.

Bug: 26981870
Change-Id: Ia622597f10cc26f7c34ece1748013655543f488f

8 years agoDon't call into audiomanager holding a zen lock.
Julia Reynolds [Tue, 19 Apr 2016 17:27:41 +0000 (13:27 -0400)]
Don't call into audiomanager holding a zen lock.

Bug: 27642196
Change-Id: Ib510f2ddf966f36b3670290a4f3f695bf6b7810e

8 years agoMerge "Volume updates should appear continuous when changed by touch." into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 14:33:48 +0000 (14:33 +0000)]
Merge "Volume updates should appear continuous when changed by touch." into nyc-dev

8 years agoMerge "Fix silent errors when launching Keyboard Shortcuts from Settings" into nyc-dev
Clara Bayarri [Thu, 21 Apr 2016 14:28:57 +0000 (14:28 +0000)]
Merge "Fix silent errors when launching Keyboard Shortcuts from Settings" into nyc-dev

8 years agoMerge "Cap number of NetworkRequests a UID can make to 100" into nyc-dev
Paul Jensen [Thu, 21 Apr 2016 13:47:11 +0000 (13:47 +0000)]
Merge "Cap number of NetworkRequests a UID can make to 100" into nyc-dev

8 years agoReinflate QS view on Locale configuration change
Clara Bayarri [Thu, 21 Apr 2016 13:28:47 +0000 (14:28 +0100)]
Reinflate QS view on Locale configuration change

The existing DensityContainer already did this for density changes,
repurposed it to handle other Configuration changes. Also renamed
to AutoReinflateContainer.

Bug: 27952059
Change-Id: Ieb572abcbafe49aec73b16e1bcb8c294011afdd3

8 years agoFix silent errors when launching Keyboard Shortcuts from Settings
Clara Bayarri [Fri, 15 Apr 2016 12:09:39 +0000 (13:09 +0100)]
Fix silent errors when launching Keyboard Shortcuts from Settings

The following error was thrown, given that Activity is generating a
protected broadcast:
Sending non-protected broadcast
android.intent.action.SHOW_KEYBOARD_SHORTCUTS from system

Bug: 28138503
Change-Id: I50d5212d7776d33ffe6e9df1c5f080205ac4a29d

8 years agoPIP: Fix system UI crash
Jaewan Kim [Thu, 21 Apr 2016 07:22:48 +0000 (16:22 +0900)]
PIP: Fix system UI crash

Bug: 28306480
Change-Id: Ie36f73c46f3ee8d6a2cb8264458cb0e0410aaecd

8 years agoMerge "Expand NetworkMonitor metrics" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 05:24:38 +0000 (05:24 +0000)]
Merge "Expand NetworkMonitor metrics" into nyc-dev

8 years agoMerge "Some fixes in ConnectivityService event logging" into nyc-dev
Hugo Benichi [Thu, 21 Apr 2016 04:02:54 +0000 (04:02 +0000)]
Merge "Some fixes in ConnectivityService event logging" into nyc-dev

8 years agoExpand NetworkMonitor metrics
Erik Kline [Fri, 15 Apr 2016 06:49:42 +0000 (15:49 +0900)]
Expand NetworkMonitor metrics

    - add netid to CaptivePortalStateChangeEvent
    - add NetworkMonitorEvent for simple duration measurements

Bug: 28204408
Change-Id: I62035e07d64013878a0bce30c67c929c2c7e7a85

8 years agoMerge "Various fixes in IpReachability event logging" into nyc-dev
Hugo Benichi [Thu, 21 Apr 2016 03:54:17 +0000 (03:54 +0000)]
Merge "Various fixes in IpReachability event logging" into nyc-dev

8 years agoMerge "Removed obsolete screenshot mention from full bugreport." into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 03:34:45 +0000 (03:34 +0000)]
Merge "Removed obsolete screenshot mention from full bugreport." into nyc-dev

8 years agoMerge "Remove obsolete TODO" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 03:18:46 +0000 (03:18 +0000)]
Merge "Remove obsolete TODO" into nyc-dev

8 years agoMerge "Do not make files in zip disabled in ACTION_VIEW." into nyc-dev
Tomasz Mikolajewski [Thu, 21 Apr 2016 03:17:01 +0000 (03:17 +0000)]
Merge "Do not make files in zip disabled in ACTION_VIEW." into nyc-dev

8 years agoMerge "fix build: remove SUSTAINED_PERFORMANCE_WAKE_LOCK link" into nyc-dev
Ruchi Kandoi [Thu, 21 Apr 2016 02:37:48 +0000 (02:37 +0000)]
Merge "fix build: remove SUSTAINED_PERFORMANCE_WAKE_LOCK link" into nyc-dev

8 years agoMerge "Additional checks for ModemActivityInfo.isValid()" into nyc-dev
Nathan Harold [Thu, 21 Apr 2016 02:09:26 +0000 (02:09 +0000)]
Merge "Additional checks for ModemActivityInfo.isValid()" into nyc-dev

8 years agoSome fixes in ConnectivityService event logging
Hugo Benichi [Wed, 20 Apr 2016 03:09:33 +0000 (12:09 +0900)]
Some fixes in ConnectivityService event logging

Bug: 28204408
Change-Id: I44ed9539bb213a845c2bcc2861c947af7c3c9ef4

8 years agoMerge "Fix a11y key event handling from multiple devices." into nyc-dev
Phil Weaver [Thu, 21 Apr 2016 01:38:47 +0000 (01:38 +0000)]
Merge "Fix a11y key event handling from multiple devices." into nyc-dev

8 years agoRemove obsolete TODO
Adrian Roos [Thu, 21 Apr 2016 01:36:18 +0000 (18:36 -0700)]
Remove obsolete TODO

Change-Id: Ia76b7f1cea0799c46ae5c933741c865869e39f5f
Fixes: 27550895

8 years agoMerge "Fix IME adjust in SysUI" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 01:17:55 +0000 (01:17 +0000)]
Merge "Fix IME adjust in SysUI" into nyc-dev

8 years agoMerge "Only invoke k/v helpers during k/v operations" into nyc-dev
Chris Tate [Thu, 21 Apr 2016 01:12:06 +0000 (01:12 +0000)]
Merge "Only invoke k/v helpers during k/v operations" into nyc-dev

8 years agoMerge "PIP: Support accessibility" into nyc-dev
Jaewan Kim [Thu, 21 Apr 2016 01:11:38 +0000 (01:11 +0000)]
Merge "PIP: Support accessibility" into nyc-dev

8 years agoOnly invoke k/v helpers during k/v operations
Christopher Tate [Tue, 12 Apr 2016 19:36:47 +0000 (12:36 -0700)]
Only invoke k/v helpers during k/v operations

In particular, don't try to call the k/v wallpaper restore helper's
onRestoreFinished() if we are actually doing a full-data restore.

Bug 28132784

Change-Id: I2eaf748f6d54601f0ca195ae2781aa177daf0b93

8 years agoFix dead surface/window left on screen
Chong Zhang [Thu, 21 Apr 2016 00:45:24 +0000 (17:45 -0700)]
Fix dead surface/window left on screen

If the surface is explicitly hidden while we're changing resizing mode,
we need to discard the preserved surface immediately, otherwise it could
linger around on screen.

Do not mark mAnimatingExit in setTokenVisibilityLocked. This flag can only
be set after client relayouts to invisible. There we set mAnimatingExit and
mAnimating, so that when animation finishes the surface is marked to be
destroyed. If we marke it too early (and not mark mAnimating at the same
time), the surface may get stuck in exiting state.

bug: 28236574
Change-Id: I5cc916dfa698113e1d783a66547e1878469a9879

8 years agoMerge "Exclude IME dialogs from tap outside task bounds funcationality" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 00:54:31 +0000 (00:54 +0000)]
Merge "Exclude IME dialogs from tap outside task bounds funcationality" into nyc-dev

8 years agoMerge "Throw better exception when startVoiceActivity fails" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 00:46:30 +0000 (00:46 +0000)]
Merge "Throw better exception when startVoiceActivity fails" into nyc-dev

8 years agoMerge "BatteryStatsHelper: Include screen on baseline power draw" into nyc-dev
Adam Lesinski [Thu, 21 Apr 2016 00:39:57 +0000 (00:39 +0000)]
Merge "BatteryStatsHelper: Include screen on baseline power draw" into nyc-dev

8 years agoMerge "Fix logspam by JobInfo" into nyc-dev
Dianne Hackborn [Thu, 21 Apr 2016 00:39:41 +0000 (00:39 +0000)]
Merge "Fix logspam by JobInfo" into nyc-dev

8 years agoMerge "Increase the max binder thread pool size for system_server." into nyc-dev
Tim Murray [Thu, 21 Apr 2016 00:32:45 +0000 (00:32 +0000)]
Merge "Increase the max binder thread pool size for system_server." into nyc-dev

8 years agoMerge "Prevent printing from finishing activity." into nyc-dev
Philip P. Moltmann [Thu, 21 Apr 2016 00:31:41 +0000 (00:31 +0000)]
Merge "Prevent printing from finishing activity." into nyc-dev

8 years agoMerge "A11y: Fix battery icon and clock descriptions" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 00:25:14 +0000 (00:25 +0000)]
Merge "A11y: Fix battery icon and clock descriptions" into nyc-dev

8 years agofix build: remove SUSTAINED_PERFORMANCE_WAKE_LOCK link
Ruchi Kandoi [Thu, 21 Apr 2016 00:20:09 +0000 (17:20 -0700)]
fix build: remove SUSTAINED_PERFORMANCE_WAKE_LOCK link

Change-Id: Ic12b98cbafcc8c81eadba119ab416a9eddb7214a
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
8 years agoVarious fixes in IpReachability event logging
Hugo Benichi [Tue, 19 Apr 2016 00:52:39 +0000 (09:52 +0900)]
Various fixes in IpReachability event logging

- fold IpReachabilityMonitor* classes into a single IpReachabilityEvent.
- only log an event for NUD_FAILED Netlink answers.
- distinguish between NUD_FAILED with or without lost of provisioning.
- do not record host ip addresses.
- record interface name instead of interface index when losing
  provisioning.

- also return an error code when probeNeighbor fails, and log this error
  code in IpReachability events.

Bug: 28204408
Change-Id: I5f0def0ab1ace7e467a0c69b3b82d07ef2252307

8 years agoMerge "Print API for N: Fix docs and change interfaces as requested." into nyc-dev
Philip P. Moltmann [Thu, 21 Apr 2016 00:17:46 +0000 (00:17 +0000)]
Merge "Print API for N: Fix docs and change interfaces as requested." into nyc-dev

8 years agoMerge "Disallow changing stacks if top activity" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 00:11:49 +0000 (00:11 +0000)]
Merge "Disallow changing stacks if top activity" into nyc-dev

8 years agoMerge "Add JavaDoc for View.updateDragShadow" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 00:02:06 +0000 (00:02 +0000)]
Merge "Add JavaDoc for View.updateDragShadow" into nyc-dev

8 years agoMerge "Prevent recents from closing while moving PiP to fullscreen." into nyc-dev
Rob Carr [Thu, 21 Apr 2016 00:00:06 +0000 (00:00 +0000)]
Merge "Prevent recents from closing while moving PiP to fullscreen." into nyc-dev

8 years agoAccept null subtype in InputMethodSubtypeHandle.
Yohei Yukawa [Wed, 20 Apr 2016 23:59:45 +0000 (16:59 -0700)]
Accept null subtype in InputMethodSubtypeHandle.

There are two types of IMEs:
 A. IMEs that have one or more subtypes
 B. IMEs that have no subtype

The initial implementation to update hardware keyboard layout per
subtype change of layout (See Bug 25752812) has supported IMEs in the
category A only, and IMEs in the category B are just ignored in both
system and Settings app.

In order to support IMEs in the category B, InputMethodSubtypeHandle and
related methods need to accept null InputMethodSubtype. Technically
this is a straightforward change, because in InputMethodManagerService
we have already used InputMethodUtils.NOT_A_SUBTYPE_ID for those IMEs in
the category B.  We also need to update Setting App, which will be done
by a different CL [1].

  [1]: I46b9c5b018f08e3eaa4614a0893db0be91652f3c

Bug: 28182650
Change-Id: Ia013784a594ad3beaf30976d047f5ac0fa8185be

8 years agoMerge "Removing disk access from startActivity thread" into nyc-dev
TreeHugger Robot [Wed, 20 Apr 2016 23:58:01 +0000 (23:58 +0000)]
Merge "Removing disk access from startActivity thread" into nyc-dev

8 years agoMerge "Camera2: Ignore exception on double-completed capture sequences." into nyc-dev
Eino-Ville Talvala [Wed, 20 Apr 2016 23:55:09 +0000 (23:55 +0000)]
Merge "Camera2: Ignore exception on double-completed capture sequences." into nyc-dev

8 years agoFix IME adjust in SysUI
Jorim Jaggi [Wed, 20 Apr 2016 23:42:06 +0000 (16:42 -0700)]
Fix IME adjust in SysUI

- Make sure scale is correct.
- Adjust interpolator to match WindowManager.

Bug: 28175599
Change-Id: Ica94b3dbac2fcc6e4b8a75faa311fb7861071ccc

8 years agoFix logspam by JobInfo
Shreyas Basarge [Wed, 20 Apr 2016 23:44:58 +0000 (00:44 +0100)]
Fix logspam by JobInfo

Print interval clamp message
only for periodic jobs having
period/flex less than the minimum value.

Bug: 28296128
Change-Id: Id0d7c3b56048582a490bb8214eca491ec2bbdc93

8 years agoAudioManager: fix isBluetoothA2dpOn()
Eric Laurent [Wed, 20 Apr 2016 23:42:28 +0000 (16:42 -0700)]
AudioManager: fix isBluetoothA2dpOn()

Test all A2DP type variants when checking if an A2DP device is connected
in isBluetoothA2dpOn().

Bug: 28286051
Change-Id: I756d632b12d584d8a27cc1890e758d8accff7120

8 years agoMerge "Fix inline reply clobbering when narrowly missing send button" into nyc-dev
TreeHugger Robot [Wed, 20 Apr 2016 23:39:50 +0000 (23:39 +0000)]
Merge "Fix inline reply clobbering when narrowly missing send button" into nyc-dev

8 years agoExclude IME dialogs from tap outside task bounds funcationality
Wale Ogunwale [Wed, 20 Apr 2016 23:33:36 +0000 (16:33 -0700)]
Exclude IME dialogs from tap outside task bounds funcationality

We don't want tapping on these windows to cause a change in app
focus.

Bug: 28184155
Change-Id: Ibd4ca15b2154c2e83a11f4a2a3edb4356cbfbfed

8 years agoMerge "Set BugreportProgressService to run on foreground." into nyc-dev
TreeHugger Robot [Wed, 20 Apr 2016 23:23:10 +0000 (23:23 +0000)]
Merge "Set BugreportProgressService to run on foreground." into nyc-dev

8 years agoA11y: Fix battery icon and clock descriptions
Adrian Roos [Wed, 20 Apr 2016 22:51:42 +0000 (15:51 -0700)]
A11y: Fix battery icon and clock descriptions

Now announces charging state on the battery icon
and AM/PM on the clock.

Change-Id: Ib8d249e60b555834e5e224287ea332178ce7c165
Fixes: 27552350

8 years agoMerge "ResourcesManager: Throw exception if failed to load asset path" into nyc-dev
Adam Lesinski [Wed, 20 Apr 2016 22:46:04 +0000 (22:46 +0000)]
Merge "ResourcesManager: Throw exception if failed to load asset path" into nyc-dev

8 years agoDisallow changing stacks if top activity
Jorim Jaggi [Wed, 20 Apr 2016 03:30:47 +0000 (20:30 -0700)]
Disallow changing stacks if top activity

When we attach an activity to an existing
task, and that task is already on top,
disallow changing stacks altogether even
if launch stack id is set.

Bug: 28026847
Change-Id: Ie70f0585a29dc1b85a5093624fede32110be3c76

8 years agoRemoving disk access from startActivity thread
Suprabh Shukla [Wed, 20 Apr 2016 22:24:31 +0000 (15:24 -0700)]
Removing disk access from startActivity thread

Code was checking whether the directory for recent_images existed in
many places unnecessarily causing StrictMode violations. Moved the
code to only attempt to check and create the directory before
actually writing to disk.

Bug: b/28195831
Change-Id: I05f77a10f1dafc8cc0b1836b62352d56549ac1ee

8 years agoMerge "Added defensive code to prevent system crash" into nyc-dev
Lifu Tang [Wed, 20 Apr 2016 22:19:17 +0000 (22:19 +0000)]
Merge "Added defensive code to prevent system crash" into nyc-dev

8 years agoMerge "Fixed bug in upgrading GpsMeasurement" into nyc-dev
Lifu Tang [Wed, 20 Apr 2016 22:19:04 +0000 (22:19 +0000)]
Merge "Fixed bug in upgrading GpsMeasurement" into nyc-dev

8 years agoMerge "Don't back up wallpapers that we've been told not to" into nyc-dev
Chris Tate [Wed, 20 Apr 2016 22:10:38 +0000 (22:10 +0000)]
Merge "Don't back up wallpapers that we've been told not to" into nyc-dev

8 years agoresolve merge conflicts of 44e07e0 to mnc-dev am: 825b713 am: 8c635e7 am: 343600c
Christopher Tate [Wed, 20 Apr 2016 22:09:28 +0000 (22:09 +0000)]
resolve merge conflicts of 44e07e0 to mnc-dev am: 825b713 am: 8c635e7 am: 343600c
am: b965ced  -s ours

* commit 'b965ced011bdd7a3ec5450f93d1c58b889514f11':
  Kill the real/isolated uid group, not the ApplicationInfo uid

Change-Id: Idf9a9824d411ca2b178fadda040f46864bc96a58

8 years agoCamera2: Ignore exception on double-completed capture sequences.
Eino-Ville Talvala [Wed, 20 Apr 2016 22:05:40 +0000 (15:05 -0700)]
Camera2: Ignore exception on double-completed capture sequences.

As a workaround for b/27870771, convert fatal exception into a
warning.

Duplicate calls to finishPendingSequence with the same sequenceId
are seen in user crash reports, but with no further context and
inability to reproduce after testing various hypothesis, just
warn about it happening.

Bug: 27870771
Change-Id: Icd7d408887e04b94092689ce61809d6c664d8e3a

8 years agoresolve merge conflicts of 44e07e0 to mnc-dev am: 825b713 am: 8c635e7
Christopher Tate [Wed, 20 Apr 2016 21:48:43 +0000 (21:48 +0000)]
resolve merge conflicts of 44e07e0 to mnc-dev am: 825b713 am: 8c635e7
am: 343600c

* commit '343600c3ecff31826e50d40821927e446adb9b0a':
  Kill the real/isolated uid group, not the ApplicationInfo uid

Change-Id: I68dbf8f280672ec9770b6c57b9a17313f448e14a

8 years agoSet BugreportProgressService to run on foreground.
Felipe Leme [Fri, 15 Apr 2016 19:49:34 +0000 (12:49 -0700)]
Set BugreportProgressService to run on foreground.

BugreportProgressService do not persist the user-provided
information (like details and screenshot paths), so if it's killed by
the framework, that info is lost.

Running it as foreground mitigates the changes of it being killed.

BUG: 27431998
BUG: 28291423
Change-Id: I2f58507beb38309628f2f19d3f7f950d07eca16f

8 years agoresolve merge conflicts of 44e07e0 to mnc-dev am: 825b713
Christopher Tate [Wed, 20 Apr 2016 21:43:17 +0000 (21:43 +0000)]
resolve merge conflicts of 44e07e0 to mnc-dev am: 825b713
am: 8c635e7

* commit '8c635e73c698302ce6661f227c274164972f048e':
  Kill the real/isolated uid group, not the ApplicationInfo uid

Change-Id: Iae6fe5af0a8e0f27e8b45a56aecc2d722d7c3bc3

8 years agoBatteryStatsHelper: Include screen on baseline power draw
Adam Lesinski [Wed, 20 Apr 2016 20:04:59 +0000 (13:04 -0700)]
BatteryStatsHelper: Include screen on baseline power draw

Calculate the baseline power usage for the device when it is in suspend and idle.
The device is drawing POWER_CPU_IDLE power at its lowest power state.
The device is drawing POWER_CPU_IDLE + POWER_CPU_AWAKE power when a wakelock is held.
The device is drawing POWER_CPU_IDLE + POWER_CPU_AWAKE + POWER_SCREEN_ON when the screen is on.

Bug:27533512
Change-Id: Idcb587390bc8159fcbd6625cca4cb1aca19976d6

8 years agoAdd JavaDoc for View.updateDragShadow
Vladislav Kaznacheev [Wed, 20 Apr 2016 21:40:32 +0000 (14:40 -0700)]
Add JavaDoc for View.updateDragShadow

Bug: 28296402
Change-Id: I2aec5ab9932c3177cb08dbf1210abfd949e0dab7

8 years agoMerge "Do not prematurely update position while bounds animating." into nyc-dev
Rob Carr [Wed, 20 Apr 2016 21:37:10 +0000 (21:37 +0000)]
Merge "Do not prematurely update position while bounds animating." into nyc-dev

8 years agoresolve merge conflicts of 44e07e0 to mnc-dev
Christopher Tate [Wed, 20 Apr 2016 21:35:50 +0000 (21:35 +0000)]
resolve merge conflicts of 44e07e0 to mnc-dev
am: 825b713

* commit '825b7134699fbaaa16423c52b7b424d4a9afefb1':
  Kill the real/isolated uid group, not the ApplicationInfo uid

Change-Id: I0c120c8dbf76857985ebea04eadca81fa6470cb2

8 years agoDon't back up wallpapers that we've been told not to
Christopher Tate [Thu, 25 Feb 2016 20:43:38 +0000 (12:43 -0800)]
Don't back up wallpapers that we've been told not to

In addition, now that the full uncropped wallpaper image is being
backed up, we now handle that via the full-data backup path instead
of key/value.  Restore still knows about legacy data that gets
delivered via the older key/value mechanism.

This change also has the effect of removing the size limitations
around wallpaper restore acceptance.  Any size source imagery is
valid, as crop & scale are rerun in a device-appropriate way
after the restore.

Bug 25453848
Bug 25727875

Change-Id: Idc64a2eaab97a8ecc9d2b8ca5dc011f29cab324d

8 years agoMerge "Fix bug where fingerprint for wrong userId was attempted to be removed." into...
Jim Miller [Wed, 20 Apr 2016 21:33:13 +0000 (21:33 +0000)]
Merge "Fix bug where fingerprint for wrong userId was attempted to be removed." into nyc-dev

8 years agoMerge "MidiDevice: do not open ports on closed device" into nyc-dev
Phil Burk [Wed, 20 Apr 2016 21:15:32 +0000 (21:15 +0000)]
Merge "MidiDevice: do not open ports on closed device" into nyc-dev

8 years agoMerge "Test coverage for new FBE functionality" into nyc-dev
Fyodor Kupolov [Wed, 20 Apr 2016 21:13:39 +0000 (21:13 +0000)]
Merge "Test coverage for new FBE functionality" into nyc-dev

8 years agoRespect manually set HARDWARE_ACCELERATED flag.
Robert Carr [Wed, 20 Apr 2016 21:04:15 +0000 (14:04 -0700)]
Respect manually set HARDWARE_ACCELERATED flag.

When choosing what window parameters to pass on
to child windows, we need to respect the manually set
FLAG_HARDWARE_ACCELERATED from Window.setFlags() in
addition to the activity manifest value, and the value
from setWindowManager. Given that we pass the value
on to child windows from when setWindowManager is called,
I think it makes sense to pass it when setFlags is
called.

Bug: 27099358
Bug: 23036374
Change-Id: Ie018841aadd270910fe0f8bc5a5ddca3bfbee69b

8 years agoMerge "Revert "PowerManager: Adds the Sustained performance API."" into nyc-dev
Ruchi Kandoi [Wed, 20 Apr 2016 20:59:18 +0000 (20:59 +0000)]
Merge "Revert "PowerManager: Adds the Sustained performance API."" into nyc-dev

8 years agoFix inline reply clobbering when narrowly missing send button
Adrian Roos [Wed, 20 Apr 2016 20:58:03 +0000 (13:58 -0700)]
Fix inline reply clobbering when narrowly missing send button

The RemoteInputView leaked through unhandled touches. To prevent this,
we now make sure the send button covers the entire area, and we catch
any touches that did not go to either the send button or the text box.

Bug: 27357771
Change-Id: Idc08d98dc7970b99c735f80088ea1eec0ec2d831

8 years agoMerge "Track libcore change e2270147c6ddfb164776b68295078a5e6c6dfee7" into nyc-dev
Shubham Ajmera [Wed, 20 Apr 2016 20:52:56 +0000 (20:52 +0000)]
Merge "Track libcore change e2270147c6ddfb164776b68295078a5e6c6dfee7" into nyc-dev

8 years agoMerge "Fix IME adjust when stack focus changes while IME is visible" into nyc-dev
Chong Zhang [Wed, 20 Apr 2016 20:52:07 +0000 (20:52 +0000)]
Merge "Fix IME adjust when stack focus changes while IME is visible" into nyc-dev

8 years agoRevert "PowerManager: Adds the Sustained performance API."
Ruchi Kandoi [Wed, 20 Apr 2016 20:42:01 +0000 (13:42 -0700)]
Revert "PowerManager: Adds the Sustained performance API."

This reverts commit 0abc001275d6cf0af4990f521ccff7346a7cd2bf.

Bug: 28150358
Change-Id: I99c71b3d6641310a33e898d6fd475d37c79ba9d0
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
8 years agoPrint API for N: Fix docs and change interfaces as requested.
Philip P. Moltmann [Wed, 20 Apr 2016 20:21:34 +0000 (13:21 -0700)]
Print API for N: Fix docs and change interfaces as requested.

Fixes: 28291443
Change-Id: I1a1585796032351a739d54171bd67ccc76f0f08a

8 years agoResourcesManager: Throw exception if failed to load asset path
Adam Lesinski [Wed, 20 Apr 2016 20:36:19 +0000 (13:36 -0700)]
ResourcesManager: Throw exception if failed to load asset path

Previously if we failed to load an asset path, we would return a
null AssetManager which would lead to an immediate NPE.

Throw a proper exception instead, detailing which path failed to load.

Bug:28216288
Change-Id: I491b9316b837bf333b5ae78d4eb1ee31741617ec

8 years agoMerge "window: Adds a Sustained Performance Mode window flag." into nyc-dev
Ruchi Kandoi [Wed, 20 Apr 2016 20:35:20 +0000 (20:35 +0000)]
Merge "window: Adds a Sustained Performance Mode window flag." into nyc-dev

8 years agoFix bug where fingerprint for wrong userId was attempted to be removed.
Jim Miller [Wed, 20 Apr 2016 20:34:11 +0000 (13:34 -0700)]
Fix bug where fingerprint for wrong userId was attempted to be removed.

- cleaned up private API to ensure userId is distinct from groupId.
- fixed bug where we were sending the wrong userId when attempting to
- fix warning about wrong fingerId when receiving final id of 0.

Fixes bug 28268635

Change-Id: I9507723c1a763152775f2feff76c16762f23cf2d

8 years agoresolve merge conflicts of 44e07e0 to mnc-dev
Christopher Tate [Wed, 20 Apr 2016 20:33:41 +0000 (13:33 -0700)]
resolve merge conflicts of 44e07e0 to mnc-dev

Change-Id: Ibc446c82a3d1446ccd81630743f82d1fd58fbd47

8 years agoVolume updates should appear continuous when changed by touch.
Julia Reynolds [Wed, 20 Apr 2016 20:09:06 +0000 (16:09 -0400)]
Volume updates should appear continuous when changed by touch.

Bug: 28276425
Change-Id: I7a724f8c21748c6be325053a20a22716a0ee8ce3

8 years agoFix a11y key event handling from multiple devices.
Phil Weaver [Wed, 20 Apr 2016 20:08:35 +0000 (13:08 -0700)]
Fix a11y key event handling from multiple devices.

For M, we ignored device type entirely, but with ag/760625 we started
paying attention to it, which rejects events when keys from different
devices are pressed simultaneously. Since the volume keys show up as
different devices, the new behavior disrupted the event stream when
both volume keys were pressed.

Now tracking each device separately, which restores the old behavior
but still takes the device id into account. Holding down two keys
when enabling an accessibility service, however, always has and still
can produce an invalid event stream. It doesn't seem worth the
overhead, however, to track each key separately.

Bug: 28091773
Change-Id: I8d30de1f5e05f779b6fe305856d42f209ff8b038