Searched refs:end (Results 1 - 25 of 563) 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/
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,
60 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const {
61 buf = append_uint32_to_buf(buf, end, static_cast<uint32_t>(error));
63 buf = NonErrorSerialize(buf, end);
67 bool KeymasterResponse::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { argument
68 if (!copy_uint32_from_buf(buf_ptr, end, &error))
72 return NonErrorDeserialize(buf_ptr, end);
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
89 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
111 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
125 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
145 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
165 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
187 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
224 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
264 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
288 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
303 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
324 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
350 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
370 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
390 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
412 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
431 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
459 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
509 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
543 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
560 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument
[all...]
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.cpp96 p = key_material.Serialize(p, key_blob->end());
97 p = hw_enforced.Serialize(p, key_blob->end());
98 p = sw_enforced.Serialize(p, key_blob->end());
109 const uint8_t* end = key_blob.end(); local
111 if (p > end || p + HMAC_SIZE > end)
120 if (CRYPTO_memcmp(key_blob.end() - HMAC_SIZE, computed_hmac, HMAC_SIZE) != 0)
132 const uint8_t* end = key_blob.end() local
[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...]
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...]
/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/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...]
H A DBinder.cpp65 refs.insert(refs.end(), binder_refs.begin(), binder_refs.end());
72 refs.insert(refs.end(), hwbinder_refs.begin(), hwbinder_refs.end());
H A DProcessMappings.h26 uintptr_t end; member in struct:android::Mapping
/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.h112 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
113 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
116 virtual uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const = 0;
117 virtual bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0;
127 uint8_t* Serialize(uint8_t* buf, const uint8_t* /* end */) const override { return buf; }
128 bool Deserialize(const uint8_t** /* buf_ptr */, const uint8_t* /* end */) override {
137 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
138 return append_uint32_to_buf(buf, end, algorithm);
140 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
141 return copy_uint32_from_buf(buf_ptr, end,
[all...]
/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
367 check_neverallows(policydb_t *policydb, char *text, char *end) argument
440 char *text, *end; local
465 char *text, *end; local
[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/core/include/backtrace/
H A DBacktraceMap.h42 uintptr_t end = 0; member in struct:backtrace_map_t
86 iterator end() { return maps_.end(); } function in class:BacktraceMap
90 const_iterator end() const { return maps_.end(); } function in class:BacktraceMap
97 return map.end > 0;
/system/core/libbacktrace/include/backtrace/
H A DBacktraceMap.h42 uintptr_t end = 0; member in struct:backtrace_map_t
86 iterator end() { return maps_.end(); } function in class:BacktraceMap
90 const_iterator end() const { return maps_.end(); } function in class:BacktraceMap
97 return map.end > 0;
/system/tools/hidl/
H A DLocation.h51 Location (Position begin, Position end) argument
52 : mBegin(begin), mEnd(end) {}
54 inline const Position &end() const { return mEnd; } function in struct:android::Location
68 Position last = Position(loc.end().filename(),
69 loc.end().line(),
70 std::max<size_t>(1u, loc.end().column() - 1));
/system/nfc/halimpl/bcm2079x/adaptation/
H A DSyncEvent.h92 ** Function: end
99 void end() { mMutex.unlock(); } function in class:SyncEvent
113 ** Description: Automatically start and end a synchronization event.
141 mEvent.end(); // automatically end operation
/system/core/libunwindstack/tests/
H A DMapsTest.cpp40 ASSERT_EQ(0x2000U, it->end);
46 ASSERT_EQ(0x3000U, it->end);
52 ASSERT_EQ(0x4000U, it->end);
58 ASSERT_EQ(0x5000U, it->end);
64 ASSERT_EQ(0x6000U, it->end);
68 ASSERT_EQ(it, maps.end());
82 ASSERT_EQ(0x720b29e000U, it->end);
88 ASSERT_EQ(0x720b29f000U, it->end);
94 ASSERT_EQ(0x720b2a0000U, it->end);
98 ASSERT_EQ(it, maps.end());
[all...]

Completed in 403 milliseconds

1234567891011>>