Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 92) sorted by relevance

1234

/frameworks/av/media/module/codecs/amrnb/common/src/
Dsyn_filt.cpp261 Word32 s1; in Syn_filt() local
289 s1 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_a), 0x00000800L); in Syn_filt()
291 s1 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a++), (Word32) * (p_yy1), s1); in Syn_filt()
296 s1 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a++), (Word32) * (p_yy1), s1); in Syn_filt()
298 s1 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a++), (Word32) * (p_yy1), s1); in Syn_filt()
300 s1 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a++), (Word32) * (p_yy1), s1); in Syn_filt()
304 if ((UWord32)(s1 - 0xf8000000L) < 0x0fffffffL) in Syn_filt()
306 temp = (Word16)(s1 >> 12); in Syn_filt()
308 else if (s1 > 0x07ffffffL) in Syn_filt()
348 s1 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_a), 0x00000800L); in Syn_filt()
[all …]
Dpred_lt.cpp277 Word32 s1; in Pred_lt_3or6() local
327 s1 = 0x00004000L; in Pred_lt_3or6()
333 s1 += ((Word32) * (pX3)) * *(pC1++); in Pred_lt_3or6()
334 s1 += ((Word32) * (pX2++)) * *(pC1); in Pred_lt_3or6()
337 s1 += ((Word32) * (pX3)) * *(pC1++); in Pred_lt_3or6()
338 s1 += ((Word32) * (pX2++)) * *(pC1); in Pred_lt_3or6()
343 *(p_exc++) = (Word16)(s1 >> 15); in Pred_lt_3or6()
Dresidu.cpp206 Word32 s1; in Residu() local
220 s1 = 0x0000800L; in Residu()
232 s1 += ((Word32) * (p_coef) * *(p_input1++)); in Residu()
236 s1 += ((Word32) * (p_coef) * *(p_input1++)); in Residu()
242 s1 += (((Word32) * (p_coef)) * *(p_input1)); in Residu()
247 *(p_residual_ptr--) = (Word16)(s1 >> 12); in Residu()
/frameworks/av/media/utils/tests/
Dmediautils_fixedstring_tests.cpp39 FixedString<8> s1("abcdefghijk"); in TEST() local
40 ASSERT_EQ(8U, s1.size()); in TEST()
41 ASSERT_TRUE(s1.full()); in TEST()
42 ASSERT_EQ(0U, s1.remaining()); in TEST()
43 ASSERT_EQ(0, strcmp(s1.c_str(), "abcdefgh")); in TEST()
53 ASSERT_EQ(s1, s2); in TEST()
54 ASSERT_EQ(FixedString<12>().append(s1), s2); in TEST()
55 ASSERT_NE(s1, "bcd"); in TEST()
58 ASSERT_EQ(s1.asString(), s1.asStringView()); in TEST()
115 FixedString30 s1(std::string("a")); in TEST() local
[all …]
/frameworks/av/media/module/codecs/amrnb/enc/src/
Dcalc_en.cpp277 Word32 s1; /* Intermediate energy accumulator */ in calc_unfilt_energies() local
292 s1 = 0; in calc_unfilt_energies()
309s1 = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s1); /* Compute residual energy */ in calc_unfilt_energies()
321 s1 = s1 << 1; in calc_unfilt_energies()
325 if (s1 & MIN_32) in calc_unfilt_energies()
327 s1 = MAX_32; in calc_unfilt_energies()
332 if (s1 < 400L) in calc_unfilt_energies()
339 exp = norm_l(s1); in calc_unfilt_energies()
340 frac_en[0] = (Word16)(L_shl(s1, exp, pOverflow) >> 16); in calc_unfilt_energies()
607 Word32 s1; /* Intermediate energy accumulator */ in calc_filt_energies() local
[all …]
Dconvolve.cpp216 Word32 s1, s2; in Convolve() local
225 s1 = ((Word32) * (x++)) * *(h); in Convolve()
230 s1 = amrnb_fxp_mac_16_by_16bb((Word32) * (x++), (Word32) * (h), s1); in Convolve()
232 s1 = amrnb_fxp_mac_16_by_16bb((Word32) * (x++), (Word32) * (h), s1); in Convolve()
237 *(y++) = (Word16)(s1 >> 12); in Convolve()
Dg_pitch.cpp316 Word32 s1; in G_pitch() local
378 s1 = s; in G_pitch()
379 s = s1 + L_temp; in G_pitch()
381 if ((s1 ^ L_temp) > 0) in G_pitch()
383 if ((s1 ^ s) < 0) in G_pitch()
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dstring_test.cc23 char s1[] = "aaaaa"; in TEST() local
26 EXPECT_EQ(strcmp(s0, s1), 0); in TEST()
27 EXPECT_LT(strcmp(s1, s2), 0); in TEST()
28 EXPECT_GT(strcmp(s2, s1), 0); in TEST()
41 char* s1 = strsep(&null_string, " "); in TEST() local
42 EXPECT_EQ(s1, nullptr); in TEST()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest10.java62 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_validResult()
63 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_validResult()
85 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinned()
86 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_alreadyPinned()
109 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinnedByAnother()
110 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_alreadyPinnedByAnother()
125 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_defaultLauncherChanges()
126 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_defaultLauncherChanges()
DShortcutManagerTest8.java180 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported()
182 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported()
192 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported()
194 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported()
204 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported()
206 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported()
344 ShortcutInfo s1 = makeShortcutWithActivity("s1", in testRequestPinShortcut_explicitTargetActivity()
347 assertTrue(mManager.requestPinShortcut(s1, null)); in testRequestPinShortcut_explicitTargetActivity()
400 ShortcutInfo s1 = makeShortcutWithActivity("s1", in testRequestPinShortcut_wrongTargetActivity()
404 assertTrue(mManager.requestPinShortcut(s1, /* resultIntent=*/ null)); in testRequestPinShortcut_wrongTargetActivity()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DWatchedIntentHandlingTest.java85 WatchedIntentFilter s1 = f.snapshot(); in testWatchedIntentFilter() local
116 PreferredActivity s1 = a.snapshot(); in testPreferredActivity() local
120 assertTrue(s1 == a.snapshot()); in testPreferredActivity()
127 assertTrue(s1 != s2); in testPreferredActivity()
131 assertTrue(s1.getPriority() != s2.getPriority()); in testPreferredActivity()
155 PreferredActivity s1 = a1.snapshot(); in testPreferredIntentResolver() local
158 assertTrue(s1 == a1.snapshot()); in testPreferredIntentResolver()
163 assertTrue(s1.getPriority() != s2.getPriority()); in testPreferredIntentResolver()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DServiceListingTest.java77 ServiceInfo s1 = new ServiceInfo(); in testValidator() local
78 s1.permission = "testPermission"; in testValidator()
79 s1.packageName = "pkg"; in testValidator()
84 r1.serviceInfo = s1; in testValidator()
113 assertThat(captor.getValue().get(0)).isEqualTo(s1); in testValidator()
118 ServiceInfo s1 = new ServiceInfo(); in testNoValidator() local
119 s1.permission = "testPermission"; in testNoValidator()
120 s1.packageName = "pkg"; in testNoValidator()
125 r1.serviceInfo = s1; in testNoValidator()
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetActivityTest.java107 AnimatorSet s1 = new AnimatorSet(); in testGetChildAnimations() local
108 s1.playTogether(a1, a2, a3); in testGetChildAnimations()
109 ArrayList<Animator> children = s1.getChildAnimations(); in testGetChildAnimations()
124 s3.play(a1).before(a2).after(s1).with(s2).after(a3); in testGetChildAnimations()
131 assertTrue(s3Children.contains(s1)); in testGetChildAnimations()
150 AnimatorSet s1 = new AnimatorSet(); in testTotalDuration() local
151 s1.playSequentially(list); in testTotalDuration()
158 assertEquals(totalDuration, s1.getTotalDuration()); in testTotalDuration()
161 s1.setStartDelay(200); in testTotalDuration()
162 assertEquals(totalDuration + 200, s1.getTotalDuration()); in testTotalDuration()
[all …]
/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()
279 if (s1 == null) { in stringCompareNullEqualsEmpty()
280 s1 = ""; 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()
294 s1 = ArrayUtils.emptyIfNull(s1, String.class); in arrayCompareNullEqualsEmpty()
297 List<String> src = Arrays.asList(s1); in arrayCompareNullEqualsEmpty()
/frameworks/compile/mclinker/unittests/
DNamePoolTest.cpp47 const char* s1 = "Hello MCLinker"; in TEST_F() local
48 llvm::StringRef result1 = m_pTestee->insertString(s1); in TEST_F()
49 EXPECT_NE(s1, result1.data()); in TEST_F()
50 EXPECT_STREQ(s1, result1.data()); in TEST_F()
54 const char* s1 = "Hello MCLinker"; in TEST_F() local
55 std::string s2(s1); in TEST_F()
56 llvm::StringRef result1 = m_pTestee->insertString(s1); in TEST_F()
58 EXPECT_STREQ(s1, result1.data()); in TEST_F()
/frameworks/av/media/libstagefright/tests/
DMediaCodecListOverrides_test.cpp109 AString s1; 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()
114 EXPECT_TRUE(s1 == "abc"); 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DApduSenderTest.java235 String s1 = new String(new char[0xFF]).replace("\0", "AA"); in testSendStoreDataLongDataLongResponse() local
238 String longData = s1 + s2 + s3; in testSendStoreDataLongDataLongResponse()
252 eq(0), eq(0xFF), eq(s1), anyBoolean(), any()); in testSendStoreDataLongDataLongResponse()
266 String s1 = new String(new char[0xFF]).replace("\0", "AA"); in testSendStoreDataLongDataMod0() local
268 String longData = s1 + s2; in testSendStoreDataLongDataMod0()
276 eq(0), eq(0xFF), eq(s1), anyBoolean(), any()); in testSendStoreDataLongDataMod0()
305 String s1 = new String(new char[0xFF]).replace("\0", "AA"); in testSendErrorResponseInMiddle() local
308 String longData = s1 + s2 + s3; in testSendErrorResponseInMiddle()
319 eq(0), eq(0xFF), eq(s1), anyBoolean(), any()); in testSendErrorResponseInMiddle()
/frameworks/native/services/inputflinger/tests/
DInputTracingTest.cpp651 auto s1 = std::make_unique<InputTraceSession>( in TEST_F() local
659 tapAndExpect({window}, Level::COMPLETE, Level::COMPLETE, *s1); in TEST_F()
660 keypressAndExpect({window}, Level::COMPLETE, Level::COMPLETE, *s1); in TEST_F()
687 s1->expectMotionTraced(Level::COMPLETE, toMotionEvent(down)); in TEST_F()
691 s1->expectDispatchTraced(Level::COMPLETE, {*consumed, window}); in TEST_F()
701 s1->expectMotionTraced(Level::COMPLETE, toMotionEvent(move1)); in TEST_F()
705 s1->expectDispatchTraced(Level::COMPLETE, {*consumed, window}); in TEST_F()
717 s1->expectMotionTraced(Level::COMPLETE, toMotionEvent(move2)); in TEST_F()
721 s1->expectDispatchTraced(Level::COMPLETE, {*consumed, window}); in TEST_F()
735 s1->expectMotionTraced(Level::COMPLETE, toMotionEvent(up)); in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java131 State s1 = new State(); in testIconColorDisabledByPolicy_sameAsUnavailable() local
132 s1.state = Tile.STATE_INACTIVE; in testIconColorDisabledByPolicy_sameAsUnavailable()
133 s1.disabledByPolicy = true; in testIconColorDisabledByPolicy_sameAsUnavailable()
138 assertEquals(mIconView.getColor(s1), mIconView.getColor(s2)); in testIconColorDisabledByPolicy_sameAsUnavailable()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DImageProcessingActivityJB.java513 spinner s1; field in ImageProcessingActivityJB.DVFSWorkaround
515 s1 = new spinner(); in DVFSWorkaround()
520 s1.go(t); in go()
525 s1.mRun = false; in destroy()
682 float s1 = (float)tw / (float)mScreenWidth; in startProcessor() local
685 if (s1 > s2) { in startProcessor()
686 tw /= s1; in startProcessor()
687 th /= s1; in startProcessor()
/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/packages/SettingsLib/src/com/android/settingslib/license/
DLicenseHtmlGeneratorFromXml.java259 m1.merge(entry.getKey(), entry.getValue(), (s1, s2) -> { in parse()
260 s1.addAll(s2); in parse()
261 return s1; in parse()
316 entry.getKey(), entry.getValue(), (s1, s2) -> { in generateHtml()
317 s1.addAll(s2); in generateHtml()
318 return s1; in generateHtml()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayer_info_fast.rsh33 return (layer_info_i2.s1 <= depth && depth <= layer_info_i2.s0);
45 ((depth < layer_info_f2.s1) | (depth > layer_info_f2.s0));
/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()

1234