当前位置: 首页>>代码示例>>Java>>正文


Java ContentProviderOperation.Builder方法代码示例

本文整理汇总了Java中android.content.ContentProviderOperation.Builder方法的典型用法代码示例。如果您正苦于以下问题:Java ContentProviderOperation.Builder方法的具体用法?Java ContentProviderOperation.Builder怎么用?Java ContentProviderOperation.Builder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.content.ContentProviderOperation的用法示例。


在下文中一共展示了ContentProviderOperation.Builder方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    for (RowData<T> rowData : mDelegates)
    {
        rowData.updatedBuilder(transactionContext, builder);
    }
    return builder;
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:11,代码来源:Composite.java

示例2: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return mDelegate.updatedBuilder(transactionContext, builder)
            .withValue(ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME, mFirstName == null ? null : mFirstName.toString())
            .withValue(ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME, mLastName == null ? null : mLastName.toString());
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:9,代码来源:NameData.java

示例3: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    // note that all data types use the same column for TYPE
    return mDelegate.updatedBuilder(transactionContext, builder).withValue(ContactsContract.CommonDataKinds.Phone.TYPE, mType);
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:8,代码来源:Typed.java

示例4: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return mDelegate.updatedBuilder(transactionContext, builder)
            .withValue(ContactsContract.CommonDataKinds.Organization.JOB_DESCRIPTION, mJobDescription == null ? null : mJobDescription.toString());
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:8,代码来源:JobData.java

示例5: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return builder
            .withValue(ContactsContract.CommonDataKinds.Photo.MIMETYPE, ContactsContract.CommonDataKinds.Photo.CONTENT_ITEM_TYPE)
            .withValue(ContactsContract.CommonDataKinds.Photo.PHOTO, mPhotoData);
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:9,代码来源:PhotoData.java

示例6: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return mDelegate.updatedBuilder(transactionContext, builder)
            // note this is universal, because all supported data types use the same type and label column for custom labels
            .withValue(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.BaseTypes.TYPE_CUSTOM)
            .withValue(ContactsContract.CommonDataKinds.Phone.LABEL, mLabel.toString());

}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:11,代码来源:Custom.java

示例7: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return mDelegate.updatedBuilder(transactionContext, builder)
            .withValue(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_GIVEN_NAME, mFirstName == null ? null : mFirstName.toString())
            .withValue(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_MIDDLE_NAME, mMiddleName == null ? null : mMiddleName.toString())
            .withValue(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME, mLastName == null ? null : mLastName.toString());
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:10,代码来源:PhoneticNameData.java

示例8: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return mDelegate.updatedBuilder(transactionContext, builder)
            .withValue(ContactsContract.CommonDataKinds.StructuredPostal.REGION, mRegion == null ? null : mRegion.toString());
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:8,代码来源:RegionData.java

示例9: matchesSafely

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@Override
protected boolean matchesSafely(ContentProviderOperation.Builder builder, Description mismatchDescription)
{
    Integer typeValue = new Field<Integer>(builder, "mType").value();
    if (mExpectedType.ordinal() + 1 /* 1-based */ != typeValue)
    {
        mismatchDescription.appendText(String.format(Locale.ENGLISH, "was an %s operation", Type.values()[typeValue - 1]));
        return false;
    }
    return true;
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:12,代码来源:OperationType.java

示例10: matchesSafely

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@Override
protected boolean matchesSafely(ContentProviderOperation.Builder builder, Description mismatchDescription)
{
    boolean yieldable = new Field<Boolean>(builder, "mYieldAllowed").value();
    if (mYieldable != yieldable)
    {
        mismatchDescription.appendText(String.format(Locale.ENGLISH, "yieldable was %s", Boolean.toString(yieldable)));
        return false;
    }
    return true;
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:12,代码来源:WithYieldAllowed.java

示例11: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return builder
            .withValue(ContactsContract.CommonDataKinds.Note.MIMETYPE, ContactsContract.CommonDataKinds.Note.CONTENT_ITEM_TYPE)
            .withValue(ContactsContract.CommonDataKinds.Note.NOTE, mNote.toString());
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:9,代码来源:NoteData.java

示例12: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    // add content item type here, so other name data can just delegate this part
    return builder.withValue(ContactsContract.CommonDataKinds.StructuredName.MIMETYPE, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE);
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:8,代码来源:EmptyNameData.java

示例13: updatedBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder updatedBuilder(TransactionContext transactionContext, @NonNull ContentProviderOperation.Builder builder)
{
    return builder.withValue(mKey, mValue == null ? null : mValue.toString());
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:7,代码来源:CharSequenceRowData.java

示例14: putOperationBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder putOperationBuilder(@NonNull TransactionContext transactionContext)
{
    return withSelection(ContentProviderOperation.newUpdate(mUri), BaseColumns._ID);
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:7,代码来源:BackReference.java

示例15: contentOperationBuilder

import android.content.ContentProviderOperation; //导入方法依赖的package包/类
@NonNull
@Override
public ContentProviderOperation.Builder contentOperationBuilder(@NonNull TransactionContext transactionContext) throws UnsupportedOperationException
{
    return mDelegate.contentOperationBuilder(transactionContext).withValue("account_type", mAccount.type).withValue("account_name", mAccount.name);
}
 
开发者ID:dmfs,项目名称:ContentPal,代码行数:7,代码来源:AccountScoped.java


注:本文中的android.content.ContentProviderOperation.Builder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。