Handle zero-query case for global search.

When a zero-query request is made, return applications with a non-zero
launch count. This is used to show often used applications in QSB on
first ever launch.

Bug: 4369681
Change-Id: Ie4820e5bd278b6f9607acbada8367a1f9f2cb320
Import revised translations.  DO NOT MERGE

Change-Id: I0e16e12ce1e15d193c0c12e2052cfc5e9e1bf94a
am 58fd9eb6: Import revised translations.  DO NOT MERGE

* commit '58fd9eb6f0cb9d9f56944ab9118ea2b75530b30f':
  Import revised translations.  DO NOT MERGE
am b27db3b5: am 58fd9eb6: Import revised translations.  DO NOT MERGE

* commit 'b27db3b5b9a71abdbe586683ecca1dd3d31d8908':
  Import revised translations.  DO NOT MERGE
am d3b82c9e: (-s ours) am b27db3b5: am 58fd9eb6: Import revised translations.  DO NOT MERGE

* commit 'd3b82c9e89bed0deeb47554d73f114f077a6730b':
  Import revised translations.  DO NOT MERGE
Import revised translations.

Change-Id: Ic78cb1954d2630627fada6e105d5e1b41e5a3144
Reconcile with gingerbread-release

Change-Id: Ifd688fbee76fa395079e8a2386cec18f26868a7f
Import revised translations.

Change-Id: Ieccd3c8cf02b9543ca249dd471ae4ee0995ef273
Import revised translations.  DO NOT MERGE

Change-Id: I9f99c0a144a12f4dcabf069fb53593f5aa538c14
am 057688cc: Import revised translations.  DO NOT MERGE

* commit '057688cc083a0d67573b59f1bb786f57f5e52045':
  Import revised translations.  DO NOT MERGE
am 057a40c5: am 057688cc: Import revised translations.  DO NOT MERGE

* commit '057a40c5ff8a2720e466668e2bf0d812ad1cb0ec':
  Import revised translations.  DO NOT MERGE
am 4a33725f: (-s ours) am 057a40c5: am 057688cc: Import revised translations.  DO NOT MERGE

* commit '4a33725fade9b5dea217a0c19839eeb549c2d527':
  Import revised translations.  DO NOT MERGE
Import revised translations.

Change-Id: I56458af04e4396b56465b2899d65c91c6cb0d91a
Return the last access time of apps to QSB.

When we get a request for results from global search, results will be
sorted by last access time, and the new field
SearchManager.SUGGEST_COLUMN_LAST_ACCESS_HINT will be set.

The launch times are no longer updated every 6 hours. Now we
update the in-memory database when the request from QSB sets a
"refresh" parameter.

DEPENDS ON: I80e9b127410ed0d528515d2256787f30a953e9b0

Change-Id: Ie45e4fa52ffe43d4e7f3fa06221f3c9e039f2bb1
Ignore disabled activities in Application Provider.

Call the package manager to check whether an app is disabled.

Bug: 5029707
Change-Id: Ic338e990ae78dfde1ee6112d5fd69129c74fc50c
Catch disabled packages in ApplicationsProvider.

ApplicationsProvider overrides PackageMonitor.onSomePackagesChanged
to watch for package changes. However, this isn't called when an
application is disabled

When GooglePartnerServices disables the "Books" app because the phone is
outside the US, ApplicationsProvider doesn't see this, so QSB still
shows the Books app. Override onPackageModified as well, and post an
update for that package, so we'll remove the app from the DB.

Bug: 5029707
Change-Id: I48f5a608f174b56544f52e379c80db309d2dff47
Handle just-removed pkgs in ApplicationsProvider.

ApplicationsProvider queries whether apps are enabled or disabled
to avoid returning disabled apps to global search. This query method
can throw an exception if the package has since been removed.

Catch it, and ignore the application in question.

Bug: 5074590
Change-Id: Ie13938f7b3038fe704a94f7025371c553fe7adab
Handle just-removed pkgs in ApplicationsProvider.

ApplicationsProvider queries whether apps are enabled or disabled
to avoid returning disabled apps to global search. This query method
can throw an exception if the package has since been removed.

Catch it, and ignore the application in question.

Bug: 5074590
Change-Id: Ie13938f7b3038fe704a94f7025371c553fe7adab
Remove unnecessary check in ApplicationsProvider.

Since PackageManger won't return disabled apps, we don't actually need
to check whether a package is enabled within ApplicationsProvider. The
original bug (5029707), was caused by not handling the event when an app
was disabled, and was fixed by I48f5a608f174b56544f52e379c80db309d2dff47.

Change-Id: Ifd54731b09b65291be3be3050a741eaee1ae8cf8
merge in ics-release history after reset to master