OSDN Git Service

android-x86/frameworks-base.git
9 years agoScan at boot time to detect newly-present full backup candidates
Christopher Tate [Wed, 20 May 2015 21:49:38 +0000 (14:49 -0700)]
Scan at boot time to detect newly-present full backup candidates

OTA or similar might have caused an app to appear without the usual
notifications being sent.  Make sure we pick up those apps as
appropriate for full-data backup.

Bug 19462310

Change-Id: Ic17bc72b14cc7599ae8ea540548fda932606b8f2

9 years agoMerge "Fix ObservableScrollView's cancel dispatch" into mnc-dev
Adrian Roos [Thu, 21 May 2015 01:12:58 +0000 (01:12 +0000)]
Merge "Fix ObservableScrollView's cancel dispatch" into mnc-dev

9 years agoFix ObservableScrollView's cancel dispatch
Adrian Roos [Thu, 21 May 2015 01:08:58 +0000 (18:08 -0700)]
Fix ObservableScrollView's cancel dispatch

Bug: 21239185
Change-Id: I8005556a2a6fcd8981e615a6f5537a1d7e9ce6a7

9 years agoMerge "Move from native FingerprintService implementation to fingerprintd" into mnc-dev
Jim Miller [Thu, 21 May 2015 00:57:26 +0000 (00:57 +0000)]
Merge "Move from native FingerprintService implementation to fingerprintd" into mnc-dev

9 years agoMerge "Do not call out of the settings provider with a lock held" into mnc-dev
Svetoslav [Thu, 21 May 2015 00:35:12 +0000 (00:35 +0000)]
Merge "Do not call out of the settings provider with a lock held" into mnc-dev

9 years agoDo not call out of the settings provider with a lock held
Svetoslav [Thu, 21 May 2015 00:01:10 +0000 (17:01 -0700)]
Do not call out of the settings provider with a lock held

bug:20443441

Change-Id: I704520b75f5deaeeb1b4098cda0783c667e8cdd1

9 years agoMerge "Use screen-on time and wallclock time for idleness calc" into mnc-dev
Amith Yamasani [Thu, 21 May 2015 00:10:12 +0000 (00:10 +0000)]
Merge "Use screen-on time and wallclock time for idleness calc" into mnc-dev

9 years agoMerge "Use non deprecated method for creating ColorStateList" into mnc-dev
Deepanshu Gupta [Thu, 21 May 2015 00:03:05 +0000 (00:03 +0000)]
Merge "Use non deprecated method for creating ColorStateList" into mnc-dev

9 years agoMerge "Avoid resuming activity before launch." into mnc-dev
Craig Mautner [Thu, 21 May 2015 00:01:58 +0000 (00:01 +0000)]
Merge "Avoid resuming activity before launch." into mnc-dev

9 years agoUse non deprecated method for creating ColorStateList
Deepanshu Gupta [Wed, 20 May 2015 23:49:42 +0000 (16:49 -0700)]
Use non deprecated method for creating ColorStateList

Change-Id: I9fce928276c8a2af55eb0615a4895abb6a973be5

9 years agoFix line breaking.
Deepanshu Gupta [Wed, 20 May 2015 23:47:06 +0000 (16:47 -0700)]
Fix line breaking.

Essentially moves line breaking measurement later in the process when
character widths have already been computed.

Change-Id: I17c5bc10d373d8906c5caf86604ce8504650cd7f

9 years agoMerge "Inject anonymous inner classes of injected classes" into mnc-dev
Deepanshu Gupta [Wed, 20 May 2015 23:32:03 +0000 (23:32 +0000)]
Merge "Inject anonymous inner classes of injected classes" into mnc-dev

9 years agoInject anonymous inner classes of injected classes
Deepanshu Gupta [Wed, 20 May 2015 21:51:37 +0000 (14:51 -0700)]
Inject anonymous inner classes of injected classes

When injecting classes in LayoutLib (eg. CreateInfo), so that LayoutLib
can refer back to the changes, also inject the anonymous inner classes.
Without this, the injected classes are not loadable. Although, LayoutLib
itself doesn't load these classes, but some tests do.

Change-Id: Ib5f6b779ef4d79dec8d614d3dbb26eeac88a1064

9 years agoMerge "Update platformDir search in tests." into mnc-dev
Deepanshu Gupta [Wed, 20 May 2015 23:30:10 +0000 (23:30 +0000)]
Merge "Update platformDir search in tests." into mnc-dev

