/libcore/luni/src/test/java/libcore/java/nio/charset/ |
CharsetDecoderTest.java | 97 CharBuffer cb = CharBuffer.allocate(128); local 99 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0xe2 }), cb, false); 101 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x98 }), cb, false); 103 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x83 }), cb, false); 105 cr = decoder.decode(ByteBuffer.wrap(new byte[0]), cb, true); 107 cr = decoder.flush(cb); 109 assertEquals(1, cb.position()); 110 assertEquals('\u2603', cb.get(0)); 115 CharBuffer cb = CharBuffer.allocate(128); local 116 cb.position(42) [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/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...] |
libip6t_SNAT.c | 147 static void SNAT_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_SRC) { 172 parse_to(cb->arg, portok, range); 180 static void SNAT_fcheck(struct xt_fcheck_call *cb) 183 struct nf_nat_range *range = cb->data; 185 if ((cb->xflags & f) == f [all...] |
/external/libjpeg-turbo/ |
jdmrg565.c | 24 int cb, cr; local 46 cb = GETJSAMPLE(*inptr1++); 49 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); 50 cblue = Cbbtab[cb]; 71 cb = GETJSAMPLE(*inptr1); 74 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); 75 cblue = Cbbtab[cb]; 95 int cb, cr; local 118 cb = GETJSAMPLE(*inptr1++); 121 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS) 169 int cb, cr; local 265 int cb, cr; local [all...] |
jdcol565.c | 24 register int y, cb, cr; local 48 cb = GETJSAMPLE(*inptr1++); 51 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], 53 b = range_limit[y + Cbbtab[cb]]; 61 cb = GETJSAMPLE(*inptr1++); 64 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], 66 b = range_limit[y + Cbbtab[cb]]; 70 cb = GETJSAMPLE(*inptr1++); 73 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], 75 b = range_limit[y + Cbbtab[cb]]; 103 register int y, cb, cr; 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); 102 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...] |
/frameworks/base/media/java/android/media/ |
IAudioService.aidl | 51 void forceRemoteSubmixFullVolume(boolean startForcing, IBinder cb); 83 void setMode(int mode, IBinder cb, String callingPackage); 111 int requestAudioFocus(in AudioAttributes aa, int durationHint, IBinder cb, 121 void startBluetoothSco(IBinder cb, int targetSdkVersion); 122 void startBluetoothScoVirtualCall(IBinder cb); 123 void stopBluetoothSco(IBinder cb); 125 void forceVolumeControlStream(int streamType, IBinder cb);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
ZenModeControllerImpl.java | 169 for (Callback cb : mCallbacks) { 170 cb.onNextAlarmChanged(); 175 for (Callback cb : mCallbacks) { 176 cb.onEffectsSupressorChanged(); 181 for (Callback cb : mCallbacks) { 182 cb.onZenChanged(zen); 187 for (Callback cb : mCallbacks) { 188 cb.onZenAvailableChanged(available); 193 for (Callback cb : mCallbacks) { 194 cb.onConditionsChanged(conditions) [all...] |
BluetoothControllerImpl.java | 108 public void addStateChangedCallback(Callback cb) { 109 mHandler.obtainMessage(H.MSG_ADD_CALLBACK, cb).sendToTarget(); 114 public void removeStateChangedCallback(Callback cb) { 115 mHandler.obtainMessage(H.MSG_REMOVE_CALLBACK, cb).sendToTarget(); 272 for (BluetoothController.Callback cb : mCallbacks) { 273 cb.onBluetoothDevicesChanged(); 278 for (BluetoothController.Callback cb : mCallbacks) { 279 fireStateChange(cb); 283 private void fireStateChange(BluetoothController.Callback cb) { 284 cb.onBluetoothStateChange(mEnabled) [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
CameraAgent.java | 56 Handler handler, CameraStartPreviewCallback cb) { 57 if (handler == null || cb == null) { 60 return new CameraStartPreviewCallbackForward(handler, cb); 64 CameraStartPreviewCallback cb) { 66 mCallback = cb; 91 * @param cb The callback to be invoked. 96 Handler handler, CameraOpenCallback cb) { 97 if (handler == null || cb == null) { 100 return new CameraOpenCallbackForward(handler, cb); 103 private CameraOpenCallbackForward(Handler h, CameraOpenCallback cb) { [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...] |
/bootable/recovery/minui/ |
events.cpp | 38 ev_callback cb; member in struct:fd_info 97 ev_fdinfo[ev_count].cb = input_cb; 120 int ev_add_fd(int fd, ev_callback cb, void* data) { 121 if (ev_misc_count == MAX_MISC_FDS || cb == NULL) { 131 ev_fdinfo[ev_count].cb = cb; 160 ev_callback cb = fdi->cb; local 161 if (cb) { 162 cb(fdi->fd, polledevents[n].events, fdi->data) [all...] |
/external/libevent/include/event2/ |
event.h | 588 @param cb a function taking two arguments: an integer severity between 589 _EVENT_LOG_DEBUG and _EVENT_LOG_ERR, and a string. If cb is NULL, 595 void event_set_log_callback(event_log_cb cb); 616 void event_set_fatal_callback(event_fatal_cb cb); 754 #define evtimer_assign(ev, b, cb, arg) \ 755 event_assign((ev), (b), -1, 0, (cb), (arg)) 756 #define evtimer_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg)) 770 #define evsignal_assign(ev, b, x, cb, arg) \ 771 event_assign((ev), (b), (x), EV_SIGNAL|EV_PERSIST, cb, (arg) [all...] |
rpc.h | 196 void (*cb)(struct evrpc_status *, void *, void *, void *), 210 * @param cb the callback function to call when the RPC has completed 214 pool, request, reply, cb, cbarg) \ 220 (void (*)(struct evrpc_status *, void *, void *, void *))cb, \ 236 void (*cb)(struct evrpc_status *, \ 240 (void (*)(struct evrpc_status *, void *, void *, void *))cb, \ 370 * @param cb the callback to invoke when the RPC request has been answered 374 #define EVRPC_MAKE_REQUEST(name, pool, request, reply, cb, cbarg) \ 375 evrpc_send_request_##name((pool), (request), (reply), (cb), (cbarg)) 487 * @param cb the callback to call when the hook is activate [all...] |
/external/webrtc/webrtc/base/ |
firewallsocketserver.cc | 41 int Send(const void* pv, size_t cb) override { 42 return SendTo(pv, cb, GetRemoteAddress()); 44 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override { 50 return static_cast<int>(cb); 53 return AsyncSocketAdapter::SendTo(pv, cb, addr); 55 int Recv(void* pv, size_t cb) override { 57 return RecvFrom(pv, cb, &addr); 59 int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) override { 62 int res = AsyncSocketAdapter::RecvFrom(pv, cb, paddr); 72 return AsyncSocketAdapter::RecvFrom(pv, cb, paddr) [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/ |
h264bsdWriteMacroblock.S | 31 #define cb r4 define 97 LDR cb, [image, #0x10] 120 VLD1.8 {qRow0, qRow1}, [data]! ;//cb rows 0,1,2,3 122 VLD1.8 {qRow2, qRow3}, [data]! ;//cb rows 4,5,6,7 128 VST1.8 {dRow0}, [cb,:64], cwidth 131 VST1.8 {dRow1}, [cb,:64], cwidth 134 VST1.8 {dRow2}, [cb,:64], cwidth 137 VST1.8 {dRow3}, [cb,:64], cwidth 140 VST1.8 {dRow4}, [cb,:64], cwidth 143 VST1.8 {dRow5}, [cb,:64], cwidt [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
MediaFocusControl.java | 175 private void removeFocusStackEntryOnDeath(IBinder cb) { 178 mFocusStack.peek().hasSameBinder(cb); 184 if(fr.hasSameBinder(cb)) { 185 Log.i(TAG, "AudioFocus removeFocusStackEntryOnDeath(): removing entry for " + cb); 256 AudioFocusDeathHandler(IBinder cb) { 257 mCb = cb; 385 protected int requestAudioFocus(AudioAttributes aa, int focusChangeHint, IBinder cb, 393 if (!cb.pingBinder()) { 419 AudioFocusDeathHandler afdh = new AudioFocusDeathHandler(cb); 422 cb.linkToDeath(afdh, 0) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
test_as_parameter.py | 69 cb = CallBack(callback) 70 f(self.wrap(2**18), self.wrap(cb)) 86 cb = MyCallback(callback) 88 result = f(self.wrap(-10), self.wrap(cb)) 93 cb = MyCallback(callback) 95 result = f(self.wrap(-10), self.wrap(cb)) 98 result = f(self.wrap(-10), self.wrap(cb)) 105 cb = AnotherCallback(callback) 106 self.assertRaises(ArgumentError, f, self.wrap(-10), self.wrap(cb)) 124 cb = MyCallback(callback [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/ |
test_as_parameter.py | 69 cb = CallBack(callback) 70 f(self.wrap(2**18), self.wrap(cb)) 86 cb = MyCallback(callback) 88 result = f(self.wrap(-10), self.wrap(cb)) 93 cb = MyCallback(callback) 95 result = f(self.wrap(-10), self.wrap(cb)) 98 result = f(self.wrap(-10), self.wrap(cb)) 105 cb = AnotherCallback(callback) 106 self.assertRaises(ArgumentError, f, self.wrap(-10), self.wrap(cb)) 124 cb = MyCallback(callback [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_as_parameter.py | 69 cb = CallBack(callback) 70 f(self.wrap(2**18), self.wrap(cb)) 86 cb = MyCallback(callback) 88 result = f(self.wrap(-10), self.wrap(cb)) 93 cb = MyCallback(callback) 95 result = f(self.wrap(-10), self.wrap(cb)) 98 result = f(self.wrap(-10), self.wrap(cb)) 105 cb = AnotherCallback(callback) 106 self.assertRaises(ArgumentError, f, self.wrap(-10), self.wrap(cb)) 124 cb = MyCallback(callback [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_as_parameter.py | 69 cb = CallBack(callback) 70 f(self.wrap(2**18), self.wrap(cb)) 86 cb = MyCallback(callback) 88 result = f(self.wrap(-10), self.wrap(cb)) 93 cb = MyCallback(callback) 95 result = f(self.wrap(-10), self.wrap(cb)) 98 result = f(self.wrap(-10), self.wrap(cb)) 105 cb = AnotherCallback(callback) 106 self.assertRaises(ArgumentError, f, self.wrap(-10), self.wrap(cb)) 124 cb = MyCallback(callback [all...] |