OSDN Git Service
Jeff Brown [Thu, 18 Jul 2013 23:38:40 +0000 (23:38 +0000)]
Merge "Fix build."
Jeff Brown [Thu, 18 Jul 2013 23:37:44 +0000 (16:37 -0700)]
Fix build.
Change-Id: Ie83f51ab4b8fddceda8d4f0ac24c532eab7458b8
Zhijun He [Thu, 18 Jul 2013 23:20:47 +0000 (23:20 +0000)]
Merge "Update camera metedata"
Dianne Hackborn [Thu, 18 Jul 2013 22:56:04 +0000 (22:56 +0000)]
Merge "Fix issue #
9913990: Background processes are being added to..."
Chris Craik [Thu, 18 Jul 2013 22:55:44 +0000 (22:55 +0000)]
Merge "Add reconfigure method to Bitmap"
Dianne Hackborn [Thu, 18 Jul 2013 22:39:51 +0000 (15:39 -0700)]
Fix issue #
9913990: Background processes are being added to...
...the *end* of the process LRU listB
Change-Id: I75c9477b81e10c4e517fd836304467fb3f7ed85e
Zhijun He [Wed, 17 Jul 2013 19:08:24 +0000 (12:08 -0700)]
Update camera metedata
Change-Id: Ib33da76659c7aa5364ec2c3abc3613cf23eb7c36
Jeff Brown [Thu, 18 Jul 2013 22:13:26 +0000 (22:13 +0000)]
Merge "Split framework jar."
Alan Viverette [Thu, 18 Jul 2013 22:06:21 +0000 (22:06 +0000)]
Merge "Set transient state for focus container in ListView"
Eino-Ville Talvala [Thu, 18 Jul 2013 18:51:33 +0000 (18:51 +0000)]
Merge "Camera: Remove camera gid from apps with camera permission."
Justin Koh [Thu, 18 Jul 2013 18:27:50 +0000 (18:27 +0000)]
Merge "Add FX_KEYPRESS_INVALID constant to AudioManager."
Dianne Hackborn [Thu, 18 Jul 2013 18:23:09 +0000 (18:23 +0000)]
Merge "Switch Bundle's implementation over to ArrayMap."
Dianne Hackborn [Thu, 18 Jul 2013 18:22:40 +0000 (18:22 +0000)]
Merge "Mmmmmmm... 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
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"
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
Amith Yamasani [Thu, 18 Jul 2013 18:00:53 +0000 (18:00 +0000)]
Merge "Ignore list item clicks if PreferenceActivity is paused."
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
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.
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.
Elliott Hughes [Thu, 18 Jul 2013 17:38:57 +0000 (17:38 +0000)]
Merge "Handle missing and invalid numeric values in XmlUtils."
Alan Viverette [Thu, 18 Jul 2013 17:37:15 +0000 (10:37 -0700)]
Set transient state for focus container in ListView
BUG:
9860185
Change-Id: I0c7035e5992c56110a0cc5c94aa778bbb999deea
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
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.
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.
Elliott Hughes [Thu, 18 Jul 2013 16:33:40 +0000 (16:33 +0000)]
Merge "Fix import after okhttp update."
Eric Laurent [Thu, 18 Jul 2013 16:12:59 +0000 (16:12 +0000)]
Merge "Fix 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
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
Jeff Brown [Thu, 18 Jul 2013 03:44:57 +0000 (20:44 -0700)]
Split framework jar.
Change-Id: Ia4bcae15c029fd0efe01dd4527fa3d5b5367b6c8
Geremy Condra [Thu, 18 Jul 2013 02:16:35 +0000 (02:16 +0000)]
Merge "Move markSocketAsUser to the top of IConnectivityManager.aidl"
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
Svetoslav [Wed, 17 Jul 2013 22:05:21 +0000 (22:05 +0000)]
Merge "Tweak the print APIs."
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
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
Chet Haase [Wed, 17 Jul 2013 21:50:27 +0000 (21:50 +0000)]
Merge "Changed name of recent hasLayout() method to isLaidOut()"
Chris Craik [Sat, 13 Jul 2013 02:35:52 +0000 (19:35 -0700)]
Add reconfigure method to Bitmap
bug:
9797004
Grants a means to reuse a bitmap's allocation for different
width/height/Config without going through
BitmapFactoryOptions.inBitmap
Change-Id: Ib62319f3bd96c451fc1636288adf06a8275b4e3d
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
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
Dianne Hackborn [Wed, 17 Jul 2013 00:53:32 +0000 (00:53 +0000)]
Merge "Make ArrayMap public! :)"
John Spurlock [Wed, 17 Jul 2013 00:20:35 +0000 (00:20 +0000)]
Merge "Fix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION."
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
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
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
Adam Powell [Wed, 17 Jul 2013 00:04:28 +0000 (00:04 +0000)]
Merge "Consider mScrollX when drawing the checkMarkDrawable"
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
Romain Guy [Tue, 16 Jul 2013 23:37:28 +0000 (23:37 +0000)]
Merge "Skip 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
Chris Craik [Tue, 16 Jul 2013 22:43:01 +0000 (22:43 +0000)]
Merge "Support stencil-based clipping for functors"
Jeff Brown [Tue, 16 Jul 2013 22:28:22 +0000 (22:28 +0000)]
Merge "Fix missing lock in power manager."
Romain Guy [Tue, 16 Jul 2013 22:26:59 +0000 (22:26 +0000)]
Merge "Fix crashes in setMatrix() and concat()"
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
Chet Haase [Tue, 16 Jul 2013 22:17:44 +0000 (22:17 +0000)]
Merge "Fix 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
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
Craig Mautner [Tue, 16 Jul 2013 21:45:32 +0000 (21:45 +0000)]
Merge "Remove iterators."
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
Eino-Ville Talvala [Tue, 16 Jul 2013 21:10:43 +0000 (21:10 +0000)]
Merge "Camera2: Remove/@hide non-public keys."
Svetoslav [Tue, 16 Jul 2013 20:49:44 +0000 (13:49 -0700)]
Add a clean spec rule due to renamed *.aidl
Change-Id: I87bfd02b8c4f3ceb43594a91ac8f501a867ccfe6
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
Svetoslav [Tue, 16 Jul 2013 20:43:41 +0000 (13:43 -0700)]
Fix the build - missed a renaming
Change-Id: I0e85723647c0e5a6f6374e119f0fbd43db477ee0
Chris Craik [Tue, 16 Jul 2013 20:27:18 +0000 (13:27 -0700)]
Support stencil-based clipping for functors
bug:
9070351
Change-Id: I1c54e1bea1b84b1619cce27b14f189b42cab7062
Jeff Sharkey [Tue, 16 Jul 2013 20:03:35 +0000 (20:03 +0000)]
Merge "Disable documents test UI."
Jeff Sharkey [Tue, 16 Jul 2013 20:01:57 +0000 (13:01 -0700)]
Disable documents test UI.
Change-Id: Iae8ef3e751a53a3f7df0a7c5bc666ec75e91d9e9
Svetoslav Ganov [Tue, 16 Jul 2013 20:01:34 +0000 (20:01 +0000)]
Merge "Refactoring 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
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>
Chris Wren [Tue, 16 Jul 2013 18:41:00 +0000 (18:41 +0000)]
Merge "unify variable naming scheme."
Adam Powell [Tue, 16 Jul 2013 18:37:35 +0000 (18:37 +0000)]
Merge "Fix 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
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
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
Dianne Hackborn [Tue, 16 Jul 2013 18:15:08 +0000 (18:15 +0000)]
Merge "Switch proc stats to use new process state constants."
Eino-Ville Talvala [Mon, 15 Jul 2013 22:19:22 +0000 (15:19 -0700)]
Camera2: Remove/@hide non-public keys.
Change-Id: I28fc5d6d41a444730061b6d2652f5cb75f97d56b
Glenn Kasten [Tue, 16 Jul 2013 17:54:26 +0000 (17:54 +0000)]
Merge "AudioTrack write() on a full buffer while paused returns 0"
Alan Viverette [Tue, 16 Jul 2013 14:41:39 +0000 (14:41 +0000)]
Merge "Add disabled state to FastScroller."
John Spurlock [Tue, 16 Jul 2013 13:37:18 +0000 (13:37 +0000)]
Merge "Un@hide View.PRESSED_STATE_SET."
Alon Albert [Tue, 16 Jul 2013 07:57:31 +0000 (07:57 +0000)]
Merge "Minor Formating Fix"
Rom Lemarchand [Tue, 16 Jul 2013 02:32:13 +0000 (02:32 +0000)]
Merge "Increase swappiness of processes when memcgroups are enabled"
Baligh Uddin [Tue, 16 Jul 2013 02:24:34 +0000 (02:24 +0000)]
Merge "Import translations. DO NOT MERGE"
Mathias Agopian [Tue, 16 Jul 2013 02:17:56 +0000 (02:17 +0000)]
Merge "always pass the BufferQueue explicitely to consumers"
Jeff Brown [Tue, 16 Jul 2013 01:49:52 +0000 (01:49 +0000)]
Merge "Completely remove skia dependency from libinput."
michaelwr [Tue, 16 Jul 2013 01:38:46 +0000 (01:38 +0000)]
Merge "Add a keycode to switch audio tracks (1/2)"
Jeff Brown [Tue, 16 Jul 2013 01:05:59 +0000 (18:05 -0700)]
Completely remove skia dependency from libinput.
Change-Id: I943d0e5b7bb6e922803e14b8c3a3564e82fc5e63
Alan Viverette [Tue, 16 Jul 2013 00:47:34 +0000 (17:47 -0700)]
Add disabled state to FastScroller.
BUG:
9759511
Change-Id: I555f501b33029665d94a493ee5cab5741c843328
Jeff Brown [Tue, 16 Jul 2013 00:44:19 +0000 (00:44 +0000)]
Merge "Fix PDK build."
Jeff Brown [Tue, 16 Jul 2013 00:31:32 +0000 (17:31 -0700)]
Fix PDK build.
Change-Id: Ide48ea30c2f7f24d20ab6fcdc47c806ac1f133ee
Svetoslav [Tue, 16 Jul 2013 00:24:10 +0000 (00:24 +0000)]
Merge "Fixing 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
Alan Viverette [Mon, 15 Jul 2013 23:56:24 +0000 (23:56 +0000)]
Merge "Revert "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
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
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
Jeff Brown [Fri, 12 Jul 2013 23:56:34 +0000 (16:56 -0700)]
Declare permission for accessing input flinger.
Change-Id: I2914b301b74e0d310a9e95e2d6fb5cb72d3e3703
Geremy Condra [Mon, 15 Jul 2013 21:57:18 +0000 (21:57 +0000)]
Merge "Support routing sockets as another user"
Geremy Condra [Mon, 15 Jul 2013 21:56:54 +0000 (21:56 +0000)]
Merge "Restricted profiles use Owner's VPN"
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
Igor Murashkin [Mon, 15 Jul 2013 20:45:35 +0000 (20:45 +0000)]
Merge "camera2: 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
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