/cts/tests/tests/text/src/android/text/cts/ |
D | SelectionTest.java | 46 SpannableStringBuilder builder = new SpannableStringBuilder(text); in testGetSelectionStart() local 47 assertEquals(-1, Selection.getSelectionStart(builder)); in testGetSelectionStart() 49 Selection.setSelection(builder, 3, 8); in testGetSelectionStart() 50 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 52 Selection.setSelection(builder, 3, 9); in testGetSelectionStart() 53 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 55 Selection.setSelection(builder, 5, 7); in testGetSelectionStart() 56 assertEquals(5, Selection.getSelectionStart(builder)); in testGetSelectionStart() 64 SpannableStringBuilder builder = new SpannableStringBuilder(text); in testGetSelectionEnd() local 65 assertEquals(-1, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() [all …]
|
D | SpannableStringBuilderTest.java | 98 SpannableStringBuilder builder = new SpannableStringBuilder("spannable string"); in testGetSpanFlags() local 99 assertEquals(0, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags() 101 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testGetSpanFlags() 102 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testGetSpanFlags() 103 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testGetSpanFlags() 105 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags() 106 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mStrikethroughSpan)); in testGetSpanFlags() 107 assertEquals(0, builder.getSpanFlags(new Object())); in testGetSpanFlags() 112 SpannableStringBuilder builder = new SpannableStringBuilder("spannable string"); in testNextSpanTransition() local 114 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ZenPolicyTest.java | 31 ZenPolicy.Builder builder = new ZenPolicy.Builder() in testWriteToParcel() local 36 ZenPolicy policy = builder.build(); in testWriteToParcel() 48 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testAlarms() local 49 ZenPolicy policy = builder.allowAlarms(true).build(); in testAlarms() 55 policy = builder.allowAlarms(false).build(); in testAlarms() 64 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testMedia() local 65 ZenPolicy policy = builder.allowMedia(true).build(); in testMedia() 71 policy = builder.allowMedia(false).build(); in testMedia() 80 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testSystem() local 81 ZenPolicy policy = builder.allowSystem(true).build(); in testSystem() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | CannedFillResponse.java | 96 private CannedFillResponse(Builder builder) { in CannedFillResponse() argument 97 mResponseType = builder.mResponseType; in CannedFillResponse() 98 mDatasets = builder.mDatasets; in CannedFillResponse() 99 mFailureMessage = builder.mFailureMessage; in CannedFillResponse() 100 mRequiredSavableIds = builder.mRequiredSavableIds; in CannedFillResponse() 101 mRequiredSavableAutofillIds = builder.mRequiredSavableAutofillIds; in CannedFillResponse() 102 mOptionalSavableIds = builder.mOptionalSavableIds; in CannedFillResponse() 103 mSaveDescription = builder.mSaveDescription; in CannedFillResponse() 104 mSaveType = builder.mSaveType; in CannedFillResponse() 105 mExtras = builder.mExtras; in CannedFillResponse() [all …]
|
D | DatasetTest.java | 54 final Dataset.Builder builder = new Dataset.Builder(mPresentation); in testBuilder_setValueNullId() local 55 assertThrows(NullPointerException.class, () -> builder.setValue(null, mValue)); in testBuilder_setValueNullId() 66 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setValueWithNullPresentation() local 67 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithNullPresentation() 85 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setFilteredValueWithPresentationNullPresentation() local 86 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, mFilter, in testBuilder_setFilteredValueWithPresentationNullPresentation() 92 final Dataset.Builder builder = new Dataset.Builder(); in testBuilder_setFilteredValueWithoutPresentation() local 93 assertThrows(IllegalStateException.class, () -> builder.setValue(mId, mValue, mFilter)); in testBuilder_setFilteredValueWithoutPresentation() 98 final Dataset.Builder builder = new Dataset.Builder(); in testBuild_noValues() local 99 assertThrows(IllegalStateException.class, () -> builder.build()); in testBuild_noValues() [all …]
|
D | SaveInfoTest.java | 68 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC); in testBuild_noOptionalIds() local 69 assertThrows(IllegalStateException.class, ()-> builder.build()); in testBuild_noOptionalIds() 74 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptionalIds_null() local 76 assertThrows(IllegalArgumentException.class, ()-> builder.setOptionalIds(null)); in testSetOptionalIds_null() 81 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptional_empty() local 84 () -> builder.setOptionalIds(new AutofillId[] {})); in testSetOptional_empty() 89 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testSetOptional_nullEntry() local 92 () -> builder.setOptionalIds(new AutofillId[] { null })); in testSetOptional_nullEntry() 97 final SaveInfo.Builder builder = new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, in testAddSanitizer_illegalArgs() local 101 () -> builder.addSanitizer(null, mId)); in testAddSanitizer_illegalArgs() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ver2_ulp_components/ |
D | MeasResultEUTRA.java | 151 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 153 builder.add(new SequenceComponent() { in getComponents() 196 builder.add(new SequenceComponent() { in getComponents() 239 builder.add(new SequenceComponent() { in getComponents() 282 return builder.build(); in getComponents() 287 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 289 return builder.build(); in getExtensionComponents() 400 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 402 builder.add(new SequenceComponent() { in getComponents() 445 builder.add(new SequenceComponent() { in getComponents() [all …]
|
D | UTRAN_GPSReferenceTime.java | 159 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 161 builder.add(new SequenceComponent() { in getComponents() 204 builder.add(new SequenceComponent() { in getComponents() 247 builder.add(new SequenceComponent() { in getComponents() 290 return builder.build(); in getComponents() 295 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 297 return builder.build(); in getExtensionComponents() 406 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 408 builder.add(new SequenceComponent() { in getComponents() 451 builder.add(new SequenceComponent() { in getComponents() [all …]
|
D | SupportedWLANApsList.java | 152 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 154 builder.add(new SequenceComponent() { in getComponents() 197 builder.add(new SequenceComponent() { in getComponents() 240 builder.add(new SequenceComponent() { in getComponents() 283 return builder.build(); in getComponents() 288 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 290 return builder.build(); in getExtensionComponents() 383 StringBuilder builder = new StringBuilder(); in toIndentedString() local 384 builder.append("supportedWLANApDataListType = [\n"); in toIndentedString() 387 builder.append(internalIndent) in toIndentedString() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
D | Asn1UTCTime.java | 109 StringBuilder builder = new StringBuilder(); in encodeToIA5String() local 110 builder.append(twoDigit.format(year % 100)); in encodeToIA5String() 111 builder.append(twoDigit.format(month)); in encodeToIA5String() 112 builder.append(twoDigit.format(day)); in encodeToIA5String() 113 builder.append(twoDigit.format(hour % 100)); in encodeToIA5String() 114 builder.append(twoDigit.format(minute)); in encodeToIA5String() 115 builder.append(twoDigit.format(second)); in encodeToIA5String() 116 builder.append("Z"); in encodeToIA5String() 119 result.setValue(builder.toString()); in encodeToIA5String() 124 StringBuilder builder = new StringBuilder(); in toHumanReadableString() local [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/rrlp_components/ |
D | Rel_98_MsrPosition_Rsp_Extension.java | 135 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 137 builder.add(new SequenceComponent() { in getComponents() 180 return builder.build(); in getComponents() 185 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 187 builder.add(new SequenceComponent() { in getExtensionComponents() 231 return builder.build(); in getExtensionComponents() 325 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 327 builder.add(new SequenceComponent() { in getComponents() 370 return builder.build(); in getComponents() 375 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local [all …]
|
D | GPS_AssistData.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("GPS_AssistData = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
D | OTD_MsrElementFirst_R98_Ext.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("OTD_MsrElementFirst_R98_Ext = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
D | OTD_MeasureInfo_R98_Ext.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("OTD_MeasureInfo_R98_Ext = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
D | SystemInfoAssistData.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("SystemInfoAssistData = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
D | AccuracyOpt.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("AccuracyOpt = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
D | GANSSMeasureInfo.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("GANSSMeasureInfo = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
D | GANSSRealTimeIntegrity.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("GANSSRealTimeIntegrity = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
D | GANSS_AssistData.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("GANSS_AssistData = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | TestClassesProvider.java | 36 Stream.Builder<Class<?>> builder = Stream.builder(); in getAllClasses() local 37 builder.add(AbstractClass.class); in getAllClasses() 38 builder.add(FinalClass.class); in getAllClasses() 39 builder.add(NormalClass.class); in getAllClasses() 40 builder.add(NormalException.class); in getAllClasses() 41 builder.add(NormalInterface.class); in getAllClasses() 42 builder.add(ApiAnnotation.class); in getAllClasses() 43 builder.add(PublicApiClass.class); in getAllClasses() 44 builder.add(SystemApiClass.class); in getAllClasses() 45 builder.add(PrivateClass.class); in getAllClasses() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | TestSensorEventListener.java | 200 StringBuilder builder = new StringBuilder(); in logCollectedEventsToFile() local 201 builder.append("Sensor='").append(mEnvironment.getSensor()).append("', "); in logCollectedEventsToFile() 202 builder.append("SamplingRateOverloaded=") in logCollectedEventsToFile() 204 builder.append("RequestedSamplingPeriod=") in logCollectedEventsToFile() 206 builder.append("MaxReportLatency=") in logCollectedEventsToFile() 208 builder.append("StartedTimestamp=") in logCollectedEventsToFile() 210 builder.append("StoppedTimestamp=") in logCollectedEventsToFile() 220 builder.append("\n"); in logCollectedEventsToFile() 221 builder.append("AP wake-up time=").append(deviceWakeUpTimeMs).append("ms"); in logCollectedEventsToFile() 224 builder.append("\n"); in logCollectedEventsToFile() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/map_extensiondatatypes/ |
D | PrivateExtension.java | 106 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 108 return builder.build(); in getComponents() 113 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 115 return builder.build(); in getExtensionComponents() 143 StringBuilder builder = new StringBuilder(); in toIndentedString() local 144 builder.append("PrivateExtension = {\n"); in toIndentedString() 148 builder.append(internalIndent) in toIndentedString() 153 builder.append(internalIndent).append("...\n"); in toIndentedString() 156 builder.append(internalIndent) in toIndentedString() 161 builder.append(indent).append("};\n"); in toIndentedString() [all …]
|
D | ExtensionContainer.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("ExtensionContainer = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/supl_notify_response/ |
D | Ver2_SUPLNOTIFYRESPONSE.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("Ver2_SUPLNOTIFYRESPONSE = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ulp_components/ |
D | FrequencyInfoTDD.java | 121 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getComponents() local 123 builder.add(new SequenceComponent() { in getComponents() 166 return builder.build(); in getComponents() 171 ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder(); in getExtensionComponents() local 173 return builder.build(); in getExtensionComponents() 203 StringBuilder builder = new StringBuilder(); in toIndentedString() local 204 builder.append("FrequencyInfoTDD = {\n"); in toIndentedString() 208 builder.append(internalIndent) in toIndentedString() 213 builder.append(internalIndent).append("...\n"); in toIndentedString() 216 builder.append(internalIndent) in toIndentedString() [all …]
|