unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
117,580
0
void SettingLevelBubble::OnHideTimeout() { if (view_) { SettingLevelBubbleDelegateView* delegate = static_cast<SettingLevelBubbleDelegateView*> (view_->GetWidget()->widget_delegate()); delegate->StartFade(false); } }
11,000
184,103
1
void CrosLibrary::TestApi::SetBrightnessLibrary( BrightnessLibrary* library, bool own) { library_->brightness_lib_.SetImpl(library, own); }
11,001
54,820
0
static int replace_map_fd_with_map_ptr(struct verifier_env *env) { struct bpf_insn *insn = env->prog->insnsi; int insn_cnt = env->prog->len; int i, j; for (i = 0; i < insn_cnt; i++, insn++) { if (BPF_CLASS(insn->code) == BPF_LDX && (BPF_MODE(insn->code) != BPF_MEM || insn->imm != 0)) { verbose("BPF_LDX ...
11,002
94,617
0
static int sig_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) { if(operation == ASN1_OP_NEW_PRE) { DSA_SIG *sig; sig = OPENSSL_malloc(sizeof(DSA_SIG)); if (!sig) { DSAerr(DSA_F_SIG_CB, ERR_R_MALLOC_FAILURE); return 0; } sig->r = NULL; sig->s = NULL; *pval = (ASN1...
11,003
180,908
1
int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp) { struct sctp_association *asoc = sctp_id2assoc(sk, id); struct sctp_sock *sp = sctp_sk(sk); struct socket *sock; int err = 0; if (!asoc) return -EINVAL; /* If there is a thread waiting on more sndbuf space for * sending on t...
11,004
137,392
0
void RenderViewTest::GoForward(const GURL& url, const PageState& state) { GoToOffset(1, url, state); }
11,005
17,609
0
SProcRenderColorTrapezoids(ClientPtr client) { return BadImplementation; }
11,006
121,218
0
bool HTMLInputElement::patternMismatch() const { return willValidate() && m_inputType->patternMismatch(value()); }
11,007
103,996
0
void GLES2DecoderImpl::DoBindTexture(GLenum target, GLuint client_id) { TextureManager::TextureInfo* info = NULL; GLuint service_id = 0; if (client_id != 0) { info = GetTextureInfo(client_id); if (!info) { if (!group_->bind_generates_resource()) { SetGLError(GL_INVALID_VALUE, ...
11,008
41,139
0
static int tcp_disordered_ack(const struct sock *sk, const struct sk_buff *skb) { const struct tcp_sock *tp = tcp_sk(sk); const struct tcphdr *th = tcp_hdr(skb); u32 seq = TCP_SKB_CB(skb)->seq; u32 ack = TCP_SKB_CB(skb)->ack_seq; return (/* 1. Pure ACK with correct sequence number. */ (th->ack && seq == TCP_SKB...
11,009
8,237
0
static void v9fs_symlink(void *opaque) { V9fsPDU *pdu = opaque; V9fsString name; V9fsString symname; V9fsFidState *dfidp; V9fsQID qid; struct stat stbuf; int32_t dfid; int err = 0; gid_t gid; size_t offset = 7; v9fs_string_init(&name); v9fs_string_init(&symname); err...
11,010
32,252
0
static inline unsigned dx_root_limit(struct inode *dir, unsigned infosize) { unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(1) - EXT4_DIR_REC_LEN(2) - infosize; if (EXT4_HAS_RO_COMPAT_FEATURE(dir->i_sb, EXT4_FEATURE_RO_COMPAT_METADATA_CSUM)) entry_space -= sizeof(struct dx_tail); re...
11,011
108,139
0
void RemoveTextureInfo(GLuint client_id) { texture_manager()->RemoveTextureInfo(client_id); }
11,012
149,753
0
void AppendFormattedComponent(const std::string& spec, const url::Component& original_component, const AppendComponentTransform& transform, base::string16* output, url::Component* output_component, ...
11,013
93,994
0
static inline void prepare_escaped(zval *zv TSRMLS_DC) { if (Z_TYPE_P(zv) == IS_STRING) { quote_string(zv, 0 TSRMLS_CC); } else { zval_dtor(zv); ZVAL_EMPTY_STRING(zv); } }
11,014
126,618
0
void TabStripModel::ExtendSelectionTo(int index) { DCHECK(ContainsIndex(index)); TabStripSelectionModel new_model; new_model.Copy(selection_model_); new_model.SetSelectionFromAnchorTo(index); SetSelection(new_model, NOTIFY_DEFAULT); }
11,015
128,508
0
void ShellSurface::SetApplicationId(const std::string& application_id) { TRACE_EVENT1("exo", "ShellSurface::SetApplicationId", "application_id", application_id); application_id_ = application_id; }
11,016
114,646
0
void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, int resource_id) { if (!plugin_) return; plugin_->URLRedirectResponse(allow, resource_id); }
11,017
146,382
0
void WebGLRenderingContextBase::TexImageBitmapByGPU( ImageBitmap* bitmap, GLenum target, GLuint target_texture, bool flip_y, GLint xoffset, GLint yoffset, const IntRect& source_sub_rect) { bitmap->BitmapImage()->CopyToTexture( GetDrawingBuffer()->ContextProvider(), target, target_tex...
11,018
85,297
0
int sync_node_pages(struct f2fs_sb_info *sbi, struct writeback_control *wbc) { pgoff_t index, end; struct pagevec pvec; int step = 0; int nwritten = 0; int ret = 0; pagevec_init(&pvec, 0); next_step: index = 0; end = ULONG_MAX; while (index <= end) { int i, nr_pages; nr_pages = pagevec_lookup_tag(&pvec,...
11,019
75,831
0
lvs_netlink_monitor_rcv_bufs_force_handler(vector_t *strvec) { int res = true; if (!strvec) return; if (vector_size(strvec) >= 2) { res = check_true_false(strvec_slot(strvec,1)); if (res < 0) { report_config_error(CONFIG_GENERAL_ERROR, "Invalid value '%s' for global lvs_netlink_monitor_rcv_bufs_force spec...
11,020
34,522
0
static int __init init_script_binfmt(void) { register_binfmt(&script_format); return 0; }
11,021
158,189
0
bool MaybeCreateLoaderForResponse( const network::ResourceResponseHead& response) { if (!IsLoaderInterceptionEnabled()) return false; if (!default_loader_used_) return false; for (auto& interceptor : interceptors_) { network::mojom::URLLoaderClientRequest response_client_request;...
11,022
187,905
1
status_t Camera3Device::createDefaultRequest(int templateId, CameraMetadata *request) { ATRACE_CALL(); ALOGV("%s: for template %d", __FUNCTION__, templateId); Mutex::Autolock il(mInterfaceLock); Mutex::Autolock l(mLock); switch (mStatus) { case STATUS_ERROR: CLOGE("Device h...
11,023
38,269
0
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int i; int nr = pagevec_count(pvec); int delta_munlocked; struct pagevec pvec_putback; int pgrescued = 0; pagevec_init(&pvec_putback, 0); /* Phase 1: page isolation */ spin_lock_irq(&zone->lru_lock); for (i = 0; i < nr; i++) { struct ...
11,024
149,097
0
static void codeVectorCompare( Parse *pParse, /* Code generator context */ Expr *pExpr, /* The comparison operation */ int dest, /* Write results into this register */ u8 op, /* Comparison operator */ u8 p5 /* SQLITE_NULLEQ or zero */ ){ Vdbe *v = p...
11,025
57,664
0
static inline u64 __scale_tsc(u64 ratio, u64 tsc) { return mul_u64_u64_shr(tsc, ratio, kvm_tsc_scaling_ratio_frac_bits); }
11,026
165,363
0
void StoragePartitionImpl::ClearDataForOrigin( uint32_t remove_mask, uint32_t quota_storage_remove_mask, const GURL& storage_origin) { DCHECK_CURRENTLY_ON(BrowserThread::UI); CookieDeletionFilterPtr deletion_filter = CookieDeletionFilter::New(); if (!storage_origin.host().empty()) deletion_filter-...
11,027
37,382
0
static void __clear_sp_write_flooding_count(struct kvm_mmu_page *sp) { sp->write_flooding_count = 0; }
11,028
3,307
0
static void fdctrl_format_sector(FDCtrl *fdctrl) { FDrive *cur_drv; uint8_t kh, kt, ks; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); kt = fdctrl->fifo[6]; kh = fdctrl->fifo[7]; ks = fdctrl->fifo[8]; FLOPPY_DPRINTF("format sector at %d %d %02x %02...
11,029
135,436
0
void Document::updateViewportDescription() { if (frame() && frame()->isMainFrame()) { frameHost()->chromeClient().dispatchViewportPropertiesDidChange(m_viewportDescription); } }
11,030
32,312
0
int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p) { struct cmsghdr *cmsg; int err; for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { err = -EINVAL; /* Verify that cmsg_len is at least sizeof(struct cmsghdr) */ /* The first check was omitted in <= 2.2.5. The r...
11,031
18,119
0
pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs, const char *text, int length, int embedding_level, int *logical_widths) { /* Build a PangoGlyphItem so we can use PangoGlyphItemIter. * This API should have be...
11,032
164,541
0
static TriggerPrg *codeRowTrigger( Parse *pParse, /* Current parse context */ Trigger *pTrigger, /* Trigger to code */ Table *pTab, /* The table pTrigger is attached to */ int orconf /* ON CONFLICT policy to code trigger program with */ ){ Parse *pTop = sqlite3ParseToplevel(pParse); ...
11,033
90,601
0
static void vm_lock_anon_vma(struct mm_struct *mm, struct anon_vma *anon_vma) { if (!test_bit(0, (unsigned long *) &anon_vma->root->rb_root.rb_root.rb_node)) { /* * The LSB of head.next can't change from under us * because we hold the mm_all_locks_mutex. */ down_write_nest_lock(&anon_vma->root->rwsem, &mm...
11,034
2,265
0
enter_non_blocking(void) { in_non_blocking_mode = 1; set_nonblock(fileno(stdin)); }
11,035
127,096
0
void AudioRendererAlgorithm::AlignToFrameBoundary(int* value) { (*value) -= ((*value) % bytes_per_frame_); }
11,036
39,750
0
static int proc_cwd_link(struct inode *inode, struct path *path) { struct task_struct *task = get_proc_task(inode); int result = -ENOENT; if (task) { result = get_fs_path(task, path, 0); put_task_struct(task); } return result; }
11,037
4,882
0
ProcUngrabButton(ClientPtr client) { REQUEST(xUngrabButtonReq); WindowPtr pWin; GrabPtr tempGrab; int rc; DeviceIntPtr ptr; REQUEST_SIZE_MATCH(xUngrabButtonReq); UpdateCurrentTime(); if ((stuff->modifiers != AnyModifier) && (stuff->modifiers & ~AllModifiersMask)) { clien...
11,038
73,107
0
MagickExport Image *AddNoiseImage(const Image *image,const NoiseType noise_type, const double attenuate,ExceptionInfo *exception) { #define AddNoiseImageTag "AddNoise/Image" CacheView *image_view, *noise_view; Image *noise_image; MagickBooleanType status; MagickOffsetType progress; ...
11,039
139,247
0
VRController* VRDisplay::Controller() { return navigator_vr_->Controller(); }
11,040
13,710
0
ZEND_API ZEND_FUNCTION(display_disabled_function) { zend_error(E_WARNING, "%s() has been disabled for security reasons", get_active_function_name(TSRMLS_C)); }
11,041
84,389
0
flatpak_proxy_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { FlatpakProxy *proxy = FLATPAK_PROXY (object); switch (prop_id) { case PROP_DBUS_ADDRESS: proxy->dbus...
11,042
59,108
0
static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, enum bpf_access_type t, enum bpf_reg_type *reg_type) { struct bpf_insn_access_aux info = { .reg_type = *reg_type, }; if (env->ops->is_valid_access && env->ops->is_valid_access(off, size, t, &info)) { /* A non ...
11,043
86,661
0
static unsigned int bt_unused_tags(struct blk_mq_bitmap_tags *bt) { unsigned int i, used; for (i = 0, used = 0; i < bt->map_nr; i++) { struct blk_align_bitmap *bm = &bt->map[i]; used += bitmap_weight(&bm->word, bm->depth); } return bt->depth - used; }
11,044
44,020
0
crm_element_value_copy(xmlNode * data, const char *name) { char *value_copy = NULL; const char *value = crm_element_value(data, name); if (value != NULL) { value_copy = strdup(value); } return value_copy; }
11,045
2,499
0
void cli_cm_display(struct cli_state *cli) { int i; for (i=0; cli; cli = cli->next,i++ ) { d_printf("%d:\tserver=%s, share=%s\n", i, smbXcli_conn_remote_name(cli->conn), cli->share); } }
11,046
163,552
0
size_t ScriptProcessorNode::bufferSize() const { return static_cast<ScriptProcessorHandler&>(Handler()).BufferSize(); }
11,047
147,308
0
static void CustomSetterImplementedAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestObject* impl = V8TestObject::ToImpl(holder); V8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); }
11,048
187,541
1
OMX_ERRORTYPE omx_video::allocate_input_buffer( OMX_IN OMX_HANDLETYPE hComp, OMX_INOUT OMX_BUFFERHEADERTYPE** bufferHdr, OMX_IN OMX_U32 port, OMX_IN OMX_PTR appData, OMX_IN OMX_U32 bytes) { (void)hComp, (void)port...
11,049
144,093
0
png_set_sRGB(png_structp png_ptr, png_infop info_ptr, int intent) { png_debug1(1, "in %s storage function", "sRGB"); if (png_ptr == NULL || info_ptr == NULL) return; info_ptr->srgb_intent = (png_byte)intent; info_ptr->valid |= PNG_INFO_sRGB; }
11,050
772
0
poppler_page_free_form_field_mapping (GList *list) { if (list == NULL) return; g_list_foreach (list, (GFunc) poppler_form_field_mapping_free, NULL); g_list_free (list); }
11,051
160,257
0
ServiceWorkerBackgroundSyncTest() {}
11,052
21,928
0
xfs_acl_exists(struct inode *inode, unsigned char *name) { int len = sizeof(struct xfs_acl); return (xfs_attr_get(XFS_I(inode), name, NULL, &len, ATTR_ROOT|ATTR_KERNOVAL) == 0); }
11,053
104,145
0
error::Error GLES2DecoderImpl::HandlePixelStorei( uint32 immediate_data_size, const gles2::PixelStorei& c) { GLenum pname = c.pname; GLenum param = c.param; if (!validators_->pixel_store.IsValid(pname)) { SetGLError(GL_INVALID_ENUM, "glPixelStorei: pname GL_INVALID_ENUM"); return error::kNoError; } ...
11,054
60,789
0
static int do_wait_thread(struct wait_opts *wo, struct task_struct *tsk) { struct task_struct *p; list_for_each_entry(p, &tsk->children, sibling) { int ret = wait_consider_task(wo, 0, p); if (ret) return ret; } return 0; }
11,055
157,567
0
HeadlessDevToolsClientMinimizeWindowTest() : HeadlessDevToolsClientChangeWindowStateTest( browser::WindowState::MINIMIZED){};
11,056
160,010
0
void BackendImpl::CleanupCache() { DCHECK(background_queue_.BackgroundIsCurrentSequence()); Trace("Backend Cleanup"); eviction_.Stop(); timer_.reset(); if (init_) { StoreStats(); if (data_) data_->header.crash = 0; if (user_flags_ & kNoRandom) { File::WaitForPendingIO(&num_pending_io...
11,057
142,826
0
bool HTMLMediaElement::IsURLAttribute(const Attribute& attribute) const { return attribute.GetName() == kSrcAttr || HTMLElement::IsURLAttribute(attribute); }
11,058
137,959
0
bool AXLayoutObject::isReadOnly() const { ASSERT(m_layoutObject); if (isWebArea()) { Document& document = m_layoutObject->document(); HTMLElement* body = document.body(); if (body && hasEditableStyle(*body)) { AXObject* axBody = axObjectCache().getOrCreate(body); return !axBody || axBody ==...
11,059
2,960
0
pdf14_ok_to_optimize(gx_device *dev) { bool using_blend_cs; pdf14_default_colorspace_t pdf14_cs = pdf14_determine_default_blend_cs(dev, false, &using_blend_cs); gsicc_colorbuffer_t dev_icc_cs; bool ok = false; int tag_depth = device_encodes_tags(dev) ? 8 : 0; cmm_dev_profile_t *dev_profi...
11,060
144,209
0
void LockContentsView::OnPublicSessionLocalesChanged( const AccountId& account_id, const std::vector<mojom::LocaleItemPtr>& locales, const std::string& default_locale, bool show_advanced_view) { LoginUserView* user_view = TryToFindUserView(account_id); if (!user_view || !IsPublicAccountUser(user_vie...
11,061
147,245
0
static void CachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestObject* impl = V8TestObject::ToImpl(holder); V8PrivateProperty::Symbol property_symbol = V8PrivateProperty::GetSymbol(info.GetIso...
11,062
76,266
0
static int cdrom_read_block(struct cdrom_device_info *cdi, struct packet_command *cgc, int lba, int nblocks, int format, int blksize) { const struct cdrom_device_ops *cdo = cdi->ops; memset(&cgc->cmd, 0, sizeof(cgc->cmd)); cgc->cmd[0] = GPCMD_READ_CD; /* expected sector size - cdda,mode1,etc. */ cgc...
11,063
2,247
0
channel_open_message(void) { Buffer buffer; Channel *c; char buf[1024], *cp; u_int i; buffer_init(&buffer); snprintf(buf, sizeof buf, "The following connections are open:\r\n"); buffer_append(&buffer, buf, strlen(buf)); for (i = 0; i < channels_alloc; i++) { c = channels[i]; if (c == NULL) continue; s...
11,064
150,722
0
void SetPermissionInfo(const PermissionInfoList& permission_info_list, ChosenObjectInfoList chosen_object_info_list) { last_chosen_object_info_.clear(); for (auto& chosen_object_info : chosen_object_info_list) last_chosen_object_info_.push_back(std::move(chosen_object_info)); ...
11,065
63,691
0
void nicklist_init(void) { signal_add_first("channel created", (SIGNAL_FUNC) sig_channel_created); signal_add("channel destroyed", (SIGNAL_FUNC) sig_channel_destroyed); }
11,066
133,959
0
AppListSyncableService::CreateSyncItemFromAppItem(AppListItem* app_item) { sync_pb::AppListSpecifics::AppListItemType type; if (!GetAppListItemType(app_item, &type)) return NULL; VLOG(2) << this << " CreateSyncItemFromAppItem:" << app_item->ToDebugString(); SyncItem* sync_item = CreateSyncItem(app_item->id(...
11,067
56,212
0
static inline int armv8pmu_has_overflowed(u32 pmovsr) { return pmovsr & ARMV8_OVERFLOWED_MASK; }
11,068
174,634
0
static BOOLEAN btm_sec_start_get_name (tBTM_SEC_DEV_REC *p_dev_rec) { UINT8 tempstate = p_dev_rec->sec_state; p_dev_rec->sec_state = BTM_SEC_STATE_GETTING_NAME; /* Device should be connected, no need to provide correct page params */ /* 0 and NULL are as timeout and callback params because they are not used...
11,069
104,114
0
error::Error GLES2DecoderImpl::HandleBufferData( uint32 immediate_data_size, const gles2::BufferData& c) { GLenum target = static_cast<GLenum>(c.target); GLsizeiptr size = static_cast<GLsizeiptr>(c.size); uint32 data_shm_id = static_cast<uint32>(c.data_shm_id); uint32 data_shm_offset = static_cast<uint32>(c...
11,070
49,785
0
static bool arcmsr_hbaC_get_config(struct AdapterControlBlock *pACB) { uint32_t intmask_org, Index, firmware_state = 0; struct MessageUnit_C __iomem *reg = pACB->pmuC; char *acb_firm_model = pACB->firm_model; char *acb_firm_version = pACB->firm_version; char __iomem *iop_firm_model = (char __iomem *)(&reg->msgcode...
11,071
107,834
0
void NetworkScreen::UpdateStatus(NetworkLibrary* network) { if (!view() || !network) return; if (network->Connected()) ClearErrors(); if (network->ethernet_connected()) { StopWaitingForConnection( l10n_util::GetStringUTF16(IDS_STATUSBAR_NETWORK_DEVICE_ETHERNET)); } else if (network->wifi_c...
11,072
146,589
0
void WebGLRenderingContextBase::vertexAttrib1fv( GLuint index, MaybeShared<const DOMFloat32Array> v) { if (isContextLost()) return; if (!v.View() || v.View()->length() < 1) { SynthesizeGLError(GL_INVALID_VALUE, "vertexAttrib1fv", "invalid array"); return; } ContextGL()->VertexAttrib1fv(index...
11,073
93,079
0
rdpsnd_send_waveconfirm(uint16 tick, uint8 packet_index) { STREAM s; s = rdpsnd_init_packet(SNDC_WAVECONFIRM, 4); out_uint16_le(s, tick); out_uint8(s, packet_index); out_uint8(s, 0); s_mark_end(s); rdpsnd_send(s); logger(Sound, Debug, "rdpsnd_send_waveconfirm(), tick=%u, index=%u", (unsigned) tick, (u...
11,074
7,994
0
static void vnc_client_cache_auth(VncState *client) { if (!client->info) { return; } #ifdef CONFIG_VNC_TLS if (client->tls.session && client->tls.dname) { client->info->has_x509_dname = true; client->info->x509_dname = g_strdup(client->tls.dname); } #endif #ifdef CONFIG_...
11,075
169,600
0
void PageCaptureCustomBindings::CreateBlob( const v8::FunctionCallbackInfo<v8::Value>& args) { CHECK(args.Length() == 2); CHECK(args[0]->IsString()); CHECK(args[1]->IsInt32()); blink::WebString path(base::UTF8ToUTF16(*v8::String::Utf8Value(args[0]))); blink::WebBlob blob = blink::WebBlob::createFro...
11,076
14,910
0
static void spl_pqueue_it_get_current_data(zend_object_iterator *iter, zval ***data TSRMLS_DC) /* {{{ */ { spl_heap_it *iterator = (spl_heap_it *)iter; zval **element = (zval **)&iterator->object->heap->elements[0]; if (iterator->object->heap->flags & SPL_HEAP_CORRUPTED) { zend_throw_exception(spl_ce_Run...
11,077
27,390
0
static void ipip_tunnel_uninit(struct net_device *dev) { struct net *net = dev_net(dev); struct ipip_net *ipn = net_generic(net, ipip_net_id); if (dev == ipn->fb_tunnel_dev) { spin_lock_bh(&ipip_lock); ipn->tunnels_wc[0] = NULL; spin_unlock_bh(&ipip_lock); } else ipip_tunnel_unlink(ipn, netdev_priv(dev)); ...
11,078
34,594
0
pkinit_server_plugin_fini_realm(krb5_context context, pkinit_kdc_context plgctx) { if (plgctx == NULL) return; pkinit_fini_kdc_profile(context, plgctx); pkinit_fini_identity_opts(plgctx->idopts); pkinit_fini_identity_crypto(plgctx->idctx); pkinit_fini_plg_crypto(plgctx->cryptoctx); pkin...
11,079
134,396
0
void NewTabButton::OnMouseReleased(const ui::MouseEvent& event) { if (event.IsOnlyRightMouseButton()) { gfx::Point point = event.location(); views::View::ConvertPointToScreen(this, &point); bool destroyed = false; destroyed_ = &destroyed; gfx::ShowSystemMenuAtPoint(views::HWNDForView(this), point)...
11,080
174,816
0
int LvmBundle_init(EffectContext *pContext){ int status; ALOGV("\tLvmBundle_init start"); pContext->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; pContext->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; pContext->config.inputCfg.format ...
11,081
161,173
0
void MediaStreamManager::UnregisterNativeLogCallback(int renderer_host_id) { DCHECK_CURRENTLY_ON(BrowserThread::IO); MediaStreamManager* msm = g_media_stream_manager_tls_ptr.Pointer()->Get(); if (!msm) { DLOG(ERROR) << "No MediaStreamManager on the IO thread."; return; } msm->DoNativeLogCallbackUnreg...
11,082
21,544
0
void ctrl_alt_del(void) { static DECLARE_WORK(cad_work, deferred_cad); if (C_A_D) schedule_work(&cad_work); else kill_cad_pid(SIGINT, 1); }
11,083
46,566
0
int exptrim(struct nbd_request* req, CLIENT* client) { #if HAVE_FALLOC_PH FILE_INFO prev = g_array_index(client->export, FILE_INFO, 0); FILE_INFO cur = prev; int i = 1; /* We're running on a system that supports the * FALLOC_FL_PUNCH_HOLE option to re-sparsify a file */ do { if(i<client->export->len) { cur ...
11,084
176,857
0
static int getConnectionStateNative(JNIEnv* env, jobject obj, jbyteArray address) { ALOGV("%s:",__FUNCTION__); if (!sBluetoothInterface) return JNI_FALSE; jbyte *addr = env->GetByteArrayElements(address, NULL); if (addr == NULL) { jniThrowIOException(env, EINVAL); return JNI_FALSE; } int ret = sB...
11,085
41,311
0
static ssize_t show_read_buffer_kb(struct device *dev, struct device_attribute *attr, char *buf) { ssize_t retval; struct comedi_device_file_info *info = dev_get_drvdata(dev); unsigned buffer_size_kb = 0; struct comedi_subdevice *const read_subdevice = comedi_get_read_subdevice(info); mutex_lock(&info...
11,086
25,015
0
cifs_writev_complete(struct work_struct *work) { struct cifs_writedata *wdata = container_of(work, struct cifs_writedata, work); struct inode *inode = wdata->cfile->dentry->d_inode; int i = 0; if (wdata->result == 0) { cifs_update_eof(CIFS_I(inode), wdata->offset, wdata->bytes); cifs_stats_bytes_written(...
11,087
81,417
0
trace_ok_for_array(struct tracer *t, struct trace_array *tr) { return (tr->flags & TRACE_ARRAY_FL_GLOBAL) || t->allow_instances; }
11,088
7,922
0
static void cvardecs(JF, js_Ast *node) { if (isfun(node->type)) return; /* stop at inner functions */ if (node->type == EXP_VAR) { if (F->lightweight) addlocal(J, F, node->a, 1); else emitstring(J, F, OP_DEFVAR, node->a->string); } if (node->a) cvardecs(J, F, node->a); if (node->b) cvardecs(J, F, nod...
11,089
119,182
0
static void logConsoleError(ScriptExecutionContext* context, const String& message) { if (!context) return; context->addConsoleMessage(JSMessageSource, ErrorMessageLevel, message); }
11,090
166,659
0
WebGLRenderingContextBase::getAttachedShaders(WebGLProgram* program) { if (isContextLost() || !ValidateWebGLObject("getAttachedShaders", program)) return base::nullopt; HeapVector<Member<WebGLShader>> shader_objects; const GLenum kShaderType[] = {GL_VERTEX_SHADER, GL_FRAGMENT_SHADER}; for (unsigned i = 0; ...
11,091
93,340
0
int __dev_change_flags(struct net_device *dev, unsigned int flags) { unsigned int old_flags = dev->flags; int ret; ASSERT_RTNL(); /* * Set the flags on our device. */ dev->flags = (flags & (IFF_DEBUG | IFF_NOTRAILERS | IFF_NOARP | IFF_DYNAMIC | IFF_MULTICAST | IFF_PORTSEL | IFF_AUTOMEDIA...
11,092
131,754
0
static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(jsValue, info); TRACE_EVENT_SET_SAM...
11,093
75,198
0
static void process_slabs_automove_command(conn *c, token_t *tokens, const size_t ntokens) { unsigned int level; assert(c != NULL); set_noreply_maybe(c, tokens, ntokens); level = strtoul(tokens[2].value, NULL, 10); if (level == 0) { settings.slab_automove = 0; } else if (level == 1 ||...
11,094
161,664
0
void AudioNode::setChannelCountMode(const String& mode, ExceptionState& exception_state) { Handler().SetChannelCountMode(mode, exception_state); }
11,095
147,071
0
void WebLocalFrameImpl::SetAutofillClient(WebAutofillClient* autofill_client) { autofill_client_ = autofill_client; }
11,096
53,377
0
iperf_get_test_bind_address(struct iperf_test *ipt) { return ipt->bind_address; }
11,097
48,345
0
T2P* t2p_init() { T2P* t2p = (T2P*) _TIFFmalloc(sizeof(T2P)); if(t2p==NULL){ TIFFError( TIFF2PDF_MODULE, "Can't allocate %lu bytes of memory for t2p_init", (unsigned long) sizeof(T2P)); return( (T2P*) NULL ); } _TIFFmemset(t2p, 0x00, sizeof(T2P)); t2p->pdf_majorversion=1; t2p->pdf_minorversion=1; ...
11,098
162,888
0
void ProfilingService::MaybeRequestQuit() { DCHECK(ref_factory_); if (ref_factory_->HasNoRefs()) context()->RequestQuit(); }
11,099