Home
last modified time | relevance | path

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

12345678910>>...33

/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.cpp66 std::unique_ptr<PowerSaveMode> mode = std::make_unique<PowerSaveMode>(); in SetPolicyMode() local
67 policyCache = mode->GetPolicyCache(); in SetPolicyMode()
73 g_getSleepTimeResult = mode->GetSleepTime(proxyId); in SetPolicyMode()
84 PowerMode mode = PowerMode::POWER_SAVE_MODE; variable
85 SetPolicyMode(static_cast<uint32_t>(mode));
96 PowerMode mode = PowerMode::POWER_MODE_MIN; variable
97 SetPolicyMode(static_cast<uint32_t>(mode));
108 PowerMode mode = PowerMode::PERFORMANCE_MODE; variable
109 SetPolicyMode(static_cast<uint32_t>(mode));
120 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE; variable
[all …]
/base/security/crypto_framework/frameworks/crypto_operation/
Dsm2_crypto_util.c28 char *mode; member
36 static HcfSm2SpecToASN1CreateFunc FindAbility(const char *mode) in FindAbility() argument
39 if (HcfStrlen(mode) == 0) { in FindAbility()
43 if (strcmp(mode, CONVERT_ABILITY_SET[i].mode) == 0) { in FindAbility()
50 static bool CheckMode(const char *mode) in CheckMode() argument
52 if (HcfStrlen(mode) == 0) { in CheckMode()
56 if (strcmp(mode, CONVERT_ABILITY_SET[i].mode) == 0) { in CheckMode()
93 HcfResult HcfGenCipherTextBySpec(Sm2CipherTextSpec *spec, const char *mode, HcfBlob *output) in HcfGenCipherTextBySpec() argument
95 if (!CheckMode(mode)) { in HcfGenCipherTextBySpec()
107 HcfSm2SpecToASN1CreateFunc createFunc = FindAbility(mode); in HcfGenCipherTextBySpec()
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_sm4.c56 static const EVP_CIPHER *GetSm4CipherType(uint32_t keySize, uint32_t mode) in GetSm4CipherType() argument
61 switch (mode) { in GetSm4CipherType()
73 HKS_LOG_E("Unsupport sm4 mode! mode = %" LOG_PUBLIC "u", mode); in GetSm4CipherType()
81 switch (usageSpec->mode) { in HksOpensslSm4EncryptInit()
97 HKS_LOG_E("Unsupport sm4 mode! mode = 0x%" LOG_PUBLIC "x", usageSpec->mode); in HksOpensslSm4EncryptInit()
109 uint32_t mode = context->mode; in HksOpensslSm4EncryptUpdate() local
112 switch (mode) { in HksOpensslSm4EncryptUpdate()
128 HKS_LOG_E("Unsupport sm4 mode! mode = 0x%" LOG_PUBLIC "x", mode); in HksOpensslSm4EncryptUpdate()
140 uint32_t mode = ctx->mode; in HksOpensslSm4EncryptFinal() local
143 switch (mode) { in HksOpensslSm4EncryptFinal()
[all …]
/base/telephony/call_manager/services/call/include/
Dvideo_call_state.h44 int32_t SwitchCallVideoState(ImsCallMode mode);
45 int32_t DispatchUpdateVideoRequest(ImsCallMode mode);
46 int32_t DispatchUpdateVideoResponse(ImsCallMode mode);
48 virtual int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) = 0;
50 virtual int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) = 0;
52 sptr<VideoCallState> GetCallVideoState(ImsCallMode mode);
63 int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) override;
65 int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) override;
73 int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) override;
75 int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) override;
[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/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_->SendUpdateCallMediaModeRequest(mode); in DispatchUpdateVideoRequest()
69 int32_t VideoCallState::DispatchUpdateVideoResponse(ImsCallMode mode) in DispatchUpdateVideoResponse() argument
75 return call_->SendUpdateCallMediaModeResponse(mode); in DispatchUpdateVideoResponse()
87 sptr<VideoCallState> VideoCallState::GetCallVideoState(ImsCallMode mode) in GetCallVideoState() argument
94 return netCall->GetCallVideoState(mode); in GetCallVideoState()
99 int32_t AudioOnlyState::SendUpdateCallMediaModeRequest(ImsCallMode mode) in SendUpdateCallMediaModeRequest() argument
103 …LOGI("AudioOnlyState send update video request. mode:%{public}d, status %{public}d", mode, status); in SendUpdateCallMediaModeRequest()
[all …]
/base/update/updater/services/applypatch/
Ddata_writer.cpp59 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter() argument
62 switch (mode) { in CreateDataWriter()
84 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter() argument
88 return CreateDataWriter(mode, path, offset); in CreateDataWriter()
91 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(const std::string &mode, const std::string… in CreateDataWriter() argument
94 if (auto it = constructorMap_.find(mode); it != constructorMap_.end()) { in CreateDataWriter()
97 LOG(ERROR) << "create writer failed, can not find writer mode: " << mode; in CreateDataWriter()
106 void DataWriter::RegisterDataWriter(const std::string &mode, WriterConstructor constructor) in RegisterDataWriter() argument
108 if (mode.empty() || constructor == nullptr) { in RegisterDataWriter()
112 if (!constructorMap_.emplace(mode, constructor).second) { in RegisterDataWriter()
[all …]
/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/accesscontrol/sandbox_manager/frameworks/test/unittest/
Dsandbox_manager_parcel_test.cpp40 .mode = 0b01,
45 .mode = 0b10,
50 .mode = 0b11,
84 EXPECT_EQ(g_info1.mode, readedData->policyInfo.mode);
110 EXPECT_EQ(g_info1.mode, readedData->policyVector[0].mode);
112 EXPECT_EQ(g_info2.mode, readedData->policyVector[1].mode);
114 EXPECT_EQ(g_info3.mode, readedData->policyVector[2].mode);
/base/update/updater/services/ui/strategy/
Dui_strategy.cpp62 void UiStrategy::RegisterUiMode(const std::string &mode) in RegisterUiMode() argument
64 LOG(INFO) << "RegisterUiMode " << mode; in RegisterUiMode()
65 modeStr_.emplace_back(mode); in RegisterUiMode()
73 bool UiStrategy::LoadStrategy(const JsonNode &node, const std::string &mode) in LoadStrategy() argument
75 auto it = std::find(modeStr_.begin(), modeStr_.end(), mode); in LoadStrategy()
81 if (!Visit<SETVAL>(specificNode, defaultNode, strategies_[mode])) { in LoadStrategy()
85 LOG(DEBUG) << "mode " << mode << "\n" << strategies_[mode]; in LoadStrategy()
92 for (auto mode : modeStr_) { in LoadStrategy() local
93 if (!LoadStrategy(node, mode)) { in LoadStrategy()
94 LOG(ERROR) << "load strategy " << mode << " failed"; in LoadStrategy()
/base/usb/usb_manager/test/tool/
Dusb_function_test.cpp129 static void FunctionSwitch(UsbSrvClient &g_usbClient, int32_t mode) in FunctionSwitch() argument
131 switch (mode) { in FunctionSwitch()
136 int32_t ret = g_usbClient.SetCurrentFunctions(mode); in FunctionSwitch()
162 static void PortSwitch(UsbSrvClient &g_usbClient, int32_t mode) in PortSwitch() argument
164 switch (mode) { in PortSwitch()
229 static void DeviceStatus(UsbSrvClient &g_usbClient, int32_t mode) in DeviceStatus() argument
231 switch (mode) { in DeviceStatus()
248 static void SetProxy(UsbSrvClient &g_usbClient, int32_t mode) in SetProxy() argument
250 switch (mode) { in SetProxy()
285 uint32_t mode; in main() local
[all …]
/base/update/updater/services/factory_reset/
Dfactory_reset.cpp35 void FactoryResetProcess::RegisterFunc(FactoryResetMode mode, ResetFunc func) in RegisterFunc() argument
37 if (!resetTab_.emplace(mode, func).second) { in RegisterFunc()
38 LOG(ERROR) << "emplace: " << mode << " fail"; in RegisterFunc()
42 int FactoryResetProcess::FactoryResetFunc(FactoryResetMode mode, const std::string &path) in FactoryResetFunc() argument
44 auto iter = resetTab_.find(mode); in FactoryResetFunc()
46 LOG(ERROR) << "Invalid factory reset tag: " << mode; in FactoryResetFunc()
50 CommonResetPreFunc_(mode == MENU_WIPE_DATA || mode == FACTORY_WIPE_DATA) != 0) { in FactoryResetFunc()
55 LOG(ERROR) << "Do factory reset failed! tag: " << mode; in FactoryResetFunc()
/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_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);
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());
/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/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_rsa_oaep_decrypt.cpp46 .mode = HKS_MODE_ECB,
62 .mode = HKS_MODE_ECB,
79 .mode = HKS_MODE_ECB,
97 .mode = HKS_MODE_ECB,
117 .mode = HKS_MODE_ECB,
139 .mode = HKS_MODE_ECB,
165 .mode = HKS_MODE_ECB,
181 .mode = HKS_MODE_ECB,
198 .mode = HKS_MODE_ECB,
215 .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 …]
Dhks_crypto_hal_rsa_oaep_encrypt.cpp48 .mode = HKS_MODE_ECB,
64 .mode = HKS_MODE_ECB,
80 .mode = HKS_MODE_ECB,
96 .mode = HKS_MODE_ECB,
112 .mode = HKS_MODE_ECB,
128 .mode = HKS_MODE_ECB,
144 .mode = HKS_MODE_ECB,
160 .mode = HKS_MODE_ECB,
176 .mode = HKS_MODE_ECB,
192 .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.cpp78 .mode = HKS_MODE_ECB,
91 usageSpec.mode = HKS_MODE_CTR;
112 ctx->mode = HKS_MODE_ECB;
123 ctx->mode = HKS_MODE_CTR;
143 ctx->mode = HKS_MODE_ECB;
154 ctx->mode = HKS_MODE_ECB;
163 ctx->mode = HKS_MODE_CTR;
171 ctx->mode = HKS_MODE_CTR;
180 ctx->mode = 0;
208 ctx->mode = HKS_MODE_ECB;
[all …]
/base/accesscontrol/sandbox_manager/services/sandbox_manager/test/unittest/
Dpolicy_info_manager_test.cpp85 int64_t mode; in PrintDbRecords() local
91 mode = dbResult[i].GetInt(PolicyFiledConst::FIELD_MODE); in PrintDbRecords()
99 tokenid, mode, depth, path.c_str(), flag); in PrintDbRecords()
129 .mode = OperateMode::READ_MODE,
144 info.mode = 0; // 0 is an invalid mode
152 info.mode = 1234; // 1234 is an invalid mode
174 info.mode = OperateMode::READ_MODE + OperateMode::WRITE_MODE;
183 info.mode = OperateMode::READ_MODE + OperateMode::WRITE_MODE;
192 info.mode = OperateMode::READ_MODE;
227 .mode = OperateMode::READ_MODE,
[all …]
/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()
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/
Dimsclient_fuzzer.cpp69 int32_t mode = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithCallInfo() local
82 imsCallClient->Dial(callInfo, static_cast<CLIRMode>(mode)); in TestImsCallClientWithCallInfo()
94 imsCallClient->SetDomainPreferenceMode(slotId, mode); in TestImsCallClientWithCallInfo()
96 imsCallClient->SetImsSwitchStatus(slotId, mode); in TestImsCallClientWithCallInfo()
98 imsCallClient->SetMute(slotId, mode); in TestImsCallClientWithCallInfo()
109 int32_t mode = static_cast<int32_t>(size % NUM_SIX); in TestImsCallClientWithSlotAndType() local
133 imsCallClient->SetDeviceDirection(slotId, index, mode); in TestImsCallClientWithSlotAndType()
134 imsCallClient->SetCameraZoom(mode); in TestImsCallClientWithSlotAndType()
137 capbility.enable = mode; in TestImsCallClientWithSlotAndType()
153 int32_t mode = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithSettingFunction() local
[all …]

12345678910>>...33