OSDN Git Service

android-x86/frameworks-base.git
11 years agoHave UserManagerService clear the restrictions and unblock apps
Amith Yamasani [Tue, 2 Jul 2013 18:17:30 +0000 (11:17 -0700)]
Have UserManagerService clear the restrictions and unblock apps

Since this is an operation that could take a few seconds to run and needs to be
completed even if Settings dies, best to do it in the user manager.

Refactored PIN challenge/setup UI with a field to verify existing pin
when changing to a new one.

Change-Id: I0b7df5b2ccb7f343aa9282a9245d3bc2b577a794

11 years agoMerge "Camera: Remove camera gid from apps with camera permission."
Eino-Ville Talvala [Thu, 18 Jul 2013 18:51:33 +0000 (18:51 +0000)]
Merge "Camera: Remove camera gid from apps with camera permission."

11 years agoMerge "Add FX_KEYPRESS_INVALID constant to AudioManager."
Justin Koh [Thu, 18 Jul 2013 18:27:50 +0000 (18:27 +0000)]
Merge "Add FX_KEYPRESS_INVALID constant to AudioManager."

11 years agoMerge "Switch Bundle's implementation over to ArrayMap."
Dianne Hackborn [Thu, 18 Jul 2013 18:23:09 +0000 (18:23 +0000)]
Merge "Switch Bundle's implementation over to ArrayMap."

11 years agoMerge "Mmmmmmm... lovely, lovely ArrayMap."
Dianne Hackborn [Thu, 18 Jul 2013 18:22:40 +0000 (18:22 +0000)]
Merge "Mmmmmmm...  lovely, lovely ArrayMap."

11 years agoMmmmmmm... lovely, lovely ArrayMap.
Dianne Hackborn [Thu, 18 Jul 2013 01:43:12 +0000 (18:43 -0700)]
Mmmmmmm...  lovely, lovely ArrayMap.

And ArraySet, too.

Change-Id: I72ea28cbb2286b01b6e1be082f8e7ec17e99074e

11 years agoMerge "Make it safe to use start/stop app ops outside of system proc"
Dianne Hackborn [Thu, 18 Jul 2013 18:12:50 +0000 (18:12 +0000)]
Merge "Make it safe to use start/stop app ops outside of system proc"

11 years agoSwitch Bundle's implementation over to ArrayMap.
Dianne Hackborn [Thu, 18 Jul 2013 02:06:22 +0000 (19:06 -0700)]
Switch Bundle's implementation over to ArrayMap.

That was...  um...  easier than I thought it was going to be.

Change-Id: Id8f2211c1d5f8145e0bb009dca0f62a590f2b860

11 years agoMerge "Ignore list item clicks if PreferenceActivity is paused."
Amith Yamasani [Thu, 18 Jul 2013 18:00:53 +0000 (18:00 +0000)]
Merge "Ignore list item clicks if PreferenceActivity is paused."

11 years agoAdd FX_KEYPRESS_INVALID constant to AudioManager.
Justin Koh [Fri, 12 Jul 2013 00:16:53 +0000 (17:16 -0700)]
Add FX_KEYPRESS_INVALID constant to AudioManager.

Add FX_KEYPRESS_INVALID constant to AudioManager. This is a sound which should
play if the user tries to click or press on an element which is disabled.

Change-Id: Idd8953abeddd1afb51f7f190f9fb612ef672defa

11 years agoam e9643874: am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."
Elliott Hughes [Thu, 18 Jul 2013 17:45:38 +0000 (10:45 -0700)]
am e9643874: am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."

* commit 'e964387466e380f17e28ab3dd75139509d043ffd':
  Handle missing and invalid numeric values in XmlUtils.

11 years agoam 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."
Elliott Hughes [Thu, 18 Jul 2013 17:41:41 +0000 (10:41 -0700)]
am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."

* commit '0bad537093ed5b493e4c2af778cf802a2cf2c15f':
  Handle missing and invalid numeric values in XmlUtils.

11 years agoMerge "Handle missing and invalid numeric values in XmlUtils."
Elliott Hughes [Thu, 18 Jul 2013 17:38:57 +0000 (17:38 +0000)]
Merge "Handle missing and invalid numeric values in XmlUtils."

11 years agoIgnore list item clicks if PreferenceActivity is paused.
Amith Yamasani [Wed, 17 Jul 2013 22:52:45 +0000 (15:52 -0700)]
Ignore list item clicks if PreferenceActivity is paused.

Since list item clicks are delivered asynchronously, it's possible to
get click callbacks after the activity has already paused.

