Home
last modified time | relevance | path

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

12

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_attributes.cpp45 std::stringstream& ss) { in printPerformanceModeToTestName() argument
46 ss << "perf_"; in printPerformanceModeToTestName()
49 ss << "none"; in printPerformanceModeToTestName()
52 ss << "power_saving"; in printPerformanceModeToTestName()
55 ss << "low_latency"; in printPerformanceModeToTestName()
58 ss << "unknown"; in printPerformanceModeToTestName()
63 static void printStrToTestName(const char* str, std::stringstream& ss) { in printStrToTestName() argument
65 ss << "null"; in printStrToTestName()
69 ss << (isalnum(str[i]) ? str[i] : '_'); in printStrToTestName()
214 std::stringstream ss; in getTestName() local
[all …]
Dtest_aaudio_stream_builder.cpp379 std::stringstream ss; in getTestName() local
380 ss << "0x" << std::hex << info.param; in getTestName()
381 return ss.str(); in getTestName()
558 std::stringstream ss; in getTestName() local
559 ss << (info.param.first == AAUDIO_DIRECTION_INPUT ? "INPUT_0x" : "OUTPUT_0x") in getTestName()
561 return ss.str(); in getTestName()
652 std::stringstream ss; in getTestName() local
653 ss << (std::get<PARAM_DIRECTION>(info.param) == AAUDIO_DIRECTION_INPUT ? "INPUT_" in getTestName()
660 return ss.str(); in getTestName()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSignalStrengthTest.java75 ServiceState ss = mTm.getServiceState(); in isCamped() local
76 if (ss == null) return false; in isCamped()
77 if (ss.getState() == ServiceState.STATE_EMERGENCY_ONLY) return true; in isCamped()
78 List<NetworkRegistrationInfo> nris = ss.getNetworkRegistrationInfoList(); in isCamped()
113 SignalStrength ss = mTm.getSignalStrength(); in testSignalStrength() local
114 assertNotNull("TelephonyManager.getSignalStrength() returned NULL!", ss); in testSignalStrength()
117 assertTrue("Invalid timestamp in SignalStrength: " + ss.getTimestampMillis(), in testSignalStrength()
118 ss.getTimestampMillis() > 0 && ss.getTimestampMillis() <= curTime); in testSignalStrength()
119 Log.d(TAG, "Timestamp of SignalStrength: " + ss.getTimestampMillis()); in testSignalStrength()
121 SignalStrength copy = new SignalStrength(ss); in testSignalStrength()
[all …]
DTelephonyLocationTests.java99 ServiceState ss = (ServiceState) performLocationAccessCommand( in testServiceStateLocationSanitization()
101 assertServiceStateSanitization(ss, true); in testServiceStateLocationSanitization()
126 ServiceState ss = in testServiceStateLocationSanitizationWithRenouncedPermission() local
129 assertServiceStateSanitization(ss, true); in testServiceStateLocationSanitizationWithRenouncedPermission()
132 ss = getTelephonyManagerWithRenouncedPermissions(permissionsToRenounce).getServiceState(); in testServiceStateLocationSanitizationWithRenouncedPermission()
133 assertServiceStateSanitization(ss, false); in testServiceStateLocationSanitizationWithRenouncedPermission()
141 ServiceState ss = CtsLocationAccessService.listenForServiceState( in testServiceStateListeningWithRenouncedPermission() local
143 assertServiceStateSanitization(ss , true); in testServiceStateListeningWithRenouncedPermission()
146 ss = CtsLocationAccessService.listenForServiceState( in testServiceStateListeningWithRenouncedPermission()
148 assertServiceStateSanitization(ss, false); in testServiceStateListeningWithRenouncedPermission()
[all …]
DServiceStateTest.java184 final ServiceState ss = new ServiceState(); in testNrStateRedacted() local
185 ss.addNetworkRegistrationInfo(nri); in testNrStateRedacted()
186 String sss = ss.toString(); in testNrStateRedacted()
382 ServiceState ss = new ServiceState(); in testVopsSupportInfo() local
384 ss.addNetworkRegistrationInfo(wwanDataRegState); in testVopsSupportInfo()
386 assertEquals(ss.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in testVopsSupportInfo()
399 ss.addNetworkRegistrationInfo(wwanDataRegState); in testVopsSupportInfo()
400 assertEquals(ss.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in testVopsSupportInfo()
402 assertEquals(ss.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in testVopsSupportInfo()
405 assertEquals(ss.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in testVopsSupportInfo()
[all …]
DConnectivityManagerTestOnMockModem.java282 ServiceState ss = sTelephonyManager.getServiceState(); in getRegState() local
283 assertNotNull(ss); in getRegState()
286 ss.getNetworkRegistrationInfo(domain, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in getRegState()
DTelephonyRegistryManagerTest.java163 public void onServiceStateChanged(ServiceState ss) { in testNotifyServiceStateChanged()
164 queue.offer(ss); in testNotifyServiceStateChanged()
193 public void onSignalStrengthsChanged(SignalStrength ss) { in testNotifySignalStrengthChanged()
194 queue.offer(ss); in testNotifySignalStrengthChanged()
DTelephonyManagerTest.java1954 ServiceState ss = mTelephonyManager.getServiceState(); in testNetworkTypeMatchesCellIdentity() local
1955 assertNotNull(ss); in testNetworkTypeMatchesCellIdentity()
1956 for (NetworkRegistrationInfo nri : ss.getNetworkRegistrationInfoList()) { in testNetworkTypeMatchesCellIdentity()
2163 ServiceState ss = mTelephonyManager.getServiceState(); in testIWlanServiceState() local
2164 if (ss != null) { in testIWlanServiceState()
2165 for (NetworkRegistrationInfo nri : ss.getNetworkRegistrationInfoList()) { in testIWlanServiceState()
2549 ServiceState ss = mTelephonyManager.getServiceState(); in testNetworkRegistrationInfoRegisteredPlmn() local
2550 assertNotNull(ss); in testNetworkRegistrationInfoRegisteredPlmn()
2553 for (NetworkRegistrationInfo nwReg : ss.getNetworkRegistrationInfoList()) { in testNetworkRegistrationInfoRegisteredPlmn()
5401 ServiceState ss = mTelephonyManager.getServiceState(); in getRegisteredCellIdentities() local
[all …]
DCellInfoTest.java252 ServiceState ss = mTm.getServiceState(); in isCamped() local
253 if (ss == null) return false; in isCamped()
254 if (ss.getState() == ServiceState.STATE_EMERGENCY_ONLY) return true; in isCamped()
255 List<NetworkRegistrationInfo> nris = ss.getNetworkRegistrationInfoList(); in isCamped()
/cts/hostsidetests/statsdatom/apps/statsdapp/jni/
Dalloc_stress_activity.cpp40 std::stringstream ss; in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate() local
41 ss << "total alloc: " << allocCount / (1 << 20); in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate()
42 LOG(ss.str().c_str()); in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate()
/cts/tests/tests/text/src/android/text/cts/
DLayoutClusterCountTest.kt180 val ss = SpannableString("Hello, World.") in testClusterCount_MultiStyle() constant
181 val expectedClusters = getLayout(ss).getLineLetterSpacingUnitCount(0, false) in testClusterCount_MultiStyle()
183 ss.setSpan(BackgroundColorSpan(Color.BLUE), 1, 3, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) in testClusterCount_MultiStyle()
184 assertEquals(expectedClusters, getLayout(ss).getLineLetterSpacingUnitCount(0, false)) in testClusterCount_MultiStyle()
186 ss.setSpan(LocaleSpan(Locale.JAPANESE), 4, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) in testClusterCount_MultiStyle()
187 assertEquals(expectedClusters, getLayout(ss).getLineLetterSpacingUnitCount(0, false)) in testClusterCount_MultiStyle()
189 ss.setSpan(RelativeSizeSpan(1.5f), 2, 10, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) in testClusterCount_MultiStyle()
190 assertEquals(expectedClusters, getLayout(ss).getLineLetterSpacingUnitCount(0, false)) in testClusterCount_MultiStyle()
DStaticLayoutGetLineLeftRightTest.java101 final SpannableString ss = new SpannableString(TEST_STR); in StaticLayoutGetLineLeftRightTest() local
102 ss.setSpan(new LeadingMarginSpan.Standard(mLeadingMargin), in StaticLayoutGetLineLeftRightTest()
103 0, ss.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in StaticLayoutGetLineLeftRightTest()
104 mText = ss; in StaticLayoutGetLineLeftRightTest()
DLayoutDrawOrderTest.java170 SpannableString ss = new SpannableString(TEST_STRING); in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background() local
172 ss.setSpan(span, 4, 8, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
174 Layout layout = getStaticLayout(ss); in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
200 SpannableString ss = new SpannableString(TEST_STRING); in testDynamicLayout_testDrawOrder_Highlight_on_top_of_Background() local
202 ss.setSpan(span, 4, 8, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDynamicLayout_testDrawOrder_Highlight_on_top_of_Background()
204 Layout layout = getStaticLayout(ss); in testDynamicLayout_testDrawOrder_Highlight_on_top_of_Background()
DBoringLayoutFallbackLineSpacingTest.java153 SpannableString ss = new SpannableString("Hello, World."); in testReplacementSpans() local
154 ss.setSpan(new TypefaceSpan(Typeface.SERIF), 5, 10, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testReplacementSpans()
157 BoringLayout.isBoring(ss, paint, TextDirectionHeuristics.FIRSTSTRONG_LTR, true, null); in testReplacementSpans()
DPrecomputedTextTest.java808 final SpannableString ss = new SpannableString("a\u1000"); in testMetricsInt() local
810 PrecomputedText pt = PrecomputedText.create(ss, param); in testMetricsInt()
812 pt.getFontMetricsInt(0, ss.length(), fmi); in testMetricsInt()
815 paint.getFontMetricsInt(ss, 0, ss.length(), 0, ss.length(), false, expected); in testMetricsInt()
824 final SpannableString ss = new SpannableString("a\u1000"); in testMetricsInt_Substring() local
826 PrecomputedText pt = PrecomputedText.create(ss, param); in testMetricsInt_Substring()
831 paint.getFontMetricsInt(ss, 0, 1, 0, 1, false, expected); in testMetricsInt_Substring()
835 paint.getFontMetricsInt(ss, 1, 1, 1, 1, false, expected); in testMetricsInt_Substring()
843 final SpannableString ss = new SpannableString("a\u1000"); in testMetricsInt_MultiStyle() local
844 ss.setSpan(new AbsoluteSizeSpan(10), 0, 1, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testMetricsInt_MultiStyle()
[all …]
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java157 public void onServiceStateChanged(ServiceState ss) { in listenForServiceState()
158 if (ss == null) ss = new ServiceState(); in listenForServiceState()
159 queue.offer(ss); in listenForServiceState()
166 ServiceState ss = queue.poll(LISTENER_TIMEOUT, TimeUnit.MILLISECONDS); in listenForServiceState() local
167 if (ss == null) { in listenForServiceState()
170 return ss; in listenForServiceState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspFftServer.java54 double cc, ss, t1, t2; in fft() local
87 ss = sign * mSin.mData[aa]; in fft()
90 t1 = cc * r.mReal[kk + n1] - ss * r.mImag[kk + n1]; in fft()
91 t2 = ss * r.mReal[kk + n1] + cc * r.mImag[kk + n1]; in fft()
/cts/tests/signature/api-check/src/jni/
Dclassdescriptors.cpp172 std::stringstream ss; in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes() local
173 ss << "Error while executing " in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
176 std::string error = ss.str(); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
196 std::stringstream ss; in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes() local
197 ss << "Error while executing " in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
200 std::string error = ss.str(); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dutilities.h51 inline ::testing::AssertionResult ContainsSubstring(const std::string& s, const std::string& ss) { in ContainsSubstring() argument
52 if (s.find(ss) != std::string::npos) { in ContainsSubstring()
56 << "String: '" << s << "' does not contain substring: " << ss; in ContainsSubstring()
/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
DGbaServiceTest.java219 int ss = sConfig.getServiceState(); in testServiceReleaseDefault() local
220 boolean isExpected = (ss == TestGbaConfig.STATE_UNKNOWN in testServiceReleaseDefault()
221 || ss == TestGbaConfig.STATE_REMOVED in testServiceReleaseDefault()
222 || ss == TestGbaConfig.STATE_UNBOUND); in testServiceReleaseDefault()
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/
DJvmtiAttachingHostTest.java250 try (final ServerSocket ss = new ServerSocket(0)) { in runAttachTestCmd() argument
252 "reverse", "localabstract:" + REMOTE_SOCKET_NAME, "tcp:" + ss.getLocalPort()); in runAttachTestCmd()
262 ss.setSoTimeout(30000); in runAttachTestCmd()
263 try (Socket s = ss.accept()) { in runAttachTestCmd()
/cts/tests/surfacecontrol/jni/
Dandroid_view_surfacecontrol_cts_ChoreographerNativeTest.cpp89 std::stringstream ss; in dumpSupportedRefreshPeriods() local
90 ss << "{ "; in dumpSupportedRefreshPeriods()
92 ss << period << ","; in dumpSupportedRefreshPeriods()
94 ss << "}"; in dumpSupportedRefreshPeriods()
95 return ss.str(); in dumpSupportedRefreshPeriods()
/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java193 ServerSocket ss; in testFromSocket()
194 ss = new ServerSocket(PORT); in testFromSocket()
195 Socket sSocket = ss.accept(); in testFromSocket()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseInputStreamTest.java506 StructStat ss = Os.fstat(readAFd.getParcelFileDescriptor().getFileDescriptor()); in testNonSeekableInputStream() local
507 assertTrue(S_ISFIFO(ss.st_mode)); in testNonSeekableInputStream()
/cts/tests/media/common/src/android/mediav2/common/cts/
DBitStreamUtils.java239 int aic = 0, df = 0, ss = 0, rps = 0, isd = 0, aiv = 0, mq = 0; in getProfileLevel() local
251 ss = bitArray.readBits(1); in getProfileLevel()
275 if (aic == 1 && df == 1 && ss == 1 && mq == 1) profile = H263ProfileISWV2; in getProfileLevel()

12