本文整理汇总了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));
}