Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 92) sorted by relevance

1234

/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DProtocolParamsReaderActivity.java45 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 …]
DHceUtils.java43 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()
DSimpleReaderActivity.java95 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralAttributesActivity.java63 StringBuilder sb = new StringBuilder(); in updateConnectStatus() local
66 sb.append("Output - Channel Counts Mismatch\n"); in updateConnectStatus()
70 sb.append("Output - Channel Index Masks Mismatch\n"); in updateConnectStatus()
74 sb.append("Output - Channel Position Masks Mismatch\n"); in updateConnectStatus()
77 sb.append("Output - Encodings Mismatch\n"); in updateConnectStatus()
80 sb.append("Output - Sample Rates Mismatch\n"); in updateConnectStatus()
83 if (sb.toString().length() == 0){ in updateConnectStatus()
87 metaSb.append(sb.toString()); in updateConnectStatus()
96 StringBuilder sb = new StringBuilder(); in updateConnectStatus() local
99 sb.append("Input - Channel Counts Mismatch\n"); in updateConnectStatus()
[all …]
DUsbMicrophoneTester.java34 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
DAudioBandSpecs.java83 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()
DAudioFrequencyUnprocessedActivity.java468 StringBuilder sb = new StringBuilder(); in computeAllResults() local
474 sb.append(String.format("%s : %s\n", getTestString(i), in computeAllResults()
479 sb.append(computeResults()); in computeAllResults()
481 sb.append("Please execute all tests for results\n"); in computeAllResults()
483 mGlobalResultText.setText(sb.toString()); in computeAllResults()
540 StringBuilder sb = new StringBuilder(); in computeResults() local
593 sb.append(String.format("RMS level of tone: %.2f dBFS\n", rmsMaxDb)); in computeResults()
594 sb.append(String.format("Target RMS level: %.2f dBFS +/- %.2f dB\n", in computeResults()
599 sb.append("RMS level test FAILED\n"); in computeResults()
601 sb.append(" RMS level test SUCCESSFUL\n"); in computeResults()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DListenerTest.java83 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 …]
DDnsSdResponseListenerTest.java128 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/
DWorkSourceTest.java106 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/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java282 StringBuilder sb = new StringBuilder(getBaseUri()); in getAssetUrl() local
283 sb.append(ASSET_PREFIX); in getAssetUrl()
284 sb.append(path); in getAssetUrl()
285 return sb.toString(); in getAssetUrl()
304 StringBuilder sb = new StringBuilder(getBaseUri()); in getDelayedAssetUrl() local
305 sb.append(DELAY_PREFIX); in getDelayedAssetUrl()
306 sb.append("/"); in getDelayedAssetUrl()
307 sb.append(delayMs); in getDelayedAssetUrl()
308 sb.append(ASSET_PREFIX); in getDelayedAssetUrl()
309 sb.append(path); in getDelayedAssetUrl()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java110 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/tests/signature/src/android/signature/cts/
DJDiffClassDescription.java180 StringBuffer sb = new StringBuffer(); in convertModifersToModifierString() local
188 sb.append(" "); in convertModifersToModifierString()
190 sb.append("abstract"); in convertModifersToModifierString()
196 sb.append(" "); in convertModifersToModifierString()
198 sb.append("static"); in convertModifersToModifierString()
204 sb.append(" "); in convertModifersToModifierString()
206 sb.append("final"); in convertModifersToModifierString()
212 sb.append(" "); in convertModifersToModifierString()
214 sb.append("transient"); in convertModifersToModifierString()
220 sb.append(" "); in convertModifersToModifierString()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspBufferDouble.java48 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()
DDspBufferComplex.java52 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DAudioStringsHelper.java96 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/common/host-side/util/src/com/android/compatibility/common/util/
DTestFilter.java97 StringBuilder sb = new StringBuilder(); in toString() local
99 sb.append(mAbi.trim()); in toString()
100 sb.append(" "); in toString()
103 sb.append(mName.trim()); in toString()
106 sb.append(" "); in toString()
107 sb.append(mTest.trim()); in toString()
109 return sb.toString(); in toString()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventOrderingVerification.java81 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()
DEventGapVerification.java86 StringBuilder sb = new StringBuilder(); in verify() local
87 sb.append(count).append(" events gaps: "); in verify()
90 sb.append(String.format("position=%d, delta_time=%.2fms; ", info.index, in verify()
94 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more; "); in verify()
96 sb.append(String.format("(expected <%.2fms)", in verify()
98 Assert.fail(sb.toString()); in verify()
/cts/hostsidetests/theme/src/android/theme/cts/
DColorUtils.java156 double sb = b / 255.0; in RGBToXYZ()
157 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ()
159 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
160 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
161 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
/cts/tests/tests/text/src/android/text/method/cts/
DEditorState.java82 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/
DMovie.java112 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/
DUtils.java86 StringBuilder sb = new StringBuilder(); in toOptionsString() local
87 sb.append("{"); in toOptionsString()
90 sb.append(", "); in toOptionsString()
92 sb.append(options[i].getLabel()); in toOptionsString()
94 sb.append("}"); in toOptionsString()
95 return sb.toString(); in toOptionsString()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DEntity.java46 final StringBuilder sb = new StringBuilder("("); in createEntitySql() local
48 if (field.pos > 0) sb.append(", "); in createEntitySql()
49 sb.append(field.name).append(" ").append(field.sqLiteType); in createEntitySql()
51 sb.append(" PRIMARY KEY AUTOINCREMENT"); in createEntitySql()
54 return sb.append(")").toString(); in createEntitySql()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DParallelSensorOperation.java178 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()

1234