/system/core/liblog/ |
D | log_event_list.cpp | 53 static void init_context(android_log_context_internal* context, uint32_t tag) { in init_context() argument 56 context->tag = tag; in init_context() 57 context->read_write_flag = kAndroidLoggerWrite; in init_context() 59 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in init_context() 60 context->overflow = true; in init_context() 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in init_context() 64 context->list[0] = context->pos + 1; in init_context() 65 context->pos += needed; in init_context() 68 static void init_parser_context(android_log_context_internal* context, const char* msg, in init_parser_context() argument 71 context->len = len; in init_parser_context() [all …]
|
/system/core/logcat/ |
D | logcat.cpp | 130 android_logcat_context_internal* context; in create_android_logcat() local 132 context = (android_logcat_context_internal*)calloc( in create_android_logcat() 134 if (!context) return nullptr; in create_android_logcat() 136 context->fds[0] = -1; in create_android_logcat() 137 context->fds[1] = -1; in create_android_logcat() 138 context->output_fd = -1; in create_android_logcat() 139 context->error_fd = -1; in create_android_logcat() 140 context->maxRotatedLogs = DEFAULT_MAX_ROTATED_LOGS; in create_android_logcat() 142 context->argv_hold.clear(); in create_android_logcat() 143 context->args.clear(); in create_android_logcat() [all …]
|
/system/core/property_service/libpropertyinfoserializer/ |
D | property_info_serializer_test.cpp | 48 EXPECT_STREQ("default", property_info_area->context(root_node.context_index())); in TEST() 61 EXPECT_STREQ("1st", property_info_area->context(test_node.context_index())); in TEST() 71 EXPECT_STREQ("2nd", property_info_area->context(prefix->context_index)); in TEST() 84 EXPECT_STREQ("3rd", property_info_area->context(match1->context_index)); in TEST() 85 EXPECT_STREQ("3rd", property_info_area->context(match2->context_index)); in TEST() 86 EXPECT_STREQ("3rd", property_info_area->context(match3->context_index)); in TEST() 122 EXPECT_STREQ("4th", property_info_area->context(final_match->context_index)); in TEST() 145 EXPECT_STREQ("default", property_info_area->context(root_node.context_index())); in TEST() 148 const char* context; in TEST() local 150 property_info_area->GetPropertyInfo("abc", &context, &type); in TEST() [all …]
|
D | trie_builder.h | 29 PropertyEntryBuilder() : context(nullptr), type(nullptr) {} in PropertyEntryBuilder() 30 PropertyEntryBuilder(const std::string& name, const std::string* context, const std::string* type) in PropertyEntryBuilder() 31 : name(name), context(context), type(type) {} in PropertyEntryBuilder() 33 const std::string* context; member 57 bool AddPrefixContext(const std::string& prefix, const std::string* context, in AddPrefixContext() argument 64 prefixes_.emplace_back(prefix, context, type); in AddPrefixContext() 68 bool AddExactMatchContext(const std::string& exact_match, const std::string* context, in AddExactMatchContext() argument 76 exact_matches_.emplace_back(exact_match, context, type); in AddExactMatchContext() 81 const std::string* context() const { return property_entry_.context; } in context() function 82 void set_context(const std::string* context) { property_entry_.context = context; } in set_context() argument [all …]
|
D | trie_builder_test.cpp | 43 ASSERT_NE(nullptr, builder_root.context()); in TEST() 44 EXPECT_EQ("default", *builder_root.context()); in TEST() 56 ASSERT_NE(nullptr, test_node->context()); in TEST() 57 EXPECT_EQ("1st", *test_node->context()); in TEST() 66 ASSERT_NE(nullptr, property_entry.context); in TEST() 67 EXPECT_EQ("2nd", *property_entry.context); in TEST() 76 ASSERT_NE(nullptr, test_node->exact_matches()[0].context); in TEST() 77 ASSERT_NE(nullptr, test_node->exact_matches()[1].context); in TEST() 78 ASSERT_NE(nullptr, test_node->exact_matches()[2].context); in TEST() 79 EXPECT_EQ("3rd", *test_node->exact_matches()[0].context); in TEST() [all …]
|
D | trie_builder.cpp | 34 bool TrieBuilder::AddToTrie(const std::string& name, const std::string& context, in AddToTrie() argument 36 auto* context_pointer = StringPointerFromContainer(context, &contexts_); in AddToTrie() 41 bool TrieBuilder::AddToTrie(const std::string& name, const std::string* context, in AddToTrie() argument 69 if (!current_node->AddExactMatchContext(name_pieces.front(), context, type)) { in AddToTrie() 74 if (!current_node->AddPrefixContext(name_pieces.front(), context, type)) { in AddToTrie() 87 if (child->context() != nullptr || child->type() != nullptr) { in AddToTrie() 91 child->set_context(context); in AddToTrie()
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | decoder-sbc.c | 41 PRIVATE OI_STATUS FindSyncword(OI_CODEC_SBC_DECODER_CONTEXT* context, in FindSyncword() argument 54 if (context->limitFrameFormat && context->enhancedEnabled) { in FindSyncword() 57 } else if (context->enhancedEnabled == FALSE) { in FindSyncword() 69 context->common.frameInfo.enhanced = in FindSyncword() 87 context->common.frameInfo.enhanced = FALSE; in FindSyncword() 98 static OI_STATUS DecodeBody(OI_CODEC_SBC_DECODER_CONTEXT* context, in DecodeBody() argument 102 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * in DecodeBody() 103 context->common.frameInfo.nrof_subbands; in DecodeBody() 111 (sizeof(int16_t) * frameSamples * context->common.pcmStride) && in DecodeBody() 118 context->common.frameInfo.nrof_subbands * in DecodeBody() [all …]
|
D | decoder-oina.c | 39 OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BOOL enhanced, uint8_t frequency, in OI_CODEC_SBC_DecoderConfigureRaw() argument 73 context->common.frameInfo.enhanced = enhanced; in OI_CODEC_SBC_DecoderConfigureRaw() 75 context->common.frameInfo.enhanced = FALSE; in OI_CODEC_SBC_DecoderConfigureRaw() 77 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw() 78 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw() 79 context->common.frameInfo.subbands = subbands; in OI_CODEC_SBC_DecoderConfigureRaw() 80 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw() 81 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw() 82 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw() 84 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in OI_CODEC_SBC_DecoderConfigureRaw() [all …]
|
D | synthesis-sbc.c | 254 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, in OI_SBC_SynthFrame_80() argument 281 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80() 282 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1; in OI_SBC_SynthFrame_80() 283 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80() 284 int32_t* s = context->common.subdata + 8 * nrof_channels * blkstart; in OI_SBC_SynthFrame_80() 290 context->common.filterBuffer[0] + context->common.filterBufferLen - in OI_SBC_SynthFrame_80() 292 context->common.filterBuffer[0]); in OI_SBC_SynthFrame_80() 295 context->common.filterBuffer[1] + context->common.filterBufferLen - in OI_SBC_SynthFrame_80() 297 context->common.filterBuffer[1]); in OI_SBC_SynthFrame_80() [all …]
|
D | decoder-private.c | 45 INLINE OI_STATUS internal_DecoderReset(OI_CODEC_SBC_DECODER_CONTEXT* context, in internal_DecoderReset() argument 53 for (i = 0; i < sizeof(*context); i++) { in internal_DecoderReset() 54 ((char*)context)[i] = 0; in internal_DecoderReset() 58 context->enhancedEnabled = enhanced ? TRUE : FALSE; in internal_DecoderReset() 60 context->enhancedEnabled = FALSE; in internal_DecoderReset() 66 status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, in internal_DecoderReset() 73 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset() 74 context->common.maxBitneed = 0; in internal_DecoderReset() 75 context->limitFrameFormat = FALSE; in internal_DecoderReset() 76 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset() [all …]
|
/system/core/libstats/ |
D | stats_event_list.c | 52 android_log_context_internal* context = (android_log_context_internal*)(ctx); in reset_log_context() local 53 uint32_t tag = context->tag; in reset_log_context() 54 memset(context, 0, sizeof(android_log_context_internal)); in reset_log_context() 56 context->tag = tag; in reset_log_context() 57 context->read_write_flag = kAndroidLoggerWrite; in reset_log_context() 59 if ((context->pos + needed) > MAX_EVENT_PAYLOAD) { in reset_log_context() 60 context->overflow = true; in reset_log_context() 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in reset_log_context() 64 context->list[0] = context->pos + 1; in reset_log_context() 65 context->pos += needed; in reset_log_context() [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 144 static void watch_existing_subdirs(struct usb_host_context *context, in watch_existing_subdirs() argument 150 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE); in watch_existing_subdirs() 157 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE); in watch_existing_subdirs() 165 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); in usb_host_init() local 166 if (!context) { in usb_host_init() 170 context->fd = inotify_init(); in usb_host_init() 171 if (context->fd < 0) { in usb_host_init() 173 free(context); in usb_host_init() 176 return context; in usb_host_init() 179 void usb_host_cleanup(struct usb_host_context *context) in usb_host_cleanup() argument [all …]
|
/system/media/audio_utils/tests/ |
D | fifo_threads.cpp | 37 Context *context = (Context *) arg; in input_routine() local 43 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); in input_routine() 50 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine() 68 Context *context = (Context *) arg; in output_routine() local 78 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine() 84 ssize_t actual2 = context->mOutputWriter->write(buffer, actual, NULL /*timeout*/); in output_routine() 124 Context context; in main() local 125 context.mInputWriter = &inputWriter; in main() 126 context.mInputReader = &inputReader; in main() 127 context.mTransferWriter = &transferWriter; in main() [all …]
|
/system/core/init/ |
D | builtin_arguments.h | 27 BuiltinArguments(const std::string& context) : context(context) {} in BuiltinArguments() 28 BuiltinArguments(std::vector<std::string> args, const std::string& context) in BuiltinArguments() 29 : args(std::move(args)), context(context) {} in BuiltinArguments() 37 const std::string& context; member
|
D | descriptors.h | 31 gid_t gid, int perm, const std::string& context); 46 const std::string& context() const { return context_; } in context() function 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;
|
D | descriptors.cpp | 37 gid_t gid, int perm, const std::string& context) in DescriptorInfo() argument 38 : name_(name), type_(type), uid_(uid), gid_(gid), perm_(perm), context_(context) { in DescriptorInfo() 74 gid_t gid, int perm, const std::string& context) in SocketInfo() argument 75 : DescriptorInfo(name, type, uid, gid, perm, context) { in SocketInfo() 83 int SocketInfo::Create(const std::string& context) const { in Create() 88 return CreateSocket(name().c_str(), flags, passcred, perm(), uid(), gid(), context.c_str()); in Create() 96 gid_t gid, int perm, const std::string& context) in FileInfo() argument 98 : DescriptorInfo(name, type, uid, gid, perm, context) { in FileInfo()
|
/system/bt/btif/src/ |
D | stack_manager.cc | 50 static void event_init_stack(void* context); 51 static void event_start_up_stack(void* context); 52 static void event_shut_down_stack(void* context); 53 static void event_clean_up_stack(void* context); 55 static void event_signal_stack_up(void* context); 56 static void event_signal_stack_down(void* context); 103 static void event_init_stack(void* context) { in event_init_stack() argument 104 semaphore_t* semaphore = (semaphore_t*)context; in event_init_stack() 138 static void event_start_up_stack(UNUSED_ATTR void* context) { in event_start_up_stack() argument 167 static void event_shut_down_stack(UNUSED_ATTR void* context) { in event_shut_down_stack() argument [all …]
|
/system/bt/osi/include/ |
D | reactor.h | 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));
|
/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/ |
D | AutoFitTextureView.java | 31 public AutoFitTextureView(Context context) { in AutoFitTextureView() argument 32 this(context, null); in AutoFitTextureView() 35 public AutoFitTextureView(Context context, AttributeSet attrs) { in AutoFitTextureView() argument 36 this(context, attrs, 0); in AutoFitTextureView() 39 public AutoFitTextureView(Context context, AttributeSet attrs, int defStyle) { in AutoFitTextureView() argument 40 super(context, attrs, defStyle); in AutoFitTextureView()
|
/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); 47 void* context);
|
/system/bt/osi/src/ |
D | socket.cc | 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); 195 void socket_register(socket_t* socket, reactor_t* reactor, void* context, in socket_register() argument 204 socket->context = context; in socket_register() 220 static void internal_read_ready(void* context) { in internal_read_ready() argument 221 CHECK(context != NULL); in internal_read_ready() 223 socket_t* socket = static_cast<socket_t*>(context); in internal_read_ready() 224 socket->read_ready(socket, socket->context); in internal_read_ready() 227 static void internal_write_ready(void* context) { in internal_write_ready() argument [all …]
|
D | thread.cc | 59 void* context; member 63 static void work_queue_read_cb(void* context); 126 bool thread_post(thread_t* thread, thread_fn func, void* context) { in thread_post() argument 138 item->context = context; in thread_post() 217 void* context = thread->work_queue; in run_thread() local 220 reactor_register(thread->reactor, fd, context, work_queue_read_cb, NULL); in run_thread() 231 item->func(item->context); in run_thread() 246 static void work_queue_read_cb(void* context) { in work_queue_read_cb() argument 247 CHECK(context != NULL); in work_queue_read_cb() 249 fixed_queue_t* queue = (fixed_queue_t*)context; in work_queue_read_cb() [all …]
|
/system/core/libunwindstack/ |
D | RegsX86.cpp | 142 struct x86_mcontext_t context; in StepIfSignalHandler() local 143 if (!process_memory->ReadFully(regs_[X86_REG_SP] + 4, &context, sizeof(context))) { in StepIfSignalHandler() 146 regs_[X86_REG_EBP] = context.ebp; in StepIfSignalHandler() 147 regs_[X86_REG_ESP] = context.esp; in StepIfSignalHandler() 148 regs_[X86_REG_EBX] = context.ebx; in StepIfSignalHandler() 149 regs_[X86_REG_EDX] = context.edx; in StepIfSignalHandler() 150 regs_[X86_REG_ECX] = context.ecx; in StepIfSignalHandler() 151 regs_[X86_REG_EAX] = context.eax; in StepIfSignalHandler() 152 regs_[X86_REG_EIP] = context.eip; in StepIfSignalHandler()
|
/system/netd/server/ |
D | MDnsSdListener.cpp | 76 Context *context = new Context(requestId, mListener); in discover() local 77 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in discover() 89 domain, &MDnsSdListenerDiscoverCallback, context); in discover() 106 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); in MDnsSdListenerDiscoverCallback() local 108 int refNumber = context->mRefNumber; in MDnsSdListenerDiscoverCallback() 112 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback() 132 context->mListener->sendBroadcast(respCode, msg, false); in MDnsSdListenerDiscoverCallback() 168 Context *context = new Context(requestId, mListener); in serviceRegister() local 169 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in serviceRegister() 181 context); in serviceRegister() [all …]
|
/system/sepolicy/tests/ |
D | FcSort.py | 8 context = None variable in FileContextsNode 14 def __init__(self, path, fileType, context, meta, stemLen, strLen): argument 17 self.context = context 21 self.Type = context.split(":")[2] 60 context = split[-1].strip() 68 return FileContextsNode(path, fileType, context, meta, stemLen, strLen)
|