History log of /frameworks/base/core/java/android/content/ContentProviderOperation.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
764e95ec4f92affad448894bd2c4f4067625d3e6 11-Jun-2015 Jeff Brown <jeffbrown@google.com> Add docs for ContentProviderOperations.

Bug: 21343769
Change-Id: Ia122b58785cf98f16664f82eb00a1f6bd9366885
/frameworks/base/core/java/android/content/ContentProviderOperation.java
1cf7405f1f4cdf823f9ff8378185af015653772a 22-Jan-2015 Brian Attwell <brianattwell@google.com> Expose ContentProviderOperation type

CHANGE
isInsert, isDelete, isUpdate, isAssertQuery

JUSTIFICATION
The use of getType() in lots of unit tests means that
ContentProviderOperation#getType() can't practically be
removed.

Why not make it public? This allows 3p to use getType() in
unit tests. Plus it allows the unbundled contacts app
to continue using getType() in order to handle TYPE_INSERT
specially, without needing to awkwardly pass isInsert values
around.

Bug: 18777272
Change-Id: I6be5f325bbf6fbeb7817e9b1f7fa1a1ae2002e0b
/frameworks/base/core/java/android/content/ContentProviderOperation.java
8b89f0b2070e740f96c1b07f37d72f7e530e1a20 22-Jan-2015 Brian Attwell <brianattwell@google.com> Revert "Expose ContentProviderOperation type"

This reverts commit 9986f8e85a095320afbdebb2d0dfee9a2e19e510.

Change-Id: Icdcedf485a67fff4ab5e6bab9cc3e82aa7cc8760
/frameworks/base/core/java/android/content/ContentProviderOperation.java
9986f8e85a095320afbdebb2d0dfee9a2e19e510 22-Jan-2015 Brian Attwell <brianattwell@google.com> Expose ContentProviderOperation type

CHANGE
isInsert, isDelete, isUpdate, isAssertQuery

JUSTIFICATION
The use of getType() in lots of unit tests means that
ContentProviderOperation#getType() can't practically be
removed.

Why not make it public? This allows 3p to use getType() in
unit tests. Plus it allows the unbundled contacts app
to continue using getType() in order to handle TYPE_INSERT
specially, without needing to awkwardly pass isInsert values
around.

Bug: 18777272
Change-Id: I3265193cda0c9405f6df896cd96a10df7225445a
/frameworks/base/core/java/android/content/ContentProviderOperation.java
d85fc72fb810858f7502e7e7f1bad53e1bf03edd 16-Apr-2014 Nicolas Prevot <nprevot@google.com> Resolving resources across users.

When an intent is sent to another profile:
For content uris contained in this intent:
The userId of the source user is added to the userInfo part.
The ActivityManagerService has been modified to resolve resources in the user specified by the uri.
The user id to which the uri belongs to is stored in the UriPermission.

Change-Id: I43dc76895aba692bf148d276253aeaf9c75fce34
/frameworks/base/core/java/android/content/ContentProviderOperation.java
d3ad696b1daaa6c92d8fa268c81ce220ed1d9ffc 16-Sep-2010 Joe Onorato <joeo@google.com> Fix the rest of the javadoc warnings.

Change-Id: Ifbf422a2eb177858813d118f03ceddcd807e73b4
/frameworks/base/core/java/android/content/ContentProviderOperation.java
35abad216da8a49128c3899a206c15d44c471617 19-Feb-2010 Ken Shirriff <kens@google.com> Add error logging to ContentProviderOperation.

This will dump out the contents of the operation in some error cases
to make debugging easier.
/frameworks/base/core/java/android/content/ContentProviderOperation.java
824838d74eb0316f6987a1d98d2d9e9fa8d4e15b 30-Oct-2009 Jeff Sharkey <jsharkey@android.com> Avoid NPE when callers send null selection args.

Fixes http://b/2226007
/frameworks/base/core/java/android/content/ContentProviderOperation.java
acff20bda404f59ffba6035b18956d6aff7afcd8 28-Oct-2009 Jeff Hamilton <jham@android.com> Copy the selection args when creating a CPO since callers often reuse the passed in array.

Bug: 2221947
Change-Id: I3b7d5cbef61777d76ca7fc0d7c91c44553e609a9
/frameworks/base/core/java/android/content/ContentProviderOperation.java
5ab78057a35dc71b2847920031cd707a7e2c6c64 16-Sep-2009 Fred Quintana <fredq@google.com> add the ability to do a newAssert with no values
/frameworks/base/core/java/android/content/ContentProviderOperation.java
56f67d21459ad3f136c73c8932904d4a495989c0 28-Aug-2009 Fred Quintana <fredq@google.com> add the ability to specify yieldpoints in a ContentProviderOperation
/frameworks/base/core/java/android/content/ContentProviderOperation.java
08b75b1ffb856ab97e1577eb7d20c69a18fcacca 02-Aug-2009 Jeff Sharkey <jsharkey@android.com> New ContentProviderOperation to assert values during batch.

When performing a set of batch operations, some callers need
to enforce that a query has specific values. For example,
when persisting edited Contact values, we need to assert
that the RawContacts.VERSION matches the version we read out
through queryEntities().

This change adds a new TYPE_ASSERT that uses withValues()
and withSelection(), and checks all values when applying the
batch operation, bailing if any values don't match.
/frameworks/base/core/java/android/content/ContentProviderOperation.java
8851e163fc5bc17d139bf29cd2ec2f3926d342bc 06-Aug-2009 Fred Quintana <fredq@google.com> - add several common kinds and beef up some others
- change the ContentProviderOperation selection backref store the backref as a long instead of as a string
/frameworks/base/core/java/android/content/ContentProviderOperation.java
bc25407b9299ae433023ddf147fe633f3b3b640c 29-Jul-2009 Jeff Sharkey <jsharkey@android.com> Expose type constants and accessor for unit tests.

Internally, ContentProviderOperation maintains a "type",
which correspond to builder methods, such as "newInsert()".

Unit tests often need to assert which operations are
being built, so this change adds a getType() accessor and
esposes the internal constants used. They are marked with
@hide so they are not exposed in the public API.
/frameworks/base/core/java/android/content/ContentProviderOperation.java
c933fb663e4748c4fa3f92fc63649e5199519a86 11-Jun-2009 Fred Quintana <fredq@google.com> add a data_version column to the data table
/frameworks/base/core/java/android/content/ContentProviderOperation.java
d8dfeb5ee82d679f491cd20e776907a69fb4f27c 04-Jun-2009 Fred Quintana <fredq@google.com> - make it easier to add content values to the ContentProviderOperation
- add the group membership common kind as well as some IM utilities to the ContactsContract
/frameworks/base/core/java/android/content/ContentProviderOperation.java
03d9490758c9318cee6d14d3cc5007556dce92d0 22-May-2009 Fred Quintana <fredq@google.com> - create a new generic ISyncAdapter implementation, SyncAdapterNew
- 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
/frameworks/base/core/java/android/content/ContentProviderOperation.java
8943737692169f564cd34a9c8d471f3a5d438712 16-May-2009 Fred Quintana <fredq@google.com> add ipc support to batching
/frameworks/base/core/java/android/content/ContentProviderOperation.java
ce31b2361db630cf1347fa42dd77e610a4eeb96d 05-May-2009 Fred Quintana <fredq@google.com> enhance ContentProvider with the ability to perform batch operations
/frameworks/base/core/java/android/content/ContentProviderOperation.java