Home
last modified time | relevance | path

Searched refs:sysCaps (Results 1 - 18 of 18) sorted by relevance

/foundation/systemabilitymgr/samgr_lite/samgr/registry/
H A Dservice_registry.c48 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 Dservice_registry.h32 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 Dparsesyscap_fuzzer.cpp54 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 Dremote_register_rpc.c117 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 Dremote_register.c100 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 Dbundle_parser.cpp40 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 Dsamgr_lite.h283 * 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 Dendpoint_rpc.c192 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 Dendpoint.h77 char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN], int32 *sysCapNum);
H A Dendpoint.c222 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 Dbundle_parser.h49 * @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 Dsamgr_lite.c47 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 Dbundle_parser.h67 static bool CheckAbilityCapIsValid(AbilityInfo &abilityInfo, char sysCaps[][MAX_SYSCAP_NAME_LEN],
H A Dbundle_installer.h65 bool CheckAbilityCapIsValid(AbilityInfo *abilityInfo, char sysCaps[][MAX_SYSCAP_NAME_LEN], int32_t sysNum);
/foundation/systemabilitymgr/samgr_lite/samgr_server/source/
H A Dsamgr_server_rpc.c711 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 Dsamgr_server.c601 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 Dbundle_ms_feature.cpp149 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 Dbundle_parser.cpp561 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()

Completed in 12 milliseconds