1886 Commits

Author SHA1 Message Date
Jaikumar Ganesh
8bc8ce44f7 Rework the property parsing code.
1. Fix and remove CodeDuplication TODO
2. Fix crash while unpairing.
3. For array properties, make it a bit more efficient by passing,
   lesser String objects from JNI.
4. Remove void pointer usage and use union to make code more readble.
2009-06-29 11:41:19 -07:00
Dianne Hackborn
afed82bca9 am 9c8dd55a: Fix bug 1829561 ("am profile" with bad filename kills process).
Merge commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516'

* commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516':
  Fix bug 1829561 ("am profile" with bad filename kills process).
2009-06-24 16:25:26 -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
465913c7ef am 0bc7b849: Merge change 5248 into donut
Merge commit '0bc7b8490b1575bb8266a3b0c6652d4f460fcda1'

* commit '0bc7b8490b1575bb8266a3b0c6652d4f460fcda1':
  Spell out the month names in the de_AT date format file.
2009-06-24 15:57:52 -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
4c74637833 am 3e376a74: Merge change 5171 into donut
Merge commit '3e376a74b3edd8c311e8d69ca5baf986c9da4a06'

* commit '3e376a74b3edd8c311e8d69ca5baf986c9da4a06':
  Track native processes and airplane mode.
2009-06-24 15:45:49 -07:00
Romain Guy
372cecd692 am 95607038: Reverse the order in which RelativeLayout measures and positions children.
Merge commit '956070383945db5f842ec05e507fd0233705738c'

* commit '956070383945db5f842ec05e507fd0233705738c':
  Reverse the order in which RelativeLayout measures and positions children.
2009-06-24 15:45:37 -07:00
Romain Guy
6b21d36293 am a0fd1d74: Fix NPE in RelativeLayout.
Merge commit 'a0fd1d742d8edaf6c7e79bdd16a9b0c44fda4503'

* commit 'a0fd1d742d8edaf6c7e79bdd16a9b0c44fda4503':
  Fix NPE in RelativeLayout.
2009-06-24 15:45:27 -07:00
Android (Google) Code Review
c317703f6b am 2cf6f5df: Merge change 5238 into donut
Merge commit '2cf6f5df59d466a729cc10b7688e17cd548a2fda'

* commit '2cf6f5df59d466a729cc10b7688e17cd548a2fda':
  Fix the weird anchoring of the search dropdown when pivoting into an
2009-06-24 15:45:17 -07:00
Android (Google) Code Review
bed64a2c42 am 83f6b130: Merge change 5237 into donut
Merge commit '83f6b130181982eb653621c2c4028feae36f1ffb'

* commit '83f6b130181982eb653621c2c4028feae36f1ffb':
  Calling setItemChecked(p, true) twice would toggle the selection in ListView.
2009-06-24 15:45:03 -07:00
Android (Google) Code Review
217b208ebd am a4335ee8: Merge change 5236 into donut
Merge commit 'a4335ee8a7ce9e45b1d3b7a0eb7aefa16b7024b1'

* commit 'a4335ee8a7ce9e45b1d3b7a0eb7aefa16b7024b1':
  RelativeLayout was ignoring some dependencies.
2009-06-24 15:44:51 -07:00
Mike LeBeau
f364595d44 am 6f8e5923: 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 r
Merge commit '6f8e592347d463044b7dd8999588840cec6e956e'

* commit '6f8e592347d463044b7dd8999588840cec6e956e':
  Move to a single dropdown background for the search dialog. This one
2009-06-24 15:33:31 -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
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
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
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
Android (Google) Code Review
2387208c9e am 3d7b8d1a: Merge change 5158 into donut
Merge commit '3d7b8d1aa6a362292f56defbe8fb2d5653f79282'

* commit '3d7b8d1aa6a362292f56defbe8fb2d5653f79282':
  Use a ref-counted callback interface for Camera.
2009-06-24 13:54:09 -07:00
Bjorn Bringert
ffcdad9faa am 544450b4: Fix NPE in SuggestionsAdapter when cursor is null.
Merge commit '544450b4eee175c78a1ca8647a3bfaca4aecf47a'

* commit '544450b4eee175c78a1ca8647a3bfaca4aecf47a':
  Fix NPE in SuggestionsAdapter when cursor is null.
2009-06-24 13:54:05 -07:00
Bjorn Bringert
43cc2bac7e am 5f80605a: Include user query in search intents
Merge commit '5f80605a0b866f34c74955e190909bd6ab5d992e'

* commit '5f80605a0b866f34c74955e190909bd6ab5d992e':
  Include user query in search intents
