/foundation/systemabilitymgr/samgr_lite/samgr/registry/ |
H A D | service_registry.c | 48 int32 __attribute__((weak)) SAMGR_GetSystemCapabilitiesApi(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN],
in SAMGR_GetSystemCapabilitiesApi() argument 51 (void)sysCaps;
in SAMGR_GetSystemCapabilitiesApi()
|
H A D | service_registry.h | 32 int32 SAMGR_GetSystemCapabilitiesApi(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *size);
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/parsesyscap_fuzzer/ |
H A D | parsesyscap_fuzzer.cpp | 54 std::vector<std::string> sysCaps; in DoSomethingInterestingWithMyAPI() local 56 auto ret = bundleParser.ParseSysCap("rpcid.sc", sysCaps); in DoSomethingInterestingWithMyAPI()
|
/foundation/systemabilitymgr/samgr_lite/samgr_client/source/ |
H A D | remote_register_rpc.c | 117 int32 SAMGR_GetSystemCapabilitiesApi(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *size)
in SAMGR_GetSystemCapabilitiesApi() argument 120 return SAMGR_GetSystemCapabilities(g_remoteRegister.endpoint, sysCaps, size);
in SAMGR_GetSystemCapabilitiesApi()
|
H A D | remote_register.c | 100 int32 SAMGR_GetSystemCapabilitiesApi(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *size)
in SAMGR_GetSystemCapabilitiesApi() argument 103 return SAMGR_GetSystemCapabilities(g_remoteRegister.endpoint, sysCaps, size);
in SAMGR_GetSystemCapabilitiesApi()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_parser.cpp | 40 bool ParseStr(const char *buf, const int itemLen, int totalLen, std::vector<std::string> &sysCaps) in ParseStr() argument 56 sysCaps.emplace_back((std::string)item, 0, itemLen); in ParseStr() 174 ErrCode BundleParser::ParseSysCap(const std::string &pathName, std::vector<std::string> &sysCaps) const in ParseSysCap() 176 APP_LOGD("Parse sysCaps from %{private}s", pathName.c_str()); in ParseSysCap() 184 APP_LOGD("Rpcid.sc is not exist, and do not need verification sysCaps"); in ParseSysCap() 208 if (!ParseStr(outBuffer, SINGLE_SYSCAP_LENGTH, outLen, sysCaps)) { in ParseSysCap() 214 APP_LOGD("Parse sysCaps str success"); in ParseSysCap()
|
/foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr/ |
H A D | samgr_lite.h | 283 * all available system capabilities saved in sysCaps.
287 int32 (*GetSystemAvailableCapabilities)(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum);
|
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/ |
H A D | endpoint_rpc.c | 192 static int32 ParseGetAllSysCapsReply(IpcIo *reply, char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN],
in ParseGetAllSysCapsReply() argument 218 if (strcpy_s(sysCaps[cnt], sizeof(sysCaps[cnt]), sysCap) != EC_SUCCESS) {
in ParseGetAllSysCapsReply() 229 char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum)
in SAMGR_GetSystemCapabilities() 247 ret = ParseGetAllSysCapsReply(&reply, sysCaps, sysCapNum, &isEnd, &startIdx);
in SAMGR_GetSystemCapabilities() 228 SAMGR_GetSystemCapabilities(const Endpoint *endpoint, char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum) SAMGR_GetSystemCapabilities() argument
|
H A D | endpoint.h | 77 char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum);
|
H A D | endpoint.c | 222 static int32 ParseGetAllSysCapsReply(IpcIo *reply, char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN],
in ParseGetAllSysCapsReply() argument 241 if (strcpy_s(sysCaps[cnt], sizeof(sysCaps[cnt]), sysCap) != EC_SUCCESS) {
in ParseGetAllSysCapsReply() 252 char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum)
in SAMGR_GetSystemCapabilities() 270 ret = ParseGetAllSysCapsReply(&reply, sysCaps, sysCapNum, &isEnd, &startIdx);
in SAMGR_GetSystemCapabilities() 251 SAMGR_GetSystemCapabilities(const Endpoint *endpoint, char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum) SAMGR_GetSystemCapabilities() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_parser.h | 49 * @param sysCaps Indicates the sysCap. 52 ErrCode ParseSysCap(const std::string &pathName, std::vector<std::string> &sysCaps) const;
|
/foundation/systemabilitymgr/samgr_lite/samgr/source/ |
H A D | samgr_lite.c | 47 static int32 GetSystemAvailableCapabilities(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum);
382 static int32 GetSystemAvailableCapabilities(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum)
in GetSystemAvailableCapabilities() argument 384 if (sysCaps == NULL || sysCapNum == NULL) {
in GetSystemAvailableCapabilities() 387 return SAMGR_GetSystemCapabilitiesApi(sysCaps, sysCapNum);
in GetSystemAvailableCapabilities()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_parser.h | 67 static bool CheckAbilityCapIsValid(AbilityInfo &abilityInfo, char sysCaps[][MAX_SYSCAP_NAME_LEN],
|
H A D | bundle_installer.h | 65 bool CheckAbilityCapIsValid(AbilityInfo *abilityInfo, char sysCaps[][MAX_SYSCAP_NAME_LEN], int32_t sysNum);
|
/foundation/systemabilitymgr/samgr_lite/samgr_server/source/ |
H A D | samgr_server_rpc.c | 711 cJSON *sysCaps = cJSON_GetObjectItem(root, "systemCapability"); in ParseSysCap() local 712 if (!cJSON_IsArray(sysCaps)) { in ParseSysCap() 717 int32_t size = cJSON_GetArraySize(sysCaps); in ParseSysCap() 724 cJSON *item = cJSON_GetArrayItem(sysCaps, i); in ParseSysCap()
|
H A D | samgr_server.c | 601 cJSON *sysCaps = cJSON_GetObjectItem(root, "systemCapability");
in ParseSysCap() local 602 if (!cJSON_IsArray(sysCaps)) {
in ParseSysCap() 607 int32_t size = cJSON_GetArraySize(sysCaps);
in ParseSysCap() 614 cJSON *item = cJSON_GetArrayItem(sysCaps, i);
in ParseSysCap()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_ms_feature.cpp | 149 char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN]; in GetSystemAvailableCapabilities() local 151 uint8_t errorCode = OHOS::ManagerService::GetInstance().GetSystemAvailableCapabilities(sysCaps, &len); in GetSystemAvailableCapabilities() 158 WriteString(reply, sysCaps[index]); in GetSystemAvailableCapabilities()
|
H A D | bundle_parser.cpp | 561 bool BundleParser::CheckAbilityCapIsValid(AbilityInfo &abilityInfo, char sysCaps[][MAX_SYSCAP_NAME_LEN], int sysNum) in CheckAbilityCapIsValid() argument 567 if (strcmp(deviceCapName.name, sysCaps[sysIndex]) == 0) { in CheckAbilityCapIsValid()
|