Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 1571) sorted by relevance

12345678910>>...63

/frameworks/base/core/tests/coretests/src/android/text/
DHtmlTest.java79 Spanned s; in testColor() local
82 s = Html.fromHtml("<font color=\"#00FF00\">something</font>"); in testColor()
83 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class); in testColor()
87 s = Html.fromHtml("<font color=\"navy\">something</font>"); in testColor()
88 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class); in testColor()
92 s = Html.fromHtml("<font color=\"gibberish\">something</font>"); in testColor()
93 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class); in testColor()
101 Spanned s; in testResourceColor() local
104 s = Html.fromHtml("<font color=\"@android:color/primary_text_dark\">something</font>"); in testResourceColor()
105 colors = s.getSpans(0, s.length(), TextAppearanceSpan.class); in testResourceColor()
[all …]
DSpannedTest.java65 SpannableString s = new SpannableString("Hello there world"); in testWrapParcel() local
67 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel()
68 s.setSpan(CharacterStyle.wrap(mark), 3, 7, in testWrapParcel()
70 s.setSpan(new TextAppearanceSpan("mono", 0, -1, null, null), 7, 8, in testWrapParcel()
72 s.setSpan(CharacterStyle.wrap(new TypefaceSpan("mono")), 8, 9, in testWrapParcel()
76 TextUtils.writeToParcel(s, p, 0); in testWrapParcel()
105 private void checkPriority(Spannable s) { in checkPriority() argument
106 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
108 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
110 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dg_pitch.cpp315 Word32 s; in G_pitch() local
325 s = 0; in G_pitch()
329 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch()
331 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch()
333 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch()
335 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch()
338 if ((s >= 0) & (s < 0x40000000)) in G_pitch()
340 s <<= 1; in G_pitch()
341 s += 1; /* Avoid case of all zeros */ in G_pitch()
343 exp_yy = norm_l(s); /* Note 0<=exp_yy <= 31 */ in G_pitch()
[all …]
Dg_code.cpp237 Word32 s; in G_code() local
247 s = 0; in G_code()
252 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_xn2++), temp2, s); in G_code()
254 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_xn2++), temp2, s); in G_code()
256 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_xn2++), temp2, s); in G_code()
258 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_xn2++), temp2, s); in G_code()
260 s <<= 1; in G_code()
261 exp_xy = norm_l(s + 1); /* Avoid case of all zeros, add 1 */ in G_code()
265 xy = (Word16)(s >> (17 - exp_xy)); in G_code()
269 xy = (Word16)(s << (exp_xy - 17)); in G_code()
[all …]
Dcor_h.cpp279 Word32 s; in cor_h() local
300 s = 1; in cor_h()
306 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s); in cor_h()
308 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s); in cor_h()
312 s <<= 1; in cor_h()
314 if (s & MIN_32) in cor_h()
328 s >>= 1; in cor_h()
330 s = Inv_sqrt(s, pOverflow); in cor_h()
332 if (s < (Word32) 0x00ffffffL) in cor_h()
335 dec = (Word16)(((s >> 9) * 32440) >> 15); in cor_h()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuRuntimeStubs.cpp66 static void SC_debugF(const char *s, float f) { in SC_debugF() argument
67 ALOGD("float %s %f, 0x%08x", s, f, *((int *) (&f))); in SC_debugF()
69 static void SC_debugFv2(const char *s, float f1, float f2) { in SC_debugFv2() argument
70 ALOGD("float x2 %s {%f, %f}", s, f1, f2); in SC_debugFv2()
72 static void SC_debugFv3(const char *s, float f1, float f2, float f3) { in SC_debugFv3() argument
73 ALOGD("float x3 %s {%f, %f, %f}", s, f1, f2, f3); in SC_debugFv3()
75 static void SC_debugFv4(const char *s, float f1, float f2, float f3, float f4) { in SC_debugFv4() argument
76 ALOGD("float x4 %s {%f, %f, %f, %f}", s, f1, f2, f3, f4); in SC_debugFv4()
78 static void SC_debugF2(const char *s, const float2 *f) { in SC_debugF2() argument
79 ALOGD("float2 %s {%f, %f}", s, f->x, f->y); in SC_debugF2()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dagc.cpp175 Word32 s = 0; in energy_old() local
182 s = L_mac(s, temp, temp, pOverflow); in energy_old()
185 return(s); in energy_old()
377 Word32 s = 0; in energy_new() local
387 s = L_mac(s, in[i], in[i], pOverflow); in energy_new()
391 if (s != MAX_32) in energy_new()
394 s = s >> 4; in energy_new()
399 s = energy_old(in, l_trm, pOverflow); /* function result */ in energy_new()
402 return (s); in energy_new()
754 Word32 s; in agc() local
[all …]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUT_math_agree.java282 private void initializeValues(ScriptC_math_agree s) { in initializeValues() argument
286 s.set_x(x); in initializeValues()
287 s.set_y(y); in initializeValues()
288 s.set_result_add(x + y); in initializeValues()
289 s.set_result_sub(x - y); in initializeValues()
290 s.set_result_mul(x * y); in initializeValues()
291 s.set_result_div(x / y); in initializeValues()
361 s.set_rand_f1_0(rand_f1_0); in initializeValues()
362 s.set_rand_f2_0(pack_f2(rand_f2_0)); in initializeValues()
363 s.set_rand_f3_0(pack_f3(rand_f3_0)); in initializeValues()
[all …]
DUT_vector.java31 private boolean initializeGlobals(ScriptC_vector s) { in initializeGlobals() argument
32 Float2 F2 = s.get_f2(); in initializeGlobals()
38 s.set_f2(F2); in initializeGlobals()
40 Float3 F3 = s.get_f3(); in initializeGlobals()
47 s.set_f3(F3); in initializeGlobals()
49 Float4 F4 = s.get_f4(); in initializeGlobals()
57 s.set_f4(F4); in initializeGlobals()
59 Double2 D2 = s.get_d2(); in initializeGlobals()
65 s.set_d2(D2); in initializeGlobals()
67 Double3 D3 = s.get_d3(); in initializeGlobals()
[all …]
DUT_primitives.java31 private boolean initializeGlobals(ScriptC_primitives s) { in initializeGlobals() argument
32 float pF = s.get_floatTest(); in initializeGlobals()
36 s.set_floatTest(2.99f); in initializeGlobals()
38 double pD = s.get_doubleTest(); in initializeGlobals()
42 s.set_doubleTest(3.05); in initializeGlobals()
44 byte pC = s.get_charTest(); in initializeGlobals()
48 s.set_charTest((byte)-16); in initializeGlobals()
50 short pS = s.get_shortTest(); in initializeGlobals()
54 s.set_shortTest((short)-32); in initializeGlobals()
56 int pI = s.get_intTest(); in initializeGlobals()
[all …]
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_math_agree.java282 private void initializeValues(ScriptC_math_agree s) { in initializeValues() argument
286 s.set_x(x); in initializeValues()
287 s.set_y(y); in initializeValues()
288 s.set_result_add(x + y); in initializeValues()
289 s.set_result_sub(x - y); in initializeValues()
290 s.set_result_mul(x * y); in initializeValues()
291 s.set_result_div(x / y); in initializeValues()
361 s.set_rand_f1_0(rand_f1_0); in initializeValues()
362 s.set_rand_f2_0(pack_f2(rand_f2_0)); in initializeValues()
363 s.set_rand_f3_0(pack_f3(rand_f3_0)); in initializeValues()
[all …]
DUT_vector.java31 private boolean initializeGlobals(ScriptC_vector s) { in initializeGlobals() argument
32 Float2 F2 = s.get_f2(); in initializeGlobals()
38 s.set_f2(F2); in initializeGlobals()
40 Float3 F3 = s.get_f3(); in initializeGlobals()
47 s.set_f3(F3); in initializeGlobals()
49 Float4 F4 = s.get_f4(); in initializeGlobals()
57 s.set_f4(F4); in initializeGlobals()
59 Double2 D2 = s.get_d2(); in initializeGlobals()
65 s.set_d2(D2); in initializeGlobals()
67 Double3 D3 = s.get_d3(); in initializeGlobals()
[all …]
DUT_primitives.java31 private boolean initializeGlobals(ScriptC_primitives s) { in initializeGlobals() argument
32 float pF = s.get_floatTest(); in initializeGlobals()
36 s.set_floatTest(2.99f); in initializeGlobals()
38 double pD = s.get_doubleTest(); in initializeGlobals()
42 s.set_doubleTest(3.05); in initializeGlobals()
44 byte pC = s.get_charTest(); in initializeGlobals()
48 s.set_charTest((byte)-16); in initializeGlobals()
50 short pS = s.get_shortTest(); in initializeGlobals()
54 s.set_shortTest((short)-32); in initializeGlobals()
56 int pI = s.get_intTest(); in initializeGlobals()
[all …]
DUT_foreach_bounds.java32 private void initializeGlobals(RenderScript RS, ScriptC_foreach_bounds s) { in initializeGlobals() argument
40 s.set_dimX(X); in initializeGlobals()
41 s.set_dimY(Y); in initializeGlobals()
44 s.set_aRaw(A); in initializeGlobals()
45 s.set_s(s); in initializeGlobals()
46 s.set_ain(A); in initializeGlobals()
47 s.set_aout(A); in initializeGlobals()
48 s.set_xStart(xStart); in initializeGlobals()
49 s.set_xEnd(xEnd); in initializeGlobals()
50 s.set_yStart(yStart); in initializeGlobals()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dconvolve.c37 Word32 s; in Convolve() local
43 s = vo_mult32((*tmpX++), (*tmpH--));i--; in Convolve()
46 s += vo_mult32((*tmpX++), (*tmpH--)); in Convolve()
47 s += vo_mult32((*tmpX++), (*tmpH--)); in Convolve()
48 s += vo_mult32((*tmpX++), (*tmpH--)); in Convolve()
49 s += vo_mult32((*tmpX++), (*tmpH--)); in Convolve()
52 y[n] = ((s<<1) + 0x8000)>>16; in Convolve()
58 s = vo_mult32((*tmpX++), (*tmpH--));i--; in Convolve()
59 s += vo_mult32((*tmpX++), (*tmpH--));i--; in Convolve()
63 s += vo_mult32((*tmpX++), (*tmpH--)); in Convolve()
[all …]
Dresidu.c36 Word32 s; in Residu() local
41 s = vo_mult32((*p1++), (*p2--)); in Residu()
42 s += vo_mult32((*p1++), (*p2--)); in Residu()
43 s += vo_mult32((*p1++), (*p2--)); in Residu()
44 s += vo_mult32((*p1++), (*p2--)); in Residu()
45 s += vo_mult32((*p1++), (*p2--)); in Residu()
46 s += vo_mult32((*p1++), (*p2--)); in Residu()
47 s += vo_mult32((*p1++), (*p2--)); in Residu()
48 s += vo_mult32((*p1++), (*p2--)); in Residu()
49 s += vo_mult32((*p1++), (*p2--)); in Residu()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/
Dfilelist_vc.txt18 ./vc/comm/src/omxVCCOMM_Copy16x16_s.s
19 ./vc/comm/src/omxVCCOMM_Copy8x8_s.s
20 ./vc/comm/src/omxVCCOMM_ExpandFrame_I_s.s
22 ./vc/m4p10/src/armVCM4P10_Average_4x_Align_unsafe_s.s
24 ./vc/m4p10/src/armVCM4P10_DeblockingChroma_unsafe_s.s
25 ./vc/m4p10/src/armVCM4P10_DeblockingLuma_unsafe_s.s
26 ./vc/m4p10/src/armVCM4P10_DecodeCoeffsToPair_s.s
27 ./vc/m4p10/src/armVCM4P10_DequantTables_s.s
28 ./vc/m4p10/src/armVCM4P10_Interpolate_Chroma_s.s
29 ./vc/m4p10/src/armVCM4P10_InterpolateLuma_Align_unsafe_s.s
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/
Dfilelist_vc.txt18 ./vc/comm/src/omxVCCOMM_Copy16x16_s.s
19 ./vc/comm/src/omxVCCOMM_Copy8x8_s.s
20 ./vc/comm/src/omxVCCOMM_ExpandFrame_I_s.s
22 ./vc/m4p10/src/armVCM4P10_Average_4x_Align_unsafe_s.s
24 ./vc/m4p10/src/armVCM4P10_DeblockingChroma_unsafe_s.s
25 ./vc/m4p10/src/armVCM4P10_DeblockingLuma_unsafe_s.s
26 ./vc/m4p10/src/armVCM4P10_DecodeCoeffsToPair_s.s
27 ./vc/m4p10/src/armVCM4P10_DequantTables_s.s
28 ./vc/m4p10/src/armVCM4P10_Interpolate_Chroma_s.s
29 ./vc/m4p10/src/armVCM4P10_InterpolateLuma_Align_unsafe_s.s
[all …]
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
DUT_vector.java31 private boolean initializeGlobals(ScriptC_vector s) { in initializeGlobals() argument
32 Float2 F2 = s.get_f2(); in initializeGlobals()
38 s.set_f2(F2); in initializeGlobals()
40 Float3 F3 = s.get_f3(); in initializeGlobals()
47 s.set_f3(F3); in initializeGlobals()
49 Float4 F4 = s.get_f4(); in initializeGlobals()
57 s.set_f4(F4); in initializeGlobals()
59 Double2 D2 = s.get_d2(); in initializeGlobals()
65 s.set_d2(D2); in initializeGlobals()
67 Double3 D3 = s.get_d3(); in initializeGlobals()
[all …]
DUT_primitives.java31 private boolean initializeGlobals(ScriptC_primitives s) { in initializeGlobals() argument
32 float pF = s.get_floatTest(); in initializeGlobals()
36 s.set_floatTest(2.99f); in initializeGlobals()
38 double pD = s.get_doubleTest(); in initializeGlobals()
42 s.set_doubleTest(3.05); in initializeGlobals()
44 byte pC = s.get_charTest(); in initializeGlobals()
48 s.set_charTest((byte)-16); in initializeGlobals()
50 short pS = s.get_shortTest(); in initializeGlobals()
54 s.set_shortTest((short)-32); in initializeGlobals()
56 int pI = s.get_intTest(); in initializeGlobals()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dagc2_amr_wb.cpp126 int32 s; in agc2_amr_wb() local
133 s = fxp_mul_16by16(temp, temp) << 1; in agc2_amr_wb()
137 s = mac_16by16_to_int32(s, temp, temp); in agc2_amr_wb()
141 if (s == 0) in agc2_amr_wb()
145 exp = normalize_amr_wb(s) - 1; in agc2_amr_wb()
146 gain_out = amr_wb_round(s << exp); in agc2_amr_wb()
151 s = mul_16by16_to_int32(temp, temp); in agc2_amr_wb()
155 s = mac_16by16_to_int32(s, temp, temp); in agc2_amr_wb()
159 if (s == 0) in agc2_amr_wb()
165 i = normalize_amr_wb(s); in agc2_amr_wb()
[all …]
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
DUT_primitives.java31 private boolean initializeGlobals(ScriptC_primitives s) { in initializeGlobals() argument
32 float pF = s.get_floatTest(); in initializeGlobals()
36 s.set_floatTest(2.99f); in initializeGlobals()
38 double pD = s.get_doubleTest(); in initializeGlobals()
42 s.set_doubleTest(3.05); in initializeGlobals()
44 byte pC = s.get_charTest(); in initializeGlobals()
48 s.set_charTest((byte)-16); in initializeGlobals()
50 short pS = s.get_shortTest(); in initializeGlobals()
54 s.set_shortTest((short)-32); in initializeGlobals()
56 int pI = s.get_intTest(); in initializeGlobals()
[all …]
/frameworks/base/core/java/android/net/
DSSLCertificateSocketFactory.java304 for (byte[] s : items) { in toLengthPrefixedList()
305 if (s.length == 0 || s.length > 255) { in toLengthPrefixedList()
306 throw new IllegalArgumentException("s.length == 0 || s.length > 255: " + s.length); in toLengthPrefixedList()
308 totalLength += 1 + s.length; in toLengthPrefixedList()
312 for (byte[] s : items) { in toLengthPrefixedList()
313 result[pos++] = (byte) s.length; in toLengthPrefixedList()
314 for (byte b : s) { in toLengthPrefixedList()
429 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(k, host, port, close); in createSocket() local
430 s.setNpnProtocols(mNpnProtocols); in createSocket()
431 s.setAlpnProtocols(mAlpnProtocols); in createSocket()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAString.cpp37 AString::AString(const char *s) in AString() argument
41 setTo(s); in AString()
44 AString::AString(const char *s, size_t size) in AString() argument
48 setTo(s, size); in AString()
89 void AString::setTo(const char *s) { in setTo() argument
90 setTo(s, strlen(s)); in setTo()
93 void AString::setTo(const char *s, size_t size) { in setTo() argument
95 append(s, size); in setTo()
164 void AString::append(const char *s) { in append() argument
165 append(s, strlen(s)); in append()
[all …]
/frameworks/wilhelm/tools/permute/
Dpermute.c79 static unsigned split(State *s, unsigned frameStart, unsigned frameLength, unsigned segmentBudget) in split() argument
84 if ((frameLength <= s->mMinSegmentLengthFrames*2) || (segmentBudget <= 1)) { in split()
85 assert(s->mSegmentCount < s->mSegmentMax); in split()
86 Segment *seg = &s->mSegmentArray[s->mSegmentCount++]; in split()
93 unsigned slop = frameLength - s->mMinSegmentLengthFrames*2; in split()
99 unsigned leftLength = s->mMinSegmentLengthFrames + cut; in split()
101 unsigned rightLength = s->mMinSegmentLengthFrames + (slop - cut); in split()
107 used = split(s, leftStart, leftLength, segmentBudget / 2); in split()
108 used += split(s, rightStart, rightLength, segmentBudget - used); in split()
110 used = split(s, rightStart, rightLength, segmentBudget / 2); in split()
[all …]

12345678910>>...63