Home
last modified time | relevance | path

Searched refs:sandboxArg (Results 1 – 3 of 3) sorted by relevance

/base/startup/appspawn/lite/
Dappspawn_service.c147 AppSandboxArg *sandboxArg = (AppSandboxArg *)malloc(sizeof(AppSandboxArg)); in Invoke() local
148 if (sandboxArg == NULL) { in Invoke()
152 (void)memset_s(sandboxArg, sizeof(AppSandboxArg), 0, sizeof(AppSandboxArg)); in Invoke()
155 sandboxArg->content = &g_appSpawnContentLite->content; in Invoke()
156 sandboxArg->client = &client.client; in Invoke()
157 int ret = AppSpawnProcessMsg(sandboxArg, &newPid); in Invoke()
163 free(sandboxArg); in Invoke()
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_standard_test.cpp153 AppSandboxArg *sandboxArg = (AppSandboxArg *)malloc(sizeof(AppSandboxArg)); variable
154 sandboxArg->content = content;
155 sandboxArg->client = &client->client;
156 EXPECT_EQ(AppSpawnChild(sandboxArg), 0);
157 free(sandboxArg);
565 AppSandboxArg *sandboxArg = (AppSandboxArg *)malloc(sizeof(AppSandboxArg)); variable
566 EXPECT_TRUE(sandboxArg != nullptr);
567 (void)memset_s(sandboxArg, sizeof(AppSandboxArg), 0, sizeof(AppSandboxArg));
568 int ret = AppSpawnProcessMsg(sandboxArg, &pid);
570 sandboxArg->content = &appContent;
[all …]
/base/startup/appspawn/standard/
Dappspawn_service.c387 AppSandboxArg *sandboxArg = (AppSandboxArg *)malloc(sizeof(AppSandboxArg)); in OnReceiveRequest() local
388 if (sandboxArg == NULL) { in OnReceiveRequest()
394 (void)memset_s(sandboxArg, sizeof(AppSandboxArg), 0, sizeof(AppSandboxArg)); in OnReceiveRequest()
396 sandboxArg->content = &g_appSpawnContent->content; in OnReceiveRequest()
397 sandboxArg->client = &appProperty->client; in OnReceiveRequest()
398 sandboxArg->client->cloneFlags = 0; in OnReceiveRequest()
399 sandboxArg->client->cloneFlags = GetAppNamespaceFlags(appProperty->property.bundleName); in OnReceiveRequest()
400 int result = AppSpawnProcessMsg(sandboxArg, &appProperty->pid); in OnReceiveRequest()
406 free(sandboxArg); in OnReceiveRequest()