Home
last modified time | relevance | path

Searched refs:rec (Results 1 - 25 of 398) sorted by relevance

12345678910>>...16

/third_party/selinux/libselinux/src/
H A Dlabel.c44 typedef int (*selabel_initfunc)(struct selabel_handle *rec,
124 int selabel_validate(struct selabel_handle *rec, in selabel_validate() argument
129 if (!rec->validating || contexts->validated) in selabel_validate()
142 static int selabel_fini(struct selabel_handle *rec, in selabel_fini() argument
148 if (rec->spec_file != NULL) { in selabel_fini()
149 path = rec->spec_file[0]; in selabel_fini()
151 if (compat_validate(rec, lr, path, lr->lineno)) in selabel_fini()
154 if (compat_validate(rec, lr, rec->spec_file, lr->lineno)) in selabel_fini()
166 selabel_lookup_common(struct selabel_handle *rec, in argument
187 selabel_lookup_bm_common(struct selabel_handle *rec, int translating, const char *key, int type, const char **aliases) selabel_lookup_bm_common() argument
208 free_spec_files(struct selabel_handle *rec) free_spec_files() argument
229 struct selabel_handle *rec = NULL; selabel_open() local
267 selabel_lookup(struct selabel_handle *rec, char **con, const char *key, int type) selabel_lookup() argument
280 selabel_lookup_raw(struct selabel_handle *rec, char **con, const char *key, int type) selabel_lookup_raw() argument
293 selabel_partial_match(struct selabel_handle *rec, const char *key) selabel_partial_match() argument
306 selabel_get_digests_all_partial_matches(struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, uint8_t **xattr_digest, size_t *digest_len) selabel_get_digests_all_partial_matches() argument
321 selabel_hash_all_partial_matches(struct selabel_handle *rec, const char *key, uint8_t *digest) selabel_hash_all_partial_matches() argument
330 selabel_lookup_best_match(struct selabel_handle *rec, char **con, const char *key, const char **aliases, int type) selabel_lookup_best_match() argument
348 selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, const char *key, const char **aliases, int type) selabel_lookup_best_match_raw() argument
375 selabel_digest(struct selabel_handle *rec, unsigned char **digest, size_t *digest_len, char ***specfiles, size_t *num_specfiles) selabel_digest() argument
391 selabel_close(struct selabel_handle *rec) selabel_close() argument
404 selabel_stats(struct selabel_handle *rec) selabel_stats() argument
[all...]
H A Dlabel_backends_android.c83 static int process_line(struct selabel_handle *rec, in process_line() argument
89 struct saved_data *data = (struct saved_data *)rec->data; in process_line()
128 if (rec->validating) { in process_line()
129 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) { in process_line()
143 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init() argument
146 struct saved_data *data = (struct saved_data *)rec->data; in init()
188 if (process_line(rec, path, line_buf, pass, ++lineno) in init()
217 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path); in init()
221 digest_gen_hash(rec->digest); in init()
231 static void closef(struct selabel_handle *rec) in closef() argument
250 property_lookup(struct selabel_handle *rec, const char *key, int __attribute__((unused)) type) property_lookup() argument
285 service_lookup(struct selabel_handle *rec, const char *key, int __attribute__((unused)) type) service_lookup() argument
317 stats(struct selabel_handle __attribute__((unused)) *rec) stats() argument
322 selabel_property_init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned nopts) selabel_property_init() argument
340 selabel_service_init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned nopts) selabel_service_init() argument
[all...]
H A Dlabel_media.c34 unsigned lineno, struct selabel_handle *rec) in process_line()
36 struct saved_data *data = (struct saved_data *)rec->data; in process_line()
70 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init() argument
74 struct saved_data *data = (struct saved_data *)rec->data; in init()
103 rec->spec_file = strdup(path); in init()
119 if (process_line(path, line_buf, pass, ++lineno, rec)) in init()
138 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path); in init()
142 digest_gen_hash(rec->digest); in init()
152 static void close(struct selabel_handle *rec) in close() argument
154 struct saved_data *data = (struct saved_data *)rec in close()
33 process_line(const char *path, char *line_buf, int pass, unsigned lineno, struct selabel_handle *rec) process_line() argument
171 lookup(struct selabel_handle *rec, const char *key, int type __attribute__((unused))) lookup() argument
196 stats(struct selabel_handle *rec) stats() argument
208 selabel_media_init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned nopts) selabel_media_init() argument
[all...]
H A Dlabel_x.c36 unsigned lineno, struct selabel_handle *rec) in process_line()
38 struct saved_data *data = (struct saved_data *)rec->data; in process_line()
97 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init() argument
101 struct saved_data *data = (struct saved_data *)rec->data; in init()
130 rec->spec_file = strdup(path); in init()
146 if (process_line(path, line_buf, pass, ++lineno, rec)) in init()
165 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path); in init()
169 digest_gen_hash(rec->digest); in init()
179 static void close(struct selabel_handle *rec) in close() argument
181 struct saved_data *data = (struct saved_data *)rec in close()
35 process_line(const char *path, char *line_buf, int pass, unsigned lineno, struct selabel_handle *rec) process_line() argument
198 lookup(struct selabel_handle *rec, const char *key, int type) lookup() argument
222 stats(struct selabel_handle *rec) stats() argument
234 selabel_x_init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned nopts) selabel_x_init() argument
[all...]
H A Dlabel_file.c98 struct selabel_handle *rec, const char *path) in process_text_file()
106 rc = process_line(rec, path, prefix, line_buf, ++lineno); in process_text_file()
116 static int load_mmap(FILE *fp, size_t len, struct selabel_handle *rec, in load_mmap() argument
119 struct saved_data *data = (struct saved_data *)rec->data; in load_mmap()
334 if (strcmp(spec->lr.ctx_raw, "<<none>>") && rec->validating) { in load_mmap()
335 if (selabel_validate(rec, &spec->lr) < 0) { in load_mmap()
533 struct selabel_handle *rec, in process_file()
554 load_mmap(fp, sb.st_size, rec, found_path) : in process_file()
555 process_text_file(fp, prefix, rec, found_path); in process_file()
710 static void closef(struct selabel_handle *rec);
97 process_text_file(FILE *fp, const char *prefix, struct selabel_handle *rec, const char *path) process_text_file() argument
532 process_file(const char *path, const char *suffix, struct selabel_handle *rec, const char *prefix, struct selabel_digest *digest) process_file() argument
713 init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned n) init() argument
778 init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned n) init() argument
874 closef(struct selabel_handle *rec) closef() argument
922 lookup_all(struct selabel_handle *rec, const char *key, int type, bool partial, size_t *match_count) lookup_all() argument
1065 lookup_common(struct selabel_handle *rec, const char *key, int type, bool partial) lookup_common() argument
1083 get_digests_all_partial_matches(struct selabel_handle *rec, const char *pathname, uint8_t **calculated_digest, uint8_t **xattr_digest, size_t *digest_len) get_digests_all_partial_matches() argument
1131 hash_all_partial_matches(struct selabel_handle *rec, const char *key, uint8_t *digest) hash_all_partial_matches() argument
1162 lookup(struct selabel_handle *rec, const char *key, int type) lookup() argument
1173 partial_match(struct selabel_handle *rec, const char *key) partial_match() argument
1178 lookup_best_match(struct selabel_handle *rec, const char *key, const char **aliases, int type) lookup_best_match() argument
1319 stats(struct selabel_handle *rec) stats() argument
1349 selabel_file_init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned nopts) selabel_file_init() argument
[all...]
H A Dlabel_db.c175 db_close(struct selabel_handle *rec) in db_close() argument
177 catalog_t *catalog = (catalog_t *)rec->data; in db_close()
194 db_lookup(struct selabel_handle *rec, const char *key, int type) in db_lookup() argument
196 catalog_t *catalog = (catalog_t *)rec->data; in db_lookup()
221 db_stats(struct selabel_handle *rec) in db_stats() argument
223 catalog_t *catalog = (catalog_t *)rec->data; in db_stats()
238 struct selabel_handle *rec) in db_init()
295 rec->spec_file = strdup(path); in db_init()
296 if (!rec->spec_file) { in db_init()
331 if (digest_add_specfile(rec in db_init()
237 db_init(const struct selinux_opt *opts, unsigned nopts, struct selabel_handle *rec) db_init() argument
359 selabel_db_init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned nopts) selabel_db_init() argument
[all...]
/third_party/skia/tools/
H A DSkMetaData.cpp15 Rec* rec = fRec; in reset() local
16 while (rec) { in reset()
17 Rec* next = rec->fNext; in reset()
18 Rec::Free(rec); in reset()
19 rec = next; in reset()
59 Rec* rec; in set() local
60 bool reuseRec = result.rec && in set()
61 result.rec->fDataLen == dataSize && in set()
62 result.rec->fDataCount == count; in set()
64 rec in set()
98 const Rec* rec = this->find(name, kS32_Type); findS32() local
111 const Rec* rec = this->find(name, kScalar_Type); findScalar() local
124 const Rec* rec = this->find(name, kScalar_Type); findScalars() local
137 const Rec* rec = this->find(name, kPtr_Type); findPtr() local
151 const Rec* rec = this->find(name, kBool_Type); findBool() local
250 Free(Rec* rec) Free() argument
[all...]
/third_party/skia/src/core/
H A DSkResourceCache.cpp69 static const SkResourceCache::Key& GetKey(const SkResourceCache::Rec* rec) { in GetKey()
70 return rec->getKey(); in GetKey()
107 Rec* rec = fHead; in ~SkResourceCache() local
108 while (rec) { in ~SkResourceCache()
109 Rec* next = rec->fNext; in ~SkResourceCache()
110 delete rec; in ~SkResourceCache()
111 rec = next; in ~SkResourceCache()
122 Rec* rec = *found; in find() local
123 if (visitor(*rec, context)) { in find()
124 this->moveToHead(rec); // fo in find()
146 add(Rec* rec, void* payload) add() argument
180 remove(Rec* rec) remove() argument
216 Rec* rec = fTail; purgeAsNeeded() local
248 Rec* rec = fTail; purgeSharedID() local
277 Rec* rec = fTail; visitAll() local
308 release(Rec* rec) release() argument
328 moveToHead(Rec* rec) moveToHead() argument
347 addToHead(Rec* rec) addToHead() argument
389 const Rec* rec = fHead; validate() local
535 Add(Rec* rec, void* payload) Add() argument
583 dump_visitor(const SkResourceCache::Rec& rec, void*) dump_visitor() argument
592 sk_trace_dump_visitor(const SkResourceCache::Rec& rec, void* context) sk_trace_dump_visitor() argument
[all...]
H A DSkScalerContext.cpp46 SkScalerContextRec rec = in PreprocessRec() local
49 // Allow the typeface to adjust the rec. in PreprocessRec()
50 typeface.onFilterRec(&rec); in PreprocessRec()
57 rec.ignorePreBlend(); in PreprocessRec()
60 SkColor lumColor = rec.getLuminanceColor(); in PreprocessRec()
62 if (rec.fMaskFormat == SkMask::kA8_Format) { in PreprocessRec()
70 rec.setLuminanceColor(lumColor); in PreprocessRec()
72 return rec; in PreprocessRec()
138 SkMaskGamma::PreBlend SkScalerContext::GetMaskPreBlend(const SkScalerContextRec& rec) { in GetMaskPreBlend() argument
141 const SkMaskGamma& maskGamma = cached_mask_gamma(rec in GetMaskPreBlend()
981 too_big_for_lcd(const SkScalerContextRec& rec, bool checkPost2x2) too_big_for_lcd() argument
994 MakeRecAndEffects(const SkFont& font, const SkPaint& paint, const SkSurfaceProps& surfaceProps, SkScalerContextFlags scalerContextFlags, const SkMatrix& deviceMatrix, SkScalerContextRec* rec, SkScalerContextEffects* effects) MakeRecAndEffects() argument
1158 SkScalerContextRec rec; CreateDescriptorAndEffectsUsingPaint() local
1163 calculate_size_and_flatten(const SkScalerContextRec& rec, const SkScalerContextEffects& effects, SkBinaryWriteBuffer* effectBuffer) calculate_size_and_flatten() argument
1180 generate_descriptor(const SkScalerContextRec& rec, const SkBinaryWriteBuffer& effectBuffer, SkDescriptor* desc) generate_descriptor() argument
1194 AutoDescriptorGivenRecAndEffects( const SkScalerContextRec& rec, const SkScalerContextEffects& effects, SkAutoDescriptor* ad) AutoDescriptorGivenRecAndEffects() argument
1207 DescriptorGivenRecAndEffects( const SkScalerContextRec& rec, const SkScalerContextEffects& effects) DescriptorGivenRecAndEffects() argument
1219 DescriptorBufferGiveRec(const SkScalerContextRec& rec, void* buffer) DescriptorBufferGiveRec() argument
1223 CheckBufferSizeForRec(const SkScalerContextRec& rec, const SkScalerContextEffects& effects, size_t size) CheckBufferSizeForRec() argument
[all...]
H A DSkDrawShadowInfo.cpp141 void GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, in GetLocalBounds() argument
145 if (SkScalarNearlyZero(rec.fZPlaneParams.fX) && SkScalarNearlyZero(rec.fZPlaneParams.fY)) { in GetLocalBounds()
146 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds()
148 occluderZ = compute_z(ambientBounds.fLeft, ambientBounds.fTop, rec.fZPlaneParams); in GetLocalBounds()
150 rec.fZPlaneParams)); in GetLocalBounds()
152 rec.fZPlaneParams)); in GetLocalBounds()
154 rec.fZPlaneParams)); in GetLocalBounds()
168 if (SkToBool(rec.fFlags & SkShadowFlags::kDirectionalLight_ShadowFlag)) { in GetLocalBounds()
169 SkDrawShadowMetrics::GetDirectionalParams(occluderZ, rec in GetLocalBounds()
[all...]
/third_party/pcre2/pcre2/maint/
H A DGenerateTest26.py105 rec = script_data[idx]
106 rec[2] = low
107 rec[3] = high
110 rec = script_data[idx]
111 if rec[2] > low:
112 rec[2] = low
113 if rec[3] < high:
114 rec[3] = high
116 if rec[4] == None:
120 rec[
[all...]
/third_party/skia/src/effects/
H A DSkLayerDrawLooper.cpp39 Rec* rec = fRecs; in ~SkLayerDrawLooper() local
40 while (rec) { in ~SkLayerDrawLooper()
41 Rec* next = rec->fNext; in ~SkLayerDrawLooper()
42 delete rec; in ~SkLayerDrawLooper()
43 rec = next; in ~SkLayerDrawLooper()
157 const Rec* rec = fRecs; in asABlurShadow() local
160 if ((rec->fInfo.fPaintBits & ~kMaskFilter_Bit)) { in asABlurShadow()
163 if (SkBlendMode::kSrc != (SkBlendMode)rec->fInfo.fColorMode) { in asABlurShadow()
166 const SkMaskFilter* mf = rec->fPaint.getMaskFilter(); in asABlurShadow()
175 rec in asABlurShadow()
202 Rec* rec = fRecs; flatten() local
249 Rec* rec = fRecs; ~Builder() local
260 Rec* rec = new Rec; addLayer() local
281 Rec* rec = new Rec; addLayerOnTop() local
[all...]
/third_party/node/deps/v8/src/profiler/
H A Dprofiler-listener.cc47 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; in CodeCreateEvent() local
48 rec->instruction_start = code->InstructionStart(); in CodeCreateEvent()
49 rec->entry = in CodeCreateEvent()
53 rec->instruction_size = code->InstructionSize(); in CodeCreateEvent()
54 weak_code_registry_.Track(rec->entry, code); in CodeCreateEvent()
62 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; in CodeCreateEvent() local
63 rec->instruction_start = code->InstructionStart(); in CodeCreateEvent()
64 rec->entry = in CodeCreateEvent()
68 rec->instruction_size = code->InstructionSize(); in CodeCreateEvent()
69 weak_code_registry_.Track(rec in CodeCreateEvent()
78 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; CodeCreateEvent() local
115 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; CodeCreateEvent() local
239 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; CodeCreateEvent() local
253 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; CallbackEvent() local
264 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; GetterCallbackEvent() local
275 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; SetterCallbackEvent() local
286 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; RegExpCodeCreateEvent() local
300 CodeMoveEventRecord* rec = &evt_rec.CodeMoveEventRecord_; CodeMoveEvent() local
316 CodeDisableOptEventRecord* rec = &evt_rec.CodeDisableOptEventRecord_; CodeDisableOptEvent() local
326 CodeDeoptEventRecord* rec = &evt_rec.CodeDeoptEventRecord_; CodeDeoptEvent() local
377 AttachDeoptInlinedFrames(Handle<Code> code, CodeDeoptEventRecord* rec) AttachDeoptInlinedFrames() argument
[all...]
/third_party/skia/tools/viewer/
H A DTouchGesture.cpp141 Rec* rec = fTouches.append(); in appendNewRec() local
142 rec->fOwner = owner; in appendNewRec()
143 rec->fStartX = rec->fPrevX = rec->fLastX = x; in appendNewRec()
144 rec->fStartY = rec->fPrevY = rec->fLastY = y; in appendNewRec()
145 rec->fLastT = rec in appendNewRec()
221 Rec& rec = fTouches[index]; touchMoved() local
270 const Rec& rec = fTouches[index]; touchEnd() local
[all...]
/third_party/mbedtls/library/
H A Dssl_msg.c316 mbedtls_record *rec);
335 mbedtls_record rec; in mbedtls_ssl_check_record() local
337 ret = ssl_parse_record_header(ssl, buf, buflen, &rec); in mbedtls_ssl_check_record()
344 ret = mbedtls_ssl_decrypt_buf(ssl, ssl->transform_in, &rec); in mbedtls_ssl_check_record()
386 mbedtls_record const *rec);
668 mbedtls_record *rec, in ssl_extract_add_data_from_record()
700 * ciphertext length from the inner plaintext length rec->data_len via in ssl_extract_add_data_from_record()
763 size_t ad_len_field = rec->data_len; in ssl_extract_add_data_from_record()
784 if (rec->cid_len != 0) { in ssl_extract_add_data_from_record()
790 *cur = rec in ssl_extract_add_data_from_record()
666 ssl_extract_add_data_from_record(unsigned char *add_data, size_t *add_data_len, mbedtls_record *rec, mbedtls_ssl_protocol_version tls_version, size_t taglen) ssl_extract_add_data_from_record() argument
901 mbedtls_ssl_encrypt_buf(mbedtls_ssl_context *ssl, mbedtls_ssl_transform *transform, mbedtls_record *rec, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) mbedtls_ssl_encrypt_buf() argument
1479 mbedtls_ssl_decrypt_buf(mbedtls_ssl_context const *ssl, mbedtls_ssl_transform *transform, mbedtls_record *rec) mbedtls_ssl_decrypt_buf() argument
2970 mbedtls_record rec; mbedtls_ssl_write_record() local
3711 ssl_parse_record_header(mbedtls_ssl_context const *ssl, unsigned char *buf, size_t len, mbedtls_record *rec) ssl_parse_record_header() argument
3959 ssl_prepare_record_content(mbedtls_ssl_context *ssl, mbedtls_record *rec) ssl_prepare_record_content() argument
4721 unsigned char *rec; ssl_load_buffered_record() local
4778 ssl_buffer_future_record(mbedtls_ssl_context *ssl, mbedtls_record const *rec) ssl_buffer_future_record() argument
4841 mbedtls_record rec; ssl_get_next_record() local
[all...]
/third_party/node/deps/openssl/openssl/ssl/record/
H A Dssl3_record_tls13.c33 SSL3_RECORD *rec = &recs[0]; in tls13_enc() local
59 if (ctx == NULL || rec->type == SSL3_RT_ALERT) { in tls13_enc()
60 memmove(rec->data, rec->input, rec->length); in tls13_enc()
61 rec->input = rec->data; in tls13_enc()
119 if (rec->length < taglen + 1) in tls13_enc()
121 rec->length -= taglen; in tls13_enc()
149 rec in tls13_enc()
[all...]
/third_party/openssl/ssl/record/
H A Dssl3_record_tls13.c33 SSL3_RECORD *rec = &recs[0]; in tls13_enc() local
59 if (ctx == NULL || rec->type == SSL3_RT_ALERT) { in tls13_enc()
60 memmove(rec->data, rec->input, rec->length); in tls13_enc()
61 rec->input = rec->data; in tls13_enc()
119 if (rec->length < taglen + 1) in tls13_enc()
121 rec->length -= taglen; in tls13_enc()
149 rec in tls13_enc()
[all...]
/third_party/lwip/src/netif/ppp/
H A Dmultilink.c127 TDB_DATA key, pid, rec; in mp_join_bundle() local
216 rec = tdb_fetch(pppdb, pid); in mp_join_bundle()
217 if (rec.dptr != NULL && rec.dsize > 0) { in mp_join_bundle()
219 rec.dptr[rec.dsize-1] = 0; in mp_join_bundle()
221 parse_num(rec.dptr, "IFNAME=ppp", &unit); in mp_join_bundle()
223 if (!parse_num(rec.dptr, "PPPD_PID=", &pppd_pid) in mp_join_bundle()
227 free(rec.dptr); in mp_join_bundle()
306 TDB_DATA key, rec; in make_bundle_links() local
346 TDB_DATA key, rec; remove_bundle_link() local
376 TDB_DATA key, rec, pp; iterate_bundle_links() local
[all...]
/third_party/skia/src/shaders/
H A DSkShader.cpp79 SkShaderBase::Context* SkShaderBase::makeContext(const ContextRec& rec, SkArenaAlloc* alloc) const { in makeContext() argument
82 if (rec.fMatrix->hasPerspective() || in makeContext()
84 (rec.fLocalMatrix && rec.fLocalMatrix->hasPerspective()) || in makeContext()
85 !this->computeTotalInverse(*rec.fMatrix, rec.fLocalMatrix, nullptr)) { in makeContext()
89 return this->onMakeContext(rec, alloc); in makeContext()
95 SkShaderBase::Context::Context(const SkShaderBase& shader, const ContextRec& rec) in Context() argument
96 : fShader(shader), fCTM(*rec.fMatrix) in Context()
99 SkASSERT(!rec in Context()
[all...]
/third_party/openssl/test/
H A Dtls13encryptiontest.c239 static int load_record(SSL3_RECORD *rec, RECORD_DATA *recd, unsigned char **key, in load_record() argument
253 rec->data = rec->input = OPENSSL_malloc(ptlen + EVP_GCM_TLS_TAG_LEN); in load_record()
255 if (rec->data == NULL) in load_record()
258 rec->length = ptlen; in load_record()
259 memcpy(rec->data, pt, ptlen); in load_record()
276 static int test_record(SSL3_RECORD *rec, RECORD_DATA *recd, int enc) in test_record() argument
292 if (!TEST_mem_eq(rec->data, rec->length, refd, refdatalen)) in test_record()
308 SSL3_RECORD rec; in test_tls13_encryption() local
[all...]
/third_party/skia/samplecode/
H A DSampleVertices.cpp123 void make_tris(Rec* rec) { in make_tris() argument
127 rec->fMode = SkVertices::kTriangles_VertexMode; in make_tris()
128 rec->fCount = n * 3; in make_tris()
129 rec->fVerts = new SkPoint[rec->fCount]; in make_tris()
132 SkPoint* v = &rec->fVerts[i*3]; in make_tris()
139 void make_fan(Rec* rec, int texWidth, int texHeight) { in make_fan() argument
144 rec->fMode = SkVertices::kTriangleFan_VertexMode; in make_fan()
145 rec->fCount = n + 2; in make_fan()
146 rec in make_fan()
170 make_strip(Rec* rec, int texWidth, int texHeight) make_strip() argument
[all...]
/third_party/skia/tests/
H A DCodecAnimTest.cpp246 for (const auto& rec : gRecs) { in DEF_TEST()
247 sk_sp<SkData> data(GetResourceAsData(rec.fName)); in DEF_TEST()
251 //ERRORF(r, "Missing resources? Could not find '%s'", rec.fName); in DEF_TEST()
257 ERRORF(r, "Failed to create an SkCodec from '%s'", rec.fName); in DEF_TEST()
267 if (repetitionCount != rec.fRepetitionCount) { in DEF_TEST()
269 rec.fName, rec.fRepetitionCount, repetitionCount); in DEF_TEST()
272 const int expected = rec.fFrameCount; in DEF_TEST()
273 if (rec.fRequiredFrames.size() + 1 != static_cast<size_t>(expected)) { in DEF_TEST()
275 rec in DEF_TEST()
[all...]
H A DNdkEncodeTest.cpp52 for (const auto& rec : gRecs) { in DEF_TEST()
53 auto encoded = encode_ndk(bm.pixmap(), rec.format, rec.quality); in DEF_TEST()
55 ERRORF(r, "Failed to encode %s to %s\n", ToolUtils::colortype_name(ct), rec.name); in DEF_TEST()
61 rec.name); in DEF_TEST()
65 if (rec.name == kPng && bm.colorType() == kRGB_565_SkColorType) { in DEF_TEST()
83 if (rec.name == kPng || rec.name == kWebpLossless) { in DEF_TEST()
139 for (const auto& rec : gRecs) { in DEF_TEST()
140 REPORTER_ASSERT(r, !encode_ndk(pm, rec in DEF_TEST()
[all...]
/third_party/skia/modules/skottie/src/layers/shapelayer/
H A DShapeLayer.cpp230 const auto add_draw = [this, &draws](sk_sp<sksg::RenderNode> draw, const ShapeRec& rec) { in attachShape()
232 draws.push_back(this->attachBlendMode(rec.fJson, std::move(draw))); in attachShape()
235 for (auto rec = recs.rbegin(); rec != recs.rend(); ++rec) { in attachShape()
236 const AutoPropertyTracker apt(this, rec->fJson, PropertyObserver::NodeType::OTHER); in attachShape()
238 switch (rec->fInfo.fShapeType) { in attachShape()
240 SkASSERT(rec->fInfo.fAttacherIndex < SK_ARRAY_COUNT(gGeometryAttachers)); in attachShape()
241 if (auto geo = gGeometryAttachers[rec->fInfo.fAttacherIndex](rec in attachShape()
265 add_draw(std::move(subgroup), *rec); attachShape() local
[all...]
/third_party/skia/src/utils/
H A DSkShadowUtils.cpp57 bool onAppendStages(const SkStageRec& rec, bool shaderIsOpaque) const override {
58 rec.fPipeline->append(SkRasterPipeline::gauss_a_to_rgba);
380 const CachedTessellationsRec& rec = static_cast<const CachedTessellationsRec&>(baseRec); in FindVisitor() local
382 rec.find(*findContext->fFactory, *findContext->fViewMatrix, &findContext->fTranslate); in FindVisitor()
388 findContext->fTessellationsOnFailure = rec.refTessellations(); in FindVisitor()
494 auto rec = new CachedTessellationsRec(*key, std::move(tessellations)); in draw_shadow() local
496 SkResourceCache::Add(rec); in draw_shadow()
582 uint32_t flags, const SkMatrix& ctm, SkDrawShadowRec* rec) { in fill_shadow_rec()
594 rec->fZPlaneParams = zPlaneParams; in fill_shadow_rec()
595 rec in fill_shadow_rec()
579 fill_shadow_rec(const SkPath& path, const SkPoint3& zPlaneParams, const SkPoint3& lightPos, SkScalar lightRadius, SkColor ambientColor, SkColor spotColor, uint32_t flags, const SkMatrix& ctm, SkDrawShadowRec* rec) fill_shadow_rec() argument
616 SkDrawShadowRec rec; DrawShadowStyle() local
629 SkDrawShadowRec rec; GetLocalBounds() local
642 validate_rec(const SkDrawShadowRec& rec) validate_rec() argument
647 drawShadow(const SkPath& path, const SkDrawShadowRec& rec) drawShadow() argument
[all...]

Completed in 16 milliseconds

12345678910>>...16