/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 | 94 final StringBuilder sb = new StringBuilder(); in onTagDiscovered() local 108 sb.append("Request APDU:\n"); in onTagDiscovered() 109 sb.append(apdu.getApdu() + "\n\n"); in onTagDiscovered() 113 sb.append("Response APDU (in " + Long.toString(apduEndTime - apduStartTime) + in onTagDiscovered() 115 sb.append(HceUtils.getHexBytes(null, response)); in onTagDiscovered() 117 sb.append("\n\n\n"); in onTagDiscovered() 129 sb.insert(0, "Total APDU exchange time: " + in onTagDiscovered() 134 mTextView.setText(sb.toString()); in onTagDiscovered() 139 sb.insert(0, "FAIL. Total APDU exchange time: " + in onTagDiscovered() 144 mTextView.setText(sb.toString()); in onTagDiscovered() [all …]
|
/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 …]
|
D | DnsSdResponseListenerTest.java | 128 StringBuilder sb = new StringBuilder(); in toString() local 129 sb.append("[type=dns_ptr instant_name="); in toString() 130 sb.append(mInstanceName); in toString() 131 sb.append(" registration type="); in toString() 132 sb.append(mRegistrationType); in toString() 133 sb.append("\n"); in toString()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | WorkSourceTest.java | 106 private void printArrays(StringBuilder sb, int[] uids, String[] names) { in printArrays() argument 107 sb.append("{ "); in printArrays() 109 if (i > 0) sb.append(", "); in printArrays() 110 sb.append(uids[i]); in printArrays() 112 sb.append(" "); in printArrays() 113 sb.append(names[i]); in printArrays() 116 sb.append(" }"); in printArrays() 120 StringBuilder sb = new StringBuilder(); in failWorkSource() local 121 sb.append(op); in failWorkSource() 122 sb.append(": Expected: "); in failWorkSource() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
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/tests/signature/src/android/signature/cts/ |
D | JDiffClassDescription.java | 159 StringBuffer sb = new StringBuffer(); in convertModifersToModifierString() local 167 sb.append(" "); in convertModifersToModifierString() 169 sb.append("abstract"); in convertModifersToModifierString() 175 sb.append(" "); in convertModifersToModifierString() 177 sb.append("static"); in convertModifersToModifierString() 183 sb.append(" "); in convertModifersToModifierString() 185 sb.append("final"); in convertModifersToModifierString() 191 sb.append(" "); in convertModifersToModifierString() 193 sb.append("transient"); in convertModifersToModifierString() 199 sb.append(" "); in convertModifersToModifierString() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ComponentInfoTest.java | 102 StringBuilder sb = new StringBuilder(); in testDumpBack() local 103 assertEquals(0, sb.length()); in testDumpBack() 104 StringBuilderPrinter p = new StringBuilderPrinter(sb); in testDumpBack() 108 assertNotNull(sb.toString()); in testDumpBack() 109 assertTrue(sb.length() > 0); in testDumpBack() 112 sb = new StringBuilder(); in testDumpBack() 113 assertEquals(0, sb.length()); in testDumpBack() 114 p = new StringBuilderPrinter(sb); in testDumpBack() 117 assertNotNull(sb.toString()); in testDumpBack() 118 assertTrue(sb.length() > 0); in testDumpBack() [all …]
|
D | ActivityInfoTest.java | 107 StringBuilder sb = new StringBuilder(); in testDump() local 108 assertEquals(0, sb.length()); in testDump() 109 StringBuilderPrinter p = new StringBuilderPrinter(sb); in testDump() 114 assertNotNull(sb.toString()); in testDump() 115 assertTrue(sb.length() > 0); in testDump()
|
/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()
|
D | VectorAverage.java | 84 StringBuffer sb = new StringBuffer(); in toString() local 87 sb.append(SERIALIZED_VERSION +"="+ mVersion +"\n"); in toString() 94 sb.append(SERIALIZED_COUNT + "=" + nCount +"\n"); in toString() 97 sb.append(String.format("%f\n",data[i])); in toString() 100 return sb.toString(); in toString()
|
/cts/suite/cts/hostTests/jank/app/src/com/android/cts/jank/opengl/ |
D | CtsDeviceJankOpenGl.java | 62 final StringBuilder sb = new StringBuilder(); in runBenchmark() local 63 sb.append(String.format(START_CMD, COMPONENT)); in runBenchmark() 64 sb.append(String.format(INTENT_STRING_EXTRA, "benchmark_name", benchmark)); in runBenchmark() 65 sb.append(String.format(INTENT_BOOLEAN_EXTRA, "offscreen", false)); in runBenchmark() 66 sb.append(String.format(INTENT_INTEGER_EXTRA, "num_frames", 1000)); in runBenchmark() 67 sb.append(String.format(INTENT_INTEGER_EXTRA, "num_iterations", 1)); in runBenchmark() 68 sb.append(String.format(INTENT_INTEGER_EXTRA, "timeout", 10000)); in runBenchmark() 69 final String startCommand = sb.toString(); in runBenchmark()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 347 StringBuilder sb = new StringBuilder(getBaseUri()); in getAssetUrl() local 348 sb.append(ASSET_PREFIX); in getAssetUrl() 349 sb.append(path); in getAssetUrl() 350 return sb.toString(); in getAssetUrl() 369 StringBuilder sb = new StringBuilder(getBaseUri()); in getDelayedAssetUrl() local 370 sb.append(DELAY_PREFIX); in getDelayedAssetUrl() 371 sb.append("/"); in getDelayedAssetUrl() 372 sb.append(delayMs); in getDelayedAssetUrl() 373 sb.append(ASSET_PREFIX); in getDelayedAssetUrl() 374 sb.append(path); in getDelayedAssetUrl() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
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 | EventGapVerification.java | 83 StringBuilder sb = new StringBuilder(); in verify() local 84 sb.append(count).append(" events gaps: "); in verify() 87 sb.append(String.format("position=%d, delta_time=%.2fms; ", info.index, in verify() 91 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more; "); in verify() 93 sb.append(String.format("(expected <%.2fms)", in verify() 95 Assert.fail(sb.toString()); in verify()
|
D | BatchArrivalVerification.java | 95 StringBuilder sb = new StringBuilder(); in verify() local 96 sb.append(count).append(" BatchArrivalDelayed: "); in verify() 99 sb.append(String.format("expectedBatchArrival=%dms actualBatchArrivalTime=%dms "+ in verify() 112 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more; "); in verify() 114 Assert.fail(sb.toString()); in verify()
|
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/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()
|
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/ |
D | Utils.java | 83 StringBuilder sb = new StringBuilder(); in toOptionsString() local 84 sb.append("{"); in toOptionsString() 87 sb.append(", "); in toOptionsString() 89 sb.append(options[i].getLabel()); in toOptionsString() 91 sb.append("}"); in toOptionsString() 92 return sb.toString(); in toOptionsString()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
D | ParallelSensorOperation.java | 178 StringBuilder sb = new StringBuilder(); in getSummaryMessage() local 180 sb.append(exception.toString()).append(", "); in getSummaryMessage() 184 sb.append("Operation"); in getSummaryMessage() 186 sb.append("s"); in getSummaryMessage() 188 sb.append(" ["); in getSummaryMessage() 190 sb.append(index).append(", "); in getSummaryMessage() 192 sb.append("] timed out"); in getSummaryMessage() 195 return sb.toString(); in getSummaryMessage()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | GeeTest.java | 84 StringBuilder sb = new StringBuilder(); in getGTestFilters() local 85 sb.append(GTEST_FLAG_FILTER); in getGTestFilters() 88 sb.append(mPositiveFilters); in getGTestFilters() 93 sb.append(":"); in getGTestFilters() 95 sb.append("-"); in getGTestFilters() 96 sb.append(mNegativeFilters); in getGTestFilters() 98 return sb.toString(); in getGTestFilters()
|
/cts/common/device-side/device-info/tests/src/com/android/compatibility/common/deviceinfo/ |
D | TestDeviceInfo.java | 76 StringBuilder sb = new StringBuilder(); in collectDeviceInfo() local 79 sb.append("a"); in collectDeviceInfo() 82 addResult("max_length_string", sb.toString()); in collectDeviceInfo()
|
D | SampleDeviceInfo.java | 61 StringBuilder sb = new StringBuilder(); in collectDeviceInfo() local 64 sb.append("a"); in collectDeviceInfo() 67 addResult("long_string", sb.toString()); in collectDeviceInfo()
|