This should actually be blocked further up the event chain, ideally,
so that the list selection state is not out of sync with the application.

Bug: 9752185
Change-Id: I1058d64cba98e9093b462e2e581bdbccdace1420

11 years agoam 03a152d7: am 15cb526e: Merge "Fix import after okhttp update."
Elliott Hughes [Thu, 18 Jul 2013 16:43:04 +0000 (09:43 -0700)]
am 03a152d7: am 15cb526e: Merge "Fix import after okhttp update."

* commit '03a152d7e72f05456a463f2709ce787119e86f03':
  Fix import after okhttp update.

11 years agoam 15cb526e: Merge "Fix import after okhttp update."
Elliott Hughes [Thu, 18 Jul 2013 16:36:48 +0000 (09:36 -0700)]
am 15cb526e: Merge "Fix import after okhttp update."

* commit '15cb526ece1420b1ae2061e20fd0982d82b41aae':
  Fix import after okhttp update.

11 years agoMerge "Fix import after okhttp update."
Elliott Hughes [Thu, 18 Jul 2013 16:33:40 +0000 (16:33 +0000)]
Merge "Fix import after okhttp update."

11 years agoMerge "Fix media server restart detection mechanism"
Eric Laurent [Thu, 18 Jul 2013 16:12:59 +0000 (16:12 +0000)]
Merge "Fix media server restart detection mechanism"

11 years agoFix media server restart detection mechanism
Eric Laurent [Thu, 18 Jul 2013 00:26:41 +0000 (17:26 -0700)]
Fix media server restart detection mechanism

There is a flaw in the mechanism used by AudioService
to detect the fact that mediaserver process did crash and restart.
It relies on polling AudioFlinger service until a successful
connection triggers a callback into AudioSystem JNI and then into AudioService.
But if another thread in system_server process, not attached to the
JNI environment, reconnects before AudioService, the callback is called in
a detached context and dropped.

The fix consists in attaching the thread executing the callback
and detaching it if needed.

Bug: 9693068.
Change-Id: I184308b12a3f87653bf818abf0159e0e45a66ef0

11 years agoFix import after okhttp update.
Narayan Kamath [Thu, 18 Jul 2013 12:42:50 +0000 (13:42 +0100)]
Fix import after okhttp update.

OkResponseCache moved packages in change
62321.

Change-Id: I2c08c4586405e767d1931ebc5f185c7916850fa1

11 years agoMerge "Move markSocketAsUser to the top of IConnectivityManager.aidl"
Geremy Condra [Thu, 18 Jul 2013 02:16:35 +0000 (02:16 +0000)]
Merge "Move markSocketAsUser to the top of IConnectivityManager.aidl"

11 years agoMake it safe to use start/stop app ops outside of system proc
Dianne Hackborn [Thu, 18 Jul 2013 00:23:25 +0000 (17:23 -0700)]
Make it safe to use start/stop app ops outside of system proc

We now keep track of all of the active start operations per
non-system process, so they can be cleaned up if the process
goes away.

Change-Id: I9d05f1e0281c47dbe1213de014f0491f1359685c

11 years agoMerge "Tweak the print APIs."
Svetoslav [Wed, 17 Jul 2013 22:05:21 +0000 (22:05 +0000)]
Merge "Tweak the print APIs."

11 years agoCamera: Remove camera gid from apps with camera permission.
Eino-Ville Talvala [Wed, 17 Jul 2013 19:37:42 +0000 (12:37 -0700)]
Camera: Remove camera gid from apps with camera permission.

This gid is not needed by camera-using apps, since all camera access
is mediated by the camera service, which does not depend on gid for
permission checks.

Bug: 9904186
Change-Id: I859e6cabc905af9d98e2b09f5bbad086b5eb2b26

11 years agoTweak the print APIs.
Svetoslav [Wed, 17 Jul 2013 21:52:35 +0000 (14:52 -0700)]
Tweak the print APIs.

1. Adding bundle with metadata to PrintDocumentAdapter#onLayout
   with one key for now to specify whether this is for a preview.

2. Cleaned up docs.

Change-Id: I89380781bf3ae41aa89f8a0347d74516a210394c

11 years agoMerge "Changed name of recent hasLayout() method to isLaidOut()"
Chet Haase [Wed, 17 Jul 2013 21:50:27 +0000 (21:50 +0000)]
Merge "Changed name of recent hasLayout() method to isLaidOut()"

11 years agoChanged name of recent hasLayout() method to isLaidOut()
Chet Haase [Wed, 17 Jul 2013 17:22:53 +0000 (10:22 -0700)]
Changed name of recent hasLayout() method to isLaidOut()

