Home
last modified time | relevance | path

Searched refs:ss (Results 1 – 25 of 165) sorted by relevance

1234567

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTest.java38 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 …]
DSignalStrengthTest.java229 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 …]
DServiceStateTrackerTest.java623 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 …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_dequantize_sample.cpp193 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 …]
Dpvmp3_stereo_proc.cpp266 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 …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncStorageEngineTest.java107 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/
DRtpStream.cpp32 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 …]
Dutil.cpp25 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/base/startop/scripts/trace_analyzer/
Dqueries_find_sched_switch_unblocked.sql25 ss.id AS sched_switch_id,
35 sched_switches AS ss,
38 AND ss_f.id == ss.id
39 AND sbr.pid == ss.next_pid
42 GROUP BY ss.id
60 SELECT MAX(ss.id) AS block_id,
63 ss.prev_comm as block_prev_comm,
65 ss.prev_state AS block_prev_state,
69 …FROM sched_switches AS ss, -- this is the sched_switch that caused a block (in the future…
72 …WHERE ssf.id = ss.id AND ss.prev_pid == iow.next_pid AND ssf.timestamp < iow.sched_switch_timestamp
/frameworks/av/media/mtp/tests/
DMtpFfsHandle_test.cpp127 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/
DrsScriptC_Lib.cpp240 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/
DCallQualityMetrics.java158 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/
DRandomGraphGeneratorUtils.h85 Logger::get()->log(ss.str() + '\n'); in ~LoggerStream()
87 std::cout << ss.str() << std::endl; in ~LoggerStream()
94 ss << str;
101 std::stringstream ss; variable
112 std::stringstream ss; in joinStr() local
115 ss << toString(items[i]); in joinStr()
117 ss << joint << toString(items[i]); in joinStr()
120 return ss.str(); in joinStr()
125 std::stringstream ss; in joinStr() local
127 if (i != 0) ss << joint; in joinStr()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyTester.java384 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/
DVolumeShaper.h315 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 …]
DInterpolator.h296 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/
DPerformanceAnalysis.cpp79 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 …]
DReportPerformance.cpp63 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/services/mediametrics/
DAnalyticsState.h92 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 };
DTransactionLog.h137 std::stringstream ss; variable
143 ss << "Consolidated:\n";
147 ss << s;
152 ss << "Categorized:\n";
163 ss << " " << it->first << "\n" << s;
166 return { ss.str(), lines - ll };
199 std::stringstream ss; variable
208 ss << " " << it->second->toString() << "\n";
211 return { ss.str(), lines - ll };
/frameworks/av/media/libeffects/factory/
DEffectsFactoryState.c116 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/
DClientDescriptor.cpp36 std::stringstream ss; in toShortString() local
38 ss << "PortId: " << mPortId << " SessionId: " << mSessionId << " Uid: " << mUid; in toShortString()
39 return ss.str(); in toShortString()
69 std::stringstream ss; in toShortString() local
71 ss << ClientDescriptor::toShortString() << " Stream: " << mStream; in toShortString()
72 return ss.str(); in toShortString()
/frameworks/base/core/java/android/widget/
DAbsSpinner.java433 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java806 ServiceState ss = getServiceStateDataAndVoice( in testCellVoiceDataChangeToWlanInLegacyMode() local
808 Message m = getServiceStateChangedMessage(ss); in testCellVoiceDataChangeToWlanInLegacyMode()
815 modifyServiceStateData(ss, ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, in testCellVoiceDataChangeToWlanInLegacyMode()
879 ServiceState ss = new ServiceState(); in getServiceStateDataAndVoice() local
880 ss.setStateOutOfService(); in getServiceStateDataAndVoice()
881 ss.setDataRegState(regState); in getServiceStateDataAndVoice()
882 ss.setDataRoaming(isRoaming); in getServiceStateDataAndVoice()
883 ss.setRilDataRadioTechnology(rat); in getServiceStateDataAndVoice()
884 ss.setVoiceRegState(regState); in getServiceStateDataAndVoice()
885 ss.setVoiceRoaming(isRoaming); in getServiceStateDataAndVoice()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dsad_halfpel_inline.h85 register int32 ss = sad;
94 : "r"(ss),
105 register int32 ss = sad;
114 : "r"(ss),

1234567