/base/startup/appspawn/common/ |
D | appspawn_server.c | 45 static void SetInternetPermission(const AppSpawnClient *client) in SetInternetPermission() argument 49 if (client == NULL) { in SetInternetPermission() 53 … APPSPAWN_LOGI("SetInternetPermission id %d setAllowInternet %hhu allowInternet %hhu", client->id, in SetInternetPermission() 54 client->setAllowInternet, client->allowInternet); in SetInternetPermission() 55 if (client->setAllowInternet == 1 && client->allowInternet == 0) { in SetInternetPermission() 62 static void NotifyResToParent(struct AppSpawnContent_ *content, AppSpawnClient *client, int result) in NotifyResToParent() argument 65 content->notifyResToParent(content, client, result); in NotifyResToParent() 98 int DoStartApp(struct AppSpawnContent_ *content, AppSpawnClient *client, char *longProcName, uint32… in DoStartApp() argument 100 SetInternetPermission(client); in DoStartApp() 102 APPSPAWN_LOGI("DoStartApp id %d longProcNameLen %u", client->id, longProcNameLen); in DoStartApp() [all …]
|
D | appspawn_server.h | 66 void (*clearEnvironment)(struct AppSpawnContent_ *content, AppSpawnClient *client); 67 void (*initDebugParams)(struct AppSpawnContent_ *content, AppSpawnClient *client); 68 void (*setAppAccessToken)(struct AppSpawnContent_ *content, AppSpawnClient *client); 69 int (*setAppSandbox)(struct AppSpawnContent_ *content, AppSpawnClient *client); 70 int (*setKeepCapabilities)(struct AppSpawnContent_ *content, AppSpawnClient *client); 71 int (*setFileDescriptors)(struct AppSpawnContent_ *content, AppSpawnClient *client); 72 int (*setProcessName)(struct AppSpawnContent_ *content, AppSpawnClient *client, 74 int (*setUidGid)(struct AppSpawnContent_ *content, AppSpawnClient *client); 75 int (*setCapabilities)(struct AppSpawnContent_ *content, AppSpawnClient *client); 77 void (*notifyResToParent)(struct AppSpawnContent_ *content, AppSpawnClient *client, int result); [all …]
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
D | app_spawn_standard_test.cpp | 60 static int setAppSandbox(struct AppSpawnContent_ *content, AppSpawnClient *client) in setAppSandbox() argument 65 static int setKeepCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in setKeepCapabilities() argument 70 static int setFileDescriptors(struct AppSpawnContent_ *content, AppSpawnClient *client) in setFileDescriptors() argument 75 static int setProcessName(struct AppSpawnContent_ *content, AppSpawnClient *client, in setProcessName() argument 81 static int setUidGid(struct AppSpawnContent_ *content, AppSpawnClient *client) in setUidGid() argument 86 static int setCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in setCapabilities() argument 123 AppSpawnClientExt* client = (AppSpawnClientExt*)malloc(sizeof(AppSpawnClientExt)); variable 124 client->client.id = 8; // 8 is client id 125 client->client.flags = 0; 126 client->client.cloneFlags = CLONE_NEWNS; [all …]
|
/base/hiviewdfx/hisysevent/frameworks/native/ |
D | main.cpp | 25 auto client = make_unique<HiSysEventTool>(); in main() local 26 if (client == nullptr) { in main() 29 if (!client->ParseCmdLine(argc, argv)) { in main() 30 client->DoCmdHelp(); in main() 33 if (!client->DoAction()) { in main() 34 client->DoCmdHelp(); in main() 40 client->WaitClient(); in main()
|
/base/startup/appspawn/standard/ |
D | appspawn_process.c | 41 static int SetAsanEnabledEnv(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetAsanEnabledEnv() argument 43 AppParameter *appProperty = &((AppSpawnClientExt *)client)->property; in SetAsanEnabledEnv() 63 client->flags |= APP_COLD_START; in SetAsanEnabledEnv() 68 static int SetProcessName(struct AppSpawnContent_ *content, AppSpawnClient *client, in SetProcessName() argument 71 AppSpawnClientExt *appPropertyExt = (AppSpawnClientExt *)client; in SetProcessName() 104 static int SetKeepCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetKeepCapabilities() argument 106 AppSpawnClientExt *appProperty = (AppSpawnClientExt *)client; in SetKeepCapabilities() 115 static int SetCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetCapabilities() argument 151 SetSelinuxCon(content, client); in SetCapabilities() 155 static void InitDebugParams(struct AppSpawnContent_ *content, AppSpawnClient *client) in InitDebugParams() argument [all …]
|
D | appspawn_service.c | 134 AppSpawnClientExt *client = (AppSpawnClientExt *)LE_GetUserData(taskHandle); in OnClose() local 135 APPSPAWN_CHECK(client != NULL, return, "Failed to get client"); in OnClose() 140 AppSpawnClientExt *client = (AppSpawnClientExt *)LE_GetUserData(taskHandle); in SendMessageComplete() local 141 APPSPAWN_CHECK(client != NULL, return, "Failed to get client"); in SendMessageComplete() 143 client->client.id, LE_GetSendResult(handle), client->pid); in SendMessageComplete() 144 if (LE_GetSendResult(handle) != 0 && client->pid > 0) { in SendMessageComplete() 145 kill(client->pid, SIGKILL); in SendMessageComplete() 147 LE_GetSendResult(handle), client->pid, client->property.bundleName); in SendMessageComplete() 151 static int SendResponse(AppSpawnClientExt *client, const char *buff, size_t buffSize) in SendResponse() argument 159 return LE_Send(LE_GetDefaultLoop(), client->stream, handle, buffSize); in SendResponse() [all …]
|
/base/powermgr/display_manager/test/unittest/common/native/src/mock/ |
D | display_mock_object_test.cpp | 94 auto& client = DisplayPowerMgrClient::GetInstance(); variable 97 EXPECT_TRUE(client.SetDisplayState(DisplayPowerMgr::DisplayState::DISPLAY_ON)); 98 EXPECT_EQ(DisplayPowerMgr::DisplayState::DISPLAY_ON, client.GetDisplayState(DISPLAY_ID)); 99 EXPECT_EQ(result, client.GetDisplayIds()); 100 EXPECT_EQ(MAIN_ID_CLIENT, client.GetMainDisplayId()); 101 EXPECT_TRUE(client.SetBrightness(BRIGHTNESS_SETTING_VALUE, DISPLAY_ID)); 102 EXPECT_TRUE(client.DiscountBrightness(DISCOUNT_VALUE, DISPLAY_ID)); 103 EXPECT_TRUE(client.OverrideBrightness(BRIGHTNESS_OVERRIDE_VALUE, DISPLAY_ID)); 104 EXPECT_TRUE(client.RestoreBrightness(DISPLAY_ID)); 105 EXPECT_EQ(BRIGHTNESS_SETTING_VALUE, client.GetBrightness(DISPLAY_ID)); [all …]
|
D | display_mock_parcel_test.cpp | 90 auto& client = DisplayPowerMgr::DisplayPowerMgrClient::GetInstance(); variable 93 EXPECT_FALSE(client.SetDisplayState(DisplayPowerMgr::DisplayState::DISPLAY_ON)); 94 EXPECT_NE(DisplayPowerMgr::DisplayState::DISPLAY_ON, client.GetDisplayState(DISPLAY_ID)); 95 EXPECT_NE(result, client.GetDisplayIds()); 96 EXPECT_NE(MAIN_ID_CLIENT, client.GetMainDisplayId()); 97 EXPECT_FALSE(client.SetBrightness(BRIGHTNESS_SETTING_VALUE, DISPLAY_ID)); 98 EXPECT_FALSE(client.DiscountBrightness(DISCOUNT_VALUE, DISPLAY_ID)); 99 EXPECT_FALSE(client.OverrideBrightness(BRIGHTNESS_OVERRIDE_VALUE, DISPLAY_ID)); 100 EXPECT_FALSE(client.RestoreBrightness(DISPLAY_ID)); 101 EXPECT_NE(BRIGHTNESS_SETTING_VALUE, client.GetBrightness(DISPLAY_ID)); [all …]
|
/base/startup/appspawn/lite/ |
D | appspawn_service.c | 134 AppSpawnClientLite client = {}; in Invoke() local 135 client.client.id = CLIENT_ID; in Invoke() 136 client.client.flags = 0; in Invoke() 137 client.client.cloneFlags = 0; in Invoke() 138 if (GetMessageSt(&client.message, req) != EC_SUCCESS) { in Invoke() 144 …APPSPAWN_LOGI("[appspawn] invoke, msg<%s,%s,%d,%d %d>", client.message.bundleName, client.message.… in Invoke() 145 client.message.uID, client.message.gID, client.message.capsCnt); in Invoke() 156 sandboxArg->client = &client.client; in Invoke() 161 FreeMessageSt(&client.message); in Invoke()
|
D | appspawn_process.c | 83 static int SetProcessName(struct AppSpawnContent_ *content, AppSpawnClient *client, in SetProcessName() argument 86 AppSpawnClientLite *appProperty = (AppSpawnClientLite *)client; in SetProcessName() 90 static int SetKeepCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetKeepCapabilities() argument 102 static int SetUidGid(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetUidGid() argument 104 AppSpawnClientLite *appProperty = (AppSpawnClientLite *)client; in SetUidGid() 131 static int SetCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetCapabilities() argument 133 AppSpawnClientLite *appProperty = (AppSpawnClientLite *)client; in SetCapabilities() 164 static void RunChildProcessor(AppSpawnContent *content, AppSpawnClient *client) in RunChildProcessor() argument 167 AppSpawnClientLite *appProperty = (AppSpawnClientLite *)client; in RunChildProcessor()
|
/base/update/updateservice/frameworks/js/napi/client/ |
D | update_module.cpp | 149 …UpdateClient *client = CreateJsObject<UpdateClient>(env, info, g_updateClientConstructorRef, jsObj… in GetOnlineUpdater() local 150 if (client != nullptr) { in GetOnlineUpdater() 151 napi_value result = client->GetOnlineUpdater(env, info); in GetOnlineUpdater() 182 UpdateClient *client = UnwrapJsObject<UpdateClient>(env, info); in CheckNewVersion() local 183 PARAM_CHECK_NAPI_CALL(env, client != nullptr, return nullptr, "Error get client"); in CheckNewVersion() 184 return client->CheckNewVersion(env, info); in CheckNewVersion() 189 UpdateClient *client = UnwrapJsObject<UpdateClient>(env, info); in SetUpgradePolicy() local 190 PARAM_CHECK_NAPI_CALL(env, client != nullptr, return nullptr, "Error get client"); in SetUpgradePolicy() 191 return client->SetUpgradePolicy(env, info); in SetUpgradePolicy() 196 UpdateClient *client = UnwrapJsObject<UpdateClient>(env, info); in GetUpgradePolicy() local [all …]
|
D | update_session.h | 32 … UpdateSession(IUpdater *client, SessionParams &sessionParams, size_t argc, size_t callbackNumber); 129 …UpdateAsyncSession(IUpdater *client, SessionParams &sessionParams, size_t argc, size_t callbackNum… 130 : UpdateSession(client, sessionParams, argc, callbackNumber) in UpdateSession() argument 152 IUpdater *client, SessionParams &sessionParams, size_t argc, size_t callbackNumber = 0) 153 : UpdateAsyncSession(client, sessionParams, argc, callbackNumber) {} in UpdateAsyncSession() argument 162 …UpdatePromiseSession(IUpdater *client, SessionParams &sessionParams, size_t argc, size_t callbackN… 163 : UpdateSession(client, sessionParams, argc, callbackNumber) {} in UpdateSession() argument 179 …IUpdater *client, SessionParams &sessionParams, size_t argc, bool isOnce, size_t callbackNumber = … 180 : UpdateSession(client, sessionParams, argc, callbackNumber), isOnce_(isOnce) {} in UpdateSession() argument
|
/base/powermgr/thermal_manager/services/native/test/unittest/src/ |
D | thermal_client_test.cpp | 91 auto& client = ThermalMgrClient::GetInstance(); variable 94 EXPECT_FALSE(client.SubscribeThermalTempCallback(typeList, tempCallback)); 95 EXPECT_FALSE(client.UnSubscribeThermalTempCallback(tempCallback)); 100 EXPECT_TRUE(client.SubscribeThermalTempCallback(typeList, tempCallback)); 101 EXPECT_TRUE(client.UnSubscribeThermalTempCallback(tempCallback)); 103 EXPECT_FALSE(client.SubscribeThermalLevelCallback(levelCallback)); 104 EXPECT_FALSE(client.UnSubscribeThermalLevelCallback(levelCallback)); 107 EXPECT_TRUE(client.SubscribeThermalLevelCallback(levelCallback)); 108 EXPECT_TRUE(client.UnSubscribeThermalLevelCallback(levelCallback)); 111 EXPECT_FALSE(client.SubscribeThermalActionCallback(typeList, actionList, actionCallback)); [all …]
|
/base/msdp/device_status/services/native/test/unittest/src/ |
D | devicestatus_client_test.cpp | 70 auto& client = DevicestatusClient::GetInstance(); variable 77 EXPECT_TRUE(client.devicestatusProxy_ == nullptr); 120 auto& client = DevicestatusClient::GetInstance(); variable 121 client.devicestatusProxy_ = nullptr; 123 client.SubscribeCallback(DevicestatusDataUtils::DevicestatusType::TYPE_LID_OPEN, callback); 138 auto& client = DevicestatusClient::GetInstance(); variable 139 client.devicestatusProxy_ = nullptr; 141 client.UnSubscribeCallback(DevicestatusDataUtils::DevicestatusType::TYPE_LID_OPEN, callback); 154 auto& client = DevicestatusClient::GetInstance(); variable 155 client.devicestatusProxy_ = nullptr; [all …]
|
/base/startup/appspawn/adapter/ |
D | appspawn_adapter.h | 27 int32_t SetAppSandboxProperty(struct AppSpawnContent_ *content, AppSpawnClient *client); 28 void SetAppAccessToken(struct AppSpawnContent_ *content, AppSpawnClient *client); 29 void SetSelinuxCon(struct AppSpawnContent_ *content, AppSpawnClient *client); 31 void RunChildProcessor(AppSpawnContent *content, AppSpawnClient *client); 36 void SetSeccompFilter(struct AppSpawnContent_ *content, AppSpawnClient *client);
|
D | appspawn_adapter.cpp | 30 void SetAppAccessToken(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetAppAccessToken() argument 32 AppSpawnClientExt *appProperty = reinterpret_cast<AppSpawnClientExt *>(client); in SetAppAccessToken() 38 void SetSelinuxCon(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetSelinuxCon() argument 42 AppSpawnClientExt *appProperty = reinterpret_cast<AppSpawnClientExt *>(client); in SetSelinuxCon() 65 void SetSeccompFilter(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetSeccompFilter() argument
|
D | appspawn_sandbox.cpp | 56 int32_t SetAppSandboxProperty(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetAppSandboxProperty() argument 58 APPSPAWN_CHECK(client != NULL, return -1, "Invalid appspwn client"); in SetAppSandboxProperty() 59 AppSpawnClientExt *appProperty = reinterpret_cast<AppSpawnClientExt *>(client); in SetAppSandboxProperty() 60 appProperty->property.cloneFlags = client->cloneFlags; in SetAppSandboxProperty()
|
/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/ |
D | key_agreement_client.c | 40 struct key_agreement_client *client = (struct key_agreement_client *)handle; in send_start_request() local 41 struct key_agreement_protocol *base = &client->protocol_base_info; in send_start_request() 44 if (is_state_error(client, SEND_START_REQUEST)) { in send_start_request() 48 struct client_virtual_func_group *funcs = &client->package_funcs; in send_start_request() 66 struct key_agreement_client *client = (struct key_agreement_client *)handle; in send_end_request() local 67 struct key_agreement_protocol *base = &client->protocol_base_info; in send_end_request() 70 if (is_state_error(client, SEND_END_REQUEST)) { in send_end_request() 74 struct client_virtual_func_group *funcs = &client->package_funcs; in send_end_request() 98 struct key_agreement_client *client = (struct key_agreement_client *)handle; in receive_end_response() local 99 struct key_agreement_protocol *base = &client->protocol_base_info; in receive_end_response() [all …]
|
/base/inputmethod/imf/services/src/ |
D | peruser_session.cpp | 80 [this, info](const wptr<IRemoteObject> &) { this->OnClientDied(info->client); }); in AddClient() 81 sptr<IRemoteObject> obj = info->client->AsObject(); in AddClient() 199 sptr<IInputClient> client = GetCurrentClient(); in OnClientDied() local 200 if (client == nullptr) { in OnClientDied() 205 if (client->AsObject() == remote->AsObject()) { in OnClientDied() 206 int ret = HideKeyboard(client); in OnClientDied() 268 sptr<IInputClient> client = GetCurrentClient(); in OnHideKeyboardSelf() local 269 if (client == nullptr) { in OnHideKeyboardSelf() 273 return HideKeyboard(client); in OnHideKeyboardSelf() 279 sptr<IInputClient> client = GetCurrentClient(); in OnShowKeyboardSelf() local [all …]
|
/base/sensors/miscdevice/interfaces/native/light/src/ |
D | light_agent.cpp | 32 auto &client = LightClient::GetInstance(); in GetLightList() local 33 int32_t ret = client.GetLightList(lightInfo, count); in GetLightList() 47 auto &client = LightClient::GetInstance(); in TurnOn() local 48 int32_t ret = client.TurnOn(lightId, color, animation); in TurnOn() 62 auto &client = LightClient::GetInstance(); in TurnOff() local 63 int32_t ret = client.TurnOff(lightId); in TurnOff()
|
/base/sensors/miscdevice/interfaces/native/vibrator/src/ |
D | vibrator_agent.cpp | 58 auto &client = VibratorServiceClient::GetInstance(); in StartVibrator() local 59 int32_t ret = client.Vibrate(DEFAULT_VIBRATOR_ID, effectId, g_loopCount, g_usage); in StartVibrator() 75 auto &client = VibratorServiceClient::GetInstance(); in StartVibratorOnce() local 76 int32_t ret = client.Vibrate(DEFAULT_VIBRATOR_ID, duration, g_usage); in StartVibratorOnce() 92 auto &client = VibratorServiceClient::GetInstance(); in StopVibrator() local 93 int32_t ret = client.Stop(DEFAULT_VIBRATOR_ID, mode); in StopVibrator()
|
/base/useriam/user_auth_framework/test/unittest/inner_api/ |
D | BUILD.gn | 23 "//base/useriam/user_auth_framework/frameworks/native/client/inc", 27 "//base/useriam/user_auth_framework/frameworks/native/client/src/auth_message_impl.cpp", 28 "//base/useriam/user_auth_framework/frameworks/native/client/src/co_auth_client_impl.cpp", 29 "//base/useriam/user_auth_framework/frameworks/native/client/src/executor_callback_service.cpp", 30 "//base/useriam/user_auth_framework/frameworks/native/client/src/executor_messenger_client.cpp", 31 … "//base/useriam/user_auth_framework/frameworks/native/client/src/user_auth_callback_service.cpp", 32 "//base/useriam/user_auth_framework/frameworks/native/client/src/user_auth_client_impl.cpp", 33 "//base/useriam/user_auth_framework/frameworks/native/client/src/user_idm_callback_service.cpp", 34 "//base/useriam/user_auth_framework/frameworks/native/client/src/user_idm_client_impl.cpp", 64 "//base/useriam/user_auth_framework/frameworks/native/client:userauth_client",
|
/base/inputmethod/imf/frameworks/inputmethod_controller/src/ |
D | input_method_system_ability_proxy.cpp | 31 int32_t InputMethodSystemAbilityProxy::PrepareInput(int32_t displayId, sptr<IInputClient> client, in PrepareInput() argument 34 … return SendRequest(PREPARE_INPUT, [displayId, client, channel, &attribute](MessageParcel &data) { in PrepareInput() 35 return data.WriteInt32(displayId) && data.WriteRemoteObject(client->AsObject()) && in PrepareInput() 40 int32_t InputMethodSystemAbilityProxy::StartInput(sptr<IInputClient> client, bool isShowKeyboard) in StartInput() argument 43 return SendRequest(START_INPUT, [isShowKeyboard, client](MessageParcel &data) { in StartInput() 44 return data.WriteRemoteObject(client->AsObject()) && data.WriteBool(isShowKeyboard); in StartInput() 66 int32_t InputMethodSystemAbilityProxy::StopInput(sptr<IInputClient> client) in StopInput() argument 70 [client](MessageParcel &data) { return data.WriteRemoteObject(client->AsObject()); }); in StopInput() 73 int32_t InputMethodSystemAbilityProxy::ReleaseInput(sptr<IInputClient> client) in ReleaseInput() argument 76 [client](MessageParcel &data) { return data.WriteRemoteObject(client->AsObject()); }); in ReleaseInput()
|
/base/inputmethod/imf/test/fuzztest/perusersession_fuzzer/ |
D | perusersession_fuzzer.cpp | 59 sptr<IInputClient> client = new (std::nothrow) InputClientStub(); in FuzzPerUserSession() local 60 sptr<IRemoteObject> object = client->AsObject(); in FuzzPerUserSession() 72 userSessions->OnStartInput(client, isShowKeyboard); in FuzzPerUserSession() 73 userSessions->OnStopInput(client); in FuzzPerUserSession() 74 userSessions->OnReleaseInput(client); in FuzzPerUserSession()
|
/base/sensors/sensor_lite/frameworks/src/ |
D | sensor_agent_proxy.c | 260 IClientProxy *client = (IClientProxy *)proxy; in RegisterSensorChannel() local 261 if (client == NULL) { in RegisterSensorChannel() 266 …int32_t ret = client->Invoke(client, SENSOR_SERVICE_ID_SubscribeSensor, &request, &retCode, Notify… in RegisterSensorChannel() 289 IClientProxy *client = (IClientProxy *)proxy; in UnregisterSensorChannel() local 290 if (client == NULL) { in UnregisterSensorChannel() 295 …int32_t ret = client->Invoke(client, SENSOR_SERVICE_ID_UnsubscribeSensor, &request, &retCode, Noti… in UnregisterSensorChannel() 325 IClientProxy *client = (IClientProxy *)proxy; in InitSensorList() local 326 int32_t ret = client->Invoke(client, SENSOR_SERVICE_ID_GetAllSensors, &request, &owner, Notify); in InitSensorList() 366 IClientProxy *client = (IClientProxy *)proxy; in ActivateSensorByProxy() local 367 …int32_t ret = client->Invoke(client, SENSOR_SERVICE_ID_ActivateSensor, &request, &retCode, Notify); in ActivateSensorByProxy() [all …]
|