1261 Commits

Author SHA1 Message Date
Tom Taylor
f748f22f4e Add more logging to track down a monkey bug
The monkey has found a situation where getting or creating a thread id is
failing. Add more logging code to help track down the bug.
2009-07-14 14:20:43 -07:00
Dianne Hackborn
b06ea70653 Add reporting of activity movement for search manager.
This adds a new API with the activity manager to find out about movement between
activities.  For my sanity, the old IActivityWatcher is now renamed to
IActivityController, and the new activity movement interface is named
IActivityWatcher.

This changes the search manager itself to use the new API to manage its state.
Note that there are still problems when going back to the search dialog after
it was hidden -- the suggestions window no longer appears until you explicitly
dismiss and re-show it.
2009-07-14 11:37:11 -07:00
Android (Google) Code Review
e8b88ac15c Merge change 7097 into donut
* changes:
  Fix to use DP instead of pixels for Thumb drawable size.
2009-07-14 10:44:14 -07:00
Android (Google) Code Review
9181bc9ab7 Merge change 7079 into donut
* changes:
  Cleanup of unused enums
2009-07-14 10:41:14 -07:00
Mitsuru Oshima
a5e4415256 Fix to use DP instead of pixels for Thumb drawable size. 2009-07-14 10:37:22 -07:00
Dave Sparks
8978bd0174 Cleanup of unused enums 2009-07-14 08:02:37 -07:00
Bjorn Bringert
c1d82e68eb Use activity icon when search suggestion icon is missing
New left-hand side icon fallback logic in search dialog:

1. If the search dialog gets no icon column, it shows no
   icon (like before). This would handle the case of in-app
   search where the provider does not include icons.
2. If the icon column is empty, or there is an error converting
   the icon id or URI to a drawable, the search dialog identifies
   the suggestion source by looking at the
   SUGGEST_COLUMN_INTENT_COMPONENT_NAME.
3. If SUGGEST_COLUMN_INTENT_COMPONENT_NAME is empty or not set,
   the current searchable activity is considered the suggestion source.
4. Try to get the activity icon of the suggestion source.
5. Fall back to the application icon of the suggestion source
   if there is no activity icon.
6. Fall back to some generic icon if there is no application icon.

Fixes http://b/issue?id=1905757
2009-07-14 13:52:01 +01:00
Android (Google) Code Review
8af55ca4dd Merge change 7008 into donut
* changes:
  Adding Utterance ID to the TtsService.
2009-07-13 18:25:01 -07:00
Android (Google) Code Review
3139297f1e Merge change 7035 into donut
* changes:
  Fixes #1972593. Updates AppSecurityPermissions styles in Theme.Light
2009-07-13 17:52:59 -07:00
Romain Guy
17606f8852 Fixes #1972593. Updates AppSecurityPermissions styles in Theme.Light 2009-07-13 17:52:19 -07:00
Charles Chen
78c9d0d2c5 Adding Utterance ID to the TtsService. 2009-07-13 17:46:19 -07:00
Eric Fischer
0560209bcd Import new translations 2009-07-13 15:42:14 -07:00
Dave Sparks
c4ca420625 Fix build 2009-07-13 09:42:43 -07:00
Android (Google) Code Review
6cdc4f9c00 Merge change 6880 into donut
* changes:
  Fixing TTS breakage.
2009-07-13 09:25:20 -07:00
Joe Onorato
186b3eaedd Make the backup manager do nothing when backup is turned off. 2009-07-13 09:08:59 -07:00
Android (Google) Code Review
5c04841ee3 Merge change 6912 into donut
* changes:
  JavaDoc for SearchableInfo.getActivityMetaData()
2009-07-13 09:04:25 -07:00
Android (Google) Code Review
8ceba810d5 Merge change 6871 into donut
* changes:
  Use SetByteArrayRegion to minimize copy overhead and JNI calls.