This new method on view reflects whether the view has been laid out
at least once since it was attached. hasLayout() seems too vague for that
meaning; every View that has a parent has a layout (since we use container,
parent, and layout interchangeably). The new version of the method
is closer to the actual meaning.

Change-Id: I519745739b6a6317faeb077aa61f994025cf81f3

11 years agoRemove trailing whitespace from system ui.
John Spurlock [Wed, 17 Jul 2013 16:23:27 +0000 (12:23 -0400)]
Remove trailing whitespace from system ui.

Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99

11 years agoMerge "Make ArrayMap public! :)"
Dianne Hackborn [Wed, 17 Jul 2013 00:53:32 +0000 (00:53 +0000)]
Merge "Make ArrayMap public! :)"

11 years agoMerge "Fix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION."
John Spurlock [Wed, 17 Jul 2013 00:20:35 +0000 (00:20 +0000)]
Merge "Fix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION."

11 years agoam 42658ed5: am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"
Adam Powell [Wed, 17 Jul 2013 00:12:49 +0000 (17:12 -0700)]
am 42658ed5: am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"

* commit '42658ed5182a75b82dd2b970a1f97fc30407d1e3':
  Consider mScrollX when drawing the checkMarkDrawable

11 years agoMake ArrayMap public! :)
Dianne Hackborn [Tue, 16 Jul 2013 20:23:55 +0000 (13:23 -0700)]
Make ArrayMap public! :)

Also do some tweaking of the various container classes
to synchronize them with the support lib and make it
easier to copy code between the two.

And update activity/fragment to use ArrayMap.

Change-Id: I3cfe82392a17119dfc72c3d9961f64e1914f42be

11 years agoam 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"
Adam Powell [Wed, 17 Jul 2013 00:06:36 +0000 (17:06 -0700)]
am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"

* commit '30ad720304790b07112b87f973a7e6ed5e1e6ee5':
  Consider mScrollX when drawing the checkMarkDrawable

11 years agoMerge "Consider mScrollX when drawing the checkMarkDrawable"
Adam Powell [Wed, 17 Jul 2013 00:04:28 +0000 (00:04 +0000)]
Merge "Consider mScrollX when drawing the checkMarkDrawable"

11 years agoFix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.
John Spurlock [Tue, 16 Jul 2013 21:38:54 +0000 (17:38 -0400)]
Fix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.

If a window's task stack has no sibling, restore old behavior
of allowing frame to go below the nav bar.

Bug:9884905
Change-Id: Ifc38901a6633cf431dba8740a65258d0618c0fd0

11 years agoMerge "Skip unnecessary measurements when possible"
Romain Guy [Tue, 16 Jul 2013 23:37:28 +0000 (23:37 +0000)]
Merge "Skip unnecessary measurements when possible"

11 years agoSkip unnecessary measurements when possible
Romain Guy [Tue, 16 Jul 2013 22:10:04 +0000 (15:10 -0700)]
Skip unnecessary measurements when possible

This change introduces a new measure cache to View, to remember
the measured dimensions for previous pairs of measure specs. The
measure cache is cleared whenever a View requests layout.

Unfortunately some Views rely on measure being always called when
layout is invoked. To work around this problem, we need to remember
when we hit the measure cache to force a call to measure just prior
to calling onLayout(). This does not completely removes all measure
calls but enough to optimize a number of layouts.

Change-Id: Ie085fbcf186e9d7505e1127e0786a12968ebc344

11 years agoMerge "Support stencil-based clipping for functors"
Chris Craik [Tue, 16 Jul 2013 22:43:01 +0000 (22:43 +0000)]
Merge "Support stencil-based clipping for functors"

11 years agoMerge "Fix missing lock in power manager."
Jeff Brown [Tue, 16 Jul 2013 22:28:22 +0000 (22:28 +0000)]
Merge "Fix missing lock in power manager."

11 years agoMerge "Fix crashes in setMatrix() and concat()"
Romain Guy [Tue, 16 Jul 2013 22:26:59 +0000 (22:26 +0000)]
Merge "Fix crashes in setMatrix() and concat()"

11 years agoFix missing lock in power manager.
Jeff Brown [Tue, 16 Jul 2013 22:18:19 +0000 (15:18 -0700)]
Fix missing lock in power manager.

The display wake lock and other internal state could become
out of sync if we happened to execute the power manager's update
function concurrently due to the missing lock.

This bug can be trigged due to display state changes or proximity
sensor updated.  Although it would be extremely rare, we have
some evidence of this happening on at least a few devices resulting
in rapid power drain with the screen off or a crash.

