/external/libaom/libaom/third_party/fastfeat/ |
D | fast_9.c | 17 int cb = *p + b; in aom_fast9_corner_score() local 21 if( p[pixel[0]] > cb) in aom_fast9_corner_score() 22 if( p[pixel[1]] > cb) in aom_fast9_corner_score() 23 if( p[pixel[2]] > cb) in aom_fast9_corner_score() 24 if( p[pixel[3]] > cb) in aom_fast9_corner_score() 25 if( p[pixel[4]] > cb) in aom_fast9_corner_score() 26 if( p[pixel[5]] > cb) in aom_fast9_corner_score() 27 if( p[pixel[6]] > cb) in aom_fast9_corner_score() 28 if( p[pixel[7]] > cb) in aom_fast9_corner_score() 29 if( p[pixel[8]] > cb) in aom_fast9_corner_score() [all …]
|
/external/iptables/libxtables/ |
D | xtoptions.c | 29 #define XTOPT_MKPTR(cb) \ argument 30 ((void *)((char *)(cb)->data + (cb)->entry->ptroff)) 176 static void xtopt_parse_int(struct xt_option_call *cb) in xtopt_parse_int() argument 178 const struct xt_option_entry *entry = cb->entry; in xtopt_parse_int() 182 if (cb->entry->min != 0) in xtopt_parse_int() 183 lmin = cb->entry->min; in xtopt_parse_int() 184 if (cb->entry->max != 0) in xtopt_parse_int() 185 lmax = cb->entry->max; in xtopt_parse_int() 187 if (!xtables_strtoul(cb->arg, NULL, &value, lmin, lmax)) in xtopt_parse_int() 191 cb->ext_name, entry->name, lmin, lmax); in xtopt_parse_int() [all …]
|
/external/strace/ |
D | aio.c | 80 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/libffi/src/riscv/ |
D | ffi.c | 100 static float_struct_info struct_passed_as_elements(call_builder *cb, ffi_type *top) { in struct_passed_as_elements() argument 116 if (cb->used_float + num_floats > NARGREG || cb->used_integer + (2 - num_floats) > NARGREG) in struct_passed_as_elements() 132 static void marshal_atom(call_builder *cb, int type, void *data) { in marshal_atom() argument 153 asm("" : "=f"(cb->aregs->fa[cb->used_float++]) : "0"(*(float *)data)); in marshal_atom() 158 asm("" : "=f"(cb->aregs->fa[cb->used_float++]) : "0"(*(double *)data)); in marshal_atom() 164 if (cb->used_integer == NARGREG) { in marshal_atom() 165 *cb->used_stack++ = value; in marshal_atom() 167 cb->aregs->a[cb->used_integer++] = value; in marshal_atom() 171 static void unmarshal_atom(call_builder *cb, int type, void *data) { in unmarshal_atom() argument 176 asm("" : "=f"(*(float *)data) : "0"(cb->aregs->fa[cb->used_float++])); in unmarshal_atom() [all …]
|
/external/sl4a/ScriptingLayerForAndroid/src/org/apache/harmony/niochar/charset/additional/ |
D | IBM437.java | 59 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/protobuf/js/ |
D | gulpfile.js | 5 function exec(command, cb) { argument 6 execFile('sh', ['-c', command], cb); 55 gulp.task('genproto_well_known_types_closure', function (cb) { argument 60 cb(err); 64 gulp.task('genproto_group1_closure', function (cb) { argument 69 cb(err); 73 gulp.task('genproto_group2_closure', function (cb) { argument 78 cb(err); 82 gulp.task('genproto_well_known_types_commonjs', function (cb) { argument 87 cb(err); [all …]
|
/external/libnl/lib/ |
D | handlers.c | 205 struct nl_cb *cb; in nl_cb_alloc() local 210 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc() 211 if (!cb) in nl_cb_alloc() 214 cb->cb_refcnt = 1; in nl_cb_alloc() 215 cb->cb_active = NL_CB_TYPE_MAX + 1; in nl_cb_alloc() 218 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc() 220 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc() 222 return cb; in nl_cb_alloc() 233 struct nl_cb *cb; in nl_cb_clone() local 235 cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_cb_clone() [all …]
|
/external/rust/crates/protobuf-codegen/src/ |
D | code_writer.rs | 82 pub fn indented<F>(&mut self, cb: F) in indented() 86 cb(&mut CodeWriter { in indented() 93 pub fn commented<F>(&mut self, cb: F) in commented() 97 cb(&mut CodeWriter { in commented() 138 pub fn block<F>(&mut self, first_line: &str, last_line: &str, cb: F) in block() 143 self.indented(cb); in block() 147 pub fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block() 151 self.block(&format!("{} {{", prefix), "}", cb); in expr_block() 154 pub fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block() 158 self.block(&format!("{} {{", prefix.as_ref()), "};", cb); in stmt_block() [all …]
|
/external/tensorflow/tensorflow/core/util/ |
D | reffed_status_callback_test.cc | 38 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local 40 cb->Unref(); in TEST() 52 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local 53 cb->UpdateStatus(errors::Internal("1")); in TEST() 54 cb->UpdateStatus(errors::InvalidArgument("2")); in TEST() 56 cb->Unref(); in TEST() 72 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local 73 cb->Ref(); in TEST() 74 cb->UpdateStatus(errors::Internal("1")); in TEST() 75 cb->Ref(); in TEST() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pem/ |
D | pem_pk8.c | 69 char *kstr, int klen, pem_password_cb *cb, void *u); 72 char *kstr, int klen, pem_password_cb *cb, void *u); 83 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 85 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid() 90 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 92 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 97 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 99 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 104 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 106 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
/external/boringssl/src/crypto/pem/ |
D | pem_pk8.c | 69 char *kstr, int klen, pem_password_cb *cb, void *u); 72 char *kstr, int klen, pem_password_cb *cb, void *u); 83 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 85 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid() 90 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 92 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 97 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 99 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 104 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 106 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
/external/cn-cbor/src/ |
D | cn-cbor.c | 23 void cn_cbor_free(cn_cbor* cb CBOR_CONTEXT) { in cn_cbor_free() 24 cn_cbor* p = cb; in cn_cbor_free() 105 cn_cbor* cb = NULL; in decode_item() local 137 cb = CN_CALLOC_CONTEXT(); in decode_item() 138 if (!cb) in decode_item() 141 cb->type = mt_trans[mt]; in decode_item() 143 cb->parent = parent; in decode_item() 145 parent->last_child->next = cb; in decode_item() 147 parent->first_child = cb; in decode_item() 149 parent->last_child = cb; in decode_item() [all …]
|
D | cn-encoder.c | 74 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/linux-kselftest/tools/testing/selftests/bpf/verifier/ |
D | ctx_skb.c | 396 offsetof(struct __sk_buff, cb[0])), 398 offsetof(struct __sk_buff, cb[0]) + 1), 400 offsetof(struct __sk_buff, cb[0]) + 2), 402 offsetof(struct __sk_buff, cb[0]) + 3), 404 offsetof(struct __sk_buff, cb[1])), 406 offsetof(struct __sk_buff, cb[1]) + 1), 408 offsetof(struct __sk_buff, cb[1]) + 2), 410 offsetof(struct __sk_buff, cb[1]) + 3), 412 offsetof(struct __sk_buff, cb[2])), 414 offsetof(struct __sk_buff, cb[2]) + 1), [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_deadlock_detector2.cc | 93 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 …]
|
D | sanitizer_deadlock_detector1.cc | 49 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/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_deadlock_detector2.cpp | 92 void MutexInit(DDCallback *cb, DDMutex *m); 93 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock); 94 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 96 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock); 97 void MutexDestroy(DDCallback *cb, DDMutex *m); 99 DDReport *GetReport(DDCallback *cb); 103 u32 allocateId(DDCallback *cb); 148 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 149 VPrintf(2, "#%llu: DD::MutexInit(%p)\n", cb->lt->ctx, m); in MutexInit() 170 u32 DD::allocateId(DDCallback *cb) { in allocateId() argument [all …]
|
D | sanitizer_deadlock_detector1.cpp | 48 void MutexInit(DDCallback *cb, DDMutex *m) override; 49 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) override; 50 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 52 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) override; 53 void MutexDestroy(DDCallback *cb, DDMutex *m) override; 55 DDReport *GetReport(DDCallback *cb) override; 58 void ReportDeadlock(DDCallback *cb, DDMutex *m); 92 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 94 m->stk = cb->Unwind(); in MutexInit() 103 void DD::MutexBeforeLock(DDCallback *cb, in MutexBeforeLock() argument [all …]
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | callback_helpers_unittest.cc | 51 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/ |
D | NioZipEncoding.java | 81 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/webrtc/rtc_base/ |
D | callback_unittest.cc | 56 Callback0<void> cb; in TEST() local 57 EXPECT_TRUE(cb.empty()); in TEST() 58 cb(); // Executing an empty callback should not crash. in TEST() 59 cb = Callback0<void>(&f); in TEST() 60 EXPECT_FALSE(cb.empty()); in TEST() 61 cb(); in TEST() 65 Callback0<int> cb; in TEST() local 66 EXPECT_TRUE(cb.empty()); in TEST() 67 cb = Callback0<int>(&g); in TEST() 68 EXPECT_FALSE(cb.empty()); in TEST() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_pipe.h | 419 struct pipe_constant_buffer cb[PIPE_MAX_CONSTANT_BUFFERS]; member 437 struct r600_command_buffer *cb; member 620 struct r600_command_buffer *cb) in r600_emit_command_buffer() argument 622 assert(cs->current.cdw + cb->num_dw <= cs->current.max_dw); in r600_emit_command_buffer() 623 memcpy(cs->current.buf + cs->current.cdw, cb->buf, 4 * cb->num_dw); in r600_emit_command_buffer() 624 cs->current.cdw += cb->num_dw; in r600_emit_command_buffer() 663 struct r600_command_buffer *cb) in r600_set_cso_state_with_cb() argument 665 state->cb = cb; in r600_set_cso_state_with_cb() 666 state->atom.num_dw = cb ? cb->num_dw : 0; in r600_set_cso_state_with_cb() 684 struct r600_command_buffer *cb, [all …]
|
/external/fastrpc/src/ |
D | std_SwapBytes.c | 43 static void xMoveBytes(byte *pbDest, const byte *pbSrc, int cb) in xMoveBytes() argument 46 (void) std_memmove(pbDest, pbSrc, cb); in xMoveBytes() 71 int cb, nSize; in STD_COPY_SWAP() local 77 for (cb = cbCopied; cb > 0; cb -= nSize) { in STD_COPY_SWAP() 91 if (cb < nSize) { in STD_COPY_SWAP() 103 if (cb < nSize) { in STD_COPY_SWAP() 118 if (cb < nSize) { in STD_COPY_SWAP() 145 if (nSize > cb || nSize <= 0) { in STD_COPY_SWAP() 146 nSize = cb; in STD_COPY_SWAP() 150 nSize = cb; in STD_COPY_SWAP() [all …]
|
/external/selinux/libselinux/src/ |
D | callbacks.c | 80 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/cn-cbor/test/ |
D | cbor_test.c | 114 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 …]
|