112296 Commits

Author SHA1 Message Date
Glenn Kasten
8d87d7ba11 Workaround for slow AudioRecord destructor
Bug: 10816117
Change-Id: If59028bc7dc7abb84e1e3642c721c2629653631f
2013-09-19 16:46:04 -07:00
Joe Fernandez
6e3b21cc83 am 72f65780: Merge "docs: Fix for SDK 22.2.1 Windows download checksum and size" into jb-mr2-docs
* commit '72f65780c77f9c0c306fcb53efeb62fbeba3899c':
  docs: Fix for SDK 22.2.1 Windows download checksum and size
2013-09-19 16:44:58 -07:00
Joe Fernandez
27f525c422 am 354b4fef: am 0d8f0849: am 1d65500d: docs: Google APIs emulator 18 r3 - Platform Release Notes
* commit '354b4fef036ef9e57d79bf70a6988be92a9813eb':
  docs: Google APIs emulator 18 r3 - Platform Release Notes
2013-09-19 16:44:44 -07:00
Ed Heyl
812c4d7378 Merge "fix typo" into klp-dev 2013-09-19 23:43:25 +00:00
Joe Fernandez
72f65780c7 Merge "docs: Fix for SDK 22.2.1 Windows download checksum and size" into jb-mr2-docs 2013-09-19 23:41:39 +00:00
Joe Fernandez
354b4fef03 am 0d8f0849: am 1d65500d: docs: Google APIs emulator 18 r3 - Platform Release Notes
* commit '0d8f0849ff842ed7ce16f183207ed7ebbc7bac7e':
  docs: Google APIs emulator 18 r3 - Platform Release Notes
2013-09-19 16:41:07 -07:00
Joe Fernandez
0d8f0849ff am 1d65500d: docs: Google APIs emulator 18 r3 - Platform Release Notes
* commit '1d65500d6e16e497774dbff3b5d94cfd5256d118':
  docs: Google APIs emulator 18 r3 - Platform Release Notes
2013-09-19 16:38:06 -07:00
Joe Fernandez
cedec4560e docs: Fix for SDK 22.2.1 Windows download checksum and size
external bug: http://b.android.com/60257

Change-Id: I399d21fd792c7c9a1bfac4402bc76fa23d45415b
2013-09-19 16:32:28 -07:00
Ed Heyl
6e65cb47dc fix typo
Change-Id: I97df15ea7d349e0224e1830d7327dde87e840a51
2013-09-19 16:25:57 -07:00
Leon Scroggins III
57989c0e04 Merge "Skip writing zeroes to java allocated memory." into klp-dev 2013-09-19 23:19:13 +00:00
David Braun
b2bae41b82 Add config setting for default sms app.
Different devices can have different default SMS apps.

Bug: 10818725 Allow OEM to specify or override a default SMS app (package)
Change-Id: I02cee9a3276ae39838cda181c9911041c81ea399
2013-09-19 16:13:04 -07:00
Victoria Lease
ddc0a63d8f Merge "fix emoji clipping in hw draw path" into klp-dev 2013-09-19 22:46:50 +00:00
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
a84ca8a3ca Merge "TextureView/GLES20Canvas: Support synchronous GLConsumers" into klp-dev 2013-09-19 21:56:09 +00: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
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
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
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
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
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
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
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
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
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
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
Baligh Uddin
8074862d9b Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-19 17:39:17 +00:00
Geoffrey Borggaard
8e7586fa0b Remove char limit.
This dialog box has plenty of room.
Bug: 10628262
Bug: 10618549
Bug: 10628357
Bug: 10618708

Change-Id: If1057fcbe1e40704958727e0a0337bdd6b8480a2
2013-09-19 13:28:59 -04:00
Svetoslav
81d4014c59 Hiding a method that was never meant to be public.
The hide javadoc annotation had a type, thus leaking the API.

bug:10552358

Change-Id: Iec4e203d0786efbe6afbd9b6995f11642935336c
2013-09-19 10:09:49 -07:00
John Spurlock
f95c9aa7e1 Merge "Don't disable animations until screen state is known." into klp-dev 2013-09-19 16:28:09 +00:00
John Spurlock
8c52042264 Don't disable animations until screen state is known.
Bug:10602521
Change-Id: I54a0c7a9dfd7d9c248854738414613d32d85476a
2013-09-19 12:23:35 -04:00