Home
last modified time | relevance | path

Searched refs:callerInfo (Results 1 – 25 of 26) sorted by relevance

12

/foundation/distributedschedule/dmsfwk_lite/source/
Ddmslite_famgr.c36 const CallerInfo *callerInfo, const IDmsListener *callback);
37 static int32_t MarshallDmsMessage(const Want *want, const CallerInfo *callerInfo);
45 int32_t StartRemoteAbilityInner(const Want *want, const CallerInfo *callerInfo, in StartRemoteAbilityInner() argument
48 if (want == NULL || want->element == NULL || callerInfo == NULL) { in StartRemoteAbilityInner()
63 if (FillRequestData(reqdata, want, callerInfo, callback) != DMS_EC_SUCCESS) { in StartRemoteAbilityInner()
64 FreeRequestData(reqdata->want, reqdata->callerInfo); in StartRemoteAbilityInner()
78 FreeRequestData(reqdata->want, reqdata->callerInfo); in StartRemoteAbilityInner()
85 int32_t StartRemoteAbility(const Want *want, CallerInfo *callerInfo, IDmsListener *callback) in StartRemoteAbility() argument
88 if (want == NULL || want->element == NULL || callerInfo == NULL) { in StartRemoteAbility()
100 if (MarshallDmsMessage(want, callerInfo) != DMS_EC_SUCCESS) { in StartRemoteAbility()
[all …]
Ddmslite_permission.c165 static int32_t GetBundleInfoFromBms(const CallerInfo *callerInfo, BundleInfo *bundleInfo) in GetBundleInfoFromBms() argument
178 if (bmsServerProxy->GetBundleNameForUid(callerInfo->uid, &bundleName) != EC_SUCCESS) { in GetBundleInfoFromBms()
185 if (GetBundleNameForUid(callerInfo->uid, &bundleName) != EC_SUCCESS) { in GetBundleInfoFromBms()
195 errCode = GetBundleInfo(callerInfo->bundleName, GET_BUNDLE_WITHOUT_ABILITIES, bundleInfo); in GetBundleInfoFromBms()
204 int32_t GetCallerBundleInfo(const CallerInfo *callerInfo, BundleInfo *bundleInfo) in GetCallerBundleInfo() argument
206 if ((callerInfo == NULL) || (bundleInfo == NULL)) { in GetCallerBundleInfo()
211 if (callerInfo->uid <= MAX_NATIVE_SERVICE_UID) { in GetCallerBundleInfo()
214 callerInfo->uid, APPID_FILE_SUFFIX); in GetCallerBundleInfo()
219 bundleInfo->uid = callerInfo->uid; in GetCallerBundleInfo()
223 return GetBundleInfoFromBms(callerInfo, bundleInfo); in GetCallerBundleInfo()
Ddmslite_feature.c88 int32_t result = StartRemoteAbility(data->want, data->callerInfo, data->callback); in OnMessage()
89 FreeRequestData(data->want, data->callerInfo); in OnMessage()
/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/test/unittest/
Ddistributed_sched_permission_test.cpp61 CallerInfo callerInfo; variable
68 callerInfo, accountInfo, abilityInfo, localDeviceId);
82 CallerInfo callerInfo; variable
89 callerInfo, accountInfo, abilityInfo, localDeviceId);
103 CallerInfo callerInfo; variable
110 callerInfo, accountInfo, abilityInfo, localDeviceId);
124 CallerInfo callerInfo; variable
131 callerInfo, accountInfo, abilityInfo, localDeviceId);
146 CallerInfo callerInfo; variable
147 callerInfo.accessToken = 0;
[all …]
Ddistributed_sched_service_test.cpp231 CallerInfo callerInfo; variable
232 callerInfo.uid = 0;
233 callerInfo.sourceDeviceId = "255.255.255.255";
239 int result1 = proxy->StartAbilityFromRemote(want, abilityInfo, 0, callerInfo, accountInfo);
250 int result2 = proxy->StartAbilityFromRemote(want, abilityInfo, 0, callerInfo, accountInfo);
277 CallerInfo callerInfo; variable
278 callerInfo.uid = 0;
279 callerInfo.sourceDeviceId = "255.255.255.255";
282 int result1 = proxy->StartAbilityFromRemote(want, abilityInfo, 0, callerInfo, accountInfo);
290 int result2 = proxy->StartAbilityFromRemote(want, abilityInfo, 0, callerInfo, accountInfo);
[all …]
Dmock_distributed_sched.h34 …onst OHOS::AppExecFwk::AbilityInfo& abilityInfo, int32_t requestCode, const CallerInfo& callerInfo,
47 …const sptr<IRemoteObject>& connect, const CallerInfo& callerInfo, const AccountInfo& accountInfo) …
50 int32_t NotifyProcessDiedFromRemote(const CallerInfo& callerInfo) override;
62 const CallerInfo& callerInfo) override;
67 int32_t StartSyncMissionsFromRemote(const CallerInfo& callerInfo,
69 int32_t StopSyncMissionsFromRemote(const CallerInfo& callerInfo) override;
76 const CallerInfo& callerInfo, const AccountInfo& accountInfo) override;
78 const CallerInfo& callerInfo) override;
Dmock_distributed_sched.cpp33 …onst OHOS::AppExecFwk::AbilityInfo& abilityInfo, int32_t requestCode, const CallerInfo& callerInfo, in StartAbilityFromRemote() argument
76 const CallerInfo& callerInfo, const AccountInfo& accountInfo) in ConnectAbilityFromRemote() argument
87 int32_t MockDistributedSched::NotifyProcessDiedFromRemote(const CallerInfo& callerInfo) in NotifyProcessDiedFromRemote() argument
126 const CallerInfo& callerInfo) in NotifyMissionsChangedFromRemote() argument
154 int32_t MockDistributedSched::StartSyncMissionsFromRemote(const CallerInfo& callerInfo, in StartSyncMissionsFromRemote() argument
160 int32_t MockDistributedSched::StopSyncMissionsFromRemote(const CallerInfo& callerInfo) in StopSyncMissionsFromRemote() argument
189 … const sptr<IRemoteObject>& connect, const CallerInfo& callerInfo, const AccountInfo& accountInfo) in StartAbilityByCallFromRemote() argument
195 const AppExecFwk::ElementName &element, const CallerInfo& callerInfo) in ReleaseAbilityFromRemote() argument
Ddistributed_sched_connect_test.cpp126 CallerInfo callerInfo; in AddSession() local
127 callerInfo.uid = IPCSkeleton::GetCallingUid(); in AddSession()
128 callerInfo.pid = IPCSkeleton::GetCallingPid(); in AddSession()
129 callerInfo.sourceDeviceId = localDeviceId; in AddSession()
130 callerInfo.callerType = CALLER_TYPE_HARMONY; in AddSession()
132 remoteDeviceId, want.GetElement(), callerInfo, TargetComponent::HARMONY_COMPONENT); in AddSession()
153 CallerInfo callerInfo; in AddConnectInfo() local
154 callerInfo.uid = IPCSkeleton::GetCallingUid(); in AddConnectInfo()
155 callerInfo.pid = IPCSkeleton::GetCallingPid(); in AddConnectInfo()
156 callerInfo.sourceDeviceId = localDeviceId; in AddConnectInfo()
[all …]
/foundation/distributedschedule/dmsfwk_lite/moduletest/dtbschedmgr_lite/source/
Dpermission_test.cpp62 CallerInfo callerInfo = {.uid = SHELL_UID}; variable
65 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, nullptr), DMS_EC_INVALID_PARAMETER);
76 CallerInfo callerInfo = {.uid = SHELL_UID}; variable
78 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, &bundleInfo), DMS_EC_FAILURE);
98 CallerInfo callerInfo = {.uid = FOUNDATION_UID}; variable
100 filePath << NATIVE_APPID_DIR << PREFIX << callerInfo.uid << SUFFIX;
106 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, &bundleInfo), DMS_EC_SUCCESS);
123 CallerInfo callerInfo = {.uid = NON_EXISTENT_UID}; variable
125 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, &bundleInfo), DMS_EC_FAILURE);
138 CallerInfo callerInfo = {.uid = bundleInfo.uid}; variable
[all …]
Dfamgr_test.cpp90 CallerInfo callerInfo = { variable
93 StartRemoteAbility(&want, &callerInfo, nullptr);
/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/
Ddistributed_sched_service.cpp128 CallerInfo callerInfo; in StartRemoteAbility() local
129 callerInfo.sourceDeviceId = localDeviceId; in StartRemoteAbility()
130 callerInfo.uid = callerUid; in StartRemoteAbility()
131 callerInfo.accessToken = accessToken; in StartRemoteAbility()
132 if (!BundleManagerInternal::GetCallerAppIdFromBms(callerInfo.uid, callerInfo.callerAppId)) { in StartRemoteAbility()
136 if (!BundleManagerInternal::GetBundleNameListFromBms(callerInfo.uid, callerInfo.bundleNames)) { in StartRemoteAbility()
141 …int32_t ret = DistributedSchedPermission::GetInstance().GetAccountInfo(deviceId, callerInfo, accou… in StartRemoteAbility()
147 …int32_t result = remoteDms->StartAbilityFromRemote(want, abilityInfo, requestCode, callerInfo, acc… in StartRemoteAbility()
154 const CallerInfo& callerInfo, const AccountInfo& accountInfo) in StartAbilityFromRemote() argument
159 !CheckDeviceIdFromRemote(localDeviceId, deviceId, callerInfo.sourceDeviceId)) { in StartAbilityFromRemote()
[all …]
Ddistributed_sched_permission.cpp55 …DistributedSchedPermission::CheckDPermission(const AAFwk::Want& want, const CallerInfo& callerInfo, in CheckDPermission() argument
62 bool result = getTargetAbility(want, abilityInfo, localDeviceId, targetAbility, callerInfo); in CheckDPermission()
71 callerInfo.callerType, accountInfo.accountType, callerInfo.uid, callerInfo.accessToken); in CheckDPermission()
73 if (!CheckAccountAccessPermission(callerInfo, accountInfo, targetAbility.bundleName)) { in CheckDPermission()
78 if (!CheckComponentAccessPermission(targetAbility, callerInfo, accountInfo, want)) { in CheckDPermission()
83 if (!CheckCustomPermission(targetAbility, callerInfo)) { in CheckDPermission()
92 const CallerInfo& callerInfo, AccountInfo& accountInfo) in GetAccountInfo() argument
103 if (!GetRelatedGroups(udid, callerInfo.bundleNames, accountInfo)) { in GetAccountInfo()
160 AppExecFwk::AbilityInfo& targetAbility, const CallerInfo& callerInfo) const in getTargetAbility()
169 …tedSchedPermission::CheckGetCallerPermission(const AAFwk::Want& want, const CallerInfo& callerInfo, in CheckGetCallerPermission() argument
[all …]
Ddistributed_sched_stub.cpp171 CallerInfo callerInfo; in StartAbilityFromRemoteInner() local
172 PARCEL_READ_HELPER(data, Int32, callerInfo.uid); in StartAbilityFromRemoteInner()
173 PARCEL_READ_HELPER(data, String, callerInfo.sourceDeviceId); in StartAbilityFromRemoteInner()
174 callerInfo.callerType = CALLER_TYPE_HARMONY; in StartAbilityFromRemoteInner()
178 callerInfo.callerAppId = data.ReadString(); in StartAbilityFromRemoteInner()
186 callerInfo.accessToken = accessToken; in StartAbilityFromRemoteInner()
189 … int32_t result = StartAbilityFromRemote(*want, abilityInfo, requestCode, callerInfo, accountInfo); in StartAbilityFromRemoteInner()
342 CallerInfo callerInfo; in ConnectAbilityFromRemoteInner() local
343 PARCEL_READ_HELPER(data, Int32, callerInfo.uid); in ConnectAbilityFromRemoteInner()
344 PARCEL_READ_HELPER(data, Int32, callerInfo.pid); in ConnectAbilityFromRemoteInner()
[all …]
Ddistributed_sched_proxy.cpp59 const CallerInfo& callerInfo, const AccountInfo& accountInfo) in StartAbilityFromRemote() argument
74 PARCEL_WRITE_HELPER(data, Int32, callerInfo.uid); in StartAbilityFromRemote()
75 PARCEL_WRITE_HELPER(data, String, callerInfo.sourceDeviceId); in StartAbilityFromRemote()
78 PARCEL_WRITE_HELPER(data, String, callerInfo.callerAppId); in StartAbilityFromRemote()
80 extraInfoJson[EXTRO_INFO_JSON_KEY_ACCESS_TOKEN] = callerInfo.accessToken; in StartAbilityFromRemote()
220 const CallerInfo& callerInfo, const AccountInfo& accountInfo) in ConnectAbilityFromRemote() argument
241 PARCEL_WRITE_HELPER(data, Int32, callerInfo.uid); in ConnectAbilityFromRemote()
242 PARCEL_WRITE_HELPER(data, Int32, callerInfo.pid); in ConnectAbilityFromRemote()
243 PARCEL_WRITE_HELPER(data, String, callerInfo.sourceDeviceId); in ConnectAbilityFromRemote()
246 PARCEL_WRITE_HELPER(data, String, callerInfo.callerAppId); in ConnectAbilityFromRemote()
[all …]
/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/
Ddistributed_sched_permission.h45 int32_t CheckDPermission(const AAFwk::Want& want, const CallerInfo& callerInfo,
48 int32_t CheckGetCallerPermission(const AAFwk::Want& want, const CallerInfo& callerInfo,
51 int32_t GetAccountInfo(const std::string& remoteNetworkId, const CallerInfo& callerInfo,
61 bool CheckAccountAccessPermission(const CallerInfo& callerInfo,
64 … const CallerInfo& callerInfo, const AccountInfo& accountInfo, const AAFwk::Want& want) const;
66 const CallerInfo& callerInfo) const;
68 …string& localDeviceId, AppExecFwk::AbilityInfo& targetAbility, const CallerInfo& callerInfo) const;
Ddistributed_sched_service.h47 CallerInfo callerInfo; member
54 CallerInfo callerInfo; member
70 …onst OHOS::AppExecFwk::AbilityInfo& abilityInfo, int32_t requestCode, const CallerInfo& callerInfo,
83 …const sptr<IRemoteObject>& connect, const CallerInfo& callerInfo, const AccountInfo& accountInfo) …
86 int32_t NotifyProcessDiedFromRemote(const CallerInfo& callerInfo) override;
93 const CallerInfo& callerInfo) override;
108 int32_t StartSyncMissionsFromRemote(const CallerInfo& callerInfo,
111 int32_t StopSyncMissionsFromRemote(const CallerInfo& callerInfo) override;
119 const CallerInfo& callerInfo, const AccountInfo& accountInfo) override;
121 const CallerInfo& callerInfo) override;
[all …]
Ddistributed_sched_proxy.h34 …onst OHOS::AppExecFwk::AbilityInfo& abilityInfo, int32_t requestCode, const CallerInfo& callerInfo,
47 …const sptr<IRemoteObject>& connect, const CallerInfo& callerInfo, const AccountInfo& accountInfo) …
50 int32_t NotifyProcessDiedFromRemote(const CallerInfo& callerInfo) override;
63 const CallerInfo& callerInfo) override;
68 int32_t StartSyncMissionsFromRemote(const CallerInfo& callerInfo,
70 int32_t StopSyncMissionsFromRemote(const CallerInfo& callerInfo) override;
76 const CallerInfo& callerInfo, const AccountInfo& accountInfo) override;
78 const CallerInfo& callerInfo) override;
80 bool CallerInfoMarshalling(const CallerInfo& callerInfo, MessageParcel& data);
Ddistributed_sched_interface.h45 …onst OHOS::AppExecFwk::AbilityInfo& abilityInfo, int32_t requestCode, const CallerInfo& callerInfo,
58 …const sptr<IRemoteObject>& connect, const CallerInfo& callerInfo, const AccountInfo& accountInfo) …
61 virtual int32_t NotifyProcessDiedFromRemote(const CallerInfo& callerInfo) = 0;
63 virtual int32_t StartSyncMissionsFromRemote(const CallerInfo& callerInfo,
66 virtual int32_t StopSyncMissionsFromRemote(const CallerInfo& callerInfo) = 0;
77 const CallerInfo& callerInfo) = 0;
87 const CallerInfo& callerInfo, const AccountInfo& accountInfo) = 0;
89 const CallerInfo& callerInfo) = 0;
Ddistributed_sched_stub.h74 bool CallerInfoUnmarshalling(CallerInfo& callerInfo, MessageParcel& data);
/foundation/distributedschedule/dmsfwk_lite/include/
Ddmslite_famgr.h34 CallerInfo *callerInfo; member
48 int32_t StartRemoteAbility(const Want *want, CallerInfo *callerInfo, IDmsListener *callback);
49 void FreeRequestData(const Want *want, CallerInfo *callerInfo);
50 int32_t StartRemoteAbilityInner(const Want *want, const CallerInfo *callerInfo,
Ddmslite_permission.h48 int32_t GetCallerBundleInfo(const CallerInfo *callerInfo, BundleInfo *bundleInfo);
/foundation/aafwk/standard/services/abilitymgr/src/
Dlifecycle_state_info.cpp30 std::unique_ptr<CallerInfo> callerInfo(parcel.ReadParcelable<CallerInfo>()); in ReadFromParcel() local
31 if (callerInfo == nullptr) { in ReadFromParcel()
34 caller = *callerInfo; in ReadFromParcel()
/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/mission/
Ddistributed_sched_mission_manager.cpp477 CallerInfo callerInfo; in StartSyncRemoteMissions() local
478 if (!GenerateCallerInfo(callerInfo)) { in StartSyncRemoteMissions()
482 int32_t ret = remoteDms->StartSyncMissionsFromRemote(callerInfo, missionInfos); in StartSyncRemoteMissions()
564 CallerInfo callerInfo; in StopSyncRemoteMissions() local
565 if (!GenerateCallerInfo(callerInfo)) { in StopSyncRemoteMissions()
569 int32_t ret = remoteDms->StopSyncMissionsFromRemote(callerInfo); in StopSyncRemoteMissions()
599 int32_t DistributedSchedMissionManager::StartSyncMissionsFromRemote(const CallerInfo& callerInfo, in StartSyncMissionsFromRemote() argument
602 auto deviceId = callerInfo.sourceDeviceId; in StartSyncMissionsFromRemote()
603 HILOGD("remote version is %{public}d!", callerInfo.dmsVersion); in StartSyncMissionsFromRemote()
838 …t32_t DistributedSchedMissionManager::NotifyMissionsChangedFromRemote(const CallerInfo& callerInfo, in NotifyMissionsChangedFromRemote() argument
[all …]
/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/mission/
Ddistributed_sched_mission_manager.h92 …int32_t StartSyncMissionsFromRemote(const CallerInfo& callerInfo, std::vector<DstbMissionInfo>& mi…
103 int32_t NotifyMissionsChangedFromRemote(const CallerInfo& callerInfo,
128 bool GenerateCallerInfo(CallerInfo& callerInfo);
130 const std::vector<DstbMissionInfo>& missionInfos, const CallerInfo& callerInfo);
/foundation/distributedschedule/dmsfwk_lite/interfaces/innerkits/
Ddmsfwk_interface.h68 int32_t (*StartRemoteAbility)(const Want *want, const CallerInfo *callerInfo,

12