unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
165,642
0
std::wstring GetBaseAppName() { return InstallDetails::Get().mode().base_app_name; }
600
128,190
0
void Notification::dispatchCloseEvent() { if (m_state != NotificationStateShowing && m_state != NotificationStateClosing) return; m_state = NotificationStateClosed; dispatchEvent(Event::create(EventTypeNames::close)); }
601
173,682
0
void ATSParser::Program::signalDiscontinuity( DiscontinuityType type, const sp<AMessage> &extra) { int64_t mediaTimeUs; if ((type & DISCONTINUITY_TIME) && extra != NULL && extra->findInt64( IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { mFirstPTSValid = false; } for (size_t i = 0; i < mStreams.size...
602
53,345
0
static int lex_get(lex_t *lex, json_error_t *error) { return stream_get(&lex->stream, error); }
603
19,914
0
static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct nfs_fattr *fattr, struct nfs_fh *fhandle) { int status = -ENOMEM; struct page *page = NULL; struct nfs4_fs_locations *locations = NULL; page = alloc_page(GFP_KERNEL); if (page == NULL) goto out; locations = kmalloc(sizeof(s...
604
120,745
0
void BaseMultipleFieldsDateAndTimeInputType::updateClearButtonVisibility() { ClearButtonElement* clearButton = clearButtonElement(); if (!clearButton) return; if (element()->isRequired() || !dateTimeEditElement()->anyEditableFieldsHaveValues()) clearButton->setInlineStyleProperty(CSSPropert...
605
73,371
0
init_render_context(ASS_Renderer *render_priv, ASS_Event *event) { render_priv->state.event = event; render_priv->state.parsed_tags = 0; render_priv->state.has_clips = 0; render_priv->state.evt_type = EVENT_NORMAL; reset_render_context(render_priv, NULL); render_priv->state.wrap_style = render_...
606
44,290
0
static int fill_thread_core_info(struct elf_thread_core_info *t, const struct user_regset_view *view, long signr, size_t *total) { unsigned int i; /* * NT_PRSTATUS is the one special case, because the regset data * goes into the pr_reg field inside the note contents, rather * than being the whole not...
607
178,422
1
int BN_hex2bn(BIGNUM **bn, const char *a) { BIGNUM *ret = NULL; BN_ULONG l = 0; int neg = 0, h, m, i, j, k, c; int num; if ((a == NULL) || (*a == '\0')) return (0); if (*a == '-') { neg = 1; a++; a++; } for (i = 0; isxdigit((unsigned char)a[i]); i++) ; num = i + neg; if (bn == NULL) return (0); } else { ret = *...
608
151,285
0
void* AsyncId(unsigned long identifier) { return reinterpret_cast<void*>((identifier << 1) | 1); }
609
43,818
0
make_NegHints(OM_uint32 *minor_status, gss_buffer_t *outbuf) { OM_uint32 major_status; unsigned int tlen = 0; unsigned int hintNameSize = 0; unsigned char *ptr; unsigned char *t; const char *hintname = "not_defined_in_RFC4178@please_ignore"; const size_t hintname_len = strlen(hintname); *outbuf = GSS_C_NO_BUFF...
610
123,070
0
void RenderWidgetHostImpl::TickActiveSmoothScrollGesture() { TRACE_EVENT0("input", "RenderWidgetHostImpl::TickActiveSmoothScrollGesture"); tick_active_smooth_scroll_gestures_task_posted_ = false; if (active_smooth_scroll_gestures_.empty()) { TRACE_EVENT_INSTANT0("input", "EarlyOut_NoActiveScrollGesture"); ...
611
68,368
0
void perf_event_mmap(struct vm_area_struct *vma) { struct perf_mmap_event mmap_event; if (!atomic_read(&nr_mmap_events)) return; mmap_event = (struct perf_mmap_event){ .vma = vma, /* .file_name */ /* .file_size */ .event_id = { .header = { .type = PERF_RECORD_MMAP, .misc = PERF_RECORD_MISC_US...
612
136,934
0
double HTMLInputElement::Minimum() const { return input_type_->Minimum(); }
613
134,012
0
AppListControllerDelegate* ExtensionAppItem::GetController() { return AppListService::Get(chrome::GetActiveDesktop())-> GetControllerDelegate(); }
614
179,643
1
static void ikev2_parent_inI2outR2_continue(struct pluto_crypto_req_cont *pcrc, struct pluto_crypto_req *r, err_t ugh) { struct dh_continuation *dh = (struct dh_continuation *)pcrc; struct msg_digest *md = dh->md; struct state *const st = md->st; stf_status e; DBG(DBG_CONTROLMORE, DBG_log("ikev2 parent inI2outR2: calc...
615
5,783
0
static void ehci_detach(USBPort *port) { EHCIState *s = port->opaque; uint32_t *portsc = &s->portsc[port->index]; const char *owner = (*portsc & PORTSC_POWNER) ? "comp" : "ehci"; trace_usb_ehci_port_detach(port->index, owner); if (*portsc & PORTSC_POWNER) { USBPort *companion = s->companio...
616
185,602
1
void EnableHighDPISupport() { if (IsHighDPIEnabled() && (base::win::GetVersion() < base::win::VERSION_WIN8_1)) { if (!SetProcessDpiAwarenessWrapper(PROCESS_SYSTEM_DPI_AWARE)) { SetProcessDPIAwareWrapper(); } } }
617
53,533
0
archive_read_format_7zip_bid(struct archive_read *a, int best_bid) { const char *p; /* If someone has already bid more than 32, then avoid trashing the look-ahead buffers with a seek. */ if (best_bid > 32) return (-1); if ((p = __archive_read_ahead(a, 6, NULL)) == NULL) return (0); /* If first six bytes...
618
106,779
0
IntRect WebView::windowToScreen(const IntRect& rect) { return rect; }
619
36,619
0
static bool send_version(struct pool *pool, json_t *val) { char s[RBUFSIZE]; int id = json_integer_value(json_object_get(val, "id")); if (!id) return false; sprintf(s, "{\"id\": %d, \"result\": \""PACKAGE"/"VERSION"\", \"error\": null}", id); if (!stratum_send(pool, s, strlen(s))) return false; return true...
620
81,299
0
static int instance_mkdir(const char *name) { struct trace_array *tr; int ret; mutex_lock(&event_mutex); mutex_lock(&trace_types_lock); ret = -EEXIST; list_for_each_entry(tr, &ftrace_trace_arrays, list) { if (tr->name && strcmp(tr->name, name) == 0) goto out_unlock; } ret = -ENOMEM; tr = kzalloc(sizeof...
621
24,574
0
static int setup_rx_descbuffer(struct b43_dmaring *ring, struct b43_dmadesc_generic *desc, struct b43_dmadesc_meta *meta, gfp_t gfp_flags) { dma_addr_t dmaaddr; struct sk_buff *skb; B43_WARN_ON(ring->tx); skb = __dev_alloc_skb(ring->rx_buffersize, gfp_flags); if (unlikely(!skb)) return -ENO...
622
1,786
0
int main(int argc, char **argv) { char c; int i = unpack_bz2_stream(0, 1); if (i < 0) fprintf(stderr, "%s\n", bunzip_errors[-i]); else if (read(STDIN_FILENO, &c, 1)) fprintf(stderr, "Trailing garbage ignored\n"); return -i; }
623
117,204
0
void Texture::Create() { ScopedGLErrorSuppressor suppressor(decoder_); Destroy(); glGenTextures(1, &id_); ScopedTexture2DBinder binder(decoder_, id_); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TE...
624
133,119
0
LRESULT HWNDMessageHandler::OnGetObject(UINT message, WPARAM w_param, LPARAM l_param) { LRESULT reference_result = static_cast<LRESULT>(0L); if (OBJID_CLIENT == l_param) { base::win::ScopedComPtr<IAccessible> root( delegate...
625
118,469
0
int RenderFrameImpl::ShowContextMenu(ContextMenuClient* client, const ContextMenuParams& params) { DCHECK(client); // A null client means "internal" when we issue callbacks. ContextMenuParams our_params(params); our_params.custom_context.request_id = pending_context_menus_.Ad...
626
120,702
0
WebviewInfo::~WebviewInfo() { }
627
148,275
0
PrintingContextDelegate::PrintingContextDelegate(int render_process_id, int render_frame_id) : render_process_id_(render_process_id), render_frame_id_(render_frame_id) {}
628
188,453
1
void Segment::PreloadCluster(Cluster* pCluster, ptrdiff_t idx) { assert(pCluster); assert(pCluster->m_index < 0); assert(idx >= m_clusterCount); const long count = m_clusterCount + m_clusterPreloadCount; long& size = m_clusterSize; assert(size >= count); if (count >= size) { cons...
629
128,515
0
ShellSurface::ShellSurface(Surface* surface, ShellSurface* parent, const gfx::Rect& initial_bounds, bool activatable, int container) : widget_(nullptr), surface_(surface), parent_(parent ? parent-...
630
175,036
0
status_t MPEG4Extractor::parseDrmSINF(off64_t *offset, off64_t data_offset) { uint8_t updateIdTag; if (mDataSource->readAt(data_offset, &updateIdTag, 1) < 1) { return ERROR_IO; } data_offset ++; if (0x01/*OBJECT_DESCRIPTOR_UPDATE_ID_TAG*/ != updateIdTag) { return ERROR_MALFORMED; } uint8_t numOfBytes; in...
631
33,003
0
static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optlen) { if (len < sizeof(struct sctp_initmsg)) return -EINVAL; len = sizeof(struct sctp_initmsg); if (put_user(len, optlen)) return -EFAULT; if (copy_to_user(optval, &sctp_sk(sk)->initmsg, len)) return -EFAULT; re...
632
167,004
0
void CopyReplacedNavigationEntryDataIfPreviouslyEmpty( const NavigationEntryImpl& replaced_entry, NavigationEntryImpl* output_entry) { if (output_entry->GetReplacedEntryData().has_value()) return; ReplacedNavigationEntryData data; data.first_committed_url = replaced_entry.GetURL(); data.first_times...
633
37,488
0
void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot) { struct kvm_memory_slot *memslot; gfn_t last_gfn; int i; memslot = id_to_memslot(kvm->memslots, slot); last_gfn = memslot->base_gfn + memslot->npages - 1; spin_lock(&kvm->mmu_lock); for (i = PT_PAGE_TABLE_LEVEL; i < PT_PAGE_TABLE_LEVEL + ...
634
21,042
0
static int mem_cgroup_charge_common(struct page *page, struct mm_struct *mm, gfp_t gfp_mask, enum charge_type ctype) { struct mem_cgroup *memcg = NULL; unsigned int nr_pages = 1; struct page_cgroup *pc; bool oom = true; int ret; if (PageTransHuge(page)) { nr_pages <<= compound_order(page); VM_BUG_ON(!Pag...
635
152,317
0
void RenderFrameImpl::FrameDetached(DetachType type) { for (auto& observer : observers_) observer.FrameDetached(); SendUpdateState(); if (type == DetachType::kRemove) Send(new FrameHostMsg_Detach(routing_id_)); GetLocalRootRenderWidget()->UnregisterRenderFrame(this); if (is_main_frame_) { rende...
636
53,348
0
static void lex_save(lex_t *lex, int c) { strbuffer_append_byte(&lex->saved_text, c); }
637
135,830
0
Document& SelectionEditor::GetDocument() const { DCHECK(LifecycleContext()); return *LifecycleContext(); }
638
144,970
0
void RemoveAncestorObservers() { for (auto* ancestor : ancestors_) ancestor->RemoveObserver(this); ancestors_.clear(); }
639
76,965
0
format_alg(int port, struct ds *s) { switch(port) { case IPPORT_FTP: ds_put_format(s, "%salg=%sftp,", colors.param, colors.end); break; case IPPORT_TFTP: ds_put_format(s, "%salg=%stftp,", colors.param, colors.end); break; case 0: /* Don't print. */ break; ...
640
156
0
static EVP_PKEY * php_openssl_generate_private_key(struct php_x509_request * req TSRMLS_DC) { char * randfile = NULL; int egdsocket, seeded; EVP_PKEY * return_val = NULL; if (req->priv_key_bits < MIN_KEY_LENGTH) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key length is too short; it needs to be at le...
641
64,179
0
AP_CORE_DECLARE(void) ap_add_per_url_conf(server_rec *s, void *url_config) { core_server_config *sconf = ap_get_core_module_config(s->module_config); void **new_space = (void **)apr_array_push(sconf->sec_url); *new_space = url_config; }
642
58,317
0
static int __init atomic_pool_init(void) { struct dma_pool *pool = &atomic_pool; pgprot_t prot = pgprot_dmacoherent(pgprot_kernel); gfp_t gfp = GFP_KERNEL | GFP_DMA; unsigned long nr_pages = pool->size >> PAGE_SHIFT; unsigned long *bitmap; struct page *page; struct page **pages; void *ptr; int bitmap_size = BI...
643
2,738
0
_dbus_header_cache_invalidate_all (DBusHeader *header) { int i; i = 0; while (i <= DBUS_HEADER_FIELD_LAST) { header->fields[i].value_pos = _DBUS_HEADER_FIELD_VALUE_UNKNOWN; ++i; } }
644
111,453
0
static VirtualKeyboardType convertStringToKeyboardType(const AtomicString& string) { DEFINE_STATIC_LOCAL(AtomicString, Default, ("default")); DEFINE_STATIC_LOCAL(AtomicString, Url, ("url")); DEFINE_STATIC_LOCAL(AtomicString, Email, ("email")); DEFINE_STATIC_LOCAL(AtomicString, Password, ("password")); ...
645
61,404
0
static int mov_probe(AVProbeData *p) { int64_t offset; uint32_t tag; int score = 0; int moov_offset = -1; /* check file header */ offset = 0; for (;;) { /* ignore invalid offset */ if ((offset + 8) > (unsigned int)p->buf_size) break; tag = AV_RL32(p->buf ...
646
185,343
1
bool Instance::HandleInputEvent(const pp::InputEvent& event) { pp::InputEvent event_device_res(event); { pp::MouseInputEvent mouse_event(event); if (!mouse_event.is_null()) { pp::Point point = mouse_event.GetPosition(); pp::Point movement = mouse_event.GetMovement(); ScalePoint(device_scal...
647
138,041
0
AccessibilityRole AXNodeObject::determineAccessibilityRole() { if (!getNode()) return UnknownRole; if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) return m_ariaRole; if (getNode()->isTextNode()) return StaticTextRole; AccessibilityRole role = nativeAccessibilityRoleIgnoringAria(); ...
648
84,649
0
table_border_width(struct table *t) { switch (t->border_mode) { case BORDER_THIN: case BORDER_THICK: return t->maxcol * t->cellspacing + 2 * (RULE_WIDTH + t->cellpadding); case BORDER_NOWIN: case BORDER_NONE: return t->maxcol * t->cellspacing; default: /* not reached */ return 0; } }
649
8,954
0
static void net_tx_pkt_do_sw_csum(struct NetTxPkt *pkt) { struct iovec *iov = &pkt->vec[NET_TX_PKT_L2HDR_FRAG]; uint32_t csum_cntr; uint16_t csum = 0; uint32_t cso; /* num of iovec without vhdr */ uint32_t iov_len = pkt->payload_frags + NET_TX_PKT_PL_START_FRAG - 1; uint16_t csl; struct ...
650
27,024
0
static void delayed_calls_add(int type, gpointer data) { DelayedCall *dcall = NPW_MemNew(DelayedCall, 1); if (dcall == NULL) return; dcall->type = type; dcall->data = data; g_delayed_calls = g_list_append(g_delayed_calls, dcall); if (g_delayed_calls_id == 0) g_delayed_calls_id = g_idle_add_full(G_PRIORIT...
651
35,170
0
int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info) { int signr; /* We only dequeue private signals from ourselves, we don't let * signalfd steal them */ signr = __dequeue_signal(&tsk->pending, mask, info); if (!signr) { signr = __dequeue_signal(&tsk->signal->shared_pending, ma...
652
21,700
0
static inline int try_get_ioctx(struct kioctx *kioctx) { return atomic_inc_not_zero(&kioctx->users); }
653
59,305
0
void set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file) { struct file *old_exe_file; /* * It is safe to dereference the exe_file without RCU as * this function is only called if nobody else can access * this mm -- see comment above for justification. */ old_exe_file = rcu_dereference_raw(mm->e...
654
141,062
0
Document& Document::EnsureTemplateDocument() { if (IsTemplateDocument()) return *this; if (template_document_) return *template_document_; if (IsHTMLDocument()) { template_document_ = HTMLDocument::Create(DocumentInit::Create() .WithContextDocument(ContextDoc...
655
132,045
0
void LayoutBlockFlow::checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight) { if (LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread()) { LayoutUnit columnHeight; if (hasDefiniteLogicalHeight() || isLayo...
656
112,000
0
bool SyncTest::ServerSupportsErrorTriggering() const { EXPECT_NE(SERVER_TYPE_UNDECIDED, server_type_); return server_type_ == LOCAL_PYTHON_SERVER; }
657
1,917
0
void reds_on_main_agent_start(MainChannelClient *mcc, uint32_t num_tokens) { SpiceCharDeviceState *dev_state = reds->agent_state.base; RedChannelClient *rcc; if (!vdagent) { return; } spice_assert(vdagent->st && vdagent->st == dev_state); rcc = main_channel_client_get_base(mcc); red...
658
49,625
0
static int ffs_func_setup(struct usb_function *f, const struct usb_ctrlrequest *creq) { struct ffs_function *func = ffs_func_from_usb(f); struct ffs_data *ffs = func->ffs; unsigned long flags; int ret; ENTER(); pr_vdebug("creq->bRequestType = %02x\n", creq->bRequestType); pr_vdebug("creq->bRequest = %...
659
42,615
0
int __udp6_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, int proto) { struct net *net = dev_net(skb->dev); struct sock *sk; struct udphdr *uh; const struct in6_addr *saddr, *daddr; u32 ulen = 0; if (!pskb_may_pull(skb, sizeof(struct udphdr))) goto discard; saddr = &ipv6_hdr(skb)->saddr; dadd...
660
72,340
0
cleanup_handler(int sig) { cleanup_socket(); #ifdef ENABLE_PKCS11 pkcs11_terminate(); #endif _exit(2); }
661
77,711
0
ofputil_uninit_group_desc(struct ofputil_group_desc *gd) { ofputil_bucket_list_destroy(&gd->buckets); ofputil_group_properties_destroy(&gd->props); }
662
36,160
0
static void mk_request_premature_close(int http_status, struct client_session *cs) { struct session_request *sr; struct mk_list *sr_list = &cs->request_list; struct mk_list *host_list = &config->hosts; /* * If the connection is too premature, we need to allocate a temporal session_request * t...
663
69,875
0
set_streams_blocked_on_circ(circuit_t *circ, channel_t *chan, int block, streamid_t stream_id) { edge_connection_t *edge = NULL; int n = 0; if (circ->n_chan == chan) { circ->streams_blocked_on_n_chan = block; if (CIRCUIT_IS_ORIGIN(circ)) edge = TO_ORIGIN_CIRCUIT(circ)->p_...
664
3,347
0
static void fdctrl_write_ccr(FDCtrl *fdctrl, uint32_t value) { /* Reset mode */ if (!(fdctrl->dor & FD_DOR_nRESET)) { FLOPPY_DPRINTF("Floppy controller in RESET state !\n"); return; } FLOPPY_DPRINTF("configuration control register set to 0x%02x\n", value); /* Only the rate selection...
665
113,520
0
void WebPage::touchPointAsMouseEvent(const Platform::TouchPoint& point, unsigned modifiers) { if (d->m_page->defersLoading()) return; if (d->m_fullScreenPluginView.get()) return; d->m_lastUserEventTimestamp = currentTime(); d->m_touchEventHandler->handleTouchPoint(point, modifiers); }...
666
77,243
0
handle_meter_features_request(struct ofconn *ofconn, const struct ofp_header *request) { struct ofproto *ofproto = ofconn_get_ofproto(ofconn); struct ofputil_meter_features features; struct ofpbuf *b; if (ofproto->ofproto_class->meter_get_features) { ofproto->ofpro...
667
175,596
0
status_t NuMediaExtractor::readSampleData(const sp<ABuffer> &buffer) { Mutex::Autolock autoLock(mLock); ssize_t minIndex = fetchTrackSamples(); if (minIndex < 0) { return ERROR_END_OF_STREAM; } TrackInfo *info = &mSelectedTracks.editItemAt(minIndex); size_t sampleSize = info->mSample->range_length(); if (i...
668
115,770
0
void SafeBrowsingBlockingPage::RecordUserAction(BlockingPageEvent event) { DictionaryValue strings; PopulateMultipleThreatStringDictionary(&strings); string16 title; bool success = strings.GetString("title", &title); DCHECK(success); std::string action = "SBInterstitial"; if (title == l10n_uti...
669
164,924
0
ResourceDispatcherHostImpl::CreateResourceHandlerForDownload( net::URLRequest* request, bool is_content_initiated, bool must_download, bool is_new_request) { DCHECK(!create_download_handler_intercept_.is_null()); std::unique_ptr<ResourceHandler> handler = create_download_handler_intercept_.Run...
670
129,410
0
error::Error GLES2DecoderImpl::HandleGetActiveUniform( uint32 immediate_data_size, const cmds::GetActiveUniform& c) { GLuint program_id = c.program; GLuint index = c.index; uint32 name_bucket_id = c.name_bucket_id; typedef cmds::GetActiveUniform::Result Result; Result* result = GetSharedMemoryAs<Result*>(...
671
84,385
0
flatpak_proxy_init (FlatpakProxy *proxy) { proxy->policy = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); proxy->filters = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)filter_list_free); proxy->wildcard_policy = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NUL...
672
9,651
0
static int php_check_dots(const char *element, int n) { while (n-- > 0) if (element[n] != '.') break; return (n != -1); }
673
57,728
0
int kvm_get_dr(struct kvm_vcpu *vcpu, int dr, unsigned long *val) { switch (dr) { case 0 ... 3: *val = vcpu->arch.db[dr]; break; case 4: /* fall through */ case 6: if (vcpu->guest_debug & KVM_GUESTDBG_USE_HW_BP) *val = vcpu->arch.dr6; else *val = kvm_x86_ops->get_dr6(vcpu); break; case 5: /* fa...
674
77,709
0
ofputil_switch_features_has_ports(struct ofpbuf *b) { struct ofp_header *oh = b->data; size_t phy_port_size; if (oh->version >= OFP13_VERSION) { /* OpenFlow 1.3+ never has ports in the feature reply. */ return false; } phy_port_size = (oh->version == OFP10_VERSION ...
675
134,844
0
void SetAllowableError(int amount) { allowable_error_ = amount; }
676
12,683
0
void DTLS_RECORD_LAYER_free(RECORD_LAYER *rl) { DTLS_RECORD_LAYER_clear(rl); pqueue_free(rl->d->unprocessed_rcds.q); pqueue_free(rl->d->processed_rcds.q); pqueue_free(rl->d->buffered_app_data.q); OPENSSL_free(rl->d); rl->d = NULL; }
677
135,312
0
void Document::notifyLayoutTreeOfSubtreeChanges() { if (!layoutView()->wasNotifiedOfSubtreeChange()) return; m_lifecycle.advanceTo(DocumentLifecycle::InLayoutSubtreeChange); layoutView()->handleSubtreeModifications(); ASSERT(!layoutView()->wasNotifiedOfSubtreeChange()); m_lifecycle.advanc...
678
50,993
0
static int do_proc_dointvec_ms_jiffies_conv(bool *negp, unsigned long *lvalp, int *valp, int write, void *data) { if (write) { unsigned long jif = msecs_to_jiffies(*negp ? -*lvalp : *lvalp); if (jif > INT_MAX) return 1; *valp = (int)jif; } else { int val = *valp; unsigned long lval; ...
679
154,027
0
void GLES2DecoderImpl::DoGetVertexAttribiv(GLuint index, GLenum pname, GLint* params, GLsizei params_size) { DoGetVertexAttribImpl<GLint>(index, pname, params); }
680
171,602
0
size_t strnlen32(const char32_t *s, size_t maxlen) { const char32_t *ss = s; while ((maxlen > 0) && *ss) { ss++; maxlen--; } return ss-s; }
681
32,227
0
u16 skb_tx_hash(const struct net_device *dev, const struct sk_buff *skb) { u32 hash; if (skb_rx_queue_recorded(skb)) { hash = skb_get_rx_queue(skb); while (unlikely(hash >= dev->real_num_tx_queues)) hash -= dev->real_num_tx_queues; return hash; } if (skb->sk && skb->sk->sk_hash) hash = skb->sk->sk_hash...
682
63,126
0
void Huff_setBloc(int _bloc) { bloc = _bloc; }
683
160,358
0
void NEVER_INLINE FreeList::checkFreedMemoryIsZapped(Address address, size_t size) { for (size_t i = 0; i < size; i++) { ASSERT(address[i] == reuseAllowedZapValue || address[i] == reuseForbiddenZapValue); } }
684
119,161
0
void XMLHttpRequest::clearResponseBuffers() { m_responseText.clear(); m_responseEncoding = String(); m_createdDocument = false; m_responseDocument = 0; m_responseBlob = 0; m_responseStream = 0; m_binaryResponseBuilder.clear(); m_responseArrayBuffer.clear(); }
685
15,756
0
static uint64_t ns_to_ticks(uint64_t value) { return (muldiv64(value, FS_PER_NS, HPET_CLK_PERIOD)); }
686
117,547
0
void BrightnessObserver::BrightnessChanged(int level, bool user_initiated) { if (user_initiated) BrightnessBubble::GetInstance()->ShowBubble(level, true); else BrightnessBubble::GetInstance()->UpdateWithoutShowingBubble(level, true); VolumeBubble::GetInstance()->HideBubble(); }
687
8,009
0
static void vnc_copy(VncState *vs, int src_x, int src_y, int dst_x, int dst_y, int w, int h) { /* send bitblit op to the vnc client */ vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); /* number of rects */ vnc_framebuffer_update...
688
161,984
0
void Create(service_manager::mojom::ServiceFactoryRequest request) { service_factory_bindings_.AddBinding(this, std::move(request)); }
689
1,852
0
void reds_client_disconnect(RedClient *client) { RedsMigTargetClient *mig_client; if (exit_on_disconnect) { spice_info("Exiting server because of client disconnect.\n"); exit(0); } if (!client || client->disconnecting) { spice_debug("client %p already during disconnection",...
690
180,240
1
SPL_METHOD(SplFileObject, seek) { spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); long line_pos; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &line_pos) == FAILURE) { return; } if (line_pos < 0) { zend_throw_exception_ex(spl_ce_LogicException, 0 ...
691
21,193
0
int __pte_alloc_kernel(pmd_t *pmd, unsigned long address) { pte_t *new = pte_alloc_one_kernel(&init_mm, address); if (!new) return -ENOMEM; smp_wmb(); /* See comment in __pte_alloc */ spin_lock(&init_mm.page_table_lock); if (likely(pmd_none(*pmd))) { /* Has another populated it ? */ pmd_populate_kernel(&init...
692
101,086
0
void DeleteOriginData(const GURL& origin, StorageType type) { quota_status_ = kQuotaStatusUnknown; quota_manager_->DeleteOriginData(origin, type, callback_factory_.NewCallback( &QuotaManagerTest::StatusCallback)); }
693
163,183
0
void TestPDFNavigationFromFrame( const std::string& javascript, ExpectedNavigationStatus expected_navigation_status) { RenderFrameHost* child = ChildFrameAt(shell()->web_contents()->GetMainFrame(), 0); ASSERT_TRUE(child); if (AreAllSitesIsolatedForTesting()) { ASSERT_TRUE(child->...
694
172,067
0
static void *rfcomm_cback(tBTA_JV_EVT event, tBTA_JV *p_data, void *user_data) { void *new_user_data = NULL; switch (event) { case BTA_JV_RFCOMM_START_EVT: on_srv_rfc_listen_started(&p_data->rfc_start, (uintptr_t)user_data); break; case BTA_JV_RFCOMM_CL_INIT_EVT: on_cl_rfc_init(&p_data->rfc_cl_init, ...
695
150,696
0
int PageInfoUI::GetConnectionIconID(PageInfo::SiteConnectionStatus status) { int resource_id = IDR_PAGEINFO_INFO; switch (status) { case PageInfo::SITE_CONNECTION_STATUS_UNKNOWN: case PageInfo::SITE_CONNECTION_STATUS_INTERNAL_PAGE: break; case PageInfo::SITE_CONNECTION_STATUS_ENCRYPTED: reso...
696
122,899
0
void RenderProcessHostImpl::ReceivedBadMessage() { if (run_renderer_in_process()) { CHECK(false); } NOTREACHED(); base::KillProcess(GetHandle(), RESULT_CODE_KILLED_BAD_MESSAGE, false); }
697
183,072
1
static int hci_sock_getname(struct socket *sock, struct sockaddr *addr, int *addr_len, int peer) { struct sockaddr_hci *haddr = (struct sockaddr_hci *) addr; struct sock *sk = sock->sk; struct hci_dev *hdev = hci_pi(sk)->hdev; BT_DBG("sock %p sk %p", sock, sk); if (!hdev) return -EBADFD; lock_sock(sk)...
698
53,015
0
static void LogPrimitiveInfo(const PrimitiveInfo *primitive_info) { const char *methods[] = { "point", "replace", "floodfill", "filltoborder", "reset", "?" }; PointInfo p, q, point; register ssize_t i, x; ssize_t coordinates, y; x...
699