Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dsyn_filt.cpp260 Word32 s2; in Syn_filt() local
288 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_a++), 0x00000800L); in Syn_filt()
293 s2 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a), (Word32) * (p_yy1--), s2); 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()
315 s2 = amrnb_fxp_msu_16_by_16bb((Word32)a[1], (Word32)temp, s2); in Syn_filt()
323 if ((UWord32)(s2 - 0xf8000000L) < 0x0fffffffL) in Syn_filt()
325 temp = (Word16)(s2 >> 12); in Syn_filt()
327 else if (s2 > 0x07ffffffL) in Syn_filt()
347 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/libstagefright/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/base/core/tests/coretests/src/android/text/
DSpannedTest.java79 Spanned s2 = (Spanned) TextUtils.CHAR_SEQUENCE_CREATOR. in testWrapParcel() local
83 style = s2.getSpans(1, 2, StyleSpan.class); in testWrapParcel()
85 assertEquals(1, s2.getSpanStart(style[0])); in testWrapParcel()
86 assertEquals(2, s2.getSpanEnd(style[0])); in testWrapParcel()
88 style = s2.getSpans(3, 7, StyleSpan.class); in testWrapParcel()
90 assertEquals(3, s2.getSpanStart(style[0])); in testWrapParcel()
91 assertEquals(7, s2.getSpanEnd(style[0])); in testWrapParcel()
93 TextAppearanceSpan[] appearance = s2.getSpans(7, 8, in testWrapParcel()
96 assertEquals(7, s2.getSpanStart(appearance[0])); in testWrapParcel()
97 assertEquals(8, s2.getSpanEnd(appearance[0])); in testWrapParcel()
[all …]
/frameworks/base/test-runner/src/junit/runner/
DClassPathTestCollector.java76 String s2= s.replace(File.separatorChar, '.'); in classNameFromFile() local
77 if (s2.startsWith(".")) in classNameFromFile()
78 return s2.substring(1); in classNameFromFile()
79 return s2; in classNameFromFile()
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp420 uint32_t s2 = 0; in launchThreads() local
425 s2 = targetByteChunk / mtls->fep.yStrideOut; in launchThreads()
427 s2 = targetByteChunk / mtls->fep.yStrideIn; in launchThreads()
429 mtls->mSliceSize = rsMin(s1, s2); in launchThreads()
439 uint32_t s2 = 0; in launchThreads() local
444 s2 = targetByteChunk / mtls->fep.eStrideOut; in launchThreads()
446 s2 = targetByteChunk / mtls->fep.eStrideIn; in launchThreads()
448 mtls->mSliceSize = rsMin(s1, s2); in launchThreads()
492 uint32_t s2 = 0; in launchThreads() local
497 s2 = targetByteChunk / mtls->fep.yStrideOut; in launchThreads()
[all …]
/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/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAdnRecord.java167 private static boolean stringCompareNullEqualsEmpty(String s1, String s2) { in stringCompareNullEqualsEmpty() argument
168 if (s1 == s2) { in stringCompareNullEqualsEmpty()
174 if (s2 == null) { in stringCompareNullEqualsEmpty()
175 s2 = ""; in stringCompareNullEqualsEmpty()
177 return (s1.equals(s2)); in stringCompareNullEqualsEmpty()
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Dapitest.rs39 volatile short2 s2;
184 s2 = rsGetElementAt_short2(aShort2, 0);
185 rsSetElementAt_short2(aShort2, s2, 0);
186 s2 = rsGetElementAt_short2(aShort2, 0, 0);
187 rsSetElementAt_short2(aShort2, s2, 0, 0);
188 s2 = rsGetElementAt_short2(aShort2, 0, 0, 0);
189 rsSetElementAt_short2(aShort2, s2, 0, 0, 0);
418 c2 = convert_char2(s2);
440 uc2 = convert_uchar2(s2);
460 s2 = convert_short2(c2);
[all …]
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java74 int s2 = f2.countActions(); in filterEquals() local
75 if (s1 != s2) { in filterEquals()
84 s2 = f2.countCategories(); in filterEquals()
85 if (s1 != s2) { in filterEquals()
94 s2 = f2.countDataTypes(); in filterEquals()
95 if (s1 != s2) { in filterEquals()
104 s2 = f2.countDataSchemes(); in filterEquals()
105 if (s1 != s2) { in filterEquals()
114 s2 = f2.countDataAuthorities(); in filterEquals()
115 if (s1 != s2) { in filterEquals()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java154 private static boolean compare(String s1, String s2) { in compare() argument
155 if (s1 == null) return (s2 == null); in compare()
156 return s1.equals(s2); in compare()
/frameworks/base/tests/CoreTests/android/core/
DSocketTest.java88 Socket s2 = new Socket(); in testWildcardAddress() local
89 s2.bind(new InetSocketAddress((InetAddress) null, 12345)); in testWildcardAddress()
90 byte[] addr = s2.getLocalAddress().getAddress(); in testWildcardAddress()
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java386 String[] s2 = new String[]{"s2[0]", "s2[1]", "s2[2]"}; in testArrays() local
387 String[] sr = mRemote.stringArray(s0, s1, s2); in testArrays()
395 assertEquals("s0[0]", s2[0]); in testArrays()
396 assertEquals("s2[1]", s2[1]); in testArrays()
397 assertEquals("s2[2]", s2[2]); in testArrays()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DLLand.java536 final Obstacle s2 = new Stem(getContext(),
539 addView(s2, new LayoutParams(
541 (int) s2.h,
543 s2.setTranslationX(mWidth+inset);
544 s2.setTranslationY(mHeight+yinset);
545 s2.setTranslationZ(PARAMS.OBSTACLE_Z*0.75f);
546 s2.animate()
547 .translationY(mHeight-s2.h)
550 mObstaclesInPlay.add(s2);
563 .translationY(mHeight-s2.h-yinset)
/frameworks/compile/mclinker/unittests/
DNamePoolTest.cpp61 std::string s2(s1); in TEST_F() local
63 llvm::StringRef result2 = m_pTestee->insertString(s2.c_str()); in TEST_F()
65 EXPECT_STREQ(s2.c_str(), result2.data()); in TEST_F()
/frameworks/native/cmds/installd/
Dinstalld.h194 char *build_string2(char *s1, char *s2);
195 char *build_string3(char *s1, char *s2, char *s3);
Dutils.c1069 char *build_string2(char *s1, char *s2) { in build_string2() argument
1070 if (s1 == NULL || s2 == NULL) return NULL; in build_string2()
1073 int len_s2 = strlen(s2); in build_string2()
1079 strcpy(result + len_s1, s2); in build_string2()
1084 char *build_string3(char *s1, char *s2, char *s3) { in build_string3() argument
1085 if (s1 == NULL || s2 == NULL || s3 == NULL) return NULL; in build_string3()
1088 int len_s2 = strlen(s2); in build_string3()
1095 strcpy(result + len_s1, s2); in build_string3()
/frameworks/native/opengl/libagl/
Dprimitives.cpp695 int32_t s0, int32_t t0, int32_t s1, int32_t t1, int32_t s2, int32_t t2) in compute_lod() argument
708 gglMulx(s2-s0, t1-t0, shift) )*w*h; in compute_lod()
730 int32_t s2 = v2->texture[i].S; in lerp_texcoords() local
735 int lod = compute_lod(c, i, s0, t0, s1, t1, s2, t2); in lerp_texcoords()
745 s2 *= width; in lerp_texcoords()
753 itt[6] = -lerp.iteratorsScale(itt+0, s0, s1, s2); in lerp_texcoords()
787 int32_t s2 = v2->texture[i].S; in lerp_texcoords_w() local
792 int lod = compute_lod(c, i, s0, t0, s1, t1, s2, t2); in lerp_texcoords_w()
802 s2 *= width; in lerp_texcoords_w()
815 s2 = gglMulx(s2, w2, wscale); in lerp_texcoords_w()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp382 sp<Stream> s2 = mStreams.editValueAt(1); in parseProgramMap() local
385 info1.mPID == s1->pid() && info1.mType == s2->type() in parseProgramMap()
386 && info2.mPID == s2->pid() && info2.mType == s1->type(); in parseProgramMap()
389 info1.mPID == s2->pid() && info1.mType == s1->type() in parseProgramMap()
390 && info2.mPID == s1->pid() && info2.mType == s2->type(); in parseProgramMap()
394 unsigned pid2 = s2->pid(); in parseProgramMap()
396 s2->setPID(pid1); in parseProgramMap()
400 mStreams.add(s2->pid(), s2); in parseProgramMap()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dsad_inline.h370 register int32 s2 = src2;
384 "r"(s2),
395 register int32 s2 = src2;
408 "r"(s2),
/frameworks/base/wifi/java/android/net/wifi/
DWifiManager.java2208 String s1, s2, s3; in toString() local
2211 s2 = mHeld ? "held; " : ""; in toString()
2217 return "WifiLock{ " + s1 + "; " + s2 + s3 + " }"; in toString()
2428 String s1, s2, s3; in toString() local
2431 s2 = mHeld ? "held; " : ""; in toString()
2437 return "MulticastLock{ " + s1 + "; " + s2 + s3 + " }"; in toString()

12