/system/core/liblog/ |
D | log_event_list.c | 50 android_log_context_internal *context; in create_android_logger() local 52 context = calloc(1, sizeof(android_log_context_internal)); in create_android_logger() 53 if (!context) { in create_android_logger() 56 context->tag = tag; in create_android_logger() 57 context->read_write_flag = kAndroidLoggerWrite; in create_android_logger() 59 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in create_android_logger() 60 context->overflow = true; in create_android_logger() 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in create_android_logger() 64 context->list[0] = context->pos + 1; in create_android_logger() 65 context->pos += needed; in create_android_logger() [all …]
|
D | logd_writer.c | 56 .context.sock = -1, 69 if (logdLoggerWrite.context.sock < 0) { in logdOpen() 87 logdLoggerWrite.context.sock = i; in logdOpen() 97 if (logdLoggerWrite.context.sock >= 0) { in logdClose() 98 close(logdLoggerWrite.context.sock); in logdClose() 99 logdLoggerWrite.context.sock = -1; in logdClose() 108 if (logdLoggerWrite.context.sock < 0) { in logdAvailable() 128 if (logdLoggerWrite.context.sock < 0) { in logdWrite() 167 if (logdLoggerWrite.context.sock > 0) { in logdWrite() 181 ret = TEMP_FAILURE_RETRY(writev(logdLoggerWrite.context.sock, newVec, 2)); in logdWrite() [all …]
|
D | pmsg_writer.c | 46 .context.fd = -1, 56 if (pmsgLoggerWrite.context.fd < 0) { in pmsgOpen() 57 pmsgLoggerWrite.context.fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY | O_CLOEXEC)); in pmsgOpen() 60 return pmsgLoggerWrite.context.fd; in pmsgOpen() 65 if (pmsgLoggerWrite.context.fd >= 0) { in pmsgClose() 66 close(pmsgLoggerWrite.context.fd); in pmsgClose() 67 pmsgLoggerWrite.context.fd = -1; in pmsgClose() 81 if (pmsgLoggerWrite.context.fd < 0) { in pmsgAvailable() 118 if (pmsgLoggerWrite.context.fd < 0) { in pmsgWrite() 172 ret = TEMP_FAILURE_RETRY(writev(pmsgLoggerWrite.context.fd, newVec, i)); in pmsgWrite() [all …]
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | decoder-sbc.c | 41 PRIVATE OI_STATUS FindSyncword(OI_CODEC_SBC_DECODER_CONTEXT *context, in FindSyncword() argument 55 if (context->limitFrameFormat && context->enhancedEnabled){ in FindSyncword() 58 } else if (context->enhancedEnabled == FALSE) { in FindSyncword() 70 context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD); in FindSyncword() 87 context->common.frameInfo.enhanced = FALSE; in FindSyncword() 98 static OI_STATUS DecodeBody(OI_CODEC_SBC_DECODER_CONTEXT *context, in DecodeBody() argument 105 …OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subb… in DecodeBody() 111 … if (*pcmBytes < (sizeof(OI_INT16) * frameSamples * context->common.pcmStride) && !allowPartial) { in DecodeBody() 116 …} else if (*pcmBytes < sizeof (OI_INT16) * context->common.frameInfo.nrof_subbands * context->comm… in DecodeBody() 122 if (context->bufferedBlocks == 0) { in DecodeBody() [all …]
|
D | decoder-oina.c | 39 OI_STATUS OI_CODEC_SBC_DecoderConfigureRaw(OI_CODEC_SBC_DECODER_CONTEXT *context, in OI_CODEC_SBC_DecoderConfigureRaw() argument 79 context->common.frameInfo.enhanced = enhanced; in OI_CODEC_SBC_DecoderConfigureRaw() 81 context->common.frameInfo.enhanced = FALSE; in OI_CODEC_SBC_DecoderConfigureRaw() 83 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw() 84 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw() 85 context->common.frameInfo.subbands = subbands; in OI_CODEC_SBC_DecoderConfigureRaw() 86 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw() 87 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw() 88 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw() 90 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in OI_CODEC_SBC_DecoderConfigureRaw() [all …]
|
D | synthesis-sbc.c | 240 typedef void (*SYNTH_FRAME)(OI_CODEC_SBC_DECODER_CONTEXT *context, OI_INT16 *pcm, OI_UINT blkstart,… 258 PRIVATE void OI_SBC_SynthFrame_80(OI_CODEC_SBC_DECODER_CONTEXT *context, OI_INT16 *pcm, OI_UINT blk… in OI_SBC_SynthFrame_80() argument 262 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80() 263 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1; in OI_SBC_SynthFrame_80() 264 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80() 265 OI_INT32 *s = context->common.subdata + 8 * nrof_channels * blkstart; in OI_SBC_SynthFrame_80() 270 …_BACKWARD_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[0] + context->common.filterBuffe… in OI_SBC_SynthFrame_80() 272 …_BACKWARD_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[1] + context->common.filterBuffe… in OI_SBC_SynthFrame_80() 274 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80() 280 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80() [all …]
|
D | decoder-private.c | 42 INLINE OI_STATUS internal_DecoderReset(OI_CODEC_SBC_DECODER_CONTEXT *context, in internal_DecoderReset() argument 52 for (i = 0; i < sizeof(*context); i++) { in internal_DecoderReset() 53 ((char *)context)[i] = 0; in internal_DecoderReset() 57 context->enhancedEnabled = enhanced ? TRUE : FALSE; in internal_DecoderReset() 59 context->enhancedEnabled = FALSE; in internal_DecoderReset() 65 …status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, maxChannels, pcmStrid… in internal_DecoderReset() 71 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset() 72 context->common.maxBitneed = 0; in internal_DecoderReset() 73 context->limitFrameFormat = FALSE; in internal_DecoderReset() 74 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset() [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 141 static void watch_existing_subdirs(struct usb_host_context *context, in watch_existing_subdirs() argument 147 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE); in watch_existing_subdirs() 154 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE); in watch_existing_subdirs() 162 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); in usb_host_init() local 163 if (!context) { in usb_host_init() 167 context->fd = inotify_init(); in usb_host_init() 168 if (context->fd < 0) { in usb_host_init() 170 free(context); in usb_host_init() 173 return context; in usb_host_init() 176 void usb_host_cleanup(struct usb_host_context *context) in usb_host_cleanup() argument [all …]
|
/system/bt/btif/src/ |
D | stack_manager.c | 48 static void event_init_stack(void *context); 49 static void event_start_up_stack(void *context); 50 static void event_shut_down_stack(void *context); 51 static void event_clean_up_stack(void *context); 53 static void event_signal_stack_up(void *context); 54 static void event_signal_stack_down(void *context); 59 void btif_thread_post(thread_fn func, void *context); 99 static void event_init_stack(void *context) { in event_init_stack() argument 100 semaphore_t *semaphore = (semaphore_t *)context; in event_init_stack() 134 static void event_start_up_stack(UNUSED_ATTR void *context) { in event_start_up_stack() argument [all …]
|
/system/bt/hci/src/ |
D | low_power_manager.c | 52 static void event_disable(void *context); 53 static void event_enable(void *context); 54 static void event_wake_assert(void *context); 55 static void event_allow_device_sleep(void *context); 56 static void event_idle_timeout(void *context); 183 static void idle_timer_expired(UNUSED_ATTR void *context) { in idle_timer_expired() argument 202 static void event_disable(UNUSED_ATTR void *context) { in event_disable() argument 206 static void event_enable(UNUSED_ATTR void *context) { in event_enable() argument 210 static void event_wake_assert(UNUSED_ATTR void *context) { in event_wake_assert() argument 214 static void event_allow_device_sleep(UNUSED_ATTR void *context) { in event_allow_device_sleep() argument [all …]
|
D | hci_layer.c | 94 void *context; member 143 static void event_finish_startup(void *context); 145 static void startup_timer_expired(void *context); 147 static void event_postload(void *context); 150 static void event_epilog(void *context); 152 static void epilog_timer_expired(void *context); 154 static void event_command_ready(fixed_queue_t *queue, void *context); 155 static void event_packet_ready(fixed_queue_t *queue, void *context); 156 static void command_timed_out(void *context); 358 void *context) { in transmit_command() argument [all …]
|
D | hci_inject.c | 60 static void accept_ready(socket_t *socket, void *context); 61 static void read_ready(socket_t *socket, void *context); 127 static void accept_ready(socket_t *socket, UNUSED_ATTR void *context) { in accept_ready() argument 148 static void read_ready(UNUSED_ATTR socket_t *socket, void *context) { in read_ready() argument 150 assert(context != NULL); in read_ready() 152 client_t *client = (client_t *)context; in read_ready()
|
/system/bt/osi/src/ |
D | socket.c | 45 void *context; // Not owned, do not free. member 48 static void internal_read_ready(void *context); 49 static void internal_write_ready(void *context); 192 void socket_register(socket_t *socket, reactor_t *reactor, void *context, socket_cb read_cb, socket… in socket_register() argument 200 socket->context = context; in socket_register() 216 static void internal_read_ready(void *context) { in internal_read_ready() argument 217 assert(context != NULL); in internal_read_ready() 219 socket_t *socket = (void *)context; in internal_read_ready() 220 socket->read_ready(socket, socket->context); in internal_read_ready() 223 static void internal_write_ready(void *context) { in internal_write_ready() argument [all …]
|
D | thread.c | 56 void *context; member 60 static void work_queue_read_cb(void *context); 131 bool thread_post(thread_t *thread, thread_fn func, void *context) { in thread_post() argument 143 item->context = context; in thread_post() 203 void *context = thread->work_queue; in run_thread() local 205 …reactor_object_t *work_queue_object = reactor_register(thread->reactor, fd, context, work_queue_re… in run_thread() 215 item->func(item->context); in run_thread() 228 static void work_queue_read_cb(void *context) { in work_queue_read_cb() argument 229 assert(context != NULL); in work_queue_read_cb() 231 fixed_queue_t *queue = (fixed_queue_t *)context; in work_queue_read_cb() [all …]
|
D | reactor.c | 52 void *context; // a context that's passed back to the *_ready functions. member 56 …void (*read_ready)(void *context); // function to call when the file descriptor becomes readable. 57 …void (*write_ready)(void *context); // function to call when the file descriptor becomes writeabl… 133 int fd, void *context, in reactor_register() argument 134 void (*read_ready)(void *context), in reactor_register() argument 135 void (*write_ready)(void *context)) { in reactor_register() argument 144 object->context = context; in reactor_register() 168 void (*read_ready)(void *context), in reactor_change_registration() argument 169 void (*write_ready)(void *context)) { in reactor_change_registration() argument 272 object->read_ready(object->context); in run_reactor() [all …]
|
D | eager_reader.c | 62 static void inbound_data_waiting(void *context); 63 static void internal_outbound_read_ready(void *context); 141 …ader_register(eager_reader_t *reader, reactor_t *reactor, eager_reader_cb read_cb, void *context) { in eager_reader_register() argument 150 reader->outbound_context = context; in eager_reader_register() 238 static void inbound_data_waiting(void *context) { in inbound_data_waiting() argument 239 eager_reader_t *reader = (eager_reader_t *)context; in inbound_data_waiting() 271 static void internal_outbound_read_ready(void *context) { in internal_outbound_read_ready() argument 272 assert(context != NULL); in internal_outbound_read_ready() 274 eager_reader_t *reader = (eager_reader_t *)context; in internal_outbound_read_ready()
|
/system/bt/osi/include/ |
D | reactor.h | 67 int fd, void *context, 68 void (*read_ready)(void *context), 69 void (*write_ready)(void *context)); 77 void (*read_ready)(void *context), 78 void (*write_ready)(void *context));
|
/system/bt/stack/include/ |
D | l2cap_client.h | 29 void (*connected)(l2cap_client_t *client, void *context); 30 void (*disconnected)(l2cap_client_t *client, void *context); 31 void (*read_ready)(l2cap_client_t *client, buffer_t *packet, void *context); 32 void (*write_ready)(l2cap_client_t *client, void *context); 46 l2cap_client_t *l2cap_client_new(const l2cap_client_callbacks_t *callbacks, void *context);
|
/system/netd/server/ |
D | MDnsSdListener.cpp | 72 Context *context = new Context(requestId, mListener); in discover() local 73 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in discover() 85 domain, &MDnsSdListenerDiscoverCallback, context); in discover() 102 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); in MDnsSdListenerDiscoverCallback() local 104 int refNumber = context->mRefNumber; in MDnsSdListenerDiscoverCallback() 108 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback() 128 context->mListener->sendBroadcast(respCode, msg, false); in MDnsSdListenerDiscoverCallback() 164 Context *context = new Context(requestId, mListener); in serviceRegister() local 165 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in serviceRegister() 177 context); in serviceRegister() [all …]
|
/system/core/metricsd/uploader/ |
D | metrics_hashes.cc | 40 base::MD5Context context; in HashMetricName() local 41 base::MD5Init(&context); in HashMetricName() 42 base::MD5Update(&context, name); in HashMetricName() 45 base::MD5Final(&digest, &context); in HashMetricName()
|
/system/extras/ext4_utils/ |
D | sha1.c | 198 void SHA1Init(context) in SHA1Init() argument 199 SHA1_CTX *context; in SHA1Init() 202 assert(context != 0); 205 context->state[0] = 0x67452301; 206 context->state[1] = 0xEFCDAB89; 207 context->state[2] = 0x98BADCFE; 208 context->state[3] = 0x10325476; 209 context->state[4] = 0xC3D2E1F0; 210 context->count[0] = context->count[1] = 0; 217 void SHA1Update(context, data, len) in SHA1Update() argument [all …]
|
/system/core/include/cutils/ |
D | hashmap.h | 83 void* (*initialValue)(void* key, void* context), void* context); 101 bool (*callback)(void* key, void* value, void* context), 102 void* context);
|
/system/bt/btcore/src/ |
D | module.c | 203 static void run_wrapped_start_up(void *context); 204 static void post_result_to_callback(void *context); 221 static void run_wrapped_start_up(void *context) { in run_wrapped_start_up() argument 222 assert(context); in run_wrapped_start_up() 224 callbacked_wrapper_t *wrapper = context; in run_wrapped_start_up() 231 static void post_result_to_callback(void *context) { in post_result_to_callback() argument 232 assert(context); in post_result_to_callback() 234 callbacked_wrapper_t *wrapper = context; in post_result_to_callback()
|
/system/core/include/usbhost/ |
D | usbhost.h | 73 void usb_host_cleanup(struct usb_host_context *context); 76 int usb_host_get_fd(struct usb_host_context *context); 79 int usb_host_load(struct usb_host_context *context, 86 int usb_host_read_event(struct usb_host_context *context); 97 void usb_host_run(struct usb_host_context *context,
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_codec_sbc.h | 233 OI_STATUS OI_CODEC_SBC_DecoderReset(OI_CODEC_SBC_DECODER_CONTEXT *context, 259 OI_STATUS OI_CODEC_SBC_DecoderLimit(OI_CODEC_SBC_DECODER_CONTEXT *context, 289 OI_STATUS OI_CODEC_SBC_DecoderConfigureRaw(OI_CODEC_SBC_DECODER_CONTEXT *context, 326 OI_STATUS OI_CODEC_SBC_DecodeRaw(OI_CODEC_SBC_DECODER_CONTEXT *context, 357 OI_STATUS OI_CODEC_SBC_DecodeFrame(OI_CODEC_SBC_DECODER_CONTEXT *context, 390 OI_STATUS OI_CODEC_SBC_SkipFrame(OI_CODEC_SBC_DECODER_CONTEXT *context,
|