/aosp14/frameworks/base/core/jni/ |
H A D | BindTest.cpp | 37 static uintptr_t * 44 static uintptr_t * 51 static uintptr_t * 58 static uintptr_t * 65 static uintptr_t * 79 static uintptr_t * 90 static uintptr_t * 101 static uintptr_t * 120 static uintptr_t * 136 static uintptr_t * [all …]
|
H A D | android_hardware_SyncFence.cpp | 29 return static_cast<jlong>(reinterpret_cast<uintptr_t>(ptr)); in toJlong() 34 return reinterpret_cast<T*>(static_cast<uintptr_t>(jPtr)); in fromJlong()
|
/aosp14/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
H A D | types.h | 46 uintptr_t abort_msg_address = 0; 47 uintptr_t fdsan_table_address = 0; 48 uintptr_t gwp_asan_state = 0; 49 uintptr_t gwp_asan_metadata = 0; 50 uintptr_t scudo_stack_depot = 0; 51 uintptr_t scudo_region_info = 0; 52 uintptr_t scudo_ring_buffer = 0; 56 uintptr_t untagged_fault_address = 0; 57 uintptr_t maybe_tagged_fault_address = 0;
|
H A D | gwp_asan.h | 59 uintptr_t GetFaultAddress() const; 77 uintptr_t crash_address_ = 0u;
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | TypeWrappers.cpp | 26 const uintptr_t containerEnd = reinterpret_cast<uintptr_t>(data) + dtohl(data->header.size); in TypeVariant() 28 reinterpret_cast<uintptr_t>(data) + dtohs(data->header.headerSize)); in TypeVariant() 29 if (reinterpret_cast<uintptr_t>(entryIndices) + (sizeof(uint32_t) * entryCount) in TypeVariant() 58 const uintptr_t containerEnd = reinterpret_cast<uintptr_t>(type) in operator *() 61 reinterpret_cast<uintptr_t>(type) + dtohs(type->header.headerSize)); in operator *() 64 if (reinterpret_cast<uintptr_t>(entryIndices) + (indexSize * entryCount) > containerEnd) { in operator *() 95 reinterpret_cast<uintptr_t>(type) + dtohl(type->entriesStart) + entryOffset); in operator *() 96 if (reinterpret_cast<uintptr_t>(entry) > containerEnd - sizeof(*entry)) { in operator *() 99 } else if (reinterpret_cast<uintptr_t>(entry) + entry->size() > containerEnd) { in operator *()
|
/aosp14/system/core/debuggerd/ |
H A D | protocol.h | 91 uintptr_t abort_msg_address; 95 uintptr_t fdsan_table_address; 96 uintptr_t gwp_asan_state; 97 uintptr_t gwp_asan_metadata; 98 uintptr_t scudo_stack_depot; 99 uintptr_t scudo_region_info; 100 uintptr_t scudo_ring_buffer;
|
H A D | crash_test.h | 27 uintptr_t next; 28 uintptr_t prev; 29 uintptr_t symfile_addr; 36 uintptr_t relevant_entry; 37 uintptr_t first_entry;
|
H A D | debuggerd_test.cpp | 672 std::set<uintptr_t> allocs; in TEST_F() 674 uintptr_t alloc = reinterpret_cast<uintptr_t>(malloc(16)); in TEST_F() 718 static uintptr_t CreateTagMapping() { in CreateTagMapping() 723 uintptr_t mapping_uptr = reinterpret_cast<uintptr_t>(mapping); in CreateTagMapping() 2196 static std::string format_pointer(uintptr_t ptr) { in format_pointer() 2206 return format_pointer(reinterpret_cast<uintptr_t>(ptr)); in format_pointer() 2209 static std::string format_full_pointer(uintptr_t ptr) { in format_full_pointer() 2218 return format_full_pointer(reinterpret_cast<uintptr_t>(ptr)); in format_full_pointer() 2221 __attribute__((__noinline__)) int crash_call(uintptr_t ptr) { in crash_call() 2260 uintptr_t crash_uptr = untag_address(UINTPTR_MAX - 15); in TEST_F() [all …]
|
/aosp14/system/core/trusty/coverage/ |
H A D | coverage.cpp | 46 static inline uintptr_t RoundPageUp(uintptr_t val) { in RoundPageUp() 193 volatile uintptr_t* begin = nullptr; in ResetPCs() 194 volatile uintptr_t* end = nullptr; in ResetPCs() 197 for (volatile uintptr_t* x = begin; x < end; x++) { in ResetPCs() 244 void CoverageRecord::GetRawPCs(volatile uintptr_t** begin, volatile uintptr_t** end) { in GetRawPCs() 282 if (sizeof(uintptr_t) == 8) { in SaveSancovFile() 284 } else if (sizeof(uintptr_t) == 4) { in SaveSancovFile() 289 volatile uintptr_t* begin = nullptr; in SaveSancovFile() 290 volatile uintptr_t* end = nullptr; in SaveSancovFile() 294 for (volatile uintptr_t* pc_ptr = begin; pc_ptr < end; pc_ptr++) { in SaveSancovFile() [all …]
|
/aosp14/system/core/libutils/include/utils/ |
H A D | Flattenable.h | 46 uintptr_t b = uintptr_t(buffer); in align() 47 buffer = reinterpret_cast<void*>((uintptr_t(buffer) + (N-1)) & ~(N-1)); in align() 48 return size_t(uintptr_t(buffer) - b); in align() 55 buffer = reinterpret_cast<void*>((uintptr_t(buffer) + (N-1)) & ~(N-1)); in align() 56 size_t delta = size_t(uintptr_t(buffer) - uintptr_t(b)); in align() 62 buffer = reinterpret_cast<void*>( uintptr_t(buffer) + offset ); in advance() 67 buffer = reinterpret_cast<void const*>( uintptr_t(buffer) + offset ); in advance()
|
H A D | CallStack.h | 106 if (reinterpret_cast<uintptr_t>(getCurrentInternal) == 0) { 122 if (reinterpret_cast<uintptr_t>(logStackInternal) != 0 && stack != nullptr) { 139 if (reinterpret_cast<uintptr_t>(stackToStringInternal) != 0 && stack != nullptr) {
|
/aosp14/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | accessorychat.c | 35 int endpoint = (int)(uintptr_t)arg; in read_thread() 55 int endpoint = (int)(uintptr_t)arg; in write_thread() 139 pthread_create(&th, NULL, read_thread, (void *)(uintptr_t)ep1->bEndpointAddress); in usb_device_added() 140 pthread_create(&th, NULL, write_thread, (void *)(uintptr_t)ep2->bEndpointAddress); in usb_device_added() 142 pthread_create(&th, NULL, read_thread, (void *)(uintptr_t)ep2->bEndpointAddress); in usb_device_added() 143 pthread_create(&th, NULL, write_thread, (void *)(uintptr_t)ep1->bEndpointAddress); in usb_device_added()
|
/aosp14/system/core/debuggerd/libdebuggerd/ |
H A D | utility.cpp | 150 if (bytes % sizeof(uintptr_t) != 0) { in dump_memory() 152 ALOGE("Bytes read %zu, is not a multiple of %zu", bytes, sizeof(uintptr_t)); in dump_memory() 153 bytes &= ~(sizeof(uintptr_t) - 1); in dump_memory() 178 if (bytes2 > 0 && bytes % sizeof(uintptr_t) != 0) { in dump_memory() 180 ALOGE("Bytes after second read %zu, is not a multiple of %zu", bytes, sizeof(uintptr_t)); in dump_memory() 181 bytes &= ~(sizeof(uintptr_t) - 1); in dump_memory() 205 uintptr_t data[MEMORY_BYTES_TO_DUMP / sizeof(uintptr_t)]; in dump_memory() 221 uintptr_t* data_ptr = data; in dump_memory() 230 for (size_t i = 0; i < MEMORY_BYTES_PER_LINE / sizeof(uintptr_t); i++) { in dump_memory() 235 for (size_t val = 0; val < sizeof(uintptr_t); val++, ptr++) { in dump_memory()
|
H A D | gwp_asan.cpp | 32 static bool retrieve_gwp_asan_state(unwindstack::Memory* process_memory, uintptr_t state_addr, in retrieve_gwp_asan_state() 44 uintptr_t metadata_addr) { in retrieve_gwp_asan_metadata() 91 uintptr_t internal_crash_address = __gwp_asan_get_internal_crash_address(&state_, crash_address_); in GwpAsanCrashData() 144 std::unique_ptr<uintptr_t[]> frames(new uintptr_t[kMaxTraceLength]); in AddCauseProtos()
|
H A D | scudo.cpp | 57 uintptr_t fault_page = untagged_fault_addr_ & ~(PAGE_SIZE - 1); in ScudoCrashData() 59 uintptr_t memory_begin = fault_page - PAGE_SIZE * 16; in ScudoCrashData() 64 uintptr_t memory_end = fault_page + PAGE_SIZE * 16; in ScudoCrashData()
|
/aosp14/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 463 ret = (jlong)(uintptr_t)rsClosureCreate( in nClosureCreate() 559 (uintptr_t)value, size); in nClosureSetArg() 601 ret = (jlong)(uintptr_t)rsScriptGroup2Create( in nScriptGroup2Create() 829 return (jlong)(uintptr_t)rsDeviceCreate(); in nDeviceCreate() 1123 return (jlong)(uintptr_t)id; in nElementCreate2() 1158 uintptr_t *ids = (uintptr_t*)malloc(dataSize * sizeof(uintptr_t)); in nElementGetSubElements() 1205 uintptr_t typeData[6]; in nTypeGetNativeData() 2250 return (jlong)(uintptr_t)ret; in nScriptCCreate() 2503 uintptr_t * paramPtr = (uintptr_t*) malloc(sizeof(uintptr_t) * paramLen); in nProgramFragmentCreate() 2505 paramPtr[i] = (uintptr_t)jParamPtr[i]; in nProgramFragmentCreate() [all …]
|
/aosp14/frameworks/base/cmds/app_process/ |
H A D | app_main.cpp | 134 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]); in computeArgBlockSize() 135 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]); in computeArgBlockSize()
|
/aosp14/system/core/trusty/coverage/include/trusty/coverage/ |
H A D | coverage.h | 56 void GetRawPCs(volatile uintptr_t** begin, volatile uintptr_t** end);
|
/aosp14/system/core/trusty/apploader/fuzz/ |
H A D | app_fuzzer.cpp | 46 static inline uintptr_t RoundPageUp(uintptr_t val) { in RoundPageUp()
|
/aosp14/system/core/debuggerd/libdebuggerd/test/ |
H A D | dump_memory_test.cpp | 135 uintptr_t last_read_addr_ = 0; 487 uintptr_t addr = 0x10000020 + page_size - 120; in TEST_F() 532 uintptr_t addr = 0x10000020 + page_size - 192; in TEST_F() 562 uintptr_t addr = 0x10000020; in TEST_F() 584 uintptr_t addr = 0x10000020 + page_size - 256; in TEST_F()
|
H A D | elf_fake.cpp | 33 bool elf_get_build_id(unwindstack::Memory*, uintptr_t, std::string* build_id) { in elf_get_build_id() argument
|
/aosp14/system/core/debuggerd/handler/ |
H A D | fallback.h | 22 static const uintptr_t kDebuggerdFallbackSivalUintptrRequestDump = ~0UL;
|
/aosp14/system/core/trusty/confirmationui/ |
H A D | TrustyApp.cpp | 33 static inline uintptr_t RoundPageUp(uintptr_t val) { in RoundPageUp()
|
/aosp14/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | accessory.h | 22 void usb_run(uintptr_t enable_accessory);
|
/aosp14/system/core/libutils/ |
H A D | RefBase.cpp | 175 static constexpr uintptr_t MIN_PAGE_MASK = ~static_cast<uintptr_t>(MIN_PAGE_SIZE - 1); in check_not_on_stack() 176 uintptr_t my_frame_address = in check_not_on_stack() 177 reinterpret_cast<uintptr_t>(__builtin_frame_address(0 /* this frame */)); in check_not_on_stack() 178 if (((reinterpret_cast<uintptr_t>(ptr) ^ my_frame_address) & MIN_PAGE_MASK) == 0) { in check_not_on_stack()
|