/base/inputmethod/imf/frameworks/cj/src/ |
H A D | utils.cpp | 31 void Utils::InputMethodProperty2C(CInputMethodProperty &props, const Property &property) in InputMethodProperty2C() argument 33 props.name = Utils::MallocCString(property.name); in InputMethodProperty2C() 34 props.id = Utils::MallocCString(property.id); in InputMethodProperty2C() 35 props.label = Utils::MallocCString(property.label); in InputMethodProperty2C() 36 props.labelId = property.labelId; in InputMethodProperty2C() 37 props.icon = Utils::MallocCString(property.icon); in InputMethodProperty2C() 38 props.iconId = property.iconId; in InputMethodProperty2C() 43 Property property; in C2InputMethodProperty() local 44 property.name = std::string(props.name); in C2InputMethodProperty() 45 property in C2InputMethodProperty() 53 InputMethodSubProperty2C(CInputMethodSubtype &props, const SubProperty &property) InputMethodSubProperty2C() argument [all...] |
/base/startup/appspawn/modules/asan/ |
H A D | asan_detector.c | 49 static int SetAsanEnabledEnv(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetAsanEnabledEnv() argument 53 if (CheckAppMsgFlagsSet(property, g_configTable[i].flag)) { in SetAsanEnabledEnv() 87 static void SetGwpAsanEnabled(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetGwpAsanEnabled() argument 89 if (!(CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE) || in SetGwpAsanEnabled() 90 CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_NORMAL))) { in SetGwpAsanEnabled() 93 if (IsDeveloperModeOn(property)) { in SetGwpAsanEnabled() 95 CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE)); in SetGwpAsanEnabled() 96 may_init_gwp_asan(CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE)); in SetGwpAsanEnabled() 118 static int AsanSpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property) in AsanSpawnGetSpawningFlag() argument 120 APPSPAWN_LOGV("Prepare spawn app %{public}s", GetProcessName(property)); in AsanSpawnGetSpawningFlag() 143 AsanSpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property) AsanSpawnInitSpawningEnv() argument [all...] |
/base/startup/appspawn/modules/common/ |
H A D | appspawn_adapter.cpp | 46 int SetAppAccessToken(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetAppAccessToken() argument 51 reinterpret_cast<AppSpawnMsgAccessToken *>(GetAppProperty(property, TLV_ACCESS_TOKEN_INFO)); in SetAppAccessToken() 53 "No access token in msg %{public}s", GetProcessName(property)); in SetAppAccessToken() 55 if (IsNWebSpawnMode(content) || IsIsolatedNativeSpawnMode(content, property)) { in SetAppAccessToken() 63 "set access token id failed, ret: %{public}d %{public}s", ret, GetProcessName(property)); in SetAppAccessToken() 64 APPSPAWN_LOGV("SetAppAccessToken success for %{public}s", GetProcessName(property)); in SetAppAccessToken() 68 int SetSelinuxConNweb(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSelinuxConNweb() argument 73 reinterpret_cast<char *>(GetAppPropertyExt(property, MSG_EXT_NAME_PROCESS_TYPE, &len)); in SetSelinuxConNweb() 85 int SetSelinuxCon(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSelinuxCon() argument 88 APPSPAWN_LOGV("SetSelinuxCon IsDeveloperModeOn %{public}d", IsDeveloperModeOn(property)); in SetSelinuxCon() 160 SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property) SetSeccompFilter() argument 206 SetInternetPermission(const AppSpawningCtx *property) SetInternetPermission() argument 219 InitAppCommonEnv(const AppSpawningCtx *property) InitAppCommonEnv() argument 233 SetEnvInfo(const AppSpawnMgr *content, const AppSpawningCtx *property) SetEnvInfo() argument [all...] |
H A D | appspawn_common.c | 66 static int SetProcessName(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetProcessName() argument 68 const char *processName = GetProcessName(property); in SetProcessName() 99 static int SetKeepCapabilities(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetKeepCapabilities() argument 101 AppSpawnMsgDacInfo *dacInfo = (AppSpawnMsgDacInfo *)GetAppProperty(property, TLV_DAC_INFO); in SetKeepCapabilities() 103 "No tlv %{public}d in msg %{public}s", TLV_DOMAIN_INFO, GetProcessName(property)); in SetKeepCapabilities() 113 static int SetCapabilities(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetCapabilities() argument 152 static void InitDebugParams(const AppSpawnMgr *content, const AppSpawningCtx *property) in InitDebugParams() argument 159 const char *processName = GetProcessName(property); in InitDebugParams() 177 static void ClearEnvironment(const AppSpawnMgr *content, const AppSpawningCtx *property) in ClearEnvironment() argument 185 AppSpawningCtx *ctx = (AppSpawningCtx *)property; in ClearEnvironment() 191 SetXpmConfig(const AppSpawnMgr *content, const AppSpawningCtx *property) SetXpmConfig() argument 227 SetUidGid(const AppSpawnMgr *content, const AppSpawningCtx *property) SetUidGid() argument 273 SetFileDescriptors(const AppSpawnMgr *content, const AppSpawningCtx *property) SetFileDescriptors() argument 332 WaitForDebugger(const AppSpawningCtx *property) WaitForDebugger() argument 356 SpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property) SpawnInitSpawningEnv() argument 371 SpawnSetAppEnv(AppSpawnMgr *content, AppSpawningCtx *property) SpawnSetAppEnv() argument 379 SpawnSetIntPermission(AppSpawnMgr *content, AppSpawningCtx *property) SpawnSetIntPermission() argument 387 SpawnLoadSilk(const AppSpawnMgr *content, const AppSpawningCtx *property) SpawnLoadSilk() argument 394 SpawnSetProperties(AppSpawnMgr *content, AppSpawningCtx *property) SpawnSetProperties() argument 437 SpawnComplete(AppSpawnMgr *content, AppSpawningCtx *property) SpawnComplete() argument 452 SpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property) SpawnGetSpawningFlag() argument 477 CloseFdArgs(AppSpawnMgr *content, AppSpawningCtx *property) CloseFdArgs() argument 495 SetFdEnv(AppSpawnMgr *content, AppSpawningCtx *property) SetFdEnv() argument [all...] |
H A D | appspawn_adapter.h | 25 int SetAppAccessToken(const AppSpawnMgr *content, const AppSpawningCtx *property); 26 int SetSelinuxCon(const AppSpawnMgr *content, const AppSpawningCtx *property); 29 int SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property); 30 int SetInternetPermission(const AppSpawningCtx *property); 31 int32_t SetEnvInfo(const AppSpawnMgr *content, const AppSpawningCtx *property);
|
H A D | appspawn_begetctl.c | 68 APPSPAWN_STATIC int RunBegetctlBootApp(AppSpawnMgr *content, AppSpawningCtx *property) in RunBegetctlBootApp() argument 70 APPSPAWN_CHECK_ONLY_EXPER(property != NULL, return -1); in RunBegetctlBootApp() 72 if ((property->client.flags & APP_BEGETCTL_BOOT) != APP_BEGETCTL_BOOT) { in RunBegetctlBootApp() 77 const char *cmdMsg = (const char *)GetAppSpawnMsgExtInfo(property->message, MSG_EXT_NAME_BEGET_PTY_NAME, &len); in RunBegetctlBootApp()
|
/base/startup/appspawn/test/moduletest/plugin-sample/ |
H A D | appspawn_plugin_sample.c | 45 static int TestPluginPreFork(AppSpawnMgr *content, AppSpawningCtx *property) in TestPluginPreFork() argument 47 APPSPAWN_LOGI("TestPlugin pre fork for %{public}s ", GetProcessName(property)); in TestPluginPreFork() 51 static int TestPluginPreReply(AppSpawnMgr *content, AppSpawningCtx *property) in TestPluginPreReply() argument 53 APPSPAWN_LOGI("TestPlugin pre reply to client for %{public}s ", GetProcessName(property)); in TestPluginPreReply() 57 static int TestPluginPostReply(AppSpawnMgr *content, AppSpawningCtx *property) in TestPluginPostReply() argument 59 APPSPAWN_LOGI("TestPlugin post reply to client for %{public}s ", GetProcessName(property)); in TestPluginPostReply() 63 static int ChildPreColdBoot(AppSpawnMgr *content, AppSpawningCtx *property) in ChildPreColdBoot() argument 65 APPSPAWN_LOGI("TestPlugin pre cold boot for %{public}s ", GetProcessName(property)); in ChildPreColdBoot() 68 static int ChildExecute(AppSpawnMgr *content, AppSpawningCtx *property) in ChildExecute() argument 70 APPSPAWN_LOGI("TestPlugin set app property fo in ChildExecute() 73 ChildPreRely(AppSpawnMgr *content, AppSpawningCtx *property) ChildPreRely() argument 78 ChildPostRely(AppSpawnMgr *content, AppSpawningCtx *property) ChildPostRely() argument 83 ChildPreRun(AppSpawnMgr *content, AppSpawningCtx *property) ChildPreRun() argument [all...] |
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_child_test.cpp | 77 AppSpawningCtx *property = nullptr; in HWTEST_F() local 89 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 91 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); in HWTEST_F() 94 AppSpawnHookExecute(STAGE_PARENT_PRE_FORK, 0, content, &property->client); in HWTEST_F() 97 ret = AppSpawnChild(content, &property->client); in HWTEST_F() 98 property = nullptr; in HWTEST_F() 100 DeleteAppSpawningCtx(property); in HWTEST_F() 114 AppSpawningCtx *property = nullptr; in HWTEST_F() local 131 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 133 APPSPAWN_CHECK_ONLY_EXPER(property ! in HWTEST_F() 151 AppSpawningCtx *property = nullptr; HWTEST_F() local 190 AppSpawningCtx *property = nullptr; HWTEST_F() local 230 AppSpawningCtx *property = nullptr; HWTEST_F() local 271 AppSpawningCtx *property = nullptr; HWTEST_F() local 315 AppSpawningCtx *property = nullptr; HWTEST_F() local 359 AppSpawningCtx *property = nullptr; HWTEST_F() local 404 AppSpawningCtx *property = nullptr; HWTEST_F() local 441 AppSpawningCtx *property = nullptr; HWTEST_F() local 482 AppSpawningCtx *property = nullptr; HWTEST_F() local 525 AppSpawningCtx *property = nullptr; HWTEST_F() local 569 AppSpawningCtx *property = nullptr; HWTEST_F() local 613 AppSpawningCtx *property = nullptr; HWTEST_F() local 657 AppSpawningCtx *property = nullptr; HWTEST_F() local 714 AppSpawningCtx *property = nullptr; HWTEST_F() local 747 GetColdRunArgs(AppSpawningCtx *property, bool isNweb, const char *arg) GetColdRunArgs() argument 771 AppSpawningCtx *property = nullptr; HWTEST_F() local 812 AppSpawningCtx *property = nullptr; HWTEST_F() local 855 AppSpawningCtx *property = nullptr; HWTEST_F() local 904 AppSpawningCtx *property = nullptr; HWTEST_F() local [all...] |
H A D | app_spawn_common_test.cpp | 45 APPSPAWN_STATIC int RunChildByRenderCmd(const AppSpawnMgr *content, const AppSpawningCtx *property);
71 AppSpawningCtx *property = nullptr;
in HWTEST_F() local 83 property = g_testHelper.GetAppProperty(clientHandle, reqHandle);
in HWTEST_F() 84 property->client.flags |= APP_DEVELOPER_MODE;
in HWTEST_F() 85 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break);
in HWTEST_F() 86 ret = SetSelinuxCon(mgr, property);
in HWTEST_F() 88 DeleteAppSpawningCtx(property);
in HWTEST_F() 98 AppSpawningCtx *property = nullptr;
in HWTEST_F() local 110 property = g_testHelper.GetAppProperty(clientHandle, reqHandle);
in HWTEST_F() 111 property in HWTEST_F() 125 AppSpawningCtx *property = nullptr; HWTEST_F() local 155 AppSpawningCtx *property = nullptr; HWTEST_F() local 187 AppSpawningCtx *property = nullptr; HWTEST_F() local 219 AppSpawningCtx *property = nullptr; HWTEST_F() local 251 AppSpawningCtx *property = nullptr; HWTEST_F() local 273 AppSpawningCtx *property = nullptr; HWTEST_F() local 295 AppSpawningCtx *property = nullptr; HWTEST_F() local 317 AppSpawningCtx *property = nullptr; HWTEST_F() local 339 AppSpawningCtx *property = nullptr; HWTEST_F() local 454 AppSpawningCtx *property = nullptr; HWTEST_F() local 483 AppSpawningCtx *property = nullptr; HWTEST_F() local 512 AppSpawningCtx *property = nullptr; HWTEST_F() local 536 AppSpawningCtx *property = nullptr; HWTEST_F() local 564 AppSpawningCtx *property = nullptr; HWTEST_F() local 592 AppSpawningCtx *property = nullptr; HWTEST_F() local 655 AppSpawningCtx property; HWTEST_F() local [all...] |
H A D | app_spawn_beget_test.cpp | 119 AppSpawningCtx *property = nullptr; in HWTEST_F() local 142 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 144 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); in HWTEST_F() 147 AppSpawnHookExecute(STAGE_PARENT_PRE_FORK, 0, content, &property->client); in HWTEST_F() 150 ret = AppSpawnChild(content, &property->client); in HWTEST_F() 151 property = nullptr; in HWTEST_F() 153 DeleteAppSpawningCtx(property); in HWTEST_F() 163 AppSpawningCtx *property = nullptr; in HWTEST_F() local 178 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 179 APPSPAWN_CHECK_ONLY_EXPER(property ! in HWTEST_F() 190 AppSpawningCtx *property = nullptr; HWTEST_F() local [all...] |
H A D | app_spawn_sandbox_new_test.cpp | 318 static SandboxContext *TestGetSandboxContext(const AppSpawningCtx *property, int nwebspawn) in TestGetSandboxContext() argument 320 AppSpawnMsgFlags *msgFlags = (AppSpawnMsgFlags *)GetAppProperty(property, TLV_MSG_FLAGS); in TestGetSandboxContext() 321 APPSPAWN_CHECK(msgFlags != nullptr, return nullptr, "No msg flags in msg %{public}s", GetProcessName(property)); in TestGetSandboxContext() 327 context->bundleName = GetBundleName(property); in TestGetSandboxContext() 329 context->dlpBundle = strcmp(GetProcessName(property), "com.ohos.dlpmanager") == 0; in TestGetSandboxContext() 334 context->message = property->message; in TestGetSandboxContext() 726 AppSpawningCtx *property = nullptr; in HWTEST_F() local 750 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 751 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); in HWTEST_F() 752 ret = MountSandboxConfigs(sandbox, property, in HWTEST_F() 766 AppSpawningCtx *property = nullptr; HWTEST_F() local 808 AppSpawningCtx *property = nullptr; HWTEST_F() local 850 AppSpawningCtx *property = nullptr; HWTEST_F() local 1160 AppSpawningCtx *property = nullptr; HWTEST_F() local 1213 AppSpawningCtx *property = nullptr; HWTEST_F() local 1265 AppSpawningCtx *property = nullptr; HWTEST_F() local 1325 AppSpawningCtx *property = nullptr; HWTEST_F() local 1376 AppSpawningCtx *property = nullptr; HWTEST_F() local 1428 AppSpawningCtx *property = nullptr; HWTEST_F() local 1486 AppSpawningCtx *property = nullptr; HWTEST_F() local 1543 AppSpawningCtx *property = nullptr; HWTEST_F() local 1596 AppSpawningCtx *property = nullptr; HWTEST_F() local 1649 AppSpawningCtx *property = nullptr; HWTEST_F() local 1702 AppSpawningCtx *property = nullptr; HWTEST_F() local 1754 AppSpawningCtx *property = nullptr; HWTEST_F() local 1806 AppSpawningCtx *property = nullptr; HWTEST_F() local 1857 AppSpawningCtx *property = nullptr; HWTEST_F() local 1909 AppSpawningCtx *property = nullptr; HWTEST_F() local 1961 AppSpawningCtx *property = nullptr; HWTEST_F() local 2013 AppSpawningCtx *property = nullptr; HWTEST_F() local 2049 AppSpawningCtx *property = nullptr; HWTEST_F() local 2086 AppSpawningCtx *property = nullptr; HWTEST_F() local [all...] |
/base/startup/appspawn/standard/ |
H A D | appspawn_manager.h | 153 void DeleteAppSpawningCtx(AppSpawningCtx *property); 198 APPSPAWN_INLINE int IsDeveloperModeOn(const AppSpawningCtx *property) in IsDeveloperModeOn() argument 200 return (property != NULL && ((property->client.flags & APP_DEVELOPER_MODE) == APP_DEVELOPER_MODE)); in IsDeveloperModeOn() 203 APPSPAWN_INLINE int IsJitFortModeOn(const AppSpawningCtx *property) in IsJitFortModeOn() argument 205 return (property != NULL && ((property->client.flags & APP_JITFORT_MODE) == APP_JITFORT_MODE)); in IsJitFortModeOn() 214 APPSPAWN_INLINE const char *GetProcessName(const AppSpawningCtx *property) in GetProcessName() argument 216 if (property == NULL || property in GetProcessName() 222 GetBundleName(const AppSpawningCtx *property) GetBundleName() argument 234 GetAppProperty(const AppSpawningCtx *property, uint32_t type) GetAppProperty() argument 241 GetAppPropertyExt(const AppSpawningCtx *property, const char *name, uint32_t *len) GetAppPropertyExt() argument 249 CheckAppMsgFlagsSet(const AppSpawningCtx *property, uint32_t index) CheckAppMsgFlagsSet() argument 256 CheckAppPermissionFlagSet(const AppSpawningCtx *property, uint32_t index) CheckAppPermissionFlagSet() argument 263 SetAppPermissionFlags(const AppSpawningCtx *property, uint32_t index) SetAppPermissionFlags() argument 270 IsIsolatedNativeSpawnMode(const AppSpawnMgr *content, const AppSpawningCtx *property) IsIsolatedNativeSpawnMode() argument [all...] |
H A D | appspawn_service.c | 511 APPSPAWN_STATIC int WriteMsgToChild(AppSpawningCtx *property, bool isNweb) in WriteMsgToChild() argument 513 APPSPAWN_CHECK(property != NULL && property->message != NULL, return APPSPAWN_MSG_INVALID, in WriteMsgToChild() 514 "Failed to WriteMsgToChild property invalid"); in WriteMsgToChild() 515 const uint32_t memSize = (property->message->msgHeader.msgLen / 4096 + 1) * 4096; // 4096 4K in WriteMsgToChild() 516 char *buffer = GetMapMem(property->client.id, GetProcessName(property), memSize, false, isNweb); in WriteMsgToChild() 518 "Failed to map memory error %{public}d fileName %{public}s ", errno, GetProcessName(property)); in WriteMsgToChild() 520 int ret = memcpy_s(buffer, memSize, &property->message->msgHeader, sizeof(AppSpawnMsg)); in WriteMsgToChild() 523 property in WriteMsgToChild() 536 InitForkContext(AppSpawningCtx *property) InitForkContext() argument 580 WatchChildProcessFd(AppSpawningCtx *property) WatchChildProcessFd() argument 621 IsChildColdRun(AppSpawningCtx *property) IsChildColdRun() argument 630 AddChildWatcher(AppSpawningCtx *property) AddChildWatcher() argument 675 WritePreforkMsg(AppSpawningCtx *property) WritePreforkMsg() argument 696 GetAppSpawnMsg(AppSpawningCtx *property) GetAppSpawnMsg() argument 760 ProcessPreFork(AppSpawnContent *content, AppSpawningCtx *property) ProcessPreFork() argument 808 AppSpawningCtx *property = (AppSpawningCtx *)client; AppSpawnProcessMsgForPrefork() local 851 AppSpawningCtx *property = (AppSpawningCtx *)client; IsSupportPrefork() local 901 AppSpawningCtx *property = CreateAppSpawningCtx(); ProcessSpawnReqMsg() local 937 AppSpawningCtx *property = GetAppSpawningCtxByPid(pid); WaitChildDied() local 960 AppSpawningCtx *property = (AppSpawningCtx *)context; WaitChildTimeout() local 973 ProcessChildFdCheck(int fd, AppSpawningCtx *property, int *pResult) ProcessChildFdCheck() argument 995 AppSpawningCtx *property = (AppSpawningCtx *)context; ProcessChildResponse() local 1047 AppSpawningCtx *property = (AppSpawningCtx *)client; NotifyResToParent() local 1111 AppSpawningCtx *property = (AppSpawningCtx *)client; AppSpawnColdStartApp() local 1155 AppSpawningCtx *property = CreateAppSpawningCtx(); GetAppSpawningCtxFromArg() local 1204 AppSpawningCtx *property = GetAppSpawningCtxFromArg(appSpawnContent, argc, argv); AppSpawnColdRun() local 1255 AppSpawnClearEnv(AppSpawnMgr *content, AppSpawningCtx *property) AppSpawnClearEnv() argument [all...] |
H A D | appspawn_appmgr.c | 80 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); in SpawningQueueDestroy() local 81 DeleteAppSpawningCtx(property); in SpawningQueueDestroy() 282 AppSpawningCtx *property = (AppSpawningCtx *)malloc(sizeof(AppSpawningCtx)); in CreateAppSpawningCtx() local 283 APPSPAWN_CHECK(property != NULL, return NULL, "Failed to create AppSpawningCtx "); in CreateAppSpawningCtx() 284 property->client.id = ++requestId; in CreateAppSpawningCtx() 285 property->client.flags = 0; in CreateAppSpawningCtx() 286 property->forkCtx.watcherHandle = NULL; in CreateAppSpawningCtx() 287 property->forkCtx.pidFdWatcherHandle = NULL; in CreateAppSpawningCtx() 288 property->forkCtx.coldRunPath = NULL; in CreateAppSpawningCtx() 289 property in CreateAppSpawningCtx() 304 DeleteAppSpawningCtx(AppSpawningCtx *property) DeleteAppSpawningCtx() argument 336 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); AppPropertyComparePid() local 365 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); DumpAppSpawnQueue() local [all...] |
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/ |
H A D | dlp_file_manager_test.cpp | 428 DlpProperty property; in HWTEST_F() local 435 DlpFileManager::GetInstance().SetDlpFileParams(filePtr, property)); in HWTEST_F() 439 property.ownerAccount = "owner"; in HWTEST_F() 440 property.ownerAccountId = "owner"; in HWTEST_F() 441 property.contactAccount = "owner"; in HWTEST_F() 442 property.ownerAccountType = CLOUD_ACCOUNT; in HWTEST_F() 448 int res = DlpFileManager::GetInstance().SetDlpFileParams(filePtr, property); in HWTEST_F() 465 DlpProperty property; in HWTEST_F() local 468 property.ownerAccount = ""; in HWTEST_F() 469 property in HWTEST_F() 488 DlpProperty property; HWTEST_F() local 518 DlpProperty property; HWTEST_F() local 542 DlpProperty property; HWTEST_F() local 570 DlpProperty property; HWTEST_F() local 590 DlpProperty property; HWTEST_F() local 610 DlpProperty property; HWTEST_F() local [all...] |
/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 227 AppSpawningCtx *property = nullptr; in HWTEST_F() local 235 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 236 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); in HWTEST_F() 238 void *tlvValue = GetAppProperty(property, TLV_DAC_INFO); in HWTEST_F() 249 DeleteAppSpawningCtx(property); in HWTEST_F() 262 AppSpawningCtx *property = nullptr; in HWTEST_F() local 275 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 276 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); in HWTEST_F() 277 void *tlvValue = GetAppProperty(property, TLV_BUNDLE_INFO); in HWTEST_F() 289 DeleteAppSpawningCtx(property); in HWTEST_F() 302 AppSpawningCtx *property = nullptr; HWTEST_F() local 342 AppSpawningCtx *property = nullptr; HWTEST_F() local 380 AppSpawningCtx *property = nullptr; HWTEST_F() local 416 AppSpawningCtx *property = nullptr; HWTEST_F() local 452 AppSpawningCtx *property = nullptr; HWTEST_F() local 488 AppSpawningCtx *property = nullptr; HWTEST_F() local 523 AppSpawningCtx *property = nullptr; HWTEST_F() local 575 AppSpawningCtx *property = nullptr; HWTEST_F() local 627 AppSpawningCtx *property = nullptr; HWTEST_F() local 677 AppSpawningCtx *property = nullptr; HWTEST_F() local 852 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local 895 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local 919 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local 943 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local 966 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local 989 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local 1012 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local 1035 AppSpawningCtx *property = g_testHelper.GetAppProperty(clientHandle, reqHandle); HWTEST_F() local [all...] |
/base/hiviewdfx/hitrace/cmd/src/ |
H A D | hitrace_osal.cpp | 27 bool SetPropertyInner(const std::string& property, const std::string& value) in SetPropertyInner() argument 29 bool result = OHOS::system::SetParameter(property, value); in SetPropertyInner() 31 fprintf(stderr, "Error: Failed to set %s property.\n", value.c_str()); in SetPropertyInner() 36 std::string GetPropertyInner(const std::string& property, const std::string& value) in GetPropertyInner() argument 38 return OHOS::system::GetParameter(property, value); in GetPropertyInner()
|
/base/startup/appspawn/test/mock/ |
H A D | app_spawn_stub.h | 58 int PreForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property);
59 int PostForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property);
76 int SpawnPrepareSandboxCfg(AppSpawnMgr *content, AppSpawningCtx *property);
96 int AppSpawnClearEnv(AppSpawnMgr *content, AppSpawningCtx *property);
98 int WriteMsgToChild(AppSpawningCtx *property, bool isNweb);
104 int SetProcessName(const AppSpawnMgr *content, const AppSpawningCtx *property);
105 int SetFdEnv(AppSpawnMgr *content, AppSpawningCtx *property);
111 int RunBegetctlBootApp(AppSpawnMgr *content, AppSpawningCtx *property);
133 int SetSelinuxConNweb(const AppSpawnMgr *content, const AppSpawningCtx *property);
|
/base/account/os_account/interfaces/kits/napi/common/include/ |
H A D | napi_account_common.h | 62 bool GetCallbackProperty(napi_env env, napi_value obj, napi_ref &property, int argNum);
63 bool GetIntProperty(napi_env env, napi_value obj, int32_t &property);
64 bool GetOptionIntProperty(napi_env env, napi_value obj, int32_t &property, bool &hasProperty);
65 bool GetLongIntProperty(napi_env env, napi_value obj, int64_t &property);
66 bool GetBoolProperty(napi_env env, napi_value obj, bool &property);
67 bool GetStringProperty(napi_env env, napi_value obj, std::string &property);
68 bool GetStringArrayProperty(napi_env env, napi_value obj, std::vector<std::string> &property, bool allowEmpty);
70 std::vector<std::string> &property, bool allowEmpty);
71 bool GetStringPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName, std::string &property);
73 std::string &property);
[all...] |
/base/startup/appspawn/modules/native_adapter/ |
H A D | native_adapter.cpp | 81 static int RunChildThread(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildThread() argument 88 if (CheckAppMsgFlagsSet(property, APP_FLAGS_CHILDPROCESS)) { in RunChildThread() 90 BuildFdInfoMap(property->message, fdMap, IsColdRunMode(content)); in RunChildThread() 91 AppSpawnEnvClear((AppSpawnContent *)&content->content, (AppSpawnClient *)&property->client); in RunChildThread() 94 AppSpawnEnvClear((AppSpawnContent *)&content->content, (AppSpawnClient *)&property->client); in RunChildThread() 104 AppSpawningCtx *property = reinterpret_cast<AppSpawningCtx *>(client); in RunChildProcessor() local 106 return RunChildThread(reinterpret_cast<AppSpawnMgr *>(content), property); in RunChildProcessor()
|
/base/startup/appspawn/modules/ace_adapter/ |
H A D | ace_adapter.cpp | 188 static int RunChildThread(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildThread() argument 195 if (CheckAppMsgFlagsSet(property, APP_FLAGS_CHILDPROCESS)) { in RunChildThread() 197 BuildFdInfoMap(property->message, fdMap, IsColdRunMode(content)); in RunChildThread() 198 AppSpawnEnvClear((AppSpawnContent *)&content->content, (AppSpawnClient *)&property->client); in RunChildThread() 201 AppSpawnEnvClear((AppSpawnContent *)&content->content, (AppSpawnClient *)&property->client); in RunChildThread() 208 APPSPAWN_STATIC int RunChildByRenderCmd(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildByRenderCmd() argument 211 char *renderCmd = reinterpret_cast<char *>(GetAppPropertyExt(property, MSG_EXT_NAME_RENDER_CMD, &len)); in RunChildByRenderCmd() 212 if (renderCmd == NULL || !IsDeveloperModeOn(property)) { in RunChildByRenderCmd() 232 // clear appspawn env, do not user any content and property in RunChildByRenderCmd() 233 AppSpawnEnvClear((AppSpawnContent *)&content->content, (AppSpawnClient *)&property in RunChildByRenderCmd() 245 AppSpawningCtx *property = reinterpret_cast<AppSpawningCtx *>(client); RunChildProcessor() local [all...] |
/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_manager.c | 545 int SpawnBuildSandboxEnv(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnBuildSandboxEnv() argument 547 ExtDataType type = CheckAppMsgFlagsSet(property, APP_FLAGS_ISOLATED_SANDBOX_TYPE) ? EXT_DATA_ISOLATED_SANDBOX : in SpawnBuildSandboxEnv() 550 APPSPAWN_CHECK(appSandbox != NULL, return -1, "Failed to get sandbox for %{public}s", GetProcessName(property)); in SpawnBuildSandboxEnv() 552 if (CheckAppMsgFlagsSet(property, APP_FLAGS_NO_SANDBOX)) { in SpawnBuildSandboxEnv() 563 int ret = MountSandboxConfigs(appSandbox, property, IsNWebSpawnMode(content)); in SpawnBuildSandboxEnv() 566 if (CheckAppMsgFlagsSet(property, APP_FLAGS_IGNORE_SANDBOX)) { in SpawnBuildSandboxEnv() 573 static int AppendPermissionGid(const AppSpawnSandboxCfg *sandbox, AppSpawningCtx *property) in AppendPermissionGid() argument 575 AppSpawnMsgDacInfo *dacInfo = (AppSpawnMsgDacInfo *)GetAppProperty(property, TLV_DAC_INFO); in AppendPermissionGid() 577 "No tlv %{public}d in msg %{public}s", TLV_DAC_INFO, GetProcessName(property)); in AppendPermissionGid() 579 APPSPAWN_LOGV("AppendPermissionGid %{public}s", GetProcessName(property)); in AppendPermissionGid() 614 AppendPackageNameGids(const AppSpawnSandboxCfg *sandbox, AppSpawningCtx *property) AppendPackageNameGids() argument 646 SpawnPrepareSandboxCfg(AppSpawnMgr *content, AppSpawningCtx *property) SpawnPrepareSandboxCfg() argument [all...] |
/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | input_method_switch_test.cpp | 103 std::shared_ptr<Property> property = imc_->GetCurrentInputMethod(); in CheckCurrentProp() local 104 ASSERT_TRUE(property != nullptr); in CheckCurrentProp() 105 EXPECT_EQ(property->name, bundleName); in CheckCurrentProp() 106 EXPECT_EQ(property->id, extName); in CheckCurrentProp() 299 for (const auto &property : properties) { in HWTEST_F() 300 if (property.name == bundleName) { in HWTEST_F() 303 if (property.name == newImeBundleName) { in HWTEST_F() 353 Property property = { .name = newImeBundleName }; in HWTEST_F() local 355 auto ret = imc_->ListInputMethodSubtype(property, subProps); in HWTEST_F() 374 Property property in HWTEST_F() local 395 std::shared_ptr<Property> property = std::make_shared<Property>(); HWTEST_F() local 438 std::shared_ptr<Property> property = imc_->GetCurrentInputMethod(); HWTEST_F() local 457 std::shared_ptr<Property> property = imc_->GetCurrentInputMethod(); HWTEST_F() local 476 std::shared_ptr<Property> property = imc_->GetCurrentInputMethod(); HWTEST_F() local [all...] |
/base/inputmethod/imf/frameworks/cj/include/ |
H A D | utils.h | 30 static void InputMethodProperty2C(CInputMethodProperty &props, const Property &property); 32 static void InputMethodSubProperty2C(CInputMethodSubtype &props, const SubProperty &property);
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/ |
H A D | input_client_stub.cpp | 89 Property property; in OnSwitchInputOnRemote() local 91 if (!ITypesUtil::Unmarshal(data, property, subProperty)) { in OnSwitchInputOnRemote() 95 return reply.WriteInt32(OnSwitchInput(property, subProperty)) ? ErrorCode::NO_ERROR in OnSwitchInputOnRemote() 129 int32_t InputClientStub::OnSwitchInput(const Property &property, const SubProperty &subProperty) in OnSwitchInput() argument 131 return ImeEventMonitorManagerImpl::GetInstance().OnImeChange(property, subProperty); in OnSwitchInput()
|