Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 1443) sorted by relevance

12345678910>>...58

/external/libaom/libaom/third_party/fastfeat/
Dfast_9.c17 int cb = *p + b; in fast9_corner_score() local
21 if( p[pixel[0]] > cb) in fast9_corner_score()
22 if( p[pixel[1]] > cb) in fast9_corner_score()
23 if( p[pixel[2]] > cb) in fast9_corner_score()
24 if( p[pixel[3]] > cb) in fast9_corner_score()
25 if( p[pixel[4]] > cb) in fast9_corner_score()
26 if( p[pixel[5]] > cb) in fast9_corner_score()
27 if( p[pixel[6]] > cb) in fast9_corner_score()
28 if( p[pixel[7]] > cb) in fast9_corner_score()
29 if( p[pixel[8]] > cb) in fast9_corner_score()
[all …]
/external/iptables/libxtables/
Dxtoptions.c29 #define XTOPT_MKPTR(cb) \ argument
30 ((void *)((char *)(cb)->data + (cb)->entry->ptroff))
172 static void xtopt_parse_int(struct xt_option_call *cb) in xtopt_parse_int() argument
174 const struct xt_option_entry *entry = cb->entry; in xtopt_parse_int()
178 if (cb->entry->min != 0) in xtopt_parse_int()
179 lmin = cb->entry->min; in xtopt_parse_int()
180 if (cb->entry->max != 0) in xtopt_parse_int()
181 lmax = cb->entry->max; in xtopt_parse_int()
183 if (!xtables_strtoul(cb->arg, NULL, &value, lmin, lmax)) in xtopt_parse_int()
187 cb->ext_name, entry->name, lmin, lmax); in xtopt_parse_int()
[all …]
/external/syzkaller/pkg/ast/
Dwalk.go8 func (desc *Description) Walk(cb func(Node)) {
10 cb(n)
14 func Recursive(cb func(Node)) func(Node) {
17 cb(n)
23 func (n *NewLine) Walk(cb func(Node)) {}
24 func (n *Comment) Walk(cb func(Node)) {}
25 func (n *Ident) Walk(cb func(Node)) {}
26 func (n *String) Walk(cb func(Node)) {}
27 func (n *Int) Walk(cb func(Node)) {}
29 func (n *Include) Walk(cb func(Node)) {
[all …]
/external/strace/
Daio.c80 print_common_flags(struct tcb *tcp, const struct iocb *cb) in print_common_flags() argument
84 if (cb->aio_flags & IOCB_FLAG_RESFD) in print_common_flags()
85 PRINT_FIELD_FD(", ", *cb, aio_resfd, tcp); in print_common_flags()
87 if (cb->aio_flags & ~IOCB_FLAG_RESFD) in print_common_flags()
88 PRINT_FIELD_X(", ", *cb, aio_flags); in print_common_flags()
93 iocb_is_valid(const struct iocb *cb) in iocb_is_valid() argument
95 return cb->aio_buf == (unsigned long) cb->aio_buf && in iocb_is_valid()
96 cb->aio_nbytes == (size_t) cb->aio_nbytes && in iocb_is_valid()
97 (ssize_t) cb->aio_nbytes >= 0; in iocb_is_valid()
101 print_iocb_header(struct tcb *tcp, const struct iocb *cb) in print_iocb_header() argument
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/org/apache/harmony/niochar/charset/additional/
DIBM437.java59 protected CoderResult decodeLoop(ByteBuffer bb, CharBuffer cb){ in decodeLoop() argument
60 int cbRemaining = cb.remaining(); in decodeLoop()
77 if(bb.hasArray() && cb.hasArray()) { in decodeLoop()
81 char[] cArr = cb.array(); in decodeLoop()
83 int cStart = cb.position(); in decodeLoop()
95 cb.position(cStart); in decodeLoop()
103 cb.put(arr[index]); in decodeLoop()
105 cb.put((char)(in & 0xFF)); in decodeLoop()
156 protected CoderResult encodeLoop(CharBuffer cb, ByteBuffer bb){ in encodeLoop() argument
186 if(bb.hasArray() && cb.hasArray()) { in encodeLoop()
[all …]
/external/libnl/lib/
Dhandlers.c204 struct nl_cb *cb; in nl_cb_alloc() local
209 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc()
210 if (!cb) in nl_cb_alloc()
213 cb->cb_refcnt = 1; in nl_cb_alloc()
214 cb->cb_active = NL_CB_TYPE_MAX + 1; in nl_cb_alloc()
217 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc()
219 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc()
221 return cb; in nl_cb_alloc()
232 struct nl_cb *cb; in nl_cb_clone() local
234 cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_cb_clone()
[all …]
Dnl.c301 struct nl_cb *cb; in nl_sendmsg() local
309 cb = sk->s_cb; in nl_sendmsg()
310 if (cb->cb_set[NL_CB_MSG_OUT]) in nl_sendmsg()
311 if ((ret = nl_cb_call(cb, NL_CB_MSG_OUT, msg)) != NL_OK) in nl_sendmsg()
418 struct nl_cb *cb = sk->s_cb; in nl_send() local
420 if (cb->cb_send_ow) in nl_send()
421 return cb->cb_send_ow(sk, msg); in nl_send()
758 #define NL_CB_CALL(cb, type, msg) \ argument
760 err = nl_cb_call(cb, type, msg); \
775 static int recvmsgs(struct nl_sock *sk, struct nl_cb *cb) in recvmsgs() argument
[all …]
/external/protobuf/js/
Dgulpfile.js5 function exec(command, cb) { argument
6 execFile('sh', ['-c', command], cb);
11 gulp.task('genproto_closure', function (cb) { argument
16 cb(err);
20 gulp.task('genproto_commonjs', function (cb) { argument
25 cb(err);
29 gulp.task('dist', function (cb) { argument
36 cb(err);
40 gulp.task('commonjs_asserts', function (cb) { argument
45 cb(err);
[all …]
/external/cn-cbor/src/
Dcn-cbor.c23 void cn_cbor_free(cn_cbor* cb CBOR_CONTEXT) { in cn_cbor_free()
24 cn_cbor* p = cb; in cn_cbor_free()
90 cn_cbor* cb = NULL; in decode_item() local
122 cb = CN_CALLOC_CONTEXT(); in decode_item()
123 if (!cb) in decode_item()
126 cb->type = mt_trans[mt]; in decode_item()
128 cb->parent = parent; in decode_item()
130 parent->last_child->next = cb; in decode_item()
132 parent->first_child = cb; in decode_item()
134 parent->last_child = cb; in decode_item()
[all …]
Dcn-encoder.c74 static inline bool is_indefinite(const cn_cbor *cb) in is_indefinite() argument
76 return (cb->flags & CN_CBOR_FL_INDEF) != 0; in is_indefinite()
180 typedef void (*cn_visit_func)(const cn_cbor *cb, int depth, void *context);
181 static void _visit(const cn_cbor *cb, in _visit() argument
186 const cn_cbor *p = cb; in _visit()
223 void _encoder_visitor(const cn_cbor *cb, int depth, void *context) in _encoder_visitor() argument
228 switch (cb->type) { in _encoder_visitor()
230 if (is_indefinite(cb)) { in _encoder_visitor()
233 CHECK(_write_positive(ws, CN_CBOR_ARRAY, cb->length)); in _encoder_visitor()
237 if (is_indefinite(cb)) { in _encoder_visitor()
[all …]
/external/tensorflow/tensorflow/core/util/
Dreffed_status_callback_test.cc36 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local
38 cb->Unref(); in TEST()
50 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local
51 cb->UpdateStatus(errors::Internal("1")); in TEST()
52 cb->UpdateStatus(errors::Internal("2")); // Will be ignored. in TEST()
54 cb->Unref(); in TEST()
66 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local
67 cb->Ref(); in TEST()
68 cb->UpdateStatus(errors::Internal("1")); in TEST()
69 cb->Ref(); in TEST()
[all …]
/external/pcre/dist2/src/
Dpcre2_compile.c46 #define NLBLOCK cb /* Block containing newline information */
849 static void show_parsed(compile_block *cb) in show_parsed() argument
851 uint32_t *pptr = cb->parsed_pattern; in show_parsed()
861 fprintf(stderr, "+++ %02d %.8x ", (int)(pptr - cb->parsed_pattern), *pptr); in show_parsed()
890 offset = cb->small_ref_offset[meta_arg]; in show_parsed()
1411 int *errorcodeptr, uint32_t options, BOOL isclass, compile_block *cb) in PRIV()
1442 if (cb != NULL && (escape == ESC_P || escape == ESC_p || escape == ESC_X)) in PRIV()
1443 cb->external_flags |= PCRE2_HASBKPORX; /* Note \P, \p, or \X */ in PRIV()
1501 if (cb == NULL && c != CHAR_c && c != CHAR_o && c != CHAR_x && in PRIV()
1541 (cb->cx->extra_options & PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES) == 0) in PRIV()
[all …]
/external/boringssl/src/crypto/pem/
Dpem_pk8.c70 char *kstr, int klen, pem_password_cb *cb, void *u);
73 char *kstr, int klen, pem_password_cb *cb, void *u);
84 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument
86 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
91 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument
93 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey()
98 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument
100 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio()
105 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument
107 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
/external/cn-cbor/test/
Dcbor_test.c114 cn_cbor *cb; in CTEST() local
123 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
126 ASSERT_NOT_NULL(cb); in CTEST()
128 enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); in CTEST()
131 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
162 cn_cbor *cb; in CTEST() local
172 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
175 ASSERT_NOT_NULL(cb); in CTEST()
177 enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); in CTEST()
181 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
[all …]
Dtest.c41 static void dump(const cn_cbor* cb, char* out, char** end, int indent) { in dump() argument
42 if (!cb) in dump()
53 switch (cb->type) { in dump()
56 case CN_CBOR_TAG: PRF("%ld(\n", cb->v.sint); goto sequence; in dump()
60 for (cp = cb->first_child; cp; cp = cp->next) { in dump()
67 for (i=0; i<cb->length; i++) in dump()
68 PRF("%02x", cb->v.str[i] & 0xff); in dump()
72 CPY(cb->v.str, cb->length); /* should escape stuff */ in dump()
79 case CN_CBOR_INT: PRF("%ld", cb->v.sint); break; in dump()
80 case CN_CBOR_UINT: PRF("%lu", cb->v.uint); break; in dump()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_deadlock_detector2.cc93 void MutexInit(DDCallback *cb, DDMutex *m);
94 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock);
95 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock,
97 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock);
98 void MutexDestroy(DDCallback *cb, DDMutex *m);
100 DDReport *GetReport(DDCallback *cb);
104 u32 allocateId(DDCallback *cb);
153 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument
154 VPrintf(2, "#%llu: DD::MutexInit(%p)\n", cb->lt->ctx, m); in MutexInit()
175 u32 DD::allocateId(DDCallback *cb) { in allocateId() argument
[all …]
Dsanitizer_deadlock_detector1.cc49 void MutexInit(DDCallback *cb, DDMutex *m) override;
50 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) override;
51 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock,
53 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) override;
54 void MutexDestroy(DDCallback *cb, DDMutex *m) override;
56 DDReport *GetReport(DDCallback *cb) override;
59 void ReportDeadlock(DDCallback *cb, DDMutex *m);
93 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument
95 m->stk = cb->Unwind(); in MutexInit()
104 void DD::MutexBeforeLock(DDCallback *cb, in MutexBeforeLock() argument
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_pipe.h414 struct pipe_constant_buffer cb[PIPE_MAX_CONSTANT_BUFFERS]; member
432 struct r600_command_buffer *cb; member
607 struct r600_command_buffer *cb) in r600_emit_command_buffer() argument
609 assert(cs->current.cdw + cb->num_dw <= cs->current.max_dw); in r600_emit_command_buffer()
610 memcpy(cs->current.buf + cs->current.cdw, cb->buf, 4 * cb->num_dw); in r600_emit_command_buffer()
611 cs->current.cdw += cb->num_dw; in r600_emit_command_buffer()
650 struct r600_command_buffer *cb) in r600_set_cso_state_with_cb() argument
652 state->cb = cb; in r600_set_cso_state_with_cb()
653 state->atom.num_dw = cb ? cb->num_dw : 0; in r600_set_cso_state_with_cb()
671 struct r600_command_buffer *cb,
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dcallback_helpers_unittest.cc51 auto cb = in TEST() local
54 std::move(cb).Run(1, 2); in TEST()
63 auto cb = in TEST() local
74 auto cb = WrapCallbackWithDefaultInvokeIfNotRun( in TEST() local
76 std::move(cb).Run(base::BindOnce(&SetIntegers, &a, &b, 1, 2)); in TEST()
85 auto cb = WrapCallbackWithDefaultInvokeIfNotRun( in TEST() local
95 auto cb = in TEST() local
97 std::move(cb).Run(); in TEST()
104 auto cb = WrapCallbackWithDefaultInvokeIfNotRun( in TEST() local
112 auto cb = in TEST() local
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DNioZipEncoding.java81 final CharBuffer cb = CharBuffer.wrap(name); in encode() local
83 ByteBuffer out = ByteBuffer.allocate(estimateInitialBufferSize(enc, cb.remaining())); in encode()
85 while (cb.remaining() > 0) { in encode()
86 final CoderResult res = enc.encode(cb, out, false); in encode()
99 for (int i = cb.position() ; i < cb.limit(); i++) { in encode()
100 charCount += !enc.canEncode(cb.get(i)) ? 6 : 1; in encode()
109 out = encodeFully(enc, encodeSurrogate(tmp, cb.get()), out); in encode()
113 int increment = estimateIncrementalEncodingSize(enc, cb.remaining()); in encode()
118 enc.encode(cb, out, true); in encode()
136 private static ByteBuffer encodeFully(CharsetEncoder enc, CharBuffer cb, ByteBuffer out) { in encodeFully() argument
[all …]
/external/syzkaller/vendor/google.golang.org/grpc/encoding/proto/
Dproto.go53 func marshal(v interface{}, cb *cachedProtoBuffer) ([]byte, error) {
55 newSlice := make([]byte, 0, cb.lastMarshaledSize)
57 cb.SetBuf(newSlice)
58 cb.Reset()
59 if err := cb.Marshal(protoMsg); err != nil {
62 out := cb.Bytes()
63 cb.lastMarshaledSize = capToMaxInt32(len(out))
73 cb := protoBufferPool.Get().(*cachedProtoBuffer)
74 out, err := marshal(v, cb)
77 cb.SetBuf(nil)
[all …]
/external/webrtc/webrtc/base/
Dcallback_unittest.cc49 Callback0<void> cb; in TEST() local
50 EXPECT_TRUE(cb.empty()); in TEST()
51 cb(); // Executing an empty callback should not crash. in TEST()
52 cb = Callback0<void>(&f); in TEST()
53 EXPECT_FALSE(cb.empty()); in TEST()
54 cb(); in TEST()
58 Callback0<int> cb; in TEST() local
59 EXPECT_TRUE(cb.empty()); in TEST()
60 cb = Callback0<int>(&g); in TEST()
61 EXPECT_FALSE(cb.empty()); in TEST()
[all …]
/external/selinux/libselinux/src/
Dcallbacks.c80 selinux_set_callback(int type, union selinux_callback cb) in selinux_set_callback() argument
84 selinux_log = cb.func_log; in selinux_set_callback()
87 selinux_audit = cb.func_audit; in selinux_set_callback()
90 selinux_validate = cb.func_validate; in selinux_set_callback()
93 selinux_netlink_setenforce = cb.func_setenforce; in selinux_set_callback()
96 selinux_netlink_policyload = cb.func_policyload; in selinux_set_callback()
105 union selinux_callback cb; in selinux_get_callback() local
109 cb.func_log = selinux_log; in selinux_get_callback()
112 cb.func_audit = selinux_audit; in selinux_get_callback()
115 cb.func_validate = selinux_validate; in selinux_get_callback()
[all …]
/external/iptables/extensions/
Dlibxt_MARK.c83 static void MARK_parse_v0(struct xt_option_call *cb) in MARK_parse_v0() argument
85 struct xt_mark_target_info *markinfo = cb->data; in MARK_parse_v0()
87 xtables_option_parse(cb); in MARK_parse_v0()
88 switch (cb->entry->id) { in MARK_parse_v0()
90 markinfo->mark = cb->val.mark; in MARK_parse_v0()
95 cb->entry->name); in MARK_parse_v0()
99 static void MARK_check(struct xt_fcheck_call *cb) in MARK_check() argument
101 if (cb->xflags == 0) in MARK_check()
107 static void MARK_parse_v1(struct xt_option_call *cb) in MARK_parse_v1() argument
109 struct xt_mark_target_info_v1 *markinfo = cb->data; in MARK_parse_v1()
[all …]
Dlibxt_conntrack.c337 static void conntrack_parse(struct xt_option_call *cb) in conntrack_parse() argument
339 struct xt_conntrack_info *sinfo = cb->data; in conntrack_parse()
341 xtables_option_parse(cb); in conntrack_parse()
342 switch (cb->entry->id) { in conntrack_parse()
344 parse_states(cb->arg, sinfo); in conntrack_parse()
345 if (cb->invert) in conntrack_parse()
349 sinfo->tuple[IP_CT_DIR_ORIGINAL].dst.protonum = cb->val.protocol; in conntrack_parse()
350 if (cb->invert) in conntrack_parse()
360 if (cb->invert) in conntrack_parse()
362 sinfo->tuple[IP_CT_DIR_ORIGINAL].src.ip = cb->val.haddr.ip; in conntrack_parse()
[all …]

12345678910>>...58