Commit Graph

513 Commits

Author SHA1 Message Date
Dianne Hackborn
68d881cf2d Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast
Tell the broadcast receiver whether it is getting an initial sticky value,
so it will be quiet about attempts to do ordered broadcast stuff.

Note that the original bug being reported was not actually a crash, just
an error log.  So all we are doing here is making the log quieter.

Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859
2009-10-05 15:52:32 -07:00
Bjorn Bringert
11f09bb5cd Don't reinflate search bar when dialog is already showing
Change https://android-git.corp.google.com/g/27729 started reinflating
the entire search bar every time the search source was changed, to get
around problems with bad state in AutoCompleteTextView
(http://b/issue?id=2132686). This had some side-effects if the
search dialog was already visible, as it is when selecting a
source in "More results" or when presing the search key to go to
QSB from in-app search.

This change changes the reinflation to only happen if the dialog is
not already showing.

Fixes:

http://b/issue?id=2166640
"After selecting More results from suggestions, the search box is no longer visible."

http://b/issue?id=2166675
"Calling QSB with the hardware key does not place focus in the search tab."

http://b/issue?id=2166712
"back key has unexpected behaviour in QSB after selecting "More results" from suggestions."

Change-Id: I8d48149c3e9ad97ec11c49ec7efb356f27dfe4f6
2009-10-05 21:00:53 +01:00
Bjorn Bringert
a6309c3072 On BACK in search, hide just IME if IME is fullscreen
Since a fullscreen IME covers the entire search dialog, there was
no discoverable way to get back to the search dialog.
Now, on BACK presses when the IME is fullscreen (e.g. in landscape
mode without hard keyboard), we dismiss only the IME.
A second BACK press will dismiss the search dialog.

Fixes http://b/issue?id=2159132

Change-Id: I8e5736d83d7c35936a718929017ea04c6214700b
2009-10-01 10:56:19 +01:00
Bjorn Bringert
b782a2f4f0 Remove globalSearch argument from triggerSearch()
API council says:

"In reviewing the new triggerSearch API, we are concerned that
applications could use the option to perform a global search to spam
the user with frequent searches.  We would like the global search
option to be removed for now (not just hidden, but removed from the
internal IPC API so that nobody can find this and abuse it).  The rest
of the API should be fine as long as it is restricted to local
searches."

Fixes http://b/editIssue?id=2158785

Change-Id: Ie69a9c0ab6373cc4427aab50606885bdede40585
2009-10-01 09:57:33 +01:00
Dianne Hackborn
e88846eeaf Semi-workaround for #2027266: app drawer showing up on the side of the screen
(when booted while docked)

This isn't really a fix, but we now have the activity report the configuration
it actually launched in, so the activity manager will later adjust it if
needed.  Should help us recover from hitting the race in this particular case.

Change-Id: I3bb83a48c2d692b4cb1822d8ae7d924cfa9187b2
2009-09-30 23:25:53 -07:00
Dianne Hackborn
29e4a3c566 Update from API review.
Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
2009-09-30 23:21:02 -07:00
Christopher Tate
436344ae12 Turn off most of the backup-related debug logging
The core logging in BackupManagerService and in the Google backup transport are
still enabled at this point.

Change-Id: I10abfa565bbd1097dd3631051b6aca163e4af33a
2009-09-30 17:07:37 -07:00
Suchi Amalapurapu
8550f25523 Check if rename of backed up file fails before persisting new changes.
If not these system services will end up with inconsistent settings files
when the device runs out of storage.
Delete mangled settings file in PackageManager if the current write fails
so that we don't end up overwriting the backed up version with the
mangled version
Include null check when retrieving fwd locked resource for an existing package
2009-09-30 15:36:29 -07:00
Android (Google) Code Review
935cbda0df Merge change I174d16a3 into eclair
* changes:
  Debugging for #2027266: app drawer showing up on the side
2009-09-30 17:36:07 -04:00
Android (Google) Code Review
d2c494d9be Merge change I8b2e000c into eclair
* changes:
  add class description and revise descriptions for get*Drawable and peek*Drawable methods for clarity. also fix some links.
2009-09-30 17:32:01 -04:00
Dianne Hackborn
dc6b635cfa Debugging for #2027266: app drawer showing up on the side
Nothing fixed, but this tells us what is going on.

Change-Id: I174d16a3864af2fa235e8cc7b1e74d32a375fb42
2009-09-30 14:28:16 -07:00
Scott Main
8b2e000c43 add class description and revise descriptions for
get*Drawable and peek*Drawable methods for clarity.
also fix some links.
2009-09-30 13:14:55 -07:00
Bryan Mawhinney
f36740b2e4 Recreate search dialog view each time it's shown.
This is slower, but less vulnerable to problems in TextField, for example.

Change-Id: I3bb6220f30d8231cedde97fc5e0c4db993660d27
2009-09-30 15:20:22 +01:00
Bjorn Bringert
86917dbb95 Unhide SearchManager.SUGGEST_PARAMETER_LIMIT
Both GlobalSearch and the search dialog now pass
SearchManager.SUGGEST_PARAMETER_LIMIT as a query parameter to all
suggestion sources. Exposing this allows suggestion sources
to return only the number of results that the client requires.

Fixes http://b/issue?id=2150992

Change-Id: I17f45d35e8f302b11812f4bb6fee40b31dc15707
2009-09-29 08:14:35 +01:00
Android (Google) Code Review
2dfa6edcd0 Merge change Ida50e915 into eclair
* changes:
  Pass limit=50 to all suggestion sources.
2009-09-28 15:47:56 -04:00
Bjorn Bringert
3fc7c67de1 Pass limit=50 to all suggestion sources.
Should mitigate http://b/issue?id=2149158
"Bad suggestions behavior within contacts app
search for 10k contact db"

Change-Id: Ida50e9157c3ce46fc7892ef09a67da9f4008e665
2009-09-28 20:32:13 +01:00
Bjorn Bringert
5b6b41241d Don't crash search when getKeyDispatcherState() is null
Fixes http://b/editIssue?id=2150672

Change-Id: I6fb87c1a59b4b3a945822932047a66c4116e6391
2009-09-28 19:37:29 +01:00
Dianne Hackborn
039c68e756 The touch screen is probably a feature.
Also extend the feature APIs a bit.

Change-Id: I99e932d7f4e61edb0e20f75c55e9831e4b59a14d
2009-09-26 16:39:23 -07:00
Android (Google) Code Review
05eeeacee6 Merge change 27178 into eclair
* changes:
  Fix issue #2136448: googleapps crashes while adding 2nd gmail account
2009-09-25 20:19:59 -04:00
Dianne Hackborn
c1e605eff4 Fix issue #2136448: googleapps crashes while adding 2nd gmail account
Change-Id: I1dc27959650643bf0c7fd0564719856d7b3efeb1
2009-09-25 17:18:15 -07:00
Android (Google) Code Review
48c84052e2 Merge change 27162 into eclair
* changes:
  Fix Activity.overridePendingTransition().
2009-09-25 19:11:43 -04:00
Dianne Hackborn
8b571a817c Fix Activity.overridePendingTransition().
Change-Id: I4ce995bd58efbbedbe4d0d1e9e0d0f4a8e261843
2009-09-25 16:09:43 -07:00
Fred Quintana
6ecaff1583 add a optional String to the key of notifications to allow users
to scope them
2009-09-25 16:01:22 -07:00
Android (Google) Code Review
82e62668d0 Merge change 27038 into eclair
* changes:
  Redraw search autocomplete dropdown after config change.
2009-09-25 10:43:10 -04:00
Bryan Mawhinney
29d52e120f Redraw search autocomplete dropdown after config change.
This ensures the dropdown is redrawn after changing
from landscape to portrait mode, for example.

Change-Id: I71f4425d1df789faf34d20dd30b3a5c64b5caec3
2009-09-25 15:35:21 +01:00
Bjorn Bringert
81d84c0cb2 am 6266e40a: Better JavaDoc for Activity.onSearchRequested().
Merge commit '6266e40a754d82afa717ef068898c8418a0bb5c3' into eclair

* commit '6266e40a754d82afa717ef068898c8418a0bb5c3':
  Better JavaDoc for Activity.onSearchRequested().
2009-09-25 06:45:02 -07:00
Bjorn Bringert
6266e40a75 Better JavaDoc for Activity.onSearchRequested().
Fixes http://b/issue?id=1248721
2009-09-25 14:25:41 +01:00
Bryan Mawhinney
42b7af57c5 Dismiss QSB dialog when doing an in-app global search.
This prevents QSB from obscuring the results when they are handled
by the current application.

Bug: 2141208
Change-Id: I6f848aa2003c75b97effe1d3d2af5316ad4fbf92
2009-09-25 11:09:55 +01:00
Dianne Hackborn
3b3e145d3c A variety of work on animations.
- The lock screen now fades in and out.
- Fixed a bug where we would accidentally freeze the screen when switching
  to an activity with a different orientation than the current (but
  the screen itself is in the current orientation).  This would mess up
  the animations on the car dock.
- New API to force a particular animation for an activity transition
  (untested).
- New wallpaper animations.
- Resources now uses the next API version when in a development build,
  to help applications being developed against such builds.

Change-Id: I2d9998f8400967ff09a04d693dc4ce55f0dbef5b
2009-09-25 00:48:02 -07:00
Mike Cleron
432b713c94 Fix bug 2129190
The context used by the status bar (i.e., the system context) was
not properly initialized to have the right ApplicationInfo inside
its PackageInfo. This eventually caused it to believe that it
was running at 160dpi.

Kudos to Dianne for figuring this out.
2009-09-24 21:41:19 -07:00
Android (Google) Code Review
dbce92ab0b Merge change 26587 into eclair
* changes:
  Back button in search always goes back or closes search
2009-09-23 11:20:03 -04:00
Bjorn Bringert
077357ccf0 Back button in search always goes back or closes search
Before, the back button had different behavior depending on
which part of the search dialog had focus, and depending on
whether there were more suggestions than could fit in the
visible space in the drop-down.

This change makes the behavior of the BACK button more
predictable, by always going back to QSB when pivoted
into a source, and closing the search dialog when in
QSB.

Fixes http://b/issue?id=2126526
"One tap of back button when entering text to search
should always take you back to previous page"

Change-Id: I7b3553122eaa1a5d87ac966d5ab2a9f432063cc9
2009-09-23 14:59:02 +01:00
Dianne Hackborn
fed534ee5d Fix bug where onStartCommand() was never called with a null intent.
Also clean up some of the service java docs.

Change-Id: I40e7d713e2393f7ee1db9822da8f07fb6304a9e4
2009-09-23 00:42:12 -07:00
Android (Google) Code Review
3de07024c8 Merge change 26456 into eclair
* changes:
  - make an AccountManager per context, not one per process - enhance the comment for addOnAccountsUpdatedListener()
2009-09-22 23:20:25 -04:00
Daniel Sandler
465ccb8a40 Add support for thumbnails to WallpaperInfo.
Clean up the Gallery to show thumbnails appropriately; still using FPO artwork
for wallpapers without thumbnails.

This change introduces a new "thumbnail" attribute to the API (used
in wallpaper metadata to point to the thumbnail drawable resource).
2009-09-22 20:56:10 -04:00
Fred Quintana
e00a31155b - make an AccountManager per context, not one per process
- enhance the comment for addOnAccountsUpdatedListener()
2009-09-22 15:13:30 -07:00
Dianne Hackborn
9bfb707597 Various fixes and improvements to window, activity.
- New meta-data you can add to a dock activity to have it launched by the
  home key when the device is in that dock.

- Fix a deadlock involving ActivityThread's internal content provider lock.

- New window flag to have a non-secure keyguard entirely dismissed when a
  window is displayed.

- New WindowManagerPolicy APIs to allow the policy to tell the system when
  a change it makes during layout may cause the wall paper or
  overall configuration to change.

- Fix a bug where an application token removed while one of its windows is
  animating could cause the animating window to get stuck on screen.

Change-Id: I6d33fd39edd796bb9bdfd9dd7e077b84ca62ea08
2009-09-22 13:39:34 -07:00
Bjorn Bringert
442da48b24 Use FLAG_ACTIVITY_CLEAR_TOP when launching search suggestions.
Fixes http://b/issue?id=2118143
"Sometimes clicking a contact suggestion opens the
wrong activity in Contacts"

Change-Id: Ie4c150e91e455949e9f17245920850cfe7e6599e
2009-09-22 14:43:45 +01:00
Android (Google) Code Review
976e363fe8 Merge change 26260 into eclair
* changes:
  Add search_mode flag to intents launched by QSB suggestions
2009-09-22 05:54:31 -04:00
Dianne Hackborn
bfe319e06a Turn animations on by default.
Add API to skip the animation for a particular start activity, so that
a latter better one can be used.

Fix Theme.NoDisplay to actually work.

Fiddle with various animations: don't do a different animation for task
switching, try a scale animation for switching in/out of the wallpaper.

Adjust the animation duration so that at normal speed we have something
more like the slower animation option (so slow is now the default).

Change-Id: Ieba9f3db0bd9a762a19b327a3ecccbc7b547893d
2009-09-21 17:26:41 -07:00
Bjorn Bringert
be5b73c592 Add search_mode flag to intents launched by QSB suggestions
This lets recipents determine whether an intent was launched
by a global search suggestion. This will for example
be used when deciding how to log clicks on web search suggestions.

Needed for http://b/issue?id=2097469

Change-Id: Ifc25ec3477a63be8bad094951bfffa7a5e703e7c
2009-09-21 23:05:23 +01:00
Bjorn Bringert
2f2daf8ed4 Fix search intent component bug DO NOT MERGE
This is the Donut version of the fix for http://b/issue?id=2130474
"Shortcuts created by pivoted-in search do not
have intent_component_name set"

This fix is already in Eclair, so it should not be automerged.
2009-09-21 20:28:28 +01:00
Bjorn Bringert
6d318b4330 Use icon URI as icon cache key in search dialog
Fixes http://b/issue?id=2131078
"Incorrect icons shown in in-app search"

Change-Id: I88282d6323333796e66ca704390ad16016b846eb
2009-09-21 15:43:11 +01:00
Bjorn Bringert
5417f09c14 Send action key and msg with GlobalSearch clicks
Needed for QSB logging, http://b/issue?id=2097469

Change-Id: I817e5b26c9739ab05bd873675854478ce601d234
2009-09-21 11:52:24 +01:00
Bryan Mawhinney
3c5767d8fe Track search KeyEvents in SearchDialog.
This fixes the bug preventing switching between global and in-app search,
and also enables long press for voice search (I think).

Bug: 2127442
Change-Id: I045a0f7b2c797c016191709a3983b6b33fc6186e
2009-09-21 11:04:51 +01:00
Bjorn Bringert
0e62e2df36 Set intent_component of in-app shortcuts to app itself
Fixes http://b/issue?id=2130474
"Shortcuts created by pivoted-in search do not
have intent_component_name set"

Change-Id: I702fe39348b762393ed08ce9905771eb892bf782
2009-09-21 06:47:57 +01:00
Dianne Hackborn
efa199f016 Add API to send an ordered sticky broadcast.
Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
2009-09-19 12:05:25 -07:00
Bryan Mawhinney
dfcbc046d7 Reserve space for the searchbox spinner, even when stopped.
Make the searchbox spinner invisible (transparent) when it's not active.  This prevents the size of the text field from varying depending on whether the spinner is spinning or not, which can cause an annoying flicker.

Bug: 2084293
Change-Id: Idd63a296d1f07c5bd47884040f21e4880038f424
2009-09-18 11:30:36 +01:00
Dianne Hackborn
ae22c05b91 Try to fix docs build.
Change-Id: I331e128fa95c3bc0b8bc4ab2537cc2ea92e310e7
2009-09-17 18:46:22 -07:00
Dianne Hackborn
fa82f22f1d Fix issue #2093608: Calendar widget takes a few seconds to launch
Avert your eyes!

The key change here is that RemoteViews can now call a Context API to
start its pending intent, which inside of the activity manager we can
use to determine to cancel the timeout delay for external entities
to disrupt the home screen.

Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
2009-09-17 18:01:35 -07:00