9 years agoMerge "Fix AudioTrack, AudioRecord, AudioFormat API" into mnc-dev
Andy Hung [Wed, 20 May 2015 23:01:37 +0000 (23:01 +0000)]
Merge "Fix AudioTrack, AudioRecord, AudioFormat API" into mnc-dev

9 years agoFix AudioTrack, AudioRecord, AudioFormat API
Andy Hung [Tue, 19 May 2015 22:44:31 +0000 (15:44 -0700)]
Fix AudioTrack, AudioRecord, AudioFormat API

Rename getNativeFrameCount to getBufferSizeInFrames
Remove throw declaration on IllegalArgumentException and
IllegalStateException

Bug: 20887665
Bug: 21304902
Change-Id: Ia85d8010be46524b9a8b93105b16b7b9480f6bd9

9 years agoUse screen-on time and wallclock time for idleness calc
Amith Yamasani [Tue, 19 May 2015 23:51:30 +0000 (16:51 -0700)]
Use screen-on time and wallclock time for idleness calc

12 hours of screen-on time and 2 days of wallclock time
must elapse before considering an app idle.

Bug: 20066058
Change-Id: Ie7b584b40e644d868aa2708876723c3391fd432e

9 years agoAvoid resuming activity before launch.
Craig Mautner [Wed, 20 May 2015 21:59:57 +0000 (14:59 -0700)]
Avoid resuming activity before launch.

The locktask logic would always bring a locked task to the front and
then resume it when locking. When a task is to be locked at launch that
would cause it to resume immediately before onLaunch was called. Which
would cause havoc because the token was not yet in
ActivityThread.mActivities. This lead to premature finish() calls and
looping restarts.

This change causes the resume to only be called when an app calls
startLockTask. Otherwise the resume call is skipped.

Plus additional locktask debug logging.

Fixes bug 21031298.

Change-Id: I756b0d607827d0ec7a123377db04d9377c41776d

9 years agoam 782def77: am 80cf2210: Add config_forceVoiceInteractionServicePackage to allow...
Cedric Ho [Wed, 20 May 2015 22:22:23 +0000 (22:22 +0000)]
am 782def77: am 80cf2210: Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

* commit '782def772adacaf029d7d9850605923066665424':
  Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

9 years agoMerge "Fixed that touches where incorrectly consumed when fullscreen" into mnc-dev
Selim Cinek [Wed, 20 May 2015 22:21:37 +0000 (22:21 +0000)]
Merge "Fixed that touches where incorrectly consumed when fullscreen" into mnc-dev

9 years agoFixed that touches where incorrectly consumed when fullscreen
Selim Cinek [Wed, 20 May 2015 01:08:14 +0000 (18:08 -0700)]
Fixed that touches where incorrectly consumed when fullscreen

The fake window that was added when View.SYSTEM_UI_FULL_SCREEN was
set consumed all touches, even those going to the SystemUI and not
just those of windows below. The input consumer is now correctly
positioned in the window order to only capture the right touches.
Clicks to the volume panel and the heads up now correctly go to the
right place instead of just unhiding the SystemUI bars.

Bug: 21089476
Change-Id: Ib53dfc0b33b70084ca607d0f044db30b6e6c91d6

9 years agoMerge "Clean RenderScript warnings" into mnc-dev
Jean-Luc Brouillet [Wed, 20 May 2015 22:17:11 +0000 (22:17 +0000)]
Merge "Clean RenderScript warnings" into mnc-dev

9 years agoam 80cf2210: Add config_forceVoiceInteractionServicePackage to allow a device to...
Cedric Ho [Wed, 20 May 2015 21:56:27 +0000 (21:56 +0000)]
am 80cf2210: Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

* commit '80cf2210226bc652181abafe606b69ebce63af78':
  Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

9 years agoMove from native FingerprintService implementation to fingerprintd
Jim Miller [Tue, 12 May 2015 03:45:25 +0000 (20:45 -0700)]
Move from native FingerprintService implementation to fingerprintd

This adds a new service, fingerprintd, that manages fingerprint
hardware from a separate process.  It provides a binder interface that
FingerprintManager uses to talk to the fingerprint HAL.

Change-Id: I84d8e407c1f1a7d1a396e246c382459ad38810ae

9 years agoMerge "Eliminate requireGlContext" into mnc-dev
John Reck [Wed, 20 May 2015 21:38:56 +0000 (21:38 +0000)]
Merge "Eliminate requireGlContext" into mnc-dev

9 years agoMerge "Add Carrier Presence to CP2: Phone" into mnc-dev
Etan Cohen [Wed, 20 May 2015 21:37:37 +0000 (21:37 +0000)]
Merge "Add Carrier Presence to CP2: Phone" into mnc-dev

