/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 38 ServiceState ss = new ServiceState(); in testRoaming() local 40 ss.setCdmaDefaultRoamingIndicator(1); in testRoaming() 41 assertEquals(1, ss.getCdmaDefaultRoamingIndicator()); in testRoaming() 43 ss.setCdmaEriIconIndex(2); in testRoaming() 44 assertEquals(2, ss.getCdmaEriIconIndex()); in testRoaming() 46 ss.setCdmaEriIconMode(3); in testRoaming() 47 assertEquals(3, ss.getCdmaEriIconMode()); in testRoaming() 49 ss.setCdmaRoamingIndicator(4); in testRoaming() 50 assertEquals(4, ss.getCdmaRoamingIndicator()); in testRoaming() 52 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming() [all …]
|
D | SignalStrengthTest.java | 229 SignalStrength ss; in testValidateInput() local 232 ss = createSignalStrengthLteReportRsrq(-60, 4); in testValidateInput() 233 assertEquals(SignalStrength.INVALID, ss.getLteRsrq()); in testValidateInput() 236 ss = createSignalStrengthLteReportRsrq(-60, 3); in testValidateInput() 237 assertEquals(3, ss.getLteRsrq()); in testValidateInput() 240 ss = createSignalStrengthLteReportRsrq(-60, -34); in testValidateInput() 241 assertEquals(-34, ss.getLteRsrq()); in testValidateInput() 244 ss = createSignalStrengthLteReportRsrq(-60, -35); in testValidateInput() 245 assertEquals(SignalStrength.INVALID, ss.getLteRsrq()); in testValidateInput() 248 ss = createSignalStrengthLteReportRssnr(-60, 31); in testValidateInput() [all …]
|
D | ServiceStateTrackerTest.java | 623 ServiceState ss = new ServiceState(); in testOnImsServiceStateChanged() local 624 ss.setVoiceRegState(ServiceState.STATE_OUT_OF_SERVICE); in testOnImsServiceStateChanged() 626 sst.mSS = ss; in testOnImsServiceStateChanged() 634 ss = new ServiceState(); in testOnImsServiceStateChanged() 635 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testOnImsServiceStateChanged() 636 sst.mSS = ss; in testOnImsServiceStateChanged() 645 private void sendSignalStrength(SignalStrength ss) { in sendSignalStrength() argument 646 mSimulatedCommands.setSignalStrength(ss); in sendSignalStrength() 655 SignalStrength ss = new SignalStrength( in testSignalStrength() local 663 sendSignalStrength(ss); in testSignalStrength() [all …]
|
D | PhoneStateListenerExecutorTest.java | 76 ServiceState ss = new ServiceState(); in testTriggerServiceStateChanged() local 77 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 78 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged() 80 ((IPhoneStateListener) field.get(mPhoneStateListenerUT)).onServiceStateChanged(ss); in testTriggerServiceStateChanged()
|
/frameworks/av/media/libstagefright/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 …]
|
D | pvmp3_stereo_proc.cpp | 266 int32 ss; in pvmp3_stereo_proc() local 298 ss = 17; in pvmp3_stereo_proc() 302 if (xl[(i*FILTERBANK_BANDS) + ss]) in pvmp3_stereo_proc() 304 sb = (i << 4) + (i << 1) + ss; in pvmp3_stereo_proc() 309 ss--; in pvmp3_stereo_proc() 310 if (ss < 0) in pvmp3_stereo_proc() 313 ss = 17; in pvmp3_stereo_proc() 554 ss = 17; in pvmp3_stereo_proc() 559 if (xl[(i*FILTERBANK_BANDS) + ss] != 0) in pvmp3_stereo_proc() 561 sb = (i << 4) + (i << 1) + ss; in pvmp3_stereo_proc() [all …]
|
D | pvmp3_mpeg2_stereo_proc.cpp | 230 int32 ss; in pvmp3_mpeg2_stereo_proc() local 269 ss = 17; in pvmp3_mpeg2_stereo_proc() 274 if (xl[(i*FILTERBANK_BANDS) + ss]) in pvmp3_mpeg2_stereo_proc() 276 sb = (i << 4) + (i << 1) + ss; in pvmp3_mpeg2_stereo_proc() 281 ss--; in pvmp3_mpeg2_stereo_proc() 282 if (ss < 0) in pvmp3_mpeg2_stereo_proc() 285 ss = 17; in pvmp3_mpeg2_stereo_proc() 570 ss = 17; in pvmp3_mpeg2_stereo_proc() 575 if (xl[(i*FILTERBANK_BANDS) + ss]) in pvmp3_mpeg2_stereo_proc() 577 sb = (i << 4) + (i << 1) + ss; in pvmp3_mpeg2_stereo_proc() [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/ |
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/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.h | 89 Logger::get()->log(ss.str() + '\n'); in ~LoggerStream() 92 __android_log_print(ANDROID_LOG_FATAL, mLogTag.c_str(), "%s", ss.str().c_str()); in ~LoggerStream() 94 std::cout << ss.str() << std::endl; in ~LoggerStream() 102 ss << str; 114 std::stringstream ss; variable 128 std::stringstream ss; in joinStr() local 131 ss << toString(items[i]); in joinStr() 133 ss << joint << toString(items[i]); in joinStr() 136 return ss.str(); in joinStr() 141 std::stringstream ss; in joinStr() local [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyTester.java | 384 void overrideServiceState(ServiceState ss) { in overrideServiceState() argument 385 if (mServiceStateTestIntent == null || ss == null) return; in overrideServiceState() 393 ss.setVoiceRegState(mServiceStateTestIntent.getIntExtra(EXTRA_VOICE_REG_STATE, in overrideServiceState() 395 log("Override voice service state with " + ss.getState()); in overrideServiceState() 398 ss.setDataRegState(mServiceStateTestIntent.getIntExtra(EXTRA_DATA_REG_STATE, in overrideServiceState() 400 log("Override data service state with " + ss.getDataRegistrationState()); in overrideServiceState() 404 ss.setOperatorName(operator, operator, ""); in overrideServiceState() 409 ss.setOperatorAlphaLongRaw(operator_raw); in overrideServiceState() 410 ss.setOperatorAlphaShortRaw(operator_raw); in overrideServiceState() 414 ss.setNrFrequencyRange(mServiceStateTestIntent.getIntExtra(EXTRA_NR_FREQUENCY_RANGE, in overrideServiceState() [all …]
|
/frameworks/av/include/media/ |
D | VolumeShaper.h | 315 std::stringstream ss; in toString() local 316 ss << "VolumeShaper::Configuration{mType=" << static_cast<int32_t>(mType); in toString() 317 ss << ", mId=" << mId; in toString() 319 ss << ", mOptionFlags=" << static_cast<int32_t>(mOptionFlags); in toString() 320 ss << ", mDurationMs=" << mDurationMs; in toString() 321 ss << ", " << Interpolator<S, T>::toString().c_str(); in toString() 323 ss << "}"; in toString() 324 return ss.str(); in toString() 439 std::stringstream ss; in toString() local 440 ss << "VolumeShaper::Operation{mFlags=" << static_cast<int32_t>(mFlags) ; in toString() [all …]
|
D | Interpolator.h | 296 std::stringstream ss; in toString() local 297 ss << "Interpolator{mInterpolatorType=" << static_cast<int32_t>(mInterpolatorType); in toString() 298 ss << ", mFirstSlope=" << mFirstSlope; in toString() 299 ss << ", mLastSlope=" << mLastSlope; in toString() 300 ss << ", {"; in toString() 305 ss << "{"; in toString() 307 ss << ", {"; in toString() 309 ss << pt.first << ", " << pt.second << "}"; in toString() 311 ss << "}}"; in toString() 312 return ss.str(); in toString()
|
/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/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhone.java | 1106 SS ss = new SS(onComplete); in getOutgoingCallerIdDisplay() local 1107 resp = obtainMessage(EVENT_GET_CLIR_DONE, ss); in getOutgoingCallerIdDisplay() 1124 SS ss = new SS(clirMode, onComplete); in setOutgoingCallerIdDisplay() local 1125 resp = obtainMessage(EVENT_SET_CLIR_DONE, ss); in setOutgoingCallerIdDisplay() 1137 SS ss = new SS(onComplete); in queryCLIP() local 1138 resp = obtainMessage(EVENT_GET_CLIP_DONE, ss); in queryCLIP() 1164 SS ss = new SS(commandInterfaceCFReason, serviceClass, onComplete); in getCallForwardingOption() local 1165 resp = obtainMessage(EVENT_GET_CALL_FORWARD_DONE, ss); in getCallForwardingOption() 1203 SS ss = new SS(commandInterfaceCFAction, commandInterfaceCFReason, in setCallForwardingOption() local 1205 resp = obtainMessage(EVENT_SET_CALL_FORWARD_DONE, ss); in setCallForwardingOption() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogImpl.java | 440 final boolean wasZero = row.ss.level == 0; in initRow() 446 if (row.ss.level == 0) { in initRow() 451 final boolean vmute = row.ss.level == row.ss.levelMin; in initRow() 453 vmute ? row.lastAudibleLevel : row.ss.levelMin); in initRow() 485 final StreamState ss = mState.states.get(AudioManager.STREAM_RING); in initRingerH() 486 if (ss == null) { in initRingerH() 503 if (ss.level == 0) { in initRingerH() 652 final StreamState ss = mState.states.get(AudioManager.STREAM_RING); in maybeShowToastH() local 653 if (ss != null) { in maybeShowToastH() 656 Utils.formatPercentage(ss.level, ss.levelMax)); in maybeShowToastH() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneTest.java | 482 SS ss = (SS) messageArgumentCaptor.getValue().obj; in testOutgoingCallerIdDisplay() local 483 assertEquals(msg, ss.mOnComplete); in testOutgoingCallerIdDisplay() 488 ss = (SS) messageArgumentCaptor.getValue().obj; in testOutgoingCallerIdDisplay() 489 assertEquals(msg, ss.mOnComplete); in testOutgoingCallerIdDisplay() 520 SS ss = (SS) messageArgumentCaptor.getValue().obj; in testCallWaiting() local 521 assertEquals(msg, ss.mOnComplete); in testCallWaiting() 527 ss = (SS) messageArgumentCaptor.getValue().obj; in testCallWaiting() 528 assertEquals(msg, ss.mOnComplete); in testCallWaiting() 560 SS ss = (SS) messageArgumentCaptor.getValue().obj; in testCellBarring() local 561 assertEquals(msg, ss.mOnComplete); in testCellBarring() [all …]
|
/frameworks/av/media/libeffects/factory/ |
D | EffectsFactoryState.c | 116 char ss[256]; in dumpEffectDescriptor() local 128 snprintf(ss, sizeof(ss), "%s UUID: %s\n", idt, s); in dumpEffectDescriptor() 129 strlcat(str, ss, len); in dumpEffectDescriptor() 132 snprintf(ss, sizeof(ss), "%s TYPE: %s\n", idt, s); in dumpEffectDescriptor() 133 strlcat(str, ss, len); in dumpEffectDescriptor()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | ClientDescriptor.cpp | 35 std::stringstream ss; in toShortString() local 37 ss << "PortId: " << mPortId << " SessionId: " << mSessionId << " Uid: " << mUid; in toShortString() 38 return ss.str(); in toShortString() 62 std::stringstream ss; in toShortString() local 64 ss << ClientDescriptor::toShortString() << " Stream: " << mStream; in toShortString() 65 return ss.str(); in toShortString()
|
/frameworks/base/core/java/android/widget/ |
D | AbsSpinner.java | 433 SavedState ss = new SavedState(superState); in onSaveInstanceState() local 434 ss.selectedId = getSelectedItemId(); in onSaveInstanceState() 435 if (ss.selectedId >= 0) { in onSaveInstanceState() 436 ss.position = getSelectedItemPosition(); in onSaveInstanceState() 438 ss.position = INVALID_POSITION; in onSaveInstanceState() 440 return ss; in onSaveInstanceState() 445 SavedState ss = (SavedState) state; in onRestoreInstanceState() local 447 super.onRestoreInstanceState(ss.getSuperState()); in onRestoreInstanceState() 449 if (ss.selectedId >= 0) { in onRestoreInstanceState() 452 mSyncRowId = ss.selectedId; in onRestoreInstanceState() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | sad_halfpel_inline.h | 85 register int32 ss = sad; 94 : "r"(ss), 105 register int32 ss = sad; 114 : "r"(ss),
|