2009-07-13 09:04:01 -07:00
Bjorn Bringert
13b24b7904 JavaDoc for SearchableInfo.getActivityMetaData()
See http://b/editIssue?id=1968025
2009-07-13 15:29:59 +01:00
Bjorn Bringert
9bc75cb9c2 Initialize searchmanager on demand
The initialization of SearchManagerService is delayed, which caused
problems when other services (e.g. GlobalSearch) start up.
This change makes the SearchManagerService components
initialize when they are first needed, or when the server thread
is done with its other processing, whichever comes first.

Fixes http://b/issue?id=1970975
2009-07-13 13:23:23 +01:00
Mitsuru Oshima
ba3ba57921 * Use cached resources for widgets 2009-07-11 21:50:16 -07:00
Charles Chen
630a8de44f Fixing TTS breakage. 2009-07-10 20:58:15 -07:00
Dave Sparks
a95f495f75 Use SetByteArrayRegion to minimize copy overhead and JNI calls. 2009-07-10 18:13:36 -07:00
Android (Google) Code Review
cf29e11612 Merge change 6867 into donut
* changes:
  CLOSE_SYSTEM_DIALOGS can't be protected.
2009-07-10 17:38:29 -07:00
Dianne Hackborn
4554f30c83 CLOSE_SYSTEM_DIALOGS can't be protected. 2009-07-10 17:30:50 -07:00
Android (Google) Code Review
086bd7fed1 Merge change 6846 into donut
* changes:
  Avoid memcpy's by using GetPrimitiveArrayCritical.
2009-07-10 16:55:24 -07:00
Android (Google) Code Review
1c9fb40cb6 Merge change 6845 into donut
* changes:
  Use MeasureSpec.getWidth instead of default display in lock pattern widget.
2009-07-10 16:28:03 -07:00
Dave Sparks
75acd89648 Avoid memcpy's by using GetPrimitiveArrayCritical. 2009-07-10 16:10:49 -07:00
Karl Rosaen
6a109b4874 Use MeasureSpec.getWidth instead of default display in lock pattern widget. 2009-07-10 16:10:10 -07:00
Android (Google) Code Review
2d7910555a Merge change 6820 into donut
* changes:
  Fixed NPE bugs in Uri. Fixes internal issue #1724719. Modified getQueryParameter() to use the encoded query string. Fixes internal issue #1749094.
2009-07-10 15:12:57 -07:00
Bob Lee
5621f0d928 Fixed NPE bugs in Uri. Fixes internal issue #1724719.
Modified getQueryParameter() to use the encoded query string. Fixes internal issue #1749094.
2009-07-10 14:54:08 -07:00
Android (Google) Code Review
7cd43797ae Merge change 6806 into donut
* changes:
  Add CLDR data files for Norway and Croatia.
2009-07-10 14:42:41 -07:00
Satish Sampath
b1665f2e15 Fix regression in handling the 'Go' button
This was introduced in CL https://android-git.corp.google.com/g/6460.
Bug: http://b/issue?id=1970776
2009-07-10 22:35:48 +01:00
Android (Google) Code Review
a11fe86d77 Merge change 6813 into donut
* changes:
  Fixes #1972421. Prevents crash in ScrollView/HorizontalScrollView.
2009-07-10 14:12:17 -07:00
Romain Guy
ef0e9ae0dd Fixes #1972421. Prevents crash in ScrollView/HorizontalScrollView.
Add several checks to make sure there's at least one child.
2009-07-10 14:11:26 -07:00
Android (Google) Code Review
59d299ce8d Merge change 6789 into donut
* changes:
  Add support in TextToSpeech for an audio stream type param and utterance ID specified as a hashmap param in the synthesis calls. Fix a bug where the cached parameters were not passed to the service when synthesizing to a file.
