Home
last modified time | relevance | path

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

12345678

/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.java46 StringBuilder sb = new StringBuilder(); in getHexBytes() local
48 sb.append(header + ": "); in getHexBytes()
51 sb.append(String.format("%02X ", b)); in getHexBytes()
53 return sb.toString(); in getHexBytes()
76 StringBuilder sb = new StringBuilder(); in buildSelectApdu() local
77 sb.append("00A40400"); in buildSelectApdu()
78 sb.append(String.format("%02X", aid.length() / 2)); in buildSelectApdu()
79 sb.append(aid); in buildSelectApdu()
80 return new CommandApdu(sb.toString(), reachable); in buildSelectApdu()
/cts/tests/signature/lib/common/src/android/signature/cts/
DJDiffClassDescription.java161 StringBuilder sb = new StringBuilder(); in convertModifersToModifierString() local
166 sb.append(separator).append("abstract"); in convertModifersToModifierString()
170 sb.append(separator).append("static"); in convertModifersToModifierString()
174 sb.append(separator).append("final"); in convertModifersToModifierString()
178 sb.append(separator).append("transient"); in convertModifersToModifierString()
182 sb.append(separator).append("volatile"); in convertModifersToModifierString()
186 sb.append(separator).append("synchronized"); in convertModifersToModifierString()
190 sb.append(separator).append("native"); in convertModifersToModifierString()
194 sb.append(separator).append("strictfp"); in convertModifersToModifierString()
197 return sb.toString(); in convertModifersToModifierString()
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStream.java144 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/
DUSBAudioPeripheralAttributesActivity.java69 StringBuilder sb = new StringBuilder(); in updateConnectStatus() local
73 sb.append("Output - No Peripheral Channel Counts\n"); in updateConnectStatus()
75 sb.append("Output - Channel Counts Mismatch" + in updateConnectStatus()
82 sb.append("Output - No Peripheral Encodings\n"); in updateConnectStatus()
84 sb.append("Output - Encodings Mismatch" + in updateConnectStatus()
91 sb.append("Output - No Peripheral Sample Rates\n"); in updateConnectStatus()
93 sb.append("Output - Sample Rates Mismatch" + in updateConnectStatus()
101 sb.append("Output - No Peripheral Channel Masks\n"); in updateConnectStatus()
106 sb.append("Output - Channel Index Masks Mismatch" + in updateConnectStatus()
114 sb.append("Output - Channel Position Masks Mismatch" + 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DListsHelper.java65 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 …]
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/tests/tests/os/src/android/os/cts/
DWorkSourceTest.java62 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/tests/wifi/src/android/net/wifi/p2p/cts/
DWifiP2pServiceRequestTest.java36 StringBuffer sb = new StringBuffer(); in bin2HexStr() local
38 sb.append(String.format(Locale.US, "%02x", b & 0xff)); in bin2HexStr()
40 return sb.toString(); in bin2HexStr()
44 StringBuffer sb = new StringBuffer(); in testValidRawRequest() local
45 sb.append(String.format(Locale.US, "%02x", TEST_UPNP_VERSION)); in testValidRawRequest()
46 sb.append(bin2HexStr(TEST_UPNP_QUERY.getBytes())); in testValidRawRequest()
51 sb.toString()); in testValidRawRequest()
61 StringBuffer sb = new StringBuffer(); in testInvalidRawRequest() local
62 sb.append(String.format(Locale.US, "%02x", TEST_UPNP_VERSION)); in testInvalidRawRequest()
63 sb.append(bin2HexStr(TEST_UPNP_QUERY.getBytes())); in testInvalidRawRequest()
[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 …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsActivity.java189 StringBuilder sb = new StringBuilder(); in showInfoInTextView() local
190 sb.append("exclude rect list = " + Arrays.deepToString(mContent in showInfoInTextView()
194 sb.append("onApplyWindowInsets mDecorViewWindowInsets = " + mDecorViewWindowInsets); in showInfoInTextView()
195 sb.append("\n"); in showInfoInTextView()
196 sb.append("getSystemWindowInsets = " + mDecorViewWindowInsets.getSystemWindowInsets()); in showInfoInTextView()
197 sb.append("\n"); in showInfoInTextView()
198 sb.append("getSystemGestureInsets = " in showInfoInTextView()
200 sb.append("getMandatorySystemGestureInsets = " in showInfoInTextView()
202 sb.append("getTappableElementInsets = " in showInfoInTextView()
204 sb.append("decor boundary = ").append(mDecorBound).append("\n"); in showInfoInTextView()
[all …]
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DChange.java173 final StringBuilder sb = new StringBuilder(); in toString() local
174 sb.append("ChangeId(" + changeId); in toString()
176 sb.append("; name=" + changeName); in toString()
179 sb.append("; enableSinceTargetSdk=" + sinceSdk); in toString()
182 sb.append("; disabled"); in toString()
185 sb.append("; packageOverrides={"); in toString()
186 sb.append(overridesStr); in toString()
187 sb.append("}"); in toString()
190 sb.append("; rawOverrides={"); in toString()
191 sb.append(rawOverrideStr); in toString()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DTextUtils.java36 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/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/sensor/src/android/hardware/cts/helpers/sensorverification/
DContinuousEventSanitizedVerification.java80 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()
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()
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiMessage.java33 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/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java322 StringBuilder sb = new StringBuilder(getBaseUri()); in getAssetUrl() local
323 sb.append(ASSET_PREFIX); in getAssetUrl()
324 sb.append(path); in getAssetUrl()
325 return sb.toString(); in getAssetUrl()
344 StringBuilder sb = new StringBuilder(getBaseUri()); in getDelayedAssetUrl() local
345 sb.append(DELAY_PREFIX); in getDelayedAssetUrl()
346 sb.append("/"); in getDelayedAssetUrl()
347 sb.append(delayMs); in getDelayedAssetUrl()
348 sb.append(ASSET_PREFIX); in getDelayedAssetUrl()
349 sb.append(path); in getDelayedAssetUrl()
[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/nfc/offhost/
DSimpleOffhostReaderActivity.java117 final StringBuilder sb = new StringBuilder(); in onTagDiscovered() local
156 sb.append("Request APDU:\n"); in onTagDiscovered()
157 sb.append(apdu.getApdu() + "\n\n"); in onTagDiscovered()
162 if (!responseCheck(sb, response, count, apduStartTime, apduEndTime)) { in onTagDiscovered()
183 sb.append("Request APDU:\n"); in onTagDiscovered()
184 sb.append(apdu.getApdu() + "\n\n"); in onTagDiscovered()
189 if (!responseCheck(sb, response, count, apduStartTime, apduEndTime)) { in onTagDiscovered()
211 sb.append("Request APDU:\n"); in onTagDiscovered()
212 sb.append(apdu.getApdu() + "\n\n"); in onTagDiscovered()
216 if (!responseCheck(sb, response, count, apduStartTime, apduEndTime)) { in onTagDiscovered()
[all …]
/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/tests/identity/src/android/security/identity/cts/
DUtil.java145 StringBuilder sb = new StringBuilder(); in cborPrettyPrint() local
152 sb.append(",\n"); in cborPrettyPrint()
154 cborPrettyPrintDataItem(sb, 0, dataItem); in cborPrettyPrint()
158 return sb.toString(); in cborPrettyPrint()
175 static void cborPrettyPrintDataItem(StringBuilder sb, int indent, DataItem dataItem) { in cborPrettyPrintDataItem() argument
183 sb.append(String.format("tag %d ", dataItem.getTag().getValue())); in cborPrettyPrintDataItem()
189 sb.append("<invalid>"); in cborPrettyPrintDataItem()
194 sb.append(value); in cborPrettyPrintDataItem()
200 sb.append(value); in cborPrettyPrintDataItem()
206 sb.append("["); in cborPrettyPrintDataItem()
[all …]

12345678