/base/telephony/call_manager/services/call/src/ |
D | video_call_state.cpp | 49 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 …]
|
D | ims_call.cpp | 266 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/ |
D | video_call_state.h | 42 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 …]
|
D | net_call_base.h | 41 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;
|
D | ims_call.h | 57 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/ |
D | power_mgr_powersavemode_test.cpp | 50 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 …]
|
D | power_mgr_system_test.cpp | 68 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/ |
D | hks_openssl_sm4.c | 86 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/ |
D | dac_unittest.cpp | 83 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/ |
D | init_reboot_innerkits.c | 33 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/ |
D | ueventd_config_unittest.cpp | 48 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/ |
D | usb_function_port_test.cpp | 69 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/ |
D | imsclient_fuzzer.cpp | 57 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/ |
D | power_device_mode_test.cpp | 37 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);
|
D | power_register_callback_mode_test.cpp | 36 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());
|
D | power_mode_module_native_test.cpp | 39 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/ |
D | utils_unittest.cpp | 43 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/ |
D | power_mode_policy.cpp | 69 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/ |
D | hks_crypto_hal_rsa_oaep_encrypt.cpp | 46 .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 …]
|
D | hks_crypto_hal_rsa_oaep_decrypt.cpp | 44 .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 …]
|
D | hks_crypto_hal_rsa_sign.cpp | 54 .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/ |
D | hks_openssl_aes_test.cpp | 80 .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/ |
D | ui_strategy.cpp | 66 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/ |
D | main.c | 56 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/ |
D | usb_impl_mock.cpp | 75 …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()
|