History log of /packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e2da2ba9d7b7fdb43901fcce5d605bade82bc4b1 01-Oct-2012 Piotr Jastrzebski <haaawk@google.com> Cancellation of queries for search suggestions.

Using CancellableSignal to enable cancellation of queries for search
suggestions.

Search App needs this change to cancel queries for search suggestions which are
no longer valid due to some user action.

Change-Id: Iad5aaccd322142cd7917722a2eda8207604050d7
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
471522da26d6f9d7afcacab5fa7012a90dac566e 04-Jul-2012 Mark Brophy <mbrophy@google.com> Remove result ordering for global search.

Change-Id: I7efab03f5a4ecb529be53bf12e2f8764f0fe8ef9
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
929d8bb85a57135602372a7126a8cb0420025d70 26-Apr-2012 Bjorn Bringert <bringert@android.com> Fix race in ApplicationsProvider

Before, mHandler was initialized after the broadcast
receivers were registered.

Bug: 6396825
Change-Id: I0c81f315488c61aff065ee1ff4d9440f148656cc
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
68bd965877d55166376a3bb936dd500a465205f2 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Update to follow API change.

Change-Id: Ib770f3786027a3e3b0190d4781f2f62651539478
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
2274a4d4090644efc8170bb1402b4cfee8ab13f4 28-Jul-2011 Mark Brophy <mbrophy@google.com> 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
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
66e8779bfe82198684116e37d65f3c42bc737754 27-Jul-2011 Mark Brophy <mbrophy@google.com> 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
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
1f298d3dec8ac178cac0d61eba296bd9099ea11d 25-Jul-2011 Mark Brophy <mbrophy@google.com> 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
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
eea776684be05ee9418f2f3ee63effbb834421ac 18-Jul-2011 Mark Brophy <mbrophy@google.com> Ignore disabled activities in Application Provider.

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

Bug: 5029707
Change-Id: Ic338e990ae78dfde1ee6112d5fd69129c74fc50c
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
01ff60258654b87d12c219035a637746cf1fdbf7 21-Jun-2011 Mark Brophy <mbrophy@google.com> 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
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
0f839d3f6ed4d7b8662957535adc01bd8d66b0dd 04-May-2011 Mathew Inwood <mathewi@google.com> 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
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
7089c89c9ec21f28326ac6a9e9e91344749a02e0 11-Feb-2011 Peter Visontay <pvisontay@google.com> Made ApplicationsProvider fetch launch counts from a remote service.

Bug: 3431684
Change-Id: Ie350ef440a7a49e5fdae5723414bfbab11f09793
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
48ab62821a8486010822812e0f3fdb77e84385ff 28-Jan-2011 Peter Visontay <pvisontay@google.com> Only rank by launch count if called from global search.

Without this any application could use the provider to
get information about user behavior.

Change-Id: I8eb4bccc9e6a9886f5af194ac132da423e725ce9
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
62a6b1f913bdfa1f7f53fad055cd62c3cfb90100 19-Nov-2010 Peter Visontay <pvisontay@google.com> Added new URI for launch count updates to ApplicationsProvider.