Bug: 9880044
Change-Id: I3c674ce429621a50cbb36c3a01883d5f388205b2

11 years agoMerge "Fix issues with delayed transitions"
Chet Haase [Tue, 16 Jul 2013 22:17:44 +0000 (22:17 +0000)]
Merge "Fix issues with delayed transitions"

11 years agoFix issues with delayed transitions
Chet Haase [Tue, 16 Jul 2013 21:40:11 +0000 (14:40 -0700)]
Fix issues with delayed transitions

Previously, there were two distinct problems with how delayed
transitions were being run:
- there would be a delay between the transition being put into
a preDrawListener (to be kicked off when that listener fired) and
being removed from the pending list. This allowed another delayed
transition to be run in parallel, which would cause conflicting/
clobbering issues with transition values on the same objects.
- there would be an extra frame delay in some cases due to how/when the
delayed transition would be started. Specfically, we would postOnAnimation()
to call a method that would then add the onPreDraw listener. This two-step
forwarding caused issues noted above.

The fix is to simply add the transition to the preDrawListener immediately, removing
the two-step problem, and also ensuring that the transition is only removed
from the pending list when it is actually started, which prevents other transitions
from starting in the meantime.

Also, added more debug logging to help chase future issues with transitions.

Change-Id: Ie2ff8e73d29f342512842e9641bd8d605e74544c

11 years agoFix crashes in setMatrix() and concat()
Romain Guy [Tue, 16 Jul 2013 20:47:01 +0000 (13:47 -0700)]
Fix crashes in setMatrix() and concat()

setMatrix() was crashing in native code, only with hw acceleration on.
concat() would throw a NullPointerException. It now ignores null matrices.

Change-Id: Iebd8b410a957d2ba501570c6fbb3f680ff4a1a23

11 years agoMerge "Remove iterators."
Craig Mautner [Tue, 16 Jul 2013 21:45:32 +0000 (21:45 +0000)]
Merge "Remove iterators."

11 years agoClean up of the print APIs.
Svetoslav [Tue, 25 Jun 2013 01:29:33 +0000 (18:29 -0700)]
Clean up of the print APIs.

1. Fixed a case in which the onPrintCompleted callback may not be invoked.

2. Added string resulrces for the different error messages for failed
   printing in OnPrintCompletedCallback

3. Fixed the string comments for the MediaSize constants.

4. Added APIs to create certain print attributes by passing in a
   string label instead of resource and package name since in some cases
   a print service may be getting already internationalized lables
   or it may not know all possible values.

5. Fixed a crash in PrintJobConfigActivity if there is no input or
   output tray.

Change-Id: Ie877b7dc669051606394aa290e6d2b979a42db4c

11 years agoMerge "Camera2: Remove/@hide non-public keys."
Eino-Ville Talvala [Tue, 16 Jul 2013 21:10:43 +0000 (21:10 +0000)]
Merge "Camera2: Remove/@hide non-public keys."

11 years agoAdd a clean spec rule due to renamed *.aidl
Svetoslav [Tue, 16 Jul 2013 20:49:44 +0000 (13:49 -0700)]
Add a clean spec rule due to renamed *.aidl

Change-Id: I87bfd02b8c4f3ceb43594a91ac8f501a867ccfe6

11 years agoRemove iterators.
Craig Mautner [Tue, 16 Jul 2013 16:10:55 +0000 (09:10 -0700)]
Remove iterators.

Remove DisplayContentsIterator and AllWindowsIterator. These were cute
but they take up valuable resources. Iterate over ArrayList members
in their place.

Change-Id: I1d8a3b040175cb88b98f6a7e97cab06d17d5706b

11 years agoFix the build - missed a renaming
Svetoslav [Tue, 16 Jul 2013 20:43:41 +0000 (13:43 -0700)]
Fix the build - missed a renaming

Change-Id: I0e85723647c0e5a6f6374e119f0fbd43db477ee0

11 years agoSupport stencil-based clipping for functors
Chris Craik [Tue, 16 Jul 2013 20:27:18 +0000 (13:27 -0700)]
Support stencil-based clipping for functors

bug:9070351
Change-Id: I1c54e1bea1b84b1619cce27b14f189b42cab7062

11 years agoMerge "Disable documents test UI."
Jeff Sharkey [Tue, 16 Jul 2013 20:03:35 +0000 (20:03 +0000)]
Merge "Disable documents test UI."

11 years agoDisable documents test UI.
Jeff Sharkey [Tue, 16 Jul 2013 20:01:57 +0000 (13:01 -0700)]
Disable documents test UI.

