113448 Commits

Author SHA1 Message Date
Amith Yamasani
722b15e000 Merge "Fix a regression in pausing activity immediately on sleep" into klp-dev 2013-09-19 22:42:50 +00:00
Victoria Lease
16c84069a4 fix emoji clipping in hw draw path
I guess we don't want to overwrite the last line in every RGBA glyph
with our one-line texture atlas spacer?

Bug: 10841207
Change-Id: Ief85ca58650c731e9d21dbf90942b7b44670abcc
2013-09-19 15:38:21 -07:00
Eino-Ville Talvala
f3c61c6657 am a84ca8a3: Merge "TextureView/GLES20Canvas: Support synchronous GLConsumers" into klp-dev
* commit 'a84ca8a3ca2525855e705c13666bc5da2eaf3260':
  TextureView/GLES20Canvas: Support synchronous GLConsumers
2013-09-19 14:59:54 -07:00
Eino-Ville Talvala
a84ca8a3ca Merge "TextureView/GLES20Canvas: Support synchronous GLConsumers" into klp-dev 2013-09-19 21:56:09 +00:00
Dianne Hackborn
20021b300f am 70817c47: Merge "Implement issue #10691475: Kill cached processes if about to..." into klp-dev
* commit '70817c479aa05778733d9afc809c311e8030b000':
  Implement issue #10691475: Kill cached processes if about to...
2013-09-19 14:49:35 -07:00
Dianne Hackborn
70817c479a Merge "Implement issue #10691475: Kill cached processes if about to..." into klp-dev 2013-09-19 21:44:20 +00:00
Dianne Hackborn
3bc8f78d7a Implement issue #10691475: Kill cached processes if about to...
...be uncached and too large

When the device is in a low RAM state, when we go to pull a cached
process out to use for some background operation, we can now kill
the current process if we consider its size to be too large.

Note that the current implementation for killing processes is to
just use the same killUnneededProcessLocked() method that we already
have for other things like too many cached processes.  This is a
little wrong here, though, because in this case we are at the
point where the caller is actually looking for a process to use.
This current code is not actually removing or cleaning up the
process, so we still need to return the now killed ProcessRecord
and let things fall out from there, which typically means the caller
trying to make an IPC on it and failing and falling into its "oh
no the process died unexpectedly" path.  All code using this
*should* be able to handle this correctly, anyway, since processes
really can be killed at any time.

At some point we may to make this implementation cleaner, where it
actually tears down the process right in the call and returns a
null ProcessRecord.  That is very dangerous however (we'd need to
go through all paths into this to make sure they are going to be
okay with process state changing on them like that), and I'm not
sure it is really worthwhile.  This intention is that killing
processes like this is unusual, due to processes being too large,
and anyway as I wrote all of our incoming code paths must already
be able to handle the process being killed at this point and one
could argue this is just another way to excercise those code paths.
Really, the main negative to this is that we will often have spam
in the log with exceptions about processes dying unexpectedly.
If that is the only issue, we could just add some conditions to
quiet that up at in this case.

We don't want to compute the size of the process each time we try
to evaluate it here (it takes 10s or ms to do so), so there is now
a new field associated with the process to give us the last pss
size we computed for it while it was in the cached state.

To be able to have better cached pss data when we now need it, the
timing for computing process pss has been tuned to use a much
shorter delay for the situations when the process has first switch
into a new state.  This may result in us having a fair amount more
pss data overall, which is good, as long as it doesn't cause us to
be computing pss excessively and burning cpu.

Procstats now also has new state to keep track of the number of
times each process has been killed by this new system, along with
the min, avg, max pss of all the times it has happened.  This has
slightly changed the checkin format to include this additional data
at the end of pkgkills/prockills lines.

Other changes here:

- Fixed a problem where GPU RAM was not being seen when dumping
  the full RAM details of a process.  This was because in that
  case the system would ask the process to compute its own MemInfo,
  which it returned, but the process doesn't have permission to
  access the files containing the GPU RAM data.  So now the system
  always computes the MemInfo and hands it to the app.