9 years agoAdjust clock size to spec
Jorim Jaggi [Wed, 20 May 2015 21:30:47 +0000 (14:30 -0700)]
Adjust clock size to spec

Bug: 21111048
Change-Id: I73c6e57421dec4d929e5f87d812b5c2c495d250d

9 years agoMerge "Update the Statement Service. DO NOT MERGE" into mnc-dev
Joseph Wen [Wed, 20 May 2015 21:19:17 +0000 (21:19 +0000)]
Merge "Update the Statement Service. DO NOT MERGE" into mnc-dev

9 years agoMerge "LCE feature enhancement" into mnc-dev
fenglu [Wed, 20 May 2015 21:09:07 +0000 (21:09 +0000)]
Merge "LCE feature enhancement" into mnc-dev

9 years agoAdd config_forceVoiceInteractionServicePackage to allow a device to config its VoiceI...
Cedric Ho [Tue, 19 May 2015 22:44:31 +0000 (15:44 -0700)]
Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

Change-Id: Ic40d90f1a7a9942f5e82080668552239bbed9b03

9 years agoMerge "camera: Add AIDL interface for CameraServiceProxy." into mnc-dev
Ruben Brunk [Wed, 20 May 2015 20:44:26 +0000 (20:44 +0000)]
Merge "camera: Add AIDL interface for CameraServiceProxy." into mnc-dev

9 years agoClean RenderScript warnings
Jean-Luc Brouillet [Tue, 19 May 2015 21:59:42 +0000 (14:59 -0700)]
Clean RenderScript warnings

Change-Id: Ia7a98c1c977c839c74ae8081e70b5deb4b60c25d

9 years agoUpdate the Statement Service. DO NOT MERGE
Joseph Wen [Thu, 23 Apr 2015 19:45:07 +0000 (15:45 -0400)]
Update the Statement Service. DO NOT MERGE

For security reason, disallow HTTP include files if the source asset is
a HTTPS site or an Android app.
Change the include statement field name from "delegate" to "include".

Bug: 20323096
Change-Id: Ifc12b61657c9c89a670b9d7c3220853321c15dea

9 years agoMerge "Allow DO/PO to go back to normal permission state." into mnc-dev
Svet Ganov [Wed, 20 May 2015 20:09:36 +0000 (20:09 +0000)]
Merge "Allow DO/PO to go back to normal permission state." into mnc-dev

9 years agoAllow DO/PO to go back to normal permission state.
Svet Ganov [Wed, 20 May 2015 17:45:43 +0000 (10:45 -0700)]
Allow DO/PO to go back to normal permission state.

We have APIs for a DO/PO to fix a permission in a granted or
denied state in which the user cannot manage this permission
through the UI. However, there is no way to go back to the
default state in which the user gets to choose the permission
grant state.

Change-Id: I2562a1d8b1385cd740b44812844ef14c895c2902

9 years agoLower fingerprint permission protection level
Jorim Jaggi [Wed, 20 May 2015 19:04:41 +0000 (12:04 -0700)]
Lower fingerprint permission protection level

Bug: 21307136
Change-Id: Iafdb42c6a82b27a5297ad14ffaa289b14fffad23

9 years agoMerge "Write packages.list when adding/removing users." into mnc-dev
Jeff Sharkey [Wed, 20 May 2015 19:09:46 +0000 (19:09 +0000)]
Merge "Write packages.list when adding/removing users." into mnc-dev

9 years agoWrite packages.list when adding/removing users.
Jeff Sharkey [Wed, 20 May 2015 19:04:42 +0000 (12:04 -0700)]
Write packages.list when adding/removing users.

FUSE daemons now rely on getting per-user GID information when
packages.list is written.  Normal secondary user adding/removing
usually has enough PackageManager traffic to trigger a side-effect
rewrite, but this change writes explicitly to handle guest users.

Also obtain the user list once, and exclude dying users.  During
user creation we manually splice in the user ID that we're bringing
online.

Bug: 19924661
Change-Id: Icc5b1b169300c9dc12099be12651acbf89d6bea9

9 years agoMerge "Follow up for I8050df3177b6d540829c3f0989a4e4b1381c87ec (1/2)" into mnc-dev
Jorim Jaggi [Wed, 20 May 2015 19:01:49 +0000 (19:01 +0000)]
Merge "Follow up for I8050df3177b6d540829c3f0989a4e4b1381c87ec (1/2)" into mnc-dev

9 years agoMerge "Don't exceed max. allowed recent document tasks for an app." into mnc-dev
Stefan Kuhne [Wed, 20 May 2015 18:38:28 +0000 (18:38 +0000)]
Merge "Don't exceed max. allowed recent document tasks for an app." into mnc-dev

