/system/core/libprocinfo/ |
H A D | process_test.cpp | 43 android::procinfo::ProcessInfo self; local 44 ASSERT_TRUE(android::procinfo::GetProcessInfo(gettid(), &self)); 45 ASSERT_EQ(gettid(), self.tid); 46 ASSERT_EQ(getpid(), self.pid); 47 ASSERT_EQ(getppid(), self.ppid); 48 ASSERT_EQ(getuid(), self.uid); 49 ASSERT_EQ(getgid(), self.gid); 53 android::procinfo::ProcessInfo self; local 56 ASSERT_TRUE(android::procinfo::GetProcessInfoFromProcPidFd(fd, &self)); 59 ASSERT_EQ("libprocinfo_tes", self [all...] |
/system/nvram/messages/include/nvram/messages/ |
H A D | struct.h | 209 static constexpr Type Get(FieldSpecList<FieldSpec, Tail...> self) { argument 210 return Prev::Get(self.kTail); 219 static constexpr Type Get(FieldSpecList<FieldSpec, Tail...> self) { argument 220 return self.kFieldSpec;
|
/system/update_engine/payload_generator/ |
H A D | xz_android.cc | 38 auto* self = local 40 *size = std::min(*size, self->data_.size() - self->pos_); 41 memcpy(buf, self->data_.data() + self->pos_, *size); 42 self->pos_ += *size; 59 auto* self = local 62 self->data_->reserve(self->data_->size() + size); 63 self [all...] |
/system/core/libappfuse/ |
H A D | FuseBuffer.cc | 40 bool CheckHeaderLength(const FuseMessage<T>* self, const char* name, size_t max_size) { argument 41 const auto& header = static_cast<const T*>(self)->header; 51 ResultOrAgain ReadInternal(FuseMessage<T>* self, int fd, int sockflag) { argument 52 char* const buf = reinterpret_cast<char*>(self); 68 const auto& header = static_cast<const T*>(self)->header; 74 if (!CheckHeaderLength<T>(self, "Read", sizeof(T))) { 87 ResultOrAgain WriteInternal(const FuseMessage<T>* self, int fd, int sockflag, const void* data, argument 89 if (!CheckHeaderLength<T>(self, "Write", max_size)) { 93 const char* const buf = reinterpret_cast<const char*>(self); 94 const auto& header = static_cast<const T*>(self) [all...] |
/system/core/libutils/ |
H A D | Looper.cpp | 89 Looper* const self = static_cast<Looper*>(st); local 90 if (self != NULL) { 91 self->decStrong((void*)threadDestructor);
|
H A D | Threads.cpp | 135 // prctl(PR_SET_NAME) only works for self; prctl(PR_SET_THREAD_NAME) was 713 Thread* const self = static_cast<Thread*>(user); local 715 sp<Thread> strong(self->mHoldSelf); 717 self->mHoldSelf.clear(); 721 self->mTid = gettid(); 730 self->mStatus = self->readyToRun(); 731 result = (self->mStatus == NO_ERROR); 733 if (result && !self->exitPending()) { 744 result = self [all...] |
/system/core/storaged/ |
H A D | storaged_service.cpp | 96 IPCThreadState* self = IPCThreadState::self(); local 97 const int pid = self->getCallingPid(); 98 const int uid = self->getCallingUid();
|
/system/libhwbinder/ |
H A D | BpHwBinder.cpp | 99 IPCThreadState::self()->incWeakHandle(handle, this); 107 status_t status = IPCThreadState::self()->transact( 138 IPCThreadState* self = IPCThreadState::self(); local 139 self->requestDeathNotification(mHandle, this); 140 self->flushCommands(); 172 IPCThreadState* self = IPCThreadState::self(); local 173 self->clearDeathNotification(mHandle, this); 174 self 197 IPCThreadState* self = IPCThreadState::self(); local [all...] |
H A D | ProcessState.cpp | 61 IPCThreadState::self()->joinThreadPool(mIsMain); 68 sp<ProcessState> ProcessState::self() function in class:android::hardware::ProcessState 129 IPCThreadState* ipc = IPCThreadState::self();
|
H A D | IPCThreadState.cpp | 279 IPCThreadState* IPCThreadState::self() function in class:android::hardware::IPCThreadState 290 ALOGW("Calling IPCThreadState::self() during shutdown is dangerous, expect a crash.\n"); 299 ALOGW("IPCThreadState::self() unable to create TLS key, expect a crash: %s\n", 726 self()->mProcess->expungeHandle(handle, binder); // NOLINT 746 : mProcess(ProcessState::self()), 1242 IPCThreadState* const self = static_cast<IPCThreadState*>(st); local 1243 if (self) { 1244 self->flushCommands(); 1246 if (self->mProcess->mDriverFD > 0) { 1247 ioctl(self [all...] |
/system/core/liblog/ |
H A D | properties.c | 322 unsigned char (*const evaluate)(const struct cache2_char* self); 325 static inline unsigned char do_cache2_char(struct cache2_char* self) { argument 330 if (pthread_mutex_trylock(&self->lock)) { 332 return self->evaluate(self); 335 change_detected = check_cache(&self->cache_persist.cache) || 336 check_cache(&self->cache_ro.cache); 338 if (current_serial != self->serial) { 342 refresh_cache(&self->cache_persist, self 353 evaluate_persist_ro(const struct cache2_char* self) argument 383 evaluate_security(const struct cache2_char* self) argument 534 do_cache2_property_size( struct cache2_property_size* self) argument 591 evaluate_property_get_size( const struct cache2_property_size* self) argument [all...] |
/system/bt/stack/btm/ |
H A D | btm_ble_multi_adv.cc | 147 base::WeakPtr<BleAdvertisingManagerImpl> self; member in struct:__anon960::CreatorParams 318 base::WeakPtr<BleAdvertisingManagerImpl> self; member in struct:__anon960::BleAdvertisingManagerImpl::CreatorParams 330 c->self = weak_factory_.GetWeakPtr(); 344 c->self->SetParameters(c->inst_id, &c->params, Bind( 346 if (!c->self) { 357 c->self->adv_inst[c->inst_id].tx_power = tx_power; 359 const RawAddress& rpa = c->self->adv_inst[c->inst_id].own_address; 360 c->self->GetHciInterface()->SetRandomAddress(c->inst_id, rpa, Bind( 362 if (!c->self) { 373 c->self 598 base::WeakPtr<BleAdvertisingManagerImpl> self = c->self; local [all...] |