1991 Commits

Author SHA1 Message Date
Jack Palevich
bdb087c930 Add includes to enable host C++ tools to compile with GCC 4.4
Otherwise printf is undeclared. These files worked with earlier versions
of gcc because either cstdio or stdio.h was being included by some other
header file. But this was not guaranteed behavior, so with GCC 4.4 there
are errors. The fix is backwards compatible with earlier versions of GCC.

This change includes either <cstdio> or <stdio.h> whichever looks more
appropriate given the other headers included by the given source file.

Note, I'm using "GCC" to mean Gnu Compile Collection, as this problem is
specific to C++ source files. (Presumably a C++-specific header file
changed to no longer include cstdio.)
2009-06-24 19:01:27 -07:00
Android (Google) Code Review
5158cc5508 Merge change 5259 into donut
* changes:
  Adding TTS_QUEUE_PROCESSING_COMPLETED action to the list of Intents
2009-06-24 16:25:29 -07:00
Dianne Hackborn
9c8dd55a9d Fix bug 1829561 ("am profile" with bad filename kills process).
The am command is now the one that takes care of opening the target file,
handling the opened file descriptor to the process that will be profiled.
This allows you to send profile data to anywhere the shell can access, and
avoids any problems coming up from the target process trying to open the
file.
2009-06-24 16:23:14 -07:00
Android (Google) Code Review
0bc7b8490b Merge change 5248 into donut
* changes:
  Spell out the month names in the de_AT date format file.
2009-06-24 15:55:48 -07:00
Android (Google) Code Review
3e376a74b3 Merge change 5171 into donut
* changes:
  Track native processes and airplane mode.
2009-06-24 15:21:16 -07:00
Charles Chen
0477954a67 Adding TTS_QUEUE_PROCESSING_COMPLETED action to the list of Intents 2009-06-24 14:55:53 -07:00
Romain Guy
9560703839 Reverse the order in which RelativeLayout measures and positions children.
This fixes RelativeLayouts with height=wrap_content.
2009-06-24 14:38:34 -07:00
Android (Google) Code Review
ae7c980e8e Merge change 4556 into donut
* changes:
  Added info about mcc and mnc, plus other changes per http://b/1918247; rewrote "How Android find best match" section per rgreenwalt's comments and added flowchart.
2009-06-24 14:32:40 -07:00
Romain Guy
a0fd1d742d Fix NPE in RelativeLayout. 2009-06-24 14:25:43 -07:00
Eric Fischer
fed0bcfae3 Spell out the month names in the de_AT date format file.
It should be inherited from base de anyway, but all the others are
explicit about everything so be consistent.
2009-06-24 14:20:04 -07:00
Android (Google) Code Review
e181409ced Merge change 5240 into donut
* changes:
  Fixing the synth function so that queue processing continues.
2009-06-24 14:03:33 -07:00
Android (Google) Code Review
df65b60ce3 Merge change 5243 into donut
* changes:
  Only report "unknown metadata" once per restore helper
2009-06-24 13:58:52 -07:00
Christopher Tate
63bcb79dd4 Only report "unknown metadata" once per restore helper
Also removes the auto-free object, replacing it with direct memory manipulation.
2009-06-24 13:57:29 -07:00
Android (Google) Code Review
2cf6f5df59 Merge change 5238 into donut
* changes:
  Fix the weird anchoring of the search dropdown when pivoting into an app for search. (This started when we moved to system process, not sure why then, but we should be getting the dropdown to update at this point regardless.)
2009-06-24 13:54:28 -07:00
Charles Chen
7af9e196a3 Fixing the synth function so that queue processing continues. 2009-06-24 13:31:18 -07:00
Android (Google) Code Review
b28bf241c5 Merge change 5226 into donut
* changes:
  Fix bug in TTS service where the language setting was using the default language when the setting wasn't enforced, and vice-versa. Cleaning the log of the native TTS layer to use LOGV for verbose messages, rather than LOGI.
2009-06-24 13:15:05 -07:00
Mike LeBeau
35df87c631 Fix the weird anchoring of the search dropdown when pivoting into an
app for search. (This started when we moved to system process, not sure
why then, but we should be getting the dropdown to update at this point
regardless.)
2009-06-24 13:06:39 -07:00
Android (Google) Code Review
83f6b13018 Merge change 5237 into donut
* changes:
  Calling setItemChecked(p, true) twice would toggle the selection in ListView.
