Home
last modified time | relevance | path

Searched refs:mgr (Results 1 - 21 of 21) sorted by relevance

/base/startup/appspawn/test/moduletest/threadpool/
H A Dthread_manager.c91 static TaskExecuteNode *PopTaskExecutor(ThreadManager *mgr) in PopTaskExecutor() argument
94 pthread_mutex_lock(&mgr->mutex); in PopTaskExecutor()
95 ListNode *node = mgr->executorQueue.next; in PopTaskExecutor()
96 if (node != &mgr->executorQueue) { in PopTaskExecutor()
100 mgr->executorCount--; in PopTaskExecutor()
102 pthread_mutex_unlock(&mgr->mutex); in PopTaskExecutor()
106 static int AddExecutor(ThreadManager *mgr, const TaskNode *task) in AddExecutor() argument
112 task->taskId, mgr->executorCount, executor->task->taskId); in AddExecutor()
115 pthread_mutex_lock(&mgr->mutex); in AddExecutor()
118 OH_ListAddTail(&mgr in AddExecutor()
127 RunExecutor(ThreadManager *mgr, ThreadNode *threadNode, uint32_t maxCount) RunExecutor() argument
152 GetTask(ThreadManager *mgr, ListNode *queue, uint32_t taskId) GetTask() argument
177 PopTask(ThreadManager *mgr, ListNode *queue) PopTask() argument
191 PushTask(ThreadManager *mgr, TaskNode *task, ListNode *queue) PushTask() argument
199 SafeRemoveTask(ThreadManager *mgr, TaskNode *task) SafeRemoveTask() argument
224 ExecuteTask(ThreadManager *mgr) ExecuteTask() argument
237 CheckTaskComplete(ThreadManager *mgr) CheckTaskComplete() argument
272 ThreadManager *mgr = (ThreadManager *)malloc(sizeof(ThreadManager) + maxThreadCount * sizeof(ThreadNode)); CreateThreadMgr() local
307 ThreadManager *mgr = (ThreadManager *)instance; DestroyThreadMgr() local
340 ThreadManager *mgr = (ThreadManager *)instance; ThreadMgrAddTask() local
367 ThreadManager *mgr = (ThreadManager *)instance; ThreadMgrAddExecutor() local
386 ThreadManager *mgr = (ThreadManager *)instance; ThreadMgrCancelTask() local
411 ThreadManager *mgr = (ThreadManager *)instance; TaskSyncExecute() local
440 ThreadManager *mgr = (ThreadManager *)instance; TaskExecute() local
457 CheckAndCreateNewThread(ThreadManager *mgr) CheckAndCreateNewThread() argument
491 ThreadManager *mgr = g_threadManager; ManagerThreadProc() local
528 ThreadManager *mgr = g_threadManager; ThreadExecute() local
[all...]
/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dtask_manager_test.cpp42 mgr = std::make_unique<TaskManager>();
48 mgr.reset();
52 std::unique_ptr<TaskManager> mgr; member in OHOS::MiscServices::TaskManagerTest
65 auto ret = mgr->PostTask(task); in HWTEST_F()
79 auto ret = mgr->PostTask(task); in HWTEST_F()
83 EXPECT_EQ(mgr->amsTasks_.size(), 0); in HWTEST_F()
84 EXPECT_EQ(mgr->curTask_, task); in HWTEST_F()
85 EXPECT_EQ(mgr->curTask_->GetSeqId(), ret); in HWTEST_F()
98 EXPECT_EQ(mgr->curTask_, nullptr); in HWTEST_F()
100 mgr in HWTEST_F()
[all...]
/base/global/resource_management/interfaces/native/resource/include/
H A Dohresmgr.h49 * @param mgr Indicates the pointer to {@link NativeResourceManager}
64 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64(const NativeResourceManager *mgr, uint32_t resId,
72 * @param mgr Indicates the pointer to {@link NativeResourceManager}
87 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64Data(const NativeResourceManager *mgr, uint32_t resId,
95 * @param mgr Indicates the pointer to {@link NativeResourceManager}
110 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64ByName(const NativeResourceManager *mgr,
118 * @param mgr Indicates the pointer to {@link NativeResourceManager}
133 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64DataByName(const NativeResourceManager *mgr,
141 * @param mgr Indicates the pointer to {@link NativeResourceManager}
156 ResourceManager_ErrorCode OH_ResourceManager_GetMedia(const NativeResourceManager *mgr, uint32_
[all...]
H A Draw_file_manager.h91 * @param mgr Indicates the pointer to {@link NativeResourceManager} obtained by calling
102 RawDir *OH_ResourceManager_OpenRawDir(const NativeResourceManager *mgr, const char *dirName);
109 * @param mgr Indicates the pointer to {@link NativeResourceManager} obtained by calling
119 RawFile *OH_ResourceManager_OpenRawFile(const NativeResourceManager *mgr, const char *fileName);
126 * @param mgr Indicates the pointer to {@link NativeResourceManager} obtained by calling
136 RawFile64 *OH_ResourceManager_OpenRawFile64(const NativeResourceManager *mgr, const char *fileName);
141 * @param mgr Indicates the pointer to {@link NativeResourceManager} obtained by calling
148 bool OH_ResourceManager_IsRawDir(const NativeResourceManager *mgr, const char *path);
/base/startup/appspawn/interfaces/innerkits/permission/
H A Dappspawn_mount_permission.c40 static int ParseAppSandboxConfig(const cJSON *root, PermissionManager *mgr) in ParseAppSandboxConfig() argument
56 int ret = AddSandboxPermissionNode(name, &mgr->permissionQueue); in ParseAppSandboxConfig()
70 static int ParsePermissionConfig(const cJSON *permissionConfigs, PermissionManager *mgr) in ParsePermissionConfig() argument
76 int ret = AddSandboxPermissionNode(name, &mgr->permissionQueue); in ParsePermissionConfig()
82 static int ParseAppSandboxConfig(const cJSON *appSandboxConfig, PermissionManager *mgr) in ParseAppSandboxConfig() argument
91 ret = ParsePermissionConfig(json, mgr); in ParseAppSandboxConfig()
105 static int LoadPermissionConfig(PermissionManager *mgr) in LoadPermissionConfig() argument
108 mgr->type == CLIENT_FOR_APPSPAWN ? APP_SANDBOX_FILE_NAME : WEB_SANDBOX_FILE_NAME, ParseAppSandboxConfig, mgr); in LoadPermissionConfig()
110 mgr in LoadPermissionConfig()
114 CheckPermissionManager(PermissionManager *mgr) CheckPermissionManager() argument
124 PermissionManager *mgr = GetPermissionMgrByType(type); PMGetPermissionIndex() local
131 PermissionManager *mgr = GetPermissionMgrByType(type); PMGetMaxPermissionIndex() local
138 PermissionManager *mgr = GetPermissionMgrByType(type); PMGetPermissionByIndex() local
151 PermissionManager *mgr = GetPermissionMgrByType(type); LoadPermission() local
175 PermissionManager *mgr = GetPermissionMgrByType(type); DeletePermission() local
[all...]
/base/global/resource_management/frameworks/resmgr/src/
H A Dnative_resource_manager.cpp114 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64(const NativeResourceManager *mgr, uint32_t resId, in OH_ResourceManager_GetMediaBase64() argument
117 return OH_ResourceManager_GetMediaBase64Data(mgr, resId, resultValue, resultLen, density); in OH_ResourceManager_GetMediaBase64()
120 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64Data(const NativeResourceManager *mgr, uint32_t resId, in OH_ResourceManager_GetMediaBase64Data() argument
123 if (mgr == nullptr || resultValue == nullptr || resultLen == nullptr) { in OH_ResourceManager_GetMediaBase64Data()
127 RState state = mgr->resManager->GetMediaBase64DataById(resId, tempResultValue, density); in OH_ResourceManager_GetMediaBase64Data()
149 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64ByName(const NativeResourceManager *mgr, in OH_ResourceManager_GetMediaBase64ByName() argument
152 return OH_ResourceManager_GetMediaBase64DataByName(mgr, resName, resultValue, resultLen, density); in OH_ResourceManager_GetMediaBase64ByName()
155 ResourceManager_ErrorCode OH_ResourceManager_GetMediaBase64DataByName(const NativeResourceManager *mgr, in OH_ResourceManager_GetMediaBase64DataByName() argument
158 if (mgr == nullptr || resultValue == nullptr || resultLen == nullptr) { in OH_ResourceManager_GetMediaBase64DataByName()
163 RState state = mgr in OH_ResourceManager_GetMediaBase64DataByName()
185 OH_ResourceManager_GetMedia(const NativeResourceManager *mgr, uint32_t resId, uint8_t **resultValue, uint64_t *resultLen, uint32_t density) OH_ResourceManager_GetMedia() argument
191 OH_ResourceManager_GetMediaData(const NativeResourceManager *mgr, uint32_t resId, uint8_t **resultValue, uint64_t *resultLen, uint32_t density) OH_ResourceManager_GetMediaData() argument
218 OH_ResourceManager_GetMediaByName(const NativeResourceManager *mgr, const char *resName, uint8_t **resultValue, uint64_t *resultLen, uint32_t density) OH_ResourceManager_GetMediaByName() argument
224 OH_ResourceManager_GetMediaDataByName(const NativeResourceManager *mgr, const char *resName, uint8_t **resultValue, uint64_t *resultLen, uint32_t density) OH_ResourceManager_GetMediaDataByName() argument
251 OH_ResourceManager_GetDrawableDescriptor(const NativeResourceManager *mgr, uint32_t resId, ArkUI_DrawableDescriptor **drawableDescriptor, uint32_t density, uint32_t type) OH_ResourceManager_GetDrawableDescriptor() argument
257 OH_ResourceManager_GetDrawableDescriptorData(const NativeResourceManager *mgr, uint32_t resId, ArkUI_DrawableDescriptor **drawableDescriptor, uint32_t density, uint32_t type) OH_ResourceManager_GetDrawableDescriptorData() argument
288 OH_ResourceManager_GetDrawableDescriptorByName(const NativeResourceManager *mgr, const char *resName, ArkUI_DrawableDescriptor **drawableDescriptor, uint32_t density, uint32_t type) OH_ResourceManager_GetDrawableDescriptorByName() argument
294 OH_ResourceManager_GetDrawableDescriptorDataByName(const NativeResourceManager *mgr, const char *resName, ArkUI_DrawableDescriptor **drawableDescriptor, uint32_t density, uint32_t type) OH_ResourceManager_GetDrawableDescriptorDataByName() argument
336 OH_ResourceManager_GetSymbol(const NativeResourceManager *mgr, uint32_t resId, uint32_t *resultValue) OH_ResourceManager_GetSymbol() argument
354 OH_ResourceManager_GetSymbolByName(const NativeResourceManager *mgr, const char *resName, uint32_t *resultValue) OH_ResourceManager_GetSymbolByName() argument
372 OH_ResourceManager_GetLocales(const NativeResourceManager *mgr, char ***resultValue, uint32_t *resultLen, bool includeSystem) OH_ResourceManager_GetLocales() argument
378 OH_ResourceManager_GetLocalesData(const NativeResourceManager *mgr, char ***resultValue, uint32_t *resultLen, bool includeSystem) OH_ResourceManager_GetLocalesData() argument
389 OH_ResourceManager_GetConfiguration(const NativeResourceManager *mgr, ResourceManager_Configuration *configuration) OH_ResourceManager_GetConfiguration() argument
414 OH_ResourceManager_GetStringArray(const NativeResourceManager *mgr, uint32_t resId, char ***resultValue, uint32_t *resultValueLen) OH_ResourceManager_GetStringArray() argument
431 OH_ResourceManager_GetStringArrayByName(const NativeResourceManager *mgr, const char *resName, char ***resultValue, uint32_t *resultLen) OH_ResourceManager_GetStringArrayByName() argument
448 OH_ResourceManager_GetPluralStringByName(const NativeResourceManager *mgr, const char *resName, uint32_t num, char **resultValue) OH_ResourceManager_GetPluralStringByName() argument
465 OH_ResourceManager_GetPluralString(const NativeResourceManager *mgr, uint32_t resId, uint32_t num, char **resultValue) OH_ResourceManager_GetPluralString() argument
482 OH_ResourceManager_GetColor(const NativeResourceManager *mgr, uint32_t resId, uint32_t *resultValue) OH_ResourceManager_GetColor() argument
499 OH_ResourceManager_GetColorByName(const NativeResourceManager *mgr, const char *resName, uint32_t *resultValue) OH_ResourceManager_GetColorByName() argument
517 OH_ResourceManager_GetInt(const NativeResourceManager *mgr, uint32_t resId, int *resultValue) OH_ResourceManager_GetInt() argument
535 OH_ResourceManager_GetIntByName(const NativeResourceManager *mgr, const char *resName, int *resultValue) OH_ResourceManager_GetIntByName() argument
553 OH_ResourceManager_GetFloat(const NativeResourceManager *mgr, uint32_t resId, float *resultValue) OH_ResourceManager_GetFloat() argument
570 OH_ResourceManager_GetFloatByName(const NativeResourceManager *mgr, const char *resName, float *resultValue) OH_ResourceManager_GetFloatByName() argument
588 OH_ResourceManager_GetBool(const NativeResourceManager *mgr, uint32_t resId, bool *resultValue) OH_ResourceManager_GetBool() argument
605 OH_ResourceManager_GetBoolByName(const NativeResourceManager *mgr, const char *resName, bool *resultValue) OH_ResourceManager_GetBoolByName() argument
623 OH_ResourceManager_AddResource(const NativeResourceManager *mgr, const char *path) OH_ResourceManager_AddResource() argument
635 OH_ResourceManager_RemoveResource(const NativeResourceManager *mgr, const char *path) OH_ResourceManager_RemoveResource() argument
675 OH_ResourceManager_GetString(const NativeResourceManager *mgr, uint32_t resId, char **resultValue, ...) OH_ResourceManager_GetString() argument
696 OH_ResourceManager_GetStringByName(const NativeResourceManager *mgr, const char *resName, char **resultValue, ...) OH_ResourceManager_GetStringByName() argument
[all...]
H A Draw_file_manager.cpp123 static bool IsLoadHap(const NativeResourceManager *mgr, std::string &hapPath) in IsLoadHap() argument
125 return mgr->resManager->IsLoadHap(hapPath) == RState::SUCCESS ? true : false; in IsLoadHap()
128 RawDir *LoadRawDirFromHap(const NativeResourceManager *mgr, const std::string dirName) in LoadRawDirFromHap() argument
131 RState state = mgr->resManager->GetRawFileList(dirName, result->fileNameCache.names); in LoadRawDirFromHap()
139 RawDir *OH_ResourceManager_OpenRawDir(const NativeResourceManager *mgr, const char *dirName) in OH_ResourceManager_OpenRawDir() argument
142 if (mgr == nullptr || dirName == nullptr) { in OH_ResourceManager_OpenRawDir()
146 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawDir()
147 return LoadRawDirFromHap(mgr, dirName); in OH_ResourceManager_OpenRawDir()
149 ResourceManagerImpl* impl = static_cast<ResourceManagerImpl *>(mgr->resManager.get()); in OH_ResourceManager_OpenRawDir()
182 RawFile *LoadRawFileFromHap(const NativeResourceManager *mgr, cons argument
208 OH_ResourceManager_OpenRawFile(const NativeResourceManager *mgr, const char *fileName) OH_ResourceManager_OpenRawFile() argument
447 LoadRawFileFromHap64(const NativeResourceManager *mgr, const char *fileName, const std::string hapPath) LoadRawFileFromHap64() argument
472 OH_ResourceManager_OpenRawFile64(const NativeResourceManager *mgr, const char *fileName) OH_ResourceManager_OpenRawFile64() argument
640 OH_ResourceManager_IsRawDir(const NativeResourceManager *mgr, const char *path) OH_ResourceManager_IsRawDir() argument
[all...]
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_common_test.cpp72 AppSpawnMgr *mgr = nullptr; in HWTEST_F() local
75 mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
76 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
86 ret = SetSelinuxCon(mgr, property); in HWTEST_F()
90 DeleteAppSpawnMgr(mgr); in HWTEST_F()
99 AppSpawnMgr *mgr = nullptr; in HWTEST_F() local
102 mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
103 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
113 ret = SetSelinuxCon(mgr, property); in HWTEST_F()
117 DeleteAppSpawnMgr(mgr); in HWTEST_F()
126 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
156 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
188 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
220 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
340 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
372 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
537 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
565 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
593 AppSpawnMgr *mgr = nullptr; HWTEST_F() local
630 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_APP_SPAWN); HWTEST_F() local
641 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_APP_SPAWN); HWTEST_F() local
[all...]
H A Dapp_spawn_sandboxmgr_test.cpp53 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F() local
54 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
56 AppSpawnSandboxCfg *sandbox = GetAppSpawnSandbox(mgr, EXT_DATA_SANDBOX); in HWTEST_F()
61 OH_ListAddTail(&sandbox->extData.node, &mgr->extData); in HWTEST_F()
63 sandbox = GetAppSpawnSandbox(mgr, EXT_DATA_SANDBOX); in HWTEST_F()
72 sandbox = GetAppSpawnSandbox(mgr, EXT_DATA_SANDBOX); in HWTEST_F()
76 DeleteAppSpawnMgr(mgr); in HWTEST_F()
83 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F() local
84 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
88 OH_ListAddTail(&sandbox->extData.node, &mgr in HWTEST_F()
105 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
136 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
183 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
220 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
246 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
288 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
323 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
354 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
402 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
477 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
517 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
550 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
[all...]
H A Dapp_spawn_appmgr_test.cpp59 AppSpawnMgr *mgr = CreateAppSpawnMgr(i); in HWTEST_F() local
60 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
67 ret = IsNWebSpawnMode(mgr); in HWTEST_F()
70 ret = IsNWebSpawnMode(mgr); in HWTEST_F()
75 ret = IsColdRunMode(mgr); in HWTEST_F()
78 ret = IsColdRunMode(mgr); in HWTEST_F()
83 mgr = GetAppSpawnMgr(); in HWTEST_F()
84 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
87 DeleteAppSpawnMgr(mgr); in HWTEST_F()
90 mgr in HWTEST_F()
111 TestAppTraversal(const AppSpawnMgr *mgr, AppSpawnedProcess *appInfo, void *data) TestAppTraversal() argument
117 AppSpawnMgr *mgr = CreateAppSpawnMgr(0); HWTEST_F() local
160 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
202 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
225 TestProcessTraversal(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data) TestProcessTraversal() argument
236 AppSpawnMgr *mgr = CreateAppSpawnMgr(0); HWTEST_F() local
271 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
476 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
524 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
559 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
591 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
628 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
688 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
734 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
789 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
823 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
879 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
916 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
972 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
1014 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
1063 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
[all...]
H A Dapp_spawn_module_interface_test.cpp102 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F() local
103 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
107 AppSpawnContent *content = reinterpret_cast<AppSpawnContent *>(mgr); in HWTEST_F()
122 DeleteAppSpawnMgr(mgr); in HWTEST_F()
136 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F() local
137 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
144 AppSpawnContent *content = reinterpret_cast<AppSpawnContent *>(mgr); in HWTEST_F()
170 DeleteAppSpawnMgr(mgr); in HWTEST_F()
184 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F() local
185 EXPECT_EQ(mgr ! in HWTEST_F()
227 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); HWTEST_F() local
[all...]
H A Dapp_spawn_beget_test.cpp191 AppSpawnMgr *mgr = nullptr; in HWTEST_F() local
194 mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
195 EXPECT_EQ(mgr != nullptr, 1); in HWTEST_F()
205 ret = RunBegetctlBootApp(mgr, property); in HWTEST_F()
209 DeleteAppSpawnMgr(mgr); in HWTEST_F()
H A Dapp_spawn_cgroup_test.cpp400 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_APP_SPAWN); in HWTEST_F() local
401 ret = ProcessMgrRemoveApp(mgr, nullptr); in HWTEST_F()
402 DeleteAppSpawnMgr(mgr); in HWTEST_F()
410 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_APP_SPAWN); in HWTEST_F() local
411 ret = ProcessMgrAddApp(mgr, nullptr); in HWTEST_F()
412 DeleteAppSpawnMgr(mgr); in HWTEST_F()
/base/print/print_fwk/services/print_service/src/
H A Dprint_service_helper.cpp111 PRINT_HILOGE("Failed to get system ability mgr."); in GetBundleMgr()
131 bool PrintServiceHelper::QueryExtension(sptr<AppExecFwk::IBundleMgr> mgr, int userId, in QueryExtension() argument
134 if (mgr != nullptr) { in QueryExtension()
135 mgr->QueryExtensionAbilityInfos(AppExecFwk::ExtensionAbilityType::PRINT, userId, extensionInfos); in QueryExtension()
142 bool PrintServiceHelper::QueryNameForUid(sptr<AppExecFwk::IBundleMgr> mgr, int32_t userId, std::string& name) in QueryNameForUid() argument
144 if (mgr != nullptr) { in QueryNameForUid()
145 mgr->GetNameForUid(userId, name); in QueryNameForUid()
/base/print/print_fwk/test/unittest/service_test/
H A Dprint_service_helper_test.cpp115 sptr<AppExecFwk::IBundleMgr> mgr; in HWTEST_F() local
118 EXPECT_EQ(helper.QueryExtension(mgr, userId, extensionInfos), false); in HWTEST_F()
130 sptr<AppExecFwk::IBundleMgr> mgr; in HWTEST_F() local
133 EXPECT_EQ(helper.QueryNameForUid(mgr, userId, userName), false); in HWTEST_F()
/base/print/print_fwk/services/print_service/include/
H A Dprint_service_helper.h36 virtual bool QueryExtension(sptr<AppExecFwk::IBundleMgr> mgr, int userId,
38 virtual bool QueryNameForUid(sptr<AppExecFwk::IBundleMgr> mgr, int32_t userId, std::string& name);
/base/startup/appspawn/standard/
H A Dappspawn_appmgr.c93 void DeleteAppSpawnMgr(AppSpawnMgr *mgr) in DeleteAppSpawnMgr() argument
95 APPSPAWN_CHECK_ONLY_EXPER(mgr != NULL, return); in DeleteAppSpawnMgr()
96 OH_ListRemoveAll(&mgr->appQueue, NULL); in DeleteAppSpawnMgr()
97 OH_ListRemoveAll(&mgr->diedQueue, NULL); in DeleteAppSpawnMgr()
98 OH_ListRemoveAll(&mgr->appSpawnQueue, SpawningQueueDestroy); in DeleteAppSpawnMgr()
99 OH_ListRemoveAll(&mgr->extData, ExtDataDestroy); in DeleteAppSpawnMgr()
101 APPSPAWN_LOGV("DeleteAppSpawnMgr %{public}d %{public}d", mgr->servicePid, getpid()); in DeleteAppSpawnMgr()
102 free(mgr); in DeleteAppSpawnMgr()
103 if (g_appSpawnMgr == mgr) { in DeleteAppSpawnMgr()
142 APPSPAWN_CHECK(g_appSpawnMgr != NULL && processName != NULL, return NULL, "Invalid mgr o in AddSpawnedProcess()
[all...]
H A Dappspawn_manager.h131 void DeleteAppSpawnMgr(AppSpawnMgr *mgr);
138 typedef void (*AppTraversal)(const AppSpawnMgr *mgr, AppSpawnedProcess *appInfo, void *data);
149 typedef void (*ProcessTraversal)(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data);
H A Dappspawn_msgmgr.c398 AppSpawnMgr *mgr = GetAppSpawnMgr(); in DumpAppSpawnMsg() local
399 if (mgr == NULL || ((mgr->flags & APP_DEVELOPER_MODE) != APP_DEVELOPER_MODE)) { in DumpAppSpawnMsg()
H A Dappspawn_service.c98 static void AppQueueDestroyProc(const AppSpawnMgr *mgr, AppSpawnedProcess *appInfo, void *data) in AppQueueDestroyProc() argument
212 static void AppSpawningCtxOnClose(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data) in AppSpawningCtxOnClose() argument
/base/update/updateservice/frameworks/js/napi/update/src/
H A Dsession_manager.cpp256 auto &[mgr, eventClassifyInfo, eventInfo] = *data; in Emit()
257 mgr->PublishToJS(eventClassifyInfo, eventInfo); in Emit()

Completed in 18 milliseconds