9 years agoUpdate platformDir search in tests.
Deepanshu Gupta [Wed, 20 May 2015 18:28:50 +0000 (11:28 -0700)]
Update platformDir search in tests.

When trying to find the SDK Platform Dir for LayoutLib tests, also
test if the dir from which the tests are run is module dir.

Change-Id: Id5c6038d07ebbb122e38f907ad488ed1f2bcde32

9 years agoEliminate requireGlContext
John Reck [Wed, 20 May 2015 14:18:55 +0000 (07:18 -0700)]
Eliminate requireGlContext

Bug: 20297820

Change-Id: I37c63bab6f6c0d2337c8c6002046d2ef17e74097

9 years agoMerge "Text selection: fix some issues with drag accelerator" into mnc-dev
Mady Mellor [Wed, 20 May 2015 18:05:29 +0000 (18:05 +0000)]
Merge "Text selection: fix some issues with drag accelerator" into mnc-dev

9 years agoDon't exceed max. allowed recent document tasks for an app.
Stefan Kuhne [Tue, 19 May 2015 23:00:12 +0000 (16:00 -0700)]
Don't exceed max. allowed recent document tasks for an app.

We were exceeding the maximum allowed recents document tasks entry
for an application package because the full Intent object was been
compared for equality which will be different for each task. Now
we are only comparing that the task components match which is
sufficient to determining that the task belongs to the same
application package.

Bug: 18642190
Change-Id: I831b0fcffb876d51e9439e7a7a4c75bb0881db7c

9 years agoHide ProviderStatus and Authentication APIs
Brian Attwell [Thu, 14 May 2015 22:25:01 +0000 (15:25 -0700)]
Hide ProviderStatus and Authentication APIs

Bug: 21090207
Change-Id: I27b604b9c849e1aad8289c517f5e50c5d0faae0f

9 years agoMerge "Fix selection handles on older API versions" into mnc-dev
Mady Mellor [Wed, 20 May 2015 17:09:11 +0000 (17:09 +0000)]
Merge "Fix selection handles on older API versions" into mnc-dev

9 years agoText selection: fix some issues with drag accelerator
Mady Mellor [Wed, 20 May 2015 17:05:52 +0000 (10:05 -0700)]
Text selection: fix some issues with drag accelerator

Couple of overlapping issues that this CL fixes. The major change is to
offset the selection vertically this is similar to how the handles work
already (i.e. touch target is below what's being selected), and still
allows the user to see the selection start / end without covering it with
their finger.

This change fixes multiple issues:
1) Previously to ensure the finger wasn't covering the selection a
   preceding or following offset was taken, this made it difficult to
   select certain words and it made text on the edge of the screen hard
   to select (b/21098345 and b/19965619)
2) The use of preceding and following on the word iterator was not correct
   allowing grapheme clusters to be split, now the offset is calculated
   with getWordStart/End which respect grapheme clusters (b/21045116)

Bug: 21098345
Bug: 21045116
Bug: 19965619
Change-Id: Id8392426cce20ad0ff47a4279c92f6ed1b0ad30e

9 years agoMerge "AudioFormat: more compressed formats" into mnc-dev
Eric Laurent [Wed, 20 May 2015 16:22:00 +0000 (16:22 +0000)]
Merge "AudioFormat: more compressed formats" into mnc-dev

9 years agoMerge "Updating (and completing) documentation post API-council changes." into mnc-dev
Paul McLean [Wed, 20 May 2015 15:56:06 +0000 (15:56 +0000)]
Merge "Updating (and completing) documentation post API-council changes." into mnc-dev

9 years agoMerge "Throw a checked exception on inconsistent installs." into mnc-dev
Narayan Kamath [Wed, 20 May 2015 15:54:47 +0000 (15:54 +0000)]
Merge "Throw a checked exception on inconsistent installs." into mnc-dev

9 years agoUpdating (and completing) documentation post API-council changes.
Paul McLean [Tue, 19 May 2015 18:13:41 +0000 (11:13 -0700)]
Updating (and completing) documentation post API-council changes.

1. Enum/Select/Notify API
2. (re)routing API

bug: 21151568
Change-Id: Idce969c8b8955022b7810cf5dddb800e6aa01000

9 years agoMerge "Reduce wasted buffer allocations" into mnc-dev
John Reck [Wed, 20 May 2015 14:23:05 +0000 (14:23 +0000)]
Merge "Reduce wasted buffer allocations" into mnc-dev

