196687 Commits

Author SHA1 Message Date
Jeff Sharkey
14cbe52150 Kill MediaProvider during drastic changes.
Sadly MediaProvider makes a ton of assumptions about storage paths
not changing.  To ensure that it picks up radical storage changes,
kill it and let it restart to pick up new paths.

Also give ourselves a longer timeout when benchmarking.

Bug: 20275423
Change-Id: I9971c4667dabdc685cb23528443f085f152c461d
2015-07-08 14:06:40 -07:00
Jeff Sharkey
a83bf1966e Use best volume description for MTP.
Otherwise we end up showing adopted storage devices as "Unknown."

Bug: 20275423
Change-Id: Ib42474fd5b3284b1e8eca7de8a4cfbb71a34a107
2015-07-08 09:29:24 -07:00
Jeff Sharkey
5af1835d67 Generate stable MTP storage IDs.
It ends up that MediaProvider is persisting MTP storage IDs in its
database, so we need to make sure we generate stable IDs over time,
otherwise we can end up looking into a black hole.

Bug: 22256092
Change-Id: I6a75c239aac1b71fd5f6df0df69b24971079a086
2015-07-07 17:46:16 -07:00
Jeff Sharkey
7a788a865e Fix volume naming when surfaced over MTP.
Otherwise we show everything as "Unknown."

Bug: 22256092
Change-Id: I19fe8a25aff02db8ca9aff288e6715d469f65327
2015-07-07 14:40:28 -07:00
Eino-Ville Talvala
384a04d936 Merge "Camera: Add ZERO_SHUTTER_LAG modes to noise reduction and edge enhancement" into mnc-dev 2015-07-07 21:36:47 +00:00
Jeff Tinker
6826b25c22 Merge "Report specific exception type on decrypt with invalid session" into mnc-dev 2015-07-07 21:19:13 +00:00
Alan Viverette
8830db0a6a Merge "Never fully detach header or footer views in AbsListView" into mnc-dev 2015-07-07 21:08:32 +00:00
Wale Ogunwale
880a54f6d8 Merge "Cleaned-up logic for determining clip rect for transitions animations." into mnc-dev 2015-07-07 21:00:43 +00:00
Jeff Sharkey
dafaa45c0e Merge "Split app move into separate copy/delete steps." into mnc-dev 2015-07-07 20:46:36 +00:00
Eino-Ville Talvala
0dd17509a9 Camera: Add ZERO_SHUTTER_LAG modes to noise reduction and edge enhancement
This mode splits processing quality based on stream resolution, to
enable ZSL operation where low-resolution (preview/recording) streams
require more processing since they are immediately user-visible, while
the high-resolution intermediate ZSL stream should have minimal/no
processing since it will be reprocessed into final quality when
necessary

Bug: 22266686

Change-Id: Ib41102b66b07d61a099f021f8c6251f28c62686f
2015-07-07 13:39:55 -07:00
Jeff Sharkey
6b7bb60457 Split app move into separate copy/delete steps.
App movement now has three distinct stages: copying, scanning, and
cleanup.  Previously, a battery pull late in the move process would
end up with packages.xml pointing at the old location which had been
torn down.  Now, we update packages.xml to point at the new location
as the "source of truth" before we start deleting the old location.

Bug: 21831336
Change-Id: I6f57f37a8cb335127db9ebb7c6b6cfe5755ada99
2015-07-07 13:32:14 -07:00
Makoto Onuki
53d17aeee0 Merge "Give fixed READ_PHONE_STATE permission to calllog provider" into mnc-dev 2015-07-07 20:23:26 +00:00
Dongwon Kang
0c58229306 Merge "Revert "Use AlertDialog for MediaRouteControllerDialog"" into mnc-dev 2015-07-07 20:22:40 +00:00
Vineeta Srivastava
9d918db350 Merge "UsbDeviceManager: Add back support for persistent property" into mnc-dev 2015-07-07 20:13:46 +00:00
Christopher Tate
7bc8f51aa6 Merge "Clean up obsolete pending timeout after restoring package metadata" into mnc-dev 2015-07-07 19:54:20 +00:00
Aravind Akella
c5889757cb Merge "Clean up get sensorList." into mnc-dev 2015-07-07 19:53:46 +00:00
Jorim Jaggi
588932a53e Always wait for the main app window before starting a transition
When waiting for all the windows that belong to an activity, we
skipped the main window, in case it didn't had a surface yet. This
was a problem because with SurfaceViews: They set it's visibility
extremely early in the app visibility change cycle. Then, they use
another thread to draw content. Thus, they have drawn their first
frame pretty fast, where the main thread might still be in the
activity lifecycle phases. Then, we don't even have a surface for the
main window yet, but we start the app transition already because we
think the only interesting window for this app token is the
SurfaceView, which has already drawn.