2009-06-24 13:53:55 -07:00
Romain Guy
2ac3412001 resolved conflicts for merge of 5a42b083 to master 2009-06-24 13:51:26 -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
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
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
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
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
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
Jacek Surazski
5a12373277 Add exception line number to ApplicationErrorReport 2009-06-24 16:12:42 +02: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
6b3ade68e0 am 4133751d: Merge change 5129 into donut
Merge commit '4133751d51a04172aa65e24658b4207ef764de91'

* commit '4133751d51a04172aa65e24658b4207ef764de91':
  Improve RelativeLayout by allowing dependencies to be declared in a random
2009-06-23 21:39:28 -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
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
Roy West
2fb4aa1135 am 3fbd946b: Edits to SD card notification strings to shorten them.
Merge commit '3fbd946bacdc202dc23c84887d2ad47402b5015b'

* commit '3fbd946bacdc202dc23c84887d2ad47402b5015b':
  Edits to SD card notification strings to shorten them.
2009-06-23 16:35:27 -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
8931802561 Merge change 5102
* changes:
  - clean up the sync settings names to:    (get|set)SyncAutomatically    (get|set)MasterSyncAutomatically - change SYNC_EXTRAS_FORCE to SYNC_EXTRAS_MANUAL to mace clear that   this overrides the .*SyncAutomatically settings - make ContentResolver methods that call the sync controls methods   in IContentService so that SDK users can use them - rename startSync to requestSync to reinforce the fact that a sync   is not immediately or always started when this method is called - add an Account parameter to all the sync settings and control methods - change the sync control methods to take a String authority rather than a Uri uri
2009-06-23 15:54:43 -07:00
Fred Quintana
ac9385ef31 - clean up the sync settings names to:
(get|set)SyncAutomatically
   (get|set)MasterSyncAutomatically
- change SYNC_EXTRAS_FORCE to SYNC_EXTRAS_MANUAL to mace clear that
  this overrides the .*SyncAutomatically settings
- make ContentResolver methods that call the sync controls methods
  in IContentService so that SDK users can use them
- rename startSync to requestSync to reinforce the fact that a sync
  is not immediately or always started when this method is called
- add an Account parameter to all the sync settings and control methods
- change the sync control methods to take a String authority rather than a Uri uri
2009-06-23 15:53:16 -07:00
Android (Google) Code Review
99d2370337 am 2a3cd364: Merge change 5119 into donut
Merge commit '2a3cd3643fcfa40fc447485a2db4b4333e10c652'

* commit '2a3cd3643fcfa40fc447485a2db4b4333e10c652':
  Adding support for pitch changes of the synthesized text in Text-To-Speech.
2009-06-23 15:52:29 -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
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
f86a58ff3d am 41282a35: EnhancedGoogleSearch overrides GoogleSearch if present.
Merge commit '41282a35568b51270440450c46bb31aa00e52caa'

* commit '41282a35568b51270440450c46bb31aa00e52caa':
  EnhancedGoogleSearch overrides GoogleSearch if present.
2009-06-23 14:18:21 -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
Dianne Hackborn
3618160a1a am 2e418428: Possibly fix an issue where we thought an app was always using GPS.
Merge commit '2e418428987132ea66533cbc05f9c526eb59519a'

* commit '2e418428987132ea66533cbc05f9c526eb59519a':
  Possibly fix an issue where we thought an app was always using GPS.
2009-06-23 13:08:40 -07:00
Karl Rosaen
03e53b4a66 am 61ab270c: Add missing \'break\'s in switch statement, fixing bug 1876430
Merge commit '61ab270c17094ef1373f54d8fb9ade6d287c3a60'

* commit '61ab270c17094ef1373f54d8fb9ade6d287c3a60':
  Add missing 'break's in switch statement, fixing bug 1876430
2009-06-23 13:08:34 -07:00
Bjorn Bringert
e85fbcb3cd am b0ae27f4: Store correct state in SearchDialog.onSaveInstanceState()
Merge commit 'b0ae27f4e10a9e5fe56b9ca549718051fe342bba'

* commit 'b0ae27f4e10a9e5fe56b9ca549718051fe342bba':
  Store correct state in SearchDialog.onSaveInstanceState()
2009-06-23 13:08:01 -07:00
Dianne Hackborn
2e41842898 Possibly fix an issue where we thought an app was always using GPS.
There may be some race conditions in the gps provider where it can cause a uid
to be double booked for gps usage and never released.  Address this by tweaking
some locking (so mLocation and the uid array are protected by a lock both when
reading and writing).  Also add some code to log a warning if someone tries to
note a particular uid multiple times, since the code will break in that case.

Finally, fix a problem in the battery stats where we weren't allowing a new Uid
structure to be created in many cases for calls coming in.
2009-06-23 12:51:06 -07:00
Karl Rosaen
61ab270c17 Add missing 'break's in switch statement, fixing bug 1876430 2009-06-23 11:10:25 -07:00