/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | DatasetTest.java | 48 assertThrows(NullPointerException.class, () -> new Dataset.Builder(null)); in testBuilder_nullPresentation() 53 final Dataset.Builder builder = new Dataset.Builder(mPresentation); in testBuilder_setValueNullId() 60 assertThat(new Dataset.Builder().setValue(mId, mValue).build()).isNotNull(); in testBuilder_setValueWithoutPresentation() 65 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setValueWithNullPresentation() 72 assertThat(new Dataset.Builder(mPresentation).setValue(mId, mValue, (Pattern) null).build()) in testBuilder_setFilteredValueWithNullFilter() 78 assertThat(new Dataset.Builder().setValue(mId, mValue, null, mPresentation).build()) in testBuilder_setFilteredValueWithPresentationNullFilter() 84 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setFilteredValueWithPresentationNullPresentation() 91 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setFilteredValueWithoutPresentation() 97 final Dataset.Builder builder = new Dataset.Builder(); in testBuild_noValues() 103 final Dataset.Builder builder = new Dataset.Builder(); in testNoMoreInteractionsAfterBuild()
|
D | SaveInfoTest.java | 42 () -> new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, null)); in testRequiredIdsBuilder_null() 48 () -> new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, new AutofillId[] {})); in testRequiredIdsBuilder_empty() 54 () -> new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, in testRequiredIdsBuilder_nullEntry() 60 final SaveInfo.Builder builder = new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC); in testBuild_noOptionalIds() 66 final SaveInfo.Builder builder = new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, in testSetOptionalIds_null() 73 final SaveInfo.Builder builder = new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, in testSetOptional_empty() 81 final SaveInfo.Builder builder = new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, in testSetOptional_nullEntry() 89 final SaveInfo.Builder builder = new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, in testAddSanitizer_illegalArgs() 110 final SaveInfo.Builder builder = new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, in testAddSanitizer_sameIdOnDifferentCalls()
|
D | CannedFillResponse.java | 91 private CannedFillResponse(Builder builder) { in CannedFillResponse() 125 new Builder(ResponseType.NULL).build(); 131 new Builder(ResponseType.TIMEOUT).build(); 147 final FillResponse.Builder builder = new FillResponse.Builder() in asFillResponse() 157 final SaveInfo.Builder saveInfo; in asFillResponse() 159 saveInfo = new SaveInfo.Builder(mSaveType, mRequiredSavableAutofillIds); in asFillResponse() 162 ? new SaveInfo.Builder(mSaveType) in asFillResponse() 163 : new SaveInfo.Builder(mSaveType, in asFillResponse() 257 static class Builder { class in CannedFillResponse 285 public Builder(ResponseType type) { in Builder() method in CannedFillResponse.Builder [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() 83 new FillResponse.Builder().setAuthentication(mIds, null, null); in testBuilder_setAuthentication_valid() 84 new FillResponse.Builder().setAuthentication(mIds, mIntentSender, mPresentation); in testBuilder_setAuthentication_valid() 90 () -> new FillResponse.Builder().setHeader(mHeader).setAuthentication(mIds, in testBuilder_setAuthentication_illegalState() 93 () -> new FillResponse.Builder().setFooter(mFooter).setAuthentication(mIds, in testBuilder_setAuthentication_illegalState() 99 assertThrows(NullPointerException.class, () -> new FillResponse.Builder().setHeader(null)); in testBuilder_setHeaderOrFooterInvalid() 100 assertThrows(NullPointerException.class, () -> new FillResponse.Builder().setFooter(null)); in testBuilder_setHeaderOrFooterInvalid() 105 FillResponse.Builder builder = in testBuilder_setHeaderOrFooterAfterAuthentication() [all …]
|
D | PartitionedActivityTest.java | 106 final CannedFillResponse response1 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsSkipFirst() 107 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsSkipFirst() 129 final CannedFillResponse response2 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsSkipFirst() 130 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsSkipFirst() 185 final CannedFillResponse response1 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsInSequence() 186 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsInSequence() 213 final CannedFillResponse response2 = new CannedFillResponse.Builder() in testAutofillTwoPartitionsInSequence() 214 .addDataset(new CannedDataset.Builder() in testAutofillTwoPartitionsInSequence() 260 final CannedFillResponse response1 = new CannedFillResponse.Builder() in autofill4PartitionsTest() 261 .addDataset(new CannedDataset.Builder() in autofill4PartitionsTest() [all …]
|
D | DatasetFilteringTest.java | 65 sReplier.addResponse(new CannedFillResponse.Builder() in testFilter() 66 .addDataset(new CannedDataset.Builder() in testFilter() 70 .addDataset(new CannedDataset.Builder() in testFilter() 74 .addDataset(new CannedDataset.Builder() in testFilter() 119 sReplier.addResponse(new CannedFillResponse.Builder() in testFilter_usingKeyboard() 120 .addDataset(new CannedDataset.Builder() in testFilter_usingKeyboard() 124 .addDataset(new CannedDataset.Builder() in testFilter_usingKeyboard() 128 .addDataset(new CannedDataset.Builder() in testFilter_usingKeyboard() 176 sReplier.addResponse(new CannedFillResponse.Builder() in testFilter_nullValuesAlwaysMatched() 177 .addDataset(new CannedDataset.Builder() in testFilter_nullValuesAlwaysMatched() [all …]
|
D | CustomDescriptionTest.java | 78 sReplier.addResponse(new CannedFillResponse.Builder() in testCustomDescription() 108 .Builder(usernameId, Pattern.compile("(.*)"), "$1") in validTransformation() 113 .Builder(usernameId, Pattern.compile(".*"), in validTransformation() 116 return new CustomDescription.Builder(presentation) in validTransformation() 129 .Builder(usernameId, Pattern.compile("(.*)"), "$1") in validTransformationWithOneTemplateUpdate() 134 .Builder(usernameId, Pattern.compile(".*"), in validTransformationWithOneTemplateUpdate() 140 return new CustomDescription.Builder(presentation) in validTransformationWithOneTemplateUpdate() 144 new BatchUpdates.Builder().updateTemplate(update).build()) in validTransformationWithOneTemplateUpdate() 154 CharSequenceTransformation trans1 = new CharSequenceTransformation.Builder(usernameId, in validTransformationWithMultipleTemplateUpdates() 159 ImageTransformation trans2 = new ImageTransformation.Builder(usernameId, in validTransformationWithMultipleTemplateUpdates() [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/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/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(final Builder<E> builder, final 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(final Builder<E> builder, final E element) { in startingFrom() 102 Builder::build); in startingFrom()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
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 | 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 | VoidPtr.java | 31 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupVoidPtr() 66 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in testVoidOutInt() 94 Type.Builder typeBuilder = new Type.Builder(mRS, Element.U8(mRS)); in testVoidOutChar() 123 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in testVoidInInt() 154 Type.Builder typeBuilder = new Type.Builder(mRS, Element.U8(mRS)); in testVoidInChar()
|
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/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeSettings.java | 96 @Nullable Builder builder) { in writeToParcel() 108 public static final class Builder { class in ImeSettings 119 public Builder setFullscreenModeAllowed(boolean allowed) { in setFullscreenModeAllowed() 128 public Builder setBackgroundColor(@ColorInt int color) { in setBackgroundColor() 139 public Builder setNavigationBarColor(@ColorInt int color) { in setNavigationBarColor() 149 public Builder setInputViewHeightWithoutSystemWindowInset(int height) { in setInputViewHeightWithoutSystemWindowInset() 166 public Builder setWindowFlags(int flags, int flagsMask) { in setWindowFlags() 179 public Builder setInputViewSystemUiVisibility(int visibilityFlags) { in setInputViewSystemUiVisibility() 202 public Builder setHardKeyboardConfigurationBehaviorAllowed(boolean allowed) { in setHardKeyboardConfigurationBehaviorAllowed()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/ |
D | TestResult.java | 67 public static Builder getBuilder() { in getBuilder() 68 return new Builder(); in getBuilder() 134 public static class Builder { class in TestResult 143 private Builder() { in Builder() method in TestResult.Builder 145 public Builder setPackageName(String _packageName) { in setPackageName() 149 public Builder setComponentName(String _componentName) { in setComponentName() 153 public Builder setMethodName(String _methodName) { in setMethodName() 157 public Builder setStatus(String _status) { in setStatus() 161 public Builder setException(String _exception) { in setException() 165 public Builder setEphemeralPackageInfoExposed(boolean _instantAppPackageInfoExposed) { in setEphemeralPackageInfoExposed() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceTest.java | 33 import android.graphics.Typeface.Builder; 347 Typeface typeface1 = new Typeface.Builder(mContext.getAssets(), "samplefont.ttf").build(); in testTypefaceBuilder_AssetSource() 350 Typeface typeface2 = new Typeface.Builder(mContext.getAssets(), "samplefont.ttf").build(); in testTypefaceBuilder_AssetSource() 354 Typeface typeface3 = new Typeface.Builder(mContext.getAssets(), "samplefont2.ttf").build(); in testTypefaceBuilder_AssetSource() 359 Typeface typeface4 = new Typeface.Builder(mContext.getAssets(), "samplefont3.ttf").build(); in testTypefaceBuilder_AssetSource() 366 Typeface typeface5 = new Typeface.Builder(mContext.getAssets(), "samplefont.ttf") in testTypefaceBuilder_AssetSource() 372 Typeface typeface6 = new Typeface.Builder(mContext.getAssets(), "samplefont.ttf") in testTypefaceBuilder_AssetSource() 387 Typeface typeface1 = new Typeface.Builder(obtainPath()).build(); in testTypefaceBuilder_FileSource() 390 Typeface typeface2 = new Typeface.Builder(file).build(); in testTypefaceBuilder_FileSource() 393 Typeface typeface3 = new Typeface.Builder(file) in testTypefaceBuilder_FileSource() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioFormatTest.java | 42 final AudioFormat formatToCopy = new AudioFormat.Builder() in testBuilderForCopy() 47 final AudioFormat copiedFormat = new AudioFormat.Builder(formatToCopy).build(); in testBuilderForCopy() 63 final AudioFormat formatToCopy = new AudioFormat.Builder() in testPartialFormatBuilderForCopyEncoding() 67 final AudioFormat copiedFormat = new AudioFormat.Builder(formatToCopy).build(); in testPartialFormatBuilderForCopyEncoding() 84 final AudioFormat formatToCopy = new AudioFormat.Builder() in testPartialFormatBuilderForCopyRate() 88 final AudioFormat copiedFormat = new AudioFormat.Builder(formatToCopy).build(); in testPartialFormatBuilderForCopyRate() 105 final AudioFormat formatToCopy = new AudioFormat.Builder() in testPartialFormatBuilderForCopyChanMask() 109 final AudioFormat copiedFormat = new AudioFormat.Builder(formatToCopy).build(); in testPartialFormatBuilderForCopyChanMask() 127 final AudioFormat formatToCopy = new AudioFormat.Builder() in testPartialFormatBuilderForCopyChanIdxMask() 131 final AudioFormat copiedFormat = new AudioFormat.Builder(formatToCopy).build(); in testPartialFormatBuilderForCopyChanIdxMask() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | PrecomputedTextTest.java | 74 assertNotNull(new Params.Builder(PAINT).build()); in testParams_create() 75 assertNotNull(new Params.Builder(PAINT) in testParams_create() 77 assertNotNull(new Params.Builder(PAINT) in testParams_create() 80 assertNotNull(new Params.Builder(PAINT) in testParams_create() 88 assertEquals(Layout.BREAK_STRATEGY_SIMPLE, new Params.Builder(PAINT) in testParams_SetGet() 90 assertEquals(Layout.HYPHENATION_FREQUENCY_NONE, new Params.Builder(PAINT) in testParams_SetGet() 93 assertEquals(RTL, new Params.Builder(PAINT).setTextDirection(RTL).build() in testParams_SetGet() 100 new Params.Builder(PAINT).build().getBreakStrategy()); in testParams_GetDefaultValues() 102 new Params.Builder(PAINT).build().getHyphenationFrequency()); in testParams_GetDefaultValues() 104 new Params.Builder(PAINT).build().getTextDirection()); in testParams_GetDefaultValues() [all …]
|
/cts/tests/framework/base/activitymanager/util/src/android/server/am/ |
D | WaitForValidActivityState.java | 47 return new Builder().setWindowName(windowName).build(); in forWindow() 58 private WaitForValidActivityState(final Builder builder) { in WaitForValidActivityState() 112 public static class Builder { class in WaitForValidActivityState 121 private Builder() {} in Builder() method in WaitForValidActivityState.Builder 123 public Builder(final ComponentName activityName) { in Builder() method in WaitForValidActivityState.Builder 128 private Builder setWindowName(String windowName) { in setWindowName() 133 public Builder setStackId(int stackId) { in setStackId() 138 public Builder setWindowingMode(int windowingMode) { in setWindowingMode() 143 public Builder setActivityType(int activityType) { in setActivityType()
|
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | PdfDocumentTest.java | 85 verifyException(() -> doc.startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()), in startPageClosedDoc() 94 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in finishPageTwiceDoc() 106 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in closeWithOpenPage() 129 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in writeWithOpenPage() 145 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in openTwoPages() 146 verifyException(() -> doc.startPage(new PdfDocument.PageInfo.Builder(100, 100, 1).create()), in openTwoPages() 159 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in finishPageFromWrongDoc() 163 .startPage(new PdfDocument.PageInfo.Builder(100, 100, 0).create()); in finishPageFromWrongDoc() 177 .startPage(new PdfDocument.PageInfo.Builder(101, 100, 0).create()); in writeTwoPageDocWithSameIndex() 180 .startPage(new PdfDocument.PageInfo.Builder(201, 200, 0).create()); in writeTwoPageDocWithSameIndex() [all …]
|
/cts/tests/tests/print/src/android/print/cts/ |
D | ClassParametersTest.java | 47 assertException(() -> (new PrintAttributes.Builder()).setColorMode(-1), in illegalPrintAttributesColorMode() 49 assertException(() -> (new PrintAttributes.Builder()).setColorMode(0), in illegalPrintAttributesColorMode() 51 assertException(() -> (new PrintAttributes.Builder()).setColorMode( in illegalPrintAttributesColorMode() 63 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode(-1), in illegalPrintAttributesDuplexMode() 65 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode(0), in illegalPrintAttributesDuplexMode() 67 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode( in illegalPrintAttributesDuplexMode() 234 assertException(() -> new PrintDocumentInfo.Builder(null), in illegalPrintDocumentInfo() 236 assertException(() -> new PrintDocumentInfo.Builder(""), in illegalPrintDocumentInfo() 239 assertException(() -> new PrintDocumentInfo.Builder("doc").setPageCount(-2), in illegalPrintDocumentInfo() 250 PrintDocumentInfo defaultInfo = new PrintDocumentInfo.Builder("doc").build(); in legalPrintDocumentInfo() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | NetworkRequestTest.java | 27 assertTrue(new NetworkRequest.Builder().addCapability(NET_CAPABILITY_MMS).build() in testCapabilities() 29 assertFalse(new NetworkRequest.Builder().removeCapability(NET_CAPABILITY_MMS).build() in testCapabilities() 34 assertTrue(new NetworkRequest.Builder().addTransportType(TRANSPORT_BLUETOOTH).build() in testTransports() 36 assertFalse(new NetworkRequest.Builder().removeTransportType(TRANSPORT_BLUETOOTH).build() in testTransports()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyPairGeneratorSpecTest.java | 43 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_Unencrypted_Success() 65 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_Encrypted_Success() 89 new KeyPairGeneratorSpec.Builder(null); in testBuilder_NullContext_Failure() 97 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingAlias_Failure() 110 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingSubjectDN_Failure() 123 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingSerialNumber_Failure() 136 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingStartDate_Failure() 149 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingEndDate_Failure() 162 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_EndBeforeStart_Failure()
|