Searched refs:context (Results 26 - 50 of 148) sorted by relevance

123456

/system/bt/osi/src/
H A Dsocket.cc45 void* context; // Not owned, do not free. member in struct:socket_t
48 static void internal_read_ready(void* context);
49 static void internal_write_ready(void* context);
195 void socket_register(socket_t* socket, reactor_t* reactor, void* context, argument
204 socket->context = context;
220 static void internal_read_ready(void* context) { argument
221 CHECK(context != NULL);
223 socket_t* socket = static_cast<socket_t*>(context);
224 socket->read_ready(socket, socket->context);
227 internal_write_ready(void* context) argument
[all...]
H A Dreactor.cc54 void* context; // a context that's passed back to the *_ready functions. member in struct:reactor_object_t
58 void (*read_ready)(void* context); // function to call when the file
60 void (*write_ready)(void* context); // function to call when the file
139 reactor_object_t* reactor_register(reactor_t* reactor, int fd, void* context, argument
140 void (*read_ready)(void* context),
141 void (*write_ready)(void* context)) {
150 object->context = context;
173 void (*read_ready)(void* context),
172 reactor_change_registration(reactor_object_t* object, void (*read_ready)(void* context), void (*write_ready)(void* context)) argument
[all...]
H A Dthread.cc59 void* context; member in struct:__anon752
63 static void work_queue_read_cb(void* context);
126 bool thread_post(thread_t* thread, thread_fn func, void* context) { argument
138 item->context = context;
217 void* context = thread->work_queue; local
220 reactor_register(thread->reactor, fd, context, work_queue_read_cb, NULL);
231 item->func(item->context);
246 static void work_queue_read_cb(void* context) { argument
247 CHECK(context !
[all...]
/system/core/init/
H A Ddescriptors.h31 gid_t gid, int perm, const std::string& context);
46 const std::string& context() const { return context_; } function in class:android::init::DescriptorInfo
65 gid_t gid, int perm, const std::string& context);
68 virtual int Create(const std::string& context) const override;
75 gid_t gid, int perm, const std::string& context);
77 virtual int Create(const std::string& context) const override;
H A Ddescriptors.cpp38 gid_t gid, int perm, const std::string& context)
39 : name_(name), type_(type), uid_(uid), gid_(gid), perm_(perm), context_(context) {
75 gid_t gid, int perm, const std::string& context)
76 : DescriptorInfo(name, type, uid, gid, perm, context) {
84 int SocketInfo::Create(const std::string& context) const {
89 return CreateSocket(name().c_str(), flags, passcred, perm(), uid(), gid(), context.c_str(),
98 gid_t gid, int perm, const std::string& context)
100 : DescriptorInfo(name, type, uid, gid, perm, context) {
37 DescriptorInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
74 SocketInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
97 FileInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
H A Dueventd_test.cpp108 for (const char* context : contexts) {
109 files_and_contexts.emplace_back(dir.path + "/context_"s + context, context);
112 WriteFromMultipleThreads(files_and_contexts, [](const std::string& context) {
113 EXPECT_EQ(0, setfscreatecon(context.c_str()));
/system/bt/btcore/src/
H A Dmodule.cc171 static void run_wrapped_start_up(void* context);
172 static void post_result_to_callback(void* context);
189 static void run_wrapped_start_up(void* context) { argument
190 CHECK(context);
192 callbacked_wrapper_t* wrapper = (callbacked_wrapper_t*)context;
199 static void post_result_to_callback(void* context) { argument
200 CHECK(context);
202 callbacked_wrapper_t* wrapper = (callbacked_wrapper_t*)context;
/system/bt/osi/include/
H A Dsocket.h30 typedef void (*socket_cb)(socket_t* socket, void* context);
101 // be called. The |context| parameter is passed, untouched, to each of the
103 // |write_cb|, and |context| may be NULL.
104 void socket_register(socket_t* socket, reactor_t* reactor, void* context,
/system/bt/stack/btu/
H A Dbtu_init.cc50 void btu_task_start_up(void* context);
51 void btu_task_shut_down(void* context);
H A Dbtu_task.cc88 void btu_message_loop_run(UNUSED_ATTR void* context) { argument
106 void btu_task_start_up(UNUSED_ATTR void* context) { argument
136 void btu_task_shut_down(UNUSED_ATTR void* context) { argument
/system/keymaster/
H A Daes_key.h31 explicit AesKeyFactory(const KeymasterContext* context) : SymmetricKeyFactory(context) {} argument
H A Dhmac_key.h30 explicit HmacKeyFactory(const KeymasterContext* context) : SymmetricKeyFactory(context) {} argument
H A Dasymmetric_key.h36 keymaster_error_t GenerateAttestation(const KeymasterContext& context,
H A Dattestation_record.h47 const KeymasterContext& context,
/system/keymaster/include/keymaster/
H A Dasymmetric_key_factory.h30 explicit AsymmetricKeyFactory(const KeymasterContext* context) : KeyFactory(context) {} argument
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
H A DTestLogger.java28 public TestLogger(Context context) { argument
30 mLogFile = new PrintWriter(context.openFileOutput(
/system/tpm/tpm_manager/server/
H A Dorg.chromium.TpmManager.conf13 <policy context="default">
/system/bt/embdrv/sbc/decoder/srce/
H A Ddecoder-private.c45 INLINE OI_STATUS internal_DecoderReset(OI_CODEC_SBC_DECODER_CONTEXT* context, argument
53 for (i = 0; i < sizeof(*context); i++) {
54 ((char*)context)[i] = 0;
58 context->enhancedEnabled = enhanced ? TRUE : FALSE;
60 context->enhancedEnabled = FALSE;
66 status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes,
73 context->common.codecInfo = OI_Codec_Copyright;
74 context->common.maxBitneed = 0;
75 context->limitFrameFormat = FALSE;
76 OI_SBC_ExpandFrameFields(&context
178 OI_SBC_ReadSamples(OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BITSTREAM* global_bs) argument
[all...]
/system/bt/hci/include/
H A Dhci_layer.h66 typedef void (*command_complete_cb)(BT_HDR* response, void* context);
68 void* context);
79 command_status_cb status_cb, void* context);
/system/core/libusbhost/include/usbhost/
H A Dusbhost.h73 void usb_host_cleanup(struct usb_host_context *context);
76 int usb_host_get_fd(struct usb_host_context *context);
78 /* Call this to initialize the usb host 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/netd/server/
H A DMDnsSdListener.cpp72 Context *context = new Context(requestId, mListener); local
73 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context);
85 domain, &MDnsSdListenerDiscoverCallback, context);
102 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
104 int refNumber = context->mRefNumber;
108 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false);
128 context->mListener->sendBroadcast(respCode, msg, false);
164 Context *context = new Context(requestId, mListener); local
165 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context);
177 context);
195 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
220 Context *context = new Context(requestId, mListener); local
250 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
286 Context *context = new Context(requestId, mListener); local
315 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
346 Context *context = new Context(requestId, mListener); local
372 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
693 allocateServiceRef(int id, Context *context) argument
[all...]
/system/bt/embdrv/sbc/decoder/include/
H A Doi_codec_sbc.h233 /** Opaque parameter to decoding functions; maintains decoder context. */
259 * This function resets the decoder. The context must be reset when
263 * @param context Pointer to the decoder context structure to be reset.
272 OI_STATUS OI_CODEC_SBC_DecoderReset(OI_CODEC_SBC_DECODER_CONTEXT* context,
286 * @param context Pointer to the decoder context structure to be limited.
297 OI_STATUS OI_CODEC_SBC_DecoderLimit(OI_CODEC_SBC_DECODER_CONTEXT* context,
305 * @param context Decoder context structur
[all...]
/system/bt/hci/src/
H A Dhci_inject.cc53 static void accept_ready(socket_t* socket, void* context);
54 static void read_ready(socket_t* socket, void* context);
127 static void accept_ready(socket_t* socket, UNUSED_ATTR void* context) { argument
147 static void read_ready(UNUSED_ATTR socket_t* socket, void* context) { argument
149 CHECK(context != NULL);
151 client_t* client = (client_t*)context;
/system/bt/stack/test/
H A Dstack_btu_test.cc63 void btu_message_loop_run(void* context);
64 void btu_task_start_up(void* context);
65 void btu_task_shut_down(void* context);
/system/core/liblog/
H A Dpmsg_writer.c45 .context.fd = -1,
54 int fd = atomic_load(&pmsgLoggerWrite.context.fd);
59 i = atomic_exchange(&pmsgLoggerWrite.context.fd, fd);
69 int fd = atomic_exchange(&pmsgLoggerWrite.context.fd, -1);
83 if (atomic_load(&pmsgLoggerWrite.context.fd) < 0) {
118 if (atomic_load(&pmsgLoggerWrite.context.fd) < 0) {
173 writev(atomic_load(&pmsgLoggerWrite.context.fd), newVec, i));
274 if (atomic_load(&pmsgLoggerWrite.context.fd) < 0) {
278 weOpened = atomic_load(&pmsgLoggerWrite.context.fd) < 0;

Completed in 327 milliseconds

123456