Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 171) sorted by relevance

1234567

/external/harfbuzz_ng/src/
Dhb-blob.cc68 static bool _try_writable (hb_blob_t *blob);
71 _hb_blob_destroy_user_data (hb_blob_t *blob) in _hb_blob_destroy_user_data() argument
73 if (blob->destroy) { in _hb_blob_destroy_user_data()
74 blob->destroy (blob->user_data); in _hb_blob_destroy_user_data()
75 blob->user_data = NULL; in _hb_blob_destroy_user_data()
76 blob->destroy = NULL; in _hb_blob_destroy_user_data()
103 hb_blob_t *blob; in hb_blob_create() local
108 !(blob = hb_object_create<hb_blob_t> ())) { in hb_blob_create()
114 blob->data = data; in hb_blob_create()
115 blob->length = length; in hb_blob_create()
[all …]
Dhb-blob.h89 hb_blob_reference (hb_blob_t *blob);
92 hb_blob_destroy (hb_blob_t *blob);
95 hb_blob_set_user_data (hb_blob_t *blob,
103 hb_blob_get_user_data (hb_blob_t *blob,
108 hb_blob_make_immutable (hb_blob_t *blob);
111 hb_blob_is_immutable (hb_blob_t *blob);
115 hb_blob_get_length (hb_blob_t *blob);
118 hb_blob_get_data (hb_blob_t *blob, unsigned int *length);
121 hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length);
Dhb-face.cc107 hb_blob_t *blob; member
112 _hb_face_for_data_closure_create (hb_blob_t *blob, unsigned int index) in _hb_face_for_data_closure_create() argument
120 closure->blob = blob; in _hb_face_for_data_closure_create()
129 hb_blob_destroy (closure->blob); in _hb_face_for_data_closure_destroy()
139 return hb_blob_reference (data->blob); in _hb_face_for_data_reference_table()
141 …t OT::OpenTypeFontFile &ot_file = *OT::Sanitizer<OT::OpenTypeFontFile>::lock_instance (data->blob); in _hb_face_for_data_reference_table()
146 hb_blob_t *blob = hb_blob_create_sub_blob (data->blob, table.offset, table.length); in _hb_face_for_data_reference_table() local
148 return blob; in _hb_face_for_data_reference_table()
163 hb_face_create (hb_blob_t *blob, in hb_face_create() argument
168 if (unlikely (!blob || !hb_blob_get_length (blob))) in hb_face_create()
[all …]
Dhb-ot-font.cc44 hb_blob_t *blob; member
58 this->blob = OT::Sanitizer<OT::_mtx>::sanitize (face->reference_table (_mtx_tag)); in init()
60 2 * (this->num_advances + this->num_metrics) < hb_blob_get_length (this->blob))) in init()
63 hb_blob_destroy (this->blob); in init()
64 this->blob = hb_blob_get_empty (); in init()
66 this->table = OT::Sanitizer<OT::_mtx>::lock_instance (this->blob); in init()
71 hb_blob_destroy (this->blob); in fini()
98 hb_blob_t *blob; member
102 this->blob = OT::Sanitizer<OT::cmap>::sanitize (face->reference_table (HB_OT_TAG_cmap)); in init()
103 const OT::cmap *cmap = OT::Sanitizer<OT::cmap>::lock_instance (this->blob); in init()
[all …]
Dtest.cc49 hb_blob_t *blob = NULL; in main() local
85 blob = hb_blob_create (font_data, len, mm, user_data, destroy); in main()
88 printf ("Opened font file %s: %u bytes long\n", argv[1], hb_blob_get_length (blob)); in main()
91 hb_face_t *face = hb_face_create (blob, 0 /* first face */); in main()
92 hb_blob_destroy (blob); in main()
93 blob = NULL; in main()
Dtest-size-params.cc46 hb_blob_t *blob = NULL; in main() local
82 blob = hb_blob_create (font_data, len, mm, user_data, destroy); in main()
86 hb_face_t *face = hb_face_create (blob, 0 /* first face */); in main()
87 hb_blob_destroy (blob); in main()
88 blob = NULL; in main()
Dtest-would-substitute.cc50 hb_blob_t *blob = NULL; in main() local
86 blob = hb_blob_create (font_data, len, mm, user_data, destroy); in main()
90 hb_face_t *face = hb_face_create (blob, 0 /* first face */); in main()
91 hb_blob_destroy (blob); in main()
92 blob = NULL; in main()
Dhb-face-private.hh67 hb_blob_t *blob; in reference_table() local
72 blob = reference_table_func (/*XXX*/const_cast<hb_face_t *> (this), tag, user_data); in reference_table()
73 if (unlikely (!blob)) in reference_table()
76 return blob; in reference_table()
Dtest-buffer-serialize.cc48 hb_blob_t *blob = NULL; in main() local
84 blob = hb_blob_create (font_data, len, mm, user_data, destroy); in main()
87 hb_face_t *face = hb_face_create (blob, 0 /* first face */); in main()
88 hb_blob_destroy (blob); in main()
89 blob = NULL; in main()
Dhb-graphite2.cc48 hb_blob_t *blob; member
63 hb_blob_t *blob = NULL; in hb_graphite2_get_table() local
67 blob = p->blob; in hb_graphite2_get_table()
71 if (unlikely (!blob)) in hb_graphite2_get_table()
73 blob = face_data->face->reference_table (tag); in hb_graphite2_get_table()
77 hb_blob_destroy (blob); in hb_graphite2_get_table()
80 p->blob = blob; in hb_graphite2_get_table()
90 const char *d = hb_blob_get_data (blob, &tlen); in hb_graphite2_get_table()
131 hb_blob_destroy (tlist->blob); in _hb_graphite2_shaper_face_data_destroy()
/external/vboot_reference/tests/futility/
Dtest_gbb_utility.sh18 ${FUTILITY} gbb_utility -c 16,0x10,16,0x10 ${TMP}.blob
21 ${FUTILITY} gbb_utility -s --flags=0xdeadbeef ${TMP}.blob
22 ${FUTILITY} gbb_utility -g --flags ${TMP}.blob | grep -i 0xdeadbeef
25 if ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDEF" ${TMP}.blob; then
29 ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDE" ${TMP}.blob
31 ${FUTILITY} gbb_utility -g ${TMP}.blob | grep "0123456789ABCDE"
39 if ${FUTILITY} gbb_utility -s --rootkey ${TMP}.data1.toolong ${TMP}.blob; then false; fi
40 if ${FUTILITY} gbb_utility -s --recoverykey ${TMP}.data2.toolong ${TMP}.blob; then false; fi
41 if ${FUTILITY} gbb_utility -s --bmpfv ${TMP}.data3.toolong ${TMP}.blob; then false; fi
50 --bmpfv ${TMP}.data3.short ${TMP}.blob
[all …]
/external/javasqlite/src/main/java/SQLite/
DBlob.java16 private Blob blob; field in BlobR
28 BlobR(Blob blob) { in BlobR() argument
29 this.blob = blob; in BlobR()
39 int ret = blob.size - pos; in available()
71 blob.close(); in close()
72 blob = null; in close()
85 } else if (ret > blob.size) { in skip()
86 ret = blob.size; in skip()
87 pos = blob.size; in skip()
101 int n = blob.read(b, 0, pos, b.length); in read()
[all …]
/external/skia/src/gpu/
DGrTextBlobCache.h35 BitmapTextBlob* createBlob(const SkTextBlob* blob, size_t maxVAStride) { in createBlob() argument
38 BlobGlyphCount(&glyphCount, &runCount, blob); in createBlob()
43 BitmapTextBlob* createCachedBlob(const SkTextBlob* blob, in createCachedBlob() argument
50 BlobGlyphCount(&glyphCount, &runCount, blob); in createCachedBlob()
69 void remove(BitmapTextBlob* blob) { in remove() argument
70 fCache.remove(blob->fKey); in remove()
71 fBlobList.remove(blob); in remove()
72 blob->unref(); in remove()
75 void add(BitmapTextBlob* blob) { in add() argument
76 fCache.add(blob); in add()
[all …]
DGrAtlasTextContext.cpp238 bool GrAtlasTextContext::HasLCD(const SkTextBlob* blob) { in HasLCD() argument
239 SkTextBlob::RunIterator it(blob); in HasLCD()
249 const BitmapTextBlob& blob, const SkPaint& paint, in MustRegenerateBlob() argument
254 if (blob.fKey.fCanonicalColor == SK_ColorTRANSPARENT && blob.fPaintColor != paint.getColor()) { in MustRegenerateBlob()
258 if (blob.fViewMatrix.hasPerspective() != viewMatrix.hasPerspective()) { in MustRegenerateBlob()
262 if (blob.fViewMatrix.hasPerspective() && !blob.fViewMatrix.cheapEqualTo(viewMatrix)) { in MustRegenerateBlob()
267 if (blob.fKey.fHasBlur && in MustRegenerateBlob()
268 (blob.fBlurRec.fSigma != blurRec.fSigma || in MustRegenerateBlob()
269 blob.fBlurRec.fStyle != blurRec.fStyle || in MustRegenerateBlob()
270 blob.fBlurRec.fQuality != blurRec.fQuality)) { in MustRegenerateBlob()
[all …]
/external/harfbuzz_ng/test/api/
Dtest-font.c51 hb_blob_t *blob; in test_face_create() local
53 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_face_create()
54 face = hb_face_create (blob, 0); in test_face_create()
55 hb_blob_destroy (blob); in test_face_create()
88 hb_blob_t *blob; in test_face_createfortables() local
98 blob = hb_face_reference_table (face, HB_TAG ('a','b','c','d')); in test_face_createfortables()
99 g_assert (blob != hb_blob_get_empty ()); in test_face_createfortables()
101 data = hb_blob_get_data (blob, &len); in test_face_createfortables()
104 hb_blob_destroy (blob); in test_face_createfortables()
146 hb_blob_t *blob; in _test_fontfuncs_nil() local
[all …]
Dtest-blob.c48 hb_blob_t *blob; in test_blob_empty() local
60 blob = hb_blob_get_empty (); in test_blob_empty()
61 g_assert (blob == hb_blob_get_empty ()); in test_blob_empty()
63 len = hb_blob_get_length (blob); in test_blob_empty()
66 data = hb_blob_get_data (blob, NULL); in test_blob_empty()
69 data = hb_blob_get_data (blob, &len); in test_blob_empty()
73 data_writable = hb_blob_get_data_writable (blob, NULL); in test_blob_empty()
76 data_writable = hb_blob_get_data_writable (blob, &len); in test_blob_empty()
94 hb_blob_t *blob; member
194 fixture->blob = hb_blob_create (data, len, mm, fixture, free_func); in fixture_init()
[all …]
/external/skia/tests/
DTextBlobTest.cpp107 SkAutoTUnref<const SkTextBlob> blob(builder.build()); in TestBounds() local
108 REPORTER_ASSERT(reporter, blob->bounds().isEmpty()); in TestBounds()
114 SkAutoTUnref<const SkTextBlob> blob(builder.build()); in TestBounds() local
115 REPORTER_ASSERT(reporter, blob->bounds() == r1); in TestBounds()
121 SkAutoTUnref<const SkTextBlob> blob(builder.build()); in TestBounds() local
122 REPORTER_ASSERT(reporter, blob->bounds() == r1); in TestBounds()
128 SkAutoTUnref<const SkTextBlob> blob(builder.build()); in TestBounds() local
129 REPORTER_ASSERT(reporter, blob->bounds() == r1); in TestBounds()
141 SkAutoTUnref<const SkTextBlob> blob(builder.build()); in TestBounds() local
142 REPORTER_ASSERT(reporter, blob->bounds() == SkRect::MakeXYWH(0, 5, 65, 65)); in TestBounds()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dconfig_none.c40 struct wpa_config_blob *blob; in wpa_config_write() local
51 for (blob = config->blobs; blob; blob = blob->next) { in wpa_config_write()
Dconfig_winreg.c52 struct wpa_config_blob *blob; in wpa_config_read_blobs() local
96 blob = os_zalloc(sizeof(*blob)); in wpa_config_read_blobs()
97 if (blob == NULL) { in wpa_config_read_blobs()
101 blob->name = os_strdup((char *) name); in wpa_config_read_blobs()
102 blob->data = os_malloc(datalen); in wpa_config_read_blobs()
103 if (blob->name == NULL || blob->data == NULL) { in wpa_config_read_blobs()
104 wpa_config_free_blob(blob); in wpa_config_read_blobs()
108 os_memcpy(blob->data, data, datalen); in wpa_config_read_blobs()
109 blob->len = datalen; in wpa_config_read_blobs()
111 wpa_config_set_blob(config, blob); in wpa_config_read_blobs()
[all …]
/external/openssh/
Dkrl.c76 u_char *blob; member
124 if ((r = memcmp(a->blob, b->blob, MIN(a->len, b->len))) != 0) in blob_cmp()
128 return memcmp(a->blob, b->blob, a->len); in blob_cmp()
174 free(rb->blob); in ssh_krl_free()
179 free(rb->blob); in ssh_krl_free()
363 plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen) in plain_key_blob() argument
376 r = sshkey_to_blob(kcopy, blob, blen); in plain_key_blob()
383 revoke_blob(struct revoked_blob_tree *rbt, u_char *blob, size_t len) in revoke_blob() argument
389 rb->blob = blob; in revoke_blob()
393 free(rb->blob); in revoke_blob()
[all …]
Dssh-pkcs11-client.c110 u_char *blob, *signature = NULL; in pkcs11_rsa_private_encrypt() local
119 if (key_to_blob(&key, &blob, &blen) == 0) in pkcs11_rsa_private_encrypt()
123 buffer_put_string(&msg, blob, blen); in pkcs11_rsa_private_encrypt()
126 free(blob); in pkcs11_rsa_private_encrypt()
191 u_char *blob; in pkcs11_add_provider() local
209 blob = buffer_get_string(&msg, &blen); in pkcs11_add_provider()
211 k = key_from_blob(blob, blen); in pkcs11_add_provider()
214 free(blob); in pkcs11_add_provider()
/external/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer.h81 const void* blob, size_t blob_size);
84 const void* blob, size_t blob_size);
97 const void* blob, size_t blob_size,
101 const void* blob, size_t blob_size,
108 const void* blob, size_t blob_size,
113 const void* blob, size_t blob_size,
/external/wpa_supplicant_8/src/eap_peer/
Deap_fast_pac.c265 const struct wpa_config_blob *blob; in eap_fast_init_pac_data() local
266 blob = eap_get_config_blob(sm, pac_file + 7); in eap_fast_init_pac_data()
267 if (blob == NULL) { in eap_fast_init_pac_data()
274 rc->pos = (char *) blob->data; in eap_fast_init_pac_data()
275 rc->end = (char *) blob->data + blob->len; in eap_fast_init_pac_data()
539 struct wpa_config_blob *blob; in eap_fast_write_pac() local
540 blob = os_zalloc(sizeof(*blob)); in eap_fast_write_pac()
541 if (blob == NULL) in eap_fast_write_pac()
543 blob->data = (u8 *) buf; in eap_fast_write_pac()
544 blob->len = len; in eap_fast_write_pac()
[all …]
/external/libdrm/radeon/
Dradeon_cs_gem.c341 bof_t *bcs, *blob, *array, *bo, *size, *handle, *device_id, *root; in cs_gem_dump_bof() local
346 root = device_id = bcs = blob = array = bo = size = handle = NULL; in cs_gem_dump_bof()
358 blob = bof_blob(csg->nrelocs * 16, csg->relocs); in cs_gem_dump_bof()
359 if (blob == NULL) in cs_gem_dump_bof()
361 if (bof_object_set(root, "reloc", blob)) in cs_gem_dump_bof()
363 bof_decref(blob); in cs_gem_dump_bof()
364 blob = NULL; in cs_gem_dump_bof()
366 blob = bof_blob(cs->cdw * 4, cs->packets); in cs_gem_dump_bof()
367 if (blob == NULL) in cs_gem_dump_bof()
369 if (bof_object_set(root, "pm4", blob)) in cs_gem_dump_bof()
[all …]
/external/fonttools/Lib/fontTools/misc/
Dpy23.py53 def transcode(blob): argument
54 if not isinstance(blob, str):
55 blob = blob.decode('latin-1')
56 return blob

1234567