9 years agoMerge "Fix whitespace in TextureView" into mnc-dev
John Reck [Wed, 20 May 2015 14:22:56 +0000 (14:22 +0000)]
Merge "Fix whitespace in TextureView" into mnc-dev

9 years agoMerge "Fix NPE in setSurfaceTexure" into mnc-dev
John Reck [Wed, 20 May 2015 14:22:40 +0000 (14:22 +0000)]
Merge "Fix NPE in setSurfaceTexure" into mnc-dev

9 years agoFix whitespace in TextureView
John Reck [Mon, 18 May 2015 22:13:30 +0000 (15:13 -0700)]
Fix whitespace in TextureView

Change-Id: I22396b7205dc2b9cf0eda5bd8aa951cad8d8bd87

9 years agoFix NPE in setSurfaceTexure
John Reck [Mon, 18 May 2015 22:11:52 +0000 (15:11 -0700)]
Fix NPE in setSurfaceTexure

Bug: 20088412
Change-Id: I9b78636a7d89438c8924bb1bf2adba00e74366eb

9 years agoMerge "Fix Bitmap#sameAs NPE" into mnc-dev
John Reck [Wed, 20 May 2015 14:18:32 +0000 (14:18 +0000)]
Merge "Fix Bitmap#sameAs NPE" into mnc-dev

9 years agoMerge "Deal more gracefully with null smallIcons." into mnc-dev
Dan Sandler [Wed, 20 May 2015 14:04:35 +0000 (14:04 +0000)]
Merge "Deal more gracefully with null smallIcons." into mnc-dev

9 years agoDeal more gracefully with null smallIcons.
Dan Sandler [Wed, 20 May 2015 00:59:12 +0000 (20:59 -0400)]
Deal more gracefully with null smallIcons.

First, when parceling a notification with no small icon:
Well, you shouldn't attempt to do this anyway, since NoMan
will reject a notification without a valid smallIcon.  But
setServiceForeground parcels up the Notification on its own
before handing it off to NoMan, so it will crash on an
invalid small icon. (In general, parceling code should never
ever crash, even if the object is in an undesirable state.)

And when build()ing a notification: Same thing---don't build
a notification with no icon; you're going to have a bad
time. But maybe you're going to fix it before you hand it
off to NoMan. Or maybe it's just one page of a wearable
notification, so it doesn't really need its own icon. Either
way, Notification shouldn't crash.

Bug: 21286186
Bug: 21298403
Change-Id: Ie482cde0a3afe3aaabf07be0536551b8e4bceba0

9 years agoMerge "Don't crash in bugreport on devices without BT" into mnc-dev
Jason Monk [Wed, 20 May 2015 13:16:01 +0000 (13:16 +0000)]
Merge "Don't crash in bugreport on devices without BT" into mnc-dev

9 years agoMerge "Report invalid network after one failed attempt." into mnc-dev
Paul Jensen [Wed, 20 May 2015 12:56:22 +0000 (12:56 +0000)]
Merge "Report invalid network after one failed attempt." into mnc-dev

9 years agoMerge "Undeprecate android.net.ProxyInfo as it's still used." into mnc-dev
Paul Jensen [Wed, 20 May 2015 10:49:02 +0000 (10:49 +0000)]
Merge "Undeprecate android.net.ProxyInfo as it's still used." into mnc-dev

9 years agoThrow a checked exception on inconsistent installs.
Narayan Kamath [Wed, 20 May 2015 10:11:55 +0000 (11:11 +0100)]
Throw a checked exception on inconsistent installs.

Allows us to proceed without crashing the system process. Also,
complete an incomplete error message. Follow up comments from
change b904863476991d8540d37d5.

bug: 21144503

Change-Id: Idb6a33f93b70b4e5e2bca95d2d3af0e2adaeedf3

9 years agoMerge "Landscape extracted mode - floating toolbar interference" into mnc-dev
Andrei Stingaceanu [Wed, 20 May 2015 09:32:49 +0000 (09:32 +0000)]
Merge "Landscape extracted mode - floating toolbar interference" into mnc-dev

9 years agoLandscape extracted mode - floating toolbar interference
Andrei Stingaceanu [Tue, 19 May 2015 16:29:16 +0000 (17:29 +0100)]
Landscape extracted mode - floating toolbar interference

In landscape do not allow starting selection modes if the
extracted mode has not yet started. Also remove the single
tap selection delayed runnable.

This allows for a smooth transition (as in no floating
toolbar artifacts) into extracted mode. Also fixes
(more as in hides) the double selections.

Bug: 20930071
Change-Id: Idb9c375dc25777761b11ca17ccfd9f5eedc642b4

