Home
last modified time | relevance | path

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

12345678910>>...23

/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.h88 inline int db_MaxIndex2(double s[2]) in db_MaxIndex2()
90 if(s[0]>=s[1]) return(0); in db_MaxIndex2()
94 inline int db_MaxIndex3(const double s[3]) in db_MaxIndex3()
99 best=s[0];pos=0; in db_MaxIndex3()
100 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex3()
101 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex3()
105 inline int db_MaxIndex4(const double s[4]) in db_MaxIndex4()
110 best=s[0];pos=0; in db_MaxIndex4()
111 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex4()
112 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex4()
[all …]
Ddb_utilities_linalg.cpp33 double s,temp; in db_CholeskyDecomp6x6() local
37 s=A[0]; in db_CholeskyDecomp6x6()
38 d[0]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
46 s=A[7]-A[6]*A[6]; in db_CholeskyDecomp6x6()
47 d[1]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
54 s=A[14]-A[12]*A[12]-A[13]*A[13]; in db_CholeskyDecomp6x6()
55 d[2]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
61 s=A[21]-A[18]*A[18]-A[19]*A[19]-A[20]*A[20]; in db_CholeskyDecomp6x6()
62 d[3]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
67 s=A[28]-A[24]*A[24]-A[25]*A[25]-A[26]*A[26]-A[27]*A[27]; in db_CholeskyDecomp6x6()
[all …]
Ddb_utilities_camera.h126 double s,mult; in db_OrthonormalizeRotation() local
128 s=db_sqr(R[0])+db_sqr(R[1])+db_sqr(R[2]); in db_OrthonormalizeRotation()
129 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation()
132 s=R[0]*R[3]+R[1]*R[4]+R[2]*R[5]; in db_OrthonormalizeRotation()
133 R[3]-=s*R[0]; R[4]-=s*R[1]; R[5]-=s*R[2]; in db_OrthonormalizeRotation()
135 s=db_sqr(R[3])+db_sqr(R[4])+db_sqr(R[5]); in db_OrthonormalizeRotation()
136 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation()
263 inline void db_MultiplyScaleOntoImageHomography(double H[9],double s) in db_MultiplyScaleOntoImageHomography() argument
266 H[0]*=s; in db_MultiplyScaleOntoImageHomography()
267 H[1]*=s; in db_MultiplyScaleOntoImageHomography()
[all …]
Ddb_feature_detection.cpp365 inline void db_HarrisStrength_row_f(float **s,float *gxx,float *gxy,float *gyy,int i,int j,int chun… in db_HarrisStrength_row_f() argument
378 s[i][j+c]=det-0.06f*trc*trc; in db_HarrisStrength_row_f()
494 inline void db_HarrisStrength_row_s(float *s,int *gxx,int *gxy,int *gyy,int nc) in db_HarrisStrength_row_s() argument
513 mov edx,s in db_HarrisStrength_row_s()
608 s[c]=det-k*trc*trc; in db_HarrisStrength_row_s()
616 inline void db_HarrisStrengthChunk_f(float **s,const float * const *img,int left,int top,int right,… in db_HarrisStrengthChunk_f() argument
651 db_HarrisStrength_row_f(s,gxx,gxy,gyy,i,left,chunk_width); in db_HarrisStrengthChunk_f()
659 inline void db_HarrisStrengthChunk_u(float **s,const unsigned char * const *img,int left,int top,in… in db_HarrisStrengthChunk_u() argument
691 db_HarrisStrength_row_s(s[i]+left,gxx,gxy,gyy,nc); in db_HarrisStrengthChunk_u()
700 void db_HarrisStrength_f(float **s,const float * const *img,int w,int h, in db_HarrisStrength_f() argument
[all …]
Ddb_rob_image_homography.cpp682 int s[4]; in db_RobImageHomography() local
862 db_RandomSample(s,3,point_count,r_seed); in db_RobImageHomography()
863 X[0]= &x_i[s[0]<<1]; in db_RobImageHomography()
864 X[1]= &x_i[s[1]<<1]; in db_RobImageHomography()
865 X[2]= &x_i[s[2]<<1]; in db_RobImageHomography()
866 Xp[0]= &xp_i[s[0]<<1]; in db_RobImageHomography()
867 Xp[1]= &xp_i[s[1]<<1]; in db_RobImageHomography()
868 Xp[2]= &xp_i[s[2]<<1]; in db_RobImageHomography()
878 db_RandomSample(s,2,point_count,r_seed); in db_RobImageHomography()
880 &x_h[3*s[0]],&x_h[3*s[1]], in db_RobImageHomography()
[all …]
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz ... flags=,originalFreq=162 130 word=it's,f=162,flags=,originalFreq= ...
Den_GB_wordlist.combined.gz ... flags=,originalFreq=162 131 word=it's,f=162,flags=,originalFreq= ...
Den_wordlist.combined.gz ... flags=,originalFreq=162 131 word=it's,f=162,flags=,originalFreq= ...
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dreader.h214 explicit StreamLocalCopy(Stream& original) : s(original), original_(original) {} in StreamLocalCopy()
215 ~StreamLocalCopy() { original_ = s; } in ~StreamLocalCopy()
217 Stream s; variable
229 explicit StreamLocalCopy(Stream& original) : s(original) {} in StreamLocalCopy()
231 Stream& s; variable
249 InputStream& s(copy.s); in SkipWhitespace()
251 while (s.Peek() == ' ' || s.Peek() == '\n' || s.Peek() == '\r' || s.Peek() == '\t') in SkipWhitespace()
252 s.Take(); in SkipWhitespace()
277 const __m128i s = _mm_load_si128((const __m128i *)p); in SkipWhitespace_SIMD() local
278 …const unsigned r = _mm_cvtsi128_si32(_mm_cmpistrm(w, s, _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _S… in SkipWhitespace_SIMD()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCapsModeUtilsTests.java51 final int s = TextUtils.CAP_MODE_SENTENCES; in allPathsForCaps() local
52 onePathForCaps(cs, expectedResult, c | w | s, sp, hasSpaceBefore); in allPathsForCaps()
53 onePathForCaps(cs, expectedResult, w | s, sp, hasSpaceBefore); in allPathsForCaps()
54 onePathForCaps(cs, expectedResult, c | s, sp, hasSpaceBefore); in allPathsForCaps()
58 onePathForCaps(cs, expectedResult, s, sp, hasSpaceBefore); in allPathsForCaps()
65 final int s = TextUtils.CAP_MODE_SENTENCES; in testGetCapsMode() local
74 allPathsForCaps("", c | w | s, sp, false); in testGetCapsMode()
78 allPathsForCaps("Word. ", c | w | s, sp, false); in testGetCapsMode()
80 allPathsForCaps("Word.. ", c | w | s, sp, false); in testGetCapsMode()
81 allPathsForCaps("Word... ", c | w | s, sp, false); in testGetCapsMode()
[all …]
/packages/modules/DnsResolver/
Dres_debug.cpp146 std::string s; in do_section() local
153 if (errno != ENODEV) StringAppendF(&s, "ns_parserr: %s", strerror(errno)); in do_section()
154 LOG(VERBOSE) << s; in do_section()
159 StringAppendF(&s, ";; %s SECTION:\n", p_section(section, opcode)); in do_section()
162 StringAppendF(&s, ";;\t%s, type = %s, class = %s\n", ns_rr_name(rr), in do_section()
169 StringAppendF(&s, "; EDNS: version: %" PRIu32 ", udp=%u, flags=%" PRIu32 "\n", in do_section()
179 StringAppendF(&s, "; NSID: "); in do_section()
181 StringAppendF(&s, "; NSID\n"); in do_section()
183 StringAppendF(&s, "; NSID: "); in do_section()
185 StringAppendF(&s, "%02x ", cp[i]); in do_section()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp68 InsituStringStream s(temp_); in TEST_F() local
71 EXPECT_TRUE(reader.Parse<kParseInsituFlag>(s, h)); in TEST_F()
78 InsituStringStream s(temp_); in TEST_F() local
81 EXPECT_TRUE(reader.Parse<kParseInsituFlag | kParseValidateEncodingFlag>(s, h)); in TEST_F()
87 StringStream s(json_); in TEST_F() local
90 EXPECT_TRUE(reader.Parse(s, h)); in TEST_F()
96 StringStream s(json_); in TEST_F() local
99 EXPECT_TRUE(reader.Parse<kParseFullPrecisionFlag>(s, h)); in TEST_F()
105 StringStream s(json_); in TEST_F() local
108 EXPECT_TRUE(reader.Parse<kParseIterativeFlag>(s, h)); in TEST_F()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DAbstractSessionStateMachine.java164 protected void log(String s) { in log() argument
165 getIkeLog().d(mLogTag, s); in log()
169 protected void logd(String s) { in logd() argument
170 getIkeLog().d(mLogTag, s); in logd()
173 protected void logd(String s, Throwable e) { in logd() argument
174 getIkeLog().d(mLogTag, s, e); in logd()
178 protected void logv(String s) { in logv() argument
179 getIkeLog().v(mLogTag, s); in logv()
183 protected void logi(String s) { in logi() argument
184 getIkeLog().i(mLogTag, s); in logi()
[all …]
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar8 …���ɫBH�����ߝ�o���Q���'$�I`�6�� KV��+�#�'u,��\��%&1\��r}�''��)���SrѨ�'s~�`{�0��.o��� E��k3…
9 d�q�s����7���w@>��/��.�&�����Zxe�O�?�&�T7�������%�Ą�&� G�
10 :s��z^G�-��8��+�?�4��V��FIً�NR���?`3/e*x?V,iy��&��Q�����^I1��C�,|�}$ ��M+�х����,�.�|<C�s…
11 s�?��H�����f�
17 g!d���+ߏ �������h�̌�f��Q����z+�Ȫk O�q����:$B�_�;��䶢���o�s�e}�J�)��h)ΞD[�&Z�/��gY�MN…
19s�DmD�D��|/#�Y�T��J\�r4�= ��������˜�\IP�.���5��`�S-�#��S�컇J��EEq9���h�\�M~��x(��J<�…
26 �R�u�fo�?��J⁴���-{��87o(��d]aRK�� ]��� K纫�|T�s�->^v���������D�6�B�j���;���YN��7��J�ͥ�y…
27 …�oE����cK�67�Z?��F�D�=�t��>N��?�"�D6���P6f�u7/ac�(��������S::�n��'j's��;X�r��>����y�ڱ�6J…
28 0�d�M�B�=h��@��uu�@��%ə&�ĭ�cyo�J%\'/+7�,�����b��&��FKf8��~9��0�>'<u��s]��}��+�LK&�(�…
/packages/apps/Camera2/src/com/android/camera/ui/
DMarginDrawable.java58 RectF s = mScreen; in draw() local
59 if (s.top < s.bottom && s.left < s.right) { in draw()
61 if (s.top > 0) { in draw()
62 canvas.drawRect(0, 0, cb.right, s.top + 1, mPaint); in draw()
64 if (s.left > 0) { in draw()
65 canvas.drawRect(0, s.top, s.left + 1, s.bottom, mPaint); in draw()
67 if (s.right < cb.right) { in draw()
68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint); in draw()
70 if (s.bottom < cb.bottom) { in draw()
71 canvas.drawRect(0, s.bottom - 1, cb.right, cb.bottom, mPaint); in draw()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodedstreamtest.cpp88 StringStream s(json_); in TestEncodedInputStream() local
92 EXPECT_TRUE(UTF8<>::Decode(s, &expected)); in TestEncodedInputStream()
96 EXPECT_EQ('\0', s.Peek()); in TestEncodedInputStream()
106 StringStream s(json_); in TestEncodedInputStream() local
110 EXPECT_TRUE(UTF8<>::Decode(s, &expected)); in TestEncodedInputStream()
114 EXPECT_EQ('\0', s.Peek()); in TestEncodedInputStream()
129 StringStream s(json_); in TestAutoUTFInputStream() local
132 EXPECT_TRUE(UTF8<>::Decode(s, &expected)); in TestAutoUTFInputStream()
136 EXPECT_EQ('\0', s.Peek()); in TestAutoUTFInputStream()
147 StringStream s(json_); in TestAutoUTFInputStream() local
[all …]
Dreadertest.cpp42 StringStream s("true"); in TEST() local
45 reader.Parse(s, h); in TEST()
50 StringStream s("false"); in TEST() local
53 reader.Parse(s, h); in TEST()
105 StringStream s(str); \ in TEST()
108 reader.Parse(s, h); \ in TEST()
180 StringStream s(str); \ in TestParseDouble()
183 …ASSERT_EQ(kParseErrorNone, reader.Parse<fullPrecision ? kParseFullPrecisionFlag : 0>(s, h).Code())… in TestParseDouble()
322 StringStream s(buffer); in TestParseDouble() local
324 …ASSERT_EQ(kParseErrorNone, reader.Parse<fullPrecision ? kParseFullPrecisionFlag : 0>(s, h).Code()); in TestParseDouble()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeUtility.java53 public static String unfold(String s) { in unfold() argument
54 if (s == null) { in unfold()
57 Matcher patternMatcher = PATTERN_CR_OR_LF.matcher(s); in unfold()
60 s = patternMatcher.replaceAll(""); in unfold()
62 return s; in unfold()
65 public static String decode(String s) { in decode() argument
66 if (s == null) { in decode()
69 return DecoderUtil.decodeEncodedWords(s, DecodeMonitor.STRICT); in decode()
72 public static String unfoldAndDecode(String s) { in unfoldAndDecode() argument
73 return decode(unfold(s)); in unfoldAndDecode()
[all …]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java51 for (ContentRatingSystem s : contentRatingSystems) { in getDescription()
52 if (!tvActivity.getParentalControlSettings().isContentRatingSystemEnabled(s)) { in getDescription()
55 builder.append(s.getDisplayName()); in getDescription()
86 for (ContentRatingSystem s : contentRatingSystems) { in getItemList()
87 if (!s.isCustom() in getItemList()
88 && s.getCountries() != null in getItemList()
89 && s.getCountries().contains(Locale.getDefault().getCountry())) { in getItemList()
90 items.add(new RatingSystemItem(s)); in getItemList()
91 } else if (s.isCustom() || parentalControlSettings.isContentRatingSystemEnabled(s)) { in getItemList()
92 items.add(new RatingSystemItem(s)); in getItemList()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParser.java138 String s = null; in parse() local
148 if ((s = getPropertyFromLongName( in parse()
151 builder.setDeviceAdminComponentName(ComponentName.unflattenFromString(s)); in parse()
158 if ((s = getPropertyFromLongName(props, EXTRA_PROVISIONING_LOCAL_TIME)) != null) { in parse()
159 builder.setLocalTime(Long.parseLong(s)); in parse()
172 if ((s = getPropertyFromLongName( in parse()
174 builder.setLeaveAllSystemAppsEnabled(Boolean.parseBoolean(s)); in parse()
176 if ((s = getPropertyFromLongName( in parse()
178 builder.setSkipEncryption(Boolean.parseBoolean(s)); in parse()
180 if ((s = getPropertyFromLongName( in parse()
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp112 SourceManager *s = reinterpret_cast<SourceManager*>(cinfo->src); in Mgr_init_source_fcn() local
113 s->start_of_file = TRUE; in Mgr_init_source_fcn()
171 SourceManager *s = reinterpret_cast<SourceManager*>(cinfo->src); in MakeSrc() local
172 s->start_of_file = TRUE; in MakeSrc()
173 s->mgr.init_source = Mgr_init_source_fcn; in MakeSrc()
174 s->mgr.fill_input_buffer = Mgr_fill_input_buffer_fcn; in MakeSrc()
175 s->mgr.skip_input_data = Mgr_skip_input_data_fcn; in MakeSrc()
176 s->mgr.resync_to_restart = jpeg_resync_to_restart; // use default restart in MakeSrc()
177 s->mgr.term_source = Mgr_term_source_fcn; in MakeSrc()
178 s->inStream = new InputStreamWrapper(); in MakeSrc()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java100 public static Path fromString(String s) { in fromString() argument
102 String[] segments = split(s); in fromString()
126 public static String[] split(String s) { in split() argument
127 int n = s.length(); in split()
129 if (s.charAt(0) != '/') { in split()
130 throw new RuntimeException("malformed path:" + s); in split()
138 char c = s.charAt(j); in split()
144 throw new RuntimeException("unbalanced brace in path:" + s); in split()
146 segments.add(s.substring(i, j)); in split()
156 public static String[] splitSequence(String s) { in splitSequence() argument
[all …]
/packages/apps/Camera2/tests/exiftool_parser/
Dparser.py44 for s in tags:
46 if s[2]:
47 l = len(s[3])
48 ifd = s[2][l + 3:].split()[0]
58 l = len(s[1])
59 s = s[0] variable
67 _id = re.search("0x[0-9a-f]{4}", s)
71 name = re.search("[0-9]*?\).*?(?:(?: = )|(?: \(SubDirectory\) -->))", s)
75 value = re.search("\(SubDirectory\) -->", s)
79 value = re.search("\(.*\)\n", s)
[all …]
/packages/providers/CalendarProvider/
Dmaketests.py55 def fixInstance(s): argument
56 m = TIME.match(s[0])
65 m = TIMEZ.match(s[0])
69 return s[0]
84 s = "" variable
86 s = s + c.nodeValue variable
87 lines = stripTimezone(s)
88 for s in lines:
89 re_dtstart = DTSTART_TZID.match(s)
93 re_dtstart = DTSTART.match(s)
[all …]
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
DColorExtractionAlgorithm.java117 float[] s = fit(palette.s, hsl[1], fitIndex, 0.0f, 1.0f); in extractInto() local
121 int mainColor = getColorInt(primaryIndex, h, s, l); in extractInto()
148 int secondaryColor = getColorInt(secondaryIndex, h, s, l); in extractInto()
162 private int getColorInt(int fitIndex, float[] h, float[] s, float[] l) { in getColorInt() argument
164 mTmpHSL[1] = s[fitIndex]; in getColorInt()
213 private static int bestFit(@NonNull TonalPalette palette, float h, float s, float l) { in bestFit() argument
220 + FIT_WEIGHT_S * Math.abs(s - palette.s[i]) in bestFit()
232 private static TonalPalette findTonalPalette(float h, float s) { in findTonalPalette() argument
235 if (s < 0.05f) { in findTonalPalette()
286 final float[] s; field in ColorExtractionAlgorithm.TonalPalette
[all …]

12345678910>>...23