/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | AppSearchSessionCtsTestBase.java | 104 mDb1.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 105 mDb2.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 111 new AppSearchSchema.Builder("Email") in testSetSchema() 113 new StringPropertyConfig.Builder("subject") in testSetSchema() 120 new StringPropertyConfig.Builder("body") in testSetSchema() 127 mDb1.setSchema(new SetSchemaRequest.Builder().addSchemas(emailSchema).build()).get(); in testSetSchema() 132 mDb1.setSchema(new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testSetSchema_Failure() 135 new AppSearchSchema.Builder(AppSearchEmail.SCHEMA_TYPE).build(); in testSetSchema_Failure() 142 new SetSchemaRequest.Builder() in testSetSchema_Failure() 156 () -> mDb1.setSchema(new SetSchemaRequest.Builder().build()).get()) in testSetSchema_Failure() [all …]
|
D | GlobalSearchSessionCtsTestBase.java | 92 mDb1.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 93 mDb2.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 123 new SearchSpec.Builder().setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY).build(); in testGlobalQuery_oneInstance() 129 mDb1.setSchema(new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testGlobalQuery_oneInstance() 134 new AppSearchEmail.Builder("namespace", "id1") in testGlobalQuery_oneInstance() 141 mDb1.put(new PutDocumentsRequest.Builder().addGenericDocuments(inEmail).build())); in testGlobalQuery_oneInstance() 161 new SearchSpec.Builder().setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY).build(); in testGlobalQuery_twoInstances() 165 mDb1.setSchema(new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testGlobalQuery_twoInstances() 167 mDb2.setSchema(new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testGlobalQuery_twoInstances() 172 new AppSearchEmail.Builder("namespace", "id1") in testGlobalQuery_twoInstances() [all …]
|
D | AppSearchSchemaMigrationCtsTestBase.java | 134 new AppSearchSchema.Builder("testSchema") in setUp() 136 new AppSearchSchema.StringPropertyConfig.Builder("subject") in setUp() 148 new SetSchemaRequest.Builder() in setUp() 154 new GenericDocument.Builder<>("namespace", "id0", "testSchema") in setUp() 161 new PutDocumentsRequest.Builder() in setUp() 171 mDb.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in tearDown() 178 new AppSearchSchema.Builder("testSchema") in testSchemaMigration_A_B_C_D() 180 new AppSearchSchema.StringPropertyConfig.Builder("subject") in testSchemaMigration_A_B_C_D() 193 new SetSchemaRequest.Builder() in testSchemaMigration_A_B_C_D() 206 new AppSearchSchema.Builder("testSchema") in testSchemaMigration_A_B_NC_D() [all …]
|
D | AppSearchSchemaCtsTest.java | 36 StringPropertyConfig.Builder builder = new StringPropertyConfig.Builder("test"); in testInvalidEnums() 42 StringPropertyConfig builder = new StringPropertyConfig.Builder("test").build(); in testDefaultValues() 50 AppSearchSchema.Builder builder = in testDuplicateProperties() 51 new AppSearchSchema.Builder("Email") in testDuplicateProperties() 53 new StringPropertyConfig.Builder("subject") in testDuplicateProperties() 64 new StringPropertyConfig.Builder("subject") in testDuplicateProperties() 77 new AppSearchSchema.Builder("Email") in testEquals_identical() 79 new StringPropertyConfig.Builder("subject") in testEquals_identical() 87 new AppSearchSchema.Builder("Email") in testEquals_identical() 89 new StringPropertyConfig.Builder("subject") in testEquals_identical() [all …]
|
D | SetSchemaRequestCtsTest.java | 44 new AppSearchSchema.StringPropertyConfig.Builder("prop1") in testBuildSetSchemaRequest() 50 AppSearchSchema schema1 = new AppSearchSchema.Builder("type1").addProperty(prop1).build(); in testBuildSetSchemaRequest() 51 AppSearchSchema schema2 = new AppSearchSchema.Builder("type2").addProperty(prop1).build(); in testBuildSetSchemaRequest() 52 AppSearchSchema schema3 = new AppSearchSchema.Builder("type3").addProperty(prop1).build(); in testBuildSetSchemaRequest() 53 AppSearchSchema schema4 = new AppSearchSchema.Builder("type4").addProperty(prop1).build(); in testBuildSetSchemaRequest() 59 new SetSchemaRequest.Builder() in testBuildSetSchemaRequest() 81 new AppSearchSchema.StringPropertyConfig.Builder("prop1") in testSetSchemaRequestTypeChanges() 88 new AppSearchSchema.Builder("type1").addProperty(requiredProp).build(); in testSetSchemaRequestTypeChanges() 90 new AppSearchSchema.Builder("type2").addProperty(requiredProp).build(); in testSetSchemaRequestTypeChanges() 92 new AppSearchSchema.Builder("type3").addProperty(requiredProp).build(); in testSetSchemaRequestTypeChanges() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | DatasetTest.java | 59 new Slice.Builder(new Uri.Builder().appendPath("DatasetTest").build(), 61 new InlinePresentationSpec.Builder(new Size(10, 10), 71 assertThrows(NullPointerException.class, () -> new Dataset.Builder((RemoteViews) null)); in testBuilder_nullPresentation() 77 () -> new Dataset.Builder((InlinePresentation) null)); in testBuilder_nullInlinePresentation() 82 assertThat(new Dataset.Builder(mPresentation)).isNotNull(); in testBuilder_validPresentations() 83 assertThat(new Dataset.Builder(mInlinePresentation)).isNotNull(); in testBuilder_validPresentations() 88 final Dataset.Builder builder = new Dataset.Builder(mPresentation); in testBuilder_setNullInlinePresentation() 94 assertThat(new Dataset.Builder().setInlinePresentation(mInlinePresentation)).isNotNull(); in testBuilder_setInlinePresentation() 99 final Dataset.Builder builder = new Dataset.Builder(mPresentation); in testBuilder_setValueNullId() 106 assertThat(new Dataset.Builder().setValue(mId, mValue).build()).isNotNull(); in testBuilder_setValueWithoutPresentation() [all …]
|
D | SaveInfoTest.java | 50 () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, null)); in testRequiredIdsBuilder_null() 56 () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, new AutofillId[] {})); in testRequiredIdsBuilder_empty() 62 () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testRequiredIdsBuilder_nullEntry() 68 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC); in testBuild_noOptionalIds() 74 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptionalIds_null() 81 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptional_empty() 89 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptional_nullEntry() 97 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testAddSanitizer_illegalArgs() 118 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testAddSanitizer_sameIdOnDifferentCalls() 127 assertThrows(IllegalStateException.class, () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC) in testBuild_invalid() [all …]
|
D | FillResponseTest.java | 47 private final FillResponse.Builder mBuilder = new FillResponse.Builder(); 49 private final SaveInfo mSaveInfo = new SaveInfo.Builder(0, mIds).build(); 51 private final Dataset mDataset = new Dataset.Builder() 59 private final UserData mUserData = new UserData.Builder("id", "value", "cat").build(); 84 new FillResponse.Builder().setAuthentication(mIds, null, null); in testBuilder_setAuthentication_valid() 85 new FillResponse.Builder().setAuthentication(mIds, mIntentSender, mPresentation); in testBuilder_setAuthentication_valid() 91 () -> new FillResponse.Builder().setHeader(mHeader).setAuthentication(mIds, in testBuilder_setAuthentication_illegalState() 94 () -> new FillResponse.Builder().setFooter(mFooter).setAuthentication(mIds, in testBuilder_setAuthentication_illegalState() 100 assertThrows(NullPointerException.class, () -> new FillResponse.Builder().setHeader(null)); in testBuilder_setHeaderOrFooterInvalid() 101 assertThrows(NullPointerException.class, () -> new FillResponse.Builder().setFooter(null)); in testBuilder_setHeaderOrFooterInvalid() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioAttributesTest.java | 46 final AudioAttributes aa = new AudioAttributes.Builder() in testParcelableDescribeContents() 55 final AudioAttributes srcAttr = new AudioAttributes.Builder() in testParcelableWriteToParcelCreate() 85 final AudioAttributes aa = new AudioAttributes.Builder().setLegacyStreamType(testType) in testGetVolumeControlStreamVsLegacyStream() 97 () -> { new AudioAttributes.Builder() in testInvalidUsage() 106 new AudioAttributes.Builder() in testInvalidContentType() 113 final AudioAttributes aa = new AudioAttributes.Builder() in testDefaultUnknown() 128 AudioAttributes.Builder builder = new AudioAttributes.Builder(); in testSetUsage_throwsWhenPassedSystemUsage() 135 setSystemUsage(new AudioAttributes.Builder(), AudioAttributes.USAGE_MEDIA); in testSetSystemUsage_throwsWhenPassedSdkUsage() 144 AudioAttributes.Builder builder = new AudioAttributes.Builder() in testBuild_throwsWhenSettingBothSystemAndSdkUsages() 161 AudioAttributes attributes = new AudioAttributes.Builder() in testGetSystemUsage_returnsSetUsage() [all …]
|
D | RouteDiscoveryPreferenceTest.java | 49 () -> new RouteDiscoveryPreference.Builder(null, true)); in testBuilderConstructorWithNull() 53 () -> new RouteDiscoveryPreference.Builder((RouteDiscoveryPreference) null)); in testBuilderConstructorWithNull() 58 RouteDiscoveryPreference.Builder builder = in testBuilderSetPreferredFeaturesWithNull() 59 new RouteDiscoveryPreference.Builder(new ArrayList<>(), true); in testBuilderSetPreferredFeaturesWithNull() 71 new RouteDiscoveryPreference.Builder(features, true /* isActiveScan */).build(); in testGetters() 84 new RouteDiscoveryPreference.Builder(features, true /* isActiveScan */).build(); in testBuilderSetPreferredFeatures() 90 RouteDiscoveryPreference newPreference = new RouteDiscoveryPreference.Builder(preference) in testBuilderSetPreferredFeatures() 105 new RouteDiscoveryPreference.Builder(features, true /* isActiveScan */).build(); in testBuilderSetActiveScan() 108 RouteDiscoveryPreference newPreference = new RouteDiscoveryPreference.Builder(preference) in testBuilderSetActiveScan() 123 new RouteDiscoveryPreference.Builder(features, true /* isActiveScan */).build(); in testEqualsCreatedWithSameArguments() [all …]
|
D | RoutingSessionInfoTest.java | 76 assertThrows(IllegalArgumentException.class, () -> new RoutingSessionInfo.Builder( in testBuilderConstructorWithInvalidValues() 78 assertThrows(IllegalArgumentException.class, () -> new RoutingSessionInfo.Builder( in testBuilderConstructorWithInvalidValues() 82 assertThrows(NullPointerException.class, () -> new RoutingSessionInfo.Builder( in testBuilderConstructorWithInvalidValues() 86 assertThrows(IllegalArgumentException.class, () -> new RoutingSessionInfo.Builder( in testBuilderConstructorWithInvalidValues() 88 assertThrows(IllegalArgumentException.class, () -> new RoutingSessionInfo.Builder( in testBuilderConstructorWithInvalidValues() 97 () -> new RoutingSessionInfo.Builder(nullRoutingSessionInfo)); in testBuilderCopyConstructorWithNull() 104 RoutingSessionInfo.Builder builder = new RoutingSessionInfo.Builder( in testBuilderConstructorWithEmptyClientPackageName() 110 RoutingSessionInfo.Builder builder = new RoutingSessionInfo.Builder( in testBuilderBuildWithEmptySelectedRoutesThrowsIAE() 118 RoutingSessionInfo.Builder builder = new RoutingSessionInfo.Builder( in testBuilderAddRouteMethodsWithIllegalArgumentsThrowsIAE() 145 RoutingSessionInfo.Builder builder = new RoutingSessionInfo.Builder( in testBuilderRemoveRouteMethodsWithIllegalArgumentsThrowsIAE() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | CannedFillResponse.java | 98 private final DoubleVisitor<List<FillContext>, FillResponse.Builder> mVisitor; 99 private DoubleVisitor<List<FillContext>, SaveInfo.Builder> mSaveInfoVisitor; 102 private CannedFillResponse(Builder builder) { in CannedFillResponse() 140 new Builder(ResponseType.NULL).build(); 146 new Builder(ResponseType.NO_MORE).build(); 152 new Builder(ResponseType.TIMEOUT).build(); 158 new Builder(ResponseType.FAILURE).build(); 174 final FillResponse.Builder builder = new FillResponse.Builder() in asFillResponse() 183 final SaveInfo.Builder saveInfoBuilder; in asFillResponse() 187 saveInfoBuilder = new SaveInfo.Builder(mSaveType, mRequiredSavableAutofillIds); in asFillResponse() [all …]
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobInfoTest.java | 47 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBackoffCriteria() 55 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBackoffCriteria() 65 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBatteryNotLow() 72 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBatteryNotLow() 81 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testCharging() 88 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testCharging() 98 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testClipData() 106 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testClipData() 116 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testDeviceIdle() 123 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testDeviceIdle() [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/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/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/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 34 import android.view.inputmethod.CursorAnchorInfo.Builder; 106 final Builder builder = new Builder(); in testBuilder() 242 assertEquals(new Builder().build(), new Builder().build()); in testEquality() 245 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build(), in testEquality() 246 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build()); in testEquality() 248 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build(), in testEquality() 249 new Builder().setSelectionRange(selectionStart1, selectionEnd2).build()); in testEquality() 251 new Builder().setSelectionRange(selectionStart1, selectionEnd1).build(), in testEquality() 252 new Builder().setSelectionRange(selectionStart2, selectionEnd1).build()); in testEquality() 254 new Builder().setSelectionRange(selectionStart1, 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 | 66 public static StatsdConfig.Builder createConfigBuilder(String pkgName) { in createConfigBuilder() 96 public static void addEventMetricForUidAtom(StatsdConfig.Builder config, int atomId, in addEventMetricForUidAtom() 98 FieldValueMatcher.Builder fvm = createUidFvm(uidInAttributionChain, pkgName); in addEventMetricForUidAtom() 110 public static void addEventMetric(StatsdConfig.Builder config, int atomId) { in addEventMetric() 122 public static void addEventMetric(StatsdConfig.Builder config, int atomId, in addEventMetric() 123 @Nullable List<FieldValueMatcher.Builder> fvms) { in addEventMetric() 127 SimpleAtomMatcher.Builder sam = SimpleAtomMatcher.newBuilder().setAtomId(atomId); in addEventMetric() 129 for (FieldValueMatcher.Builder fvm : fvms) { in addEventMetric() 153 public static void addGaugeMetricForUidAtom(StatsdConfig.Builder config, int atomId, in addGaugeMetricForUidAtom() 165 public static void addGaugeMetricForUidAtomWithDimensions(StatsdConfig.Builder config, in addGaugeMetricForUidAtomWithDimensions() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | VibrationAttributesTest.java | 57 AudioAttributes tmp = new AudioAttributes.Builder() in testCreate() 60 VibrationAttributes attr = new VibrationAttributes.Builder(tmp, null).build(); in testCreate() 69 AudioAttributes tmp = new AudioAttributes.Builder() in testGetAudioUsageReturnOriginalUsage() 72 VibrationAttributes attr = new VibrationAttributes.Builder(tmp, null).build(); in testGetAudioUsageReturnOriginalUsage() 79 VibrationAttributes attr = new VibrationAttributes.Builder() in testGetAudioUsageUnknownReturnsBasedOnVibrationUsage() 88 VibrationAttributes attr = new VibrationAttributes.Builder(tmp, null).build(); in testEquals() 89 VibrationAttributes attr2 = new VibrationAttributes.Builder(tmp, null).build(); in testEquals() 97 VibrationAttributes attr = new VibrationAttributes.Builder(tmp, null).build(); in testNotEqualsDifferentAudioUsage() 100 VibrationAttributes attr2 = new VibrationAttributes.Builder(tmp2, null).build(); in testNotEqualsDifferentAudioUsage() 107 VibrationAttributes attr = new VibrationAttributes.Builder() in testNotEqualsDifferentVibrationUsage() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | MoreCollectors.java | 23 import java.util.stream.Stream.Builder; 44 final BiConsumer<Builder<E>, E> endingAtAccumulator = new BiConsumer<Builder<E>, E>() { in endingAt() 48 public void accept(Builder<E> builder, E element) { in endingAt() 64 Builder::build); in endingAt() 81 final BiConsumer<Builder<E>, E> startingFromAccumulator = new BiConsumer<Builder<E>, E>() { in startingFrom() 85 public void accept(Builder<E> builder, E element) { in startingFrom() 102 Builder::build); in startingFrom()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/ |
D | ActivityInfo.java | 36 public static Builder builder() { in builder() 37 return new Builder(); in builder() 40 public static Builder builder(android.content.pm.ActivityInfo activityInfo) { in builder() 75 public static final class Builder { class in ActivityInfo 80 public Builder activityClass(String activityClassName) { in activityClass() 85 public Builder activityClass(Activity activity) { in activityClass() 89 public Builder activityClass(Class<? extends Activity> activityClass) { in activityClass() 93 public Builder exported(boolean exported) { in exported() 99 public Builder intentFilters(Set<IntentFilter> intentFilters) { in intentFilters()
|
D | ServiceInfo.java | 36 public static Builder builder() { in builder() 37 return new Builder(); in builder() 41 public static Builder builder(android.content.pm.ServiceInfo serviceInfo) { in builder() 69 public static final class Builder { class in ServiceInfo 74 public Builder serviceClass(String serviceClassName) { in serviceClass() 80 public Builder serviceClass(Service service) { in serviceClass() 85 public Builder serviceClass(Class<? extends Service> serviceClass) { in serviceClass() 90 public ServiceInfo.Builder intentFilters(Set<IntentFilter> intentFilters) { in intentFilters()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | ShellCommand.java | 41 public static Builder builder(String command) { in builder() 45 return new Builder(command); in builder() 52 public static Builder builderForUser(@Nullable UserReference userReference, String command) { in builderForUser() 53 Builder builder = builder(command); in builderForUser() 61 public static final class Builder { class in ShellCommand 71 private Builder(String command) { in Builder() method in ShellCommand.Builder 81 public Builder addOption(String key, Object value) { in addOption() 91 public Builder addOperand(Object value) { in addOperand() 103 public Builder allowEmptyOutput(boolean allowEmptyOutput) { in allowEmptyOutput() 112 public Builder writeToStdIn(byte[] stdIn) { in writeToStdIn() [all …]
|