9 years agoMerge "Set NLM_F_ACK in our RTM_NEWNEIGH requests" into mnc-dev
Erik Kline [Wed, 20 May 2015 08:05:21 +0000 (08:05 +0000)]
Merge "Set NLM_F_ACK in our RTM_NEWNEIGH requests" into mnc-dev

9 years agoSet NLM_F_ACK in our RTM_NEWNEIGH requests
Erik Kline [Tue, 19 May 2015 05:17:11 +0000 (14:17 +0900)]
Set NLM_F_ACK in our RTM_NEWNEIGH requests

With NLM_F_ACK set in RTM_NEWNEIGH requests we get some response from
the kernel, whether there was an error or not.

Additionally:

    [1] add IpReachabilityMonitor#probeNeighbor() as a public
        static method, since it actually depends very little on the
        class internals and might be of larger use.

    [2] add a unittest for parsing NetlinkErrorMessages.

Bug: 18581716
Change-Id: I5d62e7a9972c7440f0483c38c77677436d3a1a25

9 years agoMerge "Add a hidden method to clear the capabilities of a NetworkRequest" into mnc-dev
Lorenzo Colitti [Wed, 20 May 2015 05:49:02 +0000 (05:49 +0000)]
Merge "Add a hidden method to clear the capabilities of a NetworkRequest" into mnc-dev

9 years agoBluetooth: Clear BLE always ON apps at Airplane mode
Nitin Arora [Fri, 8 May 2015 01:45:44 +0000 (18:45 -0700)]
Bluetooth: Clear BLE always ON apps at Airplane mode

This patch clears the container managing the Ble Always On
apps while switching on, the airplane mode. The airplane mode
will completely turn Off the Bleutooth Adapter from any state
it is in.

Change-Id: Ib28d39d85efe3aac37e3a53a4fb892099568c702

9 years agoTIF: Fix an incorrect conversion in timeShiftSetPlaybackParams()
Dongwon Kang [Wed, 20 May 2015 04:57:34 +0000 (13:57 +0900)]
TIF: Fix an incorrect conversion in timeShiftSetPlaybackParams()

Bug: 21313401
Change-Id: I73e55c454cf0e2cd90d922acf5c6efe727f59204

9 years agoMerge "Close netlink socket when shutting down IpReachabilityMonitor" into mnc-dev
Erik Kline [Wed, 20 May 2015 03:26:12 +0000 (03:26 +0000)]
Merge "Close netlink socket when shutting down IpReachabilityMonitor" into mnc-dev

9 years agoClose netlink socket when shutting down IpReachabilityMonitor
Erik Kline [Fri, 15 May 2015 09:49:17 +0000 (18:49 +0900)]
Close netlink socket when shutting down IpReachabilityMonitor

This forces the NetlinkSocketObserver thread to exit quickly, rather
than lingering until the next random netlink neighbor multicast message
arrives.

Additionally, add a small unittest to verify that multiple calls to
NetlinkSocket#close() are safe.

Change-Id: I101730fad7eee72f9c6e8a7e7bd10c634f2ceab4

9 years agoMerge "Make Context.getClassLoader() work." into mnc-dev
Deepanshu Gupta [Wed, 20 May 2015 03:05:51 +0000 (03:05 +0000)]
Merge "Make Context.getClassLoader() work." into mnc-dev

9 years agoMake Context.getClassLoader() work.
Deepanshu Gupta [Tue, 19 May 2015 01:47:07 +0000 (18:47 -0700)]
Make Context.getClassLoader() work.

Context.getClassLoader() is used by the LayoutInflater and can be used
by custom views. However, when called from the LayoutInflater, this
needs to return only the Framework classes. This is so that the IDE gets
a chance to instantiate the custom views, which helps in better error
reporting and better fallback in case of exceptions, like MockView.

To workaround this need of the same method returning different results
based on where it's called from, the method call in LayoutInflater is
renamed to getFrameworkClassLoader() and the new method is injected in
Context. The implementation of getFrameworkClassLoader() maintains the
existing behaviour of getClassLoader().

Context.getClassLoader() is now modified to return classes from both
Framework and the app namespace.

Also, update the list of packages to search for Framework views.

Change-Id: I1a6be4aa1fc5c1c5520b5440a348a52f10b6eb3b

9 years agoMerge "Prevent modification of system fixed permissions" into mnc-dev
Svetoslav [Wed, 20 May 2015 01:57:44 +0000 (01:57 +0000)]
Merge "Prevent modification of system fixed permissions" into mnc-dev

