/foundation/communication/netmanager_base/services/netsyscontroller/include/ |
H A D | i_netsys_controller_service.h | 60 * @param uid App's uid which need to be disallowed ot allowed to create AF_INET or AF_INET6 socket 64 virtual int32_t SetInternetPermission(uint32_t uid, uint8_t allow) = 0; 346 * @param uid app id. 349 virtual int64_t GetUidRxBytes(uint32_t uid) = 0; 354 * @param uid app id. 357 virtual int64_t GetUidTxBytes(uint32_t uid) = 0; 362 * @param uid app id. 366 virtual int64_t GetUidOnIfaceRxBytes(uint32_t uid, const std::string &interfaceName) = 0; 371 * @param uid ap [all...] |
H A D | netsys_controller.h | 38 * @param uid App's uid which need to be disallowed ot allowed to create AF_INET or AF_INET6 socket 42 int32_t SetInternetPermission(uint32_t uid, uint8_t allow); 334 * @param uid app id. 337 int64_t GetUidRxBytes(uint32_t uid); 342 * @param uid app id. 345 int64_t GetUidTxBytes(uint32_t uid); 350 * @param uid app id. 354 int64_t GetUidOnIfaceRxBytes(uint32_t uid, const std::string &interfaceName); 359 * @param uid ap [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/ |
H A D | ut_net_policy_service.cpp | 66 uint32_t uid = 10000; in HWTEST_F() local 68 int32_t ret = instance_->SetPolicyByUid(uid, policy); in HWTEST_F() 79 uint32_t uid = 20000; in HWTEST_F() local 81 int32_t ret = instance_->GetPolicyByUid(uid, policy); in HWTEST_F() 92 uint32_t uid = 10000; in HWTEST_F() local 95 int32_t ret = instance_->IsUidNetAllowed(uid, policy, isAllowed); in HWTEST_F() 106 uint32_t uid = 10000; in HWTEST_F() local 109 int32_t ret = instance_->IsUidNetAllowed(uid, ifaceName, isAllowed); in HWTEST_F() 168 uint32_t uid = 20000; in HWTEST_F() local 170 int32_t ret = instance_->GetBackgroundPolicyByUid(uid, backgroundPolicyOfUi in HWTEST_F() 349 int32_t uid = 666; HWTEST_F() local 379 int32_t uid = 666; HWTEST_F() local [all...] |
/foundation/multimedia/av_session/services/session/server/test/fuzztest/bkgraudiocontroller_fuzzer/ |
H A D | bkgraudiocontroller_fuzzer.cpp | 32 int32_t uid = *(reinterpret_cast<const int32_t*>(data));
in BackGroundAudioControllerTest_01() local 36 backGroundAudioController.HandleAppMuteState(uid, pid, true);
in BackGroundAudioControllerTest_01() 44 int32_t uid = *(reinterpret_cast<const int32_t*>(data));
in BackGroundAudioControllerTest_02() local 48 backGroundAudioController.HandleAppMuteState(uid, pid, false);
in BackGroundAudioControllerTest_02()
|
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/ |
H A D | mock_ipc_skeleton.cpp | 57 int32_t uid = DebugGetUidByBundleName("com.ohos.launcher", DEFAULT_UID); in GetCallingUid() local 58 if (uid == -1) { in GetCallingUid() 59 uid = DebugGetUidByBundleName("com.ohos.sceneboard", DEFAULT_UID); in GetCallingUid() 61 return uid; in GetCallingUid()
|
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | scheduler_bg_task_subscriber.cpp | 33 int32_t uid = resourceInfo->GetUid(); in OnProcEfficiencyResourcesApply() local 34 DelayedSingleton<WorkSchedulerService>::GetInstance()->UpdateEffiResApplyInfo(uid, true); in OnProcEfficiencyResourcesApply() 45 int32_t uid = resourceInfo->GetUid(); in OnProcEfficiencyResourcesReset() local 46 DelayedSingleton<WorkSchedulerService>::GetInstance()->UpdateEffiResApplyInfo(uid, false); in OnProcEfficiencyResourcesReset()
|
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/ |
H A D | rpc_authunix_create.c | 61 uid_t uid; in main() local 66 uid = geteuid(); in main() 71 fprintf(stderr, "getgroups() failed for %d\n", uid); in main() 81 authUnx = authunix_create(hostname, uid, gid, num_groups, aup_gids); in main()
|
/foundation/ability/form_fwk/test/fuzztest/formsyseventreceiver_fuzzer/ |
H A D | formsyseventreceiver_fuzzer.cpp | 62 int uid = static_cast<int>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 63 FormEventUtil::HandleFormHostDataCleared(uid); in DoSomethingInterestingWithMyAPI() 72 FormEventUtil::ClearFormDBRecordData(uid, removedFormsMap); in DoSomethingInterestingWithMyAPI() 73 FormEventUtil::ClearTempFormRecordData(uid, removedFormsMap); in DoSomethingInterestingWithMyAPI() 80 FormEventUtil::BatchDeleteNoHostDBForms(uid, noHostFormDbMap, removedFormsMap); in DoSomethingInterestingWithMyAPI() 81 FormEventUtil::BatchDeleteNoHostTempForms(uid, noHostFormDbMap, removedFormsMap); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/test/mock/frameworks_kits_ability_native_test/include/ |
H A D | mock_bundle_manager_form.h | 53 ErrCode GetNameForUid(const int uid, std::string& bundleName) override 59 bool CheckIsSystemAppByUid(const int uid) override 61 if (uid == USER_ID_U600) { 98 ErrCode GetNameForUid(const int uid, std::string& bundleName) override 103 bool CheckIsSystemAppByUid(const int uid) override 105 if (uid == USER_ID_U600) {
|
/foundation/graphic/graphic_3d/lume/LumeFont/src/ |
H A D | font.cpp | 100 const CORE_NS::IInterface* Font::GetInterface(const BASE_NS::Uid& uid) const in GetInterface() 102 if (uid == CORE_NS::IInterface::UID) { in GetInterface() 105 if (uid == IFont::UID) { in GetInterface() 111 CORE_NS::IInterface* Font::GetInterface(const BASE_NS::Uid& uid) in GetInterface() argument 113 if (uid == CORE_NS::IInterface::UID) { in GetInterface() 116 if (uid == IFont::UID) { in GetInterface()
|
/foundation/multimedia/camera_framework/services/camera_service/src/adapter/ |
H A D | bms_adapter.cpp | 81 std::string BmsAdapter::GetBundleName(int uid) in GetBundleName() argument 84 if (cacheMap.Get(uid, bundleName)) { in GetBundleName() 85 MEDIA_DEBUG_LOG("GetBundleName by cache, uid: %{public}d bundleName is %{public}s", uid, bundleName.c_str()); in GetBundleName() 90 auto result = bms->GetNameForUid(uid, bundleName); in GetBundleName() 92 MEDIA_INFO_LOG("GetBundleName by GetNameForUid, uid: %{public}d bundleName is %{public}s", uid, bundleName.c_str()); in GetBundleName() 93 cacheMap.Put(uid, bundleName); in GetBundleName()
|
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/src/ |
H A D | background_task_mgr_helper.cpp | 64 ErrCode BackgroundTaskMgrHelper::PauseTransientTaskTimeForInner(int32_t uid) in PauseTransientTaskTimeForInner() argument 66 return DelayedSingleton<BackgroundTaskManager>::GetInstance()->PauseTransientTaskTimeForInner(uid); in PauseTransientTaskTimeForInner() 69 ErrCode BackgroundTaskMgrHelper::StartTransientTaskTimeForInner(int32_t uid) in StartTransientTaskTimeForInner() argument 71 return DelayedSingleton<BackgroundTaskManager>::GetInstance()->StartTransientTaskTimeForInner(uid); in StartTransientTaskTimeForInner() 95 ErrCode BackgroundTaskMgrHelper::StopContinuousTask(int32_t uid, int32_t pid, uint32_t taskType, const std::string &key) in StopContinuousTask() argument 97 return DelayedSingleton<BackgroundTaskManager>::GetInstance()->StopContinuousTask(uid, pid, taskType, key); in StopContinuousTask()
|
/foundation/resourceschedule/background_task_mgr/services/common/src/ |
H A D | system_event_observer.cpp | 94 int32_t uid = want.GetIntParam(AppExecFwk::Constants::UID, -1);
in OnReceiveEventContinuousTask() local 95 BGTASK_LOGI("get common event action = %{public}s, bundleName = %{public}s, uid = %{public}d",
in OnReceiveEventContinuousTask() 96 action.c_str(), bundleName.c_str(), uid);
in OnReceiveEventContinuousTask() 97 auto task = [bgContinuousTaskMgr, action, bundleName, uid]() {
in OnReceiveEventContinuousTask() 98 bgContinuousTaskMgr->OnBundleInfoChanged(action, bundleName, uid);
in OnReceiveEventContinuousTask() 108 int32_t uid = want.GetIntParam(AppExecFwk::Constants::UID, -1);
in OnReceiveEventEfficiencyRes() local 110 DelayedSingleton<BgEfficiencyResourcesMgr>::GetInstance()->RemoveAppRecord(uid, bundleName, true);
in OnReceiveEventEfficiencyRes()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_priority_manager/ |
H A D | process_priority_info.cpp | 93 void ProcessPriorityInfo::ProcBindToMe(int32_t pid, int32_t uid) in ProcBindToMe() argument 95 procsBindToMe_[pid] = uid; in ProcBindToMe() 96 HILOGE("insert process[pid=%{public}d, uid=%{public}d] to procsBindToMe_, map size = %{public}zu", in ProcBindToMe() 97 pid, uid, procsBindToMe_.size()); in ProcBindToMe() 107 void ProcessPriorityInfo::ProcBindFromMe(int32_t pid, int32_t uid) in ProcBindFromMe() argument 109 procsBindFromMe_[pid] = uid; in ProcBindFromMe() 110 HILOGE("insert process[pid=%{public}d, uid=%{public}d] to procsBindFromMe_, map size = %{public}zu", in ProcBindFromMe() 111 pid, uid, procsBindFromMe_.size()); in ProcBindFromMe() 126 ss << "(pid=" << pair.first << ", uid=" << pair.second << ") "; in ProcsBindToMe() 137 ss << "(pid=" << pair.first << ", uid in ProcsBindFromMe() [all...] |
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/ |
H A D | bundle_active_user_history.h | 44 const int32_t userId, const int64_t bootBasedTimeStamp, const bool create, const int32_t uid); 49 int64_t bootBasedTimeStamp, bool create, const int32_t uid); 54 const int64_t timeUntilNextCheck, const int32_t userId, const int32_t uid); 55 int32_t SetAppGroup(const std::string& bundleName, const int32_t userId, const int32_t uid, 58 const std::vector<int64_t> screenTimeLeve, const std::vector<int64_t> bootFromTimeLevel, const int32_t uid); 64 void OnBundleUninstalled(const int32_t userId, const std::string bundleName, const int32_t uid,
|
/foundation/resourceschedule/memmgr/interface/innerkits/src/ |
H A D | app_state_subscriber.cpp | 45 void AppStateSubscriber::OnAppStateChanged(int32_t pid, int32_t uid, int32_t state) {}
in OnAppStateChanged() argument 49 void AppStateSubscriber::ForceReclaim(int32_t pid, int32_t uid) {}
in ForceReclaim() argument 93 void AppStateSubscriber::AppStateSubscriberImpl::OnAppStateChanged(int32_t pid, int32_t uid, int32_t state)
in OnAppStateChanged() argument 101 subscriber_.OnAppStateChanged(pid, uid, state);
in OnAppStateChanged() 104 void AppStateSubscriber::AppStateSubscriberImpl::ForceReclaim(int32_t pid, int32_t uid)
in ForceReclaim() argument 112 subscriber_.ForceReclaim(pid, uid);
in ForceReclaim()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/include/purgeable_mem_manager/ |
H A D | purgeable_mem_manager.h | 54 void RegisterActiveApps(int32_t pid, int32_t uid);
55 void DeregisterActiveApps(int32_t pid, int32_t uid);
56 void ChangeAppState(int32_t pid, int32_t uid, int32_t state);
83 void RegisterActiveAppsInner(int32_t pid, int32_t uid);
84 void DeregisterActiveAppsInner(int32_t pid, int32_t uid);
88 void ChangeAppStateInner(int32_t pid, int32_t uid, int32_t state);
|
/foundation/resourceschedule/ffrt/src/eu/ |
H A D | qos_interface.h | 34 unsigned int uid; member 192 int FFRTAuthEnable(unsigned int uid, unsigned int uaFlag, unsigned int status); 193 int FFRTAuthPause(unsigned int uid); 194 int FFRTAuthDelete(unsigned int uid); 195 int FFRTAuthGet(unsigned int uid, unsigned int *uaFlag, unsigned int *status); 196 int FFRTAuthSwitch(unsigned int uid, unsigned int rtgFlag, unsigned int qosFlag, unsigned int status);
|
/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
H A D | net_stats_history.cpp | 33 int32_t NetStatsHistory::GetHistory(std::vector<NetStatsInfo> &recv, uint32_t uid, uint64_t start, uint64_t end) in GetHistory() argument 40 return handler->ReadStatsData(recv, uid, start, end); in GetHistory() 54 int32_t NetStatsHistory::GetHistory(std::vector<NetStatsInfo> &recv, const std::string &iface, uint32_t uid, in GetHistory() argument 62 return handler->ReadStatsData(recv, iface, uid, start, end); in GetHistory() 76 int32_t NetStatsHistory::GetHistory(std::vector<NetStatsInfo> &recv, uint32_t uid, const std::string &ident, in GetHistory() argument 84 return handler->ReadStatsData(recv, uid, ident, start, end); in GetHistory()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/test/moduletest/ |
H A D | distributeddata_account_event_test.cpp | 42 static void ChangeUser(int uid); 117 void DistributedDataAccountEventTest::ChangeUser(int uid) in ChangeUser() argument 119 if (setgid(uid)) { in ChangeUser() 120 std::cout << "error to set gid " << uid << "errno is " << errno << std::endl; in ChangeUser() 123 if (setuid(uid)) { in ChangeUser() 124 std::cout << "error to set uid " << uid << "errno is " << errno << std::endl; in ChangeUser()
|
/third_party/ltp/lib/ |
H A D | tst_pid.c | 72 static int read_session_pids_limit(const char *path_fmt, int uid, in read_session_pids_limit() argument 79 ret = snprintf(path, sizeof(path), path_fmt, uid); in read_session_pids_limit() 102 int max_pids, uid; in get_session_pids_limit() local 104 uid = get_session_uid(); in get_session_pids_limit() 105 max_pids = read_session_pids_limit(CGROUPS_V2_SLICE_FMT, uid, cleanup_fn); in get_session_pids_limit() 107 max_pids = read_session_pids_limit(CGROUPS_V1_SLICE_FMT, uid, in get_session_pids_limit()
|
/third_party/musl/src/passwd/ |
H A D | getpw_a.c | 20 int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct passwd **res) in __getpw_a() argument 38 || !name && (*res)->pw_uid == uid) in __getpw_a() 53 /* uid outside of this range can't be queried with the in __getpw_a() 58 if(uid < 0 || uid > UINT32_MAX) { in __getpw_a() 62 key = itoa(uidbuf, uid); in __getpw_a() 126 || !name && uid != pw->pw_uid) { in __getpw_a()
|
/third_party/ltp/testcases/kernel/syscalls/fchown/ |
H A D | fchown02.c | 49 uid_t uid; in run() local 52 UID16_CHECK((uid = geteuid()), "fchown"); in run() 57 TST_EXP_PASS(FCHOWN(*tc[i].fd, uid, gid), in run() 58 "fchown(%i, %i, %i)", *tc[i].fd, uid, gid); in run() 62 if (stat_buf.st_uid != uid || stat_buf.st_gid != gid) in run() 63 tst_res(TFAIL, "%s: owner set to (uid=%d, gid=%d), expected (uid=%d, gid=%d)", in run() 64 tc[i].filename, stat_buf.st_uid, stat_buf.st_gid, uid, gid); in run()
|
/foundation/communication/ipc/ipc/native/test/fuzztest/core/ipcprocessskeleton_fuzzer/ |
H A D | ipcprocessskeleton_fuzzer.cpp | 30 uint32_t uid; in AttachToDetachAppInfoToStubIndexTest001() local 35 if (!GenerateUint32(pid) || !GenerateUint32(uid) || !GenerateUint32(tokenId) || !GenerateInt32(listenFd) || in AttachToDetachAppInfoToStubIndexTest001() 43 current->AttachAppInfoToStubIndex(pid, uid, tokenId, deviceId, stubIndex, listenFd); in AttachToDetachAppInfoToStubIndexTest001() 44 current->QueryAppInfoToStubIndex(pid, uid, tokenId, deviceId, stubIndex, listenFd); in AttachToDetachAppInfoToStubIndexTest001() 46 current->AttachAppInfoToStubIndex(pid, uid, tokenId, deviceId, stubIndex, listenFd); in AttachToDetachAppInfoToStubIndexTest001() 47 current->DetachAppInfoToStubIndex(pid, uid, tokenId, deviceId, stubIndex, listenFd); in AttachToDetachAppInfoToStubIndexTest001() 54 uint32_t uid; in AttachToDetachAppInfoToStubIndexTest002() local 58 if (!GenerateUint32(pid) || !GenerateUint32(uid) || !GenerateUint32(tokenId) || !GenerateInt32(listenFd) || in AttachToDetachAppInfoToStubIndexTest002() 66 current->AttachAppInfoToStubIndex(pid, uid, tokenId, deviceId, listenFd); in AttachToDetachAppInfoToStubIndexTest002() 68 current->AttachAppInfoToStubIndex(pid, uid, tokenI in AttachToDetachAppInfoToStubIndexTest002() 824 int uid; DetachCommAuthInfoBySocketIdTest() local 849 int uid; DetachCommAuthInfoByStubTest() local 871 int uid; DetachCommAuthInfoTest() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | alloc.c | 215 u32 uid; member 263 zone->uid = zone_alloc->last_uid++; in mlx4_zone_add_one() 279 *puid = zone->uid; in mlx4_zone_add_one() 339 u32 uid = 0; in __mlx4_alloc_from_zone() local 349 uid = zone->uid; in __mlx4_alloc_from_zone() 366 uid = it->uid; in __mlx4_alloc_from_zone() 386 uid = it->uid; in __mlx4_alloc_from_zone() 425 __mlx4_find_zone_by_uid( struct mlx4_zone_allocator *zones, u32 uid) __mlx4_find_zone_by_uid() argument 438 mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_get_bitmap() argument 454 mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_remove_one() argument 508 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, int align, u32 skip_mask, u32 *puid) mlx4_zone_alloc_entries() argument 529 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, u32 uid, u32 obj, u32 count) mlx4_zone_free_entries() argument [all...] |