/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/ |
D | trans_udp_negotiation_exchange_test.cpp | 60 static void GenerateAppInfo(AppInfo *appInfo) in GenerateAppInfo() argument 62 if (appInfo == NULL) { in GenerateAppInfo() 63 appInfo = (AppInfo*)SoftBusMalloc(sizeof(AppInfo)); in GenerateAppInfo() 64 EXPECT_TRUE(appInfo != NULL); in GenerateAppInfo() 65 memset_s(appInfo, sizeof(AppInfo), 0, sizeof(AppInfo)); in GenerateAppInfo() 67 int res = strcpy_s(appInfo->sessionKey, sizeof(appInfo->sessionKey), g_sessionKey); in GenerateAppInfo() 69 res = strcpy_s(appInfo->myData.addr, sizeof(appInfo->myData.addr), TEST_SOCKET_ADDR); in GenerateAppInfo() 71 res = strcpy_s(appInfo->peerData.addr, sizeof(appInfo->peerData.addr), TEST_SOCKET_ADDR); in GenerateAppInfo() 73 res = strcpy_s(appInfo->myData.sessionName, sizeof(appInfo->myData.sessionName), g_sessionName); in GenerateAppInfo() 75 …res = strcpy_s(appInfo->peerData.sessionName, sizeof(appInfo->peerData.sessionName), g_sessionName… in GenerateAppInfo() [all …]
|
D | trans_udp_negotiation_test.cpp | 101 AppInfo* appInfo = (AppInfo*)SoftBusMalloc(sizeof(AppInfo)); variable 102 EXPECT_TRUE(appInfo != NULL); 103 memset_s(appInfo, sizeof(AppInfo), 0, sizeof(AppInfo)); 110 ret = TransOpenUdpChannel(appInfo, NULL, &channelId); 112 ret = TransOpenUdpChannel(appInfo, connOpt, NULL); 114 SoftBusFree(appInfo); 125 AppInfo* appInfo = (AppInfo*)SoftBusMalloc(sizeof(AppInfo)); variable 126 EXPECT_TRUE(appInfo != NULL); 127 memset_s(appInfo, sizeof(AppInfo), 0, sizeof(AppInfo)); 134 int32_t ret = TransOpenUdpChannel(appInfo, connOpt, &channelId); [all …]
|
D | trans_udp_nego_test.cpp | 133 static void GenerateAppInfo(AppInfo *appInfo) in GenerateAppInfo() argument 135 if (appInfo == NULL) { in GenerateAppInfo() 136 appInfo = (AppInfo*)SoftBusMalloc(sizeof(AppInfo)); in GenerateAppInfo() 137 EXPECT_TRUE(appInfo != NULL); in GenerateAppInfo() 138 memset_s(appInfo, sizeof(AppInfo), 0, sizeof(AppInfo)); in GenerateAppInfo() 140 int res = strcpy_s(appInfo->sessionKey, sizeof(appInfo->sessionKey), g_sessionKey); in GenerateAppInfo() 142 res = strcpy_s(appInfo->myData.addr, sizeof(appInfo->myData.addr), TEST_SOCKET_ADDR); in GenerateAppInfo() 144 res = strcpy_s(appInfo->peerData.addr, sizeof(appInfo->peerData.addr), TEST_SOCKET_ADDR); in GenerateAppInfo() 146 res = strcpy_s(appInfo->myData.sessionName, sizeof(appInfo->myData.sessionName), g_sessionName); in GenerateAppInfo() 148 …res = strcpy_s(appInfo->peerData.sessionName, sizeof(appInfo->peerData.sessionName), g_sessionName… in GenerateAppInfo() [all …]
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/ |
D | trans_udp_negotiation_exchange.c | 47 static inline CodeType getCodeType(const AppInfo *appInfo) in getCodeType() argument 49 return ((appInfo->udpConnType == UDP_CONN_TYPE_P2P) && in getCodeType() 50 …IsIShareSession(appInfo->myData.sessionName) && (IsIShareSession(appInfo->peerData.sessionName))) ? in getCodeType() 66 NO_SANITIZE("cfi") int32_t TransUnpackReplyUdpInfo(const cJSON *msg, AppInfo *appInfo) in TransUnpackReplyUdpInfo() argument 69 if (msg == NULL || appInfo == NULL) { in TransUnpackReplyUdpInfo() 74 (void)GetJsonObjectStringItem(msg, "PKG_NAME", appInfo->peerData.pkgName, PKG_NAME_SIZE_MAX); in TransUnpackReplyUdpInfo() 75 (void)GetJsonObjectNumberItem(msg, "UID", &(appInfo->peerData.uid)); in TransUnpackReplyUdpInfo() 76 (void)GetJsonObjectNumberItem(msg, "PID", &(appInfo->peerData.pid)); in TransUnpackReplyUdpInfo() 77 (void)GetJsonObjectNumberItem(msg, "BUSINESS_TYPE", (int*)&(appInfo->businessType)); in TransUnpackReplyUdpInfo() 81 if ((code == CODE_FILE_TRANS_UDP) && (getCodeType(appInfo) == CODE_FILE_TRANS_UDP)) { in TransUnpackReplyUdpInfo() [all …]
|
D | trans_udp_negotiation.c | 98 NO_SANITIZE("cfi") static int32_t NotifyUdpChannelOpened(const AppInfo *appInfo, bool isServerSide) in NotifyUdpChannelOpened() argument 103 info.myHandleId = appInfo->myHandleId; in NotifyUdpChannelOpened() 104 info.peerHandleId = appInfo->peerHandleId; in NotifyUdpChannelOpened() 105 info.channelId = appInfo->myData.channelId; in NotifyUdpChannelOpened() 108 info.businessType = appInfo->businessType; in NotifyUdpChannelOpened() 109 info.myIp = (char*)appInfo->myData.addr; in NotifyUdpChannelOpened() 110 info.sessionKey = (char*)appInfo->sessionKey; in NotifyUdpChannelOpened() 112 info.groupId = (char*)appInfo->groupId; in NotifyUdpChannelOpened() 114 if (LnnGetNetworkIdByUuid((const char *)appInfo->peerData.deviceId, networkId, in NotifyUdpChannelOpened() 120 info.peerSessionName = (char*)appInfo->peerData.sessionName; in NotifyUdpChannelOpened() [all …]
|
/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/ |
D | softbus_message_open_channel_test.cpp | 64 AppInfo *appInfo = (AppInfo *)SoftBusCalloc(sizeof(AppInfo)); in TestGetMsgPack() local 65 if (appInfo == nullptr) { in TestGetMsgPack() 69 appInfo->appType = APP_TYPE_NOT_CARE; in TestGetMsgPack() 70 appInfo->businessType = BUSINESS_TYPE_BYTE; in TestGetMsgPack() 71 appInfo->myData.channelId = 1; in TestGetMsgPack() 72 appInfo->myData.apiVersion = API_V2; in TestGetMsgPack() 73 appInfo->peerData.apiVersion = API_V2; in TestGetMsgPack() 74 …(void)memcpy_s(appInfo->myData.sessionName, SESSION_NAME_MAX_LEN, g_sessionName, (strlen(g_session… in TestGetMsgPack() 75 … (void)memcpy_s(appInfo->myData.pkgName, PKG_NAME_SIZE_MAX_LEN, g_pkgName, (strlen(g_pkgName)+1)); in TestGetMsgPack() 76 if (TransAuthChannelMsgPack(msg, appInfo) != SOFTBUS_OK) { in TestGetMsgPack() [all …]
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
D | softbus_proxychannel_listener.c | 49 static int32_t NotifyNormalChannelOpened(int32_t channelId, const AppInfo *appInfo, bool isServer) in NotifyNormalChannelOpened() argument 56 info.isEncrypt = appInfo->appType != APP_TYPE_AUTH; in NotifyNormalChannelOpened() 57 info.groupId = (char*)appInfo->groupId; in NotifyNormalChannelOpened() 58 info.peerSessionName = (char*)appInfo->peerData.sessionName; in NotifyNormalChannelOpened() 59 info.peerPid = appInfo->peerData.pid; in NotifyNormalChannelOpened() 60 info.peerUid = appInfo->peerData.uid; in NotifyNormalChannelOpened() 62 info.sessionKey = (char*)appInfo->sessionKey; in NotifyNormalChannelOpened() 64 info.fileEncrypt = appInfo->encrypt; in NotifyNormalChannelOpened() 65 info.algorithm = appInfo->algorithm; in NotifyNormalChannelOpened() 66 info.crc = appInfo->crc; in NotifyNormalChannelOpened() [all …]
|
D | softbus_proxychannel_message.c | 323 static int32_t PackHandshakeMsgForFastData(AppInfo *appInfo, cJSON *root) in PackHandshakeMsgForFastData() argument 326 if (appInfo->fastTransDataSize > 0) { in PackHandshakeMsgForFastData() 327 if (!AddNumberToJsonObject(root, JSON_KEY_ROUTE_TYPE, appInfo->routeType)) { in PackHandshakeMsgForFastData() 338 char *buf = TransProxyPackFastData(appInfo, &outLen); in PackHandshakeMsgForFastData() 360 if (!AddNumber16ToJsonObject(root, JSON_KEY_FIRST_DATA_SIZE, appInfo->fastTransDataSize)) { in PackHandshakeMsgForFastData() 367 static int32_t PackHandshakeMsgForNormal(SessionKeyBase64 *sessionBase64, AppInfo *appInfo, cJSON *… in PackHandshakeMsgForNormal() argument 371 (unsigned char *)appInfo->sessionKey, sizeof(appInfo->sessionKey)); in PackHandshakeMsgForNormal() 377 if (!AddNumberToJsonObject(root, JSON_KEY_UID, appInfo->myData.uid) || in PackHandshakeMsgForNormal() 378 !AddNumberToJsonObject(root, JSON_KEY_PID, appInfo->myData.pid) || in PackHandshakeMsgForNormal() 379 !AddStringToJsonObject(root, JSON_KEY_GROUP_ID, appInfo->groupId) || in PackHandshakeMsgForNormal() [all …]
|
/foundation/communication/dsoftbus/core/transmission/common/src/ |
D | softbus_message_open_channel.c | 56 static int PackFirstData(const AppInfo *appInfo, cJSON *json) in PackFirstData() argument 66 char *buf = TransTdcPackFastData(appInfo, &outLen); in PackFirstData() 72 if (outLen != appInfo->fastTransDataSize + FAST_TDC_EXT_DATA_SIZE) { in PackFirstData() 97 char *PackRequest(const AppInfo *appInfo) in PackRequest() argument 99 if (appInfo == NULL) { in PackRequest() 109 if (!AddNumber16ToJsonObject(json, FIRST_DATA_SIZE, appInfo->fastTransDataSize)) { in PackRequest() 112 if (appInfo->fastTransDataSize > 0) { in PackRequest() 113 if (PackFirstData(appInfo, json) != SOFTBUS_OK) { in PackRequest() 121 …int32_t ret = SoftBusBase64Encode(encodeSessionKey, BASE64KEY, &keyLen, (unsigned char*)appInfo->s… in PackRequest() 128 !AddNumberToJsonObject(json, API_VERSION, appInfo->myData.apiVersion) || in PackRequest() [all …]
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/ |
D | trans_channel_manager.c | 150 static int32_t TransGetRemoteInfo(const SessionParam* param, AppInfo* appInfo) in TransGetRemoteInfo() argument 152 if (param == NULL || appInfo == NULL) { in TransGetRemoteInfo() 156 appInfo->peerData.deviceId, sizeof(appInfo->peerData.deviceId)) != SOFTBUS_OK) { in TransGetRemoteInfo() 163 if (strcpy_s(appInfo->peerData.deviceId, sizeof(appInfo->peerData.deviceId), in TransGetRemoteInfo() 180 appInfo->peerData.deviceId, sizeof(appInfo->peerData.deviceId)) != SOFTBUS_OK) { in TransGetRemoteInfo() 188 static int32_t CopyAppInfoFromSessionParam(AppInfo* appInfo, const SessionParam* param) in CopyAppInfoFromSessionParam() argument 196 …if (appInfo->businessType == BUSINESS_TYPE_FILE || appInfo->businessType == BUSINESS_TYPE_STREAM) { in CopyAppInfoFromSessionParam() 200 appInfo->fastTransData = (uint8_t*)SoftBusCalloc(param->attr->fastTransDataSize); in CopyAppInfoFromSessionParam() 201 if (appInfo->fastTransData == NULL) { in CopyAppInfoFromSessionParam() 204 if (memcpy_s((char *)appInfo->fastTransData, param->attr->fastTransDataSize, in CopyAppInfoFromSessionParam() [all …]
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/ |
D | trans_auth_manager.c | 43 AppInfo appInfo; member 60 static int32_t TransPostAuthChannelMsg(const AppInfo *appInfo, int32_t authId, int32_t flag); 83 if (info->appInfo.myData.channelId == channelId) { in GetAuthChannelInfoByChanId() 108 if (info->appInfo.myData.channelId == channelId) { in GetAuthIdByChannelId() 142 NO_SANITIZE("cfi") static int32_t NotifyOpenAuthChannelSuccess(const AppInfo *appInfo, bool isServe… in NotifyOpenAuthChannelSuccess() argument 148 channelInfo.channelId = appInfo->myData.channelId; in NotifyOpenAuthChannelSuccess() 149 channelInfo.peerDeviceId = (char *)appInfo->peerData.deviceId; in NotifyOpenAuthChannelSuccess() 150 channelInfo.peerSessionName = (char *)appInfo->peerData.sessionName; in NotifyOpenAuthChannelSuccess() 156 channelInfo.autoCloseTime = appInfo->autoCloseTime; in NotifyOpenAuthChannelSuccess() 157 channelInfo.reqId = (char*)appInfo->reqId; in NotifyOpenAuthChannelSuccess() [all …]
|
D | trans_auth_message.c | 27 NO_SANITIZE("cfi") int32_t TransAuthChannelMsgPack(cJSON *msg, const AppInfo *appInfo) in TransAuthChannelMsgPack() argument 29 if (appInfo == NULL || msg == NULL) { in TransAuthChannelMsgPack() 32 if (appInfo->reqId[0] == '\0') { in TransAuthChannelMsgPack() 33 if (GenerateRandomStr((char *)(appInfo->reqId), REQ_ID_SIZE_MAX) != SOFTBUS_OK) { in TransAuthChannelMsgPack() 38 !AddStringToJsonObject(msg, "DEVICE_ID", appInfo->myData.deviceId) || in TransAuthChannelMsgPack() 39 !AddStringToJsonObject(msg, "PKG_NAME", appInfo->myData.pkgName) || in TransAuthChannelMsgPack() 40 !AddStringToJsonObject(msg, "SRC_BUS_NAME", appInfo->myData.sessionName) || in TransAuthChannelMsgPack() 41 !AddStringToJsonObject(msg, "DST_BUS_NAME", appInfo->peerData.sessionName) || in TransAuthChannelMsgPack() 42 !AddStringToJsonObject(msg, "REQ_ID", appInfo->reqId) || in TransAuthChannelMsgPack() 43 !AddNumberToJsonObject(msg, "MTU_SIZE", appInfo->myData.dataConfig)) { in TransAuthChannelMsgPack() [all …]
|
/foundation/ability/ability_runtime/test/moduletest/common/ams/app_recent_list_test/ |
D | ams_app_recent_list_module_test.cpp | 84 std::shared_ptr<ApplicationInfo> appInfo = std::make_shared<ApplicationInfo>(); in GetApplicationByIndex() local 85 appInfo->name = TEST_APP_NAME + std::to_string(index); in GetApplicationByIndex() 86 return appInfo; in GetApplicationByIndex() 92 std::shared_ptr<ApplicationInfo> appInfo = std::make_shared<ApplicationInfo>(); in CreateAppRunningRecordByIndex() local 94 appInfo->name = TEST_APP_NAME + std::to_string(index); in CreateAppRunningRecordByIndex() 96 abilityInfo->applicationName = appInfo->name; in CreateAppRunningRecordByIndex() 97 abilityInfo->applicationInfo.bundleName = appInfo->name; in CreateAppRunningRecordByIndex() 98 abilityInfo->process = appInfo->name; in CreateAppRunningRecordByIndex() 101 … EXPECT_TRUE(serviceInner_->GetBundleAndHapInfo(*abilityInfo, appInfo, bundleInfo, hapModuleInfo)); in CreateAppRunningRecordByIndex() 103 appInfo->name, abilityInfo->process, abilityInfo->applicationInfo.uid, bundleInfo); in CreateAppRunningRecordByIndex() [all …]
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/auth_channel/ |
D | trans_auth_message_test.cpp | 67 AppInfo* appInfo = (AppInfo*)SoftBusMalloc(sizeof(AppInfo)); variable 68 ASSERT_TRUE(appInfo != NULL); 69 memset_s(appInfo, sizeof(AppInfo), 0, sizeof(AppInfo)); 72 int32_t ret = TransAuthChannelMsgPack(NULL, appInfo); 78 ret = TransAuthChannelMsgUnpack(NULL, appInfo, 0); 84 ret = TransAuthChannelMsgUnpack(TEST_AUTH_DATA, appInfo, 0); 95 SoftBusFree(appInfo); 106 AppInfo* appInfo = (AppInfo*)SoftBusMalloc(sizeof(AppInfo)); variable 107 ASSERT_TRUE(appInfo != NULL); 108 memset_s(appInfo, sizeof(AppInfo), 0, sizeof(AppInfo)); [all …]
|
/foundation/communication/dsoftbus/tests/core/common/security/permission/common/unittest/ |
D | permission_entry_static_test.cpp | 147 SoftBusAppInfo *appInfo = (SoftBusAppInfo *)SoftBusCalloc(sizeof(SoftBusAppInfo)); variable 148 ASSERT_TRUE(appInfo != NULL); 149 ListInit(&appInfo->node); 150 appInfo->type = NATIVE_APP; 151 appInfo->uid = UNKNOWN_VALUE; 152 appInfo->pid = UNKNOWN_VALUE; 153 appInfo->actions = 0; 156 ret = GetPermType(appInfo, pItem); 160 ret = GetPermType(appInfo, pItem); 163 appInfo->type = SYSTEM_APP; [all …]
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_crowdtesting_test/ |
D | bms_bundle_crowdtesting_test.cpp | 212 ApplicationInfo appInfo; variable 213 bool result = dataMgr->GetApplicationInfo(BUNDLE_NAME, 0, USERID, appInfo); 215 EXPECT_EQ(appInfo.appDistributionType, Constants::APP_DISTRIBUTION_TYPE_CROWDTESTING); 216 EXPECT_EQ(appInfo.appProvisionType, Constants::APP_PROVISION_TYPE_RELEASE); 235 ApplicationInfo appInfo; variable 236 bool result = dataMgr->GetApplicationInfo(BUNDLE_NAME_2, 0, USERID, appInfo); 238 EXPECT_EQ(appInfo.appDistributionType, Constants::APP_DISTRIBUTION_TYPE_OS_INTEGRATION); 239 EXPECT_EQ(appInfo.appProvisionType, Constants::APP_PROVISION_TYPE_RELEASE); 258 ApplicationInfo appInfo; variable 259 bool result = dataMgr->GetApplicationInfo(BUNDLE_NAME_2, 0, USERID, appInfo); [all …]
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
D | application_env_impl.cpp | 27 void ApplicationEnvImpl::SetAppInfo(const AppInfo &appInfo) in SetAppInfo() argument 29 bundleName_ = appInfo.bundleName; in SetAppInfo() 30 dataPath_ = appInfo.dataPath; in SetAppInfo() 31 srcPath_ = appInfo.srcPath; in SetAppInfo() 40 void ApplicationEnvImpl::SetAppInfo(const ApplicationInfo &appInfo) in SetAppInfo() argument 42 bundleName_ = appInfo.bundleName; in SetAppInfo() 43 dataPath_ = appInfo.dataDir; in SetAppInfo() 44 srcPath_ = appInfo.codePath; in SetAppInfo()
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
D | trans_tcp_direct_manager.c | 43 if (TransTdcOnChannelOpenFailed(node->appInfo.myData.pkgName, node->appInfo.myData.pid, in OnSessionOpenFailProc() 49 int32_t fd = node->appInfo.fd; in OnSessionOpenFailProc() 205 … if ((strcmp(item->appInfo.myData.pkgName, pkgName) == 0) && (item->appInfo.myData.pid == pid)) { in TransTdcDeathCallback() 208 DelTrigger(item->listenMod, item->appInfo.fd, RW_TRIGGER); in TransTdcDeathCallback() 216 static int32_t TransUpdAppInfo(AppInfo *appInfo, const ConnectOption *connInfo) in TransUpdAppInfo() argument 218 appInfo->peerData.port = connInfo->socketOption.port; in TransUpdAppInfo() 219 …if (strcpy_s(appInfo->peerData.addr, sizeof(appInfo->peerData.addr), connInfo->socketOption.addr) … in TransUpdAppInfo() 224 appInfo->routeType = connInfo->type == CONNECT_TCP ? WIFI_STA : WIFI_P2P; in TransUpdAppInfo() 225 appInfo->protocol = connInfo->socketOption.protocol; in TransUpdAppInfo() 228 …if (LnnGetLocalStrInfo(STRING_KEY_NODE_ADDR, appInfo->myData.addr, sizeof(appInfo->myData.addr)) != in TransUpdAppInfo() [all …]
|
D | trans_tcp_direct_message.c | 225 if (conn->appInfo.routeType == WIFI_STA) { in SendFailToFlushDevice() 227 AnonymizesNetworkID(conn->appInfo.peerData.deviceId)); in SendFailToFlushDevice() 228 if (AuthFlushDevice(conn->appInfo.peerData.deviceId) != SOFTBUS_OK) { in SendFailToFlushDevice() 230 LnnRequestLeaveSpecific(conn->appInfo.peerNetWorkId, CONNECTION_ADDR_WLAN); in SendFailToFlushDevice() 266 int fd = conn->appInfo.fd; in TransTdcPostBytes() 290 info.fd = conn.appInfo.fd; in NotifyChannelOpened() 291 info.sessionKey = conn.appInfo.sessionKey; in NotifyChannelOpened() 292 info.myHandleId = conn.appInfo.myHandleId; in NotifyChannelOpened() 293 info.peerHandleId = conn.appInfo.peerHandleId; in NotifyChannelOpened() 294 info.peerSessionName = conn.appInfo.peerData.sessionName; in NotifyChannelOpened() [all …]
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/ |
D | trans_tcp_direct_message_test.cpp | 115 conn->appInfo.myData.pid = 1; in TestSetSessionConn() 116 conn->appInfo.fd = g_netWorkId; in TestSetSessionConn() 117 …(void)memcpy_s(conn->appInfo.myData.pkgName, PKG_NAME_SIZE_MAX_LEN, g_pkgName, (strlen(g_pkgName)+… in TestSetSessionConn() 123 AppInfo *appInfo = (AppInfo *)SoftBusCalloc(sizeof(AppInfo)); in TestSetAppInfo() local 124 if (appInfo == nullptr) { in TestSetAppInfo() 128 (void)memset_s(appInfo, sizeof(AppInfo), 0, sizeof(AppInfo)); in TestSetAppInfo() 129 appInfo->businessType = BUSINESS_TYPE_BYTE; in TestSetAppInfo() 130 appInfo->appType = APP_TYPE_NORMAL; in TestSetAppInfo() 131 appInfo->myData.apiVersion = API_V2; in TestSetAppInfo() 132 appInfo->peerData.apiVersion = API_V2; in TestSetAppInfo() [all …]
|
/foundation/ability/ability_runtime/test/unittest/ams_service_load_ability_process_test/ |
D | ams_service_load_ability_process_test.cpp | 68 const std::shared_ptr<ApplicationInfo>& appInfo, const pid_t newPid) const; 103 const std::shared_ptr<ApplicationInfo>& appInfo, const pid_t newPid) const in StartLoadAbility() argument 109 service_->LoadAbility(token, preToken, abilityInfo, appInfo, nullptr); in StartLoadAbility() 114 appInfo->name, abilityInfo->process, appInfo->uid, bundleInfo); in StartLoadAbility() 135 auto appInfo = std::make_shared<ApplicationInfo>(); variable 136 appInfo->name = GetTestAppName(); 137 appInfo->bundleName = GetTestAppName(); 141 StartLoadAbility(token, nullptr, abilityInfo, appInfo, PID); 149 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); 184 auto appInfo = std::make_shared<ApplicationInfo>(); variable [all …]
|
/foundation/communication/dsoftbus/core/common/security/permission/common/ |
D | permission_entry.c | 158 SoftBusAppInfo *appInfo = (SoftBusAppInfo *)SoftBusCalloc(sizeof(SoftBusAppInfo)); in ProcessAppInfo() local 159 if (appInfo == NULL) { in ProcessAppInfo() 162 ListInit(&appInfo->node); in ProcessAppInfo() 163 appInfo->type = UNKNOWN_VALUE; in ProcessAppInfo() 164 appInfo->uid = UNKNOWN_VALUE; in ProcessAppInfo() 165 appInfo->pid = UNKNOWN_VALUE; in ProcessAppInfo() 166 appInfo->actions = 0; in ProcessAppInfo() 170 …int32_t ret = GetStringItemByJsonObject(object, APP_INFO_PKG_NAME_STR, appInfo->pkgName, PKG_NAME_… in ProcessAppInfo() 179 appInfo->type = GetPeMapValue(mapKey); in ProcessAppInfo() 180 if (appInfo->type == UNKNOWN_VALUE) { in ProcessAppInfo() [all …]
|
/foundation/ability/ability_runtime/test/unittest/ams_ability_running_record_test/ |
D | ams_ability_running_record_test.cpp | 96 auto appInfo = std::make_shared<ApplicationInfo>(); in GetTestAppRunningRecord() local 97 appInfo->name = GetTestAppName(); in GetTestAppRunningRecord() 98 …testAppRecord_ = std::make_shared<AppRunningRecord>(appInfo, AppRecordId::Create(), GetProcessName… in GetTestAppRunningRecord() 124 auto appInfo = std::make_shared<ApplicationInfo>(); variable 125 appInfo->name = GetTestAppName(); 127 appRunningRecord->AddModule(appInfo, abilityInfo, token, hapModuleInfo, nullptr); 128 …auto moduleRecord = appRunningRecord->GetModuleRecordByModuleName(appInfo->bundleName, hapModuleIn… 153 auto appInfo = std::make_shared<ApplicationInfo>(); variable 154 appInfo->name = GetTestAppName(); 156 appRunningRecord->AddModule(appInfo, nullptr, token, hapModuleInfo, nullptr); [all …]
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/ |
D | trans_proxy_network_test.cpp | 189 AppInfo appInfo; variable 195 appInfo.appType = APP_TYPE_NOT_CARE; 196 ret = OnProxyChannelOpened(channelId, &appInfo, isServer); 199 appInfo.appType = APP_TYPE_NORMAL; 202 ret = OnProxyChannelOpened(channelId, &appInfo, isServer); 204 ret = OnProxyChannelOpened(channelId, &appInfo, isServer); 207 appInfo.appType = APP_TYPE_INNER; 208 ret = OnProxyChannelOpened(channelId, &appInfo, isServer); 222 AppInfo appInfo; variable 228 appInfo.appType = APP_TYPE_NOT_CARE; [all …]
|
/foundation/ability/ability_lite/frameworks/ability_lite/src/ |
D | ability_env_impl.cpp | 21 void AbilityEnvImpl::SetAppInfo(const AppInfo& appInfo) in SetAppInfo() argument 23 bundleName_ = appInfo.bundleName; in SetAppInfo() 24 dataPath_ = appInfo.dataPath; in SetAppInfo() 25 srcPath_ = appInfo.srcPath; in SetAppInfo() 26 if (!appInfo.isNativeApp && !appInfo.moduleNames.empty()) { in SetAppInfo() 27 std::string moduleName = appInfo.moduleNames.front(); in SetAppInfo()
|