Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/DnsResolver/
Dres_mkquery.cpp109 uint8_t *cp, *ep; in res_nmkquery() local
127 cp = buf + HFIXEDSZ; in res_nmkquery()
140 if (ep - cp < QFIXEDSZ) return (-1); in res_nmkquery()
141 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, lastdnptr)) < 0) return (-1); in res_nmkquery()
142 cp += n; in res_nmkquery()
143 *reinterpret_cast<uint16_t*>(cp) = htons(type); in res_nmkquery()
144 cp += INT16SZ; in res_nmkquery()
145 *reinterpret_cast<uint16_t*>(cp) = htons(cl); in res_nmkquery()
146 cp += INT16SZ; in res_nmkquery()
152 if ((ep - cp) < RRFIXEDSZ) return (-1); in res_nmkquery()
[all …]
Dgethnamaddr.cpp119 BOUNDS_CHECK(cp, x); \
120 cp += (x); \
131 const uint8_t* cp; in getanswer() local
173 cp = answer->buf; in getanswer()
177 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
197 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
198 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
203 cp += n; /* name */ in getanswer()
204 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer()
205 int type = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in getanswer()
[all …]
Dgetaddrinfo.cpp617 const char *cp, *scope, *addr; in explore_numeric_scope() local
637 cp = strchr(hostname, SCOPE_DELIMITER); in explore_numeric_scope()
638 if (cp == NULL) return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
646 hostname2[cp - hostname] = '\0'; in explore_numeric_scope()
648 scope = cp + 1; in explore_numeric_scope()
829 BOUNDS_CHECK(cp, x); \
830 cp += (x); \
849 const uint8_t* cp; in getanswer() local
884 cp = answer.data(); in getanswer()
890 n = dn_expand(answer.data(), eom, cp, bp, ep - bp); in getanswer()
[all …]
Dres_send.cpp350 const uint8_t* cp = buf + HFIXEDSZ; in res_nameinquery() local
355 int n = dn_expand(buf, eom, cp, tname, sizeof tname); in res_nameinquery()
357 cp += n; in res_nameinquery()
358 if (cp + 2 * INT16SZ > eom) return (-1); in res_nameinquery()
359 int ttype = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_nameinquery()
360 cp += INT16SZ; in res_nameinquery()
361 int tclass = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_nameinquery()
362 cp += INT16SZ; in res_nameinquery()
381 const uint8_t* cp = buf1 + HFIXEDSZ; in res_queriesmatch() local
397 int n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
[all …]
Dres_debug.cpp171 const uint8_t* cp = ns_rr_rdata(rr); in do_section() local
175 GETSHORT(optcode, cp); in do_section()
176 GETSHORT(optlen, cp); in do_section()
185 StringAppendF(&s, "%02x ", cp[i]); in do_section()
189 StringAppendF(&s, "%c", isprint(cp[i]) ? cp[i] : '.'); in do_section()
199 StringAppendF(&s, "%02x ", cp[i]); in do_section()
203 StringAppendF(&s, "%c", isprint(cp[i]) ? cp[i] : '.'); in do_section()
209 cp += optlen; in do_section()
Dres_query.cpp211 const char* cp; in res_nsearch() local
222 for (cp = name; *cp != '\0'; cp++) dots += (*cp == '.'); in res_nsearch()
223 const bool trailing_dot = (cp > name && *--cp == '.') ? true : false; in res_nsearch()
Dsethostent.cpp108 char** cp; in _hf_gethtbyname2() local
109 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2()
110 if (strcasecmp(*cp, name) == 0) break; in _hf_gethtbyname2()
112 if (*cp == NULL) continue; in _hf_gethtbyname2()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local
92 db_PointCentroid3D(cp,Xp,nr_points); in db_StitchSimilarity3DRaw()
97 db_Zero3(cp); in db_StitchSimilarity3DRaw()
109 rp[0]=(*temp_p++)-cp[0]; in db_StitchSimilarity3DRaw()
110 rp[1]=(*temp_p++)-cp[1]; in db_StitchSimilarity3DRaw()
111 rp[2]=(*temp_p++)-cp[2]; in db_StitchSimilarity3DRaw()
162 t[0]=cp[0]-sc*(R[0]*c[0]+R[1]*c[1]+R[2]*c[2]); in db_StitchSimilarity3DRaw()
163 t[1]=cp[1]-sc*(R[3]*c[0]+R[4]*c[1]+R[5]*c[2]); in db_StitchSimilarity3DRaw()
164 t[2]=cp[2]-sc*(R[6]*c[0]+R[7]*c[1]+R[8]*c[2]); in db_StitchSimilarity3DRaw()
Ddb_image_homography.cpp241 double c[2],cp[2],r[2],rp[2],M[4],s,sp,sc; in db_StitchSimilarity2DRaw() local
248 db_PointCentroid2D(cp,Xp,nr_points); in db_StitchSimilarity2DRaw()
253 db_Zero2(cp); in db_StitchSimilarity2DRaw()
264 rp[0]=(*temp_p++)-cp[0]; in db_StitchSimilarity2DRaw()
265 rp[1]=(*temp_p++)-cp[1]; in db_StitchSimilarity2DRaw()
326 t[0]=cp[0]-sc*(R[0]*c[0]+R[1]*c[1]); in db_StitchSimilarity2DRaw()
327 t[1]=cp[1]-sc*(R[2]*c[0]+R[3]*c[1]); in db_StitchSimilarity2DRaw()
Ddb_utilities.h484 double sp,so,sk,om_sp2,om_so2,om_sk2,cp,co,ck,sp_so,cp_so; in db_IncrementalRotationMatrix() local
492 cp=(om_sp2>=0.0)?sqrt(om_sp2):1.0; in db_IncrementalRotationMatrix()
497 cp_so=cp*so; in db_IncrementalRotationMatrix()
498 R[0]=sp_so*sk+cp*ck; R[1]=co*sk; R[2]=cp_so*sk-sp*ck; in db_IncrementalRotationMatrix()
499 R[3]=sp_so*ck-cp*sk; R[4]=co*ck; R[5]=cp_so*ck+sp*sk; in db_IncrementalRotationMatrix()
500 R[6]=sp*co; R[7]= -so; R[8]=cp*co; in db_IncrementalRotationMatrix()
Ddb_utilities_poly.cpp30 double bp,bp2,cp,dp,q,r,srq; in db_SolveCubic() local
45 cp=c/a; in db_SolveCubic()
48 q=(bp2-3.0*cp)/9.0; in db_SolveCubic()
49 r=(2.0*bp2*bp-9.0*bp*cp+27.0*dp)/54.0; in db_SolveCubic()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsDictionaryUtils.java34 int cp = 0; in getWordEndPosition() local
35 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) { in getWordEndPosition()
36 cp = string.codePointAt(end); in getWordEndPosition()
37 if (cp != Constants.CODE_DASH && cp != Constants.CODE_SINGLE_QUOTE in getWordEndPosition()
38 && !Character.isLetter(cp)) { in getWordEndPosition()
/packages/services/Car/evs/sampleDriver/
DEvsEnumerator.cpp76 char *cp = uevent_data; in EvsUeventThread() local
77 while (*cp) { in EvsUeventThread()
79 if (!std::strncmp(cp, "ACTION=", 7)) { in EvsUeventThread()
80 action = cp + 7; in EvsUeventThread()
81 } else if (!std::strncmp(cp, "SUBSYSTEM=", 10)) { in EvsUeventThread()
82 subsys = cp + 10; in EvsUeventThread()
83 } else if (!std::strncmp(cp, "DEVNAME=", 8)) { in EvsUeventThread()
84 devname = cp + 8; in EvsUeventThread()
88 while (*cp++); in EvsUeventThread()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java320 final MockCaptivePortal cp = getCaptivePortal(); in verifyDismissed() local
321 assertEquals(cp.mDismissTimes, 1); in verifyDismissed()
322 assertEquals(cp.mIgnoreTimes, 0); in verifyDismissed()
323 assertEquals(cp.mUseTimes, 0); in verifyDismissed()
332 final MockCaptivePortal cp = getCaptivePortal(); in verifyNotDone() local
333 assertEquals(cp.mDismissTimes, 0); in verifyNotDone()
334 assertEquals(cp.mIgnoreTimes, 0); in verifyNotDone()
335 assertEquals(cp.mUseTimes, 0); in verifyNotDone()
344 final MockCaptivePortal cp = getCaptivePortal(); in verifyUseAsIs() local
345 assertEquals(cp.mDismissTimes, 0); in verifyUseAsIs()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java141 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in setUp() local
142 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in setUp()
151 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in tearDown() local
152 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in tearDown()
1224 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in testDataInsertAndUpdateHashId() local
1225 final ContactsDatabaseHelper helper = cp.getDatabaseHelper(); in testDataInsertAndUpdateHashId()
1285 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in testDataInsertAndUpdateHashId_Photo() local
1286 final ContactsDatabaseHelper helper = cp.getDatabaseHelper(); in testDataInsertAndUpdateHashId_Photo()
1996 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in testPhoneLookupUseStrictPhoneNumberCompare() local
1997 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in testPhoneLookupUseStrictPhoneNumberCompare()
[all …]
/packages/apps/ManagedProvisioning/tools/bash/animation/
Dswiper-theme-gen.sh40 javac -cp "${CP}" com/android/managedprovisioning/tools/anim/SwiperThemeGenerator.java
43 java -cp "${CP}" com.android.managedprovisioning.tools.anim.SwiperThemeGenerator "${OUT_PATH}"
/packages/modules/SdkExtensions/testing/
Dupdate_prebuilt.sh38 cp $bp "${bp}.bak"
45 cp "${OUT}/apex/com.android.sdkext/javalib/framework-sdkextensions.jar" "${dir}/test_framework-sdke…
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierImplTest.java441 IContentProvider cp = getContentProviderForUser(PRIMARY_USER.getIdentifier()); in testLoadOneCallFromDb() local
448 when(cp.query(anyString(), eq(queryUri), nullable(String[].class), in testLoadOneCallFromDb()
515 IContentProvider cp = getContentProviderForUser(PRIMARY_USER.getIdentifier()); in testLoadTwoCallsFromDb() local
517 when(cp.query(anyString(), eq(queryUri), nullable(String[].class), in testLoadTwoCallsFromDb()
/packages/services/Car/car-lib/
DAndroid.bp119 …cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt",
130 …cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-system-a…
/packages/apps/TimeZoneData/oem_template/data_app_prebuilt/
DREADME.oem10 cp -r data_app_prebuilt ${ANDROID_BUILD_TOP}/vendor/oemcorp/apps/TimeZoneDataPrebuilt
/packages/apps/TimeZoneData/oem_template/data_app/
DREADME.oem10 cp -r data_app ${ANDROID_BUILD_TOP}/vendor/oemcorp/apps/TimeZoneData
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java82 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in setUp() local
84 cp.setNewAggregatorForTest(false); in setUp()
86 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in setUp()
95 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in tearDown() local
96 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in tearDown()
DContactAggregator2Test.java83 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in setUp() local
84 cp.setNewAggregatorForTest(true); in setUp()
86 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in setUp()
95 final ContactsProvider2 cp = (ContactsProvider2) getProvider(); in tearDown() local
96 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in tearDown()
/packages/modules/Cronet/
DAndroid.bp71 cmd: "cp $(in) $(out)",
/packages/providers/CalendarProvider/tests/
DEMMA_README46 java -cp ${ANDROID_BUILD_TOP}/external/emma/lib/emma.jar \

12