Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 1176) sorted by relevance

12345678910>>...48

/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp39 const uint8_t* end) { in serialize_key_blob() argument
40 return append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size); in serialize_key_blob()
44 const uint8_t* end) { in deserialize_key_blob() argument
48 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob->key_material_size, in deserialize_key_blob()
67 uint8_t* serialize_blob(const keymaster_blob_t& blob, uint8_t* buf, const uint8_t* end) { in serialize_blob() argument
68 return append_size_and_data_to_buf(buf, end, blob.data, blob.data_length); in serialize_blob()
71 bool deserialize_blob(keymaster_blob_t* blob, const uint8_t** buf_ptr, const uint8_t* end) { in deserialize_blob() argument
75 if (!copy_size_and_data_from_buf(buf_ptr, end, &blob->data_length, &deserialized_blob)) in deserialize_blob()
96 const uint8_t* end) { in serialize_chain() argument
97 buf = append_uint32_to_buf(buf, end, certificate_chain.entry_count); in serialize_chain()
[all …]
Dserializable.cpp28 bool buffer_bound_check(const uint8_t* buf, const uint8_t* end, size_t len) { in buffer_bound_check() argument
31 return (!overflow_occurred) && (buf_next <= __pval(end)); in buffer_bound_check()
36 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) { in append_to_buf() argument
37 if (buffer_bound_check(buf, end, data_len)) { in append_to_buf()
45 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { in copy_from_buf() argument
46 if (buffer_bound_check(*buf_ptr, end, size)) { in copy_from_buf()
55 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size, in copy_size_and_data_from_buf() argument
57 if (!copy_uint32_from_buf(buf_ptr, end, size)) return false; in copy_size_and_data_from_buf()
64 if (buffer_bound_check(*buf_ptr, end, *size)) { in copy_size_and_data_from_buf()
69 return copy_from_buf(buf_ptr, end, dest->get(), *size); in copy_size_and_data_from_buf()
[all …]
/system/unwinding/libbacktrace/testdata/arm64/
Doffline_testdata2 map: start: 557066e000 end: 55706ee000 offset: 0 load_bias: 0 flags: 5 name: /data/backtrace_test64
3 map: start: 55706ef000 end: 55706f2000 offset: 80000 load_bias: 0 flags: 1 name: /data/backtrace_te…
4 map: start: 55706f2000 end: 55706f3000 offset: 83000 load_bias: 0 flags: 3 name: /data/backtrace_te…
5 map: start: 7014200000 end: 7014600000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc]
6 map: start: 701464c000 end: 701465c000 offset: 0 load_bias: 0 flags: 5 name: /system/lib64/libcutil…
7 map: start: 701465c000 end: 701465d000 offset: 0 load_bias: 0 flags: 0 name:
8 map: start: 701465d000 end: 701465e000 offset: 10000 load_bias: 0 flags: 1 name: /system/lib64/libc…
9 map: start: 701465e000 end: 701465f000 offset: 11000 load_bias: 0 flags: 3 name: /system/lib64/libc…
10 map: start: 7014691000 end: 70146b5000 offset: 0 load_bias: 0 flags: 5 name: /system/lib64/liblzma.…
11 map: start: 70146b5000 end: 70146b6000 offset: 23000 load_bias: 0 flags: 1 name: /system/lib64/libl…
[all …]
/system/unwinding/libbacktrace/testdata/arm/
Doffline_testdata2 map: start: aad19000 end: aad6c000 offset: 0 load_bias: 0 flags: 5 name: /data/backtrace_test32
3 map: start: aad6c000 end: aad6e000 offset: 52000 load_bias: 0 flags: 1 name: /data/backtrace_test32
4 map: start: aad6e000 end: aad6f000 offset: 54000 load_bias: 0 flags: 3 name: /data/backtrace_test32
5 map: start: e7380000 end: e7400000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc]
6 map: start: e745f000 end: e7463000 offset: 0 load_bias: 0 flags: 5 name: /system/lib/libnetd_client…
7 map: start: e7463000 end: e7464000 offset: 3000 load_bias: 0 flags: 1 name: /system/lib/libnetd_cli…
8 map: start: e7464000 end: e7465000 offset: 4000 load_bias: 0 flags: 3 name: /system/lib/libnetd_cli…
9 map: start: e7480000 end: e7500000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc]
10 map: start: e7558000 end: e756c000 offset: 0 load_bias: 0 flags: 5 name: /system/lib/libunwind.so
11 map: start: e756c000 end: e756d000 offset: 0 load_bias: 0 flags: 0 name:
[all …]
Doffline_testdata_for_libart3 map: start: e9380000 end: e9766000 offset: 0 load_bias: b000 flags: 5 name: /system/lib/libart.so
4 stack: start: ffd12dc0 end: ffd1306c size: 684 00000000000c5024070000000300000005070a0a0100000051b3…
5 function: start: 3a2121 end: 3a217a name: art_quick_invoke_stub_internal
6 function: start: 3a66a5 end: 3a6787 name: art_quick_invoke_static_stub
7 function: start: a7129 end: a72f1 name: art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigne…
8 function: start: 2fbd35 end: 2fc789 name: art::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRun…
9 function: start: 2fcf75 end: 2fd88d name: art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable …
10 function: start: 2a089d end: 2a08bb name: art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobje…
/system/memory/libmemunreachable/
DHeapWalker.cpp45 bool HeapWalker::Allocation(uintptr_t begin, uintptr_t end) { in Allocation() argument
46 if (end == begin) { in Allocation()
47 end = begin + 1; in Allocation()
50 end = UntagAddress(end); in Allocation()
51 Range range{begin, end}; in Allocation()
52 if (valid_mappings_range_.end != 0 && in Allocation()
53 (begin < valid_mappings_range_.begin || end > valid_mappings_range_.end)) { in Allocation()
55 reinterpret_cast<void*>(begin), reinterpret_cast<void*>(end), in Allocation()
57 reinterpret_cast<void*>(valid_mappings_range_.end)); in Allocation()
62 valid_allocations_range_.end = std::max(valid_allocations_range_.end, end); in Allocation()
[all …]
DHeapWalker.h33 uintptr_t end; member
35 size_t size() const { return end - begin; }; in size()
37 return this->begin == other.begin && this->end == other.end;
44 bool operator()(const Range& a, const Range& b) const { return a.end <= b.begin; } in operator()
61 valid_allocations_range_.end = 0;
62 valid_allocations_range_.begin = ~valid_allocations_range_.end;
63 valid_mappings_range_.end = 0;
64 valid_mappings_range_.begin = ~valid_allocations_range_.end;
77 bool Allocation(uintptr_t begin, uintptr_t end);
78 void Mapping(uintptr_t begin, uintptr_t end);
[all …]
/system/unwinding/libbacktrace/testdata/x86_64/
Doffline_testdata2 map: start: 7fd5aa784000 end: 7fd5aa93e000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-…
3 map: start: 7fd5aa93e000 end: 7fd5aab3e000 offset: 1ba000 load_bias: 0 flags: 0 name: /lib/x86_64-l…
4 map: start: 7fd5aab3e000 end: 7fd5aab42000 offset: 1ba000 load_bias: 0 flags: 1 name: /lib/x86_64-l…
5 map: start: 7fd5aab42000 end: 7fd5aab44000 offset: 1be000 load_bias: 0 flags: 3 name: /lib/x86_64-l…
6 map: start: 7fd5aab44000 end: 7fd5aab49000 offset: 0 load_bias: 0 flags: 3 name:
7 map: start: 7fd5aab49000 end: 7fd5aac4e000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-…
8 map: start: 7fd5aac4e000 end: 7fd5aae4d000 offset: 105000 load_bias: 0 flags: 0 name: /lib/x86_64-l…
9 map: start: 7fd5aae4d000 end: 7fd5aae4e000 offset: 104000 load_bias: 0 flags: 1 name: /lib/x86_64-l…
10 map: start: 7fd5aae4e000 end: 7fd5aae4f000 offset: 105000 load_bias: 0 flags: 3 name: /lib/x86_64-l…
11 map: start: 7fd5aae4f000 end: 7fd5aae65000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-…
[all …]
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h168 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
169 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
172 virtual uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const = 0;
173 virtual bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0;
212 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { in Serialize()
213 return append_uint32_to_buf(buf, end, algorithm); in Serialize()
215 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override { in Deserialize()
216 return copy_uint32_from_buf(buf_ptr, end, &algorithm); in Deserialize()
237 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { in Serialize()
238 buf = append_uint32_to_buf(buf, end, algorithm); in Serialize()
[all …]
Dserializable.h44 virtual uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const = 0;
50 virtual bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0;
80 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len);
89 inline uint8_t* append_uint32_to_buf(uint8_t* buf, const uint8_t* end, T value) { in append_uint32_to_buf() argument
91 return append_to_buf(buf, end, &val, sizeof(val)); in append_uint32_to_buf()
97 inline uint8_t* append_uint64_to_buf(uint8_t* buf, const uint8_t* end, uint64_t value) { in append_uint64_to_buf() argument
98 return append_to_buf(buf, end, &value, sizeof(value)); in append_uint64_to_buf()
107 inline uint8_t* append_size_and_data_to_buf(uint8_t* buf, const uint8_t* end, const void* data, in append_size_and_data_to_buf() argument
109 buf = append_uint32_to_buf(buf, end, data_len); in append_size_and_data_to_buf()
110 return append_to_buf(buf, end, data, data_len); in append_size_and_data_to_buf()
[all …]
/system/unwinding/libbacktrace/testdata/x86/
Doffline_testdata2 map: start: f705a000 end: f705c000 offset: 0 load_bias: 0 flags: 3 name:
3 map: start: f705c000 end: f707f000 offset: 0 load_bias: 0 flags: 5 name: /ssd/android/aosp_master/o…
4 map: start: f707f000 end: f7080000 offset: 22000 load_bias: 0 flags: 1 name: /ssd/android/aosp_mast…
5 map: start: f7080000 end: f7081000 offset: 23000 load_bias: 0 flags: 3 name: /ssd/android/aosp_mast…
6 map: start: f7081000 end: f7088000 offset: 0 load_bias: 0 flags: 3 name:
7 map: start: f7088000 end: f7230000 offset: 0 load_bias: 0 flags: 5 name: /lib/i386-linux-gnu/libc-2…
8 map: start: f7230000 end: f7231000 offset: 1a8000 load_bias: 0 flags: 0 name: /lib/i386-linux-gnu/l…
9 map: start: f7231000 end: f7233000 offset: 1a8000 load_bias: 0 flags: 1 name: /lib/i386-linux-gnu/l…
10 map: start: f7233000 end: f7234000 offset: 1aa000 load_bias: 0 flags: 3 name: /lib/i386-linux-gnu/l…
11 map: start: f7234000 end: f7237000 offset: 0 load_bias: 0 flags: 3 name:
[all …]
/system/bt/stack/test/
Dcrypto_toolbox_test.cc66 std::reverse(std::begin(k), std::end(k)); in TEST()
67 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
91 std::reverse(std::begin(k), std::end(k)); in TEST()
92 std::reverse(std::begin(m), std::end(m)); in TEST()
93 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
120 std::reverse(std::begin(k), std::end(k)); in TEST()
121 std::reverse(std::begin(m), std::end(m)); in TEST()
122 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
145 std::reverse(std::begin(k), std::end(k)); in TEST()
146 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox_test.cc59 std::reverse(std::begin(k), std::end(k)); in TEST()
60 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
81 std::reverse(std::begin(k), std::end(k)); in TEST()
82 std::reverse(std::begin(m), std::end(m)); in TEST()
83 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
107 std::reverse(std::begin(k), std::end(k)); in TEST()
108 std::reverse(std::begin(m), std::end(m)); in TEST()
109 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
127 std::reverse(std::begin(k), std::end(k)); in TEST()
128 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/sepolicy/tools/sepolicy-analyze/
Dneverallow.c20 static int read_typeset(policydb_t *policydb, char **ptr, char *end, in read_typeset() argument
35 while (p < end && isspace(*p)) in read_typeset()
38 if (p == end) in read_typeset()
46 while (p < end && isspace(*p)) in read_typeset()
48 if (p == end) in read_typeset()
87 while (p < end && *p != '\n') in read_typeset()
93 … while (p < end && !isspace(*p) && *p != ':' && *p != ';' && *p != '{' && *p != '}' && *p != '#') in read_typeset()
138 } while (p < end && openparens); in read_typeset()
140 if (p == end) in read_typeset()
182 static int read_classperms(policydb_t *policydb, char **ptr, char *end, in read_classperms() argument
[all …]
/system/gatekeeper/
Dgatekeeper_messages.cpp33 static inline bool fitsBuffer(const uint8_t* begin, const uint8_t* end, uint32_t field_size) { in fitsBuffer() argument
36 && dummy <= reinterpret_cast<uintptr_t>(end); in fitsBuffer()
69 static inline gatekeeper_error_t read_from_buffer(const uint8_t **buffer, const uint8_t *end, in read_from_buffer() argument
72 if (!fitsBuffer(*buffer, end, sizeof(uint32_t))) return ERROR_INVALID; in read_from_buffer()
84 if (!fitsBuffer(*buffer, end, length)) return ERROR_INVALID; in read_from_buffer()
110 uint32_t GateKeeperMessage::Serialize(uint8_t *buffer, const uint8_t *end) const { in Serialize()
112 if (!fitsBuffer(buffer, end, GetSerializedSize())) { in Serialize()
117 if (!fitsBuffer(buffer, end, sizeof(serial_header_t))) return 0; in Serialize()
123 if (!fitsBuffer(buffer, end, sizeof(retry_timeout))) return 0; in Serialize()
128 if (!fitsBuffer(buffer, end, serialized_size)) return 0; in Serialize()
[all …]
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/
DZoneOffsetPeriod.java34 private final Instant end; field in ZoneOffsetPeriod
42 private ZoneOffsetPeriod(Instant start, Instant end, int rawOffsetMillis, int dstOffsetMillis, in ZoneOffsetPeriod() argument
45 this.end = end; in ZoneOffsetPeriod()
60 Instant end; in create() local
64 end = maxTime; in create()
70 end = Instant.ofEpochMilli(endTimeMillis); in create()
74 end = maxTime; in create()
81 return new ZoneOffsetPeriod(minTime, end, offsets[0], offsets[1], longName); in create()
90 || !partitionInstant.isBefore(toSplit.end)) { in splitAtTime()
92 + toSplit.start + " and " + toSplit.end); in splitAtTime()
[all …]
/system/extras/simpleperf/
Dread_symbol_map.cpp39 size_t end = content_ref.find_first_of(" \t", begin + 1); in ConsumeWord() local
40 if (end == content_ref.npos) { in ConsumeWord()
41 end = content_ref.size(); in ConsumeWord()
44 auto res = content_ref.substr(begin, end - begin); in ConsumeWord()
45 content_ref.remove_prefix(end); in ConsumeWord()
95 size_t end = content.find_first_of("\n\r", begin); in ReadSymbolMapFromString() local
97 if (end == content.npos) { in ReadSymbolMapFromString()
99 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in ReadSymbolMapFromString()
103 ReadSymbol({content.c_str() + begin, end - begin}, &symbols); in ReadSymbolMapFromString()
104 begin = end + 1; in ReadSymbolMapFromString()
/system/keymaster/key_blob_utils/
Dintegrity_assured_key_blob.cpp90 p = key_material.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
91 p = hw_enforced.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
92 p = sw_enforced.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
103 const uint8_t* end = key_blob.end(); in DeserializeIntegrityAssuredBlob() local
105 if (p > end || p + HMAC_SIZE > end) return KM_ERROR_INVALID_KEY_BLOB; in DeserializeIntegrityAssuredBlob()
112 if (CRYPTO_memcmp(key_blob.end() - HMAC_SIZE, computed_hmac, HMAC_SIZE) != 0) in DeserializeIntegrityAssuredBlob()
124 const uint8_t* end = key_blob.end() - HMAC_SIZE; in DeserializeIntegrityAssuredBlob_NoHmacCheck() local
126 if (p > end) return KM_ERROR_INVALID_KEY_BLOB; in DeserializeIntegrityAssuredBlob_NoHmacCheck()
131 if (!key_material->Deserialize(&p, end) || // in DeserializeIntegrityAssuredBlob_NoHmacCheck()
132 !hw_enforced->Deserialize(&p, end) || // in DeserializeIntegrityAssuredBlob_NoHmacCheck()
[all …]
/system/libprocinfo/include/procinfo/
Dprocess_map.h35 uint64_t end; member
42 MapInfo(uint64_t start, uint64_t end, uint16_t flags, uint64_t pgoff, ino_t inode, in MapInfo()
45 end(end), in MapInfo()
54 end(params.end), in MapInfo()
63 typedef std::function<void(uint64_t start, uint64_t end, uint16_t flags, uint64_t pgoff,
101 char* end; in ParseMapsFileLine() local
103 start_addr = strtoull(p, &end, 16); in ParseMapsFileLine()
104 if (end == p || *end != '-') { in ParseMapsFileLine()
107 p = end + 1; in ParseMapsFileLine()
109 end_addr = strtoull(p, &end, 16); in ParseMapsFileLine()
[all …]
/system/chre/apps/test/chqts/src/shared/
Dnano_endian.cc22 for (size_t front = 0, end = size - 1; front < end; front++, end--) { in swapBytes() local
24 bytes[front] = bytes[end]; in swapBytes()
25 bytes[end] = tmp; in swapBytes()
/system/libufdt/utils/src/
Dmkdtimg_cfg_create.c43 char *end = line; in trim_line() local
44 while (*end != '\0' && *end != '#') { in trim_line()
45 end++; in trim_line()
48 end--; in trim_line()
49 } while (end >= line && isspace(*end)); in trim_line()
51 *(end + 1) = '\0'; in trim_line()
128 goto end; in process_command_cfg_create()
136 goto end; in process_command_cfg_create()
142 goto end; in process_command_cfg_create()
151 end: in process_command_cfg_create()
/system/core/trusty/coverage/
Dcoverage.cpp184 volatile uint8_t* end = nullptr; in ResetCounts() local
185 GetRawCounts(&begin, &end); in ResetCounts()
187 for (volatile uint8_t* x = begin; x < end; x++) { in ResetCounts()
194 volatile uintptr_t* end = nullptr; in ResetPCs() local
195 GetRawPCs(&begin, &end); in ResetPCs()
197 for (volatile uintptr_t* x = begin; x < end; x++) { in ResetPCs()
223 void CoverageRecord::GetRawData(volatile void** begin, volatile void** end) { in GetRawData() argument
227 *end = (uint8_t*)(*begin) + record_len_; in GetRawData()
230 void CoverageRecord::GetRawCounts(volatile uint8_t** begin, volatile uint8_t** end) { in GetRawCounts() argument
234 *end = 0; in GetRawCounts()
[all …]
/system/tools/hidl/utils/
DFQName.cpp86 static const char* eatIdent(const char* l, const char* end) { in eatIdent() argument
87 if (!(l < end && isIdentStart(*l++))) return nullptr; in eatIdent()
88 while (l < end && isIdentBody(*l)) l++; in eatIdent()
93 static const char* eatPackage(const char* l, const char* end) { in eatPackage() argument
94 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage()
96 while (l < end && *l == '.') { in eatPackage()
98 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage()
104 static const char* eatNumber(const char* l, const char* end) { in eatNumber() argument
105 if (!(l < end)) return nullptr; in eatNumber()
108 while (l < end && isDigit(*l)) l++; in eatNumber()
[all …]
/system/bt/gd/common/
Dlist_map.h63 for (auto iter = node_list_.begin(); iter != node_list_.end(); iter++) { in ListMap()
76 for (auto iter = node_list_.begin(); iter != node_list_.end(); iter++) {
108 if (map_iterator == key_map_.end()) { in find()
109 return end(); in find()
116 return find(key) != end(); in contains()
125 if (map_iterator != key_map_.end()) { in try_emplace()
126 return std::make_pair(end(), false); in try_emplace()
138 return try_emplace(end(), key, std::forward<Args>(args)...); in try_emplace_back()
145 if (map_iterator != key_map_.end()) { in insert_or_assign()
155 insert_or_assign(end(), key, std::move(value)); in insert_or_assign()
[all …]
/system/unwinding/libbacktrace/
DBacktraceMap.cpp39 if (start == 0 && end == 0) return ""; in Name()
53 for (auto it = begin(); it != end(); ++it) { in FillIn()
55 if (addr >= entry->start && addr < entry->end) { in FillIn()
66 uint64_t end; in ParseLine() local
75 if (sscanf(line, "%*21c %" SCNx64 "-%" SCNx64 " [%*13c] %3c/%*3c SM=%*3c %n", &start, &end, in ParseLine()
81 map->end = end; in ParseLine()
99 reinterpret_cast<void*>(map->end), map->flags, map->name.c_str()); in ParseLine()
130 map.end = mapinfo.end; in Build()

12345678910>>...48