9 years agoMerge "[Fix Potential for error]:" into mnc-dev
Simranjit Singh Kohli [Wed, 20 May 2015 01:04:56 +0000 (01:04 +0000)]
Merge "[Fix Potential for error]:" into mnc-dev

9 years agoMerge "Fix user switcher ripple emanation point" into mnc-dev
Adrian Roos [Wed, 20 May 2015 00:43:46 +0000 (00:43 +0000)]
Merge "Fix user switcher ripple emanation point" into mnc-dev

9 years ago[Fix Potential for error]:
Simranjit Singh Kohli [Tue, 19 May 2015 17:58:01 +0000 (10:58 -0700)]
[Fix Potential for error]:

Init for accounts maybe called when non-system app asks for accounts.
That might lead to deletion of accounts and broadcast from the user,
which requires permission. Hence, we should clear calling identity
before requesting it.

Bug: 21140169

Change-Id: I057ac6778ea53d3f96b3e5c42fe3a2fe60c3cf28

9 years agocamera: Add AIDL interface for CameraServiceProxy.
Ruben Brunk [Wed, 20 May 2015 00:20:24 +0000 (17:20 -0700)]
camera: Add AIDL interface for CameraServiceProxy.

- Adds an AIDL interface to allow the proxy camera service
  running in system server to accept RPCs from the camera
  service running in mediaserver.
- Request an update to the valid user set from the proxy
  camera service when mediaserver restarts to initialize
  properly + avoid DOS after a crash.

Bug: 21267484
Change-Id: Ib821582794ddd1e3574b5dc6c79f7cb197b57f10

9 years agoLCE feature enhancement
fenglu [Sat, 2 May 2015 00:04:36 +0000 (17:04 -0700)]
LCE feature enhancement

- space pollLceData calls every 500ms
- cluster multiple pending pollLceData calls into one
- cherry pick from mwd to mnc-dev

Bug: 21307957
Change-Id: I04513011db3ae29af02bd54fe91cb8e0d4ab9f12

9 years agoMerge "Rebind backup transports only when clearly needed" into mnc-dev
Christopher Tate [Wed, 20 May 2015 00:07:11 +0000 (00:07 +0000)]
Merge "Rebind backup transports only when clearly needed" into mnc-dev

9 years agoRebind backup transports only when clearly needed
Christopher Tate [Fri, 15 May 2015 23:06:58 +0000 (16:06 -0700)]
Rebind backup transports only when clearly needed

Significantly narrow the circumstances under which transports
will be re-bound.  In particular, we now do not unbind + rebind
whenever any component in a bound transport's host package changes;
rather, we do so only when the transport component itself has
changed state, or when there is a state change that might cause
a new transport to become available.

Bug 19775237

Change-Id: Ib386875df19ffe9f2d3eb9f9788187338360644a

9 years agoPrevent modification of system fixed permissions
Svetoslav [Tue, 19 May 2015 23:48:46 +0000 (16:48 -0700)]
Prevent modification of system fixed permissions

Change-Id: I061b993df305f27e52f08dad54f1bdbf162de4d9

9 years agoAudioFormat: more compressed formats
Eric Laurent [Tue, 19 May 2015 23:46:52 +0000 (16:46 -0700)]
AudioFormat: more compressed formats

Add MP3 and AAC as valid AudioFormat encodings.
Only @hide for now to allow system components to manage
audio patches with those formats.

Bug: 18649264.
Change-Id: I5ef5f151783308e31d8ac5b29454589077ef62ea

9 years agoMerge "API for converting AudioAttributes to stream type" into mnc-dev
Jean-Michel Trivi [Tue, 19 May 2015 23:42:33 +0000 (23:42 +0000)]
Merge "API for converting AudioAttributes to stream type" into mnc-dev

9 years agoAPI for converting AudioAttributes to stream type
Jean-Michel Trivi [Mon, 18 May 2015 18:50:50 +0000 (11:50 -0700)]
API for converting AudioAttributes to stream type

Bug 21267880

Change-Id: I3389dcb3a35a3786ecdb8f56a917a0ae619e8417

9 years agoMerge "Handle downgrading a runtime permission to an install one" into mnc-dev
Svetoslav [Tue, 19 May 2015 23:30:47 +0000 (23:30 +0000)]
Merge "Handle downgrading a runtime permission to an install one" into mnc-dev

9 years agoHandle downgrading a runtime permission to an install one
Svetoslav [Tue, 19 May 2015 23:26:53 +0000 (16:26 -0700)]
Handle downgrading a runtime permission to an install one

bug:21300531

Change-Id: I5c020c0faae3e727bbe898441c58116e2ab892b8

