summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/ContentProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Allow all apps to call ContentResolver.getType().Dianne Hackborn2010-09-261-0/+6
| | | | | | | | | I can't find the bug number for this, but it is needed for some things we are doing where the app building an intent may not have access to the URI in the data field. This is for HC, but doing in GB to avoid introducing integration issues. Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2
* Fix issue #2845673: android:exported="false" is not obeyedDianne Hackborn2010-08-181-4/+6
| | | | | | Thou shall obey. Change-Id: I09f163a0db7cc9189c8d7f5116cc8ca9d4f7a76c
* Minor changes to ContentProvider javadoc to improve consistency.Dan Egnor2010-07-281-11/+12
| | | | Change-Id: I710f618c94ffd5d6368ef04a39ac08f675bec11b
* COMMENT ONLY change to clarify ContentProvider documentation.Dan Egnor2010-07-271-59/+119
| | | | | | | Gets a little more specific about thread behavior, and makes pointed comments about not doing too much work in onCreate(). Change-Id: I682f0eb7d7559babee901ed26642751a6ba0a1ea
* Add "call" method on ContentProvider.Brad Fitzpatrick2010-03-051-1/+23
| | | | | | | | | | | | | This permits implementing interfaces which are faster than using remote Cursors. It then uses it for Settings & SettingProvider, which together account for ~50% of total ContentProvider event loop stalls across Froyo dogfooders. For fetching Settings this looks like it should reduce average Settings lookup from 10 ms to 0.4 ms on Sholes, once the SettingsProvider serves most gets from in-memory cache. Currently it brings the Sholes average down from 10ms to 2.5 ms while still using SQLite queries on each get.
* am 328c0e79: - removed the concept of Entity from the ContentProvider APIs - ↵Fred Quintana2009-12-101-18/+1
| | | | | | | | | removed the parcelling ability from Entity and EntityIterator and made them public - added an EntityIterator abstract implementation that allow easy wrapping of a Cursor - changed the VCard c Merge commit '328c0e7986aa6bb7752ec6de3da9c999920bb55f' into eclair-mr2-plus-aosp * commit '328c0e7986aa6bb7752ec6de3da9c999920bb55f': - removed the concept of Entity from the ContentProvider APIs
* Implement new MockContentProvider. Also make ContentProvider aware of the class.Daisuke Miyakawa2009-12-041-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename the old MockContentProvider to MockIContentProvider since it is more appropriate name. Detail: Current developers inevitably depend on the backend used by ContentProvider, which is useful but not ideal nor "testable" from the view of them. Current MockContentResolver only accepts exact "ContentProvider" class, not IContentProvider interface, since we want to hide "IContentProvider" while the old MockContentProvider implements IContentProvider and as a result some methods we want to hide may be exposed to the public SDK now and probably for the future. On the other hand, ContentProvider is not interface but an exact class heavily depends on the internal logic and not suitable for external developers to use for tests. The new MockContentProvider introduces the mock implementation for ContentProvider. It extends ContentProvider, so "is" ContentProvider, but tries to avoid depending on any backend System like IPC in Android, etc. This should be useful from the view of application developers who do not want to be confused with ContentProvider/ContentResolver backend implementation "at all" and want to use MockContentResolver without any other ContentProvider implementations tightly connected to the external worlds.
* - hide Entity and all its referencesFred Quintana2009-10-061-19/+7
| | | | | | | - remove updateEntity and insertEntity, since they are not used - add the RawContacts.Entity class, which is used in lieu of the android.content.Entity
* resolved conflicts for merge of 2af632f8 to masterDianne Hackborn2009-07-091-27/+117
|\
| * Add new <path-permission tag for use by global search.Dianne Hackborn2009-07-081-23/+113
| | | | | | | | | | | | | | | | | | | | | | This adds a new <path-permission> tag you can use inside of a <provide> to define additional path-based permissions that broaden the global read and write permissions. The initial use for this will be global search, so that a content provider that is protected by permissions can make a part of itself available to global search under another permission. This addresses the issue with global search not being able to request permissions it would need of providers it doesn't know about at build time.
| * Automated import from //branches/donutburger/...@140581,140581Bjorn Bringert2009-03-241-1/+2
| |
* | Fixed Issue 2682: ContentProvider query() SDK docs deprecatedAlan Jones2009-07-071-5/+9
| |
* | - create a new generic ISyncAdapter implementation, SyncAdapterNewFred Quintana2009-06-011-5/+7
| | | | | | | | | | | | - change the applyBatch to take an ArrayList rather than an [] - change Entity to be a final flass that contains ContentValues - remove the ability to update/insert Entities by a ContentProviderOperation
* | add ipc support to batchingFred Quintana2009-05-221-20/+18
| |
* | enhance ContentProvider with the ability to perform batch operationsFred Quintana2009-05-151-1/+23
| |
* | content provider entitiesFred Quintana2009-05-131-0/+45
| |
* | decouple SyncAdapter from ContentProviderFred Quintana2009-04-301-23/+0
| |
* | Automated import from //branches/master/...@140582,140582Bjorn Bringert2009-03-241-1/+2
|/
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+609
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-562/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-61/+14
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-14/+61
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-32/+32
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+562