/system/keymaster/android_keymaster/ |
D | android_keymaster_messages.cpp | 37 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 …]
|
D | serializable.cpp | 27 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) { in append_to_buf() argument 31 if (buf + data_len <= end) { in append_to_buf() 38 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { in copy_from_buf() argument 42 if (end < *buf_ptr + size) in copy_from_buf() 49 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 51 if (!copy_uint32_from_buf(buf_ptr, end, size)) in copy_size_and_data_from_buf() 57 if (*buf_ptr + *size > end) in copy_size_and_data_from_buf() 67 return copy_from_buf(buf_ptr, end, dest->get(), *size); in copy_size_and_data_from_buf() 142 uint8_t* Buffer::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize() 143 return append_size_and_data_to_buf(buf, end, peek_read(), available_read()); in Serialize() [all …]
|
/system/core/libbacktrace/testdata/arm64/ |
D | offline_testdata | 2 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/ |
D | offline_testdata | 2 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 …]
|
D | offline_testdata_for_libart | 3 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/libbacktrace/testdata/x86_64/ |
D | offline_testdata | 2 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/ |
D | offline_testdata | 2 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/keymaster/key_blob_utils/ |
D | auth_encrypted_key_blob.cpp | 43 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 …]
|
D | integrity_assured_key_blob.cpp | 95 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/ |
D | serializable.h | 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) { 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 …]
|
D | android_keymaster_messages.h | 120 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; 145 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { in Serialize() 146 return append_uint32_to_buf(buf, end, algorithm); in Serialize() 148 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override { in Deserialize() 149 return copy_uint32_from_buf(buf_ptr, end, &algorithm); in Deserialize() 170 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { in Serialize() 171 buf = append_uint32_to_buf(buf, end, algorithm); in Serialize() [all …]
|
/system/core/libmemunreachable/ |
D | HeapWalker.cpp | 33 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() 41 valid_allocations_range_.end = std::max(valid_allocations_range_.end, end); in Allocation() 48 reinterpret_cast<void*>(end), reinterpret_cast<void*>(overlap.begin), in Allocation() 49 reinterpret_cast<void*>(overlap.end)); in Allocation() 62 if (value >= valid_allocations_range_.begin && value < valid_allocations_range_.end) { in WordContainsAllocationPtr() 64 if (it != allocations_.end()) { in WordContainsAllocationPtr() 88 void HeapWalker::Root(uintptr_t begin, uintptr_t end) { in Root() argument [all …]
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | neverallow.c | 20 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/ |
D | ZoneOffsetPeriod.java | 34 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/netd/server/ |
D | UidRanges.cpp | 40 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), UidRange(intUid, intUid)); in hasUid() 41 return (iter != mRanges.end() && iter->getStart() == intUid) || in hasUid() 86 std::sort(mRanges.begin(), mRanges.end()); in parseFrom() 92 std::sort(mRanges.begin(), mRanges.end()); in UidRanges() 96 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end()); in add() 97 std::inplace_merge(mRanges.begin(), middle, mRanges.end()); in add() 101 auto end = std::set_difference(mRanges.begin(), mRanges.end(), other.mRanges.begin(), in remove() local 102 other.mRanges.end(), mRanges.begin()); in remove() 103 mRanges.erase(end, mRanges.end()); in remove()
|
/system/keymaster/tests/ |
D | key_blob_test.cpp | 104 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/libufdt/utils/src/ |
D | mkdtimg_cfg_create.c | 43 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() 148 end: in process_command_cfg_create()
|
/system/chre/apps/chqts/src/shared/ |
D | nano_endian.cc | 22 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/core/libunwindstack/include/unwindstack/ |
D | MapInfo.h | 36 MapInfo(uint64_t start, uint64_t end) : start(start), end(end) {} in MapInfo() 37 MapInfo(uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, const std::string& name) in MapInfo() 39 end(end), in MapInfo() 47 uint64_t end = 0; member
|
/system/core/healthd/ |
D | AnimationParser.cpp | 62 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 …]
|
/system/libufdt/tests/src/ |
D | ufdt_overlay_test_app.c | 37 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()
|
D | extract_dtb.c | 51 goto end; in find_and_write_dtb() 58 goto end; in find_and_write_dtb() 74 goto end; in find_and_write_dtb() 87 goto end; in find_and_write_dtb() 90 end: in find_and_write_dtb() 104 goto end; in extract_dtbs() 127 goto end; in extract_dtbs() 135 goto end; in extract_dtbs() 141 end: in extract_dtbs()
|
/system/core/base/include/android-base/ |
D | parseint.h | 38 char* end; variable 39 unsigned long long int result = strtoull(s, &end, base); 40 if (errno != 0 || s == end || *end != '\0') { 67 char* end; variable 68 long long int result = strtoll(s, &end, base); 69 if (errno != 0 || s == end || *end != '\0') {
|
/system/security/keystore/ |
D | operation.cpp | 35 if (mAppTokenMap.find(appToken) == mAppTokenMap.end()) appToken->linkToDeath(mDeathRecipient); in addOperation() 42 if (entry == mMap.end()) return {}; in getOperation() 49 auto lruEntry = std::find(mLru.begin(), mLru.end(), token); in updateLru() 50 if (lruEntry != mLru.end()) { in updateLru() 58 if (entry == mMap.end()) return {}; in removeOperation() 64 auto lruEntry = std::find(mLru.begin(), mLru.end(), token); in removeOperation() 65 if (lruEntry != mLru.end()) mLru.erase(lruEntry); in removeOperation() 72 if (appEntry == mAppTokenMap.end()) { in removeOperationTracking() 76 auto tokenEntry = std::find(appEntry->second.begin(), appEntry->second.end(), token); in removeOperationTracking() 100 if (entry == mMap.end()) return; in setOperationAuthToken() [all …]
|
/system/tools/hidl/ |
D | Method.cpp | 49 CHECK(mJavaImpl.find(IMPL_STUB_IMPL) == mJavaImpl.end()) in fillImplementation() 51 CHECK(mCppImpl.find(IMPL_STUB_IMPL) == mCppImpl.end() || in fillImplementation() 52 mCppImpl.find(IMPL_STUB) == mCppImpl.end()) in fillImplementation() 75 std::transform(constRet.begin(), constRet.end(), ret.begin(), in getReferences() 82 ret.insert(ret.end(), mArgs->begin(), mArgs->end()); in getReferences() 83 ret.insert(ret.end(), mResults->begin(), mResults->end()); in getReferences() 90 std::transform(constRet.begin(), constRet.end(), ret.begin(), in getStrongReferences() 108 std::transform(constRet.begin(), constRet.end(), ret.begin(), in getConstantExpressions() 117 ret.insert(ret.end(), retAnnotation.begin(), retAnnotation.end()); in getConstantExpressions() 125 if (it != mCppImpl.end()) { in cppImpl() [all …]
|