Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 894) sorted by relevance

12345678910>>...36

/base/powermgr/battery_statistics/services/native/src/entities/
Dsensor_entity.cpp33 int64_t SensorEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
38 auto gravityIter = gravityTimerMap_.find(uid); in GetActiveTimeMs()
42 activeTimeMs, uid); in GetActiveTimeMs()
45 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs()
49 auto proximityIter = proximityTimerMap_.find(uid); in GetActiveTimeMs()
53 activeTimeMs, uid); in GetActiveTimeMs()
56 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs()
65 double SensorEntity::CalculateGravity(int32_t uid) in CalculateGravity() argument
70 auto gravityOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_SENSOR_GRAVITY_ON); in CalculateGravity()
72 auto gravityIter = gravityPowerMap_.find(uid); in CalculateGravity()
[all …]
Dcpu_entity.cpp36 int64_t CpuEntity::GetCpuTimeMs(int32_t uid) in GetCpuTimeMs() argument
39 auto iter = cpuTimeMap_.find(uid); in GetCpuTimeMs()
42 std::to_string(cpuTimeMs).c_str(), uid); in GetCpuTimeMs()
45 STATS_HILOGD(COMP_SVC, "No cpu time realted to uid: %{public}d was found, return 0", uid); in GetCpuTimeMs()
61 void CpuEntity::Calculate(int32_t uid) in Calculate() argument
65 std::vector<int64_t> cpuTimeVec = cpuReader_->GetUidCpuTimeMs(uid); in Calculate()
70 auto cpuTimeIter = cpuTimeMap_.find(uid); in Calculate()
73 std::to_string(cpuTimeMs).c_str(), uid); in Calculate()
77 std::to_string(cpuTimeMs).c_str(), uid); in Calculate()
78 cpuTimeMap_.insert(std::pair<int32_t, int64_t>(uid, cpuTimeMs)); in Calculate()
[all …]
Duid_entity.cpp40 void UidEntity::UpdateUidMap(int32_t uid) in UpdateUidMap() argument
43 if (uid > StatsUtils::INVALID_VALUE) { in UpdateUidMap()
44 auto iter = uidPowerMap_.find(uid); in UpdateUidMap()
48 STATS_HILOGD(COMP_SVC, "Update %{public}d to uid power map", uid); in UpdateUidMap()
49 uidPowerMap_.insert(std::pair<int32_t, double>(uid, StatsUtils::DEFAULT_VALUE)); in UpdateUidMap()
64 double UidEntity::CalculateForConnectivity(int32_t uid) in CalculateForConnectivity() argument
72 bluetoothEntity->Calculate(uid); in CalculateForConnectivity()
73 power += bluetoothEntity->GetEntityPowerMah(uid); in CalculateForConnectivity()
74 …HILOGD(COMP_SVC, "Connectivity power consumption: %{public}lfmAh for uid: %{public}d", power, uid); in CalculateForConnectivity()
78 double UidEntity::CalculateForCommon(int32_t uid) in CalculateForCommon() argument
[all …]
Dalarm_entity.cpp33 int64_t AlarmEntity::GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid) in GetConsumptionCount() argument
37 auto almIter = alarmCounterMap_.find(uid); in GetConsumptionCount()
40 … STATS_HILOGD(COMP_SVC, "Get alarm count: %{public}" PRId64 " for uid: %{public}d", count, uid); in GetConsumptionCount()
42 … STATS_HILOGD(COMP_SVC, "No alarm count related to uid: %{public}d was found, return 0", uid); in GetConsumptionCount()
47 void AlarmEntity::Calculate(int32_t uid) in Calculate() argument
51 auto alarmOnCount = GetConsumptionCount(StatsUtils::STATS_TYPE_ALARM, uid); in Calculate()
53 auto iter = alarmPowerMap_.find(uid); in Calculate()
56 alarmOnAverageMa, uid); in Calculate()
60 alarmOnAverageMa, uid); in Calculate()
61 alarmPowerMap_.insert(std::pair<int32_t, double>(uid, alarmOnPowerMah)); in Calculate()
[all …]
Dgnss_entity.cpp33 int64_t GnssEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
40 auto iter = gnssTimerMap_.find(uid); in GetActiveTimeMs()
43 …HILOGD(COMP_SVC, "Get gnss on time: %{public}" PRId64 "ms for uid: %{public}d", activeTimeMs, uid); in GetActiveTimeMs()
46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs()
50 void GnssEntity::Calculate(int32_t uid) in Calculate() argument
54 auto gnssOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_GNSS_ON); in Calculate()
56 auto iter = gnssPowerMap_.find(uid); in Calculate()
59 gnssOnAverageMa, uid); in Calculate()
63 gnssOnAverageMa, uid); in Calculate()
64 gnssPowerMap_.insert(std::pair<int32_t, double>(uid, gnssOnPowerMah)); in Calculate()
[all …]
Dflashlight_entity.cpp33 int64_t FlashlightEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t lev… in GetActiveTimeMs() argument
40 auto iter = flashlightTimerMap_.find(uid); in GetActiveTimeMs()
43 …(COMP_SVC, "Get flashlight on time: %{public}" PRId64 "ms for uid: %{public}d", activeTimeMs, uid); in GetActiveTimeMs()
46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs()
50 void FlashlightEntity::Calculate(int32_t uid) in Calculate() argument
55 auto flashlightOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_FLASHLIGHT_ON); in Calculate()
57 auto iter = flashlightPowerMap_.find(uid); in Calculate()
60 flashlightOnAverageMa, uid); in Calculate()
64 flashlightOnAverageMa, uid); in Calculate()
65 flashlightPowerMap_.insert(std::pair<int32_t, double>(uid, flashlightOnPowerMah)); in Calculate()
[all …]
Dwakelock_entity.cpp33 int64_t WakelockEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
40 auto iter = wakelockTimerMap_.find(uid); in GetActiveTimeMs()
43 …GD(COMP_SVC, "Get wakelock on time: %{public}" PRId64 "ms for uid: %{public}d", activeTimeMs, uid); in GetActiveTimeMs()
46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs()
50 void WakelockEntity::Calculate(int32_t uid) in Calculate() argument
55 auto wakelockOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_WAKELOCK_HOLD); in Calculate()
57 auto iter = wakelockPowerMap_.find(uid); in Calculate()
60 wakelockOnPowerMah, uid); in Calculate()
64 wakelockOnPowerMah, uid); in Calculate()
65 wakelockPowerMap_.insert(std::pair<int32_t, double>(uid, wakelockOnPowerMah)); in Calculate()
[all …]
Daudio_entity.cpp33 int64_t AudioEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
38 auto iter = audioTimerMap_.find(uid); in GetActiveTimeMs()
42 activeTimeMs, uid); in GetActiveTimeMs()
45 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs()
54 void AudioEntity::Calculate(int32_t uid) in Calculate() argument
58 auto audioOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_AUDIO_ON); in Calculate()
60 auto iter = audioPowerMap_.find(uid); in Calculate()
63 audioOnAverageMa, uid); in Calculate()
67 audioOnPowerMah, uid); in Calculate()
68 audioPowerMap_.insert(std::pair<int32_t, double>(uid, audioOnPowerMah)); in Calculate()
[all …]
Dbluetooth_entity.cpp40 void BluetoothEntity::Calculate(int32_t uid) in Calculate() argument
42 if (uid > StatsUtils::INVALID_VALUE) { in Calculate()
44 CalculateBtPowerForApp(uid); in Calculate()
92 void BluetoothEntity::CalculateBtPowerForApp(int32_t uid) in CalculateBtPowerForApp() argument
98 auto bluetoothBrScanTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_BLUETOOTH_BR_SCAN); in CalculateBtPowerForApp()
100 UpdateAppBluetoothBlePower(POWER_TYPE_BR, uid, bluetoothBrScanPowerMah); in CalculateBtPowerForApp()
105 auto bluetoothBleScanTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_BLUETOOTH_BLE_SCAN); in CalculateBtPowerForApp()
107 UpdateAppBluetoothBlePower(POWER_TYPE_BLE, uid, bluetoothBleScanPowerMah); in CalculateBtPowerForApp()
110 UpdateAppBluetoothBlePower(POWER_TYPE_ALL, uid, bluetoothUidPowerMah); in CalculateBtPowerForApp()
123 uid); in CalculateBtPowerForApp()
[all …]
Dcamera_entity.cpp31 int64_t CameraEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
36 auto uidIter = cameraIter.second.find(uid); in GetActiveTimeMs()
41 uid, cameraIter.first.c_str()); in GetActiveTimeMs()
48 void CameraEntity::Calculate(int32_t uid) in Calculate() argument
52 auto cameraOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_CAMERA_ON); in Calculate()
54 auto iter = cameraPowerMap_.find(uid); in Calculate()
57 cameraOnAverageMa, uid); in Calculate()
61 cameraOnAverageMa, uid); in Calculate()
62 cameraPowerMap_.insert(std::pair<int32_t, double>(uid, cameraOnPowerMah)); in Calculate()
81 double CameraEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
[all …]
/base/request/request/services/src/manage/app_state/
Dmod.rs85 AppStateEvent::GetAppState(uid, tx) => { in run()
86 self.get_app_state(uid, tx); in run()
88 AppStateEvent::GetAppRawState(uid, tx) => { in run()
89 self.get_app_raw_state(uid, tx); in run()
91 AppStateEvent::RemoveAppState(uid) => { in run()
92 self.remove_app_state(uid); in run()
94 AppStateEvent::ChangeAppState(uid, state) => { in run()
95 self.change_app_state(uid, state); in run()
97 AppStateEvent::TriggerAppStateChange(uid, state) => { in run()
98 self.trigger_app_state_change(uid, state); in run()
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/
Dfaultlogger_service_ohos.cpp41 void FaultloggerServiceOhos::ClearQueryStub(int32_t uid) in ClearQueryStub() argument
44 queries_.erase(uid); in ClearQueryStub()
49 int32_t uid = IPCSkeleton::GetCallingUid(); in Dump() local
50 if ((uid != UID_SHELL) && (uid != UID_ROOT) && (uid != UID_HIDUMPER)) { in Dump()
51 dprintf(fd, "No permission for uid:%d.\n", uid); in Dump()
110 int32_t uid = IPCSkeleton::GetCallingUid(); in AddFaultLog() local
111 HIVIEW_LOGD("info.uid:%{public}d uid:%{public}d info.pid:%{public}d", info.uid, uid, info.pid); in AddFaultLog()
112 if (((uid != static_cast<int32_t>(getuid()))) && (uid != info.uid)) { in AddFaultLog()
113 HIVIEW_LOGW("Fail to add fault log, mismatch uid:%{public}d(%{public}d)", uid, info.uid); in AddFaultLog()
119 outInfo.id = info.uid; in AddFaultLog()
[all …]
/base/request/request/services/src/manage/events/
Dmod.rs59 pub(crate) fn pause(uid: u64, task_id: u32) -> (Self, Recv<ErrorCode>) { in pause()
62 Self::Service(ServiceEvent::Pause(uid, task_id, tx)), in pause()
75 pub(crate) fn query_mime_type(uid: u64, task_id: u32) -> (Self, Recv<String>) { in query_mime_type()
78 Self::Service(ServiceEvent::QueryMimeType(uid, task_id, tx)), in query_mime_type()
83 pub(crate) fn start(uid: u64, task_id: u32) -> (Self, Recv<ErrorCode>) { in start()
86 Self::Service(ServiceEvent::Start(uid, task_id, tx)), in start()
91 pub(crate) fn stop(uid: u64, task_id: u32) -> (Self, Recv<ErrorCode>) { in stop()
94 Self::Service(ServiceEvent::Stop(uid, task_id, tx)), in stop()
99 pub(crate) fn show(uid: u64, task_id: u32) -> (Self, Recv<Option<TaskInfo>>) { in show()
102 Self::Service(ServiceEvent::Show(uid, task_id, tx)), in show()
[all …]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Denabled_notification_callback_data_test.cpp44 uid_t uid = 10; variable
46 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable);
60 uid_t uid = 10; variable
62 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable);
63 rrc->SetUid(uid);
64 EXPECT_EQ(rrc->GetUid(), uid);
76 uid_t uid = 10; variable
78 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable);
92 uid_t uid = 10; variable
95 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable);
[all …]
Dnotification_bundle_option_test.cpp45 int32_t uid = 10; variable
46 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid);
60 int32_t uid = 10; variable
62 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid);
76 int32_t uid = 10; variable
77 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid);
92 int32_t uid = 10; variable
93 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid);
108 int32_t uid = 10; variable
110 std::make_shared<NotificationBundleOption>(bundleName, uid);
[all …]
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_audio_test.cpp62 int32_t uid = 10003; variable
68 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateRunning);
71 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateStopped);
73 double powerMahBefore = statsClient.GetAppStatsMah(uid);
75 double powerMahAfter = statsClient.GetAppStatsMah(uid);
92 int32_t uid = 10003; variable
98 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateRunning);
101 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateStopped);
104 double actualPower = statsClient.GetAppStatsMah(uid);
121 int32_t uid = 10003; variable
[all …]
Dstats_bluetooth_test.cpp30 static void WriteBluetoothEvent(int32_t pid, int32_t uid, long time) in WriteBluetoothEvent() argument
38 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent()
41 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent()
44 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid); in WriteBluetoothEvent()
47 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid); in WriteBluetoothEvent()
50 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent()
53 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent()
56 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateScanOn); in WriteBluetoothEvent()
59 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateScanOff); in WriteBluetoothEvent()
97 int32_t uid = 10003; variable
[all …]
Dstats_camera_test.cpp63 int32_t uid = 10003; variable
68 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "ID", cameraId);
73 double powerMahBefore = statsClient.GetAppStatsMah(uid);
75 double powerMahAfter = statsClient.GetAppStatsMah(uid);
92 int32_t uid = 10003; variable
97 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "ID", cameraId);
103 double actualPower = statsClient.GetAppStatsMah(uid);
120 int32_t uid = 10003; variable
127 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "ID", deviceId);
131 double actualPercent = statsClient.GetAppStatsPercent(uid);
[all …]
/base/powermgr/battery_statistics/services/native/include/entities/
Duid_entity.h31 void Calculate(int32_t uid = StatsUtils::INVALID_VALUE) override;
33 … double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE)
35 void UpdateUidMap(int32_t uid) override;
38 void DumpInfo(std::string& result, int32_t uid = StatsUtils::INVALID_VALUE) override;
42 void AddtoStatsList(int32_t uid, double power);
43 double GetPowerForCommon(StatsUtils::StatsType statsType, int32_t uid);
44 double GetPowerForConnectivity(StatsUtils::StatsType statsType, int32_t uid);
45 void DumpForBluetooth(int32_t uid, std::string& result);
46 void DumpForCommon(int32_t uid, std::string& result);
47 double CalculateForConnectivity(int32_t uid);
[all …]
/base/request/request/services/src/manage/scheduler/
Dmod.rs95 pub(crate) async fn start_task(&mut self, uid: u64, task_id: u32) -> ErrorCode { in start_task()
97 if let Some(task) = database.get_task_qos_info(uid, task_id) { in start_task()
100 let app_state = self.app_state_manager.get_app_state(uid).await; in start_task()
109 let changes = self.qos.start_task(uid, raw_state, task); in start_task()
114 self.qos.apps.insert_task(uid, raw_state, task); in start_task()
117 uid, in start_task()
121 self.qos.apps.remove_task(uid, task_id); in start_task()
132 uid: u64, in resume_task()
137 if let Some(task) = database.get_task_qos_info(uid, task_id) { in resume_task()
139 let app_state = app_state_manager.get_app_raw_state(uid).await; in resume_task()
[all …]
/base/powermgr/battery_statistics/services/native/src/
Dcpu_time_reader.cpp42 int64_t CpuTimeReader::GetUidCpuActiveTimeMs(int32_t uid) in GetUidCpuActiveTimeMs() argument
45 auto iter = activeTimeMap_.find(uid); in GetUidCpuActiveTimeMs()
49 std::to_string(cpuActiveTime).c_str(), uid); in GetUidCpuActiveTimeMs()
51 STATS_HILOGD(COMP_SVC, "No cpu active time found for uid: %{public}d, return 0", uid); in GetUidCpuActiveTimeMs()
56 void CpuTimeReader::DumpInfo(std::string& result, int32_t uid) in DumpInfo() argument
58 auto uidIter = lastUidTimeMap_.find(uid); in DumpInfo()
60 STATS_HILOGE(COMP_SVC, "No related CPU info for uid: %{public}d", uid); in DumpInfo()
64 auto freqIter = lastFreqTimeMap_.find(uid); in DumpInfo()
83 int64_t CpuTimeReader::GetUidCpuClusterTimeMs(int32_t uid, uint32_t cluster) in GetUidCpuClusterTimeMs() argument
86 auto iter = clusterTimeMap_.find(uid); in GetUidCpuClusterTimeMs()
[all …]
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_powermgr_test.cpp89 int32_t uid = 10003; variable
94 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOn);
98 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOff);
101 …ctualTime = g_statsServiceProxy->GetTotalTimeSecond(StatsUtils::STATS_TYPE_SENSOR_GRAVITY_ON, uid);
120 int32_t uid = 10003; variable
127 pid, "UID", uid, "STATE", stateOn);
131 pid, "UID", uid, "STATE", stateOff);
134 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid);
153 int32_t uid = 10003; variable
162 pid, "UID", uid, "STATE", stateOn);
[all …]
Dstats_service_audio_test.cpp84 int32_t uid = 10003; variable
91 "UID", uid, "STATE", stateRunning);
95 "UID", uid, "STATE", stateStopped);
97 double powerMahBefore = g_statsServiceProxy->GetAppStatsMah(uid);
99 double powerMahAfter = g_statsServiceProxy->GetAppStatsMah(uid);
118 int32_t uid = 10003; variable
125 "UID", uid, "STATE", stateRunning);
129 "UID", uid, "STATE", stateStopped);
132 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid);
151 int32_t uid = 10003; variable
[all …]
/base/security/huks/services/huks_standard/huks_service/main/upgrade/file_transfer/src/
Dhks_config_parser.c36 static int32_t ParseOwnerIdFromParamSet(const struct HksParamSet *paramSet, uint32_t *uid, uint64_t… in ParseOwnerIdFromParamSet() argument
51 *uid = *(uint32_t *)paramSet->params[i].blob.data; in ParseOwnerIdFromParamSet()
78 static int32_t ParseOwnerIdFromFileContent(const struct HksBlob *fileContent, uint32_t *uid, uint64… in ParseOwnerIdFromFileContent() argument
85 ret = ParseOwnerIdFromParamSet(tmpParamSet, uid, accessTokenId, userId); in ParseOwnerIdFromFileContent()
97 static int32_t MatchSaConfig(uint32_t uid, uint32_t userId, struct HksUpgradeFileTransferInfo *info) in MatchSaConfig() argument
101 if (uid == SA_SKIP_UPGRADE_CFG_LIST[i]) { in MatchSaConfig()
102 HKS_LOG_I("%" LOG_PUBLIC "u needs skip transfer upgrade.", uid); in MatchSaConfig()
109 if (SA_UPGRADE_CFG_LIST[i].uid == uid) { in MatchSaConfig()
117 info->uid = uid; in MatchSaConfig()
122 static int32_t MatchHapConfig(uint32_t uid, uint32_t userId, uint64_t accessTokenId, in MatchHapConfig() argument
[all …]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
Dapp_state_observer.cpp47 …ABEL, "uninstall dlp sandbox %{public}s, uid: %{public}d", sandboxBundleName.c_str(), appInfo.uid); in UninstallDlpSandbox()
124 bool AppStateObserver::GetSandboxInfo(int32_t uid, DlpSandboxInfo& appInfo) in GetSandboxInfo() argument
127 auto iter = sandboxInfo_.find(uid); in GetSandboxInfo()
146 void AppStateObserver::EraseSandboxInfo(int32_t uid) in EraseSandboxInfo() argument
149 auto iter = sandboxInfo_.find(uid); in EraseSandboxInfo()
153 iter->second.uid); in EraseSandboxInfo()
162 if (sandboxInfo_.count(appInfo.uid) > 0) { in AddSandboxInfo()
165 sandboxInfo_[appInfo.uid] = appInfo; in AddSandboxInfo()
167 appInfo.uid); in AddSandboxInfo()
175 if (GetUserIdFromUid(appInfo.uid, &userId) != 0) { in AddDlpSandboxInfo()
[all …]

12345678910>>...36