Home
last modified time | relevance | path

Searched refs:CHECK_EQ (Results 1 – 25 of 72) sorted by relevance

123

/system/update_engine/
Dlibcurl_http_fetcher.cc165 CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_PROXY, ""), CURLE_OK); in ResumeTransfer()
167 CHECK_EQ(curl_easy_setopt( in ResumeTransfer()
173 CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_PROXYTYPE, type), in ResumeTransfer()
179 CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_POST, 1), CURLE_OK); in ResumeTransfer()
180 CHECK_EQ( in ResumeTransfer()
183 CHECK_EQ(curl_easy_setopt( in ResumeTransfer()
209 CHECK_EQ( in ResumeTransfer()
231 CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_RANGE, range_str.c_str()), in ResumeTransfer()
235 CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_WRITEDATA, this), CURLE_OK); in ResumeTransfer()
236 CHECK_EQ( in ResumeTransfer()
[all …]
Dtest_http_server.cc109 CHECK_EQ(terms.size(), static_cast<vector<string>::size_type>(3)); in ParseRequest()
110 CHECK_EQ(terms[0], "GET"); in ParseRequest()
123 CHECK_EQ(terms.size(), static_cast<vector<string>::size_type>(2)); in ParseRequest()
144 CHECK_EQ(terms.size(), static_cast<vector<string>::size_type>(2)); in ParseRequest()
392 CHECK_EQ(static_cast<size_t>(0), url.find("/redirect/")); in HandleRedirect()
501 CHECK_EQ(url[0], '/'); in UrlTerms()
508 CHECK_EQ(terms.size(), num_terms); in UrlTerms()
645 CHECK_EQ(write(report_fd, listening_msg.c_str(), listening_msg.length()), in main()
647 CHECK_EQ(write(report_fd, "\n", 1), 1); in main()
/system/libbase/
Dtest_utils.cpp46 CHECK_EQ(0, TEMP_FAILURE_RETRY(lseek(fd(), 0, SEEK_SET))); in str()
53 CHECK_EQ(-1, old_fd_); in Reset()
54 CHECK_EQ(0, TEMP_FAILURE_RETRY(lseek(fd(), 0, SEEK_SET))); in Reset()
55 CHECK_EQ(0, ftruncate(fd(), 0)); in Reset()
62 if (std_fd_ == STDERR_FILENO) CHECK_EQ(0, setvbuf(stderr, nullptr, _IONBF, 0)); in Start()
Dlogging_test.cpp67 ASSERT_DEATH({SuppressAbortUI(); CHECK_EQ(0, 1);}, "Check failed: 0 == 1 "); in TEST()
68 CHECK_EQ(0, 0); in TEST()
72 CHECK_EQ(p, nullptr); in TEST()
73 CHECK_EQ(p, p); in TEST()
77 ASSERT_DEATH(CHECK_EQ(kText, nullptr), "Check failed.*null"); in TEST()
78 CHECK_EQ(kText, kText); in TEST()
/system/core/logd/
DCompressionEngine.cpp51 CHECK_EQ(ret, Z_STREAM_END); in Compress()
74 CHECK_EQ(strm.avail_in, 0U); in Decompress()
75 CHECK_EQ(strm.avail_out, 0U); in Decompress()
76 CHECK_EQ(ret, Z_STREAM_END); in Decompress()
102 CHECK_EQ(result, out.size()); in Decompress()
DSerializedLogChunk.cpp24 CHECK_EQ(reader_ref_count_, 0U); in ~SerializedLogChunk()
57 CHECK_EQ(reader_ref_count_, 0U); in ClearUidLogs()
/system/core/libprocinfo/
Dprocess_map_benchmark.cpp39 CHECK_EQ(maps.size(), 2043u); in BM_ReadMapFile()
49 CHECK_EQ(maps.Total(), 2043u); in BM_unwindstack_FileMaps()
61 CHECK_EQ(maps.Total(), 2043u); in BM_unwindstack_BufferMaps()
/system/update_engine/payload_consumer/
Dfile_writer.cc24 CHECK_EQ(fd_, -1); in Open()
42 CHECK_EQ(bytes_written, count); in Write()
Dfile_descriptor.cc32 CHECK_EQ(fd_, -1); in Open()
37 CHECK_EQ(fd_, -1); in Open()
Dextent_writer.cc59 CHECK_EQ(extent_bytes_written_, cur_extent_->num_blocks() * block_size_); in Write()
/system/memory/libmeminfo/
Dlibmeminfo_benchmark.cpp338 CHECK_EQ(mem[MEMINFO_KERNEL_STACK], 4880u); in BM_MemInfoWithZram_old()
401 CHECK_EQ(mem[MEMINFO_KERNEL_STACK], 4880u); in BM_MemInfoWithZram_new()
448 CHECK_EQ(get_allocated_vmalloc_memory(vmallocinfo), 29884416); in BM_VmallocInfo_old_fixed()
458 CHECK_EQ(::android::meminfo::ReadVmallocInfo(vmallocinfo), 29884416); in BM_VmallocInfo_new()
527 CHECK_EQ(get_smaps_rollup(path, &stats), true); in BM_SmapsRollup_old()
528 CHECK_EQ(stats.pss, 108384); in BM_SmapsRollup_old()
538 CHECK_EQ(SmapsOrRollupFromFile(path, &stats), true); in BM_SmapsRollup_new()
539 CHECK_EQ(stats.pss, 108384); in BM_SmapsRollup_new()
/system/extras/verity/
Dhash_tree_builder.cpp148 CHECK_EQ(1, ret); in HashBlock()
149 CHECK_EQ(hash_size_raw_, s); in HashBlock()
160 CHECK_EQ(0, len % block_size_); in HashBlocks()
226 CHECK_EQ(1, verity_tree_.size()); in BuildHashTree()
238 CHECK_EQ(base_level_blocks * block_size_, verity_tree_[0].size()); in BuildHashTree()
253 CHECK_EQ(next_level_blocks * block_size_, next_level.size()); in BuildHashTree()
257 CHECK_EQ(block_size_, verity_tree_.back().size()); in BuildHashTree()
/system/connectivity/wificond/
Dmain.cpp87 CHECK_EQ(err, 0) << "Error setting up binder polling: " << strerror(-err); in SetupBinderOrCrash()
94 CHECK_EQ(sm != NULL, true) << "Could not obtain IServiceManager"; in RegisterServiceOrCrash()
96 CHECK_EQ(sm->addService(android::String16(kServiceName), service), in RegisterServiceOrCrash()
/system/update_engine/payload_generator/
Dboot_img_filesystem.cc78 CHECK_EQ(0, memcmp(hdr_v0->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)); in CreateFromFile()
85 CHECK_EQ(0, memcmp(hdr_v3->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)); in CreateFromFile()
86 CHECK_EQ(3u, hdr_v3->header_version); in CreateFromFile()
/system/bt/service/ipc/binder/
Dbluetooth_binder_server.cc388 CHECK_EQ(adapter, adapter_); in OnAdapterStateChanged()
399 CHECK_EQ(adapter, adapter_); in OnDeviceConnectionStateChanged()
408 CHECK_EQ(adapter, adapter_); in OnScanEnableChanged()
419 CHECK_EQ(adapter, adapter_); in OnSspRequest()
436 CHECK_EQ(adapter, adapter_); in OnBondStateChanged()
449 CHECK_EQ(adapter, adapter_); in OnGetBondedDevices()
464 CHECK_EQ(adapter, adapter_); in OnGetRemoteDeviceProperties()
479 CHECK_EQ(adapter, adapter_); in OnDeviceFound()
/system/core/logwrapper/
Dlogwrap_fork_execvp_benchmark.cpp27 CHECK_EQ(0, rc); in BM_android_fork_execvp_ext()
/system/core/adb/
Dtransport_fd.cpp41 CHECK_EQ(0, rc); in CreateWakeFds()
110 CHECK_EQ(sizeof(amessage), header_buf.size()); in Run()
132 CHECK_EQ(static_cast<int>(sizeof(buf)), rc); in Run()
/system/bt/packet/avrcp/
Dcapabilities_packet.cc97 CHECK_EQ(capability_, Capability::COMPANY_ID); in AddCompanyId()
109 CHECK_EQ(capability_, Capability::EVENTS_SUPPORTED); in AddEvent()
/system/extras/simpleperf/
Drecord.cpp368 CHECK_EQ(p, new_binary + new_size); in SetCommandName()
510 CHECK_EQ(0u, sample_type & ~(PERF_SAMPLE_IP | PERF_SAMPLE_TID in SampleRecord()
598 CHECK_EQ(p, new_binary + size); in SampleRecord()
718 CHECK_EQ(callchain_pos, static_cast<size_t>(reinterpret_cast<char*>(p64) - new_binary)) in BuildBinaryWithNewCallChain()
902 CHECK_EQ(p, end); in BuildIdRecord()
934 CHECK_EQ(data->aux_type, AUX_TYPE_ETM); in AuxTraceInfoRecord()
935 CHECK_EQ(data->version, 0); in AuxTraceInfoRecord()
937 CHECK_EQ(data->etm4_info[i].magic, MAGIC_ETM4); in AuxTraceInfoRecord()
940 CHECK_EQ(p, end); in AuxTraceInfoRecord()
984 CHECK_EQ(p, end); in AuxTraceRecord()
[all …]
Dworkload.cpp82 CHECK_EQ(work_state_, NotYetCreateNewProcess); in CreateNewProcess()
156 CHECK_EQ(work_state_, NotYetStartNewProcess); in Start()
DIOEventLoop_test.cpp54 CHECK_EQ(write(fd[1], &c, 1), 1); in TEST()
174 CHECK_EQ(write(fd[1], &c, 1), 1); in TEST()
/system/update_engine/common/
Dmulti_range_http_fetcher.cc93 CHECK_EQ(fetcher, base_fetcher_.get()); in ReceivedBytes()
126 CHECK_EQ(fetcher, base_fetcher_.get()); in TransferEnded()
/system/bt/common/
Daddress_obfuscator.cc54 CHECK_EQ(out_len, static_cast<unsigned int>(kOctet32Length)); in Obfuscate()
/system/iorap/tests/src/binder/
Dapp_launch_event_test.cc184 CHECK_EQ(value.writeToParcel(&p), ::android::NO_ERROR); in ValueParcelRoundTrip()
188 CHECK_EQ(new_value.readFromParcel(&p), ::android::NO_ERROR); in ValueParcelRoundTrip()
/system/core/debuggerd/tombstoned/
Dintercept_manager.cpp42 CHECK_EQ(sockfd, intercept->sockfd.get()); in intercept_close_cb()
88 CHECK_EQ(sockfd, intercept->sockfd.get()); in intercept_request_cb()

123