- Improved broadcast delays to not apply the delay if the next receiver
  of the broadcast is going to run in the same process as the last
  one.  A situation I was seeing was an application that had two
  receivers, one of which started a service; we are better off letting
  the second receiver run while the service is running.

- Changed the alarm manager's TIME_TICK broadcast to be a foreground
  broadcast.  This really should have been anyway (it is supposed to
  go out even minute, on the minute, very accurately, for UI elements
  to update), and is even more important now that we are doing more
  things to delay background broadcasts.

- Reworked how we maintain the LRU process list.  It is now divided
  into the two parts, the top always containing the processes holding
  activities.  This better matches the semantics we want (always try
  to keep those around modulated by the LRU order we interleave with
  other cached processes), and we now know whether a process is being
  moved on the LRU list because of an activity operation so we can
  only change the order of these activity processes when user operations
  happen.  Further, this just makes that common code path a lot simpler
  and gets rid of all the old complexity that doesn't make sense any
  more.

Change-Id: I04933ec3931b96db70b2b6ac109c071698e124eb
2013-09-19 14:35:53 -07:00
Amith Yamasani
ce15e157a6 Fix a regression in pausing activity immediately on sleep
At some point during refactoring of ActivityStack, the code to pause the current
activity got deleted. Added back that line of code. Activity will now pause
as soon as the screen is turned off, rather than after 5 seconds (sleep timeout).

Bug: 10632898

Change-Id: If3cc8708d692d29a13dbd8cfd9edda8883b38c2e
2013-09-19 14:30:47 -07:00
Igor Murashkin
a7dd66a470 am 9fa4b7af: Merge "Camera2Tests: create new directory for manual camera2 test apps" into klp-dev
* commit '9fa4b7af7a853f31479a2b302d618cd3d832e2f2':
  Camera2Tests: create new directory for manual camera2 test apps
2013-09-19 14:14:17 -07:00
Yuhao Zheng
2e9a426529 am 2ce33623: Merge "Remove STOPSHIP in WifiWatchdogStateMachine" into klp-dev
* commit '2ce3362385589df472aa8e221d01ca7d8118508d':
  Remove STOPSHIP in WifiWatchdogStateMachine
2013-09-19 14:14:14 -07:00
Igor Murashkin
9fa4b7af7a Merge "Camera2Tests: create new directory for manual camera2 test apps" into klp-dev 2013-09-19 21:11:57 +00:00
Yuhao Zheng
2ce3362385 Merge "Remove STOPSHIP in WifiWatchdogStateMachine" into klp-dev 2013-09-19 21:11:00 +00:00
Craig Mautner
9ea8bf154c am 7908f190: Merge "Debug for b/10689184." into klp-dev
* commit '7908f19015632bd593965b7a3ac9c685ab23d85f':
  Debug for b/10689184.
2013-09-19 14:10:41 -07:00
Craig Mautner
7908f19015 Merge "Debug for b/10689184." into klp-dev 2013-09-19 21:08:27 +00:00
Yuhao Zheng
fffc5a4ec9 Remove STOPSHIP in WifiWatchdogStateMachine
There used to be some STOPSHIP code in WifiWatchdogStateMachine for debug
purposes. We don't need them for the release.

Bug: 10841961
Change-Id: I501d62e9891ace52317e6c1d399b877175099a3c
2013-09-19 14:02:58 -07:00
petergng@google.com
a13e5dd3a9 am fe4643bb: Merge "Increasing visibility of pressed feedback for default ui widget assets" into klp-dev
* commit 'fe4643bb55afeb993714c79b132b4b40164e26ac':
  Increasing visibility of pressed feedback for default ui widget assets
2013-09-19 14:00:30 -07:00
petergng@google.com
fe4643bb55 Merge "Increasing visibility of pressed feedback for default ui widget assets" into klp-dev 2013-09-19 20:57:03 +00:00
Joe Fernandez
1d65500d6e docs: Google APIs emulator 18 r3 - Platform Release Notes
Change-Id: I5c11c8c480aa5dcd515f11ae5a4c40b28197a572
2013-09-19 13:55:43 -07:00
Eino-Ville Talvala
a3402c33c6 TextureView/GLES20Canvas: Support synchronous GLConsumers
Always update to the newest available frame from a GLConsumer.
Otherwise, with a synchronous queue, rendering can fall behind and
eventually deadlock with producer.

