/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | ProtocolParamsReaderActivity.java | 45 public boolean parseProtocolParameters(StringBuilder sb, byte[] uid, in parseProtocolParameters() argument 50 sb.append("UID: " + HceUtils.getHexBytes(null, uid) + "\n\n"); in parseProtocolParameters() 51 sb.append("SAK: 0x" + Integer.toHexString(sak & 0xFF) + "\n"); in parseProtocolParameters() 54 sb.append(" (OK) ISO-DEP bit (0x20) is set.\n"); in parseProtocolParameters() 57 sb.append(" (FAIL) ISO-DEP bit (0x20) is NOT set.\n"); in parseProtocolParameters() 61 sb.append(" (OK) P2P bit (0x40) is set.\n"); in parseProtocolParameters() 63 sb.append(" (WARN) P2P bit (0x40) is NOT set.\n"); in parseProtocolParameters() 66 sb.append("\n"); in parseProtocolParameters() 67 sb.append("ATQA: " + HceUtils.getHexBytes(null, atqa) + "\n"); in parseProtocolParameters() 68 sb.append("\n"); in parseProtocolParameters() [all …]
|
D | HceUtils.java | 43 StringBuilder sb = new StringBuilder(); in getHexBytes() local 45 sb.append(header + ": "); in getHexBytes() 48 sb.append(String.format("%02X ", b)); in getHexBytes() 50 return sb.toString(); in getHexBytes() 73 StringBuilder sb = new StringBuilder(); in buildSelectApdu() local 74 sb.append("00A40400"); in buildSelectApdu() 75 sb.append(String.format("%02X", aid.length() / 2)); in buildSelectApdu() 76 sb.append(aid); in buildSelectApdu() 77 return new CommandApdu(sb.toString(), reachable); in buildSelectApdu()
|
D | SimpleReaderActivity.java | 95 final StringBuilder sb = new StringBuilder(); in onTagDiscovered() local 109 sb.append("Request APDU:\n"); in onTagDiscovered() 110 sb.append(apdu.getApdu() + "\n\n"); in onTagDiscovered() 114 sb.append("Response APDU (in " + Long.toString(apduEndTime - apduStartTime) + in onTagDiscovered() 116 sb.append(HceUtils.getHexBytes(null, response)); in onTagDiscovered() 118 sb.append("\n\n\n"); in onTagDiscovered() 130 sb.insert(0, "Total APDU exchange time: " + in onTagDiscovered() 135 mTextView.setText(sb.toString()); in onTagDiscovered() 140 sb.insert(0, "FAIL. Total APDU exchange time: " + in onTagDiscovered() 145 mTextView.setText(sb.toString()); in onTagDiscovered() [all …]
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | JDiffClassDescription.java | 151 StringBuilder sb = new StringBuilder(); in convertModifersToModifierString() local 156 sb.append(separator).append("abstract"); in convertModifersToModifierString() 160 sb.append(separator).append("static"); in convertModifersToModifierString() 164 sb.append(separator).append("final"); in convertModifersToModifierString() 168 sb.append(separator).append("transient"); in convertModifersToModifierString() 172 sb.append(separator).append("volatile"); in convertModifersToModifierString() 176 sb.append(separator).append("synchronized"); in convertModifersToModifierString() 180 sb.append(separator).append("native"); in convertModifersToModifierString() 184 sb.append(separator).append("strictfp"); in convertModifersToModifierString() 187 return sb.toString(); in convertModifersToModifierString() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | WorkSourceTest.java | 62 private void printArrays(StringBuilder sb, int[] uids, String[] names) { in printArrays() argument 63 sb.append("{ "); in printArrays() 65 if (i > 0) sb.append(", "); in printArrays() 66 sb.append(uids[i]); in printArrays() 68 sb.append(" "); in printArrays() 69 sb.append(names[i]); in printArrays() 72 sb.append(" }"); in printArrays() 76 StringBuilder sb = new StringBuilder(); in failWorkSource() local 77 sb.append(op); in failWorkSource() 78 sb.append(": Expected: "); in failWorkSource() [all …]
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStream.java | 144 private static void dumpEvent(@NonNull StringBuilder sb, @NonNull ImeEvent event, in dumpEvent() argument 150 sb.append(sSimpleDateTimeFormatter.format(Instant.ofEpochMilli(wallTime))) in dumpEvent() 154 sb.append(fused ? "" : event.isEnterEvent() ? "[" : "]"); in dumpEvent() 156 sb.append(event.getEventName()) in dumpEvent() 159 dumpBundle(sb, event.getArguments()); in dumpEvent() 161 sb.append('\n'); in dumpEvent() 169 final StringBuilder sb = new StringBuilder(); in dump() local 170 sb.append("ImeEventStream:\n"); in dump() 171 sb.append(" latest: array[").append(latest.mArray.length).append("] + {\n"); in dump() 177 sb.append(" ======== CurrentPosition ======== \n"); in dump() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | USBAudioPeripheralAttributesActivity.java | 67 StringBuilder sb = new StringBuilder(); in updateConnectStatus() local 71 sb.append("Output - No Peripheral Channel Counts\n"); in updateConnectStatus() 73 sb.append("Output - Channel Counts Mismatch" + in updateConnectStatus() 80 sb.append("Output - No Peripheral Encodings\n"); in updateConnectStatus() 82 sb.append("Output - Encodings Mismatch" + in updateConnectStatus() 89 sb.append("Output - No Peripheral Sample Rates\n"); in updateConnectStatus() 91 sb.append("Output - Sample Rates Mismatch" + in updateConnectStatus() 99 sb.append("Output - No Peripheral Channel Masks\n"); in updateConnectStatus() 104 sb.append("Output - Channel Index Masks Mismatch" + in updateConnectStatus() 112 sb.append("Output - Channel Position Masks Mismatch" + in updateConnectStatus() [all …]
|
D | UsbMicrophoneTester.java | 34 StringBuilder sb = new StringBuilder(); in getUSBDeviceListString() local 37 sb.append("Model : " + usbDevice.getDeviceName() + "\n"); in getUSBDeviceListString() 38 sb.append(" Id : " + usbDevice.getDeviceId() + "\n"); in getUSBDeviceListString() 39 sb.append(" Class : " + usbDevice.getDeviceClass() + "\n"); in getUSBDeviceListString() 40 sb.append(" Prod.Id : " + usbDevice.getProductId() + "\n"); in getUSBDeviceListString() 41 sb.append(" Vendor.Id : " + usbDevice.getVendorId() + "\n"); in getUSBDeviceListString() 45 sb.append(" Interface " + i + " :\n"); in getUSBDeviceListString() 46 sb.append(" Class: " + usbInterface.getInterfaceClass() + "\n"); in getUSBDeviceListString() 49 return sb.toString(); in getUSBDeviceListString() 54 StringBuilder sb = new StringBuilder(); in getIsMicrophoneConnected() local
|
D | AudioBandSpecs.java | 83 StringBuilder sb = new StringBuilder(); in toString() local 84 sb.append(String.format("Freq %.1f - %.1f |", mFreqStart, mFreqStop)); in toString() 85 sb.append(String.format("start [%.1f : %.1f] |", mRippleStartTop, mRippleStartBottom)); in toString() 86 sb.append(String.format("stop [%.1f : %.1f] |", mRippleStopTop, mRippleStopBottom)); in toString() 87 sb.append(String.format("offset %.1f", mOffset)); in toString() 88 return sb.toString(); in toString()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | ListsHelper.java | 65 StringBuilder sb = new StringBuilder(); in textFormatHex() local 66 sb.append("["); in textFormatHex() 68 sb.append("0x" + Integer.toHexString(list[index])); in textFormatHex() 70 sb.append(", "); in textFormatHex() 73 sb.append("]"); in textFormatHex() 74 return sb.toString(); in textFormatHex() 78 StringBuilder sb = new StringBuilder(); in textFormatDecimal() local 79 sb.append("["); in textFormatDecimal() 81 sb.append("0x" + list[index]); in textFormatDecimal() 83 sb.append(", "); in textFormatDecimal() [all …]
|
D | AudioStringsHelper.java | 96 StringBuilder sb = new StringBuilder(); in makeIntList() local 98 sb.append(values[index]); in makeIntList() 100 sb.append(","); in makeIntList() 104 return sb.toString(); in makeIntList() 109 StringBuilder sb = new StringBuilder(); in makeHexList() local 111 sb.append("0x" + Integer.toHexString(values[index]).toUpperCase()); in makeHexList() 113 sb.append(","); in makeHexList() 117 return sb.toString(); in makeHexList()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
D | ListenerTest.java | 83 StringBuilder sb = new StringBuilder(); in check() local 84 createResultString(sb, "Expected", argList); in check() 112 createResultString(sb, "Received", mReceivedArgList); in check() 113 mReason = sb.toString(); in check() 172 private void createResultString(StringBuilder sb, String tag, in createResultString() argument 174 sb.append(tag); in createResultString() 175 sb.append(": "); in createResultString() 177 sb.append("None\n"); in createResultString() 182 sb.append(",\n"); in createResultString() 185 sb.append("\""); in createResultString() [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsActivity.java | 184 StringBuilder sb = new StringBuilder(); in showInfoInTextView() local 185 sb.append(mIsSetViewBound ? "setSystemGestureExclusionRects" : "no set").append("\n"); in showInfoInTextView() 186 sb.append("exclude rect list = " + Arrays.deepToString(mContent in showInfoInTextView() 190 sb.append("onApplyWindowInsets mDecorViewWindowInsets = " + mDecorViewWindowInsets); in showInfoInTextView() 191 sb.append("\n"); in showInfoInTextView() 192 sb.append("getSystemWindowInsets = " + mDecorViewWindowInsets.getSystemWindowInsets()); in showInfoInTextView() 193 sb.append("\n"); in showInfoInTextView() 194 sb.append("getSystemGestureInsets = " in showInfoInTextView() 196 sb.append("getMandatorySystemGestureInsets = " in showInfoInTextView() 198 sb.append("getTappableElementInsets = " in showInfoInTextView() [all …]
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 283 StringBuilder sb = new StringBuilder(getBaseUri()); in getAssetUrl() local 284 sb.append(ASSET_PREFIX); in getAssetUrl() 285 sb.append(path); in getAssetUrl() 286 return sb.toString(); in getAssetUrl() 305 StringBuilder sb = new StringBuilder(getBaseUri()); in getDelayedAssetUrl() local 306 sb.append(DELAY_PREFIX); in getDelayedAssetUrl() 307 sb.append("/"); in getDelayedAssetUrl() 308 sb.append(delayMs); in getDelayedAssetUrl() 309 sb.append(ASSET_PREFIX); in getDelayedAssetUrl() 310 sb.append(path); in getDelayedAssetUrl() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ComponentInfoTest.java | 110 StringBuilder sb = new StringBuilder(); in testDumpBack() local 111 assertEquals(0, sb.length()); in testDumpBack() 112 StringBuilderPrinter p = new StringBuilderPrinter(sb); in testDumpBack() 116 assertNotNull(sb.toString()); in testDumpBack() 117 assertTrue(sb.length() > 0); in testDumpBack() 120 sb = new StringBuilder(); in testDumpBack() 121 assertEquals(0, sb.length()); in testDumpBack() 122 p = new StringBuilderPrinter(sb); in testDumpBack() 125 assertNotNull(sb.toString()); in testDumpBack() 126 assertTrue(sb.length() > 0); in testDumpBack() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | TextUtils.java | 36 final StringBuilder sb = new StringBuilder(); in extractSection() local 44 sb.append(line); in extractSection() 45 sb.append('\n'); in extractSection() 56 sb.append(line); in extractSection() 57 sb.append('\n'); in extractSection() 61 sb.append(line); in extractSection() 62 sb.append('\n'); in extractSection() 64 return sb.toString(); in extractSection()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | TextUtils.java | 36 final StringBuilder sb = new StringBuilder(); in extractSection() local 44 sb.append(line); in extractSection() 45 sb.append('\n'); in extractSection() 56 sb.append(line); in extractSection() 57 sb.append('\n'); in extractSection() 61 sb.append(line); in extractSection() 62 sb.append('\n'); in extractSection() 64 return sb.toString(); in extractSection()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | ContinuousEventSanitizedVerification.java | 80 final StringBuilder sb = new StringBuilder(); in verify() local 81 sb.append(mNonSanitizedEvents).append(" non-sanitized events: "); in verify() 85 sb.append(String.format("sensor:%s", event.sensor.getName())); in verify() 86 sb.append(String.format("accuracy:%d", event.accuracy)); in verify() 87 sb.append(String.format("values:%s", Arrays.toString(event.values))); in verify() 90 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more"); in verify() 93 sb.delete(sb.length() - 2, sb.length()); in verify() 98 Assert.fail(sb.toString()); in verify()
|
D | EventOrderingVerification.java | 81 StringBuilder sb = new StringBuilder(); in verify() local 82 sb.append(count).append(" events out of order: "); in verify() 85 sb.append(String.format("position=%d, previous_ts=%.2fms, current_ts=%.2fms", in verify() 90 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more"); in verify() 93 sb.delete(sb.length() - 2, sb.length()); in verify() 96 Assert.fail(sb.toString()); in verify()
|
D | OffsetVerification.java | 93 StringBuilder sb = new StringBuilder(); in verify() 94 sb.append(count).append(" offsets: "); in verify() 96 sb.append(String.format("position=%d, offset_magnitude=%f; ", in verify() 100 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more; "); in verify() 102 sb.append(String.format("(expected <%f)", mMaximumOffset)); in verify() 103 Assert.fail(sb.toString()); in verify()
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiMessage.java | 33 StringBuilder sb = new StringBuilder(); in toString() local 34 sb.append("{opcode:" + opcode + " [len:" + len + "|"); in toString() 36 sb.append("0x" + Integer.toHexString(buffer[index] & 0x00FF)); in toString() 38 sb.append(" "); in toString() 41 sb.append("] timestamp:" + Long.toHexString(timestamp)); in toString() 43 return sb.toString(); in toString()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | DspBufferDouble.java | 48 StringBuilder sb = new StringBuilder(); in toString() local 50 sb.append(String.format("Size: %d { ", size)); in toString() 53 sb.append(String.format("%.3f, ", mData[i])); in toString() 56 sb.append(String.format("%.3f", mData[i])); in toString() 58 sb.append(" }"); in toString() 59 return sb.toString(); in toString()
|
D | DspBufferComplex.java | 52 StringBuilder sb = new StringBuilder(); in toString() local 54 sb.append(String.format("Size: %d { ", size)); in toString() 56 sb.append(String.format("(%.3f, %3f) ", mReal[i], mImag[i])); in toString() 58 sb.append("}"); in toString() 59 return sb.toString(); in toString()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | EditorState.java | 82 final StringBuilder sb = new StringBuilder(); in setByString() local 99 sb.append(token.substring(1, token.length() - 1)); in setByString() 105 sb.append(Character.toChars(codePoint)); in setByString() 111 mSelectionStart = mSelectionEnd = sb.length(); in setByString() 117 mSelectionStart = sb.length(); in setByString() 123 mSelectionEnd = sb.length(); in setByString() 129 replacementSpanStart = sb.length(); in setByString() 135 replacementSpanEnd = sb.length(); in setByString() 157 final Spannable spannable = new SpannableString(sb.toString()); in setByString()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/model/ |
D | Movie.java | 112 StringBuilder sb = new StringBuilder(200); in toString() local 113 sb.append("Movie{"); in toString() 114 sb.append("mId=" + mId); in toString() 115 sb.append(", mTitle='" + mTitle + '\''); in toString() 116 sb.append('}'); in toString() 117 return sb.toString(); in toString()
|