/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | AppSearchSessionCtsTestBase.java | 135 mDb1.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 136 mDb2.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 142 new AppSearchSchema.Builder("Email") in testSetSchema() 144 new StringPropertyConfig.Builder("subject") in testSetSchema() 151 new StringPropertyConfig.Builder("body") in testSetSchema() 158 mDb1.setSchemaAsync(new SetSchemaRequest.Builder().addSchemas(emailSchema).build()).get(); in testSetSchema() 164 new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testSetSchema_Failure() 167 new AppSearchSchema.Builder(AppSearchEmail.SCHEMA_TYPE).build(); in testSetSchema_Failure() 170 new SetSchemaRequest.Builder().addSchemas(emailSchema1).build(); in testSetSchema_Failure() 181 SetSchemaRequest setSchemaRequest2 = new SetSchemaRequest.Builder().build(); in testSetSchema_Failure() [all …]
|
D | GlobalSearchSessionCtsTestBase.java | 111 mDb1.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 112 mDb2.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 145 new SearchSpec.Builder().setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY).build(); in testGlobalGetById() 149 new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testGlobalGetById() 157 new GetByDocumentIdRequest.Builder("namespace") in testGlobalGetById() 170 new AppSearchEmail.Builder("namespace", "id1") in testGlobalGetById() 178 new PutDocumentsRequest.Builder().addGenericDocuments(inEmail).build())); in testGlobalGetById() 186 new GetByDocumentIdRequest.Builder("namespace") in testGlobalGetById() 204 new GetByDocumentIdRequest.Builder("namespace") in testGlobalGetById_nonExistentPackage() 217 new SearchSpec.Builder().setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY).build(); in testGlobalQuery_oneInstance() [all …]
|
D | AppSearchSchemaMigrationCtsTestBase.java | 133 new AppSearchSchema.Builder("testSchema") in setUp() 135 new AppSearchSchema.StringPropertyConfig.Builder("subject") in setUp() 147 new SetSchemaRequest.Builder() in setUp() 153 new GenericDocument.Builder<>("namespace", "id0", "testSchema") in setUp() 160 new PutDocumentsRequest.Builder() in setUp() 170 mDb.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in tearDown() 178 new AppSearchSchema.Builder("testSchema") in test_ForceOverride_BackwardsCompatible_Trigger_MigrateIncompatibleType() 180 new AppSearchSchema.StringPropertyConfig.Builder("subject") in test_ForceOverride_BackwardsCompatible_Trigger_MigrateIncompatibleType() 193 new SetSchemaRequest.Builder() in test_ForceOverride_BackwardsCompatible_Trigger_MigrateIncompatibleType() 207 new AppSearchSchema.Builder("testSchema") in testForceOverride_BackwardsCompatible_NoTrigger_MigrateIncompatibleType() [all …]
|
D | PutDocumentsRequestCtsTest.java | 40 new AppSearchEmail.Builder("namespace", "test1").build(), in addGenericDocument_byCollection() 41 new AppSearchEmail.Builder("namespace", "test2").build()); in addGenericDocument_byCollection() 43 new PutDocumentsRequest.Builder().addGenericDocuments(emails).build(); in addGenericDocument_byCollection() 53 new GenericDocument.Builder<>("namespace", "id", "builtin:Thing").build(); in duplicateIdForNormalAndTakenActionGenericDocumentThrowsException() 55 new GenericDocument.Builder<>("namespace", "id", "builtin:ClickAction").build(); in duplicateIdForNormalAndTakenActionGenericDocumentThrowsException() 57 PutDocumentsRequest.Builder builder = in duplicateIdForNormalAndTakenActionGenericDocumentThrowsException() 58 new PutDocumentsRequest.Builder() in duplicateIdForNormalAndTakenActionGenericDocumentThrowsException() 73 new GenericDocument.Builder<>("namespace", "search1", "builtin:SearchAction") in addTakenActionGenericDocuments() 76 new GenericDocument.Builder<>("namespace", "click1", "builtin:ClickAction").build(); in addTakenActionGenericDocuments() 78 new GenericDocument.Builder<>("namespace", "click2", "builtin:ClickAction").build(); in addTakenActionGenericDocuments() [all …]
|
D | AppSearchSchemaCtsTest.java | 47 StringPropertyConfig.Builder builder = new StringPropertyConfig.Builder("test"); in testInvalidEnums() 53 StringPropertyConfig builder = new StringPropertyConfig.Builder("test").build(); in testStringPropertyConfigDefaultValues() 63 LongPropertyConfig builder = new LongPropertyConfig.Builder("test").build(); in testLongPropertyConfigDefaultValues() 70 AppSearchSchema.Builder builder = in testDuplicateProperties() 71 new AppSearchSchema.Builder("Email") in testDuplicateProperties() 73 new StringPropertyConfig.Builder("subject") in testDuplicateProperties() 84 new StringPropertyConfig.Builder("subject") in testDuplicateProperties() 97 new AppSearchSchema.Builder("Email") in testEquals_identical() 99 new StringPropertyConfig.Builder("subject") in testEquals_identical() 107 new AppSearchSchema.Builder("Email") in testEquals_identical() [all …]
|
D | SetSchemaRequestCtsTest.java | 47 new AppSearchSchema.StringPropertyConfig.Builder("prop1") in testBuildSetSchemaRequest() 53 AppSearchSchema schema1 = new AppSearchSchema.Builder("type1").addProperty(prop1).build(); in testBuildSetSchemaRequest() 54 AppSearchSchema schema2 = new AppSearchSchema.Builder("type2").addProperty(prop1).build(); in testBuildSetSchemaRequest() 55 AppSearchSchema schema3 = new AppSearchSchema.Builder("type3").addProperty(prop1).build(); in testBuildSetSchemaRequest() 56 AppSearchSchema schema4 = new AppSearchSchema.Builder("type4").addProperty(prop1).build(); in testBuildSetSchemaRequest() 62 new SetSchemaRequest.Builder() in testBuildSetSchemaRequest() 84 new AppSearchSchema.StringPropertyConfig.Builder("prop1") in testSetSchemaRequestTypeChanges() 91 new AppSearchSchema.Builder("type1").addProperty(requiredProp).build(); in testSetSchemaRequestTypeChanges() 93 new AppSearchSchema.Builder("type2").addProperty(requiredProp).build(); in testSetSchemaRequestTypeChanges() 95 new AppSearchSchema.Builder("type3").addProperty(requiredProp).build(); in testSetSchemaRequestTypeChanges() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | DatasetTest.java | 63 new Slice.Builder(new Uri.Builder().appendPath("DatasetTest").build(), 65 new InlinePresentationSpec.Builder(new Size(10, 10), 74 new Slice.Builder(new Uri.Builder().appendPath("DatasetTest").build(), 76 new InlinePresentationSpec.Builder(new Size(10, 10), 80 assertThrows(NullPointerException.class, () -> new Dataset.Builder((RemoteViews) null)); in testBuilder_nullPresentation() 86 () -> new Dataset.Builder((InlinePresentation) null)); in testBuilder_nullInlinePresentation() 91 assertThat(new Dataset.Builder(mPresentation)).isNotNull(); in testBuilder_validPresentations() 92 assertThat(new Dataset.Builder(mInlinePresentation)).isNotNull(); in testBuilder_validPresentations() 97 final Dataset.Builder builder = new Dataset.Builder(mPresentation); in testBuilder_setNullInlinePresentation() 103 assertThat(new Dataset.Builder().setInlinePresentation(mInlinePresentation)).isNotNull(); in testBuilder_setInlinePresentation() [all …]
|
D | SaveInfoTest.java | 49 () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, null)); in testRequiredIdsBuilder_null() 55 () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, new AutofillId[] {})); in testRequiredIdsBuilder_empty() 61 () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testRequiredIdsBuilder_nullEntry() 67 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptionalIds_null() 74 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptional_empty() 82 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptional_nullEntry() 90 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testAddSanitizer_illegalArgs() 111 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testAddSanitizer_sameIdOnDifferentCalls() 121 assertThat(new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, mIdArray) in testBuild_valid() 125 assertThat(new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC).setOptionalIds(mIdArray) in testBuild_valid() [all …]
|
D | FillResponseTest.java | 51 private final FillResponse.Builder mBuilder = new FillResponse.Builder(); 53 private final SaveInfo mSaveInfo = new SaveInfo.Builder(0, mIds).build(); 55 private final Dataset mDataset = new Dataset.Builder() 63 private final UserData mUserData = new UserData.Builder("id", "value", "cat").build(); 93 new FillResponse.Builder().setAuthentication(mIds, null, (RemoteViews) null); in testBuilder_setAuthentication_valid() 94 new FillResponse.Builder().setAuthentication(mIds, mIntentSender, mPresentation); in testBuilder_setAuthentication_valid() 100 () -> new FillResponse.Builder().setHeader(mHeader).setAuthentication(mIds, in testBuilder_setAuthentication_illegalState() 103 () -> new FillResponse.Builder().setFooter(mFooter).setAuthentication(mIds, in testBuilder_setAuthentication_illegalState() 109 assertThrows(NullPointerException.class, () -> new FillResponse.Builder().setHeader(null)); in testBuilder_setHeaderOrFooterInvalid() 110 assertThrows(NullPointerException.class, () -> new FillResponse.Builder().setFooter(null)); in testBuilder_setHeaderOrFooterInvalid() [all …]
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobInfoTest.java | 64 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBackoffCriteria() 72 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBackoffCriteria() 82 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBatteryNotLow() 89 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBatteryNotLow() 98 JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, kJobServiceComponent); in testBias() 100 Method setBiasMethod = JobInfo.Builder.class.getDeclaredMethod("setBias", int.class); in testBias() 126 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testCharging() 133 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testCharging() 143 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testClipData() 151 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testClipData() [all …]
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioAttributesTest.java | 49 final AudioAttributes aa = new AudioAttributes.Builder() in testParcelableDescribeContents() 58 final AudioAttributes srcAttr = new AudioAttributes.Builder() in testParcelableWriteToParcelCreate() 88 final AudioAttributes aa = new AudioAttributes.Builder().setLegacyStreamType(testType) in testGetVolumeControlStreamVsLegacyStream() 97 final AudioAttributes internalContentApiAttr = new AudioAttributes.Builder() in testSetUltrasoundContentType() 109 () -> { new AudioAttributes.Builder() in testInvalidUsage() 118 new AudioAttributes.Builder() in testInvalidContentType() 125 final AudioAttributes aa = new AudioAttributes.Builder() in testDefaultUnknown() 140 AudioAttributes.Builder builder = new AudioAttributes.Builder(); in testSetUsage_throwsWhenPassedSystemUsage() 147 setSystemUsage(new AudioAttributes.Builder(), AudioAttributes.USAGE_MEDIA); in testSetSystemUsage_throwsWhenPassedSdkUsage() 156 AudioAttributes.Builder builder = new AudioAttributes.Builder() in testBuild_throwsWhenSettingBothSystemAndSdkUsages() [all …]
|
D | AudioMixTest.java | 56 new AudioFormat.Builder() 62 new AudioFormat.Builder() 67 new AudioFormat.Builder() 72 new AudioFormat.Builder() 78 new AudioAttributes.Builder() 89 new AudioMix.Builder(new AudioMixingRule.Builder() in testEquals() 101 new AudioMix.Builder(new AudioMixingRule.Builder() in testEquals() 112 new AudioMix.Builder(new AudioMixingRule.Builder() in testEquals() 124 new AudioMix.Builder(new AudioMixingRule.Builder() in testEquals() 134 new AudioMix.Builder(new AudioMixingRule.Builder() in testEquals() [all …]
|
/cts/tests/smartspace/src/android/smartspace/cts/ |
D | CombinedCardsTemplateDataTest.java | 54 new CombinedCardsTemplateData.Builder(dataList).build(); in testCreateCombinedCardsTemplateData() 69 return new BaseTemplateData.Builder(SmartspaceTarget.UI_TEMPLATE_DEFAULT) in createBaseTemplateData() 70 .setPrimaryItem(new SubItemInfo.Builder() in createBaseTemplateData() 71 .setText(new Text.Builder("title").build()) in createBaseTemplateData() 76 .setLoggingInfo(new SubItemLoggingInfo.Builder(0, 0).setPackageName( in createBaseTemplateData() 79 .setSubtitleItem(new SubItemInfo.Builder() in createBaseTemplateData() 80 .setText(new Text.Builder("subtitle").build()) in createBaseTemplateData() 85 .setLoggingInfo(new SubItemLoggingInfo.Builder(1, 1).setPackageName( in createBaseTemplateData() 88 .setSubtitleSupplementalItem(new SubItemInfo.Builder() in createBaseTemplateData() 89 .setText(new Text.Builder("subtitle supplemental").build()) in createBaseTemplateData() [all …]
|
D | BaseTemplateDataTest.java | 46 SubItemInfo primaryItem = new SubItemInfo.Builder() in testCreateBaseTemplateData() 47 .setText(new Text.Builder("title").build()) in testCreateBaseTemplateData() 52 .setLoggingInfo(new SubItemLoggingInfo.Builder(0, 0).setPackageName( in testCreateBaseTemplateData() 55 SubItemInfo subtitleItem = new SubItemInfo.Builder() in testCreateBaseTemplateData() 56 .setText(new Text.Builder("subtitle").build()) in testCreateBaseTemplateData() 61 .setLoggingInfo(new SubItemLoggingInfo.Builder(1, 1).setPackageName( in testCreateBaseTemplateData() 64 SubItemInfo subtitleSupplementalItem = new SubItemInfo.Builder() in testCreateBaseTemplateData() 65 .setText(new Text.Builder("subtitle supplemental").build()) in testCreateBaseTemplateData() 71 .setLoggingInfo(new SubItemLoggingInfo.Builder(2, 2).setPackageName( in testCreateBaseTemplateData() 74 SubItemInfo supplementalLineItem = new SubItemInfo.Builder() in testCreateBaseTemplateData() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | CannedFillResponse.java | 101 private final DoubleVisitor<List<FillContext>, FillResponse.Builder> mVisitor; 102 private DoubleVisitor<List<FillContext>, SaveInfo.Builder> mSaveInfoVisitor; 112 private CannedFillResponse(Builder builder) { in CannedFillResponse() 156 new Builder(ResponseType.NULL).build(); 162 new Builder(ResponseType.NO_MORE).build(); 168 new Builder(ResponseType.TIMEOUT).build(); 174 new Builder(ResponseType.FAILURE).build(); 241 final FillResponse.Builder builder = new FillResponse.Builder() 250 final SaveInfo.Builder saveInfoBuilder; 254 saveInfoBuilder = new SaveInfo.Builder(mSaveType, mRequiredSavableAutofillIds); [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceCustomFallbackBuilderTest.java | 51 FontFamily.Builder b = null; in createFullFamilyTypeface() 57 b = new FontFamily.Builder(new Font.Builder(am, in createFullFamilyTypeface() 60 b.addFont(new Font.Builder(am, in createFullFamilyTypeface() 77 new FontFamily.Builder( in testSingleFont_path() 78 new Font.Builder(am, path).build()).build()).build())); in testSingleFont_path() 92 new FontFamily.Builder( in testSingleFont_ttc() 93 new Font.Builder(am, FontTestUtil.getTtcFontFileInAsset()) in testSingleFont_ttc() 107 new Typeface.CustomFallbackBuilder(new FontFamily.Builder( in testSingleFont_vf() 108 new Font.Builder(am, FontTestUtil.getVFFontInAsset()) in testSingleFont_vf() 136 FontFamily.Builder b = null; in testFamily_selectStyleByBuilder() [all …]
|
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/testutil/ |
D | AppSearchEmail.java | 46 new AppSearchSchema.Builder(SCHEMA_TYPE) 48 new StringPropertyConfig.Builder(KEY_FROM) 54 new StringPropertyConfig.Builder(KEY_TO) 60 new StringPropertyConfig.Builder(KEY_CC) 66 new StringPropertyConfig.Builder(KEY_BCC) 72 new StringPropertyConfig.Builder(KEY_SUBJECT) 78 new StringPropertyConfig.Builder(KEY_BODY) 157 public static class Builder extends GenericDocument.Builder<Builder> { class in AppSearchEmail 164 public Builder(@NonNull String namespace, @NonNull String id) { in Builder() method in AppSearchEmail.Builder 171 public Builder setFrom(@NonNull String from) { in setFrom() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontFamilyUpdateRequestTest.java | 51 FontFamilyUpdateRequest.Font font = new FontFamilyUpdateRequest.Font.Builder( in font() 60 new FontFamilyUpdateRequest.Font.Builder(null, style).setAxes(axes)); in font() 62 new FontFamilyUpdateRequest.Font.Builder("", style).setAxes(axes)); in font() 64 new FontFamilyUpdateRequest.Font.Builder(postScriptName, null) in font() 67 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style) in font() 70 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style) in font() 73 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style).setIndex(-1)); in font() 80 FontFamilyUpdateRequest.Font font1 = new FontFamilyUpdateRequest.Font.Builder("Test", in fontFamily() 82 FontFamilyUpdateRequest.Font font2 = new FontFamilyUpdateRequest.Font.Builder("Test", in fontFamily() 85 new FontFamilyUpdateRequest.FontFamily.Builder(name, in fontFamily() [all …]
|
D | FontFamilyTest.java | 44 Font font = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf").build(); in testBuilder_SingleFont() 45 FontFamily family = new FontFamily.Builder(font).build(); in testBuilder_SingleFont() 54 Font regularFont = new Font.Builder( in testBuilder_MultipleFont() 56 Font boldFont = new Font.Builder( in testBuilder_MultipleFont() 58 FontFamily family = new FontFamily.Builder(regularFont).addFont(boldFont).build(); in testBuilder_MultipleFont() 69 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideWeight() 71 Font boldFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideWeight() 73 FontFamily family = new FontFamily.Builder(regularFont).addFont(boldFont).build(); in testBuilder_MultipleFont_overrideWeight() 84 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideItalic() 86 Font italicFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideItalic() [all …]
|
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | CujTestParam.java | 33 public static Builder builder() { in builder() 34 return new AutoValue_CujTestParam.Builder(); in builder() 55 @AutoValue.Builder 56 public abstract static class Builder { class in CujTestParam 61 public abstract Builder setMediaUrls(List<String> mediaUrls); in setMediaUrls() 66 public abstract Builder setTimeoutMilliSeconds(long timeoutMilliSeconds); in setTimeoutMilliSeconds() 71 public abstract Builder setPlayerListener(PlayerListener playerListener); in setPlayerListener()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | PartitionedActivityTest.java | 70 final CannedFillResponse response1 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsSkipFirst() 71 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsSkipFirst() 93 final CannedFillResponse response2 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsSkipFirst() 94 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsSkipFirst() 147 final CannedFillResponse response1 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsInSequence() 148 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsInSequence() 175 final CannedFillResponse response2 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsInSequence() 176 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsInSequence() 220 final CannedFillResponse response1 = new CannedFillResponse.Builder() in autofill4PartitionsTest() 221 .addDataset(new CannedDataset.Builder() in autofill4PartitionsTest() [all …]
|
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/ |
D | FormEditRecordTest.java | 44 FormEditRecord clickRecord = new FormEditRecord.Builder( in testClickType() 63 FormEditRecord setIndicesRecord = new FormEditRecord.Builder( in testSetIndicesType() 82 FormEditRecord setTextRecord = new FormEditRecord.Builder( in testSetTextType() 101 FormEditRecord in = new FormEditRecord.Builder( in parcelable_textType() 120 FormEditRecord in = new FormEditRecord.Builder( in parcelable_indicesType() 139 FormEditRecord in = new FormEditRecord.Builder( in parcelable_clickType() 165 FormEditRecord record = new FormEditRecord.Builder( in describeContents() 176 FormEditRecord one = new FormEditRecord.Builder( in equalsHashCode_textType_matchingProperties() 180 FormEditRecord two = new FormEditRecord.Builder( in equalsHashCode_textType_matchingProperties() 192 FormEditRecord one = new FormEditRecord.Builder( in equalsHashCode_clickType_matchingProperties() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 40 import android.view.inputmethod.CursorAnchorInfo.Builder; 150 new EditorBoundsInfo.Builder().setEditorBounds(MANY_BOUNDS[0]) in testBuilder() 155 final Builder builder = new Builder(); in testBuilder() 327 assertEquals(new Builder().build(), new Builder().build()); in testEquality() 330 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build(), in testEquality() 331 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build()); in testEquality() 333 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build(), in testEquality() 334 new Builder().setSelectionRange(selectionStart1, selectionEnd2).build()); in testEquality() 336 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build(), in testEquality() 337 new Builder().setSelectionRange(selectionStart2, selectionEnd1).build()); in testEquality() [all …]
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | SliceProvider.java | 21 import android.app.slice.Slice.Builder; 64 Uri.Builder builder = new Uri.Builder() in onGetSliceDescendants() 80 Builder b = new Builder(sliceUri, SPEC); in onBindSlice() 81 return b.addSubSlice(new Slice.Builder(b).build(), "subslice").build(); in onBindSlice() 83 return new Slice.Builder(sliceUri, SPEC).addText("Expected text", "text", in onBindSlice() 86 return new Slice.Builder(sliceUri, SPEC).addIcon( in onBindSlice() 90 Builder builder = new Builder(sliceUri, SPEC); in onBindSlice() 91 Slice subSlice = new Slice.Builder(builder).build(); in onBindSlice() 97 return new Slice.Builder(sliceUri, SPEC).addInt(0xff121212, "int", in onBindSlice() 100 return new Slice.Builder(sliceUri, SPEC).addLong(43, "timestamp", in onBindSlice() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | ConfigUtils.java | 65 public static StatsdConfig.Builder createConfigBuilder(String pkgName) { in createConfigBuilder() 94 public static void addEventMetricForUidAtom(StatsdConfig.Builder config, int atomId, in addEventMetricForUidAtom() 96 FieldValueMatcher.Builder fvm = createUidFvm(uidInAttributionChain, pkgName); in addEventMetricForUidAtom() 108 public static void addEventMetric(StatsdConfig.Builder config, int atomId) { in addEventMetric() 120 public static void addEventMetric(StatsdConfig.Builder config, int atomId, in addEventMetric() 121 @Nullable List<FieldValueMatcher.Builder> fvms) { in addEventMetric() 125 SimpleAtomMatcher.Builder sam = SimpleAtomMatcher.newBuilder().setAtomId(atomId); in addEventMetric() 127 for (FieldValueMatcher.Builder fvm : fvms) { in addEventMetric() 151 public static void addGaugeMetricForUidAtom(StatsdConfig.Builder config, int atomId, in addGaugeMetricForUidAtom() 163 public static void addGaugeMetricForUidAtomWithDimensions(StatsdConfig.Builder config, in addGaugeMetricForUidAtomWithDimensions() [all …]
|