Bug: 10830400
Change-Id: I7f1d752c80ae5dac892a26d82e86806c27f5d955
2013-09-19 13:43:42 -07:00
Leon Scroggins III
1ffe727c06 Skip writing zeroes to java allocated memory.
If pixel memory was just allocated by Java, tell our decoders not
to write 0s, since the memory was initialized to 0. Likewise,
when drawing to a bitmap with memory just allocated by Java, do
not erase to 0.

Depends on a change to external/skia to add the new option on
image decoders:
https://googleplex-android-review.git.corp.google.com/362663

BUG:10016979
Change-Id: I9a3dc969870f8516e7d8495fe96d0a6b8225eda2
2013-09-19 16:22:57 -04:00
Craig Mautner
cd569b31d3 am e8a94224: Merge "Return tasks in correct order." into klp-dev
* commit 'e8a9422495d6af9fc68cf4e838a4a5f19177034b':
  Return tasks in correct order.
2013-09-19 13:05:43 -07:00
Craig Mautner
e8a9422495 Merge "Return tasks in correct order." into klp-dev 2013-09-19 20:03:24 +00:00
Craig Mautner
b3370cec71 Debug for b/10689184.
Change-Id: I67b7a4bd7fb902b0d0275af0665625593dc1af00
2013-09-19 12:55:19 -07:00
Christopher Tate
654aad2160 am 9c5cc571: Merge "Support for "not the home app you\'re looking for" metadata" into klp-dev
* commit '9c5cc571e5abf97a816fea2b04cd1e711e83564c':
  Support for "not the home app you're looking for" metadata
2013-09-19 12:48:19 -07:00
Christopher Tate
9c5cc571e5 Merge "Support for "not the home app you're looking for" metadata" into klp-dev 2013-09-19 19:46:20 +00:00
petergng@google.com
18697f4be7 Increasing visibility of pressed feedback for default ui widget assets
Change-Id: Ibfab7a6428b9a971a8624d3b8daeb40a503f7a1f
2013-09-19 12:36:51 -07:00
Christopher Tate
bd413f6c05 Support for "not the home app you're looking for" metadata
* Make sure that pm.getHomeActivities() returns the activity metadata
  as well, so that the caller can trace the reference

* Add a public canonical name for that metadata key

Bug 10749961

Change-Id: Ic4d0750d61001ffe5af180398f042afa30eea1ce
2013-09-19 12:31:49 -07:00
John Spurlock
cc8dc0139e am 0286f5e2: Merge "Bar gradients now 55% to 0% black." into klp-dev
* commit '0286f5e2786865e35781180c88e67a0f981e942d':
  Bar gradients now 55% to 0% black.
2013-09-19 12:29:00 -07:00
John Spurlock
0286f5e278 Merge "Bar gradients now 55% to 0% black." into klp-dev 2013-09-19 19:26:25 +00:00
Maggie Benthall
68881e4ed7 UX compliance for CA Cert warning tile in QuickSettings
Text not all uppercase
Reduce spacing between icon and text
Break the string in the middle.

Bug: 10785095
Change-Id: If85da55452b06d77d2ae1c40f3d63431c2ae2a9a
2013-09-19 15:25:43 -04:00
John Spurlock
0558a6f0a6 Bar gradients now 55% to 0% black.
Bug:10840205
Change-Id: If30e13ab4f61cd65b7fdf7e5e987191fec1f45f2
2013-09-19 15:22:17 -04:00
Amith Yamasani
80af4f7b09 am 7301bd96: Merge "Use a separate thread for services that do NTP lookup" into klp-dev
* commit '7301bd96c43f1a3604e88612c1a4214d57f88000':
  Use a separate thread for services that do NTP lookup
