113275 Commits

Author SHA1 Message Date
Svetoslav
c0e1ae0176 am facc08c7: Merge "Move PdfDocument to android.graphics.pdf" into klp-dev
* commit 'facc08c7757cef56da6d10e78ce99ef7949700e3':
  Move PdfDocument to android.graphics.pdf
2013-09-19 18:17:05 -07:00
Svetoslav
facc08c775 Merge "Move PdfDocument to android.graphics.pdf" into klp-dev 2013-09-20 01:14:02 +00:00
Craig Mautner
f15024c8c8 am 12946530: Merge "Only show launcher for the bottom activity in a task" into klp-dev
* commit '12946530cfba2024fa45c06b0060fe5c91252aab':
  Only show launcher for the bottom activity in a task
2013-09-19 17:53:38 -07:00
Craig Mautner
12946530cf Merge "Only show launcher for the bottom activity in a task" into klp-dev 2013-09-20 00:51:20 +00:00
David Braun
e28962fe8e am 3372cb26: Merge "Add config setting for default sms app." into klp-dev
* commit '3372cb2654e002e953e15d1b8513f090e9b6997d':
  Add config setting for default sms app.
2013-09-19 17:30:42 -07:00
David Braun
3372cb2654 Merge "Add config setting for default sms app." into klp-dev 2013-09-20 00:26:32 +00:00
Craig Mautner
f51b5588d7 Only show launcher for the bottom activity in a task
When transitioning from activity-over-launcher to task-over-launcher
ensureActivitiesVisibleLocked() was too aggressive in showing the
launcher. If there were any non-fullscreen activities in a task that
sits over the launcher then the launcher would be shown.

This fix adds a test to make sure the launcher will only be shown if
the bottommost activity in such a task is non-fullscreen.

Fixes bug 10840919.

Change-Id: I5dcd63be3fa2865ae38cbb921332937dfa4b5d47
2013-09-19 17:19:51 -07:00
Glenn Kasten
0fbb74847a am 9d53e30e: Merge "Workaround for slow AudioRecord destructor" into klp-dev
* commit '9d53e30e5eaf53cb0bd57319e02025ba7182bba3':
  Workaround for slow AudioRecord destructor
2013-09-19 17:13:51 -07:00
Svetoslav
6811f4e92c Move PdfDocument to android.graphics.pdf
1. Move PdfDocument to android.graphics.pdf.

2. Changed the PdfDocument as per API concil request.

3. Updated the documentation.

bug:10461180
bug:10552565
bug:10681585
bug:10552336

Change-Id: I08e15b34cf37bb064248c887e6f59808019cafe8
2013-09-19 17:12:47 -07:00
Glenn Kasten
9d53e30e5e Merge "Workaround for slow AudioRecord destructor" into klp-dev 2013-09-20 00:08:58 +00:00
Joe Fernandez
cda1500201 am a17309fd: am 41c3c2b6: am 6e3b21cc: am 72f65780: Merge "docs: Fix for SDK 22.2.1 Windows download checksum and size" into jb-mr2-docs
* commit 'a17309fd9ed705bb3a9d7adbf3b30eb71952dabc':
  docs: Fix for SDK 22.2.1 Windows download checksum and size
2013-09-19 16:53:09 -07:00
Joe Fernandez
a17309fd9e am 41c3c2b6: am 6e3b21cc: am 72f65780: Merge "docs: Fix for SDK 22.2.1 Windows download checksum and size" into jb-mr2-docs
* commit '41c3c2b687fa19d10c450a6d4b0b9f9a707a3854':
  docs: Fix for SDK 22.2.1 Windows download checksum and size
2013-09-19 16:50:16 -07:00
Joe Fernandez
41c3c2b687 am 6e3b21cc: am 72f65780: Merge "docs: Fix for SDK 22.2.1 Windows download checksum and size" into jb-mr2-docs
* commit '6e3b21cc83da2b227704b9a6b0cbad258ea5bd84':
  docs: Fix for SDK 22.2.1 Windows download checksum and size
2013-09-19 16:47:56 -07:00
Joe Fernandez
29ccf51fc7 am 27f525c4: am 354b4fef: am 0d8f0849: am 1d65500d: docs: Google APIs emulator 18 r3 - Platform Release Notes
* commit '27f525c422aa9bdc2b0c1dccb989989f6fc8dbe4':
  docs: Google APIs emulator 18 r3 - Platform Release Notes
2013-09-19 16:46:21 -07:00
Ed Heyl
3ece827017 am 812c4d73: Merge "fix typo" into klp-dev
* commit '812c4d737896fbf5dffa272f5d15863fb185d956':
  fix typo
2013-09-19 16:46:18 -07:00
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
2360ada939 am 57989c0e: Merge "Skip writing zeroes to java allocated memory." into klp-dev
* commit '57989c0e042c4f4e9362d875cf3df481243c0488':
  Skip writing zeroes to java allocated memory.
2013-09-19 16:21:49 -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
ab99b39d7d am ddc0a63d: Merge "fix emoji clipping in hw draw path" into klp-dev
* commit 'ddc0a63d8fce1f6b78e56040d09ee208336fc7a2':
  fix emoji clipping in hw draw path
2013-09-19 15:49:49 -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
638918a268 am 722b15e0: Merge "Fix a regression in pausing activity immediately on sleep" into klp-dev
* commit '722b15e00065bebfd711a34123a64b1c4a65d8f7':
  Fix a regression in pausing activity immediately on sleep
2013-09-19 15:46:19 -07: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
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