Home
last modified time | relevance | path

Searched refs:memcpy (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/system/media/audio_utils/include/audio_utils/
DCircularBuffer.h53 memcpy(buffer, &mBuffer[mTailPosition], bytesToRead); in read()
59 memcpy(buffer, &mBuffer[mTailPosition], bytesToRead); in read()
65 memcpy(buffer, &mBuffer[mTailPosition], bytesToEnd); in read()
67 memcpy(buffer + bytesToEnd, &mBuffer[0], remaining); in read()
104 memcpy(&mBuffer[mHeadPosition], buffer, bytesToWrite); in write()
110 memcpy(&mBuffer[mHeadPosition], buffer, bytesToWrite); in write()
116 memcpy(&mBuffer[mHeadPosition], buffer, bytesToEnd); in write()
118 memcpy(&mBuffer[0], buffer + bytesToEnd, remaining); in write()
/system/extras/cpu_loads/
DAndroid.bp22 name: "memcpy",
23 srcs: ["memcpy.cpp"],
35 name: "memcpy-16kb",
36 srcs: ["memcpy-16kb.cpp"],
48 name: "memcpy-2048kb",
49 srcs: ["memcpy-2048kb.cpp"],
61 name: "memcpy-byte",
62 srcs: ["memcpy-byte.cpp"],
DREADME.md8 - `memcpy` copies a 1GB buffer to a second 1GB buffer using bionic `memcpy`
9 - `memcpy-16kb` copies a 16KB buffer to a second 16KB buffer using bionic `memcpy`
10 - `memcpy-2048kb` copies a 2048KB buffer to a second 2048KB buffer using bionic `memcpy`
11 - `memcpy-byte` copies a 1GB buffer to a second 1GB buffer using byte assignment
43 dumpsys android.hardware.power.stats.IPowerStats/default | tail -27 && sleep 120 && killall memcpy-…
/system/core/fastboot/
Dbootimg_utils.cpp63 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg_v3_and_above()
75 memcpy(hdr->magic + V3_PAGE_SIZE, kernel.data(), kernel.size()); in mkbootimg_v3_and_above()
76 memcpy(hdr->magic + V3_PAGE_SIZE + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg_v3_and_above()
105 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg()
124 memcpy(hdr->magic + hdr->page_size, kernel.data(), kernel.size()); in mkbootimg()
125 memcpy(hdr->magic + hdr->page_size + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg()
126 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual, second.data(), in mkbootimg()
128 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual + second_actual, dtb.data(), in mkbootimg()
/system/gatekeeper/
Dgatekeeper_messages.cpp45 memcpy(*buffer, &length, sizeof(length)); in append_to_buffer()
48 memcpy(*buffer, to_append.Data<uint8_t>(), length); in append_to_buffer()
76 memcpy(&length, *buffer, sizeof(length)); in read_from_buffer()
89 memcpy(target_buffer, *buffer, length); in read_from_buffer()
124 memcpy(buffer, &retry_timeout, sizeof(retry_timeout)); in Serialize()
149 memcpy(&retry_timeout, payload, sizeof(retry_timeout)); in Deserialize()
175 memcpy(buffer, &challenge, sizeof(challenge)); in nonErrorSerialize()
189 memcpy(&challenge, payload, sizeof(challenge)); in nonErrorDeserialize()
219 memcpy(buffer, &request_reenroll, sizeof(request_reenroll)); in nonErrorSerialize()
232 memcpy(&request_reenroll, payload, sizeof(request_reenroll)); in nonErrorDeserialize()
/system/keymaster/android_keymaster/
Dserializable.cpp33 memcpy(buf, data, data_len); in append_to_buf()
42 memcpy(dest, *buf_ptr, size); in copy_from_buf()
79 memcpy(new_buffer, buffer_.get() + read_position_, available_read()); in reserve()
106 memcpy(buffer_.get(), data, data_len); in Reinitialize()
129 memcpy(buffer_.get() + write_position_, src, write_length); in write()
136 memcpy(dest, buffer_.get() + read_position_, read_length); in read()
/system/chre/chpp/common/
Dwifi_convert.c109 memcpy(out->ssid, in->ssid, sizeof(out->ssid)); in chppWifiConvertScanResultFromChre()
110 memcpy(out->bssid, in->bssid, sizeof(out->bssid)); in chppWifiConvertScanResultFromChre()
144 memcpy(&payload[*vlaOffset], in->scannedFreqList, in chppWifiConvertScanEventFromChre()
173 memcpy(out->ssid, in->ssid, sizeof(out->ssid)); in chppWifiConvertSsidListItemFromChre()
187 memcpy(&payload[*vlaOffset], in->frequencyList, in chppWifiConvertScanParamsFromChre()
229 memcpy(out->macAddress, in->macAddress, sizeof(out->macAddress)); in chppWifiConvertRangingResultFromChre()
265 memcpy(out->macAddress, in->macAddress, sizeof(out->macAddress)); in chppWifiConvertRangingTargetFromChre()
302 memcpy(&payload[*vlaOffset], in->service, strSize); in chppWifiConvertNanSubscribeConfigFromChre()
317 memcpy(&payload[*vlaOffset], in->serviceSpecificInfo, in chppWifiConvertNanSubscribeConfigFromChre()
329 memcpy(&payload[*vlaOffset], in->matchFilter, in chppWifiConvertNanSubscribeConfigFromChre()
[all …]
/system/update_engine/payload_generator/
Dboot_img_filesystem_unittest.cc44 memcpy(hdr_v3.magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in GetBootImg()
48 memcpy(boot_img.data() + offset, &hdr_v3, sizeof(hdr_v3)); in GetBootImg()
52 memcpy(hdr_v0.magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in GetBootImg()
57 memcpy(boot_img.data() + offset, &hdr_v0, sizeof(hdr_v0)); in GetBootImg()
60 memcpy(boot_img.data() + offset, kernel.data(), kernel.size()); in GetBootImg()
62 memcpy(boot_img.data() + offset, ramdisk.data(), ramdisk.size()); in GetBootImg()
Dpayload_generation_config_android_unittest.cc124 memcpy(part.data() + kHashTreeOffset, kHashTree, sizeof(kHashTree)); in GetAVBPartition()
125 memcpy(part.data() + kFECOffset, kFEC, sizeof(kFEC)); in GetAVBPartition()
126 memcpy(part.data() + kVBMetaImageOffset, kVBMetaImage, sizeof(kVBMetaImage)); in GetAVBPartition()
127 memcpy(part.data() + kAVBFooterOffset, kAVBFooter, sizeof(kAVBFooter)); in GetAVBPartition()
/system/libbase/include/android-base/
Dmemory.h28 memcpy(&result, address, sizeof(T)); in get_unaligned()
34 memcpy(address, &v, sizeof(T)); in put_unaligned()
/system/nvram/core/
Dcrypto_boringssl.cpp40 memcpy(digest, buffer, digest_size); in SHA256()
42 memcpy(digest, buffer, sizeof(buffer)); in SHA256()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dpresence_service_data.cc49 memcpy(presence_service_data.fp_model_id, &data[p + 1], in Parse()
61 memcpy(presence_service_data.fp_account_key_filter, &data[p + 3], in Parse()
71 memcpy(presence_service_data.fp_battery_status, &data[p + 1], in Parse()
Dfast_pair_filter.cc107 memcpy(result->ble_service_data + 3, service_data.data, in FillResult()
122 memcpy(result->data_element[de_index].value, account_key, in FillResult()
186 memcpy(&key[pos], account_key, kFpAccountKeyLength); in MatchSubsequentPair()
188 memcpy(&key[pos], account_data.salt.data, account_data.salt.length); in MatchSubsequentPair()
194 memcpy(&key[pos], account_data.battery.data, account_data.battery.length); in MatchSubsequentPair()
201 memcpy(&key[pos], account_data.rrd.data, account_data.rrd.length); in MatchSubsequentPair()
Dnearby_extension.c73 memcpy(HW_SCAN_FILTER.scan_filters[i].data, in chrexNearbySetExtendedFilterConfig()
76 memcpy(HW_SCAN_FILTER.scan_filters[i].dataMask, in chrexNearbySetExtendedFilterConfig()
104 memcpy(EXT_SERVICE_CONFIG, config->data, config->data_length); in chrexNearbySetExtendedServiceConfig()
/system/core/libnetutils/
Ddhcpmsg.c39 memcpy(msg->chaddr, hwaddr, 6); in init_dhcp_msg()
89 memcpy(x, &ipaddr, 4); in init_dhcp_request_msg()
94 memcpy(x, &serveraddr, 4); in init_dhcp_request_msg()
/system/chre/apps/test/chqts/src/shared/
Dnano_endian_le_test.cc37 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); in TEST()
45 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); in TEST()
Dnano_endian_be_test.cc42 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); in TEST()
50 ::memcpy(&value, kBigEndianRepresentation, sizeof(value)); in TEST()
/system/bpfprogs/test/
Dmock_bpf.cpp101 memcpy(keyVector.data(), key, map->key_size); in mock_bpf_lookup_elem()
112 memcpy(keyVector.data(), key, map->key_size); in mock_bpf_update_elem()
114 memcpy(value_vector.data(), value, map->value_size); in mock_bpf_update_elem()
133 memcpy(keyVector.data(), key, map->key_size); in mock_bpf_delete_elem()
/system/chre/util/include/chre/util/
Dnested_data_ptr.h55 memcpy(&data, &ptr, sizeof(ptr)); in NestedDataPtr()
66 memcpy(&result, &data, sizeof(data));
/system/chre/apps/test/chqts/src/general_test/
Devent_between_apps_test.cc64 nanoapp_testing::memcpy(&app1InstanceId, message, sizeof(app1InstanceId)); in handleEvent()
102 nanoapp_testing::memcpy(&mApp0InstanceId, message, sizeof(mApp0InstanceId)); in handleEvent()
115 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic)); in handleEvent()
/system/keymaster/km_openssl/
Dhkdf.cpp67 memcpy(buf.get(), digest.get(), digest_size_); in GenerateKey()
70 if (info != nullptr && info_len > 0) memcpy(buf.get() + block_input_len, info, info_len); in GenerateKey()
78 memcpy(output + i * digest_size_, digest.get(), block_output_len); in GenerateKey()
/system/extras/simpleperf/
Dutils.h121 memcpy(&data, p, sizeof(T)); in MoveFromBinaryFormat()
128 memcpy(&data, p, sizeof(T)); in MoveFromBinaryFormat()
136 memcpy(data_p, p, size); in MoveFromBinaryFormat()
143 memcpy(p, &data, sizeof(T)); in MoveToBinaryFormat()
151 memcpy(p, data_p, size); in MoveToBinaryFormat()
188 memcpy(&data, head, sizeof(T)); in Read()
203 memcpy(data_p, head, size); in Read()
/system/chre/platform/slpi/see/
Dplatform_sensor.cc26 memcpy(mSensorName, sensorName, kSensorNameMaxLen); in initBase()
72 memcpy(mSensorName, other.mSensorName, kSensorNameMaxLen); in operator =()
/system/chre/pal/util/tests/
Dwifi_scan_cache_test.cc156 memcpy(result.bssid, &i, sizeof(i)); in cacheDefaultWifiCacheTest()
182 memcpy(result.bssid, &i, sizeof(i)); in cacheDefaultWifiCacheTest()
335 memcpy(result.ssid, dummySsid, strlen(dummySsid)); in TEST_F()
338 memcpy(result.bssid, dummyBssid, strlen(dummyBssid)); in TEST_F()
343 memcpy(result2.ssid, dummySsid2, strlen(dummySsid2)); in TEST_F()
346 memcpy(result2.bssid, dummyBssid2, strlen(dummyBssid2)); in TEST_F()
/system/chre/apps/test/common/chre_cross_validator_wifi/src/
Dwifi_scan_result.cc43 memcpy(mSsid, chreScanResult.ssid, chreScanResult.ssidLen); in WifiScanResult()
44 memcpy(mBssid, chreScanResult.bssid, CHRE_WIFI_BSSID_LEN); in WifiScanResult()

12345678910>>...16