9 years agoam 25a3b711: am 97c616cb: Merge "docs: M Preview - Updating image for Program Overvie...
Joe Fernandez [Tue, 19 May 2015 23:16:10 +0000 (23:16 +0000)]
am 25a3b711: am 97c616cb: Merge "docs: M Preview - Updating image for Program Overview" into mnc-preview-docs

* commit '25a3b7117a174e2a0dccdaf84c8394e5bdf1e7ca':
  docs: M Preview - Updating image for Program Overview

9 years agoam 9b716793: Merge "Revert "Make VPA.setInterpolator(null) unset the interpolator...
Yigit Boyar [Tue, 19 May 2015 23:15:48 +0000 (23:15 +0000)]
am 9b716793: Merge "Revert "Make VPA.setInterpolator(null) unset the interpolator."" into lmp-mr1-ub-dev

* commit '9b7167937ab5ea456c45e735d3bd749ccf49c432':
  Revert "Make VPA.setInterpolator(null) unset the interpolator."

9 years agoFix Bitmap#sameAs NPE
John Reck [Tue, 19 May 2015 22:50:51 +0000 (15:50 -0700)]
Fix Bitmap#sameAs NPE

Bug: 21281842

Change-Id: I4a1e33d7e642fa50e8789f1441e8587d1c15119c

9 years agoMerge "DocumentUI: Plish the design of footer bottons." into mnc-dev
Daichi Hirono [Tue, 19 May 2015 22:20:38 +0000 (22:20 +0000)]
Merge "DocumentUI: Plish the design of footer bottons." into mnc-dev

9 years agoMerge "setCallbackType should be public for onlost/onfound apis" into mnc-dev
Wei Wang [Tue, 19 May 2015 22:10:23 +0000 (22:10 +0000)]
Merge "setCallbackType should be public for onlost/onfound apis" into mnc-dev

9 years agoam 97c616cb: Merge "docs: M Preview - Updating image for Program Overview" into mnc...
Joe Fernandez [Tue, 19 May 2015 22:07:20 +0000 (22:07 +0000)]
am 97c616cb: Merge "docs: M Preview - Updating image for Program Overview" into mnc-preview-docs

* commit '97c616cb113ba3144ff91b7f974d832fdc5ff0f0':
  docs: M Preview - Updating image for Program Overview

9 years agosetCallbackType should be public for onlost/onfound apis
Prerepa Viswanadham [Tue, 19 May 2015 21:55:09 +0000 (14:55 -0700)]
setCallbackType should be public for onlost/onfound apis

Bug: 21304922
Change-Id: I27ed4f3e00ac13354e3ef75e5686916be0d10918

9 years agoMerge "Push initial disk state, handle empty media." into mnc-dev
Jeff Sharkey [Tue, 19 May 2015 22:04:53 +0000 (22:04 +0000)]
Merge "Push initial disk state, handle empty media." into mnc-dev

9 years agoMerge "Add IntentFilter auto verification - part 12" into mnc-dev
Fabrice Di Meglio [Tue, 19 May 2015 22:02:38 +0000 (22:02 +0000)]
Merge "Add IntentFilter auto verification - part 12" into mnc-dev

9 years agoReduce wasted buffer allocations
John Reck [Tue, 19 May 2015 22:00:13 +0000 (15:00 -0700)]
Reduce wasted buffer allocations

Bug: 20170924

Don't pre-allocate buffers if there is a SurfaceView or other
View that has requested transparent regions. This doesn't fully
address the problem of allocating buffers when there's a full
screen SurfaceView but it at least gets back to KitKat levels
of only having 1 wasted buffer instead of 3 (the 1 being
a result of the fact that it will still draw one frame of emptiness
forcing a buffer dequeue).

Change-Id: Ied9553186bc7b111d180b63f87b92bd317cb4b97

9 years agoMerge "docs: M Preview - Updating image for Program Overview" into mnc-preview-docs
Joe Fernandez [Tue, 19 May 2015 21:59:14 +0000 (21:59 +0000)]
Merge "docs: M Preview - Updating image for Program Overview" into mnc-preview-docs

9 years agoPush initial disk state, handle empty media.
Jeff Sharkey [Tue, 19 May 2015 21:42:38 +0000 (14:42 -0700)]
Push initial disk state, handle empty media.

Stash volume count from last scan, and use it to push initial storage
notifications state when listener is first attached.

Also omit disks with invalid size, which usually means they're an
empty slot with no media.

Bug: 20503551
Change-Id: I75097035aebaad70ba32437179a863f6a0910aa5