Home
last modified time | relevance | path

Searched refs:callingTokenId (Results 1 - 25 of 67) sorted by relevance

123

/foundation/communication/dsoftbus/core/common/security/permission/standard/
H A Daccess_control.cpp47 static int32_t TransCheckAccessControl(uint32_t callingTokenId, const char *deviceId) in TransCheckAccessControl() argument
51 COMM_LOGI(COMM_PERM, "tokenId=%{public}u, deviceId=%{public}s", callingTokenId, tmpName); in TransCheckAccessControl()
57 std::string tokenIdStr = std::to_string(callingTokenId); in TransCheckAccessControl()
63 COMM_LOGE(COMM_PERM, "check acl failed:tokenId=%{public}u", callingTokenId); in TransCheckAccessControl()
80 uint32_t callingTokenId = OHOS::IPCSkeleton::GetCallingTokenID(); in TransCheckClientAccessControl() local
81 if (callingTokenId == TOKENID_NOT_SET) { in TransCheckClientAccessControl()
85 auto tokenType = AccessTokenKit::GetTokenTypeFlag((AccessTokenID)callingTokenId); in TransCheckClientAccessControl()
97 callingTokenId, tmpName, ret); in TransCheckClientAccessControl()
101 return TransCheckAccessControl(callingTokenId, deviceId); in TransCheckClientAccessControl()
128 int32_t TransCheckServerAccessControl(uint32_t callingTokenId) in TransCheckServerAccessControl() argument
[all...]
/foundation/communication/dsoftbus/core/frame/standard/client_manager/src/
H A Dpermission_status_change_cb.cpp28 void RegisterDataSyncPermission(const uint32_t& callingTokenId, in RegisterDataSyncPermission() argument
33 scopeInfo.tokenIDs = {callingTokenId}; in RegisterDataSyncPermission()
36 COMM_LOGI(COMM_PERM, "after register. tokenId=%{public}d", callingTokenId); in RegisterDataSyncPermission()
/foundation/communication/ipc/interfaces/innerkits/ipc_napi_common/include/
H A Dnapi_remote_object.h27 uint32_t callingTokenId; member
38 napi_value callingTokenId; member
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/
H A Ddaemon.cpp236 const std::string &networkId, uint32_t callingTokenId) in CleanUp()
240 if (deviceManager->RemoveRemoteReverseObj(false, callingTokenId) != E_OK) { in CleanUp()
243 deviceManager->RemoveNetworkIdByOne(callingTokenId, networkId); in CleanUp()
253 const std::string &networkId, uint32_t callingTokenId) in ConnectionAndMount()
263 deviceManager->AddNetworkId(callingTokenId, networkId); in ConnectionAndMount()
303 auto callingTokenId = IPCSkeleton::GetCallingTokenID(); in OpenP2PConnectionEx() local
304 if (deviceManager->AddRemoteReverseObj(callingTokenId, remoteReverseObj) != E_OK) { in OpenP2PConnectionEx()
307 int32_t ret = ConnectionAndMount(deviceInfo, networkId, callingTokenId); in OpenP2PConnectionEx()
309 CleanUp(deviceInfo, networkId, callingTokenId); in OpenP2PConnectionEx()
324 auto callingTokenId in CloseP2PConnectionEx() local
235 CleanUp(const DistributedHardware::DmDeviceInfo &deviceInfo, const std::string &networkId, uint32_t callingTokenId) CleanUp() argument
252 ConnectionAndMount(const DistributedHardware::DmDeviceInfo &deviceInfo, const std::string &networkId, uint32_t callingTokenId) ConnectionAndMount() argument
660 uint32_t callingTokenId = 0; OnRemoteDied() local
[all...]
/foundation/multimedia/camera_framework/services/camera_service/include/
H A Dcamera_privacy.h54 explicit CameraPrivacy(wptr<HCameraDevice> device, uint32_t callingTokenId, int32_t pid) in CameraPrivacy() argument
55 : pid_(pid), callerToken_(callingTokenId), cameraDevice_(device) {} in CameraPrivacy()
/foundation/communication/dsoftbus/core/common/security/permission/include/
H A Daccess_control.h38 int32_t TransCheckServerAccessControl(uint32_t callingTokenId);
/foundation/ability/ability_runtime/services/abilitymgr/src/scene_board/
H A Dstatus_bar_delegate_manager.cpp42 auto callingTokenId = IPCSkeleton::GetCallingTokenID(); in IsCallerInStatusBar() local
44 auto ret = statusBarDelegate->CheckIfStatusBarItemExists(callingTokenId, isExist); in IsCallerInStatusBar()
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/mock/
H A Dtrans_manager_mock.cpp65 const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) in TransAsyncGetLaneInfo()
67 return GetTransManagerInterface()->TransAsyncGetLaneInfo(param, laneHandle, callingTokenId, timeStart); in TransAsyncGetLaneInfo()
64 TransAsyncGetLaneInfo( const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) TransAsyncGetLaneInfo() argument
H A Dtrans_manager_mock.h41 const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) = 0;
/foundation/communication/dsoftbus/core/frame/standard/client_manager/include/
H A Dpermission_status_change_cb.h36 void RegisterDataSyncPermission(const uint32_t& callingTokenId,
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/
H A Ddaemon.h67 const std::string &networkId, uint32_t callingTokenId);
69 const std::string &networkId, uint32_t callingTokenId);
/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/
H A Dtrans_lane_pending_ctl.c66 uint32_t callingTokenId; // used for transmission access control member
375 uint32_t callingTokenId, int64_t timeStart) in TransAddAsyncLaneReqFromPendingList()
391 item->callingTokenId = callingTokenId; in TransAddAsyncLaneReqFromPendingList()
450 uint32_t laneHandle, SessionParam *param, uint32_t *callingTokenId, uint32_t *firstTokenId, int64_t *timeStart) in TransGetLaneReqItemParamByLaneHandle()
468 *callingTokenId = item->callingTokenId; in TransGetLaneReqItemParamByLaneHandle()
601 event->firstTokenId = appInfo->callingTokenId; in TransAsyncSetFirstTokenInfo()
642 uint32_t callingTokenId = TOKENID_NOT_SET; in TransOnAsyncLaneSuccess() local
645 int32_t ret = TransGetLaneReqItemParamByLaneHandle(laneHandle, &param, &callingTokenId, in TransOnAsyncLaneSuccess()
374 TransAddAsyncLaneReqFromPendingList(uint32_t laneHandle, const SessionParam *param, uint32_t callingTokenId, int64_t timeStart) TransAddAsyncLaneReqFromPendingList() argument
449 TransGetLaneReqItemParamByLaneHandle( uint32_t laneHandle, SessionParam *param, uint32_t *callingTokenId, uint32_t *firstTokenId, int64_t *timeStart) TransGetLaneReqItemParamByLaneHandle() argument
704 uint32_t callingTokenId = TOKENID_NOT_SET; TransOnAsyncLaneFail() local
1306 TransAsyncGetLaneInfoByOption(const SessionParam *param, const LaneRequestOption *requestOption, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) TransAsyncGetLaneInfoByOption() argument
1346 TransAsyncGetLaneInfoByQos(const SessionParam *param, const LaneAllocInfo *allocInfo, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) TransAsyncGetLaneInfoByQos() argument
1391 TransAsyncGetLaneInfo( const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) TransAsyncGetLaneInfo() argument
[all...]
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation_exchange.c145 if (!GetJsonObjectNumberItem(msg, "CALLING_TOKEN_ID", (int32_t *)&appInfo->callingTokenId)) { in TransUnpackRequestUdpInfo()
146 appInfo->callingTokenId = TOKENID_NOT_SET; in TransUnpackRequestUdpInfo()
177 (void)AddNumberToJsonObject(msg, "CALLING_TOKEN_ID", (int32_t)appInfo->callingTokenId); in TransPackRequestUdpInfo()
/foundation/multimedia/camera_framework/test/fuzztest/cameradevice_fuzzer/
H A Dcamera_device_fuzzer.cpp66 auto callingTokenId = IPCSkeleton::GetCallingTokenID(); in PrepareHCameraDevice() local
67 MEDIA_INFO_LOG("Fuzz:PrepareHCameraDevice: callingTokenId = %{public}d", callingTokenId); in PrepareHCameraDevice()
69 int32_t ret = CheckPermission(permissionName, callingTokenId); in PrepareHCameraDevice()
74 fuzzCameraDevice = new HCameraDevice(cameraHostManager, cameraID, callingTokenId); in PrepareHCameraDevice()
/foundation/ability/dmsfwk/test/fuzztest/dschedtransportsoftbusadapter_fuzzer/
H A Ddschedtransportsoftbusadapter_fuzzer.cpp141 int32_t callingTokenId = *(reinterpret_cast<const int32_t*>(data)); in FuzzSetCallingTokenId() local
143 dschedTransportSoftbusAdapter.SetCallingTokenId(callingTokenId); in FuzzSetCallingTokenId()
/foundation/ability/ability_base/interfaces/kits/native/session_info/src/
H A Dsession_info.cpp184 if (!parcel.WriteUint32(callingTokenId)) { in DoMarshallingFour()
185 ABILITYBASE_LOGE("Write callingTokenId failed"); in DoMarshallingFour()
328 info->callingTokenId = parcel.ReadUint32(); in ReadParcelOne()
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/
H A Dtrans_tcp_direct_message_test_mock.cpp222 int32_t TransCheckServerAccessControl(uint32_t callingTokenId) in TransCheckServerAccessControl() argument
224 return GetTransTcpDirectMessageInterface()->TransCheckServerAccessControl(callingTokenId); in TransCheckServerAccessControl()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/device/
H A Ddevice_manager_agent.h84 int32_t AddRemoteReverseObj(uint32_t callingTokenId, sptr<IFileDfsListener> remoteReverseObj);
85 int32_t RemoveRemoteReverseObj(bool clear, uint32_t callingTokenId);
/foundation/ability/ability_base/interfaces/kits/native/session_info/include/
H A Dsession_info.h65 uint32_t callingTokenId = 0; member in OHOS::AAFwk::SessionInfo
/foundation/communication/dsoftbus/core/transmission/trans_channel/common/include/
H A Dtrans_lane_pending_ctl.h52 const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart);
/foundation/communication/dsoftbus/core/transmission/common/include/
H A Dsoftbus_app_info.h129 uint32_t callingTokenId; // for transmission access control member
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_internal_event_dispatcher.cpp167 callbackInfo.callingTokenId = tokenId; in AddStaCallback()
172 eventIter->second, callbackInfo.callingTokenId, instId); in AddStaCallback()
183 callbackInfo.callingTokenId = tokenId; in AddStaCallback()
272 callbackInfo.callingTokenId = tokenId; in AddScanCallback()
277 eventIter->second, callbackInfo.callingTokenId, instId); in AddScanCallback()
288 callbackInfo.callingTokenId = tokenId; in AddScanCallback()
484 callbackInfo.callingTokenId = tokenId; in AddP2pCallback()
488 eventIter->second, callbackInfo.callingTokenId); in AddP2pCallback()
818 int tokenId = mP2pCallbackInfo[remote].callingTokenId; in InvokeP2pCallbacks()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/device/
H A Ddevice_manager_agent.cpp594 int32_t DeviceManagerAgent::AddRemoteReverseObj(uint32_t callingTokenId, sptr<IFileDfsListener> remoteReverseObj) in AddRemoteReverseObj() argument
597 auto it = appCallConnect_.find(callingTokenId); in AddRemoteReverseObj()
602 appCallConnect_[callingTokenId] = remoteReverseObj; in AddRemoteReverseObj()
607 int32_t DeviceManagerAgent::RemoveRemoteReverseObj(bool clear, uint32_t callingTokenId) in RemoveRemoteReverseObj() argument
615 auto it = appCallConnect_.find(callingTokenId); in RemoveRemoteReverseObj()
/foundation/ability/dmsfwk/services/dtbschedmgr/include/softbus_adapter/transport/
H A Ddsched_transport_softbus_adapter.h61 void SetCallingTokenId(int32_t callingTokenId);
/foundation/window/window_manager/window_scene/common/src/
H A Dsession_permission.cpp92 uint64_t callingTokenId = IPCSkeleton::GetCallingFullTokenID(); in IsSystemAppCall() local
93 return Security::AccessToken::TokenIdKit::IsSystemAppByFullTokenID(callingTokenId); in IsSystemAppCall()

Completed in 15 milliseconds

123