/external/libnl/lib/ |
socket.c | 90 static struct nl_sock *__alloc_socket(struct nl_cb *cb) 99 sk->s_cb = cb; 119 struct nl_cb *cb; local 121 cb = nl_cb_alloc(default_cb); 122 if (!cb) 125 return __alloc_socket(cb); 130 * @arg cb Callback handler 137 struct nl_sock *nl_socket_alloc_cb(struct nl_cb *cb) 139 if (cb == NULL) 142 return __alloc_socket(nl_cb_get(cb)); [all...] |
/external/openssl/crypto/pem/ |
pem_pkey.c | 75 EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u) 84 if (!PEM_bytes_read_bio(&data, &len, &nm, PEM_STRING_EVP_PKEY, bp, cb, u)) 105 if (cb) klen=cb(psbuf,PEM_BUFSIZE,0,u); 142 pem_password_cb *cb, void *u) 148 cb, u); 152 pem_str,bp,x,enc,kstr,klen,cb,u); 209 EVP_PKEY *PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) 220 ret=PEM_read_bio_PrivateKey(b,x,cb,u); 227 pem_password_cb *cb, void *u [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
h264bsd_image.c | 87 u32 *lum, *cb, *cr; local 99 /*lint -save -e826 lum, cb and cr used to copy 4 bytes at the time, disable 102 cb = (u32*)image->cb; 105 ASSERT(!((u32)cb&0x3)); 129 *cb++ = tmp1; 130 *cb++ = tmp2; 131 cb += width-2; 179 u8 *lum, *cb, *cr; local 204 cb = (image->data + picSize * 256 + row * picWidth * 64 + col * 8) [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
ButtonManager.java | 330 public void initializeButton(int buttonId, ButtonCallback cb) { 334 initializeFlashButton(button, cb, R.array.camera_flashmode_icons); 337 initializeTorchButton(button, cb, R.array.video_flashmode_icons); 340 initializeHdrPlusFlashButton(button, cb, R.array.camera_flashmode_icons); 343 initializeCameraButton(button, cb, R.array.camera_id_icons); 346 initializeHdrPlusButton(button, cb, R.array.pref_camera_hdr_plus_icons); 349 initializeHdrButton(button, cb, R.array.pref_camera_hdr_icons); 352 initializeGridLinesButton(button, cb, R.array.grid_lines_icons); 355 initializeCountdownButton(button, cb, R.array.countdown_duration_icons); 368 public void initializePushButton(int buttonId, View.OnClickListener cb, [all...] |
/system/core/libpixelflinger/ |
raster.cpp | 59 surface_t* cb = &(c->state.buffers.color); local 62 if (uint32_t(xs) > cb->width) 64 if (uint32_t(ys) > cb->height) 66 if (uint32_t(xs + width) > cb->width) 68 if (uint32_t(ys + height) > cb->height) 105 const GGLFormat* fp = &(c->formats[cb->format]); 106 uint8_t* src = reinterpret_cast<uint8_t*>(cb->data) 107 + (xs + (cb->stride * ys)) * fp->size; 108 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) 109 + (xd + (cb->stride * yd)) * fp->size [all...] |
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
gnubby-u2f.js | 39 * @param {function(...)} cb Result callback 41 usbGnubby.prototype.enroll = function(challenge, appIdHash, cb) { 58 this.apduReply_(u8.buffer, cb); 65 * @param {function(...)} cb Result callback 69 usbGnubby.prototype.sign = function(challengeHash, appIdHash, keyHandle, cb, 76 cb(rc); 114 self.apduReply_(u8.buffer, cb, opt_nowink); 119 * @param {function(...)} cb Callback 121 usbGnubby.prototype.version = function(cb) { 122 if (!cb) cb = usbGnubby.defaultCallback [all...] |
gnubbies.js | 81 * @param {function(number, Array.<llGnubbyDeviceId>)} cb Called back with the 84 Gnubbies.prototype.enumerate = function(cb) { 132 var cb = self.pendingEnumerate.shift(); 133 cb(-llGnubby.OK, existingDeviceIds); 138 this.pendingEnumerate.push(cb); 142 cb(-llGnubby.OK, []); 200 * @param {function(number, llGnubby=)} cb Called back with the result of 203 Gnubbies.prototype.addClient = function(which, who, cb) { 208 function opened(gnubby, who, cb) { 212 if (cb) { cb(-llGnubby.NODEVICE); [all...] |
/external/chromium_org/third_party/openssl/openssl/apps/ |
gendh.c | 85 static int MS_CALLBACK dh_cb(int p, int n, BN_GENCB *cb); 91 BN_GENCB cb; local 104 BN_GENCB_set(&cb, dh_cb, bio_err); 203 if(((dh = DH_new()) == NULL) || !DH_generate_parameters_ex(dh, num, g, &cb)) 220 static int MS_CALLBACK dh_cb(int p, int n, BN_GENCB *cb) 228 BIO_write(cb->arg,&c,1); 229 (void)BIO_flush(cb->arg);
|
/external/iptables/extensions/ |
libip6t_frag.c | 51 static void frag_parse(struct xt_option_call *cb) 53 struct ip6t_frag *fraginfo = cb->data; 55 xtables_option_parse(cb); 56 switch (cb->entry->id) { 58 if (cb->nvals == 1) 60 if (cb->invert) 73 if (cb->invert)
|
libxt_limit.c | 95 static void limit_parse(struct xt_option_call *cb) 97 struct xt_rateinfo *r = cb->data; 99 xtables_option_parse(cb); 100 switch (cb->entry->id) { 102 if (!parse_rate(cb->arg, &r->avg)) 104 "bad rate \"%s\"'", cb->arg); 107 if (cb->invert)
|
libxt_hashlimit.c | 326 static void hashlimit_parse(struct xt_option_call *cb) 328 struct xt_hashlimit_info *info = cb->data; 330 xtables_option_parse(cb); 331 switch (cb->entry->id) { 333 if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata)) 335 "--hashlimit-upto", cb->arg); 338 if (parse_mode(&info->cfg.mode, cb->arg) < 0) 340 "--hashlimit-mode", cb->arg); 345 static void hashlimit_mt_parse(struct xt_option_call *cb) [all...] |
libip6t_DNAT.c | 147 static void DNAT_parse(struct xt_option_call *cb) 149 const struct ip6t_entry *entry = cb->xt_entry; 150 struct nf_nat_range *range = cb->data; 162 xtables_option_parse(cb); 163 switch (cb->entry->id) { 165 if (cb->xflags & F_X_TO_DEST) { 172 parse_to(cb->arg, portok, range); 180 static void DNAT_fcheck(struct xt_fcheck_call *cb) 183 struct nf_nat_range *mr = cb->data; 185 if ((cb->xflags & f) == f [all...] |
/external/openssl/apps/ |
gendh.c | 85 static int MS_CALLBACK dh_cb(int p, int n, BN_GENCB *cb); 91 BN_GENCB cb; local 104 BN_GENCB_set(&cb, dh_cb, bio_err); 203 if(((dh = DH_new()) == NULL) || !DH_generate_parameters_ex(dh, num, g, &cb)) 220 static int MS_CALLBACK dh_cb(int p, int n, BN_GENCB *cb) 228 BIO_write(cb->arg,&c,1); 229 (void)BIO_flush(cb->arg);
|
/external/wpa_supplicant_8/src/ap/ |
wpa_auth_glue.c | 312 void *ctx, int (*cb)(struct wpa_state_machine *sm, void *ctx), 319 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) 327 int (*cb)(struct wpa_authenticator *sm, void *ctx); member in struct:wpa_auth_iface_iter_data 337 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx)) 345 void *ctx, int (*cb)(struct wpa_authenticator *sm, void *ctx), 353 data.cb = cb; 533 struct wpa_auth_callbacks cb; local 542 os_memset(&cb, 0, sizeof(cb)); [all...] |
/external/chromium_org/ppapi/proxy/ |
file_system_resource_unittest.cc | 103 MockCompletionCallback cb; local 107 PP_MakeCompletionCallback(&MockCompletionCallback::Callback, &cb)); 120 ASSERT_TRUE(cb.called()); 121 ASSERT_EQ(PP_OK, cb.result()); 129 MockCompletionCallback cb; local 134 PP_MakeCompletionCallback(&MockCompletionCallback::Callback, &cb)); 166 MockCompletionCallback cb; local 170 PP_MakeCompletionCallback(&MockCompletionCallback::Callback, &cb)); 181 ASSERT_TRUE(cb.called()); 182 ASSERT_EQ(PP_ERROR_FAILED, cb.result()) 190 MockCompletionCallback cb; local [all...] |
/external/wpa_supplicant_8/src/wps/ |
http_client.c | 28 void (*cb)(void *ctx, struct http_client *c, member in struct:http_client 40 c->cb(c->cb_ctx, c, HTTP_CLIENT_TIMEOUT); 63 c->cb(c->cb_ctx, c, HTTP_CLIENT_OK); 69 c->cb(c->cb_ctx, c, HTTP_CLIENT_INVALID_REPLY); 72 c->cb(c->cb_ctx, c, HTTP_CLIENT_INVALID_REPLY); 75 c->cb(c->cb_ctx, c, HTTP_CLIENT_TIMEOUT); 78 c->cb(c->cb_ctx, c, HTTP_CLIENT_FAILED); 101 c->cb(c->cb_ctx, c, HTTP_CLIENT_FAILED); 124 c->cb(c->cb_ctx, c, HTTP_CLIENT_FAILED); 132 void (*cb)(void *ctx [all...] |
/external/jpeg/ |
jdmerge.c | 18 * G = Y + K2 * Cb + K3 * Cr 19 * B = Y + K4 * Cb 72 int * Cb_b_tab; /* => table for Cb to B conversion */ 74 INT32 * Cb_g_tab; /* => table for Cb to G conversion */ 123 /* The Cb or Cr value we are thinking of is x = i - CENTERJSAMPLE */ 127 /* Cb=>B value is nearest int to 1.77200 * x */ 132 /* Cb=>G value is scaled-up -0.34414 * x */ 256 int cb, cr; local 275 cb = GETJSAMPLE(*inptr1++); 278 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS) 315 int cb, cr; local 379 int cb, cr; local 453 int cb, cr; local 529 int cb, cr; local 614 int cb, cr; local [all...] |
/external/qemu/distrib/jpeg-6b/ |
jdmerge.c | 18 * G = Y + K2 * Cb + K3 * Cr 19 * B = Y + K4 * Cb 72 int * Cb_b_tab; /* => table for Cb to B conversion */ 74 INT32 * Cb_g_tab; /* => table for Cb to G conversion */ 123 /* The Cb or Cr value we are thinking of is x = i - CENTERJSAMPLE */ 127 /* Cb=>B value is nearest int to 1.77200 * x */ 132 /* Cb=>G value is scaled-up -0.34414 * x */ 256 int cb, cr; local 275 cb = GETJSAMPLE(*inptr1++); 278 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS) 315 int cb, cr; local 379 int cb, cr; local 453 int cb, cr; local 529 int cb, cr; local 614 int cb, cr; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/ |
radeon_dataflow.c | 37 rc_read_write_mask_fn Cb; 54 cb_data->Cb(cb_data->UserData, fullinst, src->File, 59 cb_data->Cb(cb_data->UserData, fullinst, RC_FILE_ADDRESS, 0, 101 static void reads_pair(struct rc_instruction * fullinst, rc_read_write_mask_fn cb, void * userdata) 124 cb(userdata, fullinst, inst->RGB.Src[src].File, inst->RGB.Src[src].Index, 128 cb(userdata, fullinst, inst->Alpha.Src[src].File, inst->Alpha.Src[src].Index, RC_MASK_W); 135 rc_pair_read_arg_fn cb, 167 cb(userdata, fullinst, &sub->Arg[i], 174 cb(userdata, fullinst, &sub->Arg[i], src); 180 /* This function calls the callback function (cb) for each source used b [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
radeon_dataflow.c | 37 rc_read_write_mask_fn Cb; 54 cb_data->Cb(cb_data->UserData, fullinst, src->File, 59 cb_data->Cb(cb_data->UserData, fullinst, RC_FILE_ADDRESS, 0, 101 static void reads_pair(struct rc_instruction * fullinst, rc_read_write_mask_fn cb, void * userdata) 124 cb(userdata, fullinst, inst->RGB.Src[src].File, inst->RGB.Src[src].Index, 128 cb(userdata, fullinst, inst->Alpha.Src[src].File, inst->Alpha.Src[src].Index, RC_MASK_W); 135 rc_pair_read_arg_fn cb, 167 cb(userdata, fullinst, &sub->Arg[i], 174 cb(userdata, fullinst, &sub->Arg[i], src); 180 /* This function calls the callback function (cb) for each source used b [all...] |
/external/chromium_org/chrome/renderer/resources/extensions/ |
tag_watcher.js | 5 function watchForTag(tagName, cb) { 11 cb(node); 23 cb(addedNode); 44 function addTagWatcher(tagName, cb) { 50 watchForTag(tagName, cb);
|
/external/chromium_org/net/disk_cache/blockfile/ |
stress_cache.cc | 123 net::TestCompletionCallback cb; local 124 int rv = cache->Init(cb.callback()); 126 if (cb.GetResult(rv) != net::OK) { 164 net::TestCompletionCallback cb; local 165 rv = cache->OpenEntry(keys[key], &entries[slot], cb.callback()); 166 if (cb.GetResult(rv) != net::OK) { 167 rv = cache->CreateEntry(keys[key], &entries[slot], cb.callback()); 168 CHECK_EQ(net::OK, cb.GetResult(rv)); 174 rv = entries[slot]->WriteData(0, 0, buffer.get(), size, cb.callback(), 176 CHECK_EQ(size, cb.GetResult(rv)) [all...] |
/external/chromium_org/remoting/host/setup/ |
host_starter.cc | 186 CompletionCallback cb = on_done_; local 188 cb.Run(START_COMPLETE); 197 CompletionCallback cb = on_done_; local 201 cb.Run(START_ERROR); 203 cb.Run(OAUTH_ERROR); 213 CompletionCallback cb = on_done_; local 217 cb.Run(START_ERROR); 219 cb.Run(NETWORK_ERROR); 229 CompletionCallback cb = on_done_; local 231 cb.Run(START_ERROR) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
firewallsocketserver.cc | 58 virtual int Send(const void* pv, size_t cb) { 59 return SendTo(pv, cb, GetRemoteAddress()); 61 virtual int SendTo(const void* pv, size_t cb, const SocketAddress& addr) { 67 return static_cast<int>(cb); 70 return AsyncSocketAdapter::SendTo(pv, cb, addr); 72 virtual int Recv(void* pv, size_t cb) { 74 return RecvFrom(pv, cb, &addr); 76 virtual int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) { 79 int res = AsyncSocketAdapter::RecvFrom(pv, cb, paddr); 89 return AsyncSocketAdapter::RecvFrom(pv, cb, paddr) [all...] |
/external/chromium_org/third_party/webrtc/base/ |
firewallsocketserver.cc | 41 virtual int Send(const void* pv, size_t cb) { 42 return SendTo(pv, cb, GetRemoteAddress()); 44 virtual int SendTo(const void* pv, size_t cb, const SocketAddress& addr) { 50 return static_cast<int>(cb); 53 return AsyncSocketAdapter::SendTo(pv, cb, addr); 55 virtual int Recv(void* pv, size_t cb) { 57 return RecvFrom(pv, cb, &addr); 59 virtual int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) { 62 int res = AsyncSocketAdapter::RecvFrom(pv, cb, paddr); 72 return AsyncSocketAdapter::RecvFrom(pv, cb, paddr) [all...] |