/cts/tests/tests/text/src/android/text/cts/ |
D | SelectionTest.java | 40 SpannableStringBuilder builder = new SpannableStringBuilder(text); in testGetSelectionStart() local 41 assertEquals(-1, Selection.getSelectionStart(builder)); in testGetSelectionStart() 43 Selection.setSelection(builder, 3, 8); in testGetSelectionStart() 44 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 46 Selection.setSelection(builder, 3, 9); in testGetSelectionStart() 47 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 49 Selection.setSelection(builder, 5, 7); in testGetSelectionStart() 50 assertEquals(5, Selection.getSelectionStart(builder)); in testGetSelectionStart() 58 SpannableStringBuilder builder = new SpannableStringBuilder(text); in testGetSelectionEnd() local 59 assertEquals(-1, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() [all …]
|
D | SpannableStringBuilderTest.java | 97 SpannableStringBuilder builder = new SpannableStringBuilder("spannable string"); in testGetSpanFlags() local 98 assertEquals(0, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags() 100 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testGetSpanFlags() 101 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testGetSpanFlags() 102 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testGetSpanFlags() 104 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags() 105 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mStrikethroughSpan)); in testGetSpanFlags() 106 assertEquals(0, builder.getSpanFlags(new Object())); in testGetSpanFlags() 111 SpannableStringBuilder builder = new SpannableStringBuilder("spannable string"); in testNextSpanTransition() local 113 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition() [all …]
|
/cts/tools/dex-tools/src/dex/reader/ |
D | TypeFormatter.java | 92 StringBuilder builder = new StringBuilder(); in format() local 96 builder.append(separator); in format() 98 builder.append(element.toString()); in format() 101 return builder.toString(); in format() 106 StringBuilder builder = new StringBuilder(); in formatDexFile() local 107 builder.append("----------------DEX_FILE--------------\n\n"); in formatDexFile() 108 builder.append("Filename: ").append(file.getName()); in formatDexFile() 109 builder.append("\n-----------DEFINED_CLASSES------------\n\n"); in formatDexFile() 111 builder.append("\n________________CLASS________________\n\n"); in formatDexFile() 112 builder.append(dexClass); in formatDexFile() [all …]
|
D | DexAnnotationImpl.java | 69 StringBuilder builder = new StringBuilder(); in toString() local 70 builder.append("@"); in toString() 71 builder.append(formatter.format(encodedAnnotation.getTypeName())); in toString() 73 builder.append(" ("); in toString() 75 builder.append(value.toString()); in toString() 76 builder.append(" "); in toString() 78 builder.append(")"); in toString() 80 return builder.toString(); in toString()
|
D | DexMethodImpl.java | 141 StringBuilder builder = new StringBuilder(); in toString() local 142 builder.append(formatter.formatAnnotations(getAnnotations())); in toString() 143 builder.append(Modifier.toString(getModifiers())); in toString() 144 builder.append(" "); in toString() 145 builder.append(formatter.format(getReturnType())); in toString() 146 builder.append(" "); in toString() 147 builder.append(getName()); in toString() 148 builder.append("("); in toString() 151 builder.append(formatter.formatAnnotations(dexParameter in toString() 153 builder.append(formatter.format(dexParameter.getTypeName())); in toString() [all …]
|
D | DexFieldImpl.java | 95 StringBuilder builder = new StringBuilder(); in toString() local 96 builder.append(formatter.formatAnnotations(getAnnotations())); in toString() 97 builder.append(Modifier.toString(getModifiers())); in toString() 98 builder.append(" "); in toString() 99 builder.append(formatter.format(getType())); in toString() 100 builder.append(" "); in toString() 101 builder.append(getName()); in toString() 102 return builder.toString(); in toString()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | CannedFillResponse.java | 73 private CannedFillResponse(Builder builder) { in CannedFillResponse() argument 74 mResponseType = builder.mResponseType; in CannedFillResponse() 75 mDatasets = builder.mDatasets; in CannedFillResponse() 76 mFailureMessage = builder.mFailureMessage; in CannedFillResponse() 77 mRequiredSavableIds = builder.mRequiredSavableIds; in CannedFillResponse() 78 mOptionalSavableIds = builder.mOptionalSavableIds; in CannedFillResponse() 79 mSaveDescription = builder.mSaveDescription; in CannedFillResponse() 80 mSaveType = builder.mSaveType; in CannedFillResponse() 81 mExtras = builder.mExtras; in CannedFillResponse() 82 mPresentation = builder.mPresentation; in CannedFillResponse() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | InputConnectionTestUtils.java | 45 final SpannableStringBuilder builder = new SpannableStringBuilder(); in formatString() local 52 selectionStart = builder.length(); in formatString() 55 selectionEnd = builder.length(); in formatString() 58 builder.append(U1F427.charAt(0)); // High surrogate in formatString() 61 builder.append(U1F427.charAt(1)); // Low surrogate in formatString() 64 builder.append(c); in formatString() 74 Selection.setSelection(builder, selectionStart, selectionEnd); in formatString() 75 return builder; in formatString()
|
/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/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | MoreCollectors.java | 32 public void accept(final Builder<E> builder, final E element) { in endingAt() 39 builder.accept(element); in endingAt() 43 Stream::builder, in endingAt() 45 (builder, builder2) -> { in endingAt() 69 public void accept(final Builder<E> builder, final E element) { in startingFrom() 71 builder.accept(element); in startingFrom() 76 builder.accept(element); in startingFrom() 81 Stream::builder, in startingFrom() 83 (builder, builder2) -> { in startingFrom()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | TextReport.java | 88 StringBuilder builder = new StringBuilder(" [") in printConstructor() local 95 builder.append(parameterTypes.get(i)); in printConstructor() 97 builder.append(", "); in printConstructor() 100 out.println(builder.append(")")); in printConstructor() 104 StringBuilder builder = new StringBuilder(" [") in printMethod() local 109 builder.append("abstract "); in printMethod() 112 builder.append("static "); in printMethod() 115 builder.append("final "); in printMethod() 117 builder.append(method.getReturnType()).append(" ") in printMethod() 122 builder.append(parameterTypes.get(i)); in printMethod() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | BaseEmulatorActivity.java | 99 AlertDialog.Builder builder = new AlertDialog.Builder(this); in makePaymentDefault() local 100 builder.setTitle("Note"); in makePaymentDefault() 101 builder.setMessage(stringId); in makePaymentDefault() 103 builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { in makePaymentDefault() 112 builder.show(); in makePaymentDefault() 183 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onActivityResult() local 184 builder.setTitle("Test failed."); in onActivityResult() 185 builder.setMessage("The service was not made the default service according " + in onActivityResult() 188 builder.setPositiveButton("OK", null); in onActivityResult() 189 builder.show(); in onActivityResult() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | AudioStringsHelper.java | 62 StringBuilder builder = new StringBuilder(); in buildRatesStr() local 64 builder.append(getRateString(rates[rateIndex])); in buildRatesStr() 66 builder.append(", "); in buildRatesStr() 69 return builder.toString(); in buildRatesStr() 74 StringBuilder builder = new StringBuilder(); in buildEncodingsStr() local 76 builder.append(encodingToShortString(encodings[encodingIndex])); in buildEncodingsStr() 78 builder.append(", "); in buildEncodingsStr() 81 return builder.toString(); in buildEncodingsStr()
|
/cts/tests/video/src/android/video/cts/ |
D | CodecInfo.java | 95 StringBuilder builder = new StringBuilder(); in printIntArray() local 96 builder.append(msg); in printIntArray() 97 builder.append(":"); in printIntArray() 99 builder.append(Integer.toHexString(e)); in printIntArray() 100 builder.append(","); in printIntArray() 102 builder.deleteCharAt(builder.length() - 1); in printIntArray() 103 Log.i(TAG, builder.toString()); in printIntArray()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | Uri_BuilderTest.java | 26 Builder builder = uri.buildUpon(); in testBuilderOperations() local 27 uri = builder.appendPath("p2").build(); in testBuilderOperations() 33 assertEquals(uri.toString(), builder.toString()); in testBuilderOperations() 36 builder = uri.buildUpon(); in testBuilderOperations() 37 uri = builder.build(); in testBuilderOperations() 40 assertEquals(uri.toString(), builder.toString()); in testBuilderOperations()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyVpnService.java | 52 Builder builder = new Builder(); in start() local 62 builder.addAddress(address, prefixLength); in start() 78 builder.addRoute(address, prefixLength); in start() 93 builder.addAllowedApplication(allowedPackage); in start() 108 builder.addDisallowedApplication(disallowedPackage); in start() 116 builder.setMtu(MTU); in start() 117 builder.setBlocking(true); in start() 118 builder.setSession("MyVpnService"); in start() 126 mFd = builder.establish(); in start()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | MatrixCursor_RowBuilderTest.java | 36 RowBuilder builder = cursor.newRow(); in testAdd() local 37 assertNotNull(builder); in testAdd() 44 builder.add(Integer.MIN_VALUE); in testAdd() 50 builder.add(0); in testAdd() 57 builder.add(Integer.MAX_VALUE); in testAdd() 66 builder.add(1); in testAdd()
|
/cts/hostsidetests/devicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/ |
D | ReflectorVpnService.java | 77 Builder builder = new Builder(); in start() local 92 builder.addAddress(address, prefixLength); in start() 108 builder.addRoute(address, prefixLength); in start() 121 builder.addAllowedApplication(allowedPackage); in start() 136 builder.addDisallowedApplication(disallowedPackage); in start() 145 builder.setMtu(MTU); in start() 146 builder.setBlocking(true); in start() 147 builder.setSession(TAG); in start() 149 mFd = builder.establish(); in start()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | AdvertiseSettingsTest.java | 66 AdvertiseSettings.Builder builder = new AdvertiseSettings.Builder(); in testIllegalTimeout() local 67 builder.setTimeout(0).build(); in testIllegalTimeout() 68 builder.setTimeout(180 * 1000).build(); in testIllegalTimeout() 71 builder.setTimeout(180 * 1000 + 1).build(); in testIllegalTimeout() 78 builder.setTimeout(-1).build(); in testIllegalTimeout()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | Stacktrace.java | 62 StringBuilder builder = new StringBuilder(); in buildClassMethodName() local 63 builder.append(elements[depth].getClassName()).append("#") in buildClassMethodName() 66 builder.append(":").append(elements[depth].getLineNumber()); in buildClassMethodName() 68 return builder.toString(); in buildClassMethodName()
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 808 StringBuilder builder = null; in nextString() local 818 } else if (builder == null) { in nextString() 821 builder.append(buffer, start, pos - start - 1); in nextString() 822 return builder.toString(); in nextString() 826 if (builder == null) { in nextString() 827 builder = new StringBuilder(); in nextString() 829 builder.append(buffer, start, pos - start - 1); in nextString() 830 builder.append(readEscapeCharacter()); in nextString() 835 if (builder == null) { in nextString() 836 builder = new StringBuilder(); in nextString() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | NfcUtils.java | 50 StringBuilder builder = new StringBuilder().append("["); in displayByteArray() local 52 builder.append(Byte.toString(bytes[i])); in displayByteArray() 54 builder.append(", "); in displayByteArray() 57 return builder.append("]"); in displayByteArray()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | TimestampClockSourceVerification.java | 143 private List<IndexedEvent> verifyTimestampClockSource(StringBuilder builder) throws Throwable { in verifyTimestampClockSource() argument 149 builder.append("No events received !"); in verifyTimestampClockSource() 163 builder.append("position=").append(i); in verifyTimestampClockSource() 164 builder.append(", timestamp=").append(String.format("%.2fms", in verifyTimestampClockSource() 166 builder.append(", expected=[").append(String.format("%.2fms", in verifyTimestampClockSource() 168 builder.append(", ").append(String.format("%.2f]ms; ", in verifyTimestampClockSource() 175 builder.append("more; "); in verifyTimestampClockSource()
|
/cts/libs/vogar-expect/src/vogar/commands/ |
D | Command.java | 68 private Command(Builder builder) { in Command() argument 69 this.args = new ArrayList<String>(builder.args); in Command() 70 this.env = builder.env; in Command() 71 this.workingDirectory = builder.workingDirectory; in Command() 72 this.permitNonZeroExitStatus = builder.permitNonZeroExitStatus; in Command() 73 this.tee = builder.tee; in Command() 74 if (builder.maxLength != -1) { in Command() 76 if (string.length() > builder.maxLength) { in Command() 77 throw new IllegalStateException("Maximum command length " + builder.maxLength in Command() 81 this.nativeOutput = builder.nativeOutput; in Command()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | Utils.java | 28 Uri.Builder builder = uri.buildUpon(); in getUriWithoutUserId() local 29 builder.authority(getAuthorityWithoutUserId(uri.getAuthority())); in getUriWithoutUserId() 30 return builder.build(); in getUriWithoutUserId()
|