Change-Id: Iae8ef3e751a53a3f7df0a7c5bc666ec75e91d9e9

11 years agoMerge "Refactoring of the print sub-system and API clean up."
Svetoslav Ganov [Tue, 16 Jul 2013 20:01:34 +0000 (20:01 +0000)]
Merge "Refactoring of the print sub-system and API clean up."

11 years agoRefactoring of the print sub-system and API clean up.
Svetoslav Ganov [Tue, 25 Jun 2013 21:59:53 +0000 (14:59 -0700)]
Refactoring of the print sub-system and API clean up.

1. Now a user state has ins own spooler since the spooler app is
   running per user. The user state registers an observer for the state
   of the spooler to get information needed to orchestrate unbinding
   from print serivces that have no work and eventually unbinding from
   the spooler when all no service has any work.

2. Abstracted a remote print service from the perspective of the system
   in a class that is transparently managing binding and unbinding to
   the remote instance.

3. Abstracted the remote print spooler to transparently manage binding
   and unbinding to the remote instance when there is work and when
   there is no work, respectively.

4. Cleaned up the print document adapter (ex-PrintAdapter) APIs to
   enable implementing the all callbacks on a thread of choice. If
   the document is really small, using the main thread makes sense.

   Now if an app that does not need the UI state to layout the printed
   content, it can schedule all the work for allocating resources, laying
   out, writing, and releasing resources on a dedicated thread.

5. Added info class for the printed document that is now propagated
   the the print services. A print service gets an instance of a
   new document class that encapsulates the document info and a method
   to access the document's data.

6. Added APIs for describing the type of a document to the new document
   info class. This allows a print service to do smarts based on the
   doc type. For now we have only photo and document types.

7. Renamed the systemReady method for system services that implement
   it with different semantics to systemRunning. Such methods assume
   the the service can run third-party code which is not the same as
   systemReady.

8. Cleaned up the print job configuration activity.

9. Sigh... code clean up here and there. Factoring out classes to
   improve readability.

Change-Id: I637ba28412793166cbf519273fdf022241159a92

11 years agowifi: Add tdls_discover command to tdls enable call
Dmitry Shmidt [Tue, 16 Jul 2013 19:41:22 +0000 (12:41 -0700)]
wifi: Add tdls_discover command to tdls enable call

Bug: 8539031

Change-Id: I29739e74f73b68fbf9ff73cfc19017a01655f9a4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoMerge "unify variable naming scheme."
Chris Wren [Tue, 16 Jul 2013 18:41:00 +0000 (18:41 +0000)]
Merge "unify variable naming scheme."

11 years agoMerge "Fix collapsible action views."
Adam Powell [Tue, 16 Jul 2013 18:37:35 +0000 (18:37 +0000)]
Merge "Fix collapsible action views."

11 years agoFix collapsible action views.
Adam Powell [Tue, 16 Jul 2013 18:35:17 +0000 (11:35 -0700)]
Fix collapsible action views.

Fix a regression caused by a previous overzealous refactoring. (Oops.)
Watch those conditionals, everyone!

Bug 9866559

Change-Id: Ia88a4ee38edef378e70bdc7151c825375a3d482d

11 years agounify variable naming scheme.
Chris Wren [Mon, 15 Jul 2013 22:48:37 +0000 (18:48 -0400)]
unify variable naming scheme.

inflateViews() and updateNotification() reference the same objects
with different names, and it was confusing.  #cleanup

Bug: 6497005
Change-Id: I0d9a94d7ec156b6bfcf4b85c777f9b58311d07d0

11 years agoMove markSocketAsUser to the top of IConnectivityManager.aidl
Chad Brubaker [Tue, 16 Jul 2013 18:22:32 +0000 (11:22 -0700)]
Move markSocketAsUser to the top of IConnectivityManager.aidl

Move markSocketAsUser to the top of IConnectivityManager.aidl to make
calls from
framework/native/services/connectivitymanager less fragile

Change-Id: Iba92c21dfef175b570521f34e7ee2732e5a0a9c9

11 years agoMerge "Switch proc stats to use new process state constants."
Dianne Hackborn [Tue, 16 Jul 2013 18:15:08 +0000 (18:15 +0000)]
Merge "Switch proc stats to use new process state constants."

11 years agoCamera2: Remove/@hide non-public keys.
Eino-Ville Talvala [Mon, 15 Jul 2013 22:19:22 +0000 (15:19 -0700)]
Camera2: Remove/@hide non-public keys.

