Home
last modified time | relevance | path

Searched refs:base_ (Results 1 – 5 of 5) sorted by relevance

/system/memory/libmemunreachable/
DPtracerThread.cpp47 base_ = mmap(NULL, size_, prot, flags, -1, 0); in Stack()
48 if (base_ == MAP_FAILED) { in Stack()
49 base_ = NULL; in Stack()
53 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, base_, size_, "libmemunreachable stack"); in Stack()
54 mprotect(base_, page_size_, PROT_NONE); in Stack()
57 ~Stack() { munmap(base_, size_); }; in ~Stack()
59 return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(base_) + size_ - page_size_); in top()
65 void* base_; member in android::Stack
/system/libbase/
Dmapped_file.cpp89 : base_(std::exchange(other.base_, nullptr)), in MappedFile()
101 base_ = std::exchange(other.base_, nullptr); in operator =()
116 if (base_ != nullptr && size_ != 0) UnmapViewOfFile(base_); in Close()
120 if (base_ != nullptr && size_ != 0) munmap(base_, size_ + offset_); in Close()
123 base_ = nullptr; in Close()
/system/libbase/include/android-base/
Dmapped_file.h70 char* data() const { return base_ + offset_; } in data()
78 char* base_; variable
85 : base_(base), size_(size), offset_(offset), handle_(handle) {} in MappedFile()
88 MappedFile(char* base, size_t size, size_t offset) : base_(base), size_(size), offset_(offset) {} in MappedFile()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_reader_test.cpp36 base_ = std::make_unique<TemporaryFile>(); in SetUp()
37 ASSERT_GE(base_->fd, 0) << strerror(errno); in SetUp()
46 base_ = nullptr; in TearDown()
58 ASSERT_TRUE(android::base::WriteFully(base_->fd, block.data(), block.size())); in WriteBaseDevice()
61 ASSERT_EQ(fsync(base_->fd), 0); in WriteBaseDevice()
144 std::unique_ptr<TemporaryFile> base_; member in android::snapshot::OfflineSnapshotTest
159 writer->SetSourceDevice(base_->path); in TEST_F()
/system/tools/aidl/
Dgenerate_java_binder.cpp51 explicit VariableFactory(const std::string& base) : base_(base), index_(0) {} in VariableFactory()
54 StringPrintf("%s%d", base_.c_str(), index_)); in Get()
64 std::string base_; member in android::aidl::java::VariableFactory