Home
last modified time | relevance | path

Searched refs:pos2 (Results 1 – 25 of 119) sorted by relevance

12345

/external/v8/test/cctest/
Dtest-liveedit.cc65 : pos1(pos1_param), pos2(pos2_param), in DiffChunkStruct()
68 int pos2; member in __anon8fc936890111::DiffChunkStruct
82 void AddChunk(int pos1, int pos2, int len1, int len2) { in AddChunk() argument
83 current_chunk_ = new(zone_) DiffChunkStruct(pos1, pos2, len1, len2); in AddChunk()
109 int pos2 = 0; in CompareStringsOneWay() local
118 int diff_pos2 = pos2 + similar_part_length; in CompareStringsOneWay()
120 CHECK_EQ(diff_pos2, chunk->pos2); in CompareStringsOneWay()
124 CHECK(pos2 + j < len2); in CompareStringsOneWay()
125 CHECK_EQ(s1[pos1 + j], s2[pos2 + j]); in CompareStringsOneWay()
129 pos2 = diff_pos2 + chunk->len2; in CompareStringsOneWay()
[all …]
/external/wpa_supplicant_8/src/ap/
Dmbo_ap.c133 char *pos2 = pos; in mbo_ap_get_info() local
135 ret = os_snprintf(pos2, end - pos2, in mbo_ap_get_info()
140 if (os_snprintf_error(end - pos2, ret)) in mbo_ap_get_info()
142 pos2 += ret; in mbo_ap_get_info()
145 ret = os_snprintf(pos2, end - pos2, "%u%s", in mbo_ap_get_info()
149 if (os_snprintf_error(end - pos2, ret)) { in mbo_ap_get_info()
150 pos2 = NULL; in mbo_ap_get_info()
153 pos2 += ret; in mbo_ap_get_info()
156 if (!pos2) in mbo_ap_get_info()
158 ret = os_snprintf(pos2, end - pos2, "\n"); in mbo_ap_get_info()
[all …]
/external/v8/test/mjsunit/
Ddebug-liveedit-diff.js37 var pos2 = 0;
46 s2.substring(pos2, pos2 + similar_length));
50 pos2 += similar_length;
54 print(s2.substring(pos2, diff_array[i + 2]));
55 print(">>> " + pos2 + " " + diff_array[i + 2]);
57 pos2 = diff_array[i + 2];
62 assertEquals(similar_length, s2.length - pos2);
64 s2.substring(pos2, pos2 + similar_length));
/external/wpa_supplicant_8/src/wps/
Dwps_er_ssdp.c26 char buf[MULTICAST_MAX_READ], *pos, *pos2, *start; in wps_er_ssdp_rx() local
82 pos2 = os_strstr(start, "max-age="); in wps_er_ssdp_rx()
83 if (pos2 == NULL) in wps_er_ssdp_rx()
85 pos2 += 8; in wps_er_ssdp_rx()
86 max_age = atoi(pos2); in wps_er_ssdp_rx()
89 pos2 = os_strstr(start, "uuid:"); in wps_er_ssdp_rx()
90 if (pos2) { in wps_er_ssdp_rx()
91 pos2 += 5; in wps_er_ssdp_rx()
92 while (*pos2 == ' ') in wps_er_ssdp_rx()
93 pos2++; in wps_er_ssdp_rx()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_wide_line.c74 float *pos2 = v2->data[pos]; in wideline_line() local
77 const float dx = fabsf(pos0[0] - pos2[0]); in wideline_line()
78 const float dy = fabsf(pos0[1] - pos2[1]); in wideline_line()
96 pos2[1] = pos2[1] - half_width - bias; in wideline_line()
99 if (pos0[0] < pos2[0]) { in wideline_line()
103 pos2[0] -= 0.5f; in wideline_line()
110 pos2[0] += 0.5f; in wideline_line()
119 pos2[0] = pos2[0] - half_width + bias; in wideline_line()
122 if (pos0[1] < pos2[1]) { in wideline_line()
126 pos2[1] -= 0.5f; in wideline_line()
[all …]
/external/icu/icu4c/source/samples/uciter8/
Duciter8.c45 int32_t i, pos1, pos2, middle, length; in compareIterators() local
50 pos2=iter2->getIndex(iter2, UITER_LENGTH); in compareIterators()
51 if(length!=pos2) { in compareIterators()
52 log_err("%s->getIndex(length)=%d != %d=%s->getIndex(length)\n", n1, length, pos2, n2); in compareIterators()
65 pos2=iter2->move(iter2, middle, UITER_ZERO); in compareIterators()
66 if(pos2!=middle) { in compareIterators()
67 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n2, middle, pos2); in compareIterators()
110 pos2=iter2->move(iter2, 0, UITER_START); in compareIterators()
111 if(pos2<0) { in compareIterators()
145 pos2=iter2->move(iter2, middle, UITER_ZERO); in compareIterators()
[all …]
/external/bison/examples/calc++/
Dposition.hh139 operator== (const position& pos1, const position& pos2) in operator ==() argument
141 return (pos1.line == pos2.line in operator ==()
142 && pos1.column == pos2.column in operator ==()
143 && (pos1.filename == pos2.filename in operator ==()
144 || (pos1.filename && pos2.filename in operator ==()
145 && *pos1.filename == *pos2.filename))); in operator ==()
150 operator!= (const position& pos1, const position& pos2) in operator !=() argument
152 return !(pos1 == pos2); in operator !=()
/external/wpa_supplicant_8/wpa_supplicant/
Dhs20_supplicant.c756 const u8 *pos2; in hs20_osu_add_prov() local
786 pos2 = pos; in hs20_osu_add_prov()
790 while (pos - pos2 >= 4 && prov->friendly_name_count < OSU_MAX_ITEMS) { in hs20_osu_add_prov()
792 if (1 + pos2[0] > pos - pos2 || pos2[0] < 3) { in hs20_osu_add_prov()
797 os_memcpy(f->lang, pos2 + 1, 3); in hs20_osu_add_prov()
798 os_memcpy(f->text, pos2 + 1 + 3, pos2[0] - 3); in hs20_osu_add_prov()
799 pos2 += 1 + pos2[0]; in hs20_osu_add_prov()
829 pos2 = pos + 1; in hs20_osu_add_prov()
831 while (pos2 < pos) { in hs20_osu_add_prov()
832 if (*pos2 < 32) in hs20_osu_add_prov()
[all …]
Dconfig_file.c166 char buf[2000], *pos, *pos2; in wpa_config_read_network() local
184 pos2 = os_strchr(pos, '='); in wpa_config_read_network()
185 if (pos2 == NULL) { in wpa_config_read_network()
192 *pos2++ = '\0'; in wpa_config_read_network()
193 if (*pos2 == '"') { in wpa_config_read_network()
194 if (os_strchr(pos2 + 1, '"') == NULL) { in wpa_config_read_network()
196 "quotation '%s'.", *line, pos2); in wpa_config_read_network()
202 if (wpa_config_set(ssid, pos, pos2, *line) < 0) in wpa_config_read_network()
227 char buf[256], *pos, *pos2; in wpa_config_read_cred() local
242 pos2 = os_strchr(pos, '='); in wpa_config_read_cred()
[all …]
/external/wpa_supplicant_8/src/utils/
Dext_password_test.c47 char *pos, *pos2; in ext_password_test_get() local
61 pos2 = pos; in ext_password_test_get()
62 while (*pos2 != '|' && *pos2 != '\0') in ext_password_test_get()
63 pos2++; in ext_password_test_get()
64 buf = ext_password_alloc(pos2 - pos); in ext_password_test_get()
67 wpabuf_put_data(buf, pos, pos2 - pos); in ext_password_test_get()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_gtc.c108 const u8 *pos2, *end; in eap_gtc_process() local
119 pos2 = pos; in eap_gtc_process()
120 while (pos2 < end && *pos2) in eap_gtc_process()
121 pos2++; in eap_gtc_process()
122 if (pos2 == end) { in eap_gtc_process()
130 pos, pos2 - pos); in eap_gtc_process()
132 (pos2 - pos != (int) sm->identity_len || in eap_gtc_process()
143 sm->identity_len = pos2 - pos; in eap_gtc_process()
161 pos = pos2 + 1; in eap_gtc_process()
Dtncs.c670 char *pos, *pos2; in tncs_get_base64() local
678 pos2 = os_strstr(pos, "</Base64>"); in tncs_get_base64()
679 if (pos2 == NULL) in tncs_get_base64()
681 *pos2 = '\0'; in tncs_get_base64()
685 *pos2 = '<'; in tncs_get_base64()
783 char *buf, *start, *end, *pos, *pos2, *payload; in tncs_process_if_tnccs() local
916 pos2 = os_strstr(pos, "</XML>"); in tncs_process_if_tnccs()
917 if (pos2 == NULL) { in tncs_process_if_tnccs()
922 xmlend = pos2; in tncs_process_if_tnccs()
965 char *pos, *pos2; in tncs_parse_imv() local
[all …]
/external/freetype/src/truetype/
Dttpload.c177 FT_ULong pos1, pos2; in tt_face_get_location() local
182 pos1 = pos2 = 0; in tt_face_get_location()
192 pos2 = pos1; in tt_face_get_location()
195 pos2 = FT_NEXT_ULONG( p ); in tt_face_get_location()
203 pos2 = pos1; in tt_face_get_location()
206 pos2 = FT_NEXT_USHORT( p ); in tt_face_get_location()
209 pos2 <<= 1; in tt_face_get_location()
224 if ( pos2 > face->glyf_len ) in tt_face_get_location()
229 pos2, gindex + 1, face->glyf_len )); in tt_face_get_location()
230 pos2 = face->glyf_len; in tt_face_get_location()
[all …]
/external/pdfium/third_party/freetype/src/truetype/
Dttpload.c185 FT_ULong pos1, pos2; in tt_face_get_location() local
190 pos1 = pos2 = 0; in tt_face_get_location()
200 pos2 = pos1; in tt_face_get_location()
203 pos2 = FT_NEXT_ULONG( p ); in tt_face_get_location()
211 pos2 = pos1; in tt_face_get_location()
214 pos2 = FT_NEXT_USHORT( p ); in tt_face_get_location()
217 pos2 <<= 1; in tt_face_get_location()
232 if ( pos2 > face->glyf_len ) in tt_face_get_location()
237 pos2, gindex + 1, face->glyf_len )); in tt_face_get_location()
238 pos2 = face->glyf_len; in tt_face_get_location()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Dtncc.c620 char *pos, *pos2; in tncc_get_base64() local
628 pos2 = os_strstr(pos, "</Base64>"); in tncc_get_base64()
629 if (pos2 == NULL) in tncc_get_base64()
631 *pos2 = '\0'; in tncc_get_base64()
635 *pos2 = '<'; in tncc_get_base64()
646 char *pos, *pos2, saved; in tncc_get_recommendation() local
662 pos2 = pos; in tncc_get_recommendation()
663 while (*pos2 != '\0' && *pos2 != '"' && *pos2 != '>') in tncc_get_recommendation()
664 pos2++; in tncc_get_recommendation()
666 if (*pos2 == '\0') in tncc_get_recommendation()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
Duserdatarequest.cpp39 char *tmp, *pos, *pos2; in setParams() local
51 pos2 = strchr(pos, ':'); in setParams()
52 if (pos2 == NULL) { in setParams()
56 *pos2++ = '\0'; in setParams()
59 queryInfo->setText(pos2); in setParams()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dentropy_coding.c848 int j, k, n, pos, pos2, posg, poss, offsg, offss, offs2; in WebRtcIsac_DecodeLpcCoef() local
907 pos2 = offs2; in WebRtcIsac_DecodeLpcCoef()
909 sum += tmpcoeffs_g[pos++] * WebRtcIsac_kKltT1Gain[pos2++]; in WebRtcIsac_DecodeLpcCoef()
918 pos2 = offs2; in WebRtcIsac_DecodeLpcCoef()
920 sum += tmpcoeffs_s[pos++] * WebRtcIsac_kKltT1Shape[pos2++]; in WebRtcIsac_DecodeLpcCoef()
939 pos2 = j; in WebRtcIsac_DecodeLpcCoef()
941 sum += tmpcoeffs2_g[pos] * WebRtcIsac_kKltT2Gain[pos2]; in WebRtcIsac_DecodeLpcCoef()
943 pos2 += SUBFRAMES; in WebRtcIsac_DecodeLpcCoef()
952 pos2 = j; in WebRtcIsac_DecodeLpcCoef()
954 sum += tmpcoeffs2_s[pos] * WebRtcIsac_kKltT2Shape[pos2]; in WebRtcIsac_DecodeLpcCoef()
[all …]
Dlpc_analysis.c212 int k, n, j, pos1, pos2; in WebRtcIsac_GetLpcCoefLb() local
259 pos2 = k * UPDATE/2; in WebRtcIsac_GetLpcCoefLb()
261 maskdata->DataBufferLo[pos1] = inLo[QLOOKAHEAD + pos2]; in WebRtcIsac_GetLpcCoefLb()
262 maskdata->DataBufferHi[pos1] = inHi[pos2++]; in WebRtcIsac_GetLpcCoefLb()
393 int frameCntr, activeFrameCntr, n, pos1, pos2; in WebRtcIsac_GetLpcCoefUb() local
428 pos2 = frameCntr * UPDATE/2; in WebRtcIsac_GetLpcCoefUb()
429 for(n = 0; n < UPDATE/2; n++, pos1++, pos2++) in WebRtcIsac_GetLpcCoefUb()
431 maskdata->DataBufferLo[pos1] = inSignal[pos2]; in WebRtcIsac_GetLpcCoefUb()
/external/bison/data/
Dlocation.cc119 operator== (const position& pos1, const position& pos2)
121 return (pos1.line == pos2.line
122 && pos1.column == pos2.column
123 && (pos1.filename == pos2.filename
124 || (pos1.filename && pos2.filename
125 && *pos1.filename == *pos2.filename)));
130 operator!= (const position& pos1, const position& pos2)
132 return !(pos1 == pos2);
/external/google-breakpad/src/common/linux/
Dlinux_libc_support.cc200 size_t pos2 = 0; in my_strlcpy() local
202 while (s2[pos2] != '\0') { in my_strlcpy()
204 s1[pos1] = s2[pos2]; in my_strlcpy()
207 pos2++; in my_strlcpy()
212 return pos2; in my_strlcpy()
/external/wpa_supplicant_8/hostapd/
Dhlr_auc_gw.c278 char buf[200], *pos, *pos2; in read_gsm_triplets() local
315 pos2 = NULL; in read_gsm_triplets()
316 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
325 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
333 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
342 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
390 char buf[200], *pos, *pos2; in read_milenage() local
427 pos2 = NULL; in read_milenage()
428 pos = str_token(buf, " ", &pos2); in read_milenage()
437 pos = str_token(buf, " ", &pos2); in read_milenage()
[all …]
/external/lzma/CPP/Windows/
DFileName.cpp111 int pos2 = FindCharPosInString(s + pos + 1, '\\'); in GetRootPrefixSize_Of_NetworkPath() local
112 if (pos2 < 0) in GetRootPrefixSize_Of_NetworkPath()
114 return pos + pos2 + 2; in GetRootPrefixSize_Of_NetworkPath()
158 int pos2 = FindCharPosInString(s + pos + 1, L'\\'); in GetRootPrefixSize_Of_NetworkPath() local
159 if (pos2 < 0) in GetRootPrefixSize_Of_NetworkPath()
161 return pos + pos2 + 2; in GetRootPrefixSize_Of_NetworkPath()
DFileFind.cpp412 int pos2 = FindCharPosInString(path + pos, FTEXT('\\')); in Find() local
413 if (pos2 < 0 || pos2 == (int)len - 1) in Find()
416 if (pos2 < 0) in Find()
418 pos2 = len; in Find()
425 Name.SetFrom(s.Ptr(pos), pos2); in Find()
/external/skia/gm/
Dpictureimagegenerator.cpp79 const SkScalar pos2[] = { 0, .01f, 1.0f/3, 1.0f/3, 2.0f/3, 2.0f/3, .99f, 1 }; in draw_vector_logo() local
90 SkASSERT(SK_ARRAY_COUNT(pos2) == SK_ARRAY_COUNT(colors2)); in draw_vector_logo()
91 SkAutoTUnref<SkShader> gradient2(SkGradientShader::CreateLinear(pts2, colors2, pos2, in draw_vector_logo()
92 SK_ARRAY_COUNT(pos2), in draw_vector_logo()
/external/icu/icu4c/source/test/cintltst/
Dcustrtst.c1189 int32_t i, pos1, pos2, middle, length; in compareIterators() local
1194 pos2=iter2->getIndex(iter2, UITER_LENGTH); in compareIterators()
1195 if(length!=pos2) { in compareIterators()
1196 log_err("%s->getIndex(length)=%d != %d=%s->getIndex(length)\n", n1, length, pos2, n2); in compareIterators()
1209 pos2=iter2->move(iter2, middle, UITER_ZERO); in compareIterators()
1210 if(pos2!=middle) { in compareIterators()
1211 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n2, middle, pos2); in compareIterators()
1254 pos2=iter2->move(iter2, 0, UITER_START); in compareIterators()
1255 if(pos2<0) { in compareIterators()
1289 pos2=iter2->move(iter2, middle, UITER_ZERO); in compareIterators()
[all …]

12345