Change-Id: I28fc5d6d41a444730061b6d2652f5cb75f97d56b

11 years agoMerge "AudioTrack write() on a full buffer while paused returns 0"
Glenn Kasten [Tue, 16 Jul 2013 17:54:26 +0000 (17:54 +0000)]
Merge "AudioTrack write() on a full buffer while paused returns 0"

11 years agoMerge "Add disabled state to FastScroller."
Alan Viverette [Tue, 16 Jul 2013 14:41:39 +0000 (14:41 +0000)]
Merge "Add disabled state to FastScroller."

11 years agoMerge "Un@hide View.PRESSED_STATE_SET."
John Spurlock [Tue, 16 Jul 2013 13:37:18 +0000 (13:37 +0000)]
Merge "Un@hide View.PRESSED_STATE_SET."

11 years agoMerge "Minor Formating Fix"
Alon Albert [Tue, 16 Jul 2013 07:57:31 +0000 (07:57 +0000)]
Merge "Minor Formating Fix"

11 years agoMerge "Increase swappiness of processes when memcgroups are enabled"
Rom Lemarchand [Tue, 16 Jul 2013 02:32:13 +0000 (02:32 +0000)]
Merge "Increase swappiness of processes when memcgroups are enabled"

11 years agoMerge "Import translations. DO NOT MERGE"
Baligh Uddin [Tue, 16 Jul 2013 02:24:34 +0000 (02:24 +0000)]
Merge "Import translations. DO NOT MERGE"

11 years agoMerge "always pass the BufferQueue explicitely to consumers"
Mathias Agopian [Tue, 16 Jul 2013 02:17:56 +0000 (02:17 +0000)]
Merge "always pass the BufferQueue explicitely to consumers"

11 years agoMerge "Completely remove skia dependency from libinput."
Jeff Brown [Tue, 16 Jul 2013 01:49:52 +0000 (01:49 +0000)]
Merge "Completely remove skia dependency from libinput."

11 years agoMerge "Add a keycode to switch audio tracks (1/2)"
michaelwr [Tue, 16 Jul 2013 01:38:46 +0000 (01:38 +0000)]
Merge "Add a keycode to switch audio tracks (1/2)"

11 years agoCompletely remove skia dependency from libinput.
Jeff Brown [Tue, 16 Jul 2013 01:05:59 +0000 (18:05 -0700)]
Completely remove skia dependency from libinput.

Change-Id: I943d0e5b7bb6e922803e14b8c3a3564e82fc5e63

11 years agoAdd disabled state to FastScroller.
Alan Viverette [Tue, 16 Jul 2013 00:47:34 +0000 (17:47 -0700)]
Add disabled state to FastScroller.

BUG: 9759511
Change-Id: I555f501b33029665d94a493ee5cab5741c843328

11 years agoMerge "Fix PDK build."
Jeff Brown [Tue, 16 Jul 2013 00:44:19 +0000 (00:44 +0000)]
Merge "Fix PDK build."

11 years agoFix PDK build.
Jeff Brown [Tue, 16 Jul 2013 00:31:32 +0000 (17:31 -0700)]
Fix PDK build.

Change-Id: Ide48ea30c2f7f24d20ab6fcdc47c806ac1f133ee

11 years agoMerge "Fixing bugs discovered by the CTS tests."
Svetoslav [Tue, 16 Jul 2013 00:24:10 +0000 (00:24 +0000)]
Merge "Fixing bugs discovered by the CTS tests."

11 years agoFixing bugs discovered by the CTS tests.
Svetoslav [Tue, 16 Jul 2013 00:12:41 +0000 (17:12 -0700)]
Fixing bugs discovered by the CTS tests.

1. Delayed accessibility events sent when a view subtree changes may be
   be delivered after accessibility is disabled leading to a crash. It is
   possible that accessibility was disabled while we were waiting for
   the timeout before sending the event. Added a check before dispatching.

2. When refreshing a cached node the accessibility node info cache was
   not using the correct bypass cache argument value and as result was
   not getting the latest node but its cached value. We really want to
   get the latest state to update the cache.

3. The debugging cache integrity verification logic was incorrectly
   removing nodes from the cache while doing its work.

4. Removed the comments for some debug logging.

bug:9857067

Change-Id: I20ee1a6ffa65ad35457b51d3f2dc0bc5d8d784e6

11 years agoMerge "Revert "Update ListMenuItemView to use a single RelativeLayout""
Alan Viverette [Mon, 15 Jul 2013 23:56:24 +0000 (23:56 +0000)]
Merge "Revert "Update ListMenuItemView to use a single RelativeLayout""

