/base/account/os_account/services/accountmgr/include/appaccount/ |
H A D | app_account_stub.h | 27 AppAccountStub *ptr, uint32_t code, MessageParcel &data, MessageParcel &reply); 32 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; 38 ErrCode ProcAddAccount(uint32_t code, MessageParcel &data, MessageParcel &reply); 39 ErrCode ProcAddAccountImplicitly(uint32_t code, MessageParcel &data, MessageParcel &reply); 40 ErrCode ProcCreateAccount(uint32_t code, MessageParcel &data, MessageParcel &reply); 41 ErrCode ProcCreateAccountImplicitly(uint32_t code, MessageParcel &data, MessageParcel &reply); 42 ErrCode ProcDeleteAccount(uint32_t code, MessageParcel &data, MessageParcel &reply); 43 ErrCode ProcGetAccountExtraInfo(uint32_t code, MessageParcel &data, MessageParcel &reply); 44 ErrCode ProcSetAccountExtraInfo(uint32_t code, MessageParcel &data, MessageParcel &reply); 45 ErrCode ProcSetAppAccess(uint32_t code, MessageParce [all...] |
/base/customization/enterprise_device_management/test/fuzztest/adminserviceinterface_fuzzer/ |
H A D | admin_service_interface_fuzzer.cpp | 37 for (uint32_t code = EdmInterfaceCode::ADD_DEVICE_ADMIN; code <= EdmInterfaceCode::AUTHORIZE_ADMIN; code++) { in LLVMFuzzerTestOneInput() 40 CommonFuzzer::OnRemoteRequestFuzzerTest(code, data, size, parcel); in LLVMFuzzerTestOneInput() 42 uint32_t code = (CommonFuzzer::GetU32Data(data)) % 3100; in LLVMFuzzerTestOneInput() local 43 if (code == EdmInterfaceCode::RESET_FACTORY || code == EdmInterfaceCode::SHUTDOWN || in LLVMFuzzerTestOneInput() 44 code == EdmInterfaceCode::REBOOT || code == EdmInterfaceCode::USB_READ_ONLY || in LLVMFuzzerTestOneInput() 45 code in LLVMFuzzerTestOneInput() [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_manager_ffi.cpp | 29 auto code = NotificationManagerImpl::Publish(request); in FfiOHOSNotificationManagerPublish() local 30 return code; in FfiOHOSNotificationManagerPublish() 35 auto code = NotificationManagerImpl::Cancel(id, label); in FfiOHOSNotificationManagerCancel() local 36 return code; in FfiOHOSNotificationManagerCancel() 41 auto code = NotificationManagerImpl::CancelAll(); in FfiOHOSNotificationManagerCancelAll() local 42 return code; in FfiOHOSNotificationManagerCancelAll() 47 auto code = NotificationManagerImpl::AddSlot(type); in FfiOHOSNotificationManagerAddSlot() local 48 return code; in FfiOHOSNotificationManagerAddSlot() 65 auto code = NotificationManagerImpl::RemoveSlot(type); in FfiOHOSNotificationManagerRemoveSlot() local 66 return code; in FfiOHOSNotificationManagerRemoveSlot() 71 auto code = NotificationManagerImpl::RemoveAllSlots(); FfiOHOSNotificationManagerRemoveAllSlots() local 89 auto code = NotificationManagerImpl::CancelGroup(cGroupName); FfiOHOSNotificationManagerCancelGroup() local 101 auto code = NotificationManagerImpl::SetNotificationEnable(option, enable); FfiOHOSNotificationManagerSetNotificationEnable() local 107 auto code = NotificationManagerImpl::DisplayBadge(option, enable); FfiOHOSNotificationManagerDisplayBadge() local 121 auto code = NotificationManagerImpl::SetSlotFlagsByBundle(option, slotFlags); FfiOHOSNotificationManagerSetSlotFlagsByBundle() local 141 auto code = NotificationManagerImpl::RemoveGroupByBundle(option, cGroupName); FfiOHOSNotificationManagerRemoveGroupByBundle() local 162 auto code = NotificationManagerImpl::SetBadgeNumber(badgeNumber); FfiOHOSNotificationManagerSetBadgeNumber() local 168 auto code = NotificationManagerImpl::RequestEnableNotification(); FfiOHOSNotificationManagerRequestEnableNotification() local 179 auto code = NotificationManagerImpl::RequestEnableNotificationWithContext(context); FfiOHOSNotificationManagerRequestEnableNotificationWithContext() local [all...] |
H A D | notification_manager_impl.cpp | 67 int code = NotificationHelper::PublishNotification(request); in Publish() local 68 return ErrorToExternal(code); in Publish() 73 int code = NotificationHelper::CancelNotification(label, id); in Cancel() local 74 return ErrorToExternal(code); in Cancel() 79 int code = NotificationHelper::CancelAllNotifications(); in CancelAll() local 80 return ErrorToExternal(code); in CancelAll() 89 int code = NotificationHelper::AddSlotByType(slot); in AddSlot() local 90 return ErrorToExternal(code); in AddSlot() 157 int code = NotificationHelper::RemoveNotificationSlot(slot); in RemoveSlot() local 158 return ErrorToExternal(code); in RemoveSlot() 163 int code = NotificationHelper::RemoveAllSlots(); RemoveAllSlots() local 171 int code = NotificationHelper::GetActiveNotificationNums(num); GetActiveNotificationCount() local 181 int code = NotificationHelper::GetActiveNotifications(requests); GetActiveNotifications() local 221 int code = NotificationHelper::CancelGroup(groupName); CancelGroup() local 230 int code = NotificationHelper::IsSupportTemplate(templateName, isSupport); IsSupportTemplate() local 243 int code = NotificationHelper::SetNotificationsEnabledForSpecifiedBundle(bundleOption, deviceId, enable); SetNotificationEnable() local 253 int code = NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, enable); DisplayBadge() local 266 int code = NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled); IsBadgeDisplayed() local 278 int code = NotificationHelper::SetNotificationSlotFlagsAsBundle(bundleOption, slotFlags); SetSlotFlagsByBundle() local 291 int code = NotificationHelper::GetNotificationSlotFlagsAsBundle(bundleOption, slotFlags); GetSlotFlagsByBundle() local 306 int code = NotificationHelper::GetNotificationSlotNumAsBundle(bundleOption, num); GetSlotNumByBundle() local 319 int code = NotificationHelper::RemoveGroupByBundle(bundleOption, groupName); RemoveGroupByBundle() local 349 int code = NotificationHelper::SetBadgeNumber(badgeNumber); SetBadgeNumber() local 362 int code = NotificationHelper::RequestEnableNotification(deviceId, client, params.callerToken); RequestEnableNotification() local 379 int code = NotificationHelper::RequestEnableNotification(deviceId, client, params.callerToken); RequestEnableNotificationWithContext() local 388 int code = NotificationHelper::IsDistributedEnabled(enable); IsDistributedEnabled() local [all...] |
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
H A D | napi_init.cpp | 89 napi_value code = nullptr; in CreateAsyKeySpecItemCode() local 90 napi_create_object(env, &code); in CreateAsyKeySpecItemCode() 92 AddUint32Property(env, code, "DSA_P_BN", DSA_P_BN); in CreateAsyKeySpecItemCode() 93 AddUint32Property(env, code, "DSA_Q_BN", DSA_Q_BN); in CreateAsyKeySpecItemCode() 94 AddUint32Property(env, code, "DSA_G_BN", DSA_G_BN); in CreateAsyKeySpecItemCode() 95 AddUint32Property(env, code, "DSA_SK_BN", DSA_SK_BN); in CreateAsyKeySpecItemCode() 96 AddUint32Property(env, code, "DSA_PK_BN", DSA_PK_BN); in CreateAsyKeySpecItemCode() 98 AddUint32Property(env, code, "ECC_FP_P_BN", ECC_FP_P_BN); in CreateAsyKeySpecItemCode() 99 AddUint32Property(env, code, "ECC_A_BN", ECC_A_BN); in CreateAsyKeySpecItemCode() 100 AddUint32Property(env, code, "ECC_B_B in CreateAsyKeySpecItemCode() 138 napi_value code = nullptr; CreateAsyKeySpecTypeCode() local 159 napi_value code = nullptr; CreateCipherSpecItemCode() local 181 napi_value code = nullptr; CreateSignSpecItemCode() local [all...] |
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/mock/src/ |
H A D | enterprise_device_mgr_stub_mock.cpp | 34 int EnterpriseDeviceMgrStubMock::InvokeSendRequestGetEnterpriseInfo(uint32_t code, MessageParcel &data,
in InvokeSendRequestGetEnterpriseInfo() argument 37 GTEST_LOG_(INFO) << "mock EnterpriseDeviceMgrStubMock InvokeSendRequestGetEnterpriseInfo code :" << code;
in InvokeSendRequestGetEnterpriseInfo() 39 code_ = code;
in InvokeSendRequestGetEnterpriseInfo() 45 int EnterpriseDeviceMgrStubMock::InvokeSendRequestEnableAdmin(uint32_t code, MessageParcel &data, MessageParcel &reply,
in InvokeSendRequestEnableAdmin() argument 48 GTEST_LOG_(INFO) << "mock EnterpriseDeviceMgrStubMock InvokeSendRequestEnableAdmin code :" << code;
in InvokeSendRequestEnableAdmin() 49 code_ = code;
in InvokeSendRequestEnableAdmin() 57 int EnterpriseDeviceMgrStubMock::InvokeSendRequestMapEnableAdminTwoSuc(uint32_t code, MessageParcel &data,
in InvokeSendRequestMapEnableAdminTwoSuc() argument 60 GTEST_LOG_(INFO) << "mock EnterpriseDeviceMgrStubMock InvokeSendRequestMapEnableAdminTwoSuc code in InvokeSendRequestMapEnableAdminTwoSuc() 71 InvokeSendRequestSetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestSetPolicy() argument 80 InvokeSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetPolicy() argument 90 InvokeSendRequestGetPolicyForWriteFileToStream(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetPolicyForWriteFileToStream() argument 100 InvokeSendRequestSetPolicyInstallFail(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestSetPolicyInstallFail() argument 109 InvokeBoolSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeBoolSendRequestGetPolicy() argument 119 InvokeBoolSendRequestGetFirewallRule(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeBoolSendRequestGetFirewallRule() argument 132 InvokeSendRequestGetDomainFilterRules(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetDomainFilterRules() argument 146 InvokeIntSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeIntSendRequestGetPolicy() argument 156 InvokeArrayStringSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeArrayStringSendRequestGetPolicy() argument 167 InvokeSendRequestGetErrPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetErrPolicy() argument 176 InvokeSendRequestGetPolicyExceedsMax(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetPolicyExceedsMax() argument 187 InvokeArrayElementSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeArrayElementSendRequestGetPolicy() argument 197 InvokeSendRequestParamError(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestParamError() argument 207 InvokeHttpProxySendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeHttpProxySendRequestGetPolicy() argument 218 InvokeBluetoothProxySendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeBluetoothProxySendRequestGetPolicy() argument 231 InvokeAccountProxySendRequestAddOsAccount(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeAccountProxySendRequestAddOsAccount() argument 245 InvokeAllowedUsbDevicesSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeAllowedUsbDevicesSendRequestGetPolicy() argument 265 InvokeDisallowedUsbDevicesSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeDisallowedUsbDevicesSendRequestGetPolicy() argument 286 InvokeSendRequestGetSuperAdmin(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetSuperAdmin() argument 297 InvokeSendRequestGetOTAUpdatePolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetOTAUpdatePolicy() argument 310 InvokeSendRequestGetUpgradeResult(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetUpgradeResult() argument 325 InvokeSendRequestGetPasswordPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestGetPasswordPolicy() argument [all...] |
/base/powermgr/battery_lite/test/ |
H A D | battery_test.js | 21 fail: function(data, code) { 22 console.log('fail to get battery Soc code:' + code + ', data: ' + data); 30 fail: function(data, code) { 31 console.log('fail to get battery ChargingStatus code:' + code + ', data: ' + data); 39 fail: function(data, code) { 40 console.log('fail to get battery HealthStatus code:' + code + ', data: ' + data); 48 fail: function(data, code) { [all...] |
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/mock/include/ |
H A D | enterprise_device_mgr_stub_mock.h | 44 int InvokeSendRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
in InvokeSendRequest() argument 46 GTEST_LOG_(INFO) << "mock EnterpriseDeviceMgrStubMock InvokeSendRequest code :" << code;
in InvokeSendRequest() 47 code_ = code;
in InvokeSendRequest() 52 int InvokeSendRequestGetEnterpriseInfo(uint32_t code, MessageParcel &data, MessageParcel &reply,
55 int InvokeSendRequestEnableAdmin(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option);
57 int InvokeSendRequestMapEnableAdminTwoSuc(uint32_t code, MessageParcel &data, MessageParcel &reply,
60 int InvokeSendRequestSetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option);
62 int InvokeSendRequestGetPolicy(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option);
64 int InvokeBoolSendRequestGetPolicy(uint32_t code, MessageParce 119 InvokeSendRequestReplyFail(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestReplyFail() argument 127 InvokeSendRequestFail(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) InvokeSendRequestFail() argument [all...] |
/base/customization/enterprise_device_management/test/fuzztest/enterprisedevicemgrstubmock_fuzzer/ |
H A D | enterprise_device_mgr_stub_mock_fuzzer.cpp | 35 uint32_t code = (CommonFuzzer::GetU32Data(data)) % 3100; in LLVMFuzzerTestOneInput() local 36 if (code == EdmInterfaceCode::RESET_FACTORY || code == EdmInterfaceCode::SHUTDOWN || in LLVMFuzzerTestOneInput() 37 code == EdmInterfaceCode::REBOOT || code == EdmInterfaceCode::USB_READ_ONLY || in LLVMFuzzerTestOneInput() 38 code == EdmInterfaceCode::DISABLED_HDC || code == EdmInterfaceCode::DISABLE_USB) { in LLVMFuzzerTestOneInput() 43 code = CREATE_FUNC_CODE(funcFlag, operateType, code); in LLVMFuzzerTestOneInput() 47 CommonFuzzer::OnRemoteRequestFuzzerTest(code, dat in LLVMFuzzerTestOneInput() [all...] |
/base/customization/enterprise_device_management/test/fuzztest/edmplugin_fuzzer/ |
H A D | edm_plugin_fuzzer.cpp | 38 uint32_t code = (CommonFuzzer::GetU32Data(data)) % 60 + MAX_EDM_INTERFACE_CODE; in LLVMFuzzerTestOneInput() local 39 if (code == EdmInterfaceCode::RESET_FACTORY || code == EdmInterfaceCode::SHUTDOWN || in LLVMFuzzerTestOneInput() 40 code == EdmInterfaceCode::REBOOT || code == EdmInterfaceCode::USB_READ_ONLY || in LLVMFuzzerTestOneInput() 41 code == EdmInterfaceCode::DISABLED_HDC || code == EdmInterfaceCode::DISABLE_USB || in LLVMFuzzerTestOneInput() 42 code == EdmInterfaceCode::SET_WIFI_PROFILE) { in LLVMFuzzerTestOneInput() 45 code = POLICY_FUNC_CODE(operateType, code); in LLVMFuzzerTestOneInput() [all...] |
/base/powermgr/thermal_manager/test/unittest/src/ |
H A D | thermal_mock_stub_getdescriptor_test.cpp | 44 uint32_t code = 0; in HWTEST_F() local 50 EXPECT_TRUE(E_GET_THERMAL_SERVICE_FAILED == actionStub->OnRemoteRequest(code, data, reply, option)); in HWTEST_F() 53 EXPECT_TRUE(E_GET_THERMAL_SERVICE_FAILED == levelStub->OnRemoteRequest(code, data, reply, option)); in HWTEST_F() 56 EXPECT_TRUE(E_GET_THERMAL_SERVICE_FAILED == tempStub->OnRemoteRequest(code, data, reply, option)); in HWTEST_F() 85 * @tc.desc: stub OnRemoteRequest Invalid code 91 uint32_t code = 9999; in HWTEST_F() local 98 int32_t ret = actionStub->OnRemoteRequest(code, data, reply, option); in HWTEST_F() 99 EXPECT_EQ(ret, IPC_STUB_UNKNOW_TRANS_ERR) << "ret: " << ret << " code: " << code; in HWTEST_F() local 103 ret = levelStub->OnRemoteRequest(code, dat in HWTEST_F() 104 EXPECT_EQ(ret, IPC_STUB_UNKNOW_TRANS_ERR) << "ret: " << ret << " code: " << code; HWTEST_F() local 109 EXPECT_EQ(ret, IPC_STUB_UNKNOW_TRANS_ERR) << "ret: " << ret << " code: " << code; HWTEST_F() local 123 uint32_t code = HWTEST_F() local 133 EXPECT_EQ(ret, ERR_OK) << "ret: " << ret << " code: " << code; HWTEST_F() local 138 EXPECT_EQ(ret, E_READ_PARCEL_ERROR_THERMAL) << "ret: " << ret << " code: " << code; HWTEST_F() local 144 EXPECT_EQ(ret, E_READ_PARCEL_ERROR_THERMAL) << "ret: " << ret << " code: " << code; HWTEST_F() local 151 EXPECT_EQ(ret, E_READ_PARCEL_ERROR_THERMAL) << "ret: " << ret << " code: " << code; HWTEST_F() local 164 uint32_t code = HWTEST_F() local 176 EXPECT_EQ(ret, ERR_OK) << "ret: " << ret << " code: " << code; HWTEST_F() local 181 EXPECT_EQ(ret, E_READ_PARCEL_ERROR_THERMAL) << "ret: " << ret << " code: " << code; HWTEST_F() local 187 EXPECT_EQ(ret, E_READ_PARCEL_ERROR_THERMAL) << "ret: " << ret << " code: " << code; HWTEST_F() local 194 EXPECT_EQ(ret, E_READ_PARCEL_ERROR_THERMAL) << "ret: " << ret << " code: " << code; HWTEST_F() local 207 uint32_t code = HWTEST_F() local 216 EXPECT_EQ(ret, E_READ_PARCEL_ERROR_THERMAL) << "ret: " << ret << " code: " << code; HWTEST_F() local [all...] |
H A D | thermal_mock_stub_test.cpp | 64 uint32_t code = 0; in HWTEST_F() local 70 EXPECT_EQ(E_GET_THERMAL_SERVICE_FAILED, actionStub->OnRemoteRequest(code, data, reply, option)); in HWTEST_F() 73 EXPECT_EQ(E_GET_THERMAL_SERVICE_FAILED, levelStub->OnRemoteRequest(code, data, reply, option)); in HWTEST_F() 76 EXPECT_EQ(E_GET_THERMAL_SERVICE_FAILED, tempStub->OnRemoteRequest(code, data, reply, option)); in HWTEST_F() 91 for (uint32_t code = begin; code <= end; ++code) { in HWTEST_F() 93 auto ret = g_service->OnRemoteRequest(code, g_data, g_reply, g_option); in HWTEST_F() 108 uint32_t code = 0; in HWTEST_F() local 109 int32_t ret = g_service->OnRemoteRequest(code, g_dat in HWTEST_F() 122 uint32_t code = 9999; HWTEST_F() local 143 uint32_t code = static_cast<uint32_t>(PowerMgr::ThermalMgrInterfaceCode::REG_THERMAL_TEMP_CALLBACK); HWTEST_F() local 168 uint32_t code = static_cast<uint32_t>(PowerMgr::ThermalMgrInterfaceCode::REG_THERMAL_LEVEL_CALLBACK); HWTEST_F() local 196 uint32_t code = static_cast<uint32_t>(PowerMgr::ThermalMgrInterfaceCode::REG_THERMAL_ACTION_CALLBACK); HWTEST_F() local 220 uint32_t code = static_cast<uint32_t>(PowerMgr::ThermalMgrInterfaceCode::GET_SENSOR_INFO); HWTEST_F() local 238 uint32_t code = static_cast<uint32_t>(PowerMgr::ThermalMgrInterfaceCode::SET_SCENE); HWTEST_F() local 257 uint32_t code = static_cast<uint32_t>(PowerMgr::ThermalMgrInterfaceCode::SHELL_DUMP); HWTEST_F() local [all...] |
/base/account/os_account/frameworks/account_iam/src/ |
H A D | account_iam_callback_stub.cpp | 29 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() 32 code, IPCSkeleton::GetCallingUid(), IPCSkeleton::GetCallingRealPid()); in OnRemoteRequest() 34 ACCOUNT_LOGE("check IDMCallbackStub descriptor failed! code %{public}u.", code); in OnRemoteRequest() 37 switch (code) { in OnRemoteRequest() 45 ACCOUNT_LOGW("remote request unhandled: %{public}d", code); in OnRemoteRequest() 46 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest() 89 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() 92 code, IPCSkeleton::GetCallingUid(), IPCSkeleton::GetCallingRealPid()); in OnRemoteRequest() 94 ACCOUNT_LOGE("check GetCredInfoCallbackStub descriptor failed! code in OnRemoteRequest() 28 OnRemoteRequest( uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) OnRemoteRequest() argument 88 OnRemoteRequest( uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) OnRemoteRequest() argument 147 OnRemoteRequest( uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) OnRemoteRequest() argument 183 OnRemoteRequest( uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) OnRemoteRequest() argument 218 OnRemoteRequest( uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) OnRemoteRequest() argument [all...] |
/base/powermgr/battery_manager/test/unittest/src/ |
H A D | battery_srv_stub_test.cpp | 61 uint32_t code = 0; in HWTEST_F() local 63 int32_t ret = g_service->OnRemoteRequest(code, data, g_reply, g_option); in HWTEST_F() 70 * @tc.desc: Test BatterySrvInterfaceCode BATT_GET_CAPACITY to BATT_GET_BATTERY_REMAIN_ENERGY code 79 for (uint32_t code = begin; code <= end; ++code) { in HWTEST_F() 81 int32_t ret = g_service->OnRemoteRequest(code, g_data, g_reply, g_option); in HWTEST_F() 82 EXPECT_EQ(ret, ERR_OK) << "ret: " << ret << " code: " << code; in HWTEST_F() local 90 * @tc.desc: Test ResetProxy Invalid code 97 uint32_t code = -100; HWTEST_F() local 100 EXPECT_EQ(ret, IPC_STUB_UNKNOW_TRANS_ERR) << "ret: " << ret << " code: " << code; HWTEST_F() local 118 uint32_t code = static_cast<uint32_t>(PowerMgr::BatterySrvInterfaceCode::SET_BATTERY_CONFIG); HWTEST_F() local 120 EXPECT_EQ(ret, ERR_OK) << "ret: " << ret << " code: " << code; HWTEST_F() local 136 uint32_t code = static_cast<uint32_t>(PowerMgr::BatterySrvInterfaceCode::GET_BATTERY_CONFIG); HWTEST_F() local 138 EXPECT_EQ(ret, ERR_OK) << "ret: " << ret << " code: " << code; HWTEST_F() local 154 uint32_t code = static_cast<uint32_t>(PowerMgr::BatterySrvInterfaceCode::SUPPORT_BATTERY_CONFIG); HWTEST_F() local 156 EXPECT_EQ(ret, ERR_OK) << "ret: " << ret << " code: " << code; HWTEST_F() local [all...] |
/base/time/time_service/framework/cj/src/ |
H A D | system_date_time_ffi.cpp | 37 RetDataI64 ret = { .code = INVALID_DATA_ID, .data = 0 }; in FfiOHOSSysDateTimegetCurrentTime() 40 ret.code = state; in FfiOHOSSysDateTimegetCurrentTime() 44 ret.code = state; in FfiOHOSSysDateTimegetCurrentTime() 51 RetDataI64 ret = { .code = INVALID_DATA_ID, .data = 0 }; in FfiOHOSSysDateTimegetRealActiveTime() 54 ret.code = state; in FfiOHOSSysDateTimegetRealActiveTime() 58 ret.code = state; in FfiOHOSSysDateTimegetRealActiveTime() 65 RetDataI64 ret = { .code = INVALID_DATA_ID, .data = 0 }; in FfiOHOSSysDateTimegetRealTime() 68 ret.code = state; in FfiOHOSSysDateTimegetRealTime() 72 ret.code = state; in FfiOHOSSysDateTimegetRealTime() 79 RetDataI64 ret = { .code in FfiOHOSSysDateTimeGetTime() [all...] |
/base/update/updater/services/ui/driver/ |
H A D | keys_input_device.cpp | 81 if (ev.code != KEY_POWER) { in PowerDownPress() 85 LOG(INFO) << "power down " << ev.code; in PowerDownPress() 98 if (ev.code == KEY_POWER) { in PowerVolumeDownPress() 100 } else if (ev.code == KEY_VOLUMEDOWN) { in PowerVolumeDownPress() 105 } else if (!down && (ev.code == KEY_POWER || ev.code == KEY_VOLUMEDOWN)) { in PowerVolumeDownPress() 112 if (ev.type != EV_KEY || ev.code > KEY_MAX) { in HandleKeyEvent() 115 if (ev.code == BTN_TOUCH || ev.code == BTN_TOOL_FINGER) { in HandleKeyEvent() 118 if (ev.code in HandleKeyEvent() [all...] |
/base/account/os_account/services/accountmgr/src/account_iam/ |
H A D | account_iam_client_callback_proxy.cpp | 23 const sptr<IRemoteObject> &remote, uint32_t code, MessageParcel &data, MessageParcel &reply)
in SendRequestFunc() 25 ACCOUNT_LOGI("send request, code = %{public}d", code);
in SendRequestFunc() 27 ACCOUNT_LOGE("remote is nullptr, code = %{public}d", code);
in SendRequestFunc() 31 int32_t result = remote->SendRequest(code, data, reply, option);
in SendRequestFunc() 33 ACCOUNT_LOGE("failed to SendRequest, code = %{public}d, result = %{public}d", code, result);
in SendRequestFunc() 39 static void OnResultFunc(const sptr<IRemoteObject> &remote, uint32_t code, std::u16string descriptor,
in OnResultFunc() argument 57 SendRequestFunc(remote, code, dat in OnResultFunc() 22 SendRequestFunc( const sptr<IRemoteObject> &remote, uint32_t code, MessageParcel &data, MessageParcel &reply) SendRequestFunc() argument 84 uint32_t code = static_cast<uint32_t>(IDMCallbackInterfaceCode::ON_ACQUIRE_INFO); OnAcquireInfo() local 85 SendRequestFunc(Remote(), code, data, reply); OnAcquireInfo() local 90 uint32_t code = static_cast<uint32_t>(IDMCallbackInterfaceCode::ON_RESULT); OnResult() local 91 OnResultFunc(Remote(), code, GetDescriptor(), result, extraInfo); OnResult() local 129 uint32_t code = static_cast<uint32_t>(GetCredInfoCallbackInterfaceCode::ON_CREDENTIAL_INFO); OnCredentialInfo() local 130 SendRequestFunc(Remote(), code, data, reply); OnCredentialInfo() local 139 uint32_t code = static_cast<uint32_t>(GetSetPropCallbackInterfaceCode::ON_RESULT); OnResult() local 140 OnResultFunc(Remote(), code, GetDescriptor(), result, extraInfo); OnResult() local 163 uint32_t code = static_cast<uint32_t>(GetEnrolledIdCallbackInterfaceCode::ON_ENROLLED_ID); OnEnrolledId() local 164 SendRequestFunc(Remote(), code, data, reply); OnEnrolledId() local 173 uint32_t code = static_cast<uint32_t>(PreRemoteAuthCallbackInterfaceCode::ON_RESULT); OnResult() local 184 SendRequestFunc(Remote(), code, data, reply); OnResult() local [all...] |
/base/web/webview/test/fuzztest/ohos_adapter/media_adapter/mediacodecdecoderadapterimpl_fuzzer/ |
H A D | mediacodecdecoderadapterimpl_fuzzer.cpp | 84 NWeb::DecoderAdapterCode code = mediaCodecDecoderAdapterImpl.CreateVideoDecoderByMime("testmimeType"); in MediaCodecDecoderAdapterImplFuzzTest() local 87 code = mediaCodecDecoderAdapterImpl.CreateVideoDecoderByName("testname"); in MediaCodecDecoderAdapterImplFuzzTest() 88 code = mediaCodecDecoderAdapterImpl.ConfigureDecoder(format); in MediaCodecDecoderAdapterImplFuzzTest() 89 code = mediaCodecDecoderAdapterImpl.SetParameterDecoder(format); in MediaCodecDecoderAdapterImplFuzzTest() 92 code = mediaCodecDecoderAdapterImpl.SetOutputSurface(window); in MediaCodecDecoderAdapterImplFuzzTest() 93 code = mediaCodecDecoderAdapterImpl.PrepareDecoder(); in MediaCodecDecoderAdapterImplFuzzTest() 94 code = mediaCodecDecoderAdapterImpl.StartDecoder(); in MediaCodecDecoderAdapterImplFuzzTest() 95 code = mediaCodecDecoderAdapterImpl.StopDecoder(); in MediaCodecDecoderAdapterImplFuzzTest() 96 code = mediaCodecDecoderAdapterImpl.FlushDecoder(); in MediaCodecDecoderAdapterImplFuzzTest() 97 code in MediaCodecDecoderAdapterImplFuzzTest() [all...] |
/base/notification/common_event_service/frameworks/core/test/unittest/ |
H A D | common_event_stub_test.cpp | 63 int SendRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override 132 const uint32_t code = -1; in HWTEST_F() local 138 int result = commonEventStub.OnRemoteRequest(code, dataParcel, reply, option); in HWTEST_F() 151 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_PUBLISH_COMMON_EVENT); in HWTEST_F() local 162 int result = commonEventStub.OnRemoteRequest(code, dataParcel, reply, option); in HWTEST_F() 175 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_PUBLISH_COMMON_EVENT); in HWTEST_F() local 185 int result = commonEventStub.OnRemoteRequest(code, dataParcel, reply, option); in HWTEST_F() 198 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_PUBLISH_COMMON_EVENT2); in HWTEST_F() local 210 int result = commonEventStub.OnRemoteRequest(code, dataParcel, reply, option); in HWTEST_F() 223 const uint32_t code in HWTEST_F() local 245 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_FINISH_RECEIVER); HWTEST_F() local 267 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_SUBSCRIBE_COMMON_EVENT); HWTEST_F() local 289 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_SUBSCRIBE_COMMON_EVENT); HWTEST_F() local 312 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_FREEZE); HWTEST_F() local 335 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_FREEZE); HWTEST_F() local 357 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_UNFREEZE); HWTEST_F() local 382 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_UNFREEZE); HWTEST_F() local 404 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_UNFREEZE_ALL); HWTEST_F() local 428 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_UNFREEZE_ALL); HWTEST_F() local 451 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_GET_STICKY_COMMON_EVENT); HWTEST_F() local 473 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_UNSUBSCRIBE_COMMON_EVENT); HWTEST_F() local 494 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_SUBSCRIBE_COMMON_EVENT); HWTEST_F() local 517 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_SUBSCRIBE_COMMON_EVENT); HWTEST_F() local 539 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_SUBSCRIBE_COMMON_EVENT); HWTEST_F() local 561 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_SUBSCRIBE_COMMON_EVENT); HWTEST_F() local 586 const uint32_t code = static_cast<uint32_t>(CommonEventInterfaceCode::CES_FINISH_RECEIVER); HWTEST_F() local [all...] |
/base/customization/enterprise_device_management/test/unittest/common/ |
H A D | edm_data_ability_utils_test.cpp | 66 ErrCode code = EdmDataAbilityUtils::GetStringFromSettingsDataShare(INVAILD_STRING, result); in HWTEST_F() local 67 ASSERT_TRUE(code == ERR_OK); in HWTEST_F() 70 code = EdmDataAbilityUtils::GetStringFromSettingsDataShare(KEY_DEVICE_NAME, result); in HWTEST_F() 71 ASSERT_TRUE(code == ERR_OK); in HWTEST_F() 83 ErrCode code = EdmDataAbilityUtils::GetIntFromSettingsDataShare(INVAILD_STRING, result); in HWTEST_F() local 84 ASSERT_TRUE(code == EdmReturnErrCode::SYSTEM_ABNORMALLY); in HWTEST_F() 86 code = EdmDataAbilityUtils::GetIntFromSettingsDataShare(KEY_SCREEN_OFF_TIME, result); in HWTEST_F() 87 ASSERT_TRUE(code == ERR_OK); in HWTEST_F() 99 ErrCode code = EdmDataAbilityUtils::UpdateSettingsData(KEY_SCREEN_OFF_TIME, value); in HWTEST_F() local 100 ASSERT_TRUE(code in HWTEST_F() [all...] |
/base/msdp/device_status/intention/ipc/tunnel/src/ |
H A D | intention_stub.cpp | 28 int32_t IntentionStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() argument 36 Intention intention = static_cast<Intention>(GINTENTION(code)); in OnRemoteRequest() 38 switch (GACTION(code)) { in OnRemoteRequest() 52 return AddWatch(intention, GPARAM(code), data, reply); in OnRemoteRequest() 55 return RemoveWatch(intention, GPARAM(code), data, reply); in OnRemoteRequest() 58 return SetParam(intention, GPARAM(code), data, reply); in OnRemoteRequest() 61 return GetParam(intention, GPARAM(code), data, reply); in OnRemoteRequest() 64 return Control(intention, GPARAM(code), data, reply); in OnRemoteRequest()
|
/base/powermgr/thermal_manager/frameworks/napi/ |
H A D | napi_errors.h | 30 NapiErrors(ThermalErrors code) : code_(code) {} in NapiErrors() argument 32 napi_value ThrowError(napi_env& env, ThermalErrors code = ThermalErrors::ERR_OK); 33 inline void Error(ThermalErrors code) in Error() argument 35 code_ = (code != ThermalErrors::ERR_OK) ? code : code_; in Error()
|
/base/powermgr/power_manager/frameworks/napi/utils/ |
H A D | napi_errors.h | 30 explicit NapiErrors(PowerErrors code) : code_(code) {} in NapiErrors() argument 32 napi_value ThrowError(napi_env& env, PowerErrors code = PowerErrors::ERR_OK); 33 inline void Error(PowerErrors code) in Error() argument 35 code_ = (code != PowerErrors::ERR_OK) ? code : code_; in Error()
|
/base/powermgr/battery_manager/frameworks/napi/include/ |
H A D | napi_error.h | 30 explicit NapiError(BatteryError code) : code_(code) {} in NapiError() argument 32 napi_value ThrowError(napi_env& env, BatteryError code = BatteryError::ERR_OK); 33 inline void Error(BatteryError code) in Error() argument 35 code_ = (code != BatteryError::ERR_OK) ? code : code_; in Error()
|
/base/powermgr/battery_statistics/frameworks/napi/include/ |
H A D | napi_error.h | 30 explicit NapiError(StatsError code) : code_(code) {} in NapiError() argument 32 napi_value ThrowError(napi_env& env, StatsError code = StatsError::ERR_OK); 33 inline void Error(StatsError code) in Error() argument 35 code_ = (code != StatsError::ERR_OK) ? code : code_; in Error()
|