unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
150,922
0
void FakeCentral::SetNextReadDescriptorResponse( uint16_t gatt_code, const base::Optional<std::vector<uint8_t>>& value, const std::string& descriptor_id, const std::string& characteristic_id, const std::string& service_id, const std::string& peripheral_address, SetNextReadDescriptorResponseC...
10,600
174,136
0
status_t OMX::allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> &params, buffer_id *buffer, OMX_U32 allottedSize) { return findInstance(node)->allocateBufferWithBackup( port_index, params, buffer, allottedSize); }
10,601
84,712
0
static ssize_t loop_attr_dio_show(struct loop_device *lo, char *buf) { int dio = (lo->lo_flags & LO_FLAGS_DIRECT_IO); return sprintf(buf, "%s\n", dio ? "1" : "0"); }
10,602
95,691
0
void CL_NextDemo( void ) { char v[MAX_STRING_CHARS]; Q_strncpyz( v, Cvar_VariableString( "nextdemo" ), sizeof( v ) ); v[MAX_STRING_CHARS - 1] = 0; Com_DPrintf( "CL_NextDemo: %s\n", v ); if ( !v[0] ) { return; } Cvar_Set( "nextdemo","" ); Cbuf_AddText( v ); Cbuf_AddText( "\n" ); Cbuf_Execute(); }
10,603
181,433
1
brcmf_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, struct cfg80211_mgmt_tx_params *params, u64 *cookie) { struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); struct ieee80211_channel *chan = params->chan; const u8 *buf = params->buf; size_t len = params->len; const struct ieee80211_...
10,604
121,810
0
bool UDPSocketWin::SetReceiveBufferSize(int32 size) { DCHECK(CalledOnValidThread()); int rv = setsockopt(socket_, SOL_SOCKET, SO_RCVBUF, reinterpret_cast<const char*>(&size), sizeof(size)); DCHECK(!rv) << "Could not set socket receive buffer size: " << errno; return rv == 0; }
10,605
53,754
0
static int fixed_mtrr_seg_end_range_index(int seg) { struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; int n; n = (mtrr_seg->end - mtrr_seg->start) >> mtrr_seg->range_shift; return mtrr_seg->range_start + n - 1; }
10,606
186,376
1
void ClientControlledShellSurface::OnBoundsChangeEvent( ash::WindowStateType current_state, ash::WindowStateType requested_state, int64_t display_id, const gfx::Rect& window_bounds, int bounds_change) { if (!geometry().IsEmpty() && !window_bounds.IsEmpty() && (!widget_->IsMinimized() || ...
10,607
102,058
0
const GoogleServiceAuthError& SyncBackendHost::GetAuthError() const { return last_auth_error_; }
10,608
2,423
0
static NTSTATUS smb1cli_req_writev_submit(struct tevent_req *req, struct smbXcli_req_state *state, struct iovec *iov, int iov_count) { struct tevent_req *subreq; NTSTATUS status; uint8_t cmd; uint16_t mid; ssize_t nbtlen; if (!smbXcli_conn_is_connected(state->conn)) { return NT_STATUS_CONNECTION_...
10,609
185,517
1
void PartialMagnificationController::OnWindowDestroying(aura::Window* window) { CloseMagnifierWindow(); aura::Window* new_root_window = GetCurrentRootWindow(); if (new_root_window != window) SwitchTargetRootWindow(new_root_window); }
10,610
127,854
0
static bool CheckAac(const uint8* buffer, int buffer_size) { RCHECK(buffer_size > 6); int offset = 0; while (offset + 6 < buffer_size) { BitReader reader(buffer + offset, 6); RCHECK(ReadBits(&reader, 12) == 0xfff); reader.SkipBits(1); RCHECK(ReadBits(&reader, 2) == 0); reader.SkipBits(1 +...
10,611
85,773
0
static void force_swapin_readahead(struct vm_area_struct *vma, unsigned long start, unsigned long end) { struct mm_walk walk = { .mm = vma->vm_mm, .pmd_entry = swapin_walk_pmd_entry, .private = vma, }; walk_page_range(start, end, &walk); lru_add_drain(); /* Push any new pages onto the LRU now */ }
10,612
123,533
0
FilePath SavePackage::EnsureMimeExtension(const FilePath& name, const std::string& contents_mime_type) { FilePath::StringType ext = name.Extension().length() ? name.Extension().substr(1) : name.Extension(); FilePath::StringType suggested_extension = ExtensionForMimeType(contents_mime_type); std::s...
10,613
156,888
0
DocumentInit& DocumentInit::WithContextDocument(Document* context_document) { DCHECK(!context_document_); context_document_ = context_document; return *this; }
10,614
110,652
0
size_t estimated_size() const { return memory_tracker_.GetMemRepresented(); }
10,615
66,790
0
IW_IMPL(int) iw_read_gif_file(struct iw_context *ctx, struct iw_iodescr *iodescr) { struct iw_image img; struct iwgifrcontext *rctx = NULL; int retval=0; iw_zeromem(&img,sizeof(struct iw_image)); rctx = iw_mallocz(ctx,sizeof(struct iwgifrcontext)); if(!rctx) goto done; rctx->ctx = ctx; rctx->iodescr = iodescr...
10,616
135,704
0
void GranularityStrategyTest::ParseText(Text* text) { TextNodeVector text_nodes; text_nodes.push_back(text); ParseText(text_nodes); }
10,617
55,051
0
static uintmax_t change_note_fanout(struct tree_entry *root, unsigned char fanout) { char hex_sha1[40], path[60]; return do_change_note_fanout(root, root, hex_sha1, 0, path, 0, fanout); }
10,618
100,699
0
xmlIsNameChar(xmlParserCtxtPtr ctxt, int c) { if ((ctxt->options & XML_PARSE_OLD10) == 0) { /* * Use the new checks of production [4] [4a] amd [5] of the * Update 5 of XML-1.0 */ if ((c != ' ') && (c != '>') && (c != '/') && /* accelerators */ (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && ...
10,619
152,320
0
void RenderFrameImpl::FrameRectsChanged(const blink::WebRect& frame_rect) { gfx::Size frame_size(frame_rect.width, frame_rect.height); if (!frame_size_ || *frame_size_ != frame_size) { frame_size_ = frame_size; GetFrameHost()->FrameSizeChanged(frame_size); } }
10,620
111,034
0
void FileSystemOperation::TouchFile(const GURL& path_url, const base::Time& last_access_time, const base::Time& last_modified_time, const StatusCallback& callback) { DCHECK(SetPendingOperationType(kOperationTou...
10,621
46,047
0
xdr_cprinc3_arg(XDR *xdrs, cprinc3_arg *objp) { if (!xdr_ui_4(xdrs, &objp->api_version)) { return (FALSE); } if (!_xdr_kadm5_principal_ent_rec(xdrs, &objp->rec, objp->api_version)) { return (FALSE); } if (!xdr_long(xdrs, &objp->mask)) { return (FALSE); } if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tup...
10,622
101,021
0
void QuotaManager::GetLRUOrigin( StorageType type, GetLRUOriginCallback* callback) { LazyInitialize(); DCHECK(!lru_origin_callback_.get()); lru_origin_callback_.reset(callback); if (db_disabled_) { lru_origin_callback_->Run(GURL()); lru_origin_callback_.reset(); return; } scoped_refptr<G...
10,623
140,376
0
bool Editor::tryDHTMLPaste(PasteMode pasteMode) { return !dispatchCPPEvent(EventTypeNames::paste, DataTransferReadable, pasteMode); }
10,624
43,588
0
static int sctp_wait_for_connect(struct sctp_association *asoc, long *timeo_p) { struct sock *sk = asoc->base.sk; int err = 0; long current_timeo = *timeo_p; DEFINE_WAIT(wait); pr_debug("%s: asoc:%p, timeo:%ld\n", __func__, asoc, *timeo_p); /* Increment the association's refcnt. */ sctp_association_hold(asoc)...
10,625
174,637
0
static BOOLEAN btm_serv_trusted(tBTM_SEC_DEV_REC *p_dev_rec, tBTM_SEC_SERV_REC *p_serv_rec) { if(BTM_SEC_IS_SERVICE_TRUSTED(p_dev_rec->trusted_mask, p_serv_rec->service_id)) { return(TRUE); } return(FALSE); }
10,626
130,736
0
static void enabledAtRuntimeAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { ExceptionState exceptionState(ExceptionState::SetterContext, "enabledAtRuntimeAttr", "TestObject", info.Holder(), info.GetIsolate()); TestObject* imp = V8TestObject::toNative(info.Holder()...
10,627
174,848
0
status_t CameraService::getCameraCharacteristics(int cameraId, CameraMetadata* cameraInfo) { if (!cameraInfo) { ALOGE("%s: cameraInfo is NULL", __FUNCTION__); return BAD_VALUE; } if (!mModule) { ALOGE("%s: camera hardware module doesn't exist", __FUNCTION__); return -ENODEV; } if (mModule->com...
10,628
60,033
0
static ut64 get_import_addr(ELFOBJ *bin, int sym) { Elf_(Rel) *rel = NULL; Elf_(Rela) *rela = NULL; ut8 rl[sizeof (Elf_(Rel))] = {0}; ut8 rla[sizeof (Elf_(Rela))] = {0}; RBinElfSection *rel_sec = NULL; Elf_(Addr) plt_sym_addr = -1; ut64 got_addr, got_offset; ut64 plt_addr; int j, k, tsize, len, nrel; bool is_...
10,629
147,027
0
SingleThreadTaskRunner* WebLocalFrameImpl::LoadingTaskRunner() { return GetFrame() ->FrameScheduler() ->LoadingTaskRunner() ->ToSingleThreadTaskRunner(); }
10,630
48,663
0
static apr_status_t h2_session_shutdown(h2_session *session, int error, const char *msg, int force_close) { apr_status_t status = APR_SUCCESS; ap_assert(session); if (session->local.shutdown) { return APR_SUCCESS; } if (!msg && error) { m...
10,631
138,757
0
bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { if (!render_frame_created_) return false; bool handled = true; IPC_BEGIN_MESSAGE_MAP(RenderFrameHostImpl, msg) IPC_MESSAGE_HANDLER(FrameHostMsg_RenderProcessGone, OnRenderProcessGone) IPC_MESSAGE_UNHANDLED(handled = false) IPC_E...
10,632
169,084
0
void OfflinePageModelImpl::OnPagesFoundWithSameURL( const OfflinePageItem& offline_page, size_t pages_allowed, const MultipleOfflinePageItemResult& items) { std::vector<OfflinePageItem> pages_to_delete; for (const auto& item : items) { if (item.offline_id != offline_page.offline_id && item.c...
10,633
118,930
0
const GURL& WebContentsImpl::GetVisibleURL() const { NavigationEntry* entry = controller_.GetVisibleEntry(); return entry ? entry->GetVirtualURL() : GURL::EmptyGURL(); }
10,634
108,205
0
DevToolsSanityTest() { set_show_window(true); EnableDOMAutomation(); }
10,635
85,882
0
void dm_destroy_immediate(struct mapped_device *md) { __dm_destroy(md, false); }
10,636
173,684
0
void ATSParser::signalDiscontinuity( DiscontinuityType type, const sp<AMessage> &extra) { int64_t mediaTimeUs; if ((type & DISCONTINUITY_TIME) && extra != NULL) { if (extra->findInt64(IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { mAbsoluteTimeAnchorUs = mediaTimeUs; } if ((mFlags & TS_TIMESTAMPS_...
10,637
32,890
0
static inline void mm_free_pgd(struct mm_struct *mm) { pgd_free(mm, mm->pgd); }
10,638
97,571
0
xmlXPathCacheNewCString(xmlXPathContextPtr ctxt, const char *val) { if ((ctxt != NULL) && (ctxt->cache)) { xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr) ctxt->cache; if ((cache->stringObjs != NULL) && (cache->stringObjs->number != 0)) { xmlXPathObjectPtr ret; ret = (xmlXPathObjectPtr...
10,639
173,315
0
reread_byte(struct file *file) /* Read a byte when an error is not expected to happen because the byte has * been read before without error. */ { int ch = getc(file->file); if (errno != 0) file->read_errno = errno; if (ch < 0 || ch > 255) stop(file, UNEXPECTED_ERROR_CODE, "reread"); return (...
10,640
103,080
0
void Browser::CloseWindow() { UserMetrics::RecordAction(UserMetricsAction("CloseWindow"), profile_); window_->Close(); }
10,641
36,041
0
static sector_t udf_bmap(struct address_space *mapping, sector_t block) { return generic_block_bmap(mapping, block, udf_get_block); }
10,642
87,324
0
int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)) { return 0; }
10,643
94,469
0
static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, int sockaddr_len, int flags) { return pvc_bind(sock, sockaddr, sockaddr_len); }
10,644
125,145
0
void PluginServiceImpl::RefreshPlugins() { plugin_list_->RefreshPlugins(); }
10,645
119,732
0
ColorChooserDialog::ColorChooserDialog(views::ColorChooserListener* listener, SkColor initial_color, gfx::NativeWindow owning_window) : listener_(listener) { DCHECK(listener_); CopyCustomColors(g_custom_colors, custom_colors_); Exec...
10,646
119,536
0
void resetTriggered() { m_triggered = false; }
10,647
14,144
0
int __glXDisp_CopyContext(__GLXclientState *cl, GLbyte *pc) { ClientPtr client = cl->client; xGLXCopyContextReq *req = (xGLXCopyContextReq *) pc; GLXContextID source = req->source; GLXContextID dest = req->dest; GLXContextTag tag = req->contextTag; unsigned long mask = req->mask; __GLXcontex...
10,648
82,770
0
static RStrBuf *__generic_io_dest(ut8 port, int write, CPU_MODEL *cpu) { RStrBuf *r = r_strbuf_new (""); CPU_CONST *c = const_by_value (cpu, CPU_CONST_REG, port); if (c != NULL) { r_strbuf_set (r, c->key); if (write) { r_strbuf_append (r, ",="); } } else { r_strbuf_setf (r, "_io,%d,+,%s[1]", port, write ...
10,649
171,546
0
String8::String8(const String8& o) : mString(o.mString) { SharedBuffer::bufferFromData(mString)->acquire(); }
10,650
160,108
0
void BackendImpl::TrimForTest(bool empty) { eviction_.SetTestMode(); eviction_.TrimCache(empty); }
10,651
15,710
0
static int get_uint32(QEMUFile *f, void *pv, size_t size) { uint32_t *v = pv; qemu_get_be32s(f, v); return 0; }
10,652
175,301
0
static void marshallSignalInfoRecord(Parcel &p, RIL_CDMA_SignalInfoRecord &p_signalInfoRecord) { p.writeInt32(p_signalInfoRecord.isPresent); p.writeInt32(p_signalInfoRecord.signalType); p.writeInt32(p_signalInfoRecord.alertPitch); p.writeInt32(p_signalInfoRecord.signal); }
10,653
15,511
0
static void change_listen_mode(int new_mode) { log1("Entering listen mode: %s", new_mode != LISTEN_NONE ? (new_mode == LISTEN_KERNEL ? "kernel" : "raw") : "none" ); listen_mode = new_mode; if (sockfd >= 0) { close(sockfd); sockfd = -1; } if (new_mode == LISTEN_KERNEL) sockfd = udhcp_listen_socket(/...
10,654
182,736
1
int main(int argc, char **argv) { int i, n_valid, do_write, do_scrub; char *c, *dname, *name; DIR *dir; FILE *fp; pdf_t *pdf; pdf_flag_t flags; if (argc < 2) usage(); /* Args */ do_write = do_scrub = flags = 0; name = NULL; for (i=1; i<argc; i++) { if (strncmp(argv[i], "-w", 2) == 0) ...
10,655
53,619
0
static int cdc_ncm_get_sset_count(struct net_device __always_unused *netdev, int sset) { switch (sset) { case ETH_SS_STATS: return ARRAY_SIZE(cdc_ncm_gstrings_stats); default: return -EOPNOTSUPP; } }
10,656
134,588
0
bool OSExchangeData::HasAnyFormat( int formats, const std::set<CustomFormat>& custom_formats) const { if ((formats & STRING) != 0 && HasString()) return true; if ((formats & URL) != 0 && HasURL()) return true; #if defined(OS_WIN) if ((formats & FILE_CONTENTS) != 0 && provider_->HasFileContents()) ...
10,657
9,136
0
static void eat_opt_white( const char **pcur ) { while (**pcur == ' ' || **pcur == '\t' || **pcur == '\n') (*pcur)++; }
10,658
36,745
0
spnego_gss_display_status( OM_uint32 *minor_status, OM_uint32 status_value, int status_type, gss_OID mech_type, OM_uint32 *message_context, gss_buffer_t status_string) { OM_uint32 maj = GSS_S_COMPLETE; int ret; dsyslog("Entering display_status\n"); *message_context = 0; switch (status_value) { c...
10,659
130,748
0
static void enforcedRangeByteAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeByteAttr", "TestObject", info.Holder(), info.GetIsolate()); TestObject* imp = V8TestObject::toNative(info.Holder...
10,660
166,918
0
DOMHighResTimeStamp Performance::timeOrigin() const { DCHECK(!time_origin_.is_null()); return GetUnixAtZeroMonotonic() + ConvertTimeTicksToDOMHighResTimeStamp(time_origin_); }
10,661
100,271
0
NetworkLibraryStubImpl() : ip_address_("1.1.1.1"), ethernet_(new EthernetNetwork()), wifi_(NULL), cellular_(NULL) { }
10,662
51,695
0
default_opaque_binary_tag(tvbuff_t *tvb, guint32 offset, guint8 token _U_, guint8 codepage _U_, guint32 *length) { guint32 data_len = tvb_get_guintvar(tvb, offset, length); char *str = wmem_strdup_printf(wmem_packet_scope(), "(%d bytes of opaque data)", data_len); *length += data_len; return str; }
10,663
57,645
0
static ssize_t show_tabletToolMode(struct device *dev, struct device_attribute *attr, char *buf) { struct aiptek *aiptek = dev_get_drvdata(dev); return snprintf(buf, PAGE_SIZE, "%s\n", map_val_to_str(tool_mode_map, aiptek->curSetting.toolMode)); }
10,664
19,384
0
static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd) { struct efx_nic *efx = netdev_priv(net_dev); struct mii_ioctl_data *data = if_mii(ifr); EFX_ASSERT_RESET_SERIALISED(efx); /* Convert phy_id from older PRTAD/DEVAD format */ if ((cmd == SIOCGMIIREG || cmd == SIOCSMIIREG) && (data->...
10,665
44,136
0
void generic_pipe_buf_get(struct pipe_inode_info *pipe, struct pipe_buffer *buf) { page_cache_get(buf->page); }
10,666
176,905
0
void InputDispatcher::MotionEntry::appendDescription(String8& msg) const { msg.appendFormat("MotionEvent(deviceId=%d, source=0x%08x, action=%d, actionButton=0x%08x, " "flags=0x%08x, metaState=0x%08x, buttonState=0x%08x, " "edgeFlags=0x%08x, xPrecision=%.1f, yPrecision=%.1f, displayId=%d, pointers=[", ...
10,667
160,583
0
void RenderFrameImpl::DidFailLoad(const WebURLError& error, blink::WebHistoryCommitType commit_type) { TRACE_EVENT1("navigation,rail", "RenderFrameImpl::didFailLoad", "id", routing_id_); WebDocumentLoader* document_loader = frame_->GetDocumentLoader(); DCHECK(docum...
10,668
22,462
0
void __cpuinit init_idle_bootup_task(struct task_struct *idle) { idle->sched_class = &idle_sched_class; }
10,669
143,491
0
void CompositorImpl::DidInitializeLayerTreeFrameSink() { layer_tree_frame_sink_request_pending_ = false; has_layer_tree_frame_sink_ = true; for (auto& frame_sink_id : pending_child_frame_sink_ids_) AddChildFrameSink(frame_sink_id); pending_child_frame_sink_ids_.clear(); }
10,670
145,399
0
quic::QuicCryptoStream* P2PQuicTransportImpl::GetMutableCryptoStream() { DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); return crypto_stream_.get(); }
10,671
83,708
0
int git_index_update_all( git_index *index, const git_strarray *pathspec, git_index_matched_path_cb cb, void *payload) { int error = index_apply_to_wd_diff(index, INDEX_ACTION_UPDATE, pathspec, 0, cb, payload); if (error) /* make sure error is set if callback stopped iteration */ giterr_set_after_callback(error...
10,672
178,505
1
bdfReadCharacters(FontFilePtr file, FontPtr pFont, bdfFileState *pState, int bit, int byte, int glyph, int scan) { unsigned char *line; register CharInfoPtr ci; int i, ndx, nchars, nignored; unsigned int char_row, char_col; int numEncodedGlyphs = 0; CharInfoPtr *bdfEncoding[256]; BitmapFontPtr bitmapFo...
10,673
157,884
0
bool WebContentsImpl::WasDiscarded() { return GetFrameTree()->root()->was_discarded(); }
10,674
3,321
0
static void fdctrl_handle_seek(FDCtrl *fdctrl, int direction) { FDrive *cur_drv; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); fdctrl_reset_fifo(fdctrl); /* The seek command just sends step pulses to the drive and doesn't care if * there is a medium inse...
10,675
165,876
0
RenderFrameImpl::CreateApplicationCacheHost( blink::WebApplicationCacheHostClient* client) { if (!frame_ || !frame_->View()) return nullptr; NavigationState* navigation_state = NavigationState::FromDocumentLoader( frame_->GetProvisionalDocumentLoader() ? frame_->GetProvisionalDocumentLoader...
10,676
84,322
0
UNCURL_EXPORT int8_t uncurl_check_header(struct uncurl_conn *ucc, char *name, char *subval) { int32_t e; char *val = NULL; e = uncurl_get_header_str(ucc, name, &val); if (e == UNCURL_OK && strstr(http_lc(val), subval)) return 1; return 0; }
10,677
115,370
0
void InjectedBundlePage::didChangeSelection(WKBundlePageRef page, WKStringRef notificationName, const void* clientInfo) { static_cast<InjectedBundlePage*>(const_cast<void*>(clientInfo))->didChangeSelection(notificationName); }
10,678
61,302
0
static int mboxlist_update_entry(const char *name, const mbentry_t *mbentry, struct txn **txn) { mbentry_t *old = NULL; int r = 0; mboxlist_mylookup(name, &old, txn, 0); // ignore errors, it will be NULL if (!cyrusdb_fetch(mbdb, "$RACL", 5, NULL, NULL, txn)) { r = mboxlist_update_racl(name, ol...
10,679
33,707
0
void user_enable_block_step(struct task_struct *child) { enable_step(child, 1); }
10,680
69,324
0
static int aes_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,ctx); /* If not set up, return error */ if (!gctx->key_set) return -1; if (gctx->tls_aad_len >= 0) retur...
10,681
78,376
0
des3_encrypt_ecb(const unsigned char *key, int keysize, const unsigned char *input, int length, unsigned char *output) { unsigned char iv[EVP_MAX_IV_LENGTH] = { 0 }; unsigned char bKey[24] = { 0 }; if (keysize == 16) { memcpy(&bKey[0], key, 16); memcpy(&bKey[16], key, 8); } else { memcpy(&bKey[0], key, 24...
10,682
152,555
0
void RenderFrameImpl::UpdateUserActivationState( blink::UserActivationUpdateType update_type) { Send(new FrameHostMsg_UpdateUserActivationState(routing_id_, update_type)); }
10,683
152,409
0
void RenderFrameImpl::MaybeSetDownloadFramePolicy( bool is_opener_navigation, const blink::WebURLRequest& request, const blink::WebSecurityOrigin& current_origin, bool has_download_sandbox_flag, bool blocking_downloads_in_sandbox_without_user_activation_enabled, bool from_ad, NavigationDownl...
10,684
85,724
0
static void hns_nic_tx_clr_all_bufs(struct hns_nic_ring_data *ring_data) { struct hnae_ring *ring = ring_data->ring; struct net_device *ndev = ring_data->napi.dev; struct netdev_queue *dev_queue; int head; int bytes, pkts; NETIF_TX_LOCK(ring); head = ring->next_to_use; /* ntu :soft setted ring position*/ byte...
10,685
35,188
0
static int rm_from_queue_full(sigset_t *mask, struct sigpending *s) { struct sigqueue *q, *n; sigset_t m; sigandsets(&m, mask, &s->signal); if (sigisemptyset(&m)) return 0; signandsets(&s->signal, &s->signal, mask); list_for_each_entry_safe(q, n, &s->list, list) { if (sigismember(mask, q->info.si_signo)) { ...
10,686
142,999
0
void BaseAudioContext::ContextDestroyed(ExecutionContext*) { destination()->GetAudioDestinationHandler().ContextDestroyed(); Uninitialize(); }
10,687
58,131
0
build_overlap_sched_groups(struct sched_domain *sd, int cpu) { struct sched_group *first = NULL, *last = NULL, *groups = NULL, *sg; const struct cpumask *span = sched_domain_span(sd); struct cpumask *covered = sched_domains_tmpmask; struct sd_data *sdd = sd->private; struct sched_domain *child; int i; cpumask_c...
10,688
45,387
0
struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, u16 name_len, int mod) { int ret; struct btrfs_key key; int ins_len = mod < 0 ? -1 : 0; int cow = mod != 0; key.objectid = dir; key....
10,689
77,007
0
ofpacts_check(struct ofpact ofpacts[], size_t ofpacts_len, struct flow *flow, ofp_port_t max_ports, uint8_t table_id, uint8_t n_tables, enum ofputil_protocol *usable_protocols) { struct ofpact *a; ovs_be16 dl_type = flow->dl_type; ovs_be16 vlan_tci = flow->vlan_tci;...
10,690
123,079
0
void RenderWidgetHostViewAndroid::AcceleratedSurfacePostSubBuffer( const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, int gpu_host_id) { NOTREACHED(); }
10,691
158,393
0
static MockRenderWidgetHostImpl* Create(RenderWidgetHostDelegate* delegate, RenderProcessHost* process, int32_t routing_id) { mojom::WidgetPtr widget; std::unique_ptr<MockWidgetImpl> widget_impl = std::make_unique<Mock...
10,692
138,283
0
const Element* AXObjectCacheImpl::rootAXEditableElement(const Node* node) { const Element* result = rootEditableElement(*node); const Element* element = node->isElementNode() ? toElement(node) : node->parentElement(); for (; element; element = element->parentElement()) { if (nodeIsTextControl(element))...
10,693
59,892
0
static void uas_cmd_cmplt(struct urb *urb) { if (urb->status) dev_err(&urb->dev->dev, "cmd cmplt err %d\n", urb->status); usb_free_urb(urb); }
10,694
140,931
0
void PresentationConnection::terminate() { if (m_state != WebPresentationConnectionState::Connected) return; WebPresentationClient* client = presentationClient(getExecutionContext()); if (client) client->terminateConnection(m_url, m_id); tearDown(); }
10,695
19,376
0
static void efx_init_channels(struct efx_nic *efx) { struct efx_tx_queue *tx_queue; struct efx_rx_queue *rx_queue; struct efx_channel *channel; /* Calculate the rx buffer allocation parameters required to * support the current MTU, including padding for header * alignment and overruns. */ efx->rx_buffer_len...
10,696
62,783
0
static void MSLInternalSubset(void *context,const xmlChar *name, const xmlChar *external_id,const xmlChar *system_id) { MSLInfo *msl_info; /* Does this document has an internal subset? */ (void) LogMagickEvent(CoderEvent,GetMagickModule(), " SAX.internalSubset(%s %s %s)",name, (external_id !...
10,697
4,007
0
GBool LZWStream::processNextCode() { int code; int nextLength; int i, j; if (eof) { return gFalse; } start: code = getCode(); if (code == EOF || code == 257) { eof = gTrue; return gFalse; } if (code == 256) { clearTable(); goto start; } if (nextCode >= 4097) { error(errS...
10,698
85,551
0
static void hns_gmac_set_duplex_type(void *mac_drv, u8 newval) { struct mac_driver *drv = (struct mac_driver *)mac_drv; dsaf_set_dev_bit(drv, GMAC_DUPLEX_TYPE_REG, GMAC_DUPLEX_TYPE_B, !!newval); }
10,699