11 years agoRevert "Update ListMenuItemView to use a single RelativeLayout"
Alan Viverette [Mon, 15 Jul 2013 23:43:58 +0000 (16:43 -0700)]
Revert "Update ListMenuItemView to use a single RelativeLayout"

This reverts commit 8933efd49a0b2c10ddb30b23b57f5676634d0277.

BUG: 9774755
Change-Id: Ib6481e396092da81edd2c69f619f45f61e8fa393

11 years agoSwitch proc stats to use new process state constants.
Dianne Hackborn [Sun, 14 Jul 2013 04:32:12 +0000 (21:32 -0700)]
Switch proc stats to use new process state constants.

These new constants are a better mapping to the kind of
information that procstats is wanting to collect about
processes.  In doing this, the process states are tweaked
to have a bit more information that we care about for
procstats.

This changes the format of the data printed by procstats,
so the checkin version is bumped to 2.  The structure is
the same, however the codes for process states have all
changed.  The new codes are, in order of precedence:

p -- persistent system process.
t -- top activity; actually any visible activity.
f -- important foreground process (ime, wallpaper, etc).
b -- important background process
u -- performing backup operation.
w -- heavy-weight process (currently not used).
s -- background process running a service.
r -- process running a receiver.
h -- process hosting home/launcher app when not on top.
l -- process hosting the last app the user was in.
a -- cached process hosting a previous activity.
c -- cached process hosting a client activity.
e -- cached process that is empty.

In addition, we are now collecting uss along with pss
data for each process, so the pss checkin entries now
have three new values at the end of the min/avg/max uss
values of that process.

With this switch to using process state constants more
fundamentally, I realized that they could actually be
used by the core oom adj code to make it a lot cleaner.
So that change has been made, that code has changed quite
radically, and lost a lot of its secondary states and flags
that it used to use in its computation, now relying on
primarily the oom_adj and proc state values for the process.

This also cleaned up a few problems -- for example for
purposes of determing the memory level of the device, if a
long-running service dropped into the cached oom_adj level,
it would start being counted as a cached process and thus
make us think that the memory state is better than it is.
Now we do this based on the proc state, which always stays
as a service regardless of what is happening like this, giving
as a more consistent view of the memory state of the device.

Making proc state a more fundamentally part of the oom adj
computation means that the values can also be more carefully
tuned in semantic meaning so the value assigned to a process
doesn't tend to change unless the semantics of the process
has really significantly changed.

For example, a process will be assigned the service state
regardless of whether that services is executing operations
in the foreground, running normally, or has been dropped to
the lru list for pruning.  The top state is used for everything
related to activities visible to the user: when actually on
top, visible but not on top, currently pausing, etc.

There is a new Context.BIND_SHOWING_UI added for when system
services bind to apps, to explicitly indicate that the app
is showing UI for the system.  This gives us a better metric
to determine when it is showing UI, and thus when it needs
to do a memory trim when it is no longer in that state.  Without
this, services could get in bad states of continually trimming.

Finally, more HashSet containers have been changed to ArraySet,
reducing the temporary iterators created for iterating over
them.

Change-Id: I1724113f42abe7862e8aecb6faae5a7620245e89

11 years agoRemove dead code in system server initialization.
Jeff Brown [Mon, 15 Jul 2013 20:22:04 +0000 (13:22 -0700)]
Remove dead code in system server initialization.

System server always forks from Zygote so we no longer need
the system_server executable which was probably broken anyhow.
This makes the initialization sequence slightly more intelligible.

Likewise, we don't need the GrimReaper anymore because init
will automatically take care of restarting the system when the
service manager dies.

Change-Id: I02c88d9392f7c8133d9cde9d0d978da89ed80452

11 years agoDeclare permission for accessing input flinger.
Jeff Brown [Fri, 12 Jul 2013 23:56:34 +0000 (16:56 -0700)]
Declare permission for accessing input flinger.

Change-Id: I2914b301b74e0d310a9e95e2d6fb5cb72d3e3703

11 years agoMerge "Support routing sockets as another user"
Geremy Condra [Mon, 15 Jul 2013 21:57:18 +0000 (21:57 +0000)]
Merge "Support routing sockets as another user"

11 years agoMerge "Restricted profiles use Owner's VPN"
Geremy Condra [Mon, 15 Jul 2013 21:56:54 +0000 (21:56 +0000)]
Merge "Restricted profiles use Owner's VPN"

11 years agoMerge changes Ia6646363,I94389b64
Geremy Condra [Mon, 15 Jul 2013 21:56:30 +0000 (21:56 +0000)]
Merge changes Ia6646363,I94389b64

