本文整理匯總了Java中android.provider.ContactsContract.RawContacts方法的典型用法代碼示例。如果您正苦於以下問題:Java ContactsContract.RawContacts方法的具體用法?Java ContactsContract.RawContacts怎麽用?Java ContactsContract.RawContacts使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.provider.ContactsContract
的用法示例。
在下文中一共展示了ContactsContract.RawContacts方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: InsertRawContactBatch
import android.provider.ContactsContract; //導入方法依賴的package包/類
/**
* Inserts the given rawContact with the given data.
*
* @param rawContact
* @param contactData
*/
public InsertRawContactBatch(RowSnapshot<ContactsContract.RawContacts> rawContact, Iterable<RowData<ContactsContract.Data>> contactData)
{
super(new Flattened<>(
new SingletonIterable<Operation<?>>(
new Put<>(rawContact)),
new MultiInsertBatch<>(
new RawContactData(rawContact),
contactData)));
}
示例2: Dirty
import android.provider.ContactsContract; //導入方法依賴的package包/類
public Dirty(@NonNull View<ContactsContract.RawContacts> mRawContacts, @NonNull Projection<ContactsContract.RawContacts> projection)
{
super(new QueryRowSet<>(mRawContacts,
projection,
new AnyOf(
new EqArg(ContactsContract.RawContacts.DIRTY, 1),
new EqArg(ContactsContract.RawContacts.DELETED, 1))));
}
示例3: BulkSplitBatch
import android.provider.ContactsContract; //導入方法依賴的package包/類
public BulkSplitBatch(@NonNull final RowReference<ContactsContract.RawContacts> rawContact, @NonNull Iterable<RowReference<ContactsContract.RawContacts>> linked)
{
super(new Mapped<>(linked, new Function<RowReference<ContactsContract.RawContacts>, Operation<?>>()
{
@Override
public Operation<?> apply(RowReference<ContactsContract.RawContacts> rawContactsRowReference)
{
return new Split(rawContact, rawContactsRowReference);
}
}));
}
示例4: rows
import android.provider.ContactsContract; //導入方法依賴的package包/類
@NonNull
@Override
public Cursor rows(@NonNull UriParams uriParams, @NonNull Projection<ContactsContract.RawContacts> projection, @NonNull Predicate predicate, @NonNull Optional<String> sorting) throws RemoteException
{
return mDelegate.rows(uriParams,
projection,
new AllOf(predicate, new IsNull(ContactsContract.RawContacts.ACCOUNT_NAME), new IsNull(ContactsContract.RawContacts.ACCOUNT_TYPE)), sorting);
}
示例5: RawContacts
import android.provider.ContactsContract; //導入方法依賴的package包/類
public RawContacts()
{
super(new BaseTable<ContactsContract.RawContacts>(ContactsContract.RawContacts.CONTENT_URI));
}
示例6: deleteOperation
import android.provider.ContactsContract; //導入方法依賴的package包/類
@NonNull
@Override
public Operation<ContactsContract.RawContacts> deleteOperation(@NonNull UriParams uriParams, @NonNull Predicate predicate)
{
return mDelegate.deleteOperation(uriParams, localAccountPredicate(predicate));
}
示例7: updateOperation
import android.provider.ContactsContract; //導入方法依賴的package包/類
@NonNull
@Override
public Operation<ContactsContract.RawContacts> updateOperation(@NonNull UriParams uriParams, @NonNull Predicate predicate)
{
return mDelegate.updateOperation(uriParams, localAccountPredicate(predicate));
}
示例8: view
import android.provider.ContactsContract; //導入方法依賴的package包/類
@NonNull
@Override
public View<ContactsContract.RawContacts> view(@NonNull ContentProviderClient client)
{
return new org.dmfs.android.contactspal.views.Local(mDelegate.view(client));
}
示例9: Local
import android.provider.ContactsContract; //導入方法依賴的package包/類
public Local(@NonNull View<ContactsContract.RawContacts> delegate)
{
mDelegate = delegate;
}
示例10: table
import android.provider.ContactsContract; //導入方法依賴的package包/類
@NonNull
@Override
public Table<ContactsContract.RawContacts> table()
{
return new org.dmfs.android.contactspal.tables.Local(mDelegate.table());
}
示例11: AutoAggregate
import android.provider.ContactsContract; //導入方法依賴的package包/類
public AutoAggregate(@NonNull RowReference<ContactsContract.RawContacts> rawContact1, @NonNull RowSnapshot<ContactsContract.RawContacts> rawContact2)
{
this(rawContact1, new RowSnapshotReference<>(rawContact2));
}
示例12: reference
import android.provider.ContactsContract; //導入方法依賴的package包/類
@NonNull
@Override
public Optional<SoftRowReference<ContactsContract.RawContacts>> reference()
{
return mDelegate.reference();
}
示例13: Local
import android.provider.ContactsContract; //導入方法依賴的package包/類
public Local(@NonNull Table<ContactsContract.RawContacts> delegate)
{
mDelegate = delegate;
}
示例14: Link
import android.provider.ContactsContract; //導入方法依賴的package包/類
public Link(@NonNull RowReference<ContactsContract.RawContacts> rawContact1, @NonNull RowReference<ContactsContract.RawContacts> rawContact2)
{
super(new Populated<>(
new AggregationTypeData(ContactsContract.AggregationExceptions.TYPE_KEEP_TOGETHER),
new AggregationException(rawContact1, rawContact2)));
}
示例15: Split
import android.provider.ContactsContract; //導入方法依賴的package包/類
public Split(@NonNull RowSnapshot<ContactsContract.RawContacts> rawContact1, @NonNull RowSnapshot<ContactsContract.RawContacts> rawContact2)
{
this(new RowSnapshotReference<>(rawContact1), new RowSnapshotReference<>(rawContact2));
}