Searched refs:end (Results 1 - 25 of 674) sorted by relevance

1234567891011>>

/system/chre/apps/chqts/src/shared/
H A Dnano_endian.cc22 for (size_t front = 0, end = size - 1; front < end; front++, end--) {
24 bytes[front] = bytes[end];
25 bytes[end] = tmp;
/system/keymaster/android_keymaster/
H A Dandroid_keymaster_messages.cpp37 const uint8_t* end) {
38 return append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size);
42 const uint8_t* end) {
46 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob->key_material_size,
57 static uint8_t* serialize_blob(const keymaster_blob_t& blob, uint8_t* buf, const uint8_t* end) { argument
58 return append_size_and_data_to_buf(buf, end, blob.data, blob.data_length);
61 static bool deserialize_blob(keymaster_blob_t* blob, const uint8_t** buf_ptr, const uint8_t* end) { argument
65 if (!copy_size_and_data_from_buf(buf_ptr, end, &blob->data_length, &deserialized_blob))
78 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const {
79 buf = append_uint32_to_buf(buf, end, static_cas
36 serialize_key_blob(const keymaster_key_blob_t& key_blob, uint8_t* buf, const uint8_t* end) argument
41 deserialize_key_blob(keymaster_key_blob_t* key_blob, const uint8_t** buf_ptr, const uint8_t* end) argument
85 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
107 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
129 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
143 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
163 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
183 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
205 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
242 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
282 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
306 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
321 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
342 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
368 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
388 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
408 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
430 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
449 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
477 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
527 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
561 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
578 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
591 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
612 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
630 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
650 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
685 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
704 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
726 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
[all...]
H A Dserializable.cpp27 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) { argument
31 if (buf + data_len <= end) {
38 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { argument
42 if (end < *buf_ptr + size)
49 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size, argument
51 if (!copy_uint32_from_buf(buf_ptr, end, size))
57 if (*buf_ptr + *size > end)
67 return copy_from_buf(buf_ptr, end, dest->get(), *size);
142 uint8_t* Buffer::Serialize(uint8_t* buf, const uint8_t* end) const {
143 return append_size_and_data_to_buf(buf, end, peek_rea
146 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
[all...]
/system/core/base/include/android-base/
H A Dparsedouble.h35 char* end; local
36 double result = strtod(s, &end);
37 if (errno != 0 || s == end || *end != '\0') {
H A Dparseint.h38 char* end; local
39 unsigned long long int result = strtoull(s, &end, base);
40 if (errno != 0 || s == end || *end != '\0') {
67 char* end; local
68 long long int result = strtoll(s, &end, base);
69 if (errno != 0 || s == end || *end != '\0') {
/system/libvintf/
H A DSystemSdk.cpp26 std::set_difference(versions().begin(), versions().end(), other.versions().begin(),
27 other.versions().end(), std::inserter(ret.mVersions, ret.mVersions.end()));
/system/core/libmemunreachable/
H A DHeapWalker.cpp33 bool HeapWalker::Allocation(uintptr_t begin, uintptr_t end) { argument
34 if (end == begin) {
35 end = begin + 1;
37 Range range{begin, end};
41 valid_allocations_range_.end = std::max(valid_allocations_range_.end, end);
48 reinterpret_cast<void*>(end), reinterpret_cast<void*>(overlap.begin),
49 reinterpret_cast<void*>(overlap.end));
62 if (value >= valid_allocations_range_.begin && value < valid_allocations_range_.end) {
88 Root(uintptr_t begin, uintptr_t end) argument
[all...]
/system/keymaster/key_blob_utils/
H A Dauth_encrypted_key_blob.cpp43 const uint8_t* end = key_blob->key_material + key_blob->key_material_size; local
46 buf = nonce.Serialize(buf, end);
47 buf = encrypted_key_material.Serialize(buf, end);
48 buf = tag.Serialize(buf, end);
49 buf = hw_enforced.Serialize(buf, end);
50 buf = sw_enforced.Serialize(buf, end);
64 const uint8_t* end = tmp + key_blob.key_material_size; local
69 if (!copy_from_buf(buf_ptr, end, nonce->peek_write(), OCB_NONCE_LENGTH) ||
70 !encrypted_key_material->Deserialize(buf_ptr, end) ||
71 !copy_from_buf(buf_ptr, end, ta
92 const uint8_t* end = tmp + key_blob.key_material_size; local
[all...]
H A Dintegrity_assured_key_blob.cpp95 p = key_material.Serialize(p, key_blob->end());
96 p = hw_enforced.Serialize(p, key_blob->end());
97 p = sw_enforced.Serialize(p, key_blob->end());
108 const uint8_t* end = key_blob.end(); local
110 if (p > end || p + HMAC_SIZE > end)
119 if (CRYPTO_memcmp(key_blob.end() - HMAC_SIZE, computed_hmac, HMAC_SIZE) != 0)
131 const uint8_t* end = key_blob.end() local
[all...]
/system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/
H A DZoneOffsetPeriod.java33 /** The end of the period (exclusive) */
34 private final Instant end; field in class:ZoneOffsetPeriod
42 private ZoneOffsetPeriod(Instant start, Instant end, int rawOffsetMillis, int dstOffsetMillis, argument
45 this.end = end;
60 Instant end;
64 end = maxTime;
70 end = Instant.ofEpochMilli(endTimeMillis);
74 end = maxTime;
81 return new ZoneOffsetPeriod(minTime, end, offset
[all...]
/system/core/libunwindstack/include/unwindstack/
H A DMapInfo.h36 MapInfo(uint64_t start, uint64_t end) : start(start), end(end) {} argument
37 MapInfo(uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, const std::string& name) argument
39 end(end),
47 uint64_t end = 0; member in struct:unwindstack::MapInfo
/system/libufdt/tests/src/
H A Dufdt_overlay_test_app.c37 goto end;
44 goto end;
50 goto end;
55 clock_t end = clock(); local
59 goto end;
63 double cpu_time_used = ((double)(end - start)) / CLOCKS_PER_SEC;
67 end:
H A Dfdt_overlay_test_app.c36 goto end;
43 goto end;
52 clock_t end = clock(); local
56 goto end;
60 double cpu_time_used = ((double)(end - start)) / CLOCKS_PER_SEC;
64 end:
H A Dextract_dtb.c51 goto end;
58 goto end;
74 goto end;
87 goto end;
90 end:
104 goto end;
127 goto end;
135 goto end;
141 end:
/system/libufdt/utils/src/
H A Dmkdtimg_cfg_create.c42 /* Find the end of the string or the first of '#' */
43 char *end = line; local
44 while (*end != '\0' && *end != '#') {
45 end++;
48 end--;
49 } while (end >= line && isspace(*end));
51 *(end + 1) = '\0';
128 goto end;
[all...]
/system/netd/server/
H A DUidRanges.cpp40 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), UidRange(intUid, intUid));
41 return (iter != mRanges.end() && iter->getStart() == intUid) ||
64 // Unexpected end of string.
86 std::sort(mRanges.begin(), mRanges.end());
92 std::sort(mRanges.begin(), mRanges.end());
96 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end());
97 std::inplace_merge(mRanges.begin(), middle, mRanges.end());
101 auto end = std::set_difference(mRanges.begin(), mRanges.end(), othe local
[all...]
/system/keymaster/include/keymaster/
H A Dserializable.h44 * written. Will not write past \p end, which should point to \p buf + size of the buffer
45 * (i.e. one past the end of the buffer).
47 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;
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) { argument
91 return append_to_buf(buf, end, &val, sizeof(val));
97 inline uint8_t* append_uint64_to_buf(uint8_t* buf, const uint8_t* end, uint64_t value) { argument
98 return append_to_buf(buf, end, &value, sizeof(value));
107 inline uint8_t* append_size_and_data_to_buf(uint8_t* buf, const uint8_t* end, cons argument
120 append_uint32_array_to_buf(uint8_t* buf, const uint8_t* end, const T* data, size_t count) argument
157 copy_uint32_from_buf(const uint8_t** buf_ptr, const uint8_t* end, T* value) argument
169 copy_uint64_from_buf(const uint8_t** buf_ptr, const uint8_t* end, uint64_t* value) argument
180 copy_uint32_array_from_buf(const uint8_t** buf_ptr, const uint8_t* end, UniquePtr<T[]>* data, size_t* count) argument
220 const uint8_t* end() const { return peek_read() + available_read(); } function in class:keymaster::Buffer
[all...]
H A Dandroid_keymaster_messages.h120 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
121 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
124 virtual uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const = 0;
125 virtual bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0;
135 uint8_t* Serialize(uint8_t* buf, const uint8_t* /* end */) const override { return buf; }
136 bool Deserialize(const uint8_t** /* buf_ptr */, const uint8_t* /* end */) override {
145 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
146 return append_uint32_to_buf(buf, end, algorithm);
148 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
149 return copy_uint32_from_buf(buf_ptr, end,
[all...]
/system/iot/attestation/partner-tools/
H A Dec_helper_native.c46 goto end;
50 goto end;
58 goto end;
62 end:
94 goto end;
101 goto end;
108 goto end;
112 end:
/system/sepolicy/tools/sepolicy-analyze/
H A Dneverallow.c20 static int read_typeset(policydb_t *policydb, char **ptr, char *end, argument
35 while (p < end && isspace(*p))
38 if (p == end)
46 while (p < end && isspace(*p))
48 if (p == end)
87 while (p < end && *p != '\n')
93 while (p < end && !isspace(*p) && *p != ':' && *p != ';' && *p != '{' && *p != '}' && *p != '#')
138 } while (p < end && openparens);
140 if (p == end)
182 static int read_classperms(policydb_t *policydb, char **ptr, char *end, argument
377 check_neverallows(policydb_t *policydb, char *text, char *end) argument
450 char *text, *end; local
475 char *text, *end; local
[all...]
/system/core/libbacktrace/
H A DBacktraceMap.cpp38 if (start == 0 && end == 0) return "";
53 for (auto it = begin(); it != end(); ++it) {
55 if (addr >= entry->start && addr < entry->end) {
65 uint64_t end; local
75 &start, &end, permissions, &name_pos) != 3) {
82 &start, &end, permissions, &name_pos) != 3) {
88 map->end = end;
105 ALOGV("Parsed map: start=%p, end=%p, flags=%x, name=%s",
106 reinterpret_cast<void*>(map->start), reinterpret_cast<void*>(map->end),
[all...]
/system/core/healthd/
H A DAnimationParser.cpp62 int start = 0, end = 0; local
64 if (sscanf(in, "c c %d %d %d %d %n%*s%n", r, g, b, a, &start, &end) == 4) {
67 } else if (sscanf(in, "c %d %d %d %d %d %n%*s%n", y, r, g, b, a, &start, &end) == 5) {
69 } else if (sscanf(in, "%d c %d %d %d %d %n%*s%n", x, r, g, b, a, &start, &end) == 5) {
71 } else if (sscanf(in, "%d %d %d %d %d %d %n%*s%n", x, y, r, g, b, a, &start, &end) != 6) {
75 if (end == 0) return false;
77 field->font_file.assign(&in[start], end - start);
98 int start = 0, end = 0; local
100 &start, &end) != 2 ||
101 end
[all...]
/system/security/keystore/
H A Doperation.cpp35 if (mAppTokenMap.find(appToken) == mAppTokenMap.end()) appToken->linkToDeath(mDeathRecipient);
42 if (entry == mMap.end()) return {};
49 auto lruEntry = std::find(mLru.begin(), mLru.end(), token);
50 if (lruEntry != mLru.end()) {
58 if (entry == mMap.end()) return {};
64 auto lruEntry = std::find(mLru.begin(), mLru.end(), token);
65 if (lruEntry != mLru.end()) mLru.erase(lruEntry);
72 if (appEntry == mAppTokenMap.end()) {
76 auto tokenEntry = std::find(appEntry->second.begin(), appEntry->second.end(), token);
100 if (entry == mMap.end()) retur
[all...]
/system/core/init/
H A Dbuiltin_arguments.h33 auto end() const { return args.end(); } function in struct:android::init::BuiltinArguments
/system/keymaster/tests/
H A Dkey_blob_test.cpp104 EXPECT_EQ(serialized_blob_.end(), std::search(serialized_blob_.begin(), serialized_blob_.end(),
105 key_material_.begin(), key_material_.end()));
106 EXPECT_NE(serialized_blob_.end(), std::search(serialized_blob_.begin(), serialized_blob_.end(),
107 ciphertext_.begin(), ciphertext_.end()));
143 std::search(serialized_blob_.begin(), serialized_blob_.end(), nonce_.begin(), nonce_.end());
144 ASSERT_NE(nonce_ptr, serialized_blob_.end());
145 EXPECT_EQ(serialized_blob_.end(),
[all...]

Completed in 454 milliseconds

1234567891011>>