Home
last modified time | relevance | path

Searched refs:sw (Results 1 – 25 of 56) sorted by relevance

123

/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DProcessLifeguardRule.java92 StringWriter sw = new StringWriter(); in writeToTestStorage() local
93 PrintWriter pw = new PrintWriter(sw); in writeToTestStorage()
95 sw.append("Mode: ").append(mMode.toString()).append("\n"); in writeToTestStorage()
96 sw.append("Thread: ").append(thread.toString()).append("\n"); in writeToTestStorage()
98 sw.append("Uncaught failure: "); in writeToTestStorage()
101 sw.append("Test failure: "); in writeToTestStorage()
105 sw.append("" + allTests.size()).append(" total tests:\n"); in writeToTestStorage()
106 allTests.forEach(t -> sw.append('\t').append(t).append('\n')); in writeToTestStorage()
107 sw.append("" + lastTests.size()).append(" tests since last failure:\n"); in writeToTestStorage()
108 lastTests.forEach(t -> sw.append('\t').append(t).append('\n')); in writeToTestStorage()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/iso7816/
DStatusWordTest.java36 StatusWord sw = StatusWord.fromInt(0x9000); in testFromInt_validStatusWord() local
37 assertThat(sw).isEqualTo(StatusWord.SW_NO_ERROR); in testFromInt_validStatusWord()
56 for (int sw : new int[] {-1, -70000, 70000, Integer.MAX_VALUE, Integer.MIN_VALUE}) { in testFromInt_tooManyBits()
59 StatusWord.fromInt(sw); in testFromInt_tooManyBits()
70 for (int sw = 0; sw <= 0xfffe; sw += 100) { in testFromInt_goodNumberOfBits()
71 StatusWord.fromInt(sw); in testFromInt_goodNumberOfBits()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/iso7816/
DResponseApdu.java102 ResponseApdu(byte[] rdata, int sw, long cmdTimeMillis) { in ResponseApdu() argument
104 this.mSw = sw; in ResponseApdu()
126 public static ResponseApdu fromDataAndStatusWord(byte[] data, int sw) { in fromDataAndStatusWord() argument
127 Preconditions.checkArgument((sw >> Short.SIZE) == 0); in fromDataAndStatusWord()
129 Bytes.concat(data == null ? new byte[]{} : data, Shorts.toByteArray((short) sw))); in fromDataAndStatusWord()
135 public static ResponseApdu fromDataAndStatusWord(List<TlvDatum> data, int sw) { in fromDataAndStatusWord() argument
140 return fromDataAndStatusWord(dataBytes, sw); in fromDataAndStatusWord()
146 public static ResponseApdu fromStatusWord(StatusWord sw) { in fromStatusWord() argument
147 return fromResponse(sw.toBytes()); in fromStatusWord()
183 int sw = buffer.getShort() & MASK_OF_SW; in fromResponse() local
[all …]
DStatusWord.java179 private StatusWord(int sw, String message) { in StatusWord() argument
180 mStatusWord = sw; in StatusWord()
185 public static StatusWord fromInt(int sw) { in fromInt() argument
186 Preconditions.checkArgument((sw >> Short.SIZE) == 0); in fromInt()
187 StatusWord statusWord = STATUS_WORD_MAP.get(Integer.valueOf(sw)); in fromInt()
191 return new StatusWord(sw, UNKNOWN_STATUS_WORD_MESSAGE); in fromInt()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiDiagnosticsTest.java460 StringWriter sw = new StringWriter(); in dumpFetchesFates() local
461 PrintWriter pw = new PrintWriter(sw); in dumpFetchesFates()
477 StringWriter sw = new StringWriter(); in dumpSucceedsWhenNoFatesHaveNotBeenFetched() local
478 PrintWriter pw = new PrintWriter(sw); in dumpSucceedsWhenNoFatesHaveNotBeenFetched()
481 String fateDumpString = sw.toString(); in dumpSucceedsWhenNoFatesHaveNotBeenFetched()
502 StringWriter sw = new StringWriter(); in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty() local
503 PrintWriter pw = new PrintWriter(sw); in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty()
506 String fateDumpString = sw.toString(); in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty()
539 StringWriter sw = new StringWriter(); in getDumpString() local
540 PrintWriter pw = new PrintWriter(sw); in getDumpString()
[all …]
/packages/modules/Bluetooth/android/pandora/server/src/
DUtils.kt143 val sw = StringWriter() in grpcUnary() constant
144 e.printStackTrace(PrintWriter(sw)) in grpcUnary()
146 Status.UNKNOWN.withCause(e).withDescription(sw.toString()).asException() in grpcUnary()
195 val sw = StringWriter() in grpcBidirectionalStream() constant
196 it.printStackTrace(PrintWriter(sw)) in grpcBidirectionalStream()
198 Status.UNKNOWN.withCause(it).withDescription(sw.toString()).asException() in grpcBidirectionalStream()
227 val sw = StringWriter() in grpcBidirectionalStream() constant
228 e.printStackTrace(PrintWriter(sw)) in grpcBidirectionalStream()
230 Status.UNKNOWN.withCause(e).withDescription(sw.toString()).asException() in grpcBidirectionalStream()
278 val sw = StringWriter() in grpcServerStream() constant
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterKMeans.java76 int sw = lw; in apply() local
78 while (sw > 64 && sh > 64) { in apply()
79 sw /= 2; in apply()
82 if (sw != lw) { in apply()
83 small_bm_ds = Bitmap.createScaledBitmap(large_bm_ds, sw, sh, true); in apply()
88 nativeApplyFilter(bitmap, w, h, large_bm_ds, lw, lh, small_bm_ds, sw, sh, p, mSeed); in apply()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageTinyPlanet.java154 float sw = canvas.getWidth(); in display() local
158 float nsw = sw; in display()
161 if (sw * ih > sh * iw) { in display()
164 nsh = sw * ih / iw; in display()
167 mDestRect.left = (sw - nsw) / 2; in display()
169 mDestRect.right = sw - mDestRect.left; in display()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DBpfDumpTest.java100 final StringWriter sw = new StringWriter(); in getDumpMap() local
101 BpfDump.dumpMap(map, new PrintWriter(sw), "mapName", "header", in getDumpMap()
103 return sw.toString(); in getDumpMap()
133 final StringWriter sw = new StringWriter(); in getDumpMapStatus() local
134 BpfDump.dumpMapStatus(map, new PrintWriter(sw), "mapName", "mapPath"); in getDumpMapStatus()
135 return sw.toString(); in getDumpMapStatus()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java278 StringWriter sw = new StringWriter(); in testAnalyticsVideo() local
279 PrintWriter pw = new PrintWriter(sw); in testAnalyticsVideo()
282 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT)); in testAnalyticsVideo()
337 StringWriter sw = new StringWriter(); in testAnalyticsDumpToProto() local
338 PrintWriter pw = new PrintWriter(sw); in testAnalyticsDumpToProto()
341 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT)); in testAnalyticsDumpToProto()
440 StringWriter sw = new StringWriter();
441 PrintWriter pw = new PrintWriter(sw);
444 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT));
459 StringWriter sw = new StringWriter();
[all …]
/packages/apps/SecureElement/src/com/android/se/
DChannel.java184 int sw = (sw1 << 8) | sw2; in selectNext() local
186 if (((sw & 0xF000) == 0x9000) || ((sw & 0xFF00) == 0x6200) in selectNext()
187 || ((sw & 0xFF00) == 0x6300)) { in selectNext()
190 } else if ((sw & 0xFF00) == 0x6A00) { in selectNext()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DLastCallerInfoManagerTest.java47 StringWriter sw = new StringWriter(); in testPutAndDump() local
48 mLastCallerInfoManager.dump(new PrintWriter(sw)); in testPutAndDump()
49 String serviceDump = sw.toString(); in testPutAndDump()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapMessageListing.java97 StringWriter sw = new StringWriter(); in encode() local
110 xmlMsgElement.setOutput(sw); in encode()
154 return sw.toString() in encode()
160 return sw.toString().getBytes("UTF-8"); in encode()
DBluetoothMapConvoListing.java97 StringWriter sw = new StringWriter(); in encode() local
100 xmlConvoElement.setOutput(sw); in encode()
134 return sw.toString().getBytes("UTF-8"); in encode()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/common/
DDumpHelper.java34 try (StringWriter sw = new StringWriter()) { in dump() argument
35 PrintWriter pw = new PrintWriter(sw); in dump()
38 return sw.toString(); in dump()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DJsonUtils.java72 final StringWriter sw = new StringWriter(); in listToJsonStr() local
73 final JsonWriter writer = new JsonWriter(sw); in listToJsonStr()
86 return sw.toString(); in listToJsonStr()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DBpfInterfaceMapHelperTest.java98 final StringWriter sw = new StringWriter(); in getDump() local
99 mUpdater.dump(new IndentingPrintWriter(new PrintWriter(sw), " ")); in getDump()
100 return sw.toString(); in getDump()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/
DFiRaResponse.java34 protected FiRaResponse(int sw) { in FiRaResponse() argument
35 this.statusWord = StatusWord.fromInt(sw); in FiRaResponse()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscoveredPrinter.java189 StringWriter sw = new StringWriter(); in toString() local
191 write(new JsonWriter(sw)); in toString()
194 return "DiscoveredPrinter" + sw.toString(); in toString()
/packages/modules/AdServices/adservices/samples/topics/sampleapp6/java/com/example/adservices/samples/topics/sampleapp6/
DMainActivity.java144 StringWriter sw = new StringWriter(); in registerGetTopicsButton()
145 PrintWriter pw = new PrintWriter(sw); in registerGetTopicsButton()
152 + sw.toString()); in registerGetTopicsButton()
/packages/apps/Car/SystemUI/src/com/android/systemui/wm/
DBarControlPolicy.java215 StringWriter sw = new StringWriter(); in toString() local
216 dump(new PrintWriter(sw, true)); in toString()
217 return sw.toString(); in toString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBogusMoveEventDetector.java52 final int sw = res.getConfiguration().smallestScreenWidthDp; in init() local
54 + " smallestScreenWidthDp=" + sw + " densityDpi=" + densityDpi in init()
/packages/apps/SecureElement/src/com/android/se/internal/
DUtil.java73 public static String createMessage(String commandName, int sw) { in createMessage() argument
79 message.append(Integer.toHexString(sw | 0x10000).substring(1)); in createMessage()
/packages/modules/AdServices/shared/tests/host-side/java/com/android/adservices/shared/testing/
DHostSideDynamicLoggerTest.java188 try (StringWriter sw = new StringWriter(); in assertLogEntryWithMultiLineException() argument
189 PrintWriter pw = new PrintWriter(sw); ) { in assertLogEntryWithMultiLineException()
191 stackTrace = sw.toString(); in assertLogEntryWithMultiLineException()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieItem.java116 public void setGeometry(float st, float sw, int inside, int outside) { in setGeometry() argument
118 sweep = sw; in setGeometry()

123