Home
last modified time | relevance | path

Searched defs:buffer (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/system/core/libutils/include/utils/
DFlattenable.h46 static size_t align(void const*& buffer) { in align()
54 static size_t align(void*& buffer) { in align()
63 static void advance(void*& buffer, size_t& size, size_t offset) { in advance()
68 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance()
75 static void write(void*& buffer, size_t& size, const T& value) { in write()
84 static void read(void const*& buffer, size_t& size, T& value) { in read()
137 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten()
142 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten()
181 inline status_t LightFlattenable<T>::flatten(void* buffer, size_t size) const { in flatten()
185 inline status_t LightFlattenable<T>::unflatten(void const* buffer, size_t size) { in unflatten()
[all …]
/system/core/libunwindstack/tests/
DMemoryCacheTest.cpp47 std::vector<uint8_t> buffer(i); in TEST_F() local
56 std::vector<uint8_t> buffer(i); in TEST_F() local
65 std::vector<uint8_t> buffer(i); in TEST_F() local
75 std::vector<uint8_t> buffer(i); in TEST_F() local
86 std::vector<uint8_t> buffer(32); in TEST_F() local
99 std::vector<uint8_t> buffer(i); in TEST_F() local
108 std::vector<uint8_t> buffer(i); in TEST_F() local
116 std::vector<uint8_t> buffer(kMaxCachedSize); in TEST_F() local
130 std::vector<uint8_t> buffer(32); in TEST_F() local
DMemoryBufferTest.cpp37 std::vector<uint8_t> buffer(1024); in TEST_F() local
56 std::vector<uint8_t> buffer(memory_->Size()); in TEST_F() local
65 std::vector<uint8_t> buffer(200); in TEST_F() local
75 std::vector<uint8_t> buffer(200); in TEST_F() local
93 std::vector<uint8_t> buffer(memory_->Size()); in TEST_F() local
DMemoryOfflineBufferTest.cpp50 static void VerifyBuffer(uint8_t* buffer, size_t start_value, size_t length) { in VerifyBuffer()
57 std::vector<uint8_t> buffer(1024); in TEST_F() local
66 std::vector<uint8_t> buffer(1024); in TEST_F() local
78 std::vector<uint8_t> buffer(1024); in TEST_F() local
84 std::vector<uint8_t> buffer(1024); in TEST_F() local
DMemoryFileTest.cpp51 std::vector<char> buffer(11); in TEST_F() local
61 std::vector<char> buffer(11); in TEST_F() local
77 std::vector<char> buffer(9); in TEST_F() local
93 std::vector<char> buffer(11); in TEST_F() local
114 std::vector<char> buffer(11); in TEST_F() local
149 std::vector<char> buffer(100); in TEST_F() local
171 std::vector<uint8_t> buffer(pagesize - 100); in TEST_F() local
188 std::vector<uint8_t> buffer(pagesize * 10); in TEST_F() local
212 std::vector<uint8_t> buffer(pagesize * 10); in TEST_F() local
239 std::vector<uint8_t> buffer(pagesize * 10); in TEST_F() local
[all …]
DMapInfoCreateMemoryTest.cpp46 std::vector<uint8_t> buffer(20000); in InitElf() local
62 std::vector<uint8_t> buffer(12288, 0); in SetUp() local
120 std::vector<uint8_t> buffer(1024); in TEST_F() local
190 std::vector<uint8_t> buffer(0x100); in TEST_F() local
245 std::vector<uint8_t> buffer(1024); in TEST_F() local
258 std::vector<uint8_t> buffer(1024); in TEST_F() local
308 std::vector<uint8_t> buffer(0x4000); in TEST_F() local
355 std::vector<uint8_t> buffer(0x4000); in TEST_F() local
389 std::vector<uint8_t> buffer(0x100); in TEST_F() local
/system/chre/util/tests/
Dbuffer_test.cc24 void fillBufferWithSequentialValues(float *buffer, size_t size) { in fillBufferWithSequentialValues()
31 Buffer<float> buffer; in TEST() local
40 Buffer<float> buffer; in TEST() local
50 Buffer<float> buffer; in TEST() local
60 Buffer<float> buffer; in TEST() local
70 Buffer<float> buffer; in TEST() local
81 Buffer<float> buffer; in TEST() local
/system/chre/apps/wifi_offload/
Dflatbuffers_serialization.cc23 size_t Serialize(const wifi_offload::ScanStats &stats, uint8_t *buffer, in Serialize()
28 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize()
34 size_t Serialize(const wifi_offload::ScanConfig &config, uint8_t *buffer, in Serialize()
39 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize()
46 uint8_t *buffer, size_t buffer_len) { in Serialize()
52 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize()
/system/core/debuggerd/libdebuggerd/test/
Ddump_memory_test.cpp110 virtual size_t Read(uint64_t addr, void* buffer, size_t bytes) override { in Read()
136 void SetReadData(uint8_t* buffer, size_t bytes) { in SetReadData()
201 uint8_t buffer[256]; in TEST_F() local
220 uint8_t buffer[256]; in TEST_F() local
240 uint8_t buffer[256]; in TEST_F() local
272 uint8_t buffer[104]; in TEST_F() local
291 uint8_t buffer[104]; in TEST_F() local
316 uint8_t buffer[106]; in TEST_F() local
345 uint8_t buffer[256]; in TEST_F() local
399 uint8_t buffer[256]; in TEST_F() local
[all …]
/system/connectivity/wifilogd/tests/
Dmemory_reader_unittest.cpp31 constexpr std::array<uint8_t, 1> buffer{}; in TEST() local
37 constexpr std::array<uint8_t, 0> buffer{}; in TEST() local
48 constexpr std::array<uint8_t, 3> buffer{{1, 2, 3}}; in TEST() local
62 constexpr std::array<uint8_t, 3> buffer{{1, 2, 3}}; in TEST() local
110 constexpr std::array<uint8_t, 1024> buffer{}; in TEST() local
116 constexpr std::array<uint8_t, 1024> buffer{}; in TEST() local
122 constexpr std::array<uint8_t, 1024> buffer{}; in TEST() local
131 constexpr std::array<uint8_t, 1> buffer{}; in TEST() local
137 constexpr std::array<uint8_t, 0> buffer{}; in TEST() local
143 constexpr std::array<uint8_t, 1024> buffer{}; in TEST() local
[all …]
Dos_unittest.cpp196 std::array<uint8_t, 8192> buffer{}; in TEST_F() local
209 std::array<uint8_t, kReadBufferSize> buffer{}; in TEST_F() local
222 std::array<uint8_t, kReadBufferSize> buffer{}; in TEST_F() local
233 std::array<uint8_t, 8192> buffer{}; in TEST_F() local
245 std::array<uint8_t, 8192> buffer{}; in TEST_F() local
256 constexpr std::array<uint8_t, 8192> buffer{}; in TEST_F() local
267 constexpr std::array<uint8_t, 8192> buffer{}; in TEST_F() local
277 constexpr std::array<uint8_t, 0> buffer{}; in TEST_F() local
287 constexpr std::array<uint8_t, 8192> buffer{}; in TEST_F() local
298 constexpr std::array<uint8_t, 0> buffer{}; in TEST_F() local
[all …]
/system/core/libstats/socket/tests/
Dstats_event_test.cpp26 T readNext(uint8_t** buffer) { in readNext()
32 void checkTypeHeader(uint8_t** buffer, uint8_t typeId, uint8_t numAnnotations = 0) { in checkTypeHeader()
38 void checkScalar(uint8_t** buffer, T expectedValue) { in checkScalar()
42 void checkString(uint8_t** buffer, const string& expectedString) { in checkString()
49 void checkByteArray(uint8_t** buffer, const vector<uint8_t>& expectedByteArray) { in checkByteArray()
57 void checkAnnotation(uint8_t** buffer, uint8_t annotationId, uint8_t typeId, T annotationValue) { in checkAnnotation()
63 void checkMetadata(uint8_t** buffer, uint8_t numElements, int64_t startTime, int64_t endTime, in checkMetadata()
101 uint8_t* buffer = stats_event_get_buffer(event, &bufferSize); in TEST() local
139 uint8_t* buffer = stats_event_get_buffer(event, &bufferSize); in TEST() local
164 uint8_t* buffer = stats_event_get_buffer(event, &bufferSize); in TEST() local
[all …]
/system/core/fastboot/device/
Dtcp_client.cpp33 static uint64_t ExtractMessageLength(const void* buffer) { in ExtractMessageLength()
42 static void EncodeMessageLength(uint64_t length, void* buffer) { in EncodeMessageLength()
68 char buffer[8]; in Read() local
144 char buffer[kHandshakeLength + 1]; in ListenFastbootSocket() local
/system/chre/util/include/chre/util/
Dbuffer.h72 void wrap(ElementType *buffer, size_t size) { in wrap()
91 bool copy_array(const ElementType *buffer, size_t size) { in copy_array()
/system/core/libappfuse/
DFuseAppLoop.cc32 bool HandleLookUp(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleLookUp()
57 bool HandleGetAttr(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleGetAttr()
67 bool HandleRead(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleRead()
77 bool HandleWrite(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleWrite()
88 bool HandleMessage(FuseAppLoop* loop, FuseBuffer* buffer, int fd, FuseAppLoopCallback* callback) { in HandleMessage()
226 FuseBuffer buffer; in Start() local
/system/core/adb/client/
Dfastdeploycallbacks.cpp30 static void appendBuffer(std::vector<char>* buffer, const char* input, int length) { in appendBuffer()
61 void DeployAgentBufferCallback::OnStdout(const char* buffer, int length) { in OnStdout()
65 void DeployAgentBufferCallback::OnStderr(const char* buffer, int length) { in OnStderr()
Dcommandline.h47 static void OnStream(std::string* string, FILE* stream, const char* buffer, int length) { in OnStream()
71 void OnStdout(const char* buffer, int length) { in OnStdout()
75 void OnStderr(const char* buffer, int length) { in OnStderr()
/system/chre/util/
Dbuffer_base.cc29 void BufferBase::wrap(void *buffer, size_t size) { in wrap()
37 bool BufferBase::copy_array(const void *buffer, size_t size, in copy_array()
/system/core/fs_mgr/libdm/
Dloop_control_test.cpp42 char buffer[] = "Hello"; in TempFile() local
59 char buffer[6]; in TEST() local
/system/core/logcat/tests/
Dlogcat_benchmark.cpp46 void init(const char* buffer) { in BM_logcat_sorted_order()
54 explicit timestamp(const char* buffer) { in BM_logcat_sorted_order()
78 char buffer[5120]; in BM_logcat_sorted_order() local
/system/core/adb/daemon/
Dfile_sync_service.cpp273 Block buffer(SYNC_DATA_MAX); in handle_send_file_data() local
348 CompressionType compression, bool dry_run, std::vector<char>& buffer, in handle_send_file()
446 std::vector<char>& buffer) { in handle_send_link()
499 bool dry_run, std::vector<char>& buffer) { in send_impl()
545 static bool do_send_v1(int s, const std::string& spec, std::vector<char>& buffer) { in do_send_v1()
565 static bool do_send_v2(int s, const std::string& path, std::vector<char>& buffer) { in do_send_v2()
623 std::vector<char>& buffer) { in recv_impl()
713 static bool do_recv_v1(borrowed_fd s, const char* path, std::vector<char>& buffer) { in do_recv_v1()
717 static bool do_recv_v2(borrowed_fd s, const char* path, std::vector<char>& buffer) { in do_recv_v2()
793 static bool handle_sync_command(int fd, std::vector<char>& buffer) { in handle_sync_command()
[all …]
/system/core/fastboot/
Dtcp.cpp41 static uint64_t ExtractMessageLength(const void* buffer) { in ExtractMessageLength()
50 static void EncodeMessageLength(uint64_t length, void* buffer) { in EncodeMessageLength()
103 char buffer[kHandshakeLength + 1]; in InitializeProtocol() local
135 char buffer[8]; in Read() local
/system/core/libcutils/
Duevent.cpp35 ssize_t uevent_kernel_multicast_recv(int socket, void* buffer, size_t length) { in uevent_kernel_multicast_recv()
49 ssize_t uevent_kernel_multicast_uid_recv(int socket, void* buffer, size_t length, uid_t* uid) { in uevent_kernel_multicast_uid_recv()
53 ssize_t uevent_kernel_recv(int socket, void* buffer, size_t length, bool require_group, uid_t* uid)… in uevent_kernel_recv()
/system/bt/bta/hf_client/
Dbta_hf_client_at.cc801 char* buffer) { in bta_hf_client_parse_ok()
811 char* buffer) { in bta_hf_client_parse_error()
821 char* buffer) { in bta_hf_client_parse_ring()
832 tBTA_HF_CLIENT_CB* client_cb, char* buffer, in bta_hf_client_parse_uint32()
852 char* buffer) { in bta_hf_client_parse_brsf()
860 char* buffer) { in bta_hf_client_parse_cind_values()
892 char* buffer) { in bta_hf_client_parse_cind_list()
926 char* buffer) { in bta_hf_client_parse_cind()
935 char* buffer) { in bta_hf_client_parse_chld()
989 char* buffer) { in bta_hf_client_parse_ciev()
[all …]
/system/chre/util/nanoapp/
Dwifi.cc26 bool parseSsidToStr(char *buffer, size_t bufferLen, in parseSsidToStr()
52 char *buffer, size_t bufferLen) { in parseBssidToStr()

12345678910>>...12