Tested with automated tests + manually:
1. Installed ApplicationsProvider (with a clean database containing 0 as
each app's current launch count).
2. Typed "g" into QSB. App suggestions: Gallery, Gmail (ranked alphabetically).
3. Clicked on the "Google Search" app to launch it and by doing so increase its
launch count.
4. Cleared the QSB shortcuts (QSB created one for Google Search when it was
launched).
5. Reinstalled ApplicationsProvider so the in-memory values would be lost.
6. Typed "g" into QSB. app suggestions: Google Search, Gallery (ranked by
launch count).

Bug: 1847330

Change-Id: I4125b34a1923fe5866c52bf77218974ed14a38bc
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
143957ead6c8f14e033037db5ca20fc6c12a2867 03-Apr-2010 Bjorn Bringert <bringert@android.com> Set DBG=false in ApplicationsProvider

Bug: http://b/issue?id=2568948
Change-Id: Ic051868dd922f7fcb21a7e21ec41028291ec8943
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
738e65d0263aed069d1aa7c8a73f3fbc77486b99 31-Mar-2010 Bjorn Bringert <bringert@android.com> Handle search intents in ApplicationsProvider

Bug http://b/issue?id=2559078

Change-Id: I1507ab28e86f46593689f4bb2c49455d5ac14170
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
3352f23cbaf4224672f3fb530ed5f5fcb03dbe04 16-Mar-2010 Bjorn Bringert <bringert@android.com> Handle SD card app changes in ApplicationsProvider

Bug: http://b/issue?id=2518879
Change-Id: Ic132fceee60943268c9d5ec3c7cb98827a5d3a18
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
72b3dbb33c455151d3fa6a8e2bb73d262e5b0c15 16-Mar-2010 Bjorn Bringert <bringert@android.com> Use icon names instead of resource IDs for app icons

This should make app shortcut icons in QSB more stable when
apps are upgraded. But it's not foolproof, since an app may change
the resource name of its app icon.

Part of http://b/issue?id=2513568

Change-Id: Ic9f07d9d5d5cf59aabcc74d21212bc1c28947dce
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
5dad25314a689a0fd93abfc76f8649ca280fcb13 03-Mar-2010 Bjorn Bringert <bringert@android.com> Close inserter

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

Change-Id: I4a5e3735d8bc80ac8ffaa07b1138d8d691868b69
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
29dafff2d89dad5badcc158f474a7a9c46317174 23-Feb-2010 Bjorn Bringert <bringert@android.com> Update ApplicationsProvider on locale changes

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

Change-Id: I79841c87396a5549d53c49696c68a5f3b5b8e284
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
b0db30e69ba1763e2f4a5e4f61268bc4082a6180 15-Nov-2009 Bjorn Bringert <bringert@android.com> Fix ANRs caused by ApplicationsProvider

Before, ApplicationsProvider rebuilt the whole in-memory apps database
every time any package was added, changed or removed. This caused
it to use a lot of CPU and lock a lot of shared resources, blocking
other, potentially higher-priority threads.

In this change, ApplicationsProvider builds its DB on first start,
and then only does incremental updates for the apps that have been
added/changed/removed.

Fixes (hopefully) http://b/issue?id=2261743
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
29495b601969bbfbfba23372cc81d06a93bcdcdf 05-Sep-2009 Karl Rosaen <krosaen@android.com> Return correct MIME type in ApplicationsProvider.

Fixes http://b/issue?id=2041797
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
a0316493881ad09b647a4198952f2880003b8d37 31-Jul-2009 Mike LeBeau <mlebeau@android.com> Update the list of applications asynchronously in onCreate just as we now
do when we receive a broadcast that there's been a change.

Fixes http://b/2023068

This was just an omission from https://android-git.corp.google.com/g/8033
to fix http://b/1917762.
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
f90d75ecb3c6ae715195ffe9e3c0f26d829e7659 21-Jul-2009 Karl Rosaen <krosaen@google.com> Refresh list of applications in a worker thread to avoid ANRs.

Include some logic to avoid doing more than one update per second in the face
of several package update notifications.

Should fix bug 1917762.
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
a5d72abaa15e0a0e6e205e85a54b3cfa7ec2eeda 14-Jul-2009 Bjorn Bringert <bringert@android.com> Support shortcut refresh in ApplicationsProvider

This lets global search remove shortcuts for applications that
have been uninstalled.

Fixes http://b/issue?id=1977172
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
e1d0f8650361fe8509f6dee52066619f88943e6d 07-Jul-2009 Mike LeBeau <mlebeau@android.com> Return default app icon when there is no icon to show.
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
e6c2fdbc4ea2ece95f6c921f8dea6d7778d02bce 04-Jun-2009 Bjorn Bringert <bringert@android.com> Remove duplicates from application search suggestions.

Fixes http://b/issue?id=1897530
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
493003ca2421d64ec401cd46155098611271e7ca 15-May-2009 Bjorn Bringert <bringert@android.com> Sort application suggestions with full name prefix matches first.

This fixes http://b/issue?id=1847321 for ApplicationsProvider.

This change requires the new version of the _TOKENIZE function.
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
f1fe07249249ca74178a75fe5198058b501f9944 13-May-2009 Bjorn Bringert <bringert@android.com> ApplicationsProvider changes for new _TOKENIZE.

A token_index column has been added to the _TOKENIZE
result. This commit changes the ApplicationsProvider
to use this new column.
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java
8533a8f88d7acdf7db347af14a5503a4cbbe9df3 30-Apr-2009 The Android Open Source Project <initial-contribution@android.com> import all files from p4
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ApplicationsProvider.java