2009-06-24 12:59:15 -07:00
Romain Guy
8842f0bd5c Calling setItemChecked(p, true) twice would toggle the selection in ListView.
This fixes a bug in ListView#setItemChecked(int, boolean). Calling the method
twice would cause the checked state to be toggled instead of remaining the
same.
2009-06-24 12:53:54 -07:00
Android (Google) Code Review
a4335ee8a7 Merge change 5236 into donut
* changes:
  RelativeLayout was ignoring some dependencies.
2009-06-24 12:44:30 -07:00
Romain Guy
9fffa1eb40 RelativeLayout was ignoring some dependencies.
This change also improves the speed of RelativeLayout by eliminating calls to
findViewById() whenever possible.
2009-06-24 12:44:01 -07:00
Android (Google) Code Review
a93466f5ca Merge change 5220 into donut
* changes:
  Cleanup header file. Disallow copy of Camera object by making copy constructor and operator= private.
2009-06-24 12:26:02 -07:00
Katarina Stenstedt
1293b6b299 Added info about mcc and mnc, plus other changes per http://b/1918247; rewrote "How Android find best match" section per rgreenwalt's comments and added flowchart. 2009-06-24 11:45:53 -07:00
Jean-Michel Trivi
6a0e293c84 Fix bug in TTS service where the language setting was using the default language
when the setting wasn't enforced, and vice-versa.
Cleaning the log of the native TTS layer to use LOGV for verbose messages,
rather than LOGI.
2009-06-24 11:32:06 -07:00
Christopher Tate
54118adb37 Put back LOGP -> printf in the backup helper code 2009-06-24 11:20:51 -07:00
Android (Google) Code Review
0e034e5a9a Merge change 5162 into donut
* changes:
  Preserve file access mode when backing up / restoring files
2009-06-24 11:18:01 -07:00
Amith Yamasani
32dbefda71 Track native processes and airplane mode.
Turn signal strengths on/off when toggling airplane mode.
2009-06-24 11:17:36 -07:00
Dave Sparks
6f0602e84a Cleanup header file. Disallow copy of Camera object by making copy
constructor and operator= private.
2009-06-24 10:42:53 -07:00
Mike LeBeau
6f8e592347 Move to a single dropdown background for the search dialog. This one
is full-screen width but has rounded corners on the bottom so it doesn't
look crappy if the list is not full-screen height. This was already
being used for in-app search, so I just got rid of the old global search
background and use the in-app one for everything.

By removing the lines in SearchDialog, I'm causing it to rely on the
value specified for the dropdown background in
frameworks/base/core/res/res/layout/search_bar.xml.
2009-06-24 09:56:16 -07:00
Android (Google) Code Review
a2a60a2150 Merge change 5142 into donut
* changes:
  Fix NPE in GradientDrawable constructor
2009-06-24 09:48:07 -07:00
Android (Google) Code Review
eaa89f74c0 Merge change 5172 into donut
* changes:
  Remove deprecated callback function support. This is the last of a 3-part change to modify the camera to use a more streamlined callback interface. This change removes the old code. Bug 1884362
2009-06-24 09:10:05 -07:00
Android (Google) Code Review
3d7b8d1aa6 Merge change 5158 into donut
* changes:
  Use a ref-counted callback interface for Camera. This allows the camera service to hang onto the callback interface until all callbacks have been processed. This prevents problems where pending callbacks in binder worker threads are processed after the Java camera object and its associated native resources have been released. Bug 1884362
2009-06-24 08:34:34 -07:00
Dave Sparks
b1dffc48ca Remove deprecated callback function support.
This is the last of a 3-part change to modify the camera to use
a more streamlined callback interface. This change removes the
old code.
Bug 1884362
2009-06-24 07:58:27 -07:00
Dave Sparks
5e27115995 Use a ref-counted callback interface for Camera.
This allows the camera service to hang onto the callback interface
until all callbacks have been processed. This prevents problems
where pending callbacks in binder worker threads are processed
after the Java camera object and its associated native resources
have been released.
Bug 1884362
2009-06-24 07:58:27 -07:00
Bjorn Bringert
544450b4ee Fix NPE in SuggestionsAdapter when cursor is null.
Fixes http://b/issue?id=1940013
2009-06-24 15:16:30 +01:00
Bjorn Bringert
5f80605a0b Include user query in search intents
This change adds a new intent extra field USER_QUERY set in intents
launched by the search dialog. It contains the query as typed by
the user, unaffected by query jamming or search suggestions.