2013-09-19 12:21:12 -07:00
Amith Yamasani
7301bd96c4 Merge "Use a separate thread for services that do NTP lookup" into klp-dev 2013-09-19 19:17:51 +00:00
Jeff Sharkey
ba8129f1b1 am 18b94817: Merge "Also catch one more tablet layout NPE." into klp-dev
* commit '18b94817a452081f6756cd30be9414c496fa1ca7':
  Also catch one more tablet layout NPE.
2013-09-19 11:30:47 -07:00
Jeff Sharkey
18b94817a4 Merge "Also catch one more tablet layout NPE." into klp-dev 2013-09-19 18:27:51 +00:00
Jeff Sharkey
f8abf2e387 Also catch one more tablet layout NPE.
Bug: 10837208
Change-Id: I178110431221773658403319b2be7aff22adadc8
2013-09-19 11:25:56 -07:00
Jeff Sharkey
5de6787d1e am 7cb93f4e: Merge "Fix tablet layout and resources." into klp-dev
* commit '7cb93f4e227d603dadd065ea4173b6779279221e':
  Fix tablet layout and resources.
2013-09-19 11:24:09 -07:00
Jeff Sharkey
7cb93f4e22 Merge "Fix tablet layout and resources." into klp-dev 2013-09-19 18:22:12 +00:00
Craig Mautner
c0fd805234 Return tasks in correct order.
Fixed ActivityManager.getRunningTasks().

Fixes bug 10705790.

Change-Id: Ia3f66e592e08a87896a1ab59f980618ec5310dfe
2013-09-19 11:20:17 -07:00
Jeff Sharkey
0aaeaab0bf Fix tablet layout and resources.
Bug: 10837208
Change-Id: I563a3b66976b5b02cdb25e077bf0709bb6e66926
2013-09-19 11:19:39 -07:00
Amith Yamasani
450a16b33f Use a separate thread for services that do NTP lookup
Some services do periodic network time lookups and can wedge the other operations on
BackgroundThread and IO Thread, causing Watchdog to kill the runtime. So best to put
those handlers on separate threads.

Going forward, should convert NTP lookups to be async with callbacks.

Bug: 10646480
Change-Id: I8c7ba6052cb3539575712c2099a706b14ff60196
2013-09-19 10:57:16 -07:00
Derek Sollenberger
23b7bc1b44 am a2c6209f: Merge "Update SkTypeface::CreateFromName to handle NULL if familyName does not match" into klp-dev
* commit 'a2c6209f6120d300cd28d97ec868b5cabb3ee1a9':
  Update SkTypeface::CreateFromName to handle NULL if familyName does not match
2013-09-19 10:57:00 -07:00
Baligh Uddin
be64336477 am 25f9f364: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '25f9f364f58a1338f16c3a3e87a8810a65e87302':
  Import translations. DO NOT MERGE
2013-09-19 10:53:04 -07:00
Baligh Uddin
16c68d6296 am 07cf6487: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '07cf648761927913019baac374198c57b233b93e':
  Import translations. DO NOT MERGE
2013-09-19 10:53:02 -07:00
Geoffrey Borggaard
ce040924f7 am 5b05a115: Merge "Remove char limit." into klp-dev
* commit '5b05a1159b6a0dbd26e6d49c9f53b449e2d9b041':
  Remove char limit.
2013-09-19 10:52:59 -07:00
Baligh Uddin
26aa6e904c am 8074862d: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '8074862d9b30394a9715cbc4e33ac39ed6b89072':
  Import translations. DO NOT MERGE
2013-09-19 10:52:57 -07:00
Derek Sollenberger
a2c6209f61 Merge "Update SkTypeface::CreateFromName to handle NULL if familyName does not match" into klp-dev 2013-09-19 17:52:00 +00:00
Baligh Uddin
25f9f364f5 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-19 17:39:50 +00:00
Baligh Uddin
07cf648761 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-19 17:39:32 +00:00
Geoffrey Borggaard
5b05a1159b Merge "Remove char limit." into klp-dev 2013-09-19 17:39:22 +00:00