Searched refs:context (Results 1 - 25 of 148) sorted by relevance

123456

/system/core/logcat/tests/
H A Dliblogcat_test.cpp19 #define logcat_define(context) android_logcat_context context
20 #define logcat_popen(context, command) android_logcat_popen(&context, command)
21 #define logcat_pclose(context, fp) android_logcat_pclose(&context, fp)
/system/core/logcat/
H A Dgetopt_long.cpp60 #define PRINT_ERROR ((context->opterr) && (*options != ':'))
88 static int permute_args(getopt_context* context, char* const* nargv) { argument
90 int nnonopts = context->nonopt_end - context->nonopt_start;
91 int nopts = context->optind - context->nonopt_end;
93 int cyclelen = (context->optind - context->nonopt_start) / ncycle;
96 int cstart = context->nonopt_end + i;
99 if (pos >= context
115 parse_long_options_r(char* const* nargv, const char* options, const struct option* long_options, int* idx, bool short_too, struct getopt_context* context) argument
241 getopt_long_r(int nargc, char* const* nargv, const char* options, const struct option* long_options, int* idx, struct getopt_context* context) argument
[all...]
H A Dlogcat.cpp125 // Creates a context associated with this logcat instance
127 android_logcat_context_internal* context; local
129 context = (android_logcat_context_internal*)calloc(
131 if (!context) return nullptr;
133 context->fds[0] = -1;
134 context->fds[1] = -1;
135 context->output_fd = -1;
136 context->error_fd = -1;
137 context->maxRotatedLogs = DEFAULT_MAX_ROTATED_LOGS;
139 context
163 close_output(android_logcat_context_internal* context) argument
199 close_error(android_logcat_context_internal* context) argument
234 rotateLogs(android_logcat_context_internal* context) argument
297 printBinary(android_logcat_context_internal* context, struct log_msg* buf) argument
303 regexOk(android_logcat_context_internal* context, const AndroidLogEntry& entry) argument
312 processBuffer(android_logcat_context_internal* context, log_device_t* dev, struct log_msg* buf) argument
359 maybePrintStart(android_logcat_context_internal* context, log_device_t* dev, bool printDividers) argument
375 setupOutputAndSchedulingPolicy( android_logcat_context_internal* context, bool blocking) argument
427 show_help(android_logcat_context_internal* context) argument
519 show_format_help(android_logcat_context_internal* context) argument
555 setLogFormat(android_logcat_context_internal* context, const char* formatString) argument
603 logcat_panic(android_logcat_context_internal* context, enum helpType showHelp, const char* fmt, ...) argument
708 getenv(android_logcat_context_internal* context, const char* name) argument
728 __logcat(android_logcat_context_internal* context) argument
1699 android_logcat_context_internal* context = ctx; local
1715 android_logcat_context_internal* context = ctx; local
1805 android_logcat_context_internal* context = ctx; local
1812 android_logcat_context_internal* context = *ctx; local
[all...]
/system/core/liblog/
H A Dlog_event_list.c50 android_log_context_internal* context; local
52 context = calloc(1, sizeof(android_log_context_internal));
53 if (!context) {
56 context->tag = tag;
57 context->read_write_flag = kAndroidLoggerWrite;
59 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) {
60 context->overflow = true;
63 context->storage[context->pos + 0] = EVENT_TYPE_LIST;
64 context
72 android_log_context_internal* context; local
88 android_log_context_internal* context; local
102 android_log_context_internal* context; local
144 android_log_context_internal* context; local
179 android_log_context_internal* context; local
205 android_log_context_internal* context; local
246 android_log_context_internal* context; local
269 android_log_context_internal* context; local
300 android_log_context_internal* context; local
334 android_log_context_internal* context; local
391 android_log_context_internal* context; local
[all...]
/system/bt/embdrv/sbc/decoder/srce/
H A Ddecoder-oina.c39 OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BOOL enhanced, uint8_t frequency,
73 context->common.frameInfo.enhanced = enhanced;
75 context->common.frameInfo.enhanced = FALSE;
77 context->common.frameInfo.freqIndex = frequency;
78 context->common.frameInfo.mode = mode;
79 context->common.frameInfo.subbands = subbands;
80 context->common.frameInfo.blocks = blocks;
81 context->common.frameInfo.alloc = alloc;
82 context->common.frameInfo.bitpool = maxBitpool;
84 OI_SBC_ExpandFrameFields(&context
38 OI_CODEC_SBC_DecoderConfigureRaw( OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BOOL enhanced, uint8_t frequency, uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc, uint8_t maxBitpool) argument
93 OI_CODEC_SBC_DecodeRaw(OI_CODEC_SBC_DECODER_CONTEXT* context, uint8_t bitpool, const OI_BYTE** frameData, uint32_t* frameBytes, int16_t* pcmData, uint32_t* pcmBytes) argument
101 OI_CODEC_SBC_DecoderLimit(OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BOOL enhanced, uint8_t subbands) argument
[all...]
H A Ddecoder-sbc.c41 PRIVATE OI_STATUS FindSyncword(OI_CODEC_SBC_DECODER_CONTEXT* context, argument
54 if (context->limitFrameFormat && context->enhancedEnabled) {
55 /* If the context is restricted, only search for specified SYNCWORD */
57 } else if (context->enhancedEnabled == FALSE) {
69 context->common.frameInfo.enhanced =
87 context->common.frameInfo.enhanced = FALSE;
98 static OI_STATUS DecodeBody(OI_CODEC_SBC_DECODER_CONTEXT* context, argument
102 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks *
103 context
189 internal_DecodeRaw(OI_CODEC_SBC_DECODER_CONTEXT* context, uint8_t bitpool, const OI_BYTE** frameData, uint32_t* frameBytes, int16_t* pcmData, uint32_t* pcmBytes) argument
228 OI_CODEC_SBC_DecoderReset(OI_CODEC_SBC_DECODER_CONTEXT* context, uint32_t* decoderData, uint32_t decoderDataBytes, uint8_t maxChannels, uint8_t pcmStride, OI_BOOL enhanced) argument
237 OI_CODEC_SBC_DecodeFrame(OI_CODEC_SBC_DECODER_CONTEXT* context, const OI_BYTE** frameData, uint32_t* frameBytes, int16_t* pcmData, uint32_t* pcmBytes) argument
349 OI_CODEC_SBC_SkipFrame(OI_CODEC_SBC_DECODER_CONTEXT* context, const OI_BYTE** frameData, uint32_t* frameBytes) argument
442 OI_SBC_ReadSamplesJoint4(OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BITSTREAM* global_bs) argument
449 OI_SBC_ReadSamplesJoint8(OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BITSTREAM* global_bs) argument
464 OI_SBC_ReadSamplesJoint(OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BITSTREAM* global_bs) argument
[all...]
H A Dsynthesis-sbc.c254 typedef void (*SYNTH_FRAME)(OI_CODEC_SBC_DECODER_CONTEXT* context, int16_t* pcm,
276 PRIVATE void OI_SBC_SynthFrame_80(OI_CODEC_SBC_DECODER_CONTEXT* context, argument
281 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels;
282 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1;
283 OI_UINT offset = context->common.filterBufferOffset;
284 int32_t* s = context->common.subdata + 8 * nrof_channels * blkstart;
290 context->common.filterBuffer[0] + context->common.filterBufferLen -
292 context->common.filterBuffer[0]);
295 context
315 OI_SBC_SynthFrame_4SB(OI_CODEC_SBC_DECODER_CONTEXT* context, int16_t* pcm, OI_UINT blkstart, OI_UINT blkcount) argument
355 OI_SBC_SynthFrame_Enhanced(OI_CODEC_SBC_DECODER_CONTEXT* context, int16_t* pcm, OI_UINT blkstart, OI_UINT blkcount) argument
413 OI_SBC_SynthFrame(OI_CODEC_SBC_DECODER_CONTEXT* context, int16_t* pcm, OI_UINT start_block, OI_UINT nrof_blocks) argument
[all...]
/system/bt/osi/include/
H A Dreactor.h62 // to the reactor. The |context| variable is a user-defined opaque handle that
70 reactor_object_t* reactor_register(reactor_t* reactor, int fd, void* context,
71 void (*read_ready)(void* context),
72 void (*write_ready)(void* context));
81 void (*read_ready)(void* context),
82 void (*write_ready)(void* context));
H A Dthread.h29 typedef void (*thread_fn)(void* context);
51 // Call |func| with the argument |context| on |thread|. This function typically
54 // be NULL. |context| may be NULL.
56 bool thread_post(thread_t* thread, thread_fn func, void* context);
/system/extras/tests/memtest/
H A Dthumb.cpp8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context* context, void *) { argument
9 printf("0x%x\n", _Unwind_GetIP(context));
/system/bt/stack/include/
H A Dl2cap_client.h29 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);
43 // occur on the L2CAP connection. |context| may be NULL and will be passed as
47 void* context);
/system/core/logcat/include/log/
H A Dgetopt.h55 #define INIT_GETOPT_CONTEXT(context) \
56 context = { 1, 1, '?', 0, NULL, NULL, EMSG, -1, -1, NO_PREFIX, 0, NULL }
61 struct getopt_context* context);
/system/chre/platform/slpi/include/chre/target_platform/
H A Dplatform_log_base.h33 void *context);
38 * within the context of the logging lock which guarantees exclusive access to
42 * @param callback the callback to invoke within the context of a lock on the
44 * @param context a context pointer to provide to the callback.
46 void flushLogBuffer(FlushLogBufferCallback callback, void *context);
/system/tpm/trunks/
H A Dcom.android.Trunks.conf9 <policy context="default">
H A Dorg.chromium.Trunks.conf9 <policy context="default">
/system/bt/btif/src/
H A Dstack_manager.cc48 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);
97 static void event_init_stack(void* context) { argument
98 semaphore_t* semaphore = (semaphore_t*)context;
132 static void event_start_up_stack(UNUSED_ATTR void* context) { argument
161 event_shut_down_stack(UNUSED_ATTR void* context) argument
196 event_clean_up_stack(void* context) argument
223 event_signal_stack_up(UNUSED_ATTR void* context) argument
230 event_signal_stack_down(UNUSED_ATTR void* context) argument
[all...]
/system/core/libusbhost/
H A Dusbhost.c146 static void watch_existing_subdirs(struct usb_host_context *context, argument
152 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
159 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE);
167 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); local
168 if (!context) {
172 context->fd = inotify_init();
173 if (context->fd < 0) {
175 free(context);
178 return context;
181 void usb_host_cleanup(struct usb_host_context *context) argument
187 usb_host_get_fd(struct usb_host_context *context) argument
192 usb_host_load(struct usb_host_context *context, usb_device_added_cb added_cb, usb_device_removed_cb removed_cb, usb_discovery_done_cb discovery_done_cb, void *client_data) argument
231 usb_host_read_event(struct usb_host_context *context) argument
309 usb_host_run(struct usb_host_context *context, usb_device_added_cb added_cb, usb_device_removed_cb removed_cb, usb_discovery_done_cb discovery_done_cb, void *client_data) argument
[all...]
/system/media/audio_utils/tests/
H A Dfifo_threads.cpp37 Context *context = (Context *) arg; local
43 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout);
50 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout);
68 Context *context = (Context *) arg; local
78 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout);
84 ssize_t actual2 = context->mOutputWriter->write(buffer, actual, NULL /*timeout*/);
124 Context context; local
125 context.mInputWriter = &inputWriter;
126 context.mInputReader = &inputReader;
127 context
[all...]
/system/hwservicemanager/
H A DAccessControl.h15 bool canAdd(const std::string& fqName, const Context &context, pid_t pid);
21 bool checkPermission(const Context &context, pid_t sourceAuditPid, const char *targetContext, const char *perm, const char *interface);
22 bool checkPermission(const Context &context, pid_t sourcePid, const char *perm, const char *interface);
H A DAccessControl.cpp26 LOG_ALWAYS_FATAL("Failed to acquire hwservicemanager context.");
38 bool AccessControl::canAdd(const std::string& fqName, const Context &context, pid_t pid) { argument
46 return checkPermission(context, pid, kPermissionAdd, checkName.c_str());
68 ALOGE("SELinux: failed to retrieve process context for pid %d", sourcePid);
75 bool AccessControl::checkPermission(const Context &context, pid_t sourceAuditPid, const char *targetContext, const char *perm, const char *interface) { argument
76 if (context == nullptr) {
86 allowed = (selinux_check_access(context.get(), targetContext, "hwservice_manager",
92 bool AccessControl::checkPermission(const Context &context, pid_t sourceAuditPid, const char *perm, const char *interface) { argument
102 allowed = checkPermission(context, sourceAuditPid, targetContext, perm, interface);
/system/bt/osi/test/
H A Dfuture_test.cc33 static void post_to_future(void* context) { argument
34 future_ready((future_t*)context, (void*)pass_back_data0);
/system/tpm/attestation/server/
H A Dorg.chromium.Attestation.conf9 <policy context="default">
/system/core/include/cutils/
H A Dhashmap.h83 void* (*initialValue)(void* key, void* context), void* context);
101 bool (*callback)(void* key, void* value, void* context),
102 void* context);
/system/core/libcutils/include/cutils/
H A Dhashmap.h83 void* (*initialValue)(void* key, void* context), void* context);
101 bool (*callback)(void* key, void* value, void* context),
102 void* context);
/system/core/libcutils/include_vndk/cutils/
H A Dhashmap.h83 void* (*initialValue)(void* key, void* context), void* context);
101 bool (*callback)(void* key, void* value, void* context),
102 void* context);

Completed in 365 milliseconds

123456