/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 44 ServiceState ss = new ServiceState(); in testRoaming() local 46 ss.setCdmaDefaultRoamingIndicator(1); in testRoaming() 47 assertEquals(1, ss.getCdmaDefaultRoamingIndicator()); in testRoaming() 49 ss.setCdmaEriIconIndex(2); in testRoaming() 50 assertEquals(2, ss.getCdmaEriIconIndex()); in testRoaming() 52 ss.setCdmaEriIconMode(3); in testRoaming() 53 assertEquals(3, ss.getCdmaEriIconMode()); in testRoaming() 55 ss.setCdmaRoamingIndicator(4); in testRoaming() 56 assertEquals(4, ss.getCdmaRoamingIndicator()); in testRoaming() 58 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming() [all …]
|
D | SignalStrengthTest.java | 235 SignalStrength ss; in testValidateInput() local 238 ss = createSignalStrengthLteReportRsrq(-60, 4); in testValidateInput() 239 assertEquals(SignalStrength.INVALID, ss.getLteRsrq()); in testValidateInput() 242 ss = createSignalStrengthLteReportRsrq(-60, 3); in testValidateInput() 243 assertEquals(3, ss.getLteRsrq()); in testValidateInput() 246 ss = createSignalStrengthLteReportRsrq(-60, -34); in testValidateInput() 247 assertEquals(-34, ss.getLteRsrq()); in testValidateInput() 250 ss = createSignalStrengthLteReportRsrq(-60, -35); in testValidateInput() 251 assertEquals(SignalStrength.INVALID, ss.getLteRsrq()); in testValidateInput() 254 ss = createSignalStrengthLteReportRssnr(-60, 31); in testValidateInput() [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/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/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/av/media/libstagefright/include/media/stagefright/ |
D | MediaHistogram.h | 176 std::stringstream ss(""); in emit() 178 ss << mBelow << "{"; in emit() 180 ss << mFloor << "," << mWidth << "," << mBelow << "{"; in emit() 184 ss << ","; in emit() 186 ss << mBuckets[i]; in emit() 188 ss << "}" << mAbove; in emit() 189 return ss.str(); in emit() 194 std::stringstream ss(""); in emitBuckets() 196 ss << mFloor; in emitBuckets() 198 ss << ',' << mBucketLimits[i]; in emitBuckets() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyTester.java | 401 void overrideServiceState(ServiceState ss) { in overrideServiceState() argument 402 if (mServiceStateTestIntent == null || ss == null) return; in overrideServiceState() 416 ss.setVoiceRegState(mServiceStateTestIntent.getIntExtra(EXTRA_VOICE_REG_STATE, in overrideServiceState() 418 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState() 427 ss.addNetworkRegistrationInfo(builder.build()); in overrideServiceState() 428 log("Override voice service state with " + ss.getState()); in overrideServiceState() 433 ss.setDataRegState(state); in overrideServiceState() 434 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState() 443 ss.addNetworkRegistrationInfo(builder.build()); in overrideServiceState() 444 log("Override data service state with " + ss.getDataRegistrationState()); 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/native/libs/ultrahdr/ |
D | jpegrutils.cpp | 42 std::stringstream ss; in Name() local 43 ss << prefix << ":" << suffix; in Name() 44 return ss.str(); in Name() 235 stringstream ss(maxContentBoostStr); in getMaxContentBoost() local 237 if (ss >> val) { in getMaxContentBoost() 251 stringstream ss(minContentBoostStr); in getMinContentBoost() local 253 if (ss >> val) { in getMinContentBoost() 267 stringstream ss(gammaStr); in getGamma() local 269 if (ss >> val) { in getGamma() 284 stringstream ss(offsetSdrStr); in getOffsetSdr() 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/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/av/include/media/ |
D | VolumeShaper.h | 331 std::stringstream ss; in toString() local 332 ss << "VolumeShaper::Configuration{mType=" << static_cast<int32_t>(mType); in toString() 333 ss << ", mId=" << mId; in toString() 335 ss << ", mOptionFlags=" << static_cast<int32_t>(mOptionFlags); in toString() 336 ss << ", mDurationMs=" << mDurationMs; in toString() 337 ss << ", " << Interpolator<S, T>::toString().c_str(); in toString() 339 ss << "}"; in toString() 340 return ss.str(); in toString() 510 std::stringstream ss; in toString() local 511 ss << "VolumeShaper::Operation{mFlags=" << static_cast<int32_t>(mFlags) ; in toString() [all …]
|
/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/libs/net/common/netd/libnetdutils/ |
D | StatusTest.cpp | 90 std::stringstream ss; in TEST() local 91 ss << so; in TEST() 93 EXPECT_EQ("StatusOr[status: Status[code: 0, msg: \"\"]]", ss.str()); in TEST() 97 std::stringstream ss; in TEST() local 98 ss << err; in TEST() 99 EXPECT_EQ("StatusOr[status: Status[code: 2147483647, msg: \"undefined\"]]", ss.str()); in TEST()
|