/system/extras/iotop/ |
H A D | tasklist.cpp | 37 dirent* entry; local 38 while ((entry = readdir(dir.get())) != nullptr) { 39 if (isdigit(entry->d_name[0])) { 40 pid_t pid = atoi(entry->d_name);
|
/system/extras/kexec_tools/ |
H A D | kexec.h | 19 static inline long kexec_load(unsigned int entry, unsigned long nr_segments, argument 21 return syscall(__NR_kexec_load, entry, nr_segments, segment, flags);
|
/system/core/logd/ |
H A D | FlushCommand.cpp | 55 LogTimeEntry *entry = NULL; local 61 entry = (*it); 62 if (entry->mClient == client) { 63 if (entry->mTimeout.tv_sec || entry->mTimeout.tv_nsec) { 67 entry->triggerReader_Locked(); 68 if (entry->runningReader_Locked()) { 72 entry->incRef_Locked(); 84 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, 86 times.push_front(entry); [all...] |
H A D | LogBufferElement.cpp | 204 struct logger_entry_v4 entry; local 206 memset(&entry, 0, sizeof(struct logger_entry_v4)); 208 entry.hdr_size = privileged ? 211 entry.lid = mLogId; 212 entry.pid = mPid; 213 entry.tid = mTid; 214 entry.uid = mUid; 215 entry.sec = mRealTime.tv_sec; 216 entry.nsec = mRealTime.tv_nsec; 219 iovec[0].iov_base = &entry; [all...] |
/system/bt/osi/src/ |
H A D | hash_map_utils.c | 32 static bool dump_entry(hash_map_entry_t *entry, UNUSED_ATTR void *context); 99 static bool dump_entry(hash_map_entry_t *entry, UNUSED_ATTR void *context) { argument 100 hash_map_entry_t *hash_map_entry = (hash_map_entry_t *)entry;
|
H A D | allocation_tracker.c | 51 static bool allocation_entry_freed_checker(hash_map_entry_t *entry, void *context); 170 // Free the hash map entry to avoid unlimited memory usage growth. 172 // as the allocation entry will not be present. 184 static bool allocation_entry_freed_checker(hash_map_entry_t *entry, void *context) { argument 185 allocation_t *allocation = (allocation_t *)entry->data;
|
/system/connectivity/shill/shims/ |
H A D | set_apn_helper.c | 39 DBusMessageIter entry; local 42 NULL, &entry); 44 dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &key); 46 dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &value); 48 dbus_message_iter_close_container(dict, &entry);
|
/system/bt/device/src/ |
H A D | interop.c | 77 interop_addr_entry_t *entry = osi_calloc(sizeof(interop_addr_entry_t)); local 78 memcpy(&entry->addr, addr, length); 79 entry->feature = feature; 80 entry->length = length; 83 list_append(interop_list, entry); 124 interop_addr_entry_t *entry = (interop_addr_entry_t *)data; local 125 osi_free(entry); 140 interop_addr_entry_t *entry = list_node(node); local 141 assert(entry); 143 if (feature == entry [all...] |
/system/core/bootstat/ |
H A D | boot_event_record_store.cpp | 146 struct dirent* entry; local 147 while ((entry = readdir(dir.get())) != NULL) { 149 if (entry->d_type != DT_REG) { 153 const std::string event = entry->d_name;
|
H A D | boot_event_record_store_test.cpp | 82 struct dirent* entry; local 83 while ((entry = readdir(dir.get())) != NULL) { 84 const std::string entry_name(entry->d_name); 90 if (entry->d_type == DT_DIR) {
|
/system/core/libbacktrace/ |
H A D | BacktraceCurrent.cpp | 103 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); local 104 if (!entry) { 105 BACK_LOGE("pid %d, tid %d entry not found", getpid(), gettid()); 109 entry->CopyUcontextFromSigcontext(sigcontext); 112 entry->Wake(); 118 if (entry->Wait(2)) { 119 // Do not remove the entry here because that can result in a deadlock 121 entry->Wake(); 123 // At this point, it is possible that entry has been freed, so just exit. 133 ThreadEntry* entry local [all...] |
H A D | ThreadEntry.cpp | 51 ThreadEntry* entry = list_; local 52 while (entry != nullptr) { 53 if (entry->Match(pid, tid)) { 56 entry = entry->next_; 59 if (!entry) { 61 entry = new ThreadEntry(pid, tid); 64 entry->ref_count_++; 68 return entry; 71 void ThreadEntry::Remove(ThreadEntry* entry) { argument [all...] |
/system/extras/simpleperf/ |
H A D | gtest_main.cpp | 67 ZipEntry entry; local 69 while (Next(cookie, &entry, &name) == 0) { 85 std::vector<uint8_t> data(entry.uncompressed_length); 86 if (ExtractToMemory(handle, &entry, data.data(), data.size()) != 0) { 87 LOG(ERROR) << "failed to extract entry " << entry_name;
|
/system/core/libcutils/ |
H A D | android_reboot.c | 42 struct mntent entry; member in struct:__anon1607 84 item->entry = *mentry; 85 item->entry.mnt_fsname = strdup(mentry->mnt_fsname); 86 item->entry.mnt_dir = strdup(mentry->mnt_dir); 87 item->entry.mnt_type = strdup(mentry->mnt_type); 88 item->entry.mnt_opts = strdup(mentry->mnt_opts); 101 free(item->entry.mnt_fsname); 102 free(item->entry.mnt_dir); 103 free(item->entry.mnt_type); 104 free(item->entry [all...] |
/system/core/libpixelflinger/codeflinger/ |
H A D | Arm64Disassembler.cpp | 280 disasm_table_entry_t *entry = NULL; local 283 entry = &disasm_table[i]; 284 if((code & entry->mask) == entry->value) 298 uint32_t length = strlen(entry->instr_template); 302 get_token(entry->instr_template, index, token);
|
H A D | CodeCache.h | 96 : entry(a), when(w) { } 97 sp<Assembly> entry; member in struct:android::CodeCache::cache_entry_t
|
/system/core/libziparchive/ |
H A D | zip_archive_stream_entry.cc | 38 bool ZipArchiveStreamEntry::Init(const ZipEntry& entry) { argument 40 off64_t data_offset = entry.offset; 45 crc32_ = entry.crc32; 59 bool Init(const ZipEntry& entry) override; 68 bool ZipArchiveStreamEntryUncompressed::Init(const ZipEntry& entry) { argument 69 if (!ZipArchiveStreamEntry::Init(entry)) { 73 length_ = entry.uncompressed_length; 121 bool Init(const ZipEntry& entry) override; 141 bool ZipArchiveStreamEntryCompressed::Init(const ZipEntry& entry) { argument 142 if (!ZipArchiveStreamEntry::Init(entry)) { 262 Init(const ZipEntry& entry) argument 275 Create( ZipArchiveHandle handle, const ZipEntry& entry) argument 291 CreateRaw( ZipArchiveHandle handle, const ZipEntry& entry) argument [all...] |
/system/extras/ext4_utils/ |
H A D | ext4_crypt.cpp | 82 auto entry = readdir(dirp.get()); local 83 if (!entry) { 90 if (strcmp(entry->d_name, "lost+found") != 0) { // Skip lost+found
|
/system/security/keystore/ |
H A D | auth_token_table.h | 108 Entry(Entry&& entry) { *this = std::move(entry); } argument 121 bool Supersedes(const Entry& entry) const; 124 bool is_newer_than(const Entry* entry) { argument 125 if (!entry) 127 return timestamp_host_order() > entry->timestamp_host_order(); 153 void RemoveEntriesSupersededBy(const Entry& entry); 154 bool IsSupersededBySomeEntry(const Entry& entry);
|
/system/bt/stack/smp/ |
H A D | smp_br_main.c | 323 ** Description Handle events to the state machine. It looks up the entry 325 ** If it is a valid entry, it gets the state table.Set the next state, 337 UINT8 action, entry; local 353 /* lookup entry / w event & curr_state */ 354 /* If entry is ignore, return. 356 if ((event <= SMP_BR_MAX_EVT) && ( (entry = entry_table[event - 1][curr_state]) 359 if (entry & SMP_BR_ALL_TABLE_MASK) 361 entry &= ~SMP_BR_ALL_TABLE_MASK; 379 smp_set_br_state(state_table[entry - 1][SMP_BR_SME_NEXT_STATE]); 387 if ((action = state_table[entry [all...] |
/system/connectivity/shill/ |
H A D | routing_table.cc | 98 const RoutingTableEntry& entry) { 100 << "destination " << entry.dst.ToString() 102 << " gateway " << entry.gateway.ToString() 103 << " metric " << entry.metric; 105 CHECK(!entry.from_rtnl); 107 entry, 112 tables_[interface_index].push_back(entry); 118 RoutingTableEntry* entry) { 122 *entry = *found_entry; 129 RoutingTableEntry** entry) { 97 AddRoute(int interface_index, const RoutingTableEntry& entry) argument 116 GetDefaultRoute(int interface_index, IPAddress::Family family, RoutingTableEntry* entry) argument 127 GetDefaultRouteInternal(int interface_index, IPAddress::Family family, RoutingTableEntry** entry) argument 276 RoutingTableEntry* entry; local 291 ParseRoutingTableMessage(const RTNLMessage& message, int* interface_index, RoutingTableEntry* entry) argument 346 RoutingTableEntry entry; local 427 ApplyRoute(uint32_t interface_index, const RoutingTableEntry& entry, RTNLMessage::Mode mode, unsigned int flags) argument 476 ReplaceMetric(uint32_t interface_index, RoutingTableEntry* entry, uint32_t metric) argument [all...] |
/system/core/healthd/ |
H A D | BatteryMonitor.cpp | 495 struct dirent* entry; local 497 while ((entry = readdir(dir))) { 498 const char* name = entry->d_name;
|
/system/core/include/log/ |
H A D | logger.h | 37 char msg[0]; /* the entry's payload */ 53 char msg[0]; /* the entry's payload */ 64 char msg[0]; /* the entry's payload */ 76 char msg[0]; /* the entry's payload */ 80 * The maximum size of the log entry payload that can be 82 * this amount will result in a truncated log entry. 87 * The maximum size of a log entry which can be read from the 98 struct logger_entry_v4 entry; member in union:log_msg::__anon1536 108 return (entry.sec == T.entry [all...] |
/system/core/include/utils/ |
H A D | LruCache.h | 71 size_t operator() (const Entry* entry) const { 72 return hash_type(entry->key); 84 void attachToCache(Entry& entry); 85 void detachFromCache(Entry& entry); 174 Entry *entry = *find_result; local 175 detachFromCache(*entry); 176 attachToCache(*entry); 177 return entry->value; 202 Entry* entry = *find_result; local 203 mSet->erase(entry); 245 attachToCache(Entry& entry) argument 256 detachFromCache(Entry& entry) argument [all...] |
/system/core/init/ |
H A D | bootchart.cpp | 119 struct dirent* entry; local 120 while ((entry = readdir(dir.get())) != NULL) { 123 int pid = strtol(entry->d_name, &end, 10); 124 if (end != NULL && end > entry->d_name && *end == 0) {
|