Fixes http://b/issue?id=1939592
2009-06-24 12:54:28 +01:00
Android (Google) Code Review
82a32714f0 Merge change 5190 into donut
* changes:
  Fix 1933269: startPreview failed.
2009-06-24 01:02:46 -07:00
Chih-Chung Chang
6fcba313e9 Fix 1933269: startPreview failed.
The reason we need this count is a new CameraService::connect() request may
come in while the previous Client's destructor has not been run or is still
running. If the last strong reference of the previous Client is gone but
destructor has not been run, we should not allow the new Client to be created
because we need to wait for the previous Client to tear down the hardware
first.
2009-06-24 15:50:57 +08:00
Android (Google) Code Review
5a42b08389 Merge change 5188 into donut
* changes:
  Fixes #1905761. Updates the height of ACTV's drop down whenever the IME changes.
2009-06-23 22:46:29 -07:00
Romain Guy
e29f064383 Fixes #1905761. Updates the height of ACTV's drop down whenever the IME changes. 2009-06-23 21:27:02 -07:00
Android (Google) Code Review
9efba9d29f Merge change 5176 into donut
* changes:
  Export the output to a text file and save to sdcard
2009-06-23 19:51:00 -07:00
Yu Shan Emily Lau
f16da13585 Export the output to a text file and save to sdcard 2009-06-23 19:36:43 -07:00
Android (Google) Code Review
4133751d51 Merge change 5129 into donut
* changes:
  Improve RelativeLayout by allowing dependencies to be declared in a random order.
2009-06-23 17:48:11 -07:00
Romain Guy
725015a9cd Improve RelativeLayout by allowing dependencies to be declared in a random
order.

The new implementation uses a dually topologically sorted graph of the child
views. The graph of dependencies is sorted once for the rules that impact the
horizontal axis (toLeftOf, alignRight, etc.) and once for the rules that impact
the vertical axis (above, below, etc.)

Doing so gives the ability to declare dependencies in any order, allows for
partial cycles in the graph (given view1 and view2, view1 can be toRightOf=view2
and view2 can be above=view1) and probably gets rid of most surprising behaviors
of RelativeLayout.
2009-06-23 17:45:44 -07:00
Christopher Tate
fbb92385f2 Preserve file access mode when backing up / restoring files
This change adds a fixed-size metadata block at the head of each file's content
entity.  The block is versioned, and fixed-size on the theory that it might be
nice to be able to recover the content (if not the full metadata) of the files
if we're ever confronted with data backed up some hypothetical future helper
that stored expanded metadata.

The net effect is that now on restore, we assign the same access mode to the
file that it originally had when backed up.

Also, some of the code was failing to properly free transient heap-based buffers
when it encountered errors.  This has been fixed with the addition of a tiny
stack-based object whose job it is to free() its designated pointer from its
destructor.
2009-06-23 17:40:44 -07:00
Roy West
3fbd946bac Edits to SD card notification strings to shorten them.
They are now very short and blunt. The real fix is to make
 them marquee or open another dialog or something as discussed in the bug.
 I hope these are short enough for Donut so all essential text is visible
in the notification.
Bug 1760196
2009-06-23 16:28:57 -07:00
Android (Google) Code Review
2a3cd3643f Merge change 5119 into donut
* changes:
  Adding support for pitch changes of the synthesized text in Text-To-Speech.
2009-06-23 15:50:43 -07:00
Phil Dubach
562bf17c6c Fix NPE in GradientDrawable constructor
The mColors member can be null, as can be seen in
GradientDrawable.setSolidColor() or the plain constructor. In that case, an NPE
will be thrown on attempts to derive a new GradientDrawable from the instance
using the private constructor GradientDrawable(GradientDrawable).

The problem also occurs when inflating a GradientDrawable from XML without
defining the start, center and end colors and then calling mutate() on the
instance.
2009-06-23 15:46:31 -07:00
Jean-Michel Trivi
2ea5349583 Adding support for pitch changes of the synthesized text in Text-To-Speech. 2009-06-23 15:26:57 -07:00
Satish Sampath
41282a3556 EnhancedGoogleSearch overrides GoogleSearch if present.
This is to fix bug http://b/issue?id=1929993. If user had GoogleSearch
earlier and that was the default, it will get overridden by
EnhancedGoogleSearch when the user installs the latter from the market.
2009-06-23 22:15:09 +01:00