Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/av/media/module/codecs/amrnb/common/src/
Dsyn_filt.cpp262 Word32 s2; in Syn_filt() local
290 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_a++), 0x00000800L); in Syn_filt()
295 s2 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a), (Word32) * (p_yy1--), s2); in Syn_filt()
297 s2 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a), (Word32) * (p_yy1--), s2); in Syn_filt()
299 s2 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a), (Word32) * (p_yy1--), s2); in Syn_filt()
317 s2 = amrnb_fxp_msu_16_by_16bb((Word32)a[1], (Word32)temp, s2); in Syn_filt()
325 if ((UWord32)(s2 - 0xf8000000L) < 0x0fffffffL) in Syn_filt()
327 temp = (Word16)(s2 >> 12); in Syn_filt()
329 else if (s2 > 0x07ffffffL) in Syn_filt()
349 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_a++), 0x00000800L); in Syn_filt()
[all …]
Dpred_lt.cpp278 Word32 s2; in Pred_lt_3or6() local
328 s2 = 0x00004000L; in Pred_lt_3or6()
332 s2 += ((Word32) * (pX3--)) * *(pC1); in Pred_lt_3or6()
335 s2 += ((Word32) * (pX2)) * *(pC1++); in Pred_lt_3or6()
336 s2 += ((Word32) * (pX3--)) * *(pC1); in Pred_lt_3or6()
339 s2 += ((Word32) * (pX2)) * *(pC1++); in Pred_lt_3or6()
344 *(p_exc++) = (Word16)(s2 >> 15); in Pred_lt_3or6()
Dresidu.cpp207 Word32 s2; in Residu() local
221 s2 = 0x0000800L; in Residu()
233 s2 += ((Word32) * (p_coef) * *(p_input2++)); in Residu()
237 s2 += ((Word32) * (p_coef) * *(p_input2++)); in Residu()
243 s2 += (((Word32) * (p_coef)) * *(p_input2)); in Residu()
248 *(p_residual_ptr--) = (Word16)(s2 >> 12); in Residu()
/frameworks/av/media/utils/tests/
Dmediautils_fixedstring_tests.cpp46 FixedString<8> s2(std::string("abcdefghijk")); in TEST() local
47 ASSERT_TRUE(s2.full()); in TEST()
49 ASSERT_EQ(8U, s2.size()); in TEST()
50 ASSERT_EQ(0, strcmp(s2.c_str(), "abcdefgh")); in TEST()
53 ASSERT_EQ(s1, s2); in TEST()
54 ASSERT_EQ(FixedString<12>().append(s1), s2); in TEST()
121 FixedString30 s2; in TEST() local
123 s2.append(c); in TEST()
125 ASSERT_EQ(s1, s2); in TEST()
141 FixedString<1024> s2(s1); in TEST() local
[all …]
/frameworks/av/media/module/codecs/amrnb/enc/src/
Dconvolve.cpp216 Word32 s1, s2; in Convolve() local
224 s2 = ((Word32) * (x)) * *(h--); in Convolve()
229 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (x), (Word32) * (h--), s2); in Convolve()
231 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (x), (Word32) * (h--), s2); in Convolve()
235 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (x), (Word32) * (h), s2); in Convolve()
238 *(y++) = (Word16)(s2 >> 12); in Convolve()
Dcalc_en.cpp278 Word32 s2; /* Intermediate energy accumulator */ in calc_unfilt_energies() local
293 s2 = 0; in calc_unfilt_energies()
310s2 = amrnb_fxp_mac_16_by_16bb((Word32) tmp2, (Word32) tmp2, s2); /* Compute ltp excitation energ… in calc_unfilt_energies()
322 s2 = s2 << 1; in calc_unfilt_energies()
344 if (s2 & MIN_32) in calc_unfilt_energies()
346 s2 = MAX_32; in calc_unfilt_energies()
350 exp = norm_l(s2); in calc_unfilt_energies()
351 frac_en[1] = (Word16)(L_shl(s2, exp, pOverflow) >> 16); in calc_unfilt_energies()
608 Word32 s2; /* Intermediate energy accumulator */ in calc_filt_energies() local
626 s2 = 0L; in calc_filt_energies()
[all …]
Dpitch_fr.cpp329 Word32 s2; in Norm_Corr() local
383 s = s2 = 0; in Norm_Corr()
391 s2 += ((Word32)(*(p_s_excf)) * (*(p_s_excf))); in Norm_Corr()
394 s2 += ((Word32)(*(p_s_excf)) * (*(p_s_excf))); in Norm_Corr()
398 s2 = s2 << 1; in Norm_Corr()
399 s2 = Inv_sqrt(s2, pOverflow); in Norm_Corr()
400 norm_h = (Word16)(s2 >> 16); in Norm_Corr()
401 norm_l = (Word16)((s2 >> 1) - (norm_h << 15)); in Norm_Corr()
Dcor_h.cpp280 Word32 s2; in cor_h() local
382 s2 = 0; in cor_h()
393 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_h2++), (Word32) * (p_h), s2); in cor_h()
396 tmp11 = (Word16)((s2 + 0x00004000L) >> 15); in cor_h()
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dstring_test.cc24 char s2[] = "aaaab"; in TEST() local
27 EXPECT_LT(strcmp(s1, s2), 0); in TEST()
28 EXPECT_GT(strcmp(s2, s1), 0); in TEST()
48 char* s2 = strsep(&test, "Z"); in TEST() local
49 EXPECT_STREQ(s2, test_string); in TEST()
55 char* s2 = strsep(&test, " \n\t"); in TEST() local
56 EXPECT_STREQ(s2, tokens[i]); in TEST()
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java89 Spanned s2 = (Spanned) TextUtils.CHAR_SEQUENCE_CREATOR. in testWrapParcel() local
93 style = s2.getSpans(1, 2, StyleSpan.class); in testWrapParcel()
95 assertEquals(1, s2.getSpanStart(style[0])); in testWrapParcel()
96 assertEquals(2, s2.getSpanEnd(style[0])); in testWrapParcel()
98 style = s2.getSpans(3, 7, StyleSpan.class); in testWrapParcel()
100 assertEquals(3, s2.getSpanStart(style[0])); in testWrapParcel()
101 assertEquals(7, s2.getSpanEnd(style[0])); in testWrapParcel()
103 TextAppearanceSpan[] appearance = s2.getSpans(7, 8, in testWrapParcel()
106 assertEquals(7, s2.getSpanStart(appearance[0])); in testWrapParcel()
107 assertEquals(8, s2.getSpanEnd(appearance[0])); in testWrapParcel()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DServiceListingTest.java80 ServiceInfo s2 = new ServiceInfo(); in testValidator() local
81 s2.permission = "testPermission"; in testValidator()
82 s2.packageName = "pkg2"; in testValidator()
86 r2.serviceInfo = s2; in testValidator()
121 ServiceInfo s2 = new ServiceInfo(); in testNoValidator() local
122 s2.permission = "testPermission"; in testNoValidator()
123 s2.packageName = "pkg2"; in testNoValidator()
127 r2.serviceInfo = s2; in testNoValidator()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DWatchedIntentHandlingTest.java125 PreferredActivity s2 = a.snapshot(); in testPreferredActivity() local
127 assertTrue(s1 != s2); in testPreferredActivity()
130 assertTrue(a.getPriority() == s2.getPriority()); in testPreferredActivity()
131 assertTrue(s1.getPriority() != s2.getPriority()); in testPreferredActivity()
161 PreferredActivity s2 = a1.snapshot(); in testPreferredIntentResolver() local
163 assertTrue(s1.getPriority() != s2.getPriority()); in testPreferredIntentResolver()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAdnRecord.java275 private static boolean stringCompareNullEqualsEmpty(String s1, String s2) { in stringCompareNullEqualsEmpty() argument
276 if (s1 == s2) { in stringCompareNullEqualsEmpty()
282 if (s2 == null) { in stringCompareNullEqualsEmpty()
283 s2 = ""; in stringCompareNullEqualsEmpty()
285 return (s1.equals(s2)); in stringCompareNullEqualsEmpty()
289 private static boolean arrayCompareNullEqualsEmpty(String s1[], String s2[]) { in arrayCompareNullEqualsEmpty() argument
290 if (s1 == s2) { in arrayCompareNullEqualsEmpty()
295 s2 = ArrayUtils.emptyIfNull(s2, String.class); in arrayCompareNullEqualsEmpty()
298 List<String> dest = Arrays.asList(s2); in arrayCompareNullEqualsEmpty()
/frameworks/av/media/libstagefright/tests/
DMediaCodecListOverrides_test.cpp110 AString s2; in TEST_F() local
111 EXPECT_FALSE(splitString(s, delimiter, &s1, &s2)); in TEST_F()
113 EXPECT_TRUE(splitString(s, delimiter, &s1, &s2)); in TEST_F()
115 EXPECT_TRUE(s2 == "123"); in TEST_F()
/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbAccessory.java98 private static boolean compare(String s1, String s2) { in compare() argument
99 if (s1 == null) return (s2 == null); in compare()
100 return s1.equals(s2); in compare()
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetActivityTest.java115 AnimatorSet s2 = new AnimatorSet(); in testGetChildAnimations() local
116 s2.playSequentially(a1, a2, a3); in testGetChildAnimations()
117 children = s2.getChildAnimations(); in testGetChildAnimations()
124 s3.play(a1).before(a2).after(s1).with(s2).after(a3); in testGetChildAnimations()
132 assertTrue(s3Children.contains(s2)); in testGetChildAnimations()
168 AnimatorSet s2 = new AnimatorSet(); in testTotalDuration() local
169 s2.playTogether(list); in testTotalDuration()
176 assertEquals(maxDuration, s2.getTotalDuration()); in testTotalDuration()
519 final AnimatorSet s2 = s1.clone(); in testClone() local
521 s2.addListener(l2); in testClone()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DApduSenderTest.java236 String s2 = new String(new char[0xFF]).replace("\0", "BB"); in testSendStoreDataLongDataLongResponse() local
238 String longData = s1 + s2 + s3; in testSendStoreDataLongDataLongResponse()
254 eq(1), eq(0xFF), eq(s2), anyBoolean(), any()); in testSendStoreDataLongDataLongResponse()
267 String s2 = new String(new char[0xFF]).replace("\0", "BB"); in testSendStoreDataLongDataMod0() local
268 String longData = s1 + s2; in testSendStoreDataLongDataMod0()
278 eq(1), eq(0xFF), eq(s2), anyBoolean(), any()); in testSendStoreDataLongDataMod0()
306 String s2 = new String(new char[0xFF]).replace("\0", "BB"); in testSendErrorResponseInMiddle() local
308 String longData = s1 + s2 + s3; in testSendErrorResponseInMiddle()
321 eq(1), eq(0xFF), eq(s2), anyBoolean(), any()); in testSendErrorResponseInMiddle()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rscript57 volatile short2 s2;
204 s2 = rsGetElementAt_short2(aShort2, 0);
205 rsSetElementAt_short2(aShort2, s2, 0);
206 s2 = rsGetElementAt_short2(aShort2, 0, 0);
207 rsSetElementAt_short2(aShort2, s2, 0, 0);
208 s2 = rsGetElementAt_short2(aShort2, 0, 0, 0);
209 rsSetElementAt_short2(aShort2, s2, 0, 0, 0);
438 c2 = convert_char2(s2);
460 uc2 = convert_uchar2(s2);
480 s2 = convert_short2(c2);
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript55 volatile short2 s2;
202 s2 = rsGetElementAt_short2(aShort2, 0);
203 rsSetElementAt_short2(aShort2, s2, 0);
204 s2 = rsGetElementAt_short2(aShort2, 0, 0);
205 rsSetElementAt_short2(aShort2, s2, 0, 0);
206 s2 = rsGetElementAt_short2(aShort2, 0, 0, 0);
207 rsSetElementAt_short2(aShort2, s2, 0, 0, 0);
436 c2 = convert_char2(s2);
458 uc2 = convert_uchar2(s2);
478 s2 = convert_short2(c2);
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayered_filter_fast_d1new.rscript88 x += g_image_size_i4.s2; // margin
89 y += g_image_size_i4.s2; // margin
117 x += g_image_size_i4.s2; // margin
118 y += g_image_size_i4.s2; // margin
242 x += g_image_size_i4.s2; // margin
243 y += g_image_size_i4.s2; // margin
288 x += g_image_size_i4.s2; // margin
289 y += g_image_size_i4.s2; // margin
333 y += g_image_size_i4.s2; // margin
369 y += g_image_size_i4.s2; // margin
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java183 private static boolean compare(String s1, String s2) { in compare() argument
184 if (s1 == null) return (s2 == null); in compare()
185 return s1.equals(s2); in compare()
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
DAndroidFutureTest.java166 nearFuture.thenCombine(farFuture, ((s1, s2) -> s1 + s2)); in testThenCombine()
179 BiFunction<String, String, String> throwingFunction = (s1, s2) -> { in testThenCombine_functionThrowingException()
/frameworks/av/media/libstagefright/
DMediaCodecListOverrides.cpp183 bool splitString(const AString &s, const AString &delimiter, AString *s1, AString *s2) { in splitString() argument
189 *s2 = AString(s, pos + 1, s.size() - pos - 1); in splitString()
194 const AString &s, const AString &delimiter, AString *s1, AString *s2, AString *s3) { in splitString() argument
199 if (!splitString(temp, delimiter, s2, s3)) { in splitString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java135 State s2 = new State(); in testIconColorDisabledByPolicy_sameAsUnavailable() local
136 s2.state = Tile.STATE_UNAVAILABLE; in testIconColorDisabledByPolicy_sameAsUnavailable()
138 assertEquals(mIconView.getColor(s1), mIconView.getColor(s2)); in testIconColorDisabledByPolicy_sameAsUnavailable()
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java414 String[] s2 = new String[]{"s2[0]", "s2[1]", "s2[2]"}; in testArrays() local
415 String[] sr = mRemote.stringArray(s0, s1, s2); in testArrays()
423 assertEquals("s0[0]", s2[0]); in testArrays()
424 assertEquals("s2[1]", s2[1]); in testArrays()
425 assertEquals("s2[2]", s2[2]); in testArrays()

1234