/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 45 ServiceState ss = new ServiceState(); in testRoaming() local 47 ss.setCdmaDefaultRoamingIndicator(1); in testRoaming() 48 assertEquals(1, ss.getCdmaDefaultRoamingIndicator()); in testRoaming() 50 ss.setCdmaEriIconIndex(2); in testRoaming() 51 assertEquals(2, ss.getCdmaEriIconIndex()); in testRoaming() 53 ss.setCdmaEriIconMode(3); in testRoaming() 54 assertEquals(3, ss.getCdmaEriIconMode()); in testRoaming() 56 ss.setCdmaRoamingIndicator(4); in testRoaming() 57 assertEquals(4, ss.getCdmaRoamingIndicator()); in testRoaming() 59 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming() [all …]
|
D | SignalStrengthControllerTest.java | 446 SignalStrength ss = new SignalStrength( in testSignalStrength() local 454 sendSignalStrength(ss); in testSignalStrength() 455 assertEquals(mSsc.getSignalStrength(), ss); in testSignalStrength() local 459 ss = new SignalStrength( in testSignalStrength() 469 sendSignalStrength(ss); in testSignalStrength() 470 assertEquals(mSsc.getSignalStrength(), ss); in testSignalStrength() local 474 ss = new SignalStrength( in testSignalStrength() 483 sendSignalStrength(ss); in testSignalStrength() 484 assertEquals(mSsc.getSignalStrength(), ss); in testSignalStrength() local 490 SignalStrength ss = new SignalStrength( in testLteSignalStrengthReportingCriteria() local [all …]
|
/frameworks/minikin/libs/minikin/ |
D | Debug.cpp | 60 std::stringstream ss; in toString() local 61 ss << point; in toString() 62 return ss.str(); in toString() 66 std::stringstream ss; in toString() local 67 ss << rect; in toString() 68 return ss.str(); in toString() 72 std::stringstream ss; in toString() local 73 ss << range; in toString() 74 return ss.str(); in toString() 78 std::stringstream ss; in toString() local [all …]
|
/frameworks/av/media/module/codecs/mp3dec/src/ |
D | pvmp3_dequantize_sample.cpp | 193 int32 ss; in pvmp3_dequantize_sample() local 226 for (ss = 0 ; ss < used_freq_lines ; ss++) in pvmp3_dequantize_sample() 228 if (ss == next_cb_boundary) in pvmp3_dequantize_sample() 241 else if (ss < mp3_sfBandIndex[sfreq].l[mixstart]) in pvmp3_dequantize_sample() 253 if (ss < 2*FILTERBANK_BANDS) in pvmp3_dequantize_sample() 273 … if ((gr_info->mixed_block_flag == 0) || (gr_info->mixed_block_flag && (ss >= 2*FILTERBANK_BANDS))) in pvmp3_dequantize_sample() 275 … int32 temp2 = fxp_mul32_Q32((ss - cb_begin) << 16, mp3_shortwindBandWidths[sfreq][cb_width]); in pvmp3_dequantize_sample() 296 int32 tmp = fxp_mul32_Q30((is[ss] << 16), power_1_third(pv_abs(is[ ss]))); in pvmp3_dequantize_sample() 305 is[ss] = (tmp >> temp); in pvmp3_dequantize_sample() 309 is[ss] = 0; in pvmp3_dequantize_sample() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncStorageEngineTest.java | 107 final SyncStatusInfo ss = new SyncStatusInfo(i); in populateStatus() local 108 ss.lastSuccessTime = r.nextLong(); in populateStatus() 109 ss.lastSuccessSource = r.nextInt(); in populateStatus() 110 ss.lastFailureTime = r.nextLong(); in populateStatus() 111 ss.lastFailureSource = r.nextInt(); in populateStatus() 112 ss.lastFailureMesg = "fail_msg_" + r.nextInt(); in populateStatus() 113 ss.initialFailureTime = r.nextLong(); in populateStatus() 114 ss.initialize = r.nextBoolean(); in populateStatus() 116 ss.addPeriodicSyncTime(r.nextLong()); in populateStatus() 122 ss.populateLastEventsInformation(lastEventInfos); in populateStatus() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | RtpStream.cpp | 32 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss); 42 sockaddr_storage ss; in create() local 43 if (parse(env, jAddress, 0, &ss) < 0) { in create() 48 int socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create() 49 socklen_t len = sizeof(ss); in create() 50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 || in create() 51 getsockname(socket, (sockaddr *)&ss, &len) != 0) { in create() 57 uint16_t *p = (ss.ss_family == AF_INET) ? in create() 58 &((sockaddr_in *)&ss)->sin_port : &((sockaddr_in6 *)&ss)->sin6_port; in create() 66 socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create() [all …]
|
D | util.cpp | 25 int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss) in parse() argument 40 memset(ss, 0, sizeof(*ss)); in parse() 42 sockaddr_in *sin = (sockaddr_in *)ss; in parse() 50 sockaddr_in6 *sin6 = (sockaddr_in6 *)ss; in parse()
|
/frameworks/av/media/mtp/tests/MtpFfsHandleTest/ |
D | MtpFfsHandle_test.cpp | 127 std::stringstream ss; in TYPED_TEST() local 133 ss << dummyDataStr; in TYPED_TEST() 135 EXPECT_EQ(write(this->bulk_out, ss.str().c_str(), size), size); in TYPED_TEST() 138 EXPECT_STREQ(buf, ss.str().c_str()); in TYPED_TEST() 150 std::stringstream ss; in TYPED_TEST() local 156 ss << dummyDataStr; in TYPED_TEST() 158 EXPECT_EQ(this->handle->write(ss.str().c_str(), size), size); in TYPED_TEST() 161 EXPECT_STREQ(buf, ss.str().c_str()); in TYPED_TEST() 165 std::stringstream ss; in TYPED_TEST() local 175 EXPECT_EQ(write(this->bulk_out, ss.str().c_str(), size), size); in TYPED_TEST() [all …]
|
/frameworks/rs/ |
D | rsScriptC_Lib.cpp | 240 static void initializeErrorMsg(std::stringstream &ss, int expectDim, bool isSrc) { in initializeErrorMsg() argument 241 ss << (expectDim == 1 ? "rsAllocationCopy1DRange" : "rsAllocationCopy2DRange") << ": "; in initializeErrorMsg() 242 ss << (isSrc? "source" : "destination") << " "; in initializeErrorMsg() 250 std::stringstream ss; in validateCopyArgs() local 253 initializeErrorMsg(ss, expectDim, isSrc); in validateCopyArgs() 254 ss << "Mip level out of range: "; in validateCopyArgs() 255 ss << lod << " >= " << alloc->mHal.drvState.lodCount; in validateCopyArgs() 256 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs() 264 initializeErrorMsg(ss, expectDim, isSrc); in validateCopyArgs() 265 ss << "X range: "; in validateCopyArgs() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | CallQualityMetrics.java | 158 Integer ss = getLteSnr(); in addSnapshot() local 159 snapshots.add(Pair.create(cq, ss)); in addSnapshot() 176 Integer ss = getLteSnr(); in updateMinAndMaxSignalStrengthSnapshots() local 177 if (ss.equals(CellInfo.UNAVAILABLE)) { in updateMinAndMaxSignalStrengthSnapshots() 183 if (mWorstSsWithGoodDlQuality == null || ss < mWorstSsWithGoodDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 184 mWorstSsWithGoodDlQuality = Pair.create(cq, ss); in updateMinAndMaxSignalStrengthSnapshots() 186 if (mBestSsWithGoodDlQuality == null || ss > mBestSsWithGoodDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 187 mBestSsWithGoodDlQuality = Pair.create(cq, ss); in updateMinAndMaxSignalStrengthSnapshots() 190 if (mWorstSsWithBadDlQuality == null || ss < mWorstSsWithBadDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 191 mWorstSsWithBadDlQuality = Pair.create(cq, ss); in updateMinAndMaxSignalStrengthSnapshots() [all …]
|
/frameworks/av/services/mediametrics/include/mediametricsservice/ |
D | StatsdLog.h | 41 std::stringstream ss; variable 50 ss << "\n" << prefix; 52 ss << " "; 54 ss << "[ " << count.first << " : " << count.second << " ]"; 57 ss << "\n"; 61 ss << mSimpleLog.dumpToString(prefix, logLines); 62 return ss.str();
|
D | HeatMap.h | 107 std::stringstream ss; in dump() local 108 ss << "{ "; in dump() 111 ss << std::fixed << std::setprecision(2) << errorFraction << " "; in dump() 114 ss << eventPair.first << ": { "; in dump() 117 ss << std::fixed << std::setprecision(2) << errorFraction << " "; in dump() 120 ss << "[ " << name << " : " << count << " ] "; in dump() 122 ss << "} "; in dump() 124 ss << " }"; in dump() 125 return ss.str(); in dump() 205 std::stringstream ss; variable [all …]
|
D | AnalyticsState.h | 92 std::stringstream ss; variable 96 ss << "TransactionLog: gc(" << mTransactionLog.getGarbageCollectionCount() << ")\n"; 101 ss << s; 105 ss << "TimeMachine: gc(" << mTimeMachine.getGarbageCollectionCount() << ")\n"; 110 ss << s; 113 return { ss.str(), lines - ll };
|
D | StringUtils.h | 57 void fieldPrint(std::stringstream& ss, const char * const (& fields)[N], Targs... args) { in fieldPrint() argument 60 ((ss << *fptr++ << ":" << args << " "), ...); // (fold expression), send to stringstream. in fieldPrint() 174 std::stringstream ss; variable 175 ss << "{"; 176 ss << std::hex << std::setfill('0'); 179 ss << " " << std::setw(2) << (int)bytes[i]; 182 ss << " ... }"; 184 ss << " }"; 186 return ss.str();
|
/frameworks/av/media/libheadtracking/ |
D | HeadTrackingProcessor.cpp | 171 std::string ss = prefixSpace + "HeadTrackingProcessor:\n"; in toString_l() local 172 StringAppendF(&ss, "%s maxTranslationalVelocity: %f meter/second\n", prefixSpace.c_str(), in toString_l() 174 StringAppendF(&ss, "%s maxRotationalVelocity: %f rad/second\n", prefixSpace.c_str(), in toString_l() 176 StringAppendF(&ss, "%s freshnessTimeout: %0.4f ms\n", prefixSpace.c_str(), in toString_l() 178 StringAppendF(&ss, "%s predictionDuration: %0.4f ms\n", prefixSpace.c_str(), in toString_l() 180 StringAppendF(&ss, "%s autoRecenterWindowDuration: %0.4f ms\n", prefixSpace.c_str(), in toString_l() 182 StringAppendF(&ss, "%s autoRecenterTranslationalThreshold: %f meter\n", prefixSpace.c_str(), in toString_l() 184 StringAppendF(&ss, "%s autoRecenterRotationalThreshold: %f radians\n", prefixSpace.c_str(), in toString_l() 186 StringAppendF(&ss, "%s screenStillnessWindowDuration: %0.4f ms\n", prefixSpace.c_str(), in toString_l() 188 StringAppendF(&ss, "%s screenStillnessTranslationalThreshold: %f meter\n", in toString_l() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyTester.java | 418 public void updateLevel(PersistableBundle cc, ServiceState ss) { in updateLevel() argument 465 void overrideServiceState(ServiceState ss) { in overrideServiceState() argument 466 if (mServiceStateTestIntent == null || ss == null) return; in overrideServiceState() 476 ss.setVoiceRegState(mServiceStateTestIntent.getIntExtra(EXTRA_VOICE_REG_STATE, in overrideServiceState() 478 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState() 487 ss.addNetworkRegistrationInfo(builder.build()); in overrideServiceState() 488 log("Override voice service state with " + ss.getState()); in overrideServiceState() 493 ss.setDataRegState(state); in overrideServiceState() 494 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState() 503 ss.addNetworkRegistrationInfo(builder.build()); in overrideServiceState() [all …]
|
/frameworks/av/media/libnblog/ |
D | PerformanceAnalysis.cpp | 79 std::stringstream ss; in toString() local 81 ss << kVersion << "," << mBinSize << "," << mNumBins << "," << mLow << ",{"; in toString() 86 ss << ","; in toString() 88 ss << static_cast<int>(i) - 1 << kDivider << mBins[i]; in toString() 92 ss << "}"; in toString() 94 return ss.str(); in toString() 118 std::stringstream ss; in asciiArtString() local 133 ss << std::setw(indent + kMaxNumberWidth); in asciiArtString() 135 ss << "<"; in asciiArtString() 137 ss << ">"; in asciiArtString() [all …]
|
D | ReportPerformance.cpp | 63 std::stringstream ss; in dumpHistogramsToString() local 64 ss << "==========================================\n"; in dumpHistogramsToString() 65 ss << "Thread type=" << NBLog::threadTypeToString(data.threadInfo.type) in dumpHistogramsToString() 69 ss << " Thread work times in ms:\n" << data.workHist.asciiArtString(4 /*indent*/); in dumpHistogramsToString() 70 ss << " Thread latencies in ms:\n" << data.latencyHist.asciiArtString(4 /*indent*/); in dumpHistogramsToString() 71 ss << " Thread warmup times in ms:\n" << data.warmupHist.asciiArtString(4 /*indent*/); in dumpHistogramsToString() 72 return ss.str(); in dumpHistogramsToString() 118 std::stringstream ss; in dumpRetroString() local 119 ss << NBLog::threadTypeToString(data.threadInfo.type) << "," << data.threadInfo.id << "\n"; in dumpRetroString() 124 ss << "EVENT_UNDERRUN,"; in dumpRetroString() [all …]
|
/frameworks/av/media/libeffects/hapticgenerator/aidl/ |
D | HapticGeneratorContext.cpp | 347 std::stringstream ss; in paramToString() local 348 ss << "\t\ttHapticGenerator Parameters:\n"; in paramToString() 349 ss << "\t\t- mHapticChannelCount: " << param.mHapticChannelCount << '\n'; in paramToString() 350 ss << "\t\t- mAudioChannelCount: " << param.mAudioChannelCount << '\n'; in paramToString() 351 ss << "\t\t- mHapticChannelSource: " << param.mHapticChannelSource[0] << ", " in paramToString() 353 ss << "\t\t- mMaxVibratorScale: " << ::android::internal::ToString(param.mMaxVibratorScale) in paramToString() 355 ss << "\t\t- mVibratorInfo: " << param.mVibratorInfo.toString() << '\n'; in paramToString() 357 ss << "\t\t\t" << it.first << ": " << toString(it.second) << '\n'; in paramToString() 359 return ss.str(); in paramToString() 363 std::stringstream ss; in contextToString() local [all …]
|
/frameworks/av/services/audiopolicy/service/ |
D | SpatializerPoseController.cpp | 363 std::string ss = prefixSpace + "SpatializerPoseController:\n"; in toString() local 369 ss.append(prefixSpace).append("try_lock failed, dumpsys maybe INACCURATE!\n"); in toString() 374 ss += prefixSpace; in toString() 376 ss += "HeadSensor: INVALID\n"; in toString() 378 base::StringAppendF(&ss, "HeadSensor: 0x%08x " in toString() 382 ss.append(prefixSpace) in toString() 390 ss += prefixSpace; in toString() 392 ss += "ScreenSensor: INVALID\n"; in toString() 394 base::StringAppendF(&ss, "ScreenSensor: 0x%08x (active world-to-screen) " in toString() 397 ss.append(prefixSpace) in toString() [all …]
|
/frameworks/av/media/libaudiofoundation/ |
D | AudioContainers.cpp | 91 std::stringstream ss; in deviceTypesToString() local 94 ss << ", "; in deviceTypesToString() 98 ss << strType; in deviceTypesToString() 100 ss << "unknown type:0x" << std::hex << *it; in deviceTypesToString() 103 return ss.str(); in deviceTypesToString() 112 std::stringstream ss; in dumpDeviceTypes() local 115 ss << ", "; in dumpDeviceTypes() 117 ss << "0x" << std::hex << (*it); in dumpDeviceTypes() 119 return ss.str(); in dumpDeviceTypes() 123 std::stringstream ss; in dumpMixerBehaviors() local [all …]
|
/frameworks/av/media/libheadtracking/include/media/ |
D | VectorRecorder.h | 89 std::string ss = "["; variable 95 ss.append(" : "); 98 ss.append(", "); 102 base::StringAppendF(&ss, formatString, static_cast<double>(record[i])); 104 base::StringAppendF(&ss, "%5.2lf", static_cast<double>(record[i])); 107 ss.append("]"); 108 return ss;
|
/frameworks/native/libs/input/ |
D | PrintTools.cpp | 29 std::stringstream ss; in addLinePrefix() local 33 ss << prefix; in addLinePrefix() 39 ss << ch; in addLinePrefix() 41 return ss.str(); in addLinePrefix()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | OneShotTimer.cpp | 98 std::stringstream ss; in loop() local 99 ss << "sem_wait failed (" << errno << ")"; in loop() 100 LOG_ALWAYS_FATAL("%s", ss.str().c_str()); in loop() 125 std::stringstream ss; in loop() local 126 ss << "sem_wait failed (" << errno << ")"; in loop() 127 LOG_ALWAYS_FATAL("%s", ss.str().c_str()); in loop() 143 std::stringstream ss; in loop() local 144 ss << "sem_clockwait failed (" << errno << ")"; in loop() 145 LOG_ALWAYS_FATAL("%s", ss.str().c_str()); in loop()
|
/frameworks/av/include/media/ |
D | VolumeShaper.h | 357 std::stringstream ss; in toString() local 358 ss << "VolumeShaper::Configuration{mType=" << toString(mType); in toString() 359 ss << ", mId=" << mId; in toString() 361 ss << ", mOptionFlags=" << toString(mOptionFlags); in toString() 362 ss << ", mDurationMs=" << mDurationMs; in toString() 363 ss << ", " << Interpolator<S, T>::toString().c_str(); in toString() 365 ss << "}"; in toString() 366 return ss.str(); in toString() 555 std::stringstream ss; in toString() local 556 ss << "VolumeShaper::Operation{mFlags=" << toString(mFlags); in toString() [all …]
|