summaryrefslogtreecommitdiffstats
path: root/core/java/android/content
Commit message (Collapse)AuthorAgeFilesLines
* - removed the concept of Entity from the ContentProvider APIsFred Quintana2009-12-0912-686/+96
| | | | | | - 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 code to use the new APIs
* Add bindService API to not bring ot foreground.Dianne Hackborn2009-12-082-2/+15
| | | | | | | | | | Add a new flag for bindService that tells the system to not bring the target service's process in to the foreground scheduling class. This is used by the sync system to not cause the current sync adapter to come to the foreground as it is running. Also some small improvements to the debug output of the process list of oom adj and scheduling info.
* Migration to TrafficStats.Ken Shirriff2009-12-082-16/+16
| | | | TrafficStats is the SDK version of NetStat.
* am d59fb6e7: Updating list of standard Intents in android.content.Intent ↵Trevor Johns2009-12-071-1/+24
|\ | | | | | | | | | | | | | | | | documentation. Merge commit 'd59fb6e7435b57d83662b196f5430e6f2bc5427b' into eclair-mr2 * commit 'd59fb6e7435b57d83662b196f5430e6f2bc5427b': Updating list of standard Intents in android.content.Intent
| * Updating list of standard Intents in android.content.IntentTrevor Johns2009-12-071-1/+24
| | | | | | | | documentation.
* | am 1067c3cb: Merge change Ia5ef9acd into eclairFred Quintana2009-12-071-1/+0
|\ \ | |/ | | | | | | | | | | Merge commit '1067c3cbab73a4bc75a2ebd2e3c51077db96fa24' into eclair-mr2 * commit '1067c3cbab73a4bc75a2ebd2e3c51077db96fa24': remove an old STOPSHIP comment
| * Merge change Ia5ef9acd into eclairAndroid (Google) Code Review2009-12-071-1/+0
| |\ | | | | | | | | | | | | * changes: remove an old STOPSHIP comment
| | * remove an old STOPSHIP commentFred Quintana2009-12-071-1/+0
| | |
* | | 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.
* | | am 0ce8431c: Merge change Iaa7edda4 into eclairFred Quintana2009-12-031-2/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '0ce8431c15078e095a22a123dbabcd91049a9652' into eclair-mr2 * commit '0ce8431c15078e095a22a123dbabcd91049a9652': don't reschedule syncs that failed with a tooManyRetries error
| * | Merge change Iaa7edda4 into eclairAndroid (Google) Code Review2009-12-031-2/+6
| |\ \ | | |/ | | | | | | | | | * changes: don't reschedule syncs that failed with a tooManyRetries error
| | * don't reschedule syncs that failed with a tooManyRetries errorFred Quintana2009-12-031-2/+6
| | |
* | | am c7a63eea: Add a new field to Intent that allows you to give a hint about ↵Joe Onorato2009-12-021-1/+68
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | what on screen caused the intent to be sent. Merge commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640' into eclair-mr2 * commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640': Add a new field to Intent that allows you to give a hint about what on screen caused the intent to
| * | Add a new field to Intent that allows you to give a hint about what on ↵Joe Onorato2009-12-021-1/+68
| | | | | | | | | | | | | | | | | | screen caused the intent to be sent.
* | | am 5886050f: Merge change I0d8f7593 into eclairDianne Hackborn2009-12-021-10/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '5886050fad97923c33cbc831fe07a5b1746b2b58' into eclair-mr2 * commit '5886050fad97923c33cbc831fe07a5b1746b2b58': Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-op
| * | Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-opDianne Hackborn2009-12-011-10/+8
| |/ | | | | | | Change-Id: I0d8f75938226e1bb49cf7b1154445631b0bb0bc9
* | am 8e1985d4: Merge change Ie552036f into eclairDianne Hackborn2009-11-251-11/+0
|\ \ | |/ | | | | | | | | | | Merge commit '8e1985d4f28bfa9bea7db05f324759991d4e59e9' into eclair-mr2 * commit '8e1985d4f28bfa9bea7db05f324759991d4e59e9': Fix issue #2286419: maxSdkVersion causes existing apps to disappear.
| * Fix issue #2286419: maxSdkVersion causes existing apps to disappear.Dianne Hackborn2009-11-251-11/+0
| | | | | | | | Change-Id: Ie552036f4ea673e0ce9981ff1cbd1fbe08678510
* | am 524812fb: Merge change I7d40ad9a into eclairDianne Hackborn2009-11-191-0/+62
|\ \ | |/ | | | | | | | | | | Merge commit '524812fbf583db5053ff56f7a146fa8fe9296742' into eclair-mr2 * commit '524812fbf583db5053ff56f7a146fa8fe9296742': More on issue #2271640: Fix wallpaper etc docs
| * More on issue #2271640: Fix wallpaper etc docsDianne Hackborn2009-11-191-0/+62
| | | | | | | | | | | | Publish the features developers may be interested in. Change-Id: I7d40ad9a9f4b9770e2f8dd1b0a729b0d322c062e
* | am 1d62ea9d: Fix issue #2249821: Unable to start passion in safe modeDianne Hackborn2009-11-181-2/+2
|\ \ | |/ | | | | | | | | | | Merge commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e' into eclair-mr2 * commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e': Fix issue #2249821: Unable to start passion in safe mode
| * Fix issue #2249821: Unable to start passion in safe modeDianne Hackborn2009-11-181-2/+2
| | | | | | | | | | | | | | | | Holding down the trackball now works. Also fix a little API check warning from Intent. Change-Id: Icb1f901535cb521917bf7f847a93c4ff7861d20e
* | am 60d7db4c: Fix #2262593: 42 ANR reports from android.process.acoreDianne Hackborn2009-11-161-27/+26
|\ \ | |/ | | | | | | | | | | Merge commit '60d7db4c3e3d60060e7ac021445ea1f510b7a1fb' into eclair-mr2 * commit '60d7db4c3e3d60060e7ac021445ea1f510b7a1fb': Fix #2262593: 42 ANR reports from android.process.acore
| * Fix #2262593: 42 ANR reports from android.process.acoreDianne Hackborn2009-11-161-27/+26
| | | | | | | | | | | | | | | | | | | | There was a lock in AssetManager that purported to be per-instance (mSync) but was actually static. A lot of code used it like it was per-instance, but this would actually block all instances. This is now changed to fix the name and make everything except the actual static data lock on the specific AssetManager instance. Change-Id: Ie8e9ad60f962184e76b2301f7a2790d0c2487063
* | am 1aa9f3ca: Merge change I923d7d72 into eclairEric Laurent2009-11-121-0/+1
|\ \ | |/ | | | | | | | | | | Merge commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54' into eclair-mr2 * commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54': Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
| * Fix issue 2242614: Wired headset not recognized: bogus "state" in ↵Eric Laurent2009-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | ACTION_HEADSET_PLUG broadcast. The headset state indicated by HeadsetObserver in the broadcast intent ACTION_HEADSET_PLUG was not 0 or 1 as specified in the java doc but contained a bit field indicating the type of headset connected. Modified HeadsetObserver to broacast a state conforming to java doc. Added an extra to intent ACTION_HEADSET_PLUG to indicate if headset has a microphone or not. Removed handling of non standard headset indications from HeadsetObserver. Removed platform specific devices from output devices defined in AudioSystem. Modified AudioService to use new ACTION_HEADSET_PLUG intent extra instead of bitfield in state.
* | Rename [I]DropBox[Service] to [I]DropBoxManager[Service].Dan Egnor2009-11-121-1/+0
| | | | | | | | Un-hide the DropBoxManager interface, and update the public API accordingly.
* | am 360d710e: Merge change I580de484 into eclairDianne Hackborn2009-11-111-7/+16
|\ \ | |/ | | | | | | | | | | Merge commit '360d710ebccc2a2b53bf6233e722d3287d585476' into eclair-mr2 * commit '360d710ebccc2a2b53bf6233e722d3287d585476': Fix issue #2256270: Package manager sends bad broadcasts when components change
| * Fix issue #2256270: Package manager sends bad broadcasts when components changeDianne Hackborn2009-11-111-7/+16
| | | | | | | | | | | | | | Also reworks this intent protocol a little bit to be much more efficient, only requiring one broadcast per package. Change-Id: I580de4843ebd3c7f2e6df7295a2f80d2937cef7c
* | am 532d5603: Merge change I80022375 into eclairDianne Hackborn2009-11-111-0/+14
|\ \ | |/ | | | | | | | | | | Merge commit '532d56034532809da7691059742371c1b4d0656c' into eclair-mr2 * commit '532d56034532809da7691059742371c1b4d0656c': Fix issue #2256032: Change CONFIGURATION_CHANGED and add a locale changed broadcast
| * Fix issue #2256032: Change CONFIGURATION_CHANGED and add a locale changed ↵Dianne Hackborn2009-11-111-0/+14
| | | | | | | | | | | | | | | | | | | | broadcast You can no longer receive CONFIGURATION_CHANGED in a manifest, which is really really bad (launching apps every time the screen is rotated!). A new LOCALE_CHANGED broadcast is sent that you can receive in a manifest. Change-Id: I80022375f0716db2e672382a29db3cea1af74702
* | am 2ade6421: Merge change I775e1ec0 into eclairDianne Hackborn2009-11-113-21/+42
|\ \ | |/ | | | | | | | | | | Merge commit '2ade6421f2d6dd615b559c951deace7143958b90' into eclair-mr2 * commit '2ade6421f2d6dd615b559c951deace7143958b90': Debugging for issue #2250075: Desk dock clock app sometimes doesn't
| * Debugging for issue #2250075: Desk dock clock app sometimes doesn'tDianne Hackborn2009-11-113-21/+42
| | | | | | | | | | | | | | | | | | | | | | This adds a history of the last 100 broadcasts that is printed in the debug log, to be able to see what recently happened at the time the bug report was taken. Also does some optimization of the printing of the broadcast records to make it feasible to print this number of entries. (We kind-of need to do this because there are some broadcasts like SIG_STR and SYNC_STATE_CHANGED that are being broadcast a LOT.) Change-Id: I775e1ec0f63369c8bca8c83cee27b95ddc5ec450
* | am 4cb6fc7e: Merge change Icc48b1e7 into eclairFred Quintana2009-11-111-1/+3
|\ \ | |/ | | | | | | | | | | Merge commit '4cb6fc7ed2e4371b7ea4d053064fbeb3f86cfc20' into eclair-mr2 * commit '4cb6fc7ed2e4371b7ea4d053064fbeb3f86cfc20': don't request a sync when temp providers are created
| * don't request a sync when temp providers are createdFred Quintana2009-11-111-1/+3
| |
* | resolved conflicts for merge of ae0cf6dc to eclair-mr2Fred Quintana2009-11-115-76/+358
|\ \ | |/
| * Make the RegisteredSErvices Cache not allow the registered service for aFred Quintana2009-11-105-76/+358
| | | | | | | | | | | | | | | | | | | | | | | | type to change without first uninstalling the previous service for that type, unless the newly installed service is in the system image. Notify the listener when a service is added or removed. Make the AccountManagerService remove the accounts for an authenticator when the registered authenticator changes from one uid to another. Make the AbstractSyncableContentProvider force a sync when the database is first created.
* | am b6a6791f: Merge change I60413727 into eclairDianne Hackborn2009-11-021-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit 'b6a6791f381691d4a58fe6972eb9f0b65308ac1f' into eclair-mr2 * commit 'b6a6791f381691d4a58fe6972eb9f0b65308ac1f': Fix issue #2226370: Resource versions match with equality
| * Fix issue #2226370: Resource versions match with equalityDianne Hackborn2009-11-011-1/+1
| | | | | | | | | | | | Also fixed turned-around increment of version number for resources. :( Change-Id: I604137272da984bcd69cee4f174e6b7f2c786e46
* | am 824838d7: Avoid NPE when callers send null selection args.Jeff Sharkey2009-10-291-2/+6
|\ \ | |/ | | | | | | | | | | Merge commit '824838d74eb0316f6987a1d98d2d9e9fa8d4e15b' into eclair-mr2 * commit '824838d74eb0316f6987a1d98d2d9e9fa8d4e15b': Avoid NPE when callers send null selection args.
| * Avoid NPE when callers send null selection args.Jeff Sharkey2009-10-291-2/+6
| | | | | | | | Fixes http://b/2226007
* | am b5c05516: Merge change I3b7d5cbe into eclairJeff Hamilton2009-10-291-1/+2
|\ \ | |/ | | | | | | | | | | Merge commit 'b5c05516ba2c341655d54f17bdd17a5ab2d173df' into eclair-mr2 * commit 'b5c05516ba2c341655d54f17bdd17a5ab2d173df': Copy the selection args when creating a CPO since callers often reuse the passed in array.
| * Merge change I3b7d5cbe into eclairAndroid (Google) Code Review2009-10-291-1/+2
| |\ | | | | | | | | | | | | * changes: Copy the selection args when creating a CPO since callers often reuse the passed in array.
| | * Copy the selection args when creating a CPO since callers often reuse the ↵Jeff Hamilton2009-10-281-1/+2
| | | | | | | | | | | | | | | | | | | | | passed in array. Bug: 2221947 Change-Id: I3b7d5cbef61777d76ca7fc0d7c91c44553e609a9
* | | am 22dad592: Merge change I6cae32c7 into eclairSuchi Amalapurapu2009-10-291-14/+12
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e' into eclair-mr2 * commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e': When upgrading packages with shared user ids make sure we are eliminating
| * | When upgrading packages with shared user ids make sure we are eliminatingSuchi Amalapurapu2009-10-291-14/+12
| | | | | | | | | | | | | | | | | | | | | the package about to be deleted or upgraded when updating permissions associated with the shared user. Include a simple null check when retrieving the permission. Fix PackageParser to avoid ArrayIndexOutOfBounds exceptions in several places
* | | am 5e5eb393: Merge change Id572ffc7 into eclairFred Quintana2009-10-291-5/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '5e5eb393729630800079206498f283de8f02f3a7' into eclair-mr2 * commit '5e5eb393729630800079206498f283de8f02f3a7': don't throw an exception when we can't find a pending sync operation in the database
| * | don't throw an exception when we can't find a pending sync operation in the ↵Fred Quintana2009-10-281-5/+6
| |/ | | | | | | database
* | Instead of a raw AIDL interface, give DropBox a JavaDan Egnor2009-10-281-2/+11
| | | | | | | | | | | | | | | | interface (android.os.DropBox); move the Binder interface behind the scenes. Make DropBoxEntry into DropBox.Entry. Make it possible to get a dropbox from an (Application)Context with the usual getSystemService(DROPBOX_SERVICE) type thing. Update the tests accordingly.
* | Add access to ContentProvider for SyncState.Ken Shirriff2009-10-191-0/+4
| | | | | | | | This is used (temporarily) by the new calendar sync implementation.