Lines Matching refs:second
85 return it != mMap.end() && !it->second.deleted; in hasApp()
102 if (kv.first.first == uid && !kv.second.deleted) { in getAppNamesFromUidLocked()
103 names.insert(returnNormalized ? normalizeAppName(kv.first.second) : kv.first.second); in getAppNamesFromUidLocked()
113 if (it == mMap.end() || it->second.deleted) { in getAppVersion()
116 return it->second.versionCode; in getAppVersion()
130 if (kv.second.deleted) { in updateMap()
131 deletedApps[kv.first] = kv.second; in updateMap()
147 mMap[kv.first] = kv.second; in updateMap()
182 prevVersion = it->second.versionCode; in updateApp()
183 prevVersionString = it->second.versionString; in updateApp()
184 it->second.versionCode = versionCode; in updateApp()
185 it->second.versionString = newVersionString; in updateApp()
186 it->second.installer = string(String8(installer).string()); in updateApp()
187 it->second.deleted = false; in updateApp()
256 if (it != mMap.end() && !it->second.deleted) { in removeApp()
257 prevVersion = it->second.versionCode; in removeApp()
258 prevVersionString = it->second.versionString; in removeApp()
259 it->second.deleted = true; in removeApp()
315 return it->second; in getHostUidOrSelf()
332 m = kv.second; in getMinimumTimestampNs()
333 } else if (kv.second < m) { in getMinimumTimestampNs()
334 m = kv.second; in getMinimumTimestampNs()
366 str_set->insert(kv.first.second); in writeUidMapSnapshotLocked()
368 (long long)Hash64(kv.first.second)); in writeUidMapSnapshotLocked()
370 str_set->insert(kv.second.versionString); in writeUidMapSnapshotLocked()
372 (long long)Hash64(kv.second.versionString)); in writeUidMapSnapshotLocked()
375 str_set->insert(kv.second.installer); in writeUidMapSnapshotLocked()
377 (long long)Hash64(kv.second.installer)); in writeUidMapSnapshotLocked()
380 proto->write(FIELD_TYPE_STRING | FIELD_ID_SNAPSHOT_PACKAGE_NAME, kv.first.second); in writeUidMapSnapshotLocked()
383 kv.second.versionString); in writeUidMapSnapshotLocked()
387 kv.second.installer); in writeUidMapSnapshotLocked()
392 (long long)kv.second.versionCode); in writeUidMapSnapshotLocked()
394 proto->write(FIELD_TYPE_BOOL | FIELD_ID_SNAPSHOT_PACKAGE_DELETED, kv.second.deleted); in writeUidMapSnapshotLocked()
473 if (!kv.second.deleted) { in printUidMap()
474 dprintf(out, "%s, v%" PRId64 ", %s, %s (%i)\n", kv.first.second.c_str(), in printUidMap()
475 kv.second.versionCode, kv.second.versionString.c_str(), in printUidMap()
476 kv.second.installer.c_str(), kv.first.first); in printUidMap()
494 if (kv.first.second == package && !kv.second.deleted) { in getAppUid()