Bug: 22207948
Change-Id: I708add3aab00575ae1707b25622b9b4614472892
2015-07-07 19:27:29 +00:00
Selim Cinek
7e675645a9 Merge "Fixed keyguard affordances" into mnc-dev 2015-07-07 19:19:05 +00:00
Chris Craik
54d1f0439e Merge "Simplify matrix copy constructor/load" into mnc-dev 2015-07-07 19:09:43 +00:00
Alex Klyubin
024bce8229 Merge "Support loading AES keys with authorized digests." into mnc-dev 2015-07-07 18:54:33 +00:00
Ajay Dudani
84dce3c9a8 UsbDeviceManager: Add back support for persistent property
Take into account the value of persist.sys.usb.config when updating
sys.usb.config. The persistent prop can hold information regarding
additional enumerations required for the device.

Bug: 21929369
Change-Id: Ic11ebf62ce114f2d0a097ad4405de71173b23139
2015-07-07 11:51:15 -07:00
Andrew Solovay
a5c82a6b2a am 4357181d: am e44b86b2: docs: Removed READ_EXTERNAL_STORAGE from \'normal\' permissions
* commit '4357181d236bf189ea7855755803275160447423':
  docs: Removed READ_EXTERNAL_STORAGE from 'normal' permissions
2015-07-07 18:46:05 +00:00
Chris Craik
6ef57e9741 Merge "Don't update DisplayLists when dumping" into mnc-dev 2015-07-07 18:42:15 +00:00
Andrew Solovay
4357181d23 am e44b86b2: docs: Removed READ_EXTERNAL_STORAGE from \'normal\' permissions
* commit 'e44b86b23bc15ccf2016e044bfa5d23c177a1d3b':
  docs: Removed READ_EXTERNAL_STORAGE from 'normal' permissions
2015-07-07 18:29:08 +00:00
xin He
053b407b74 Merge "wifi: Fix softAP turn-ON issue in statically loaded driver" into mnc-dev 2015-07-07 18:13:58 +00:00
Alan Viverette
1638133b3f Never fully detach header or footer views in AbsListView
AbsListView has special handling of header and footer views that avoids
full attachment; however, we still need to fully detach and reattach
non-header/footer views that cannot be recycled.

Bug: 22239425
Bug: 22238597
Bug: 22214485
Change-Id: Iae5f954fc76522c0a52d0c25e19985ae0196efa2
2015-07-07 11:04:32 -07:00
Andrew Solovay
e44b86b23b docs: Removed READ_EXTERNAL_STORAGE from 'normal' permissions
Per communication from Ben, READ_EXTERNAL_STORAGE was incorrectly
marked as a 'normal' permission in preview 1, and is properly
changed to 'dangerous' for preview 2. Updating the docs accordingly.

See first comment for doc stage location.

Change-Id: I0f824fb9689d2e7323e505b0200fda23eaa71eed
2015-07-07 10:57:55 -07:00
Christopher Tate
2fe00adc02 Clean up obsolete pending timeout after restoring package metadata
Bug 22040047

Change-Id: I460dbcc50a45d794392beb9ff4a4358c05c87e07
2015-07-07 10:46:10 -07:00
Chris Craik
356b5fe086 Don't update DisplayLists when dumping
bug:22234438

Updating the displaylist is invalid since this debug method isn't
called on the UI thread, and it defeats the purpose of seeing what
the hierarchy is currently rendering.

Change-Id: I10c5cc6dbae8d304559dfc6e863b0ede158d554f
2015-07-07 10:39:39 -07:00
Chris Craik
d2bfcc74fc Simplify matrix copy constructor/load
bug:22208220

Change-Id: Id096eb8de8da0dd1687d6af9456b16ce2a1a589b
2015-07-07 10:09:35 -07:00
Wale Ogunwale
35a57f81a9 Cleaned-up logic for determining clip rect for transitions animations.
Previous logic led to several edge cases which fixes sometimes broke
other edge cases. New logic uses the clip rect provided by the
transformation as-is and doesn't try to adjust it based on window
flags. Correct clip rect is set in
WindowManagerService#applyAnimationLock using the content insets
before the animation is loaded.

