java.lang.Object | |
↳ | com.android.contacts.model.EntityModifier |
Helper methods for modifying an EntityDelta
, such as inserting
new rows, or enforcing ContactsSource
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
For the given
EntityDelta , determine if the given
ContactsSource.DataKind could be inserted under specific
ContactsSource . | |||||||||||
Ensure that at least one of the given
ContactsSource.DataKind exists in the
given EntityDelta state, and try creating one if none exist. | |||||||||||
Find the best
ContactsSource.EditType for a potential insert. | |||||||||||
Find the
ContactsSource.EditType that describes the given ContentValues row,
assuming the given ContactsSource.DataKind dictates the possible types. | |||||||||||
Find the
ContactsSource.EditType that describes the given Cursor row,
assuming the given ContactsSource.DataKind dictates the possible types. | |||||||||||
Find the
ContactsSource.EditType that describes the given
EntityDelta.ValuesDelta row, assuming the given ContactsSource.DataKind dictates
the possible types. | |||||||||||
Find the
ContactsSource.EditType with the given rawValue . | |||||||||||
Return the precedence for the the given
rawValue , where
lower numbers are higher precedence. | |||||||||||
For the given
EntityDelta and ContactsSource.DataKind , return the
list possible ContactsSource.EditType options available based on
ContactsSource . | |||||||||||
For the given
EntityDelta and ContactsSource.DataKind , return the
list possible ContactsSource.EditType options available based on
ContactsSource . | |||||||||||
Check if the given
ContactsSource.DataKind has multiple types that should be
displayed for users to pick. | |||||||||||
Insert a new child of kind
ContactsSource.DataKind into the given
EntityDelta , marked with the given ContactsSource.EditType . | |||||||||||
Insert a new child of kind
ContactsSource.DataKind into the given
EntityDelta . | |||||||||||
Test if the given
EntityDelta.ValuesDelta would be considered "empty" in
terms of fieldList . | |||||||||||
Parse a specific entry from the given
Bundle and insert into the
given EntityDelta . | |||||||||||
Parse the given
Bundle into the given EntityDelta state,
assuming the extras defined through Intents. | |||||||||||
Processing to trim any empty
EntityDelta.ValuesDelta and EntityDelta
from the given EntitySet , assuming the given Sources
dictates the structure for various fields. | |||||||||||
Processing to trim any empty
EntityDelta.ValuesDelta rows from the given
EntityDelta , assuming the given ContactsSource dictates
the structure for various fields. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
For the given EntityDelta
, determine if the given
ContactsSource.DataKind
could be inserted under specific
ContactsSource
.
Ensure that at least one of the given ContactsSource.DataKind
exists in the
given EntityDelta
state, and try creating one if none exist.
Find the best ContactsSource.EditType
for a potential insert. The "best" is the
first primary type that doesn't already exist. When all valid types
exist, we pick the last valid option.
Find the ContactsSource.EditType
that describes the given ContentValues
row,
assuming the given ContactsSource.DataKind
dictates the possible types.
Find the ContactsSource.EditType
that describes the given Cursor
row,
assuming the given ContactsSource.DataKind
dictates the possible types.
Find the ContactsSource.EditType
that describes the given
EntityDelta.ValuesDelta
row, assuming the given ContactsSource.DataKind
dictates
the possible types.
Find the ContactsSource.EditType
with the given rawValue
.
Return the precedence for the the given rawValue
, where
lower numbers are higher precedence.
For the given EntityDelta
and ContactsSource.DataKind
, return the
list possible ContactsSource.EditType
options available based on
ContactsSource
.
For the given EntityDelta
and ContactsSource.DataKind
, return the
list possible ContactsSource.EditType
options available based on
ContactsSource
.
forceInclude | Always include this ContactsSource.EditType in the returned
list, even when an otherwise-invalid choice. This is useful
when showing a dialog that includes the current type.
|
---|
Check if the given ContactsSource.DataKind
has multiple types that should be
displayed for users to pick.
Insert a new child of kind ContactsSource.DataKind
into the given
EntityDelta
, marked with the given ContactsSource.EditType
.
Insert a new child of kind ContactsSource.DataKind
into the given
EntityDelta
. Tries using the best ContactsSource.EditType
found using
getBestValidType(EntityDelta, DataKind, boolean, int)
.
Test if the given EntityDelta.ValuesDelta
would be considered "empty" in
terms of fieldList
.
Parse a specific entry from the given Bundle
and insert into the
given EntityDelta
. Silently skips the insert when missing value
or no valid ContactsSource.EditType
found.
typeExtra | Bundle key that holds the incoming
rawValue value. |
---|---|
valueExtra | Bundle key that holds the incoming value. |
valueColumn | Column to write value into EntityDelta.ValuesDelta .
|
Parse the given Bundle
into the given EntityDelta
state,
assuming the extras defined through Intents.
Processing to trim any empty EntityDelta.ValuesDelta
and EntityDelta
from the given EntitySet
, assuming the given Sources
dictates the structure for various fields. This method ignores rows not
described by the ContactsSource
.
Processing to trim any empty EntityDelta.ValuesDelta
rows from the given
EntityDelta
, assuming the given ContactsSource
dictates
the structure for various fields. This method ignores rows not described
by the ContactsSource
.