Home
last modified time | relevance | path

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

12345678910>>...35

/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp37 const uint8_t* end) { in serialize_key_blob() argument
38 return append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size); in serialize_key_blob()
42 const uint8_t* end) { in deserialize_key_blob() argument
46 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob->key_material_size, in deserialize_key_blob()
57 static uint8_t* serialize_blob(const keymaster_blob_t& blob, uint8_t* buf, const uint8_t* end) { in serialize_blob() argument
58 return append_size_and_data_to_buf(buf, end, blob.data, blob.data_length); in serialize_blob()
61 static bool deserialize_blob(keymaster_blob_t* blob, const uint8_t** buf_ptr, const uint8_t* end) { in deserialize_blob() argument
65 if (!copy_size_and_data_from_buf(buf_ptr, end, &blob->data_length, &deserialized_blob)) in deserialize_blob()
78 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
79 buf = append_uint32_to_buf(buf, end, static_cast<uint32_t>(error)); in Serialize()
[all …]
/system/core/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/core/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/core/libmemunreachable/
DHeapWalker.cpp33 bool HeapWalker::Allocation(uintptr_t begin, uintptr_t end) { in Allocation() argument
34 if (end == begin) { in Allocation()
35 end = begin + 1; in Allocation()
37 Range range{begin, end}; in Allocation()
38 if (valid_mappings_range_.end != 0 && in Allocation()
39 (begin < valid_mappings_range_.begin || end > valid_mappings_range_.end)) { in Allocation()
41 reinterpret_cast<void*>(begin), reinterpret_cast<void*>(end), in Allocation()
43 reinterpret_cast<void*>(valid_mappings_range_.end)); in Allocation()
48 valid_allocations_range_.end = std::max(valid_allocations_range_.end, end); in Allocation()
55 reinterpret_cast<void*>(end), reinterpret_cast<void*>(overlap.begin), 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/core/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/core/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/core/libprocinfo/include/procinfo/
Dprocess_map.h71 char* end; in ReadMapFileContent() local
73 start_addr = strtoull(p, &end, 16); in ReadMapFileContent()
74 if (end == p || *end != '-') { in ReadMapFileContent()
77 p = end + 1; in ReadMapFileContent()
79 end_addr = strtoull(p, &end, 16); in ReadMapFileContent()
80 if (end == p) { in ReadMapFileContent()
83 p = end; in ReadMapFileContent()
115 pgoff = strtoull(p, &end, 16); in ReadMapFileContent()
116 if (end == p) { in ReadMapFileContent()
119 p = end; in ReadMapFileContent()
[all …]
/system/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.cpp43 const uint8_t* end = key_blob->key_material + key_blob->key_material_size; in SerializeAuthEncryptedBlob() local
46 buf = nonce.Serialize(buf, end); in SerializeAuthEncryptedBlob()
47 buf = encrypted_key_material.Serialize(buf, end); in SerializeAuthEncryptedBlob()
48 buf = tag.Serialize(buf, end); in SerializeAuthEncryptedBlob()
49 buf = hw_enforced.Serialize(buf, end); in SerializeAuthEncryptedBlob()
50 buf = sw_enforced.Serialize(buf, end); in SerializeAuthEncryptedBlob()
64 const uint8_t* end = tmp + key_blob.key_material_size; in DeserializeUnversionedBlob() local
69 if (!copy_from_buf(buf_ptr, end, nonce->peek_write(), OCB_NONCE_LENGTH) || in DeserializeUnversionedBlob()
70 !encrypted_key_material->Deserialize(buf_ptr, end) || in DeserializeUnversionedBlob()
71 !copy_from_buf(buf_ptr, end, tag->peek_write(), OCB_TAG_LENGTH) || in DeserializeUnversionedBlob()
[all …]
Dintegrity_assured_key_blob.cpp95 p = key_material.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
96 p = hw_enforced.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
97 p = sw_enforced.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
108 const uint8_t* end = key_blob.end(); in DeserializeIntegrityAssuredBlob() local
110 if (p > end || p + HMAC_SIZE > end) in DeserializeIntegrityAssuredBlob()
119 if (CRYPTO_memcmp(key_blob.end() - HMAC_SIZE, computed_hmac, HMAC_SIZE) != 0) in DeserializeIntegrityAssuredBlob()
131 const uint8_t* end = key_blob.end() - HMAC_SIZE; in DeserializeIntegrityAssuredBlob_NoHmacCheck() local
133 if (p > end) in DeserializeIntegrityAssuredBlob_NoHmacCheck()
140 if (!key_material->Deserialize(&p, end) || // in DeserializeIntegrityAssuredBlob_NoHmacCheck()
141 !hw_enforced->Deserialize(&p, end) || // in DeserializeIntegrityAssuredBlob_NoHmacCheck()
[all …]
/system/keymaster/include/keymaster/
Dserializable.h47 virtual uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const = 0;
53 virtual bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0;
83 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len);
92 inline uint8_t* append_uint32_to_buf(uint8_t* buf, const uint8_t* end, T value) { in append_uint32_to_buf() argument
94 return append_to_buf(buf, end, &val, sizeof(val)); in append_uint32_to_buf()
100 inline uint8_t* append_uint64_to_buf(uint8_t* buf, const uint8_t* end, uint64_t value) { in append_uint64_to_buf() argument
101 return append_to_buf(buf, end, &value, sizeof(value)); in append_uint64_to_buf()
110 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
112 buf = append_uint32_to_buf(buf, end, data_len); in append_size_and_data_to_buf()
113 return append_to_buf(buf, end, data, data_len); in append_size_and_data_to_buf()
[all …]
Dandroid_keymaster_messages.h121 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
122 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
125 virtual uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const = 0;
126 virtual bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0;
146 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { in Serialize()
147 return append_uint32_to_buf(buf, end, algorithm); in Serialize()
149 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override { in Deserialize()
150 return copy_uint32_from_buf(buf_ptr, end, &algorithm); in Deserialize()
171 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { in Serialize()
172 buf = append_uint32_to_buf(buf, end, algorithm); in Serialize()
[all …]
/system/netd/resolv/
Dres_debug.cpp137 static char* dbprint(char* p, char* end, const char* format, ...) { in dbprint() argument
141 avail = end - p; in dbprint()
154 if (p == end) p[-1] = 0; in dbprint()
164 char temp[2048], *p = temp, *end = p + sizeof(temp); in do_section() local
172 dbprint(p, end, ";; memory allocation failure\n"); in do_section()
182 dbprint(p, end, ";; ns_parserr: %s", strerror(errno)); in do_section()
186 dbprint(p, end, ";;\t%s, type = %s, class = %s\n", ns_rr_name(rr), in do_section()
194 dbprint(p, end, "; EDNS: version: %zu, udp=%u, flags=%04zx\n", (ttl >> 16) & 0xff, in do_section()
204 p = dbprint(p, end, "; NSID: "); in do_section()
206 p = dbprint(p, end, "; NSID\n"); in do_section()
[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/timezone/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/keymaster/tests/
Dkey_blob_test.cpp104 EXPECT_EQ(serialized_blob_.end(), std::search(serialized_blob_.begin(), serialized_blob_.end(), in TEST_F()
105 key_material_.begin(), key_material_.end())); in TEST_F()
106 EXPECT_NE(serialized_blob_.end(), std::search(serialized_blob_.begin(), serialized_blob_.end(), in TEST_F()
107 ciphertext_.begin(), ciphertext_.end())); in TEST_F()
143 std::search(serialized_blob_.begin(), serialized_blob_.end(), nonce_.begin(), nonce_.end()); in TEST_F()
144 ASSERT_NE(nonce_ptr, serialized_blob_.end()); in TEST_F()
145 EXPECT_EQ(serialized_blob_.end(), in TEST_F()
146 std::search(nonce_ptr + 1, serialized_blob_.end(), nonce_.begin(), nonce_.end())); in TEST_F()
160 std::search(serialized_blob_.begin(), serialized_blob_.end(), tag_.begin(), tag_.end()); in TEST_F()
161 ASSERT_NE(tag_ptr, serialized_blob_.end()); in TEST_F()
[all …]
/system/core/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()
126 pid_, [&](uint64_t start, uint64_t end, uint16_t flags, uint64_t, ino_t, const char* name) { in Build()
130 map.end = end; in Build()
/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/chre/apps/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/bt/vendor_libs/test_vendor_lib/packets/
Dpacket_view.cc44 Iterator<little_endian> PacketView<little_endian>::end() const { in end() function in test_vendor_lib::packets::PacketView
72 std::forward_list<View> PacketView<little_endian>::SubViewList(size_t begin, size_t end) const { in SubViewList()
73 CHECK(begin <= end) << "Begin " << begin << " is past end"; in SubViewList()
74 CHECK(end <= length_) << "End " << end << " is too large"; in SubViewList()
77 size_t length = end - begin; in SubViewList()
92 PacketView<true> PacketView<little_endian>::SubViewLittleEndian(size_t begin, size_t end) const { in SubViewLittleEndian()
93 return PacketView<true>(SubViewList(begin, end)); in SubViewLittleEndian()
97 PacketView<false> PacketView<little_endian>::SubViewBigEndian(size_t begin, size_t end) const { in SubViewBigEndian()
98 return PacketView<false>(SubViewList(begin, end)); in SubViewBigEndian()
/system/netd/server/
DUidRanges.cpp63 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), makeUidRangeParcel(intUid, intUid), in hasUid()
65 return (iter != mRanges.end() && iter->start == intUid) || in hasUid()
110 std::sort(mRanges.begin(), mRanges.end(), compUidRangeParcel); in parseFrom()
116 std::sort(mRanges.begin(), mRanges.end(), compUidRangeParcel); in UidRanges()
120 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end()); in add()
121 std::inplace_merge(mRanges.begin(), middle, mRanges.end(), compUidRangeParcel); in add()
125 auto end = std::set_difference(mRanges.begin(), mRanges.end(), other.mRanges.begin(), in remove() local
126 other.mRanges.end(), mRanges.begin(), compUidRangeParcel); in remove()
127 mRanges.erase(end, mRanges.end()); in remove()
/system/libufdt/tests/src/
Dufdt_overlay_test_app.c37 goto end; in apply_overlay_files()
44 goto end; in apply_overlay_files()
50 goto end; in apply_overlay_files()
55 clock_t end = clock(); in apply_overlay_files() local
59 goto end; in apply_overlay_files()
63 double cpu_time_used = ((double)(end - start)) / CLOCKS_PER_SEC; in apply_overlay_files()
67 end: in apply_overlay_files()
/system/core/healthd/
DAnimationParser.cpp62 int start = 0, end = 0; in parse_text_field() local
64 if (sscanf(in, "c c %d %d %d %d %n%*s%n", r, g, b, a, &start, &end) == 4) { in parse_text_field()
67 } else if (sscanf(in, "c %d %d %d %d %d %n%*s%n", y, r, g, b, a, &start, &end) == 5) { in parse_text_field()
69 } else if (sscanf(in, "%d c %d %d %d %d %n%*s%n", x, r, g, b, a, &start, &end) == 5) { in parse_text_field()
71 } else if (sscanf(in, "%d %d %d %d %d %d %n%*s%n", x, y, r, g, b, a, &start, &end) != 6) { in parse_text_field()
75 if (end == 0) return false; in parse_text_field()
77 field->font_file.assign(&in[start], end - start); in parse_text_field()
98 int start = 0, end = 0; in parse_animation_desc() local
100 &start, &end) != 2 || in parse_animation_desc()
101 end == 0) { in parse_animation_desc()
[all …]

12345678910>>...35