Bug: 21727851
Bug: 20652683
Bug: 19523205
Bug: 15046646
https://code.google.com/p/android/issues/detail?id=161362
Change-Id: I2d4ed6196edb8ee8c401fe9a242aec70d3494574
2015-07-07 08:40:43 -07:00
Ian Pedowitz
937edac8e8 Revert "Bug: 21589105 Rescope WRITE_SETTINGS and SYSTEM_ALERT_WINDOW permission"
This reverts commit d6b404c72da7e2475508c7d5948494b2e9b1a262.

This CL seems to have broken the build, causing GMSCore to continuously
crash.

Bug: 22313634
Bug: 22312938
Bug: 22314605
Bug: 22308392
Bug: 22307889
2015-07-07 08:32:44 -07:00
Jason Monk
46c272d6bf Merge "Don't dismiss volume during animation" into mnc-dev 2015-07-07 14:34:59 +00:00
Jason Monk
f18ed45faf Merge "Fix to work statusbar configs as mcc/mnc" into mnc-dev 2015-07-07 14:34:47 +00:00
John Reck
15b64099a4 Merge "Adjust for pipeline stalls" into mnc-dev 2015-07-07 14:08:49 +00:00
Sungmin Choi
6be4f6b18d Fix to work statusbar configs as mcc/mnc
Call handleConfigurationChanged() at the end of
PhoneStatusBar#onConfigurationChanged to update statusbar configs.

BUG: 22215928
Change-Id: I7329d4949a8a47717ea037cf007ef0baa63507bd
2015-07-07 09:35:36 -04:00
Zoltan Szatmary-Ban
41df5bfc0d Merge "Update javadoc on DPM.setGlobalSetting" into mnc-dev 2015-07-07 10:17:07 +00:00
Richard Coles
fad2e49c42 Merge "Add WebView permission MIDI sysex" into mnc-dev 2015-07-07 10:15:17 +00:00
Esteban Talavera
5a81b61e87 Merge "Notify the profile when cloned settings are changed." into mnc-dev 2015-07-07 09:27:27 +00:00
Andrei Stingaceanu
bc687f96c7 Merge "Drag handles persist after lost focus in extracted mode" into mnc-dev 2015-07-07 09:14:37 +00:00
Ian Pedowitz
5bc88b9f46 Merge "Final resource IDs." into mnc-dev 2015-07-07 06:13:14 +00:00
Abodunrinwa Toki
4603bd34ce Merge "FloatingToolbar: Offset visible rect by the rootview's offset" into mnc-dev 2015-07-07 03:59:46 +00:00
Dongwon Kang
7980d10d7c Revert "Use AlertDialog for MediaRouteControllerDialog"
This reverts commit 001d51496d062789355a91ce9365cd0cfeac6925.

Background: To just inherit AlertDialog, the content view should include
a title as we do in support library (AlertDialog uses NO_TITLE feature),
but up-streaming support library implementation to the framework at this
point might cause more issues. Verified that the narrow dialog issue
(b/22044600) does not happen in the framework implementation regardless of
whether it uses AlertDialog or not.

Bug: 22286869
Change-Id: Ic2554cc9e683beff29d1deee91945c1dace83ab1
2015-07-06 20:09:03 -07:00
Jan Nordqvist
2047929ef7 Merge "Changed config_wifi_hotspot2_enabled to false." into mnc-dev 2015-07-07 01:41:17 +00:00
Selim Cinek
158af6a028 Fixed keyguard affordances
In certain cases, the keyguard affordances could not be launched
due to a bug. This was because the targetedView was not properly
reset sometimes.

Bug: 22013726
Change-Id: I4525dc5adf07f4d023ef8553d3db0b16c8f754c4
2015-07-06 18:39:28 -07:00
Selim Cinek
4d696690e6 Merge "Fixed a bug where redacted notifications had the wrong height" into mnc-dev 2015-07-07 01:37:07 +00:00
Zhijun He
1f52fce6b9 Merge "ImageUtils: fix image copy issue" into mnc-dev 2015-07-07 01:07:17 +00:00
Adam Lesinski
fe45b29a1c Merge "BatteryStats: Remove isolated UIDs from /proc/uid_cputime when they are not in use anymore" into mnc-dev 2015-07-07 00:32:24 +00:00
Billy Lau
c81ecb6d2c Merge "Bug: 21589105 Rescope WRITE_SETTINGS and SYSTEM_ALERT_WINDOW permission" into mnc-dev 2015-07-07 00:27:33 +00:00
Aravind Akella
adaa79d722 Merge "Remove flag mDataInjectionMode." into mnc-dev 2015-07-07 00:24:04 +00:00