Home
last modified time | relevance | path

Searched refs:GetUid (Results 1 – 25 of 31) sorted by relevance

12

/aosp12/packages/modules/StatsD/statsd/src/state/
H A DStateManager.cpp47 if (event.GetUid() == AID_ROOT || (event.GetUid() >= 1000 && event.GetUid() < 2000) || in onLogEvent()
48 mAllowedLogSources.find(event.GetUid()) != mAllowedLogSources.end()) { in onLogEvent()
/aosp12/packages/modules/StatsD/statsd/src/config/
H A DConfigManager.cpp148 auto uidIt = mConfigs.find(key.GetUid()); in UpdateConfig()
154 ALOGE("ConfigManager: uid %d has exceeded the config count limit", key.GetUid()); in UpdateConfig()
174 mConfigs[key.GetUid()].insert(key); in UpdateConfig()
221 auto uid = key.GetUid(); in RemoveConfig()
243 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in remove_saved_configs()
351 fprintf(out, " %6d %lld\n", it->GetUid(), (long long)it->GetId()); in Dump()
369 key.GetUid(), (long long)key.GetId()); in update_saved_configs_locked()
H A DConfigKey.h40 inline int GetUid() const { in GetUid() function
85 return (7 * key.GetUid()) ^ ((hash<long long>()(key.GetId())));
/aosp12/system/bt/packet/avrcp/
H A Dplay_item.cc54 uint64_t PlayItemRequest::GetUid() const { in GetUid() function in bluetooth::avrcp::PlayItemRequest
81 ss << " └ UID = " << loghex(GetUid()) << std::endl; in ToString()
H A Dchange_path.cc63 uint64_t ChangePathRequest::GetUid() const { in GetUid() function in bluetooth::avrcp::ChangePathRequest
81 ss << " └ UID Requested = " << loghex(GetUid()) << std::endl; in ToString()
H A Dget_item_attributes.cc92 uint64_t GetItemAttributesRequest::GetUid() const { in GetUid() function in bluetooth::avrcp::GetItemAttributesRequest
135 ss << " └ UID Requested = " << loghex(GetUid()) << std::endl; in ToString()
H A Dplay_item.h67 uint64_t GetUid() const;
H A Dget_item_attributes.h70 uint64_t GetUid() const;
H A Dchange_path.h63 uint64_t GetUid() const;
/aosp12/system/bt/profile/avrcp/
H A Ddevice.cc717 << " uid=" << pkt->GetUid(); in HandlePlayItem()
729 media_id = now_playing_ids_.get_media_id(pkt->GetUid()); in HandlePlayItem()
732 media_id = vfs_ids_.get_media_id(pkt->GetUid()); in HandlePlayItem()
921 << " uid=" << loghex(pkt->GetUid()); in HandleChangePath()
924 vfs_ids_.get_media_id(pkt->GetUid()) == "") { in HandleChangePath()
934 current_path_.push(vfs_ids_.get_media_id(pkt->GetUid())); in HandleChangePath()
978 << " uid=" << loghex(pkt->GetUid()) in HandleGetItemAttributes()
1013 DEVICE_VLOG(2) << __func__ << ": uid=" << loghex(pkt->GetUid()); in GetItemAttributesNowPlayingResponse()
1017 auto media_id = now_playing_ids_.get_media_id(pkt->GetUid()); in GetItemAttributesNowPlayingResponse()
1064 DEVICE_VLOG(2) << __func__ << ": uid=" << loghex(pkt->GetUid()); in GetItemAttributesVFSResponse()
[all …]
/aosp12/packages/modules/StatsD/statsd/tests/
H A DLogEvent_test.cpp96 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
145 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
182 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
212 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
248 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
H A DConfigManager_test.cpp56 return arg.GetUid() == uid && (long long)arg.GetId() == (long long)id;
/aosp12/packages/modules/StatsD/statsd/src/
H A DStatsLogProcessor.cpp179 uid_t uid = event->GetUid(); in onBinaryPushStateChangedEventLocked()
306 uid_t uid = event->GetUid(); in onWatchdogRollbackOccurredLocked()
456 int uid = pair.first.GetUid(); in OnLogEvent()
517 if (pair.first.GetUid() == uid && pair.second->isActive()) { in GetActiveConfigsLocked()
601 proto->write(FIELD_TYPE_INT32 | FIELD_ID_UID, key.GetUid()); in onDumpReport()
712 key.GetUid(), key.GetId()); in onConfigMetricsReportLocked()
761 int uid = key.GetUid(); in OnConfigRemoved()
764 if (it.first.GetUid() == uid) { in OnConfigRemoved()
837 StorageManager::getDataFileName((long)getWallClockSec(), key.GetUid(), key.GetId()); in WriteDataToDiskLocked()
/aosp12/packages/modules/StatsD/statsd/src/metrics/
H A DMetricsManager.cpp455 if (mAllowedLogSources.find(event.GetUid()) == mAllowedLogSources.end()) { in checkLogCredentials()
456 VLOG("log source %d not on the whitelist", event.GetUid()); in checkLogCredentials()
477 int32_t loggerUid = mUidMap->getHostUidOrSelf(event.GetUid()); in eventSanityCheck()
504 int32_t loggerUid = event.GetUid(); in eventSanityCheck()
726 proto->write(FIELD_TYPE_INT32 | FIELD_ID_ACTIVE_CONFIG_UID, mConfigKey.GetUid()); in writeActiveConfigToProtoOutputStream()
742 configKey->set_uid(mConfigKey.GetUid()); in writeMetadataToProto()
/aosp12/packages/modules/StatsD/statsd/src/subscriber/
H A DIncidentdReporter.cpp65 headerProto.write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_KEY_UID, configKey.GetUid()); in getProtoData()
129 configKey.GetUid(), (long long)configKey.GetId()); in GenerateIncidentReport()
H A DSubscriberReporter.cpp139 configKey.GetUid(), in sendBroadcastLocked()
/aosp12/system/bt/packet/tests/fuzzers/
H A Dchange_path_req_fuzzer.cc46 test_packet->GetUid(); in LLVMFuzzerTestOneInput()
H A Dplay_item_packet_fuzzer.cc45 test_packet->GetUid(); in LLVMFuzzerTestOneInput()
/aosp12/system/bt/packet/tests/avrcp/
H A Dplay_item_packet_test.cc41 ASSERT_EQ(test_packet->GetUid(), 0x0000000000000003u); in TEST()
H A Dchange_path_packet_test.cc56 ASSERT_EQ(test_packet->GetUid(), 0x0000000000000002u); in TEST()
H A Dget_item_attributes_packet_test.cc99 ASSERT_EQ(test_packet->GetUid(), 0x0000000000000001u); in TEST()
/aosp12/packages/modules/StatsD/statsd/src/external/
H A DPerfetto.cpp55 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid()); in CollectPerfettoTraceAndUploadToDropbox()
/aosp12/packages/modules/StatsD/statsd/src/storage/
H A DStorageManager.cpp487 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in hasConfigMetricsReport()
525 output.mUid != key.GetUid() || output.mConfigId != key.GetId()) { in appendConfigMetricsReport()
617 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in readConfigFromDisk()
/aosp12/packages/modules/StatsD/statsd/tests/e2e/
H A DConfigUpdate_e2e_ab_test.cpp207 string suffix = StringPrintf("%d_%lld", cfgKey.GetUid(), (long long)cfgKey.GetId()); in TEST_P()
210 StringPrintf("%d_%lld_history", cfgKey.GetUid(), (long long)cfgKey.GetId()); in TEST_P()
/aosp12/packages/modules/StatsD/statsd/src/logd/
H A DLogEvent.h90 inline int32_t GetUid() const { return mLogUid; } in GetUid() function

12