/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | CannedFillResponse.java | 93 private final DoubleVisitor<List<FillContext>, FillResponse.Builder> mVisitor; 94 private DoubleVisitor<List<FillContext>, SaveInfo.Builder> mSaveInfoVisitor; 96 private CannedFillResponse(Builder builder) { in CannedFillResponse() 131 new Builder(ResponseType.NULL).build(); 137 new Builder(ResponseType.NO_MORE).build(); 143 new Builder(ResponseType.TIMEOUT).build(); 149 new Builder(ResponseType.FAILURE).build(); 165 final FillResponse.Builder builder = new FillResponse.Builder() in asFillResponse() 174 final SaveInfo.Builder saveInfoBuilder; in asFillResponse() 178 saveInfoBuilder = new SaveInfo.Builder(mSaveType, mRequiredSavableAutofillIds); in asFillResponse() [all …]
|
D | PartitionedActivityTest.java | 67 final CannedFillResponse response1 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsSkipFirst() 68 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsSkipFirst() 90 final CannedFillResponse response2 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsSkipFirst() 91 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsSkipFirst() 146 final CannedFillResponse response1 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsInSequence() 147 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsInSequence() 174 final CannedFillResponse response2 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsInSequence() 175 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsInSequence() 221 final CannedFillResponse response1 = new CannedFillResponse.Builder() in autofill4PartitionsTest() 222 .addDataset(new CannedDataset.Builder() in autofill4PartitionsTest() [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 …]
|
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 | DatasetFilteringTest.java | 72 sReplier.addResponse(new CannedFillResponse.Builder() in testFilter() 73 .addDataset(new CannedDataset.Builder() in testFilter() 77 .addDataset(new CannedDataset.Builder() in testFilter() 81 .addDataset(new CannedDataset.Builder() in testFilter() 126 sReplier.addResponse(new CannedFillResponse.Builder() in testFilter_injectingEvents() 127 .addDataset(new CannedDataset.Builder() in testFilter_injectingEvents() 131 .addDataset(new CannedDataset.Builder() in testFilter_injectingEvents() 135 .addDataset(new CannedDataset.Builder() in testFilter_injectingEvents() 184 sReplier.addResponse(new CannedFillResponse.Builder() in testFilter_usingKeyboard() 185 .addDataset(new CannedDataset.Builder() in testFilter_usingKeyboard() [all …]
|
D | DatasetTest.java | 49 assertThrows(NullPointerException.class, () -> new Dataset.Builder(null)); in testBuilder_nullPresentation() 54 final Dataset.Builder builder = new Dataset.Builder(mPresentation); in testBuilder_setValueNullId() 61 assertThat(new Dataset.Builder().setValue(mId, mValue).build()).isNotNull(); in testBuilder_setValueWithoutPresentation() 66 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setValueWithNullPresentation() 73 assertThat(new Dataset.Builder(mPresentation).setValue(mId, mValue, (Pattern) null).build()) in testBuilder_setFilteredValueWithNullFilter() 79 assertThat(new Dataset.Builder().setValue(mId, mValue, null, mPresentation).build()) in testBuilder_setFilteredValueWithPresentationNullFilter() 85 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setFilteredValueWithPresentationNullPresentation() 92 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setFilteredValueWithoutPresentation() 98 final Dataset.Builder builder = new Dataset.Builder(); in testBuild_noValues() 104 final Dataset.Builder builder = new Dataset.Builder(); in testNoMoreInteractionsAfterBuild()
|
D | CustomDescriptionTest.java | 66 sReplier.addResponse(new CannedFillResponse.Builder() in testCustomDescription() 100 sReplier.addResponse(new CannedFillResponse.Builder() in testSanitizationBeforeBatchUpdates() 117 .Builder(presentation) in testSanitizationBeforeBatchUpdates() 119 new BatchUpdates.Builder().updateTemplate(update).build()) in testSanitizationBeforeBatchUpdates() 148 sReplier.addResponse(new CannedFillResponse.Builder() in testSanitizationBeforeTransformations() 159 .Builder(usernameId, Pattern.compile("user"), "transformed") in testSanitizationBeforeTransformations() 163 .Builder(presentation) in testSanitizationBeforeTransformations() 194 .Builder(usernameId, Pattern.compile("(.*)"), "$1") in validTransformation() 199 .Builder(usernameId, Pattern.compile(".*"), in validTransformation() 202 return new CustomDescription.Builder(presentation) in validTransformation() [all …]
|
D | AuthenticationTest.java | 68 new CannedDataset.Builder() in datasetAuthTwoFields() 74 sReplier.addResponse(new CannedFillResponse.Builder() in datasetAuthTwoFields() 75 .addDataset(new CannedDataset.Builder() in datasetAuthTwoFields() 147 new CannedFillResponse.Builder().addDataset( in testDatasetAuthTwoFieldsReplaceResponse() 148 new CannedDataset.Builder() in testDatasetAuthTwoFieldsReplaceResponse() 160 sReplier.addResponse(new CannedFillResponse.Builder() in testDatasetAuthTwoFieldsReplaceResponse() 161 .addDataset(new CannedDataset.Builder() in testDatasetAuthTwoFieldsReplaceResponse() 209 new CannedDataset.Builder() in testDatasetAuthTwoFieldsNoValues() 215 sReplier.addResponse(new CannedFillResponse.Builder() in testDatasetAuthTwoFieldsNoValues() 216 .addDataset(new CannedDataset.Builder() in testDatasetAuthTwoFieldsNoValues() [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 …]
|
D | TypefaceTest.java | 33 import android.graphics.Typeface.Builder; 359 Typeface typeface1 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() 363 Typeface typeface2 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() 368 Typeface typeface3 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() 374 Typeface typeface4 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() 382 Typeface typeface5 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() 389 Typeface typeface6 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() 405 Typeface typeface1 = new Typeface.Builder(obtainPath()).build(); in testTypefaceBuilder_FileSource() 408 Typeface typeface2 = new Typeface.Builder(file).build(); in testTypefaceBuilder_FileSource() 411 Typeface typeface3 = new Typeface.Builder(file) in testTypefaceBuilder_FileSource() [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/net/src/android/net/cts/ |
D | NetworkRequestTest.java | 80 assertTrue(new NetworkRequest.Builder().addCapability(NET_CAPABILITY_MMS).build() in testCapabilities() 82 assertFalse(new NetworkRequest.Builder().removeCapability(NET_CAPABILITY_MMS).build() in testCapabilities() 85 final NetworkRequest nr = new NetworkRequest.Builder().clearCapabilities().build(); in testCapabilities() 92 assertTrue(new NetworkRequest.Builder() in testTemporarilyNotMeteredCapability() 95 assertFalse(new NetworkRequest.Builder() in testTemporarilyNotMeteredCapability() 110 assertTrue(new NetworkRequest.Builder().addTransportType(TRANSPORT_BLUETOOTH).build() in testTransports() 112 assertFalse(new NetworkRequest.Builder().removeTransportType(TRANSPORT_BLUETOOTH).build() in testTransports() 119 assertNull(new NetworkRequest.Builder().build().getNetworkSpecifier()); in testSpecifier() 120 final WifiNetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testSpecifier() 124 final NetworkSpecifier obtainedSpecifier = new NetworkRequest.Builder() in testSpecifier() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontFamilyTest.java | 45 Font font = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf").build(); in testBuilder_SingleFont() 46 FontFamily family = new FontFamily.Builder(font).build(); in testBuilder_SingleFont() 55 Font regularFont = new Font.Builder( in testBuilder_MultipleFont() 57 Font boldFont = new Font.Builder( in testBuilder_MultipleFont() 59 FontFamily family = new FontFamily.Builder(regularFont).addFont(boldFont).build(); in testBuilder_MultipleFont() 70 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideWeight() 72 Font boldFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideWeight() 74 FontFamily family = new FontFamily.Builder(regularFont).addFont(boldFont).build(); in testBuilder_MultipleFont_overrideWeight() 85 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideItalic() 87 Font italicFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideItalic() [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() 96 return new Slice.Builder(sliceUri, SPEC).addInt(0xff121212, "int", in onBindSlice() 99 return new Slice.Builder(sliceUri, SPEC).addLong(43, "timestamp", in onBindSlice() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioPresentationTest.java | 46 AudioPresentation presentation = (new AudioPresentation.Builder(PRESENTATION_ID) in testGetters() 77 AudioPresentation presentation1 = (new AudioPresentation.Builder(PRESENTATION_ID)) in testEqualsAndHashCode() 82 AudioPresentation presentation2 = (new AudioPresentation.Builder(PRESENTATION_ID)) in testEqualsAndHashCode() 87 AudioPresentation presentation3 = (new AudioPresentation.Builder(PRESENTATION_ID + 1)) in testEqualsAndHashCode() 93 AudioPresentation presentation1 = (new AudioPresentation.Builder(PRESENTATION_ID) in testEqualsAndHashCode() 95 AudioPresentation presentation2 = (new AudioPresentation.Builder(PRESENTATION_ID) in testEqualsAndHashCode() 100 AudioPresentation presentation3 = (new AudioPresentation.Builder(PRESENTATION_ID) in testEqualsAndHashCode() 106 AudioPresentation presentation1 = (new AudioPresentation.Builder(PRESENTATION_ID) in testEqualsAndHashCode() 108 AudioPresentation presentation2 = (new AudioPresentation.Builder(PRESENTATION_ID) in testEqualsAndHashCode() 113 AudioPresentation presentation3 = (new AudioPresentation.Builder(PRESENTATION_ID) in testEqualsAndHashCode() [all …]
|
D | Session2CommandGroupTest.java | 48 Session2CommandGroup.Builder builder = new Session2CommandGroup.Builder() in testHasCommand() 60 Session2CommandGroup.Builder builder = new Session2CommandGroup.Builder() in testGetCommands() 73 Session2CommandGroup.Builder builder = new Session2CommandGroup.Builder() in testDescribeContents() 81 Session2CommandGroup.Builder builder = new Session2CommandGroup.Builder() in testWriteToParcel() 96 Session2CommandGroup.Builder builder = new Session2CommandGroup.Builder() in testBuilder() 99 Session2CommandGroup.Builder newBuilder = new Session2CommandGroup.Builder(commandGroup); in testBuilder() 109 Session2CommandGroup.Builder builder = new Session2CommandGroup.Builder() in testAddAndRemoveCommand()
|
/cts/tests/tests/graphics/src/android/graphics/text/cts/ |
D | MeasuredTextTest.java | 54 Typeface tf = new Typeface.Builder(am, "fonts/layout/linebreak.ttf").build(); in classSetUp() 62 new MeasuredText.Builder(text.toCharArray()) in testBuilder() 69 final MeasuredText mt = new MeasuredText.Builder(text.toCharArray()) in testBuilder_FromExistingMeasuredText() 71 assertNotNull(new MeasuredText.Builder(mt) in testBuilder_FromExistingMeasuredText() 78 final MeasuredText mt = new MeasuredText.Builder(text.toCharArray()) in testBuilder_FromExistingMeasuredText_differentLayoutParam() 81 new MeasuredText.Builder(mt) in testBuilder_FromExistingMeasuredText_differentLayoutParam() 88 final MeasuredText mt = new MeasuredText.Builder(text.toCharArray()) in testBuilder_FromExistingMeasuredText_differentHyphenationParam() 91 new MeasuredText.Builder(mt) in testBuilder_FromExistingMeasuredText_differentHyphenationParam() 98 new MeasuredText.Builder((char[]) null); in testBuilder_NullText() 103 new MeasuredText.Builder((MeasuredText) null); in testBuilder_NullMeasuredText() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | KernelTest.java | 59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); in testForEach() 66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); in testForEach() 80 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach() 82 t = new Type.Builder(mRS, Element.U8_2(mRS)).setX(x).create(); in testForEach() 96 t = new Type.Builder(mRS, Element.I8_3(mRS)).setX(x).create(); in testForEach() 98 t = new Type.Builder(mRS, Element.U8_3(mRS)).setX(x).create(); in testForEach() 112 t = new Type.Builder(mRS, Element.I8_4(mRS)).setX(x).create(); in testForEach() 114 t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(x).create(); in testForEach() 128 t = new Type.Builder(mRS, Element.I16(mRS)).setX(x).create(); in testForEach() 130 t = new Type.Builder(mRS, Element.U16(mRS)).setX(x).create(); in testForEach() [all …]
|
D | ForEachTest.java | 59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); in testForEach() 66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); in testForEach() 80 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach() 82 t = new Type.Builder(mRS, Element.U8_2(mRS)).setX(x).create(); in testForEach() 96 t = new Type.Builder(mRS, Element.I8_3(mRS)).setX(x).create(); in testForEach() 98 t = new Type.Builder(mRS, Element.U8_3(mRS)).setX(x).create(); in testForEach() 112 t = new Type.Builder(mRS, Element.I8_4(mRS)).setX(x).create(); in testForEach() 114 t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(x).create(); in testForEach() 128 t = new Type.Builder(mRS, Element.I16(mRS)).setX(x).create(); in testForEach() 130 t = new Type.Builder(mRS, Element.U16(mRS)).setX(x).create(); in testForEach() [all …]
|
D | TypeTest.java | 24 void testBuilderSizes(Type.Builder b, int min, int max) { in testBuilderSizes() 34 Type.Builder b = new Type.Builder(mRS, e); in testTypeBuilderHelper() 85 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetCount() 127 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetElement() 133 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetX() 139 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetY() 147 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetYuv() 155 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetZ() 161 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testHasFaces() 169 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetMipmaps() [all …]
|
D | AllocationCopyPaddedTest.java | 34 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_1D() 63 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_2D() 93 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_3D() 124 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_1D_Helper() 161 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_2D_Helper() 199 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_3D_Helper() 235 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_1D() 267 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_2D() 300 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_3D() 331 Type.Builder typeBuilder = new Type.Builder(mRS, Element.F32_3(mRS)); in test_AllocationPadded_Float3_1D() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ZenPolicyTest.java | 31 ZenPolicy.Builder builder = new ZenPolicy.Builder() in testWriteToParcel() 48 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testAlarms() 64 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testMedia() 80 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testSystem() 96 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testReminders() 112 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testEvents() 129 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testRepeatCallers() 145 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testMessages() 177 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testCalls() 209 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testFullScreenIntent() [all …]
|
D | NotificationTest.java | 24 import android.app.Notification.Action.Builder; 98 mNotification = new Notification.Builder(mContext, CHANNEL.getId()).build(); 133 mNotification = new Notification.Builder(mContext, CHANNEL.getId()) 238 mNotification = new Notification.Builder(mContext, "channel_id") 251 mNotification = new Notification.Builder(mContext, CHANNEL.getId()) 280 MessagingStyle ms = new MessagingStyle(new Person.Builder().setName("Test name").build()); 281 Notification.Builder builder = new Notification.Builder(mContext, CHANNEL.getId()); 292 mAction = new Notification.Action.Builder(0, ACTION_TITLE, actionIntent).build(); 302 Person person = new Person.Builder() 308 mNotification = new Notification.Builder(mContext, CHANNEL.getId()) [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/tests/pdf/src/android/graphics/pdf/cts/ |
D | PdfDocumentTest.java | 86 verifyException(() -> doc.startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()), in startPageClosedDoc() 95 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in finishPageTwiceDoc() 107 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in closeWithOpenPage() 130 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in writeWithOpenPage() 146 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in openTwoPages() 147 verifyException(() -> doc.startPage(new PdfDocument.PageInfo.Builder(100, 100, 1).create()), in openTwoPages() 160 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in finishPageFromWrongDoc() 164 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in finishPageFromWrongDoc() 178 .startPage(new PdfDocument.PageInfo.Builder(101, 100, 0).create()); in writeTwoPageDocWithSameIndex() 181 .startPage(new PdfDocument.PageInfo.Builder(201, 200, 0).create()); in writeTwoPageDocWithSameIndex() [all …]
|