2009-07-10 13:54:58 -07:00
Eric Fischer
bd5a8b2adc Add CLDR data files for Norway and Croatia.
The locale picker now wants the locale to always have a country, not just
a language, so having something for the country is necessary to let these
be chosen.
2009-07-10 13:54:02 -07:00
Jean-Michel Trivi
a981013aa7 Add support in TextToSpeech for an audio stream type param and utterance
ID specified as a hashmap param in the synthesis calls.
Fix a bug where the cached parameters were not passed to the service
when synthesizing to a file.
2009-07-10 13:45:47 -07:00
Android (Google) Code Review
889c2d37f7 Merge change 6718 into donut
* changes:
  Fix bug #1873249i: Apps can DoS/brick device
2009-07-10 13:42:51 -07:00
Android (Google) Code Review
ad94a98364 Merge change 6801 into donut
* changes:
  Uri.EMPTY.toString() was returning null due to an initialization order bug. Fixes internal issue #1957015.
2009-07-10 13:40:02 -07:00
Bob Lee
b8b8f044f4 Uri.EMPTY.toString() was returning null due to an initialization order bug. Fixes internal issue #1957015. 2009-07-10 13:34:37 -07:00
Android (Google) Code Review
38645ee6d6 Merge change 6759 into donut
* changes:
  Do not merge
2009-07-10 09:57:24 -07:00
Andrei Popescu
15d21453b0 Do not merge
Install an observer for the Location system setting and
move the Gears permission check to a slightly earlier time.
Move the logic into a separate manager class.

Also delete some whitespace and fix some style issues.
2009-07-10 17:54:32 +01:00
Android (Google) Code Review
d2cad2951f Merge change 6734 into donut
* changes:
  Adding tagging to utterances to track which app said what.
2009-07-10 09:47:37 -07:00
Charles Chen
a9c5e4bf26 Adding tagging to utterances to track which app said what. 2009-07-10 09:43:03 -07:00
Bjorn Bringert
0e01ea41b2 Deprecate DialogInterface methods in SearchManager
android.app.SearchManager implements
DialogInterface.OnDismissListener and DialogInterface.OnCancelListener
and thus exposes the methods onCancel(DialogInterface dialog) and
onDismiss(DialogInterface dialog). This was used by the SearchManager
to register itself as a listener on the search dialog, but is no
longer used.

This was an implementation detail that leaked into the public
API. Removing them would change the API, so they are deprecated instead.

Fixes http://b/issue?id=1962203
2009-07-10 07:16:47 +01:00
Dianne Hackborn
854060af30 Fix bug #1873249i: Apps can DoS/brick device
This is the problem where various things are listening for broadcasts
(such as battery status, PIN/PUK/Network) that an application can send
to cause harm to the system.

Solving this is tricky because many of these broadcasts are sticky,
and I have never figured out how to do permissions with sticky
broadcasts in a sane way.  So instead, I am going to punt on the
general problem and just brute force it:

There is new a way for system components to declare specific
broadcast actions to be protected, which means that only the system
and the phone can send them.  This is good enough for now.  None
of it is exposed in the public API so we can make something a little
less stupid in the future if we ever need to.
2009-07-09 18:14:31 -07:00
Android (Google) Code Review
5c2e622c9a Merge change 6700 into donut
* changes:
  do not merge - add a big flag to turn off backup
2009-07-09 16:36:31 -07:00
Android (Google) Code Review
dded214eb9 Merge change 6689 into donut
* changes:
  Don't crash the app when restore agent bringup throws
2009-07-09 15:58:39 -07:00
Joe Onorato
baea01b92f do not merge - add a big flag to turn off backup 2009-07-09 15:53:18 -07:00
Android (Google) Code Review
8440ecce81 Merge change 6668 into donut
* changes:
  Check if a searchable is null before adding it to the list of searchables for web search. If getActivityMetaData returned null for a web search searchable, previously, this null would get added to the list of searchables for web search, which was causing GlobalSearch's SearchSettings to crash with an NPE (which I've guarded against in change 6602).
2009-07-09 15:45:22 -07:00