unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
98,490
0
SendThumbnailTask(HWND aeropeek_window, const gfx::Rect& content_bounds, const gfx::Size& aeropeek_size, const SkBitmap& tab_bitmap, base::WaitableEvent* ready) : aeropeek_window_(aeropeek_window), content_bounds_(content_bo...
11,800
38,488
0
static int cma_iw_handler(struct iw_cm_id *iw_id, struct iw_cm_event *iw_event) { struct rdma_id_private *id_priv = iw_id->context; struct rdma_cm_event event; int ret = 0; struct sockaddr *laddr = (struct sockaddr *)&iw_event->local_addr; struct sockaddr *raddr = (struct sockaddr *)&iw_event->remote_addr; if (c...
11,801
42,557
0
suspend_hi_store(struct mddev *mddev, const char *buf, size_t len) { unsigned long long old, new; int err; err = kstrtoull(buf, 10, &new); if (err < 0) return err; if (new != (sector_t)new) return -EINVAL; err = mddev_lock(mddev); if (err) return err; err = -EINVAL; if (mddev->pers == NULL || mdde...
11,802
110,642
0
static bool StringIsValidForGLES(const char* str) { for (; *str; ++str) { if (!CharacterIsValidForGLES(*str)) { return false; } } return true; }
11,803
48,875
0
netdev_features_t netdev_increment_features(netdev_features_t all, netdev_features_t one, netdev_features_t mask) { if (mask & NETIF_F_HW_CSUM) mask |= NETIF_F_CSUM_MASK; mask |= NETIF_F_VLAN_CHALLENGED; all |= one & (NETIF_F_ONE_FOR_ALL | NETIF_F_CSUM_MASK) & mask; all &= one | ~NETIF_F_ALL_FOR_ALL; /* If on...
11,804
159,070
0
void ChromeDownloadManagerDelegate::OnDownloadTargetDetermined( int32_t download_id, const content::DownloadTargetCallback& callback, std::unique_ptr<DownloadTargetInfo> target_info) { DCHECK_CURRENTLY_ON(BrowserThread::UI); DownloadItem* item = download_manager_->GetDownload(download_id); if (item) {...
11,805
25,626
0
void __flush_tlb_global(void) { flush_tlb_all(); }
11,806
170,670
0
uint32_t Visualizer_getDeltaTimeMsFromUpdatedTime(VisualizerContext* pContext) { uint32_t deltaMs = 0; if (pContext->mBufferUpdateTime.tv_sec != 0) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { time_t secs = ts.tv_sec - pContext->mBufferUpdateTime.tv_sec; long nsec = ts.tv_nsec - pContext-...
11,807
43,492
0
rfc4106_set_hash_subkey(u8 *hash_subkey, const u8 *key, unsigned int key_len) { struct crypto_ablkcipher *ctr_tfm; struct ablkcipher_request *req; int ret = -EINVAL; struct aesni_hash_subkey_req_data *req_data; ctr_tfm = crypto_alloc_ablkcipher("ctr(aes)", 0, 0); if (IS_ERR(ctr_tfm)) return PTR_ERR(ctr_tfm); ...
11,808
89,626
0
ghash_internal (gcry_cipher_hd_t c, byte *result, const byte *buf, size_t nblocks) { const unsigned int blocksize = GCRY_GCM_BLOCK_LEN; unsigned int burn = 0; prefetch_tables (c); while (nblocks) { burn = GHASH (c, result, buf); buf += blocksize; nblocks--; } retur...
11,809
137,103
0
void InputType::SetValueAsDate(double, ExceptionState& exception_state) const { exception_state.ThrowDOMException( kInvalidStateError, "This input element does not support Date values."); }
11,810
41,697
0
static int btrfs_writepages(struct address_space *mapping, struct writeback_control *wbc) { struct extent_io_tree *tree; tree = &BTRFS_I(mapping->host)->io_tree; return extent_writepages(tree, mapping, btrfs_get_extent, wbc); }
11,811
57,319
0
ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name) /* {{{ */ { return zend_eval_stringl(str, strlen(str), retval_ptr, string_name); } /* }}} */
11,812
121,848
0
void IOThread::ClearHostCache() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); net::HostCache* host_cache = globals_->host_resolver->GetHostCache(); if (host_cache) host_cache->clear(); }
11,813
73,154
0
buf_new_with_capacity(size_t size) { buf_t *b = buf_new(); b->default_chunk_size = preferred_chunk_size(size); return b; }
11,814
102,702
0
bool CCThreadProxy::compositeAndReadback(void *pixels, const IntRect& rect) { TRACE_EVENT("CCThreadPRoxy::compositeAndReadback", this, 0); ASSERT(isMainThread()); ASSERT(m_layerTreeHost); if (m_commitRequested) { OwnPtr<CCMainThread::Task> beginFrameAndCommitTask; { CCMainT...
11,815
32,627
0
static void tg3_napi_fini(struct tg3 *tp) { int i; for (i = 0; i < tp->irq_cnt; i++) netif_napi_del(&tp->napi[i].napi); }
11,816
57,742
0
static int kvm_read_guest_virt_helper(gva_t addr, void *val, unsigned int bytes, struct kvm_vcpu *vcpu, u32 access, struct x86_exception *exception) { void *data = val; int r = X86EMUL_CONTINUE; while (bytes) { gpa_t gpa = vcpu->arch.walk_mmu->gva_to_gpa(vcpu, addr, access, exceptio...
11,817
3,091
0
static int hashciedefspace(i_ctx_t *i_ctx_p, ref *space, gs_md5_state_t *md5) { int code = 0; ref CIEdict1, spacename; code = array_get(imemory, space, 0, &spacename); if (code < 0) return 0; gs_md5_append(md5, (const gs_md5_byte_t *)&spacename.value.pname, sizeof(spacename.value.pname)); ...
11,818
127,418
0
void FileAPIMessageFilter::BadMessageReceived() { RecordAction(UserMetricsAction("BadMessageTerminate_FAMF")); BrowserMessageFilter::BadMessageReceived(); }
11,819
171,562
0
String8& String8::convertToResPath() { #if OS_PATH_SEPARATOR != RES_PATH_SEPARATOR size_t len = length(); if (len > 0) { char * buf = lockBuffer(len); for (char * end = buf + len; buf < end; ++buf) { if (*buf == OS_PATH_SEPARATOR) *buf = RES_PATH_SEPARATOR; } unlockBuffer(len); } #endif return *this; }...
11,820
58,781
0
struct page *__grab_cache_page(struct address_space *mapping, pgoff_t index) { int status; struct page *page; repeat: page = find_lock_page(mapping, index); if (likely(page)) return page; page = page_cache_alloc(mapping); if (!page) return NULL; status = add_to_page_cache_lru(page, mapping, index, GFP_KERNE...
11,821
104,056
0
void GLES2DecoderImpl::DoUniform3fv( GLint location, GLsizei count, const GLfloat* value) { GLenum type = 0; if (!PrepForSetUniformByLocation(location, "glUniform3fv", &type, &count)) { return; } if (type == GL_BOOL_VEC3) { GLsizei num_values = count * 3; scoped_array<GLint> temp(new GLint[num_v...
11,822
172,505
0
void CameraSource::DeathNotifier::binderDied(const wp<IBinder>& who __unused) { ALOGI("Camera recording proxy died"); }
11,823
122,509
0
void InspectorResourceAgent::replayXHR(ErrorString*, const String& requestId) { String actualRequestId = requestId; XHRReplayData* xhrReplayData = m_resourcesData->xhrReplayData(requestId); if (!xhrReplayData) return; ExecutionContext* executionContext = xhrReplayData->executionContext(); ...
11,824
94,662
0
X509 *d2i_X509_bio(BIO *bp, X509 **x509) { return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); }
11,825
26,841
0
static ssize_t proc_coredump_filter_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { struct task_struct *task = get_proc_task(file->f_dentry->d_inode); struct mm_struct *mm; char buffer[PROC_NUMBUF]; size_t len; int ret; if (!task) return -ESRCH; ret = 0; mm = get_task_mm(task);...
11,826
115,586
0
void GraphicsContext::clip(const Path& path) { if (paintingDisabled()) return; const SkPath& p = *path.platformPath(); if (!isPathSkiaSafe(getCTM(), p)) return; platformContext()->clipPathAntiAliased(p); }
11,827
130,916
0
static void optionsObjectMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { if (UNLIKELY(info.Length() < 1)) { throwTypeError(ExceptionMessages::failedToExecute("optionsObject", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); return; } TestO...
11,828
111,001
0
void FileSystemOperation::CreateSnapshotFile( const GURL& path_url, const SnapshotFileCallback& callback) { GetMetadata(path_url, base::Bind(&GetMetadataForSnapshot, callback)); }
11,829
86,310
0
static inline struct net *to_net_ns(struct ns_common *ns) { return container_of(ns, struct net, ns); }
11,830
118,487
0
void RenderFrameImpl::didAccessInitialDocument(blink::WebLocalFrame* frame) { DCHECK(!frame_ || frame_ == frame); if (!frame->parent() && render_view_->page_id_ == -1) Send(new FrameHostMsg_DidAccessInitialDocument(routing_id_)); }
11,831
87,974
0
static int pcd_open(struct cdrom_device_info *cdi, int purpose) { struct pcd_unit *cd = cdi->handle; if (!cd->present) return -ENODEV; return 0; }
11,832
186,390
1
void SecureProxyChecker::CheckIfSecureProxyIsAllowed( SecureProxyCheckerCallback fetcher_callback) { net::NetworkTrafficAnnotationTag traffic_annotation = net::DefineNetworkTrafficAnnotation( "data_reduction_proxy_secure_proxy_check", R"( semantics { sender: "Data Re...
11,833
165,893
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...
11,834
79,807
0
static int uvesafb_vbe_init(struct fb_info *info) { struct uvesafb_ktask *task = NULL; struct uvesafb_par *par = info->par; int err; task = uvesafb_prep(); if (!task) return -ENOMEM; err = uvesafb_vbe_getinfo(task, par); if (err) goto out; err = uvesafb_vbe_getmodes(task, par); if (err) goto out; pa...
11,835
81,887
0
int wc_ecc_get_curve_id_from_params(int fieldSize, const byte* prime, word32 primeSz, const byte* Af, word32 AfSz, const byte* Bf, word32 BfSz, const byte* order, word32 orderSz, const byte* Gx, word32 GxSz, const byte* Gy, word32 GySz, int cofactor) { int idx; int curveSz; if (prim...
11,836
67,532
0
static int ext4_journalled_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) { handle_t *handle = ext4_journal_current_handle(); struct inode *inode = mapping->host; loff_t old_size = inode->i_size; int ...
11,837
67,336
0
static enum lru_status dentry_lru_isolate(struct list_head *item, struct list_lru_one *lru, spinlock_t *lru_lock, void *arg) { struct list_head *freeable = arg; struct dentry *dentry = container_of(item, struct dentry, d_lru); /* * we are inverting the lru lock/dentry->d_lock here, * so use a trylock. If we ...
11,838
54,172
0
static int digi_tiocmget(struct tty_struct *tty) { struct usb_serial_port *port = tty->driver_data; struct digi_port *priv = usb_get_serial_port_data(port); unsigned int val; unsigned long flags; spin_lock_irqsave(&priv->dp_port_lock, flags); val = priv->dp_modem_signals; spin_unlock_irqrestore(&priv->dp_port_l...
11,839
131,788
0
static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); v8SetReturnValueFast(info, WTF::getPtr(imp->testInterfacePythonAttribute()), imp); }
11,840
110,777
0
void AutocompleteEditModel::ClearPopupKeywordMode() const { if (popup_->IsOpen() && popup_->selected_line_state() == AutocompletePopupModel::KEYWORD) popup_->SetSelectedLineState(AutocompletePopupModel::NORMAL); }
11,841
35,864
0
struct sctp_chunk *sctp_make_datafrag_empty(struct sctp_association *asoc, const struct sctp_sndrcvinfo *sinfo, int data_len, __u8 flags, __u16 ssn) { struct sctp_chunk *retval; struct sctp_datahdr dp; int chunk_len; /* We assign the TSN as LATE as possible, not here when * creating the chu...
11,842
38,389
0
static void cm_get_ack_delay(struct cm_device *cm_dev) { struct ib_device_attr attr; if (ib_query_device(cm_dev->ib_device, &attr)) cm_dev->ack_delay = 0; /* acks will rely on packet life time */ else cm_dev->ack_delay = attr.local_ca_ack_delay; }
11,843
85,946
0
static void do_deferred_remove(struct work_struct *w) { dm_deferred_remove(); }
11,844
55,203
0
static int powermate_input_event(struct input_dev *dev, unsigned int type, unsigned int code, int _value) { unsigned int command = (unsigned int)_value; struct powermate_device *pm = input_get_drvdata(dev); if (type == EV_MSC && code == MSC_PULSELED){ /* bits 0- 7: 8 bits: LED brightness bits 8-16: ...
11,845
93,385
0
static void flush_backlog(struct work_struct *work) { struct sk_buff *skb, *tmp; struct softnet_data *sd; local_bh_disable(); sd = this_cpu_ptr(&softnet_data); local_irq_disable(); rps_lock(sd); skb_queue_walk_safe(&sd->input_pkt_queue, skb, tmp) { if (skb->dev->reg_state == NETREG_UNREGISTERING) { __skb_...
11,846
62,874
0
static int check_sysreg_table(const struct sys_reg_desc *table, unsigned int n) { unsigned int i; for (i = 1; i < n; i++) { if (cmp_sys_reg(&table[i-1], &table[i]) >= 0) { kvm_err("sys_reg table %p out of order (%d)\n", table, i - 1); return 1; } } return 0; }
11,847
149,452
0
bool isAllowedByAll(const CSPDirectiveListVector& policies, const KURL& url, const String& nonce, RedirectStatus redirectStatus, SecurityViolationReportingPolicy reportingPolicy) { if (ContentSecurityPolicy::shouldBypassContentSecurityPol...
11,848
5,476
0
static void Ins_WCVTP( INS_ARG ) { if ( BOUNDS( args[0], CUR.cvtSize ) ) { CUR.error = TT_Err_Invalid_Reference; return; } CUR_Func_write_cvt( args[0], args[1] ); }
11,849
187,005
1
void DownloadResourceHandler::OnRequestRedirected( const net::RedirectInfo& redirect_info, network::ResourceResponse* response, std::unique_ptr<ResourceController> controller) { url::Origin new_origin(url::Origin::Create(redirect_info.new_url)); if (!follow_cross_origin_redirects_ && !first_origin_.IsSameOriginWith(new...
11,850
68,101
0
static void header(RBinFile *arch) { struct r_bin_dex_obj_t *bin = arch->o->bin_obj; struct r_bin_t *rbin = arch->rbin; rbin->cb_printf ("DEX file header:\n"); rbin->cb_printf ("magic : 'dex\\n035\\0'\n"); rbin->cb_printf ("checksum : %x\n", bin->header.checksum); rbin->cb_printf ("signa...
11,851
149,394
0
AwFeatureListCreator::~AwFeatureListCreator() {}
11,852
162,796
0
GLuint GetCubeServiceId(const TextureUnit& unit) { return unit.bound_texture_cube_map.get() ? unit.bound_texture_cube_map->service_id() : 0; }
11,853
150,247
0
TabletModeWindowState::TabletModeWindowState(aura::Window* window, TabletModeWindowManager* creator, bool snap, bool animate_bounds_on_attach, ...
11,854
83,655
0
int git_index_add(git_index *index, const git_index_entry *source_entry) { git_index_entry *entry = NULL; int ret; assert(index && source_entry && source_entry->path); if (!valid_filemode(source_entry->mode)) { giterr_set(GITERR_INDEX, "invalid entry mode"); return -1; } if ((ret = index_entry_dup(&entry, ...
11,855
167,450
0
void BaseAudioContext::Uninitialize() { DCHECK(IsMainThread()); if (!IsDestinationInitialized()) return; if (destination_node_) destination_node_->Handler().Uninitialize(); GetDeferredTaskHandler().FinishTailProcessing(); ReleaseActiveSourceNodes(); RejectPendingResolvers(); DCHECK(listener_...
11,856
130,135
0
void HTMLBodyElement::setScrollTop(int scrollTop) { Document& document = this->document(); document.updateLayoutIgnorePendingStylesheets(); if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) { RenderBox* render = renderBox(); if (!render) return; if (render->hasO...
11,857
1,476
0
static int coroutine_fn stat_to_v9stat(V9fsPDU *pdu, V9fsPath *path, const char *basename, const struct stat *stbuf, V9fsStat *v9stat) { int err; memset(v9stat, 0, sizeof(*v9stat)); stat_to...
11,858
173,677
0
unsigned pid() const { return mElementaryPID; }
11,859
177,924
1
_zip_cdir_new(int nentry, struct zip_error *error) { struct zip_cdir *cd; if ((cd=(struct zip_cdir *)malloc(sizeof(*cd))) == NULL) { _zip_error_set(error, ZIP_ER_MEMORY, 0); return NULL; } if ((cd->entry=(struct zip_dirent *)malloc(sizeof(*(cd->entry))*nentry)) == NULL) { _zip_error_set(error, ZIP_ER_MEMORY, 0); ...
11,860
6,794
0
static int cli_io_handler_show_errors(struct appctx *appctx) { struct stream_interface *si = appctx->owner; extern const char *monthname[12]; if (unlikely(si_ic(si)->flags & (CF_WRITE_ERROR|CF_SHUTW))) return 1; chunk_reset(&trash); if (!appctx->ctx.errors.px) { /* the function had not been called yet, let'...
11,861
77,072
0
parse_SET_IP_TTL(char *arg, struct ofpbuf *ofpacts, enum ofputil_protocol *usable_protocols OVS_UNUSED) { uint8_t ttl; char *error; error = str_to_u8(arg, "TTL", &ttl); if (error) { return error; } ofpact_put_SET_IP_TTL(ofpacts)->ttl = ttl; return NULL; }
11,862
114,303
0
void WebGraphicsContext3DCommandBufferImpl::deleteShader(WebGLId shader) { gl_->DeleteShader(shader); }
11,863
102,209
0
SyncAPIServerConnectionManager* connection_manager() { return connection_manager_.get(); }
11,864
126,550
0
gboolean TabStripGtk::OnDragDataReceived(GtkWidget* widget, GdkDragContext* context, gint x, gint y, GtkSelectionData* data, guint info, guint time) { boo...
11,865
92,946
0
mcs_out_domain_params(STREAM s, int max_channels, int max_users, int max_tokens, int max_pdusize) { ber_out_header(s, MCS_TAG_DOMAIN_PARAMS, 32); ber_out_integer(s, max_channels); ber_out_integer(s, max_users); ber_out_integer(s, max_tokens); ber_out_integer(s, 1); /* num_priorities */ ber_out_integer(s, 0); /* m...
11,866
11,273
0
static void write_guest_rom_state(VAPICROMState *s) { cpu_physical_memory_write(s->rom_state_paddr, &s->rom_state, sizeof(GuestROMState)); }
11,867
144,108
0
png_set_flush(png_structp png_ptr, int nrows) { png_debug(1, "in png_set_flush"); if (png_ptr == NULL) return; png_ptr->flush_dist = (nrows < 0 ? 0 : nrows); }
11,868
21,244
0
static int insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page, pgprot_t prot) { struct mm_struct *mm = vma->vm_mm; int retval; pte_t *pte; spinlock_t *ptl; retval = -EINVAL; if (PageAnon(page)) goto out; retval = -ENOMEM; flush_dcache_page(page); pte = get_locked_pte(mm, addr, ...
11,869
180,612
1
void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start, unsigned long end, unsigned long vmflag) { unsigned long addr; /* do a global flush by default */ unsigned long base_pages_to_flush = TLB_FLUSH_ALL; preempt_disable(); if (current->active_mm != mm) goto out; if (!current->mm) { leave_mm(smp_processor...
11,870
176,584
0
xmlFatalErrMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg) { if ((ctxt != NULL) && (ctxt->disableSAX != 0) && (ctxt->instate == XML_PARSER_EOF)) return; if (ctxt != NULL) ctxt->errNo = error; __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error, XML_ERR_F...
11,871
53,868
0
acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) { struct semaphore *sem = (struct semaphore *)handle; if (!acpi_os_initialized) return AE_OK; if (!sem || (units < 1)) return AE_BAD_PARAMETER; if (units > 1) return AE_SUPPORT; ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Signaling semaphore[%p|%d...
11,872
172,578
0
static size_t GetCPUCoreCount() { long cpuCoreCount = 1; #if defined(_SC_NPROCESSORS_ONLN) cpuCoreCount = sysconf(_SC_NPROCESSORS_ONLN); #else cpuCoreCount = sysconf(_SC_NPROC_ONLN); #endif CHECK(cpuCoreCount >= 1); ALOGV("Number of CPU cores: %ld", cpuCoreCount); return (size_t)cpuCoreCount; }
11,873
78,375
0
des3_encrypt_cbc(const unsigned char *key, int keysize, unsigned char iv[EVP_MAX_IV_LENGTH], const unsigned char *input, size_t length, unsigned char *output) { unsigned char bKey[24] = { 0 }; if (keysize == 16) { memcpy(&bKey[0], key, 16); memcpy(&bKey[16], key, 8); } else { memcpy(&bKey[0], key, 24); } ...
11,874
24,728
0
unsigned long usecs_to_jiffies(const unsigned int u) { if (u > jiffies_to_usecs(MAX_JIFFY_OFFSET)) return MAX_JIFFY_OFFSET; #if HZ <= USEC_PER_SEC && !(USEC_PER_SEC % HZ) return (u + (USEC_PER_SEC / HZ) - 1) / (USEC_PER_SEC / HZ); #elif HZ > USEC_PER_SEC && !(HZ % USEC_PER_SEC) return u * (HZ / USEC_PER_SEC); #els...
11,875
45,072
0
static int lua_ap_regex(lua_State *L) { request_rec *r; int i, rv, flags; const char *pattern, *source; char *err; ap_regex_t regex; ap_regmatch_t matches[MODLUA_MAX_REG_MATCH+1]; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING)...
11,876
143,700
0
bool RenderWidgetHostImpl::ScheduleComposite() { if (is_hidden_ || current_size_.IsEmpty() || repaint_ack_pending_ || resize_ack_pending_) { return false; } repaint_start_time_ = TimeTicks::Now(); repaint_ack_pending_ = true; TRACE_EVENT_ASYNC_BEGIN0( "renderer_host", "RenderWidgetHostImpl::r...
11,877
140,206
0
GaiaCookieManagerService::ExternalCcResultFetcher::~ExternalCcResultFetcher() { CleanupTransientState(); }
11,878
187,055
1
void ImageBitmapFactories::ImageBitmapLoader::Trace(blink::Visitor* visitor) { visitor->Trace(factory_); visitor->Trace(resolver_); visitor->Trace(options_); }
11,879
188,108
1
void impeg2d_dec_hdr(void *pv_dec,impeg2d_video_decode_ip_t *ps_ip, impeg2d_video_decode_op_t *ps_op) { UWORD32 u4_bits_read; dec_state_t *ps_dec; UWORD32 u4_size = ps_ip->s_ivd_video_decode_ip_t.u4_num_Bytes; ps_dec = (dec_state_t *)pv_dec; ps_op->s_ivd_video_decode_op_t.u4_error_code = 0; if (u4_...
11,880
171,382
0
status_t OMXCodec::stop() { CODEC_LOGV("stop mState=%d", mState); Mutex::Autolock autoLock(mLock); status_t err = stopOmxComponent_l(); mSource->stop(); CODEC_LOGV("stopped in state %d", mState); return err; }
11,881
169,656
0
AssertForegroundHelper() : weak_ptr_factory_(this) {}
11,882
152,454
0
void RenderFrameImpl::OnSetOverlayRoutingToken( const base::UnguessableToken& token) { overlay_routing_token_ = token; for (const auto& cb : pending_routing_token_callbacks_) cb.Run(overlay_routing_token_.value()); pending_routing_token_callbacks_.clear(); }
11,883
109,303
0
void InspectorPageAgent::getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTree>& object) { object = buildObjectForFrameTree(m_page->mainFrame()); }
11,884
183,618
1
WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs( PrefService* prefs, bool is_dom_ui) { WebPreferences web_prefs; web_prefs.fixed_font_family = prefs->GetString(prefs::kWebKitFixedFontFamily); web_prefs.serif_font_family = prefs->GetString(prefs::kWebKitSerifFontFamily); web_prefs.sans_serif_font_family = ...
11,885
123,424
0
ChromeDownloadManagerDelegate::ChromeDownloadManagerDelegate(Profile* profile) : profile_(profile), next_download_id_(0), download_prefs_(new DownloadPrefs(profile)) { }
11,886
151,094
0
void DevToolsWindow::OpenDevToolsWindowForWorker( Profile* profile, const scoped_refptr<DevToolsAgentHost>& worker_agent) { DevToolsWindow* window = FindDevToolsWindow(worker_agent.get()); if (!window) { window = DevToolsWindow::CreateDevToolsWindowForWorker(profile); if (!window) return; ...
11,887
48,311
0
TIFFInitPixarLog(TIFF* tif, int scheme) { static const char module[] = "TIFFInitPixarLog"; PixarLogState* sp; assert(scheme == COMPRESSION_PIXARLOG); /* * Merge codec-specific tag information. */ if (!_TIFFMergeFields(tif, pixarlogFields, TIFFArrayCount(pixarlogFields))) { TIFFErrorExt(tif->tif_c...
11,888
151,231
0
DEFINE_TRACE(InspectorPageAgent) { visitor->Trace(inspected_frames_); visitor->Trace(inspector_resource_content_loader_); InspectorBaseAgent::Trace(visitor); }
11,889
106,946
0
QQuickWebView::QQuickWebView(QQuickItem* parent) : QQuickItem(parent) , d_ptr(createPrivateObject(this)) , m_experimental(new QQuickWebViewExperimental(this)) { Q_D(QQuickWebView); d->initialize(); }
11,890
156,603
0
~FactoryImpl() {}
11,891
31,165
0
fbmem_init(void) { proc_create("fb", 0, NULL, &fb_proc_fops); if (register_chrdev(FB_MAJOR,"fb",&fb_fops)) printk("unable to get major %d for fb devs\n", FB_MAJOR); fb_class = class_create(THIS_MODULE, "graphics"); if (IS_ERR(fb_class)) { printk(KERN_WARNING "Unable to create fb class; errno = %ld\n", PTR_ERR...
11,892
161,396
0
SecurityHandler::SecurityHandler() : DevToolsDomainHandler(Security::Metainfo::domainName), enabled_(false), host_(nullptr) { }
11,893
164,776
0
bool BitReaderCore::SkipBits(int num_bits) { DCHECK_GE(num_bits, 0); const int remaining_bits = nbits_ + nbits_next_; if (remaining_bits >= num_bits) return SkipBitsSmall(num_bits); num_bits -= remaining_bits; bits_read_ += remaining_bits; nbits_ = 0; reg_ = 0; nbits_next_ = 0; reg_next_ = 0; ...
11,894
109,496
0
void ComputeWebKitPrintParamsInDesiredDpi( const PrintMsg_Print_Params& print_params, WebKit::WebPrintParams* webkit_print_params) { int dpi = GetDPI(&print_params); webkit_print_params->printerDPI = dpi; webkit_print_params->printScalingOption = print_params.print_scaling_option; using printing::Conve...
11,895
18,415
0
static int ape_read_close(AVFormatContext * s) { APEContext *ape = s->priv_data; av_freep(&ape->frames); av_freep(&ape->seektable); return 0; }
11,896
179,457
1
mountpoint_last(struct nameidata *nd, struct path *path) { int error = 0; struct dentry *dentry; struct dentry *dir = nd->path.dentry; /* If we're in rcuwalk, drop out of it to handle last component */ if (nd->flags & LOOKUP_RCU) { if (unlazy_walk(nd, NULL)) { error = -ECHILD; goto out; } } nd->flags &= ~LOOKUP_PAREN...
11,897
171,553
0
String8::String8(const char32_t* o, size_t len) : mString(allocFromUTF32(o, len)) { }
11,898
99,954
0
void PluginInstance::NPP_StreamAsFile(NPStream *stream, const char *fname) { DCHECK(npp_functions_ != 0); DCHECK(npp_functions_->asfile != 0); if (npp_functions_->asfile != 0) { npp_functions_->asfile(npp_, stream, fname); } FilePath file_name = FilePath::FromWStringHack(UTF8ToWide(fname)); files_creat...
11,899