Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 2419) sorted by relevance

12345678910>>...97

/system/extras/simpleperf/
Dcmd_report_sample_test.cpp62 std::string data; in TEST() local
63 GetProtobufReport(PERF_DATA_WITH_SYMBOLS, &data); in TEST()
64 ASSERT_NE(data.find("magic: SIMPLEPERF"), std::string::npos); in TEST()
65 ASSERT_NE(data.find("version: 1"), std::string::npos); in TEST()
66 ASSERT_NE(data.find("file:"), std::string::npos); in TEST()
70 std::string data; in TEST() local
71 GetProtobufReport(PERF_DATA_WITH_WRONG_IP_IN_CALLCHAIN, &data); in TEST()
73 ASSERT_EQ(data.find("unknown"), std::string::npos); in TEST()
77 std::string data; in TEST() local
78 GetProtobufReport(PERF_DATA_WITH_SYMBOLS, &data); in TEST()
[all …]
DOfflineUnwinder.cpp90 arm_user_regs.regs[i] = static_cast<uint32_t>(regs.data[i]); in GetBacktraceRegs()
101 memcpy(&arm64_user_regs.regs[unwindstack::ARM64_REG_R0], &regs.data[PERF_REG_ARM64_X0], in GetBacktraceRegs()
103 arm64_user_regs.sp = regs.data[PERF_REG_ARM64_SP]; in GetBacktraceRegs()
104 arm64_user_regs.pc = regs.data[PERF_REG_ARM64_PC]; in GetBacktraceRegs()
113 x86_user_regs.eax = static_cast<uint32_t>(regs.data[PERF_REG_X86_AX]); in GetBacktraceRegs()
114 x86_user_regs.ebx = static_cast<uint32_t>(regs.data[PERF_REG_X86_BX]); in GetBacktraceRegs()
115 x86_user_regs.ecx = static_cast<uint32_t>(regs.data[PERF_REG_X86_CX]); in GetBacktraceRegs()
116 x86_user_regs.edx = static_cast<uint32_t>(regs.data[PERF_REG_X86_DX]); in GetBacktraceRegs()
117 x86_user_regs.ebp = static_cast<uint32_t>(regs.data[PERF_REG_X86_BP]); in GetBacktraceRegs()
118 x86_user_regs.edi = static_cast<uint32_t>(regs.data[PERF_REG_X86_DI]); in GetBacktraceRegs()
[all …]
/system/core/libcutils/
Dconfig_utils.cpp115 char *data; member
125 char *data; in _lex() local
127 data = cs->data; in _lex()
137 c = *data++; in _lex()
148 switch(*data) { in _lex()
150 cs->data = data; in _lex()
153 cs->data = data + 1; in _lex()
156 data++; in _lex()
162 cs->data = data; in _lex()
166 cs->data = data; in _lex()
[all …]
/system/unwinding/libunwindstack/tests/
DAndroidUnwinderTest.cpp78 AndroidUnwinderData data; in TEST() local
81 data.frames.resize(4); in TEST()
82 data.frames[0].function_name = "no_demangle()"; in TEST()
83 data.frames[1].function_name = "_Z4fakeb"; in TEST()
84 data.frames[3].function_name = "_Z8demanglei"; in TEST()
86 data.DemangleFunctionNames(); in TEST()
87 EXPECT_EQ("no_demangle()", data.frames[0].function_name); in TEST()
88 EXPECT_EQ("fake(bool)", data.frames[1].function_name); in TEST()
89 EXPECT_EQ("", data.frames[2].function_name); in TEST()
90 EXPECT_EQ("demangle(int)", data.frames[3].function_name); in TEST()
[all …]
DMemoryOfflineBufferTest.cpp30 memory_.reset(new MemoryOfflineBuffer(buffer_.data(), kStart, kEnd)); in SetUp()
58 ASSERT_FALSE(memory_->ReadFully(0, buffer.data(), 1)); in TEST_F()
59 ASSERT_FALSE(memory_->ReadFully(0xfff, buffer.data(), 1)); in TEST_F()
60 ASSERT_FALSE(memory_->ReadFully(0xfff, buffer.data(), 2)); in TEST_F()
61 ASSERT_FALSE(memory_->ReadFully(0x3000, buffer.data(), 1)); in TEST_F()
62 ASSERT_FALSE(memory_->ReadFully(0x3001, buffer.data(), 1)); in TEST_F()
67 ASSERT_TRUE(memory_->ReadFully(kStart, buffer.data(), 10)); in TEST_F()
68 ASSERT_NO_FATAL_FAILURE(VerifyBuffer(buffer.data(), 0, 10)); in TEST_F()
70 ASSERT_TRUE(memory_->ReadFully(kStart + 555, buffer.data(), 40)); in TEST_F()
71 ASSERT_NO_FATAL_FAILURE(VerifyBuffer(buffer.data(), 555, 40)); in TEST_F()
[all …]
DMemoryOfflineTest.cpp31 data.push_back(i & 0xff); in SetUp()
35 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, data.data(), data.size())); in SetUp()
45 std::vector<char> data; member in unwindstack::MemoryOfflineTest
52 ASSERT_EQ(0U, memory->Read(offset + data.size(), &buf, 1)); in TEST_F()
54 ASSERT_EQ(buf, data.front()); in TEST_F()
55 ASSERT_EQ(1U, memory->Read(offset + data.size() - 1, &buf, 1)); in TEST_F()
56 ASSERT_EQ(buf, data.back()); in TEST_F()
61 buf.resize(2 * data.size()); in TEST_F()
62 ASSERT_EQ(data.size(), memory->Read(offset, buf.data(), buf.size())); in TEST_F()
63 buf.resize(data.size()); in TEST_F()
[all …]
DMemoryFileTest.cpp52 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F()
54 ASSERT_STREQ("0123456789", buffer.data()); in TEST_F()
62 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F()
64 ASSERT_STREQ("abcdefghij", buffer.data()); in TEST_F()
78 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 8)); in TEST_F()
80 ASSERT_STREQ("abcdefgh", buffer.data()); in TEST_F()
85 std::string data; in TEST_F() local
87 data += static_cast<char>((i / pagesize) + '0'); in TEST_F()
88 data += static_cast<char>((i % 10) + '0'); in TEST_F()
90 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F()
[all …]
/system/keymint/common/src/keyblob/legacy/
Dtests.rs9 let mut data = &buffer[..]; in test_consume_u8() localVariable
10 assert_eq!(1u8, consume_u8(&mut data).unwrap()); in test_consume_u8()
11 assert_eq!(2u8, consume_u8(&mut data).unwrap()); in test_consume_u8()
12 let result = consume_u8(&mut data); in test_consume_u8()
23 let mut data = &buffer[..]; in test_consume_u32() localVariable
24 assert_eq!(0x04030201u32, consume_u32(&mut data).unwrap()); in test_consume_u32()
25 assert_eq!(0x01020304u32, consume_u32(&mut data).unwrap()); in test_consume_u32()
26 let result = consume_u32(&mut data); in test_consume_u32()
37 let mut data = &buffer[..]; in test_consume_u64() localVariable
38 assert_eq!(0x0807060504030201u64, consume_u64(&mut data).unwrap()); in test_consume_u64()
[all …]
/system/libziparchive/
Dzip_writer_test.cc62 ZipEntry data; in TEST_F() local
63 ASSERT_EQ(0, FindEntry(handle, "file.txt", &data)); in TEST_F()
64 EXPECT_EQ(kCompressStored, data.method); in TEST_F()
65 EXPECT_EQ(0u, data.has_data_descriptor); in TEST_F()
66 EXPECT_EQ(strlen(expected), data.compressed_length); in TEST_F()
67 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
68 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); in TEST_F()
87 ZipEntry data; in TEST_F() local
88 ASSERT_EQ(0, FindEntry(handle, "file.txt", &data)); in TEST_F()
89 EXPECT_EQ(kCompressDeflated, data.method); in TEST_F()
[all …]
/system/update_engine/scripts/
Dscan_lz4.py8 def scan_legacy_lz4_frames(data): argument
11 while index < len(data):
13 index = data.index(LZ4_LEGACY_FRAME_MAGIC, index)
16 while index < len(data):
17 magic = data[index:index+4]
21 if index + 4 + csize >= len(data) or csize == 0:
30 def scan_lz4_frames(data): argument
32 while index < len(data):
34 index = data.index(LZ4_FRAME_MAGIC, index)
37 flag = data[index]
[all …]
/system/extras/verity/
Dbuild_verity_tree_test.cpp52 void GenerateHashTree(const std::vector<unsigned char>& data, in GenerateHashTree() argument
54 ASSERT_TRUE(builder->Initialize(data.size(), salt)); in GenerateHashTree()
55 ASSERT_TRUE(builder->Update(data.data(), data.size())); in GenerateHashTree()
85 std::vector<unsigned char> data(4096, 1); in TEST_F() local
87 GenerateHashTree(data, salt_hex); in TEST_F()
95 std::vector<unsigned char> data(128 * 4096, 0); in TEST_F() local
97 GenerateHashTree(data, salt_hex); in TEST_F()
105 std::vector<unsigned char> data(128 * 4096, 0x0); in TEST_F() local
110 GenerateHashTree(data, salt_hex); in TEST_F()
117 std::vector<unsigned char> data(129 * 4096, 0xff); in TEST_F() local
[all …]
/system/media/audio_utils/tests/
Dhal_smoothness_tests.cpp20 custom_private_data *data = (custom_private_data *)private_data; in custom_flush() local
22 data->ran_callback = true; in custom_flush()
24 memcpy(&data->metrics, metrics, sizeof(hal_smoothness_metrics)); in custom_flush()
31 data = {}; in CommonSmoothnessInit()
32 data.ran_callback = false; in CommonSmoothnessInit()
35 num_writes_to_log, custom_flush, &data); in CommonSmoothnessInit()
41 custom_private_data data; member in HalSmoothnessTest
55 EXPECT_EQ(data.ran_callback, true); in TEST_F()
69 EXPECT_EQ(data.ran_callback, false); in TEST_F()
74 EXPECT_EQ(data.ran_callback, true); in TEST_F()
[all …]
/system/unwinding/libunwindstack/benchmarks/
Dlocal_unwind_benchmarks.cpp41 size_t LocalCall5(size_t (*func)(void*), void* data) { in LocalCall5() argument
42 return func(data); in LocalCall5()
45 size_t LocalCall4(size_t (*func)(void*), void* data) { in LocalCall4() argument
46 return LocalCall5(func, data); in LocalCall4()
49 size_t LocalCall3(size_t (*func)(void*), void* data) { in LocalCall3() argument
50 return LocalCall4(func, data); in LocalCall3()
53 size_t LocalCall2(size_t (*func)(void*), void* data) { in LocalCall2() argument
54 return LocalCall3(func, data); in LocalCall2()
57 size_t LocalCall1(size_t (*func)(void*), void* data) { in LocalCall1() argument
58 return LocalCall2(func, data); in LocalCall1()
[all …]
/system/core/libutils/
DSharedBuffer.h54 inline const void* data() const;
57 inline void* data();
63 static inline SharedBuffer* bufferFromData(void* data);
66 static inline const SharedBuffer* bufferFromData(const void* data);
69 static inline size_t sizeFromData(const void* data);
119 const void* SharedBuffer::data() const { in data() function
123 void* SharedBuffer::data() { in data() function
131 SharedBuffer* SharedBuffer::bufferFromData(void* data) { in bufferFromData() argument
132 return data ? static_cast<SharedBuffer *>(data)-1 : nullptr; in bufferFromData()
135 const SharedBuffer* SharedBuffer::bufferFromData(const void* data) { in bufferFromData() argument
[all …]
/system/incremental_delivery/incfs/tests/
DMountRegistry_test.cpp48 ASSERT_STREQ("/root", r().rootFor("/root").data()); in TEST_F()
49 ASSERT_STREQ("/root", r().rootFor("/root/1").data()); in TEST_F()
50 ASSERT_STREQ("/root", r().rootFor("/root/1/2").data()); in TEST_F()
51 ASSERT_STREQ(nullptr, r().rootFor("/root1/1/2").data()); in TEST_F()
52 ASSERT_STREQ(nullptr, r().rootFor("/1/root").data()); in TEST_F()
53 ASSERT_STREQ(nullptr, r().rootFor("root").data()); in TEST_F()
59 ASSERT_STREQ("/root", r().rootFor("/root").data()); in TEST_F()
60 ASSERT_STREQ("/root", r().rootFor("/bind").data()); in TEST_F()
61 ASSERT_STREQ("/root", r().rootFor("/bind/1").data()); in TEST_F()
62 ASSERT_STREQ("/root", r().rootFor("/root/1").data()); in TEST_F()
[all …]
/system/unwinding/libunwindstack/
DAndroidUnwinder.cpp123 bool AndroidUnwinder::Unwind(AndroidUnwinderData& data) { in Unwind() argument
124 return Unwind(std::nullopt, data); in Unwind()
127 bool AndroidUnwinder::Unwind(std::optional<pid_t> tid, AndroidUnwinderData& data) { in Unwind() argument
128 if (!Initialize(data.error)) { in Unwind()
132 return InternalUnwind(tid, data); in Unwind()
135 bool AndroidUnwinder::Unwind(void* ucontext, AndroidUnwinderData& data) { in Unwind() argument
137 data.error.code = ERROR_INVALID_PARAMETER; in Unwind()
141 if (!Initialize(data.error)) { in Unwind()
146 return Unwind(regs.get(), data); in Unwind()
149 bool AndroidUnwinder::Unwind(Regs* initial_regs, AndroidUnwinderData& data) { in Unwind() argument
[all …]
/system/keymint/common/src/tag/
Dlegacy.rs16 pub fn consume_u8(data: &mut &[u8]) -> Result<u8, Error> { in consume_u8()
17 match data.first() { in consume_u8()
19 *data = &(*data)[1..]; in consume_u8()
29 pub fn consume_bool(data: &mut &[u8]) -> Result<(), Error> { in consume_bool()
30 let b = consume_u8(data)?; in consume_bool()
39 pub fn consume_u32(data: &mut &[u8]) -> Result<u32, Error> { in consume_u32()
40 if data.len() < 4 { in consume_u32()
43 let chunk: [u8; 4] = data[..4].try_into().unwrap(); // safe: just checked in consume_u32()
44 *data = &(*data)[4..]; in consume_u32()
49 pub fn consume_i32(data: &mut &[u8]) -> Result<i32, Error> { in consume_i32()
[all …]
/system/chre/platform/slpi/see/
Dsee_helper.cc121 SeeDataArg *data; member
148 auto *data = static_cast<const SeeBufArg *>(*arg); in copyPayload() local
152 static_cast<const pb_byte_t *>(data->buf), in copyPayload()
153 data->bufLen)) { in copyPayload()
216 SeeBufArg data = { in encodeSnsSuidReq() local
222 .data_type.arg = &data, in encodeSnsSuidReq()
365 UniquePtr<sns_client_request_msg> *msg, SeeBufArg *data) { in prepSnsClientReq() argument
368 CHRE_ASSERT(data); in prepSnsClientReq()
378 data->buf = payload, data->bufLen = payloadLen, in prepSnsClientReq()
390 req->request.payload.arg = data; in prepSnsClientReq()
[all …]
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubSendMessageToHostTestExecutor.java76 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp() argument
87 checkSmallData(data); in handleMessageFromNanoApp()
91 assertEquals("Expected zero length data", 0, data.length); in handleMessageFromNanoApp()
95 readMessageMaxSize(data); in handleMessageFromNanoApp()
102 checkLargeData(data); in handleMessageFromNanoApp()
115 private boolean isGeneralProtocolMessage(byte[] data) { in isGeneralProtocolMessage() argument
116 if (data.length < 4) { in isGeneralProtocolMessage()
120 if (data[i] != RAW_DATA_BYTE) { in isGeneralProtocolMessage()
154 private void checkSmallData(byte[] data) { in checkSmallData() argument
156 SMALL_DATA_LENGTH, data.length); in checkSmallData()
[all …]
/system/sepolicy/prebuilts/api/32.0/private/
Dfile.te4 # /data/misc/storaged
7 # /data/misc/wmtrace for wm traces
10 # /data/misc/a11ytrace for accessibility traces
13 # /data/misc/perfetto-traces for perfetto traces
16 # /data/misc/perfetto-traces/bugreport for perfetto traces for bugreports.
19 # /data/misc/perfetto-configs for perfetto configs
25 # App executable files in /data/data directories
29 # /data/misc_[ce|de]/rollback : Used by installd to store snapshots
30 # of application data.
33 # /data/gsi/ota
[all …]
/system/sepolicy/prebuilts/api/31.0/private/
Dfile.te4 # /data/misc/storaged
7 # /data/misc/wmtrace for wm traces
10 # /data/misc/a11ytrace for accessibility traces
13 # /data/misc/perfetto-traces for perfetto traces
16 # /data/misc/perfetto-traces/bugreport for perfetto traces for bugreports.
19 # /data/misc/perfetto-configs for perfetto configs
25 # App executable files in /data/data directories
29 # /data/misc_[ce|de]/rollback : Used by installd to store snapshots
30 # of application data.
33 # /data/gsi/ota
[all …]
/system/chre/apps/test/common/chre_audio_concurrency_test/src/
Dchre_audio_concurrency_test_manager.cc213 bool Manager::validateAudioDataEvent(const chreAudioDataEvent *data) { in validateAudioDataEvent() argument
215 if (data == nullptr) { in validateAudioDataEvent()
217 } else if (data->format == CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW) { in validateAudioDataEvent()
218 if (data->samplesULaw8 == nullptr) { in validateAudioDataEvent()
221 } else if (data->format != CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in validateAudioDataEvent()
222 LOGE("Invalid format %" PRIu8, data->format); in validateAudioDataEvent()
223 } else if (data->samplesS16 == nullptr) { in validateAudioDataEvent()
225 } else if (data->sampleCount == 0) { in validateAudioDataEvent()
227 } else if (data->sampleCount < in validateAudioDataEvent()
229 static_cast<double>(data->sampleRate) / in validateAudioDataEvent()
[all …]
/system/libfmq/tests/
Dmsgq_test_client.cpp305 bool verifyData(int32_t* data, size_t count) { in verifyData() argument
307 if (data[i] != i) return false; in verifyData()
315 inline void initData(int32_t* data, size_t count) { in initData() argument
317 data[i] = i; in initData()
419 std::array<int32_t, dataLen> data = {0}; in TYPED_TEST() local
421 data.data(), data.size(), in TYPED_TEST()
428 std::array<int32_t, kNumElementsInSyncQueue> data = {0}; in TYPED_TEST() local
430 data.data(), data.size(), in TYPED_TEST()
457 std::array<int32_t, dataLen> data = {0}; in TYPED_TEST() local
458 ret = this->mQueue->writeBlocking(data.data(), data.size()); in TYPED_TEST()
[all …]
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dadv_report_cache.cc33 chreHeapFree(const_cast<uint8_t *>(report.data)); in Clear()
50 if (cache_reports_[index].data != nullptr) { in Refresh()
51 chreHeapFree(const_cast<uint8_t *>(cache_reports_[index].data)); in Refresh()
72 memcmp(cache_report.data, event_report.data, cache_report.dataLength) == in Push()
94 uint8_t *data = nullptr; in Push() local
96 data = in Push()
98 if (data == nullptr) { in Push()
102 memcpy(data, event_report.data, dataLength); in Push()
103 new_report.data = data; in Push()
107 if (data != nullptr) { in Push()
[all …]
Dpresence_decoder_v1.cc50 uint8_t *const data = encoded_data.data; in Decode() local
59 if ((data[kHeaderIndex] & kVersionMask) >> 5 != kVersion) { in Decode()
66 DataElementHeaderV1::Decode(&data[kSaltIndex], data_size - kSaltIndex); in Decode()
70 salt[0] = data[kSaltIndex + 1]; in Decode()
71 salt[1] = data[kSaltIndex + 2]; in Decode()
77 de_header = DataElementHeaderV1::Decode(&data[kIdentityIndex], in Decode()
84 LOGD_SENSITIVE_INFO("%" PRIi8, data[i]); in Decode()
88 LOGD_SENSITIVE_INFO("%" PRIi8, metadata_encryption_key_tag.data[i]); in Decode()
93 LOGD_SENSITIVE_INFO("%" PRIi8, key.data[i]); in Decode()
103 ByteArray(&data[kIdentityIndex + kIdentityHeaderLength], in Decode()
[all …]

12345678910>>...97