Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 903) sorted by relevance

12345678910>>...37

/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.cc46 it = std::copy(&z, &z + 1, it); in f4()
47 it = std::copy(v, v + OCTET32_LEN, it); in f4()
48 it = std::copy(u, u + OCTET32_LEN, it); in f4()
67 it = std::copy(length, length + 2, it); in calculate_mac_key_or_ltk()
68 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk()
69 it = std::copy(a1, a1 + 7, it); in calculate_mac_key_or_ltk()
70 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk()
71 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk()
72 it = std::copy(key_id, key_id + 4, it); in calculate_mac_key_or_ltk()
73 it = std::copy(&counter, &counter + 1, it); in calculate_mac_key_or_ltk()
[all …]
/system/apex/apexd/
Dapex_file_repository_test.cpp59 fs::copy(GetTestFile(name), built_in_dir); in PrepareCompressedApex()
76 fs::copy(GetTestFile("apex.apexd_test.apex"), built_in_dir.path); in TEST()
77 fs::copy(GetTestFile("apex.apexd_test_different_app.apex"), in TEST()
80 fs::copy(GetTestFile("apex.apexd_test.apex"), data_dir.path); in TEST()
81 fs::copy(GetTestFile("apex.apexd_test_different_app.apex"), data_dir.path); in TEST()
129 fs::copy(GetTestFile("apex.apexd_test.apex"), td.path); in TEST()
130 fs::copy(GetTestFile("apex.apexd_test_corrupt_superblock_apex.apex"), in TEST()
140 fs::copy(GetTestFile("com.android.apex.compressed.v1_without_apex.capex"), in TEST()
151 fs::copy(GetTestFile("apex.apexd_test.apex"), td.path); in TEST()
152 fs::copy(GetTestFile("apex.apexd_test.apex"), in TEST()
[all …]
/system/tools/hidl/host_utils/
DStringHelper.cpp112 std::string copy(in); in Tokenize() local
115 while (!copy.empty()) { in Tokenize()
116 if (std::regex_search(copy, match, kStartLowercase)) matches.push_back(match.str(0)); in Tokenize()
117 if (std::regex_search(copy, match, kStartCapcase)) matches.push_back(match.str(0)); in Tokenize()
118 if (std::regex_search(copy, match, kStartUppercase)) matches.push_back(match.str(0)); in Tokenize()
119 if (std::regex_search(copy, match, kStartNumcase)) matches.push_back(match.str(0)); in Tokenize()
126 copy = copy.substr(maxmatch.length()); in Tokenize()
131 tmpVec.push_back(copy); in Tokenize()
228 std::string copy(in); in RTrimAll() local
229 while (EndsWith(copy, suffix)) { in RTrimAll()
[all …]
/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.cc48 it = std::copy(&z, &z + 1, it); in f4()
49 it = std::copy(v, v + BT_OCTET32_LEN, it); in f4()
50 it = std::copy(u, u + BT_OCTET32_LEN, it); in f4()
65 it = std::copy(length, length + 2, it); in calculate_mac_key_or_ltk()
66 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk()
67 it = std::copy(a1, a1 + 7, it); in calculate_mac_key_or_ltk()
68 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk()
69 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk()
70 it = std::copy(key_id, key_id + 4, it); in calculate_mac_key_or_ltk()
71 it = std::copy(&counter, &counter + 1, it); in calculate_mac_key_or_ltk()
[all …]
/system/bt/gd/packet/
Dbit_inserter_unittest.cc50 std::vector<uint8_t> copy; in TEST() local
53 …it.RegisterObserver(ByteObserver([&copy](uint8_t byte) { copy.push_back(byte); }, [checksum]() { r… in TEST()
67 ASSERT_EQ(result.size(), copy.size()); in TEST()
68 for (size_t i = 0; i < copy.size(); i++) { in TEST()
69 ASSERT_EQ(result[i], copy[i]); in TEST()
78 ASSERT_EQ(result.size(), copy.size()); in TEST()
Dfragmenting_inserter_unittest.cc63 std::vector<uint8_t> copy; in TEST() local
66 …it.RegisterObserver(ByteObserver([&copy](uint8_t byte) { copy.push_back(byte); }, [checksum]() { r… in TEST()
85 ASSERT_EQ(result.size(), copy.size()); in TEST()
86 for (size_t i = 0; i < copy.size(); i++) { in TEST()
87 ASSERT_EQ(result[i], copy[i]); in TEST()
/system/unwinding/libunwindstack/
DJitDebug.cpp29 std::unique_ptr<MemoryBuffer> copy(new MemoryBuffer()); in Load() local
30 if (!copy->Resize(size) || !memory->ReadFully(addr, copy->GetPtr(0), size)) { in Load()
33 elf.reset(new Elf(copy.release())); in Load()
DDexFile.cpp113 std::unique_ptr<MemoryBuffer> copy(new MemoryBuffer); in Create() local
114 if (!copy->Resize(file_size)) { in Create()
117 if (!memory->ReadFully(base_addr, copy->GetPtr(0), file_size)) { in Create()
121 art_api::dex::DexFile::Create(copy->GetPtr(0), file_size, nullptr, "", &dex); in Create()
125 std::shared_ptr<DexFileApi> api(new DexFileApi{std::move(dex), std::move(copy), std::mutex()}); in Create()
/system/update_engine/update_manager/
Dgeneric_variables_unittest.cc91 unique_ptr<const CopyConstructorTestClass> copy( in TEST_F() local
93 ASSERT_NE(nullptr, copy.get()); in TEST_F()
94 EXPECT_TRUE(copy->copied_); in TEST_F()
128 unique_ptr<const CopyConstructorTestClass> copy( in TEST_F() local
131 ASSERT_NE(nullptr, copy.get()); in TEST_F()
132 EXPECT_TRUE(copy->copied_); in TEST_F()
133 EXPECT_EQ(12, copy->val_); // Check that copying occurred once. in TEST_F()
/system/extras/libfec/
Dfec_read.cpp159 uint8_t copy[FEC_RSM]; in __ecc_read() local
172 memcpy(copy, &ecc_data[i * FEC_RSM], FEC_RSM); in __ecc_read()
182 dump("raw RS block", rsb, copy, FEC_RSM); in __ecc_read()
265 size_t copy = FEC_BLOCKSIZE - coff; in ecc_read() local
267 if (copy > left) { in ecc_read()
268 copy = left; in ecc_read()
271 memcpy(dest, &data[coff], copy); in ecc_read()
273 dest += copy; in ecc_read()
274 left -= copy; in ecc_read()
385 size_t copy = FEC_BLOCKSIZE - coff; in verity_read()
[all …]
/system/vold/
DKeyBuffer.cpp26 std::copy(rhs.begin(), rhs.end(), std::back_inserter(lhs)); in operator +()
31 std::copy(rhs, rhs + strlen(rhs), std::back_inserter(lhs)); in operator +()
/system/bt/gd/hci/
Daddress.cc38 std::copy(addr, addr + kLength, data()); in Address()
42 std::copy(l.begin(), std::min(l.begin() + kLength, l.end()), data()); in Address()
114 std::copy(from, from + kLength, data()); in FromOctets()
/system/bt/types/
Draw_address.cc33 std::copy(addr, addr + kLength, address); in RawAddress()
66 std::copy(from, from + kLength, address); in FromOctets()
Dclass_of_device.cc31 std::copy(class_of_device, class_of_device + kLength, cod); in ClassOfDevice()
71 std::copy(from, from + kLength, cod); in FromOctets()
/system/keymaster/tests/
Dauthorization_set_test.cpp580 AuthorizationSet copy(set); in TEST() local
582 EXPECT_EQ(copy, set); in TEST()
584 EXPECT_EQ(copy.size(), set.size()); in TEST()
588 EXPECT_NE(copy, set); in TEST()
598 AuthorizationSet copy(set); in TEST() local
600 EXPECT_EQ(copy, set); in TEST()
604 EXPECT_EQ(copy.size() - 1, set.size()); in TEST()
605 EXPECT_NE(copy, set); in TEST()
616 AuthorizationSet copy(set); in TEST() local
618 EXPECT_EQ(copy, set); in TEST()
[all …]
/system/extras/cppreopts/
Dcppreopts.rc5 # You may obtain a copy of the License at
29 # Optional script to copy additional preloaded content to data directory
37 # Optional script to copy additional preloaded content to data directory
/system/security/keystore/include/keystore/
Dkeystore_hidl_support.h83 return std::copy(value_ptr, value_ptr + sizeof(value), dest); in copy_bytes_to_iterator()
107 pos = std::copy(token.hmac.data(), token.hmac.data() + token.hmac.size(), pos); in authToken2HidlVec()
115 std::copy(src, src + sizeof(T), value_ptr); in copy_bytes_from_iterator()
139 pos = std::copy(pos, pos + token.hmac.size(), &token.hmac[0]); in hidlVec2Km3AuthToken()
/system/extras/simpleperf/scripts/test/
Dbinary_cache_builder_test.py56 shutil.copy(origin_file, source_file)
78 shutil.copy(
85 shutil.copy(TestHelper.testdata_path(
/system/core/gatekeeperd/
DGateKeeperResponse.cpp50 std::copy(buf, buf + length, payload_.data()); in readFromParcel()
73 std::copy(payload_.begin(), payload_.end(), buf); in writeToParcel()
/system/keymaster/ng/
DKeyMintUtils.cpp121 pos = std::copy(token->mac.data(), token->mac.data() + token->mac.size(), pos); in authToken2AidlVec()
227 uint8_t* copy = static_cast<uint8_t*>(malloc(value.size())); in aidlKeyParams2Km() local
228 std::copy(value.begin(), value.end(), copy); in aidlKeyParams2Km()
229 set.params[i] = keymaster_param_blob(tag, copy, value.size()); in aidlKeyParams2Km()
/system/bt/gd/packet/parser/test/
Dsix_bytes.cc27 std::copy(six, six + kLength, six_bytes); in SixBytes()
/system/core/storaged/
Dstoraged_utils.cpp108 std::copy(perf_history.begin() + start, perf_history.begin() + end, in log_console_perf_history()
115 std::copy(perf_history.begin() + start, perf_history.begin() + end, in log_console_perf_history()
121 std::copy(perf_history.begin() + start, perf_history.end(), in log_console_perf_history()
/system/bt/btif/src/
Dbluetooth.cc491 uint8_t* copy = (uint8_t*)osi_calloc(len); in dut_mode_send() local
492 memcpy(copy, buf, len); in dut_mode_send()
500 opcode, copy, len)); in dut_mode_send()
622 bt_property_t* copy = nullptr; in property_deep_copy_array() local
632 copy = (bt_property_t*)osi_calloc((sizeof(bt_property_t) * num_properties) + in property_deep_copy_array()
634 uint8_t* content = (uint8_t*)(copy + num_properties); in property_deep_copy_array()
638 copy[i].type = properties[i].type; in property_deep_copy_array()
639 copy[i].len = len; in property_deep_copy_array()
643 copy[i].val = content; in property_deep_copy_array()
648 return copy; in property_deep_copy_array()
/system/netd/libnetdutils/
DSliceTest.cpp100 copy(buffer, makeSlice(origA1)); in TEST_F()
101 copy(drop(buffer, sizeof(origA1)), makeSlice(origB)); in TEST_F()
102 copy(drop(buffer, sizeof(origA1) + sizeof(origB)), makeSlice(origA2)); in TEST_F()
/system/extras/perf2cfg/tests/
Dtest_events.py23 event_names = events.EVENT_SORT_ORDER.copy()

12345678910>>...37