Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 637) sorted by relevance

12345678910>>...26

/base/telephony/call_manager/services/call/src/
Dvideo_call_state.cpp49 int32_t VideoCallState::SwitchCallVideoState(ImsCallMode mode) in SwitchCallVideoState() argument
56 netCall->SwitchVideoState(mode); in SwitchCallVideoState()
60 int32_t VideoCallState::DispatchUpdateVideoRequest(ImsCallMode mode) in DispatchUpdateVideoRequest() argument
66 return call_->DispatchUpdateVideoRequest(mode); in DispatchUpdateVideoRequest()
69 int32_t VideoCallState::DispatchUpdateVideoResponse(ImsCallMode mode) in DispatchUpdateVideoResponse() argument
75 return call_->DispatchUpdateVideoResponse(mode); in DispatchUpdateVideoResponse()
78 sptr<VideoCallState> VideoCallState::GetCallVideoState(ImsCallMode mode) in GetCallVideoState() argument
85 return netCall->GetCallVideoState(mode); in GetCallVideoState()
90 int32_t AudioOnlyState::SendUpdateCallMediaModeRequest(ImsCallMode mode) in SendUpdateCallMediaModeRequest() argument
92 TELEPHONY_LOGI("AudioOnlyState send update video request. mode:%{public}d", mode); in SendUpdateCallMediaModeRequest()
[all …]
Dims_call.cpp266 int32_t IMSCall::SendUpdateCallMediaModeRequest(ImsCallMode mode) in SendUpdateCallMediaModeRequest() argument
282 return videoCallState_->SendUpdateCallMediaModeRequest(mode); in SendUpdateCallMediaModeRequest()
285 int32_t IMSCall::SendUpdateCallMediaModeResponse(ImsCallMode mode) in SendUpdateCallMediaModeResponse() argument
298 return videoCallState_->SendUpdateCallMediaModeResponse(mode); in SendUpdateCallMediaModeResponse()
301 int32_t IMSCall::RecieveUpdateCallMediaModeRequest(ImsCallMode mode) in RecieveUpdateCallMediaModeRequest() argument
313 return videoCallState_->RecieveUpdateCallMediaModeRequest(mode); in RecieveUpdateCallMediaModeRequest()
334 void IMSCall::SwitchVideoState(ImsCallMode mode) in SwitchVideoState() argument
337 … TELEPHONY_LOGI("SwitchVideoState call %{public}d switch to state %{public}d", GetCallID(), mode); in SwitchVideoState()
338 if (videoStateMap_.find(mode) != videoStateMap_.end()) { in SwitchVideoState()
339 videoCallState_ = videoStateMap_[mode]; in SwitchVideoState()
[all …]
/base/telephony/call_manager/services/call/include/
Dvideo_call_state.h42 int32_t SwitchCallVideoState(ImsCallMode mode);
43 int32_t DispatchUpdateVideoRequest(ImsCallMode mode);
44 int32_t DispatchUpdateVideoResponse(ImsCallMode mode);
45 virtual int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) = 0;
46 virtual int32_t RecieveUpdateCallMediaModeRequest(ImsCallMode mode) = 0;
47 virtual int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) = 0;
48 virtual int32_t ReceiveUpdateCallMediaModeResponse(ImsCallMode mode) = 0;
49 sptr<VideoCallState> GetCallVideoState(ImsCallMode mode);
60 int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) override;
61 int32_t RecieveUpdateCallMediaModeRequest(ImsCallMode mode) override;
[all …]
Dnet_call_base.h41 virtual int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) = 0;
43 virtual int32_t RecieveUpdateCallMediaModeRequest(ImsCallMode mode) = 0;
45 virtual int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) = 0;
48 virtual int32_t DispatchUpdateVideoRequest(ImsCallMode mode) = 0;
49 virtual int32_t DispatchUpdateVideoResponse(ImsCallMode mode) = 0;
Dims_call.h57 int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) override;
58 int32_t RecieveUpdateCallMediaModeRequest(ImsCallMode mode) override;
59 int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) override;
61 void SwitchVideoState(ImsCallMode mode);
63 int32_t DispatchUpdateVideoRequest(ImsCallMode mode) override;
64 int32_t DispatchUpdateVideoResponse(ImsCallMode mode) override;
65 sptr<VideoCallState> GetCallVideoState(ImsCallMode mode);
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_powersavemode_test.cpp50 void PowerMgrPowerSavemodeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() argument
74 PowerMode mode = PowerMode::POWER_SAVE_MODE; variable
76 powerMgrClient.SetDeviceMode(mode);
77 mode = powerMgrClient.GetDeviceMode();
78 EXPECT_EQ(mode, mode1) << "PowerSavemode_001 fail to SetDeviceMode";
93 PowerMode mode = PowerMode::PERFORMANCE_MODE; variable
95 powerMgrClient.SetDeviceMode(mode);
96 mode = powerMgrClient.GetDeviceMode();
97 EXPECT_EQ(mode, mode1) << "PowerSavemode_002 fail to SetDeviceMode";
111 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE; variable
[all …]
Dpower_mgr_system_test.cpp68 std::unique_ptr<PowerSaveMode> mode = std::make_unique<PowerSaveMode>(); in SetPolicyMode() local
69 policyCache = mode->GetPolicyCache(); in SetPolicyMode()
85 PowerMode mode = PowerMode::POWER_SAVE_MODE; variable
86 SetPolicyMode(static_cast<uint32_t>(mode));
97 PowerMode mode = PowerMode::POWER_MODE_MIN; variable
98 SetPolicyMode(static_cast<uint32_t>(mode));
109 PowerMode mode = PowerMode::PERFORMANCE_MODE; variable
110 SetPolicyMode(static_cast<uint32_t>(mode));
121 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE; variable
122 SetPolicyMode(static_cast<uint32_t>(mode));
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_sm4.c86 static const EVP_CIPHER *GetSm4CipherType(uint32_t keySize, uint32_t mode) in GetSm4CipherType() argument
88 …return GetBlockCipherType(keySize, mode, GetSm4CbcCipherType, GetSm4CtrCipherType, GetSm4EcbCipher… in GetSm4CipherType()
94 switch (usageSpec->mode) { in HksOpensslSm4EncryptInit()
107 HKS_LOG_E("Unsupport sm4 mode! mode = 0x%" LOG_PUBLIC "x", usageSpec->mode); in HksOpensslSm4EncryptInit()
119 uint32_t mode = context->mode; in HksOpensslSm4EncryptUpdate() local
122 switch (mode) { in HksOpensslSm4EncryptUpdate()
135 HKS_LOG_E("Unsupport sm4 mode! mode = 0x%" LOG_PUBLIC "x", mode); in HksOpensslSm4EncryptUpdate()
147 uint32_t mode = ctx->mode; in HksOpensslSm4EncryptFinal() local
150 switch (mode) { in HksOpensslSm4EncryptFinal()
163 HKS_LOG_E("Unsupport sm4 mode! mode = 0x%" LOG_PUBLIC "x", mode); in HksOpensslSm4EncryptFinal()
[all …]
/base/startup/init/test/unittest/param/
Ddac_unittest.cpp83 int TestDacCheckParaPermission(const char *name, ParamDacData *dacData, int mode) in TestDacCheckParaPermission() argument
99 …ParamSecurityOps.securityCheckParamPermission(TestGetParamLabelIndex(name), &srclabel, name, mode); in TestDacCheckParaPermission()
150 dacData.mode = 0400;
153 dacData.mode = 0400;
156 dacData.mode = 0400;
161 dacData.mode = 0200;
164 dacData.mode = 0200;
167 dacData.mode = 0200;
172 dacData.mode = 0100;
175 dacData.mode = 0100;
[all …]
/base/startup/init/interfaces/innerkits/reboot/
Dinit_reboot_innerkits.c33 static int DoRebootByInitPlugin(const char *mode, const char *option) in DoRebootByInitPlugin() argument
37 if (mode != NULL) { in DoRebootByInitPlugin()
39 …nprintf_s(value, MAX_REBOOT_OPTION_SIZE, MAX_REBOOT_OPTION_SIZE - 1, "reboot,%s:%s", mode, option); in DoRebootByInitPlugin()
41 … ret = snprintf_s(value, MAX_REBOOT_OPTION_SIZE, MAX_REBOOT_OPTION_SIZE - 1, "reboot,%s", mode); in DoRebootByInitPlugin()
59 static int ExecReboot(const char *mode, const char *option) in ExecReboot() argument
68 DoRebootByInitPlugin(mode, option); in ExecReboot()
79 DoRebootByInitPlugin(mode, option); in ExecReboot()
90 int DoRebootExt(const char *mode, const char *option) in DoRebootExt() argument
92 return ExecReboot(mode, option); in DoRebootExt()
/base/startup/init/test/unittest/ueventd/
Dueventd_config_unittest.cpp48 mode_t mode = 0; variable
49 GetDeviceNodePermissions("/dev/test", &uid, &gid, &mode);
52 EXPECT_EQ(mode, 0666);
55 mode = 0777;
58 GetDeviceNodePermissions("/dev/test1", &uid, &gid, &mode);
61 EXPECT_EQ(mode, 0777);
64 GetDeviceNodePermissions("/dev/test2", &uid, &gid, &mode);
67 EXPECT_EQ(mode, 0777);
/base/usb/usb_manager/test/tool/
Dusb_function_port_test.cpp69 static void FunctionSwitch(UsbSrvClient &g_usbClient, int32_t mode) in FunctionSwitch() argument
71 switch (mode) { in FunctionSwitch()
76 int32_t ret = g_usbClient.SetCurrentFunctions(mode); in FunctionSwitch()
102 static void PortSwitch(UsbSrvClient &g_usbClient, int32_t mode) in PortSwitch() argument
104 switch (mode) { in PortSwitch()
141 uint32_t mode; in main() local
143 mode = stoi(argv[PARAM_INDEX]); in main()
144 FunctionSwitch(g_usbClient, mode); in main()
146 mode = stoi(argv[PARAM_INDEX]); in main()
147 PortSwitch(g_usbClient, mode); in main()
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/
Dimsclient_fuzzer.cpp57 int32_t mode = static_cast<int32_t>(size % 2); in TestImsCallClientWithCallInfo() local
70 imsCallClient->Dial(callInfo, static_cast<CLIRMode>(mode)); in TestImsCallClientWithCallInfo()
75 imsCallClient->UpdateImsCallMode(callInfo, static_cast<ImsCallMode>(mode)); in TestImsCallClientWithCallInfo()
83 imsCallClient->SetDomainPreferenceMode(slotId, mode); in TestImsCallClientWithCallInfo()
85 imsCallClient->SetImsSwitchStatus(slotId, mode); in TestImsCallClientWithCallInfo()
87 imsCallClient->SetMute(slotId, mode); in TestImsCallClientWithCallInfo()
104 int32_t mode = static_cast<int32_t>(size % 6); in TestImsCallClientWithSlotAndType() local
115 imsCallClient->SetDeviceDirection(mode); in TestImsCallClientWithSlotAndType()
116 imsCallClient->SetCameraZoom(mode); in TestImsCallClientWithSlotAndType()
119 capbility.enable = mode; in TestImsCallClientWithSlotAndType()
[all …]
/base/powermgr/power_manager/test/unittest/src/
Dpower_device_mode_test.cpp37 void PowerDeviceModeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() argument
42 void PowerDeviceModeTest::PowerModeTest2Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() argument
95 PowerMode mode = PowerMode::POWER_SAVE_MODE; variable
96 powerMgrClient.SetDeviceMode(mode);
97 EXPECT_EQ(powerMgrClient.GetDeviceMode(), mode);
110 PowerMode mode = PowerMode::NORMAL_MODE; variable
116 mode = powerMgrClient.GetDeviceMode();
121 powerMgrClient.SetDeviceMode(mode);
Dpower_register_callback_mode_test.cpp36 void PowerRegisterCallbackModeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() argument
53 PowerMode mode = PowerMode::POWER_SAVE_MODE; variable
54 powerMgrClient.SetDeviceMode(mode);
55 EXPECT_EQ(mode, powerMgrClient.GetDeviceMode());
Dpower_mode_module_native_test.cpp39 void PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() argument
73 PowerMode mode = PowerMode::PERFORMANCE_MODE; variable
74 powerModeModuleTest->EnableMode(mode, true);
77 powerModeModuleTest->SetModeItem(mode);
78 EXPECT_EQ(mode, powerModeModuleTest->GetModeItem());
79 mode = static_cast<PowerMode>(POWERMODE);
80 powerModeModuleTest->SetModeItem(mode);
/base/startup/init/test/unittest/init/
Dutils_unittest.cpp43 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IXOTH | S_IROTH; variable
44 int ret = MakeDirRecursive(dir, mode);
47 ret = MakeDirRecursive(dir, mode);
74 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; variable
75 CheckAndCreatFile("/data/init_ut/testcreatfile", mode);
76 CheckAndCreatFile("/data/init_ut/nodir/testcreatfile", mode);
/base/powermgr/power_manager/services/native/src/
Dpower_mode_policy.cpp69 void PowerModePolicy::SetPowerModePolicy(uint32_t mode, uint32_t lastMode) in SetPowerModePolicy() argument
71 POWER_HILOGD(FEATURE_POWER_MODE, "mode=%{public}d, lastMode=%{public}d", mode, lastMode); in SetPowerModePolicy()
76 ReadOpenPolicy(mode); in SetPowerModePolicy()
78 CompareModeItem(mode, lastMode); in SetPowerModePolicy()
81 void PowerModePolicy::ReadOpenPolicy(uint32_t mode) in ReadOpenPolicy() argument
83 DelayedSpSingleton<PowerSaveMode>::GetInstance()->GetValuePolicy(openPolicy, mode); in ReadOpenPolicy()
86 void PowerModePolicy::ReadRecoverPolicy(uint32_t mode) in ReadRecoverPolicy() argument
88 DelayedSpSingleton<PowerSaveMode>::GetInstance()->GetRecoverPolicy(recoverPolicy, mode); in ReadRecoverPolicy()
91 void PowerModePolicy::CompareModeItem(uint32_t mode, uint32_t lastMode) in CompareModeItem() argument
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_rsa_oaep_encrypt.cpp46 .mode = HKS_MODE_ECB,
66 .mode = HKS_MODE_ECB,
88 .mode = HKS_MODE_ECB,
112 .mode = HKS_MODE_ECB,
143 .mode = HKS_MODE_ECB,
181 .mode = HKS_MODE_ECB,
226 .mode = HKS_MODE_ECB,
246 .mode = HKS_MODE_ECB,
268 .mode = HKS_MODE_ECB,
292 .mode = HKS_MODE_ECB,
[all …]
Dhks_crypto_hal_rsa_oaep_decrypt.cpp44 .mode = HKS_MODE_ECB,
64 .mode = HKS_MODE_ECB,
87 .mode = HKS_MODE_ECB,
113 .mode = HKS_MODE_ECB,
148 .mode = HKS_MODE_ECB,
192 .mode = HKS_MODE_ECB,
247 .mode = HKS_MODE_ECB,
267 .mode = HKS_MODE_ECB,
290 .mode = HKS_MODE_ECB,
315 .mode = HKS_MODE_ECB,
[all …]
Dhks_crypto_hal_rsa_sign.cpp54 .mode = HKS_MODE_ECB,
74 .mode = HKS_MODE_ECB,
94 .mode = HKS_MODE_ECB,
114 .mode = HKS_MODE_ECB,
134 .mode = HKS_MODE_ECB,
154 .mode = HKS_MODE_ECB,
174 .mode = HKS_MODE_ECB,
194 .mode = HKS_MODE_ECB,
214 .mode = HKS_MODE_ECB,
235 .mode = HKS_MODE_ECB,
[all …]
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/crypto_engine_test/src/
Dhks_openssl_aes_test.cpp80 .mode = HKS_MODE_ECB,
93 usageSpec.mode = HKS_MODE_CTR;
114 ctx->mode = HKS_MODE_ECB;
125 ctx->mode = HKS_MODE_CTR;
145 ctx->mode = HKS_MODE_ECB;
156 ctx->mode = HKS_MODE_ECB;
165 ctx->mode = HKS_MODE_CTR;
173 ctx->mode = HKS_MODE_CTR;
182 ctx->mode = 0;
210 ctx->mode = HKS_MODE_ECB;
[all …]
/base/update/updater/services/ui/strategy/
Dui_strategy.cpp66 bool UiStrategy::LoadStrategy(const JsonNode &node, UpdaterMode mode) in LoadStrategy() argument
68 auto it = modeStr_.find(mode); in LoadStrategy()
74 if (!Visit<SETVAL>(specificNode, defaultNode, strategies_[mode])) { in LoadStrategy()
78 LOG(DEBUG) << "mode " << modeStr_[mode] << ":\n" << strategies_[mode]; in LoadStrategy()
87 for (auto mode : strategies) { in LoadStrategy() local
88 if (!LoadStrategy(node, mode)) { in LoadStrategy()
89 LOG(ERROR) << "load strategy " << modeStr_[mode] << " failed"; in LoadStrategy()
/base/startup/appspawn/standard/
Dmain.c56 int mode = 0; in main() local
60 mode = 1; in main()
84 …WN_LOGI("NwebSpawnCreateContent argc %{public}d mode %{public}d %{public}u", argc, mode, argvSize); in main()
85 … AppSpawnContent *content = AppSpawnCreateContent(NWEBSPAWN_SOCKET_NAME, argv[0], argvSize, mode); in main()
96 …AWN_LOGI("AppSpawnCreateContent argc %{public}d mode %{public}d %{public}u", argc, mode, argvSize); in main()
97 … AppSpawnContent *content = AppSpawnCreateContent(APPSPAWN_SOCKET_NAME, argv[0], argvSize, mode); in main()
106 if (mode == 0) { in main()
/base/usb/usb_manager/test/native/mock/src/
Dusb_impl_mock.cpp75 …t32_t MockUsbImpl::QueryPort(int32_t &portId, int32_t &powerRole, int32_t &dataRole, int32_t &mode) in QueryPort() argument
81 mode = UsbSrvSupport::PORT_MODE_DEVICE; in QueryPort()
100 int32_t mode = UsbSrvSupport::PORT_MODE_DEVICE; in SetPortRole() local
113 mode = UsbSrvSupport::PORT_MODE_HOST; in SetPortRole()
117 mode = UsbSrvSupport::PORT_MODE_DEVICE; in SetPortRole()
123 portInfo_.mode = mode; in SetPortRole()

12345678910>>...26