/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | ToStringUtils.java | 95 StringBuilder stringBuilder, int indentation, HeartRateRecord heartRateRecord) { in heartRateRecordToString() argument 98 addLine(stringBuilder, indentation, "Sample #" + i); in heartRateRecordToString() 99 addLinesForTime(stringBuilder, indentation + 2, "time", samples.get(i).getTime()); in heartRateRecordToString() 101 stringBuilder, in heartRateRecordToString() 106 return stringBuilder.toString(); in heartRateRecordToString() 110 StringBuilder stringBuilder, int indentation, String header, Instant time) { in addLinesForTime() argument 111 addLine(stringBuilder, indentation, header, time.toString()); in addLinesForTime() 112 addLine(stringBuilder, indentation, header + " - epochMillis", time.toEpochMilli()); in addLinesForTime() 113 return stringBuilder; in addLinesForTime() 131 StringBuilder stringBuilder, int indentation, String header) { in addLine() argument [all …]
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/util/ |
D | IndentingStringBuilderTest.java | 28 IndentingStringBuilder stringBuilder = new IndentingStringBuilder(); in testAppendIndentedStrings() local 29 stringBuilder in testAppendIndentedStrings() 35 String str = stringBuilder.toString(); in testAppendIndentedStrings() 43 IndentingStringBuilder stringBuilder = new IndentingStringBuilder(); in testDecreaseIndentLevel_throwsException() local 47 IllegalStateException.class, () -> stringBuilder.decreaseIndentLevel()); in testDecreaseIndentLevel_throwsException() 53 IndentingStringBuilder stringBuilder = new IndentingStringBuilder(); in testAppendIndentedObjects() local 58 stringBuilder in testAppendIndentedObjects() 67 String str = stringBuilder.toString(); in testAppendIndentedObjects() 75 IndentingStringBuilder stringBuilder = new IndentingStringBuilder(); in testAppendIndentedStrings_doesNotIndentLineBreak() local 77 stringBuilder in testAppendIndentedStrings_doesNotIndentLineBreak() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | FocusEntry.java | 148 StringBuilder stringBuilder = new StringBuilder(); in toString() local 149 stringBuilder.append("Focus Entry: client id "); in toString() 150 stringBuilder.append(getClientId()); in toString() 151 stringBuilder.append(", attributes "); in toString() 152 stringBuilder.append(mAudioFocusInfo.getAttributes()); in toString() 153 stringBuilder.append(", can duck "); in toString() 154 stringBuilder.append(receivesDuckEvents()); in toString() 155 stringBuilder.append(", wants pause "); in toString() 156 stringBuilder.append(wantsPauseInsteadOfDucking()); in toString() 157 stringBuilder.append(", is ducked "); in toString() [all …]
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | GarageModeRecorder.java | 182 StringBuilder stringBuilder = new StringBuilder(); in recordEvent() local 188 stringBuilder.append(SESSION_START_TIME); in recordEvent() 189 stringBuilder.append(mDateFormat.format(new Date(mSessionStartTime))); in recordEvent() 190 stringBuilder.append('\n'); in recordEvent() 193 stringBuilder.append(SESSION_FINISH_TIME); in recordEvent() 194 stringBuilder.append(mDateFormat.format(new Date(mSessionFinishTime))); in recordEvent() 195 stringBuilder.append('\n'); in recordEvent() 196 stringBuilder.append(SESSION_DURATION); in recordEvent() 197 stringBuilder.append(mSessionFinishTime - mSessionStartTime); in recordEvent() 198 stringBuilder.append(TIME_UNIT_MS); in recordEvent() [all …]
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/ |
D | BackupRestoreE2ETest.java | 495 StringBuilder stringBuilder = new StringBuilder(); in recordToString() local 496 appendToLog(stringBuilder, 0, record.getClass().getSimpleName()); in recordToString() 500 stringBuilder, in recordToString() 507 appendToLog(stringBuilder, 1, IntervalRecord.class.getSimpleName()); in recordToString() 508 appendToLog(stringBuilder, 2, "Start Time: ", ((IntervalRecord) record).getStartTime()); in recordToString() 509 appendToLog(stringBuilder, 2, "End Time: ", ((IntervalRecord) record).getEndTime()); in recordToString() 511 appendToLog(stringBuilder, 1, InstantRecord.class.getSimpleName()); in recordToString() 512 appendToLog(stringBuilder, 2, "Time: ", ((InstantRecord) record).getTime()); in recordToString() 516 appendToLog(stringBuilder, 1, "Metadata:"); in recordToString() 517 appendToLog(stringBuilder, 2, "getId: ", metadata.getId()); in recordToString() [all …]
|
/packages/modules/Connectivity/nearby/framework/java/android/nearby/ |
D | NearbyDevice.java | 114 StringBuilder stringBuilder = new StringBuilder(); in toString() local 115 stringBuilder.append("NearbyDevice ["); in toString() 117 stringBuilder.append("name=").append(mName).append(", "); in toString() 119 stringBuilder.append("medium={"); in toString() 121 stringBuilder.append(mediumToString(medium)); in toString() 123 stringBuilder.append("} rssi=").append(mRssi); in toString() 124 stringBuilder.append("]"); in toString() 125 return stringBuilder.toString(); in toString()
|
D | FastPairDevice.java | 159 StringBuilder stringBuilder = new StringBuilder(); in toString() local 160 stringBuilder.append("FastPairDevice ["); in toString() 163 stringBuilder.append("name=").append(name).append(", "); in toString() 165 stringBuilder.append("medium={"); in toString() 167 stringBuilder.append(mediumToString(medium)); in toString() 169 stringBuilder.append("} rssi=").append(getRssi()); in toString() 170 stringBuilder.append(" txPower=").append(mTxPower); in toString() 171 stringBuilder.append(" modelId=").append(mModelId); in toString() 172 stringBuilder.append(" bluetoothAddress=").append(mBluetoothAddress); in toString() 173 stringBuilder.append("]"); in toString() [all …]
|
D | ScanRequest.java | 215 StringBuilder stringBuilder = new StringBuilder(); in toString() local 216 stringBuilder.append("Request[") in toString() 218 stringBuilder.append(", scanMode=").append(scanModeToString(mScanMode)); in toString() 221 stringBuilder.append(", bleEnabled=").append(mBleEnabled); in toString() 222 stringBuilder.append(", offloadOnly=").append(mOffloadOnly); in toString() 224 stringBuilder.append(", enableBle=").append(mBleEnabled); in toString() 226 stringBuilder.append(", workSource=").append(mWorkSource); in toString() 227 stringBuilder.append(", scanFilters=").append(mScanFilters); in toString() 228 stringBuilder.append("]"); in toString() 229 return stringBuilder.toString(); in toString()
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | CarNotificationHeaderView.java | 141 StringBuilder stringBuilder = new StringBuilder(); in bind() local 159 stringBuilder.append(appName); in bind() 164 stringBuilder.append(mSeparatorText); in bind() 165 stringBuilder.append(extras.getCharSequence(Notification.EXTRA_SUB_TEXT)); in bind() 170 stringBuilder.append(mSeparatorText); in bind() 171 stringBuilder.append(extras.getCharSequence(Notification.EXTRA_INFO_TEXT)); in bind() 176 stringBuilder.append(mSeparatorText); in bind() 183 mHeaderTextView.setText(BidiFormatter.getInstance().unicodeWrap(stringBuilder, in bind()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | TextUtil.java | 66 public static void appendWithSeparator(final StringBuilder stringBuilder, final String text, in appendWithSeparator() argument 68 if (stringBuilder.length() > 0) { in appendWithSeparator() 69 stringBuilder.append(separator); in appendWithSeparator() 71 stringBuilder.append(text); in appendWithSeparator()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | HighUsageTip.java | 101 final StringBuilder stringBuilder = new StringBuilder(super.toString()); in toString() local 102 stringBuilder.append(" {"); in toString() 105 stringBuilder.append(" " + appInfo.toString() + " "); in toString() 107 stringBuilder.append('}'); in toString() 109 return stringBuilder.toString(); in toString()
|
D | RestrictAppTip.java | 165 final StringBuilder stringBuilder = new StringBuilder(super.toString()); in toString() local 166 stringBuilder.append(" {"); in toString() 169 stringBuilder.append(" " + appInfo.toString() + " "); in toString() 171 stringBuilder.append('}'); in toString() 173 return stringBuilder.toString(); in toString()
|
/packages/apps/Dialer/java/com/android/dialer/oem/ |
D | CequintCallerIdManager.java | 276 StringBuilder stringBuilder = new StringBuilder(); in generateDisplayName() local 280 stringBuilder.append(firstName); in generateDisplayName() 282 stringBuilder.append(" "); in generateDisplayName() 286 stringBuilder.append(lastName); in generateDisplayName() 289 stringBuilder.append(company); in generateDisplayName() 291 stringBuilder.append(name); in generateDisplayName() 296 if (stringBuilder.length() > 0) { in generateDisplayName() 297 return stringBuilder.toString(); in generateDisplayName()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/ |
D | AdServicesShellCommandHandler.java | 157 StringBuilder stringBuilder = new StringBuilder(); in onHelp() local 162 stringBuilder.append(help); in onHelp() 163 stringBuilder.append("\n\n"); in onHelp() 169 stringBuilder.append(help); in onHelp() 170 stringBuilder.append("\n\n"); in onHelp() 172 pw.printf(stringBuilder.toString()); in onHelp()
|
/packages/apps/Dialer/java/com/android/dialer/commandline/impl/ |
D | Help.java | 59 StringBuilder stringBuilder = new StringBuilder(); in run() local 62 stringBuilder in run() 75 stringBuilder.append(String.format(Locale.US, " %20s %s\n", entry.getKey(), description)); in run() 78 return Futures.immediateFuture(stringBuilder.toString()); in run()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pMetrics.java | 396 StringBuilder stringBuilder = new StringBuilder("Start connection event"); in startConnectionEvent() local 398 stringBuilder.append(", mCurrentConnectionEvent:null"); in startConnectionEvent() 400 stringBuilder.append(", curConnectionType:") in startConnectionEvent() 410 stringBuilder.append(", startConnectionType:") in startConnectionEvent() 415 Log.d(TAG, stringBuilder.toString()); in startConnectionEvent() 468 StringBuilder stringBuilder = new StringBuilder("End connection event"); in endConnectionEvent() local 470 stringBuilder.append(", mCurrentConnectionEvent:null"); in endConnectionEvent() 472 stringBuilder.append(", curConnectionType:") in endConnectionEvent() 483 stringBuilder.append(", endConnectivityLevelFailureCode:") in endConnectionEvent() 485 Log.d(TAG, stringBuilder.toString()); in endConnectionEvent()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | Log.java | 94 StringBuilder stringBuilder = new StringBuilder(originalString.length()); in piiHandle() local 97 stringBuilder.append('*'); in piiHandle() 99 stringBuilder.append(c); in piiHandle() 102 return stringBuilder.toString(); in piiHandle()
|
/packages/modules/Permission/tests/cts/permissionui/PermissionPolicyApp25/src/android/permissionui/cts/permissionpolicy/ |
D | TestProtectionFlagsActivity.kt | 81 val stringBuilder = StringBuilder() in <lambda>() constant 84 stringBuilder.apply { in <lambda>() 110 return stringBuilder.toString() in <lambda>()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/registration/ |
D | RegistrationControllerImpl.java | 214 StringBuilder stringBuilder = new StringBuilder( in dumpFeatureTagState() local 220 stringBuilder.append(featureTagState.getFeatureTag()).append(" ").append( in dumpFeatureTagState() 225 stringBuilder.append("] registeredFT:["); in dumpFeatureTagState() 228 stringBuilder.append(ft).append(" "); in dumpFeatureTagState() 230 stringBuilder.append("]"); in dumpFeatureTagState() 231 String result = stringBuilder.toString(); in dumpFeatureTagState()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/topics/ |
D | GetTopicsResult.java | 186 StringBuilder stringBuilder = new StringBuilder(); in prettyPrint() local 187 stringBuilder.append("["); in prettyPrint() 189 stringBuilder.append(Arrays.toString(listOfByteArrays.get(index))); in prettyPrint() 191 stringBuilder.append(", "); in prettyPrint() 194 stringBuilder.append("]"); in prettyPrint() 195 return stringBuilder.toString(); in prettyPrint()
|
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/ |
D | DelegateActivity.java | 142 StringBuilder stringBuilder = new StringBuilder( 148 stringBuilder.append(featureTagState.getFeatureTag()).append(" ").append( 153 stringBuilder.append("] registeredFT:["); 156 stringBuilder.append(ft).append(" "); 158 stringBuilder.append("]\r\n\r\n"); 159 mCallbackResultStr += stringBuilder.toString();
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/taskview/ |
D | RootTaskMediator.java | 337 StringBuilder stringBuilder = new StringBuilder("{" + "displayId=" + mDisplayId + " ,"); in toString() local 338 stringBuilder.append("taskStack=[\n"); in toString() 342 stringBuilder.append(" {" + " taskId=").append(topTask.taskId).append(",").append( in toString() 345 stringBuilder.append("]\n}\n"); in toString() 346 return stringBuilder.toString(); in toString()
|
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/ |
D | UwbAddress.java | 135 StringBuilder stringBuilder = new StringBuilder("0X"); in toHexString() local 137 stringBuilder.append(String.format("%02X", b)); in toHexString() 140 return stringBuilder.toString(); in toHexString()
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | LogUtil.java | 180 StringBuilder stringBuilder = new StringBuilder(phoneNumber.length()); in sanitizePhoneNumber() local 182 stringBuilder.append(sanitizeDialPadChar(c)); in sanitizePhoneNumber() 184 return stringBuilder.toString(); in sanitizePhoneNumber()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessageVCardTest.java | 124 StringBuilder stringBuilder = new StringBuilder(); in encodeToStringBuilder_thenParseBackToVCard_returnsCorrectly() local 125 vcardOriginal.encode(stringBuilder); in encodeToStringBuilder_thenParseBackToVCard_returnsCorrectly() 126 InputStream inputStream = new ByteArrayInputStream(stringBuilder.toString().getBytes()); in encodeToStringBuilder_thenParseBackToVCard_returnsCorrectly()
|