* changes:
  Add per user VPN support
  Add NetworkUtil function for marking sockets

11 years agoMerge "camera2: Implement CameraDevice#getCameraInfo"
Igor Murashkin [Mon, 15 Jul 2013 20:45:35 +0000 (20:45 +0000)]
Merge "camera2: Implement CameraDevice#getCameraInfo"

11 years agocamera2: Implement CameraDevice#getCameraInfo
Igor Murashkin [Sat, 13 Jul 2013 01:01:31 +0000 (18:01 -0700)]
camera2: Implement CameraDevice#getCameraInfo

Bug: 9529161
Change-Id: Ie37d1e07bb8416cbb141f4d49e52337bf7236610

11 years agoIncrease swappiness of processes when memcgroups are enabled
Rom Lemarchand [Fri, 12 Jul 2013 23:15:36 +0000 (16:15 -0700)]
Increase swappiness of processes when memcgroups are enabled

When memcgroups are enabled, migrate heavier and lower priority processes
to the sw memcgroup.

Change-Id: Iba07a723037a599736ef23dea16a30a26634428a

11 years agoMerge "Add webp to BitmapFactory.Options outMimetype"
Chris Craik [Mon, 15 Jul 2013 19:29:10 +0000 (19:29 +0000)]
Merge "Add webp to BitmapFactory.Options outMimetype"

11 years agoSupport routing sockets as another user
Chad Brubaker [Thu, 11 Jul 2013 20:29:30 +0000 (13:29 -0700)]
Support routing sockets as another user

Add support for routing sockets as if they were another user's.
This is for services that handle delegated network tasks like MediaServer and DownloadManager.

Change-Id: Id20efc1f5c2cce6f8838d777762f6c0a703a9437

11 years agoRestricted profiles use Owner's VPN
Chad Brubaker [Wed, 10 Jul 2013 21:46:23 +0000 (14:46 -0700)]
Restricted profiles use Owner's VPN

Restricted profiles cannot start their own VPN and will use the Owner's
VPN if one is running.

Change-Id: I1fc153742047f9149acb414c4c9d35305e97d8d0

11 years agoMerge "Add carrier setup app integration"
Evan Charlton [Mon, 15 Jul 2013 18:31:20 +0000 (18:31 +0000)]
Merge "Add carrier setup app integration"

11 years agoMerge "Allowing the root user to use the screen introspection APIs."
Svetoslav [Mon, 15 Jul 2013 17:25:59 +0000 (17:25 +0000)]
Merge "Allowing the root user to use the screen introspection APIs."

11 years agoAllowing the root user to use the screen introspection APIs.
Svetoslav [Mon, 15 Jul 2013 17:20:27 +0000 (10:20 -0700)]
Allowing the root user to use the screen introspection APIs.

We were allowing the system and the shell user to access use the
screen introspection APIs but the root user was not able to to so.
This change enableS the root user to also use these APIs. Note that
we usually allow the root user to access privileged functionality
similarly to the shell user of the system.

bug:8877685

Change-Id: Ie4008339e864b835bd3a2d5e06b042e4431c5270

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 15 Jul 2013 16:45:36 +0000 (09:45 -0700)]
Import translations. DO NOT MERGE

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

11 years agoam 59734490: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Mon, 15 Jul 2013 16:37:54 +0000 (09:37 -0700)]
am 59734490: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge

* commit '59734490f6a4f46308c39368a7b20f4fcf5e0e97':

11 years agoReconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Mon, 15 Jul 2013 16:32:49 +0000 (09:32 -0700)]
Reconcile with jb-mr2-zeroday-release - do not merge

Change-Id: Ib08f5c3c72f9d6eee571e7f9dff130abadffbbec

11 years agoUn@hide View.PRESSED_STATE_SET.
John Spurlock [Mon, 15 Jul 2013 16:18:04 +0000 (12:18 -0400)]
Un@hide View.PRESSED_STATE_SET.

Looks like an oversight.  The other state sets are public, and we
reference this one in the public docs.

Change-Id: I1c2d8bec3cb277ebfb55ccaacefab0cb38703177

11 years agoDocfixes in IBinder, Context, View, and Intent.
John Spurlock [Mon, 17 Jun 2013 14:32:46 +0000 (10:32 -0400)]
Docfixes in IBinder, Context, View, and Intent.

Fix links in @throws clauses, typos, redundant "returns"
and use @code for true + false in returns.

Change-Id: Ic3c4c75d6061732d997a386dc3232475c992c188