/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_test.cpp | 338 int32_t uid = 0; in HWTEST_F() local 339 ASSERT_EQ((int)advancedNotificationService_->RemoveSystemLiveViewNotificationsOfSa(uid), in HWTEST_F() 1291 * @tc.desc : Test CancelAsBundle function when uid is less than 0. 2234 * @tc.desc : Test PrepareNotificationRequest function when uid < 0. 2690 const int32_t uid = 0; in HWTEST_F() local 2695 ASSERT_EQ(advancedNotificationService_->GetTargetRecordList(uid, slotType, contentType, recordList), in HWTEST_F() 2710 const int32_t uid = 0; in HWTEST_F() local 2720 request->SetCreatorUid(uid); in HWTEST_F() 2728 ASSERT_EQ(advancedNotificationService_->GetTargetRecordList(uid, slotType, contentType, recordList), in HWTEST_F() 2789 int32_t uid in HWTEST_F() local 2804 int32_t uid = 0; HWTEST_F() local 2835 int32_t uid = 0; HWTEST_F() local 2937 int32_t uid = 10; HWTEST_F() local 2966 int32_t uid = 11; HWTEST_F() local [all...] |
/foundation/multimodalinput/input/service/module_loader/src/ |
H A D | mmi_service.cpp | 1003 int32_t uid = GetCallingUid(); in AllocSocketFd() local 1007 [this, &programName, moduleType, uid, pid, &serverFd, &toReturnClientFd, &tokenType] { in AllocSocketFd() 1008 return this->AddSocketPairInfo(programName, moduleType, uid, pid, serverFd, toReturnClientFd, tokenType); in AllocSocketFd() 1013 .uid = uid, in AllocSocketFd() 1201 int32_t MMIService::SetNapStatus(int32_t pid, int32_t uid, std::string bundleName, int32_t napStatus) in SetNapStatus() argument 1209 NapProcess::GetInstance()->SetNapStatus(pid, uid, bundleName, napStatus); in SetNapStatus() 1895 napData.uid = GetCallingUid(); in ObserverAddInputHandler() 1900 MMI_HILOGD("AddInputHandler info to observer : pid:%{public}d, uid:%d, bundleName:%{public}s", in ObserverAddInputHandler() 1901 napData.pid, napData.uid, napDat in ObserverAddInputHandler() [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/ |
H A D | audio_policy_service.cpp | 530 audioRendererFilter->uid = -1; in HandleRecoveryPreferredDevices() 537 audioCapturerFilter->uid = -1; in HandleRecoveryPreferredDevices() 1089 int32_t AudioPolicyService::SetSourceOutputStreamMute(int32_t uid, bool setMute) const in SetSourceOutputStreamMute() argument 1091 int32_t status = audioPolicyManager_.SetSourceOutputStreamMute(uid, setMute); in SetSourceOutputStreamMute() 1093 streamCollector_.UpdateCapturerInfoMuteStatus(uid, setMute); in SetSourceOutputStreamMute() 1119 value << "uid:[" << sinkInput.uid << "] "; in PrintSinkInput() 1132 value << "uid:[" << sourceOutput.uid << "] "; in PrintSourceOutput() 1145 std::string AudioPolicyService::GetSelectedDeviceInfo(int32_t uid, int32_ argument 1735 auto uid = IPCSkeleton::GetCallingUid(); WriteSelectInputSysEvents() local 5738 RegisteredTrackerClientDied(pid_t uid) RegisteredTrackerClientDied() argument 6695 RemoveDeviceForUid(int32_t uid) RemoveDeviceForUid() argument 7320 BluetoothServiceCrashedCallback(pid_t pid, pid_t uid) BluetoothServiceCrashedCallback() argument 7590 RemoveAudioCapturerMicrophoneDescriptor(int32_t uid) RemoveAudioCapturerMicrophoneDescriptor() argument 8316 GetAndSaveClientType(uint32_t uid, const std::string &bundleName) GetAndSaveClientType() argument 9876 IsAllowedPlayback(const int32_t &uid, const int32_t &pid) IsAllowedPlayback() argument 9896 UpdateDefaultOutputDeviceWhenStopping(int32_t uid) UpdateDefaultOutputDeviceWhenStopping() argument [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/ |
H A D | bundle_mgr_proxy.cpp | 656 APP_LOGD("begin to get uid of %{public}s, userId : %{public}d, appIndex : %{public}d", bundleName.c_str(), in GetUidByBundleName() 669 APP_LOGE("failed to GetUidByBundleName due to write uid fail"); in GetUidByBundleName() 673 APP_LOGE("failed to GetUidByBundleName due to write uid fail"); in GetUidByBundleName() 682 int32_t uid = reply.ReadInt32(); in GetUidByBundleName() local 683 APP_LOGD("uid is %{public}d", uid); in GetUidByBundleName() 684 return uid; in GetUidByBundleName() 694 APP_LOGD("begin to get uid of %{public}s, userId : %{public}d", bundleName.c_str(), userId); in GetUidByDebugBundleName() 706 APP_LOGE("failed to GetUidByBundleName due to write uid fail"); in GetUidByDebugBundleName() 715 int32_t uid in GetUidByDebugBundleName() local 753 GetBundleNameForUid(const int uid, std::string &bundleName) GetBundleNameForUid() argument 782 GetBundlesForUid(const int uid, std::vector<std::string> &bundleNames) GetBundlesForUid() argument 812 GetNameForUid(const int uid, std::string &name) GetNameForUid() argument 839 GetNameAndIndexForUid(const int32_t uid, std::string &bundleName, int32_t &appIndex) GetNameAndIndexForUid() argument 897 GetBundleGidsByUid(const std::string &bundleName, const int &uid, std::vector<int> &gids) GetBundleGidsByUid() argument 960 CheckIsSystemAppByUid(const int uid) CheckIsSystemAppByUid() argument [all...] |
/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | hcapture_session.cpp | 1565 infoDumper.Msg("Client pid:[" + std::to_string(pid_)+ "] Client uid:[" + std::to_string(uid_) + "]"); in DumpSessionInfo() 1736 int uid = IPCSkeleton::GetCallingUid(); in CreateMediaLibrary() local 1737 CHECK_ERROR_PRINT_LOG(uid <= INVALID_UID, "Get INVALID_UID UID %{public}d", uid); in CreateMediaLibrary() 1738 int32_t userId = uid / BASE_USER_RANGE; in CreateMediaLibrary() 1739 MEDIA_DEBUG_LOG("get uid:%{public}d, userId:%{public}d", uid, userId); in CreateMediaLibrary() 1756 auto photoAssetProxy = mediaLibraryManager->CreatePhotoAssetProxy(type, uid, userId); in CreateMediaLibrary() 1847 int uid = IPCSkeleton::GetCallingUid(); in CreateMediaLibrary() local 1848 if (uid < in CreateMediaLibrary() [all...] |
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | inode.c | 301 kuid_t uid = make_kuid(&init_user_ns, id); local 302 if (uid_valid(uid)) 303 fattr->cf_uid = uid; 646 fattr->cf_uid = cifs_sb->mnt_uid; /* TODO: map uid and gid from SID */ 1757 args.uid = current_fsuid(); 1763 args.uid = INVALID_UID; /* no change */ 1824 * need to set uid/gid. 2428 stat->uid = current_fsuid(); 2665 args->uid = attrs->ia_uid; 2667 args->uid 2739 kuid_t uid = INVALID_UID; global() local [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_ipv4.c | 803 arg.uid = sock_net_uid(net, sk && sk_fullsock(sk) ? sk : NULL); in tcp_v4_send_reset() 907 arg.uid = sock_net_uid(net, sk_fullsock(sk) ? sk : NULL); in tcp_v4_send_ack() 2676 "rx_queue tr tm->when retrnsmt uid timeout " in tcp4_seq_show() 2697 uid_t uid __aligned(8); 2701 struct sock_common *sk_common, uid_t uid) in tcp_prog_seq_show() 2708 ctx.uid = uid; in tcp_prog_seq_show() 2717 uid_t uid; in bpf_iter_tcp_seq_show() local 2723 uid = 0; in bpf_iter_tcp_seq_show() 2727 uid in bpf_iter_tcp_seq_show() 2700 tcp_prog_seq_show(struct bpf_prog *prog, struct bpf_iter_meta *meta, struct sock_common *sk_common, uid_t uid) tcp_prog_seq_show() argument [all...] |
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | reminder_store_strategy.cpp | 117 int32_t uid = 0; in RecoverIdFromOldVersion() local 118 ReminderStrategy::GetRdbValue<int32_t>(resultSet, ReminderTable::UID, uid); in RecoverIdFromOldVersion() 119 reminder->InitUid(uid); in RecoverIdFromOldVersion() 266 int32_t uid = 0; in RecoverIdFromDb() local 267 ReminderStrategy::GetRdbValue<int32_t>(resultSet, ReminderBaseTable::UID, uid); in RecoverIdFromDb() 268 reminder->InitUid(uid); in RecoverIdFromDb()
|
/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 241 APPSPAWN_CHECK(info->uid == g_testHelper.GetTestUid(), break, "Invalid uid %{public}d", info->uid); in HWTEST_F() 245 break, "Invalid uid %{public}d", info->gidTable[1]); in HWTEST_F() 749 dacInfo.uid = 20010029; // 20010029 test uid in HWTEST_F() 772 dacInfo.uid = 20010029; // 20010029 test uid in HWTEST_F() 809 dacInfo.uid = 20010029; // 20010029 test uid in HWTEST_F() [all...] |
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_message_event_test/ |
H A D | fms_form_mgr_message_event_test.cpp | 407 int uid = 1; in HWTEST_F() local 413 EXPECT_EQ(ERR_OK, formDbCache.GetNoHostDBForms(uid, noHostFormDBList, foundFormsMap)); in HWTEST_F() 426 int uid = 1; in HWTEST_F() local 431 formDBInfo.formUserUids.emplace_back(uid); in HWTEST_F() 435 formDBInfos.formUserUids.emplace_back(uid); in HWTEST_F() 437 EXPECT_EQ(ERR_OK, formDbCache.GetNoHostDBForms(uid, noHostFormDBList, foundFormsMap)); in HWTEST_F()
|
/foundation/ability/ability_runtime/test/unittest/pending_want_manager_test/ |
H A D | pending_want_manager_test.cpp | 181 int32_t uid = 0; in HWTEST_F() local 186 EXPECT_NE(pendingManager_->GetWantSender(callingUid, uid, isSystemApp, wantSenderInfo, nullptr), nullptr); in HWTEST_F() 192 * @tc.desc : 1.GetWantSender function callingUid = 1 && callingUid != uid 197 int32_t uid = 0; in HWTEST_F() local 202 EXPECT_NE(pendingManager_->GetWantSender(callingUid, uid, isSystemApp, wantSenderInfo, nullptr), nullptr); in HWTEST_F() 208 * @tc.desc : 1.GetWantSender function callingUid = 1 && callingUid == uid 213 int32_t uid = 1; in HWTEST_F() local 218 EXPECT_NE(pendingManager_->GetWantSender(callingUid, uid, isSystemApp, wantSenderInfo, nullptr), nullptr); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/ |
H A D | bundle_mgr_proxy.h | 152 * @brief Obtains the BundleInfo based on calling uid. 219 * @return Returns the uid if successfully obtained; returns -1 otherwise. 227 * @return Returns the uid if successfully obtained; returns -1 otherwise. 234 * @return Returns the uid if successfully obtained; returns -1 otherwise. 247 * @param uid Indicates the uid. 251 virtual bool GetBundleNameForUid(const int uid, std::string &bundleName) override; 254 * @param uid Indicates the uid. 258 virtual bool GetBundlesForUid(const int uid, st [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_mgr_host_impl.h | 209 * @return Returns the uid if successfully obtained; returns -1 otherwise. 211 virtual bool GetBundleNameForUid(const int uid, std::string &bundleName) override; 214 * @param uid Indicates the uid. 218 virtual bool GetBundlesForUid(const int uid, std::vector<std::string> &bundleNames) override; 221 * @param uid Indicates the uid. 225 virtual ErrCode GetNameForUid(const int uid, std::string &name) override; 228 * @param uid Indicates the uid [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/ |
H A D | avrcp_ct_vendor.cpp | 1452 AvrcCtPiPacket::AvrcCtPiPacket(uint8_t scope, uint64_t uid, uint16_t uidCounter) in AvrcCtPiPacket() argument 1455 HILOGI("scope: %{public}d, uid: %{public}llu, uidCounter: %{public}d", in AvrcCtPiPacket() 1456 scope, static_cast<unsigned long long>(uid), uidCounter); in AvrcCtPiPacket() 1462 uid_ = uid; in AvrcCtPiPacket() 1542 AvrcCtAtnpPacket::AvrcCtAtnpPacket(uint8_t scope, uint64_t uid, uint16_t uidCounter) in AvrcCtAtnpPacket() argument 1545 HILOGI("scope: %{public}d, uid: %{public}llu, uidCounter: %{public}d", in AvrcCtAtnpPacket() 1546 scope, static_cast<unsigned long long>(uid), uidCounter); in AvrcCtAtnpPacket() 1553 uid_ = uid; in AvrcCtAtnpPacket()
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | node_impl.cpp | 67 const CORE_NS::IInterface* NodeImpl::GetInterface(const BASE_NS::Uid& uid) const in GetInterface() 69 if (META_NS::TypeId(uid) == SCENE_NS::InterfaceId::IEnvironment.Id()) { in GetInterface() 72 return Fwd::GetInterface(uid); in GetInterface() 76 CORE_NS::IInterface* NodeImpl::GetInterface(const BASE_NS::Uid& uid) in GetInterface() argument 78 if (META_NS::TypeId(uid) == SCENE_NS::InterfaceId::IEnvironment.Id()) { in GetInterface() 81 return Fwd::GetInterface(uid); in GetInterface()
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/ |
H A D | softbus_proxychannel_message_test.cpp | 124 int32_t TestGetUidAndPidBySessionName(const char *sessionName, int32_t *uid, int32_t *pid) in TestGetUidAndPidBySessionName() argument 127 (void)uid; in TestGetUidAndPidBySessionName() 185 int32_t TestGetUidAndPidSuccess(const char *sessionName, int32_t *uid, int32_t *pid) in TestGetUidAndPidSuccess() argument 188 (void)uid; in TestGetUidAndPidSuccess() 193 int32_t TestGetUidAndPidFail(const char *sessionName, int32_t *uid, int32_t *pid) in TestGetUidAndPidFail() argument 196 (void)uid; in TestGetUidAndPidFail()
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | scene_session_dirty_manager.cpp | 659 auto uid = sceneSession->GetCallingUid();
in GetWindowInfo() local 698 .uid = uid,
in GetWindowInfo() 746 " uid: " + std::to_string(info.uid) + " area: [ " + std::to_string(info.area.x) + " , " +
in DumpWindowInfo() 780 windowinfo.uid = hostWindowinfo.uid;
in MakeWindowInfoFormHostWindow()
|
/kernel/linux/linux-5.10/sound/pci/mixart/ |
H A D | mixart_mixer.c | 311 if(is_capture) request.uid = chip->uid_in_analog_physio; in mixart_update_analog_audio_level() 312 else request.uid = chip->uid_out_analog_physio; in mixart_update_analog_audio_level() 748 request.uid = (struct mixart_uid){0,0}; in mixart_update_playback_stream_level() 793 request.uid = (struct mixart_uid){0,0}; in mixart_update_capture_stream_level() 960 if(!channel) request.uid = chip->pipe_out_ana.uid_left_connector; in mixart_update_monitoring() 961 else request.uid = chip->pipe_out_ana.uid_right_connector; in mixart_update_monitoring()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | auditfilter.c | 489 f->uid = make_kuid(current_user_ns(), f_val); in audit_data_to_entry() 490 if (!uid_valid(f->uid)) in audit_data_to_entry() 753 if (!uid_eq(a->fields[i].uid, b->fields[i].uid)) in audit_compare_rule() 1340 result = audit_uid_comparator(current_uid(), f->op, f->uid); in audit_filter() 1347 f->op, f->uid); in audit_filter()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | auditfilter.c | 497 f->uid = make_kuid(current_user_ns(), f_val); in audit_data_to_entry() 498 if (!uid_valid(f->uid)) in audit_data_to_entry() 762 if (!uid_eq(a->fields[i].uid, b->fields[i].uid)) in audit_compare_rule() 1350 result = audit_uid_comparator(current_uid(), f->op, f->uid); in audit_filter() 1357 f->op, f->uid); in audit_filter()
|
/kernel/liteos_a/fs/vfs/vfs_cmd/ |
H A D | vfs_shellcmd.c | 272 unsigned int uid, unsigned int gid) __attribute__((weakref("nfs_mount"))); 304 unsigned int gid, uid; in osShellCmdMount() local 327 if (argc <= 6) { // 6: arguments include uid or gid in osShellCmdMount() 328 uid = ((argc >= 5) && (argv[4] != NULL)) ? (unsigned int)strtoul(argv[4], (char **)NULL, 0) : 0; in osShellCmdMount() 332 ret = nfs_mount_ref(argv[1], fullpath, uid, gid); in osShellCmdMount() 364 if (argc <= 5) { // 5: arguments include gid and uid in osShellCmdMount() 365 uid = ((argc >= 4) && (argv[3] != NULL)) ? (unsigned int)strtoul(argv[3], (char **)NULL, 0) : 0; in osShellCmdMount() 369 ret = nfs_mount_ref(argv[0], fullpath, uid, gid); in osShellCmdMount()
|
/kernel/linux/linux-6.6/sound/pci/mixart/ |
H A D | mixart_mixer.c | 311 if(is_capture) request.uid = chip->uid_in_analog_physio; in mixart_update_analog_audio_level() 312 else request.uid = chip->uid_out_analog_physio; in mixart_update_analog_audio_level() 748 request.uid = (struct mixart_uid){0,0}; in mixart_update_playback_stream_level() 793 request.uid = (struct mixart_uid){0,0}; in mixart_update_capture_stream_level() 960 if(!channel) request.uid = chip->pipe_out_ana.uid_left_connector; in mixart_update_monitoring() 961 else request.uid = chip->pipe_out_ana.uid_right_connector; in mixart_update_monitoring()
|
/test/testfwk/xdevice/src/xdevice/_core/executor/ |
H A D | scheduler.py | 517 uid = unique_id("Scheduler", "component") 524 root = Descriptor(uuid=uid, name="component", 533 uid = unique_id("Scheduler", "testdict") 534 root = Descriptor(uuid=uid, name="testdict", 547 uid = unique_id("Scheduler", fname) 548 root = Descriptor(uuid=uid, name=fname,
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/ |
H A D | hisysevent_record_convertor.cpp | 106 recordStruct.uid = recordObj.GetUid(); in ConvertRecord()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
H A D | faultlogger.h | 63 std::unique_ptr<FaultLogQueryResultInner> QuerySelfFaultLog(int32_t uid,
|