/ohos5.0/foundation/distributeddatamgr/pasteboard/utils/native/include/ |
H A D | pasteboard_error.h | 29 enum class PasteboardError : int32_t { enum 71 {PasteboardError::E_OK, "E_OK"}, 77 {PasteboardError::OTHER_ERROR, "OTHER_ERROR"}, 80 {PasteboardError::PARAM_ERROR, "PARAM_ERROR"}, 81 {PasteboardError::TIMEOUT_ERROR, "TIMEOUT_ERROR"}, 82 {PasteboardError::CANCELED, "CANCELED"}, 84 {PasteboardError::TASK_PROCESSING, "TASK_PROCESSING"}, 85 {PasteboardError::PROHIBIT_COPY, "PROHIBIT_COPY"}, 86 {PasteboardError::UNKNOWN_ERROR, "UNKNOWN_ERROR"}, 90 {PasteboardError::NO_DATA_ERROR, "NO_DATA_ERROR"}, [all …]
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/services/test/unittest/src/ |
H A D | pasteboard_deduplicate_memory_test.cpp | 52 PasteboardError errorCode; 71 …bool isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM… 74 …isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM_ERRO… 77 …isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM_ERRO… 92 …bool isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM… 96 …isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM_ERRO… 100 …isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM_ERRO… 120 …isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM_ERRO… 124 …isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM_ERRO… 144 …isDuplicate = reportMemory.IsDuplicate({.pid = 1, .errorCode = PasteboardError::INVALID_PARAM_ERRO… [all …]
|
H A D | paste_service_test.cpp | 176 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); in CommonTest() 180 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); in CommonTest() 208 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 213 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 400 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 405 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 425 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 430 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 450 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 455 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); [all …]
|
H A D | pasteboard_dialog_normal_branch_test.cpp | 58 EXPECT_TRUE(ret == static_cast<int32_t>(PasteboardError::TASK_PROCESSING));
|
H A D | pasteboard_dialog_abnormal_branch_test.cpp | 64 EXPECT_TRUE(ret == static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR));
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/services/zidl/src/ |
H A D | pasteboard_service_proxy.cpp | 58 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in GetRecordValueByType() 63 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in GetRecordValueByType() 68 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in GetRecordValueByType() 72 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in GetRecordValueByType() 76 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in GetRecordValueByType() 134 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in SetPasteData() 146 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in SetPasteData() 150 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in SetPasteData() 154 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in SetPasteData() 159 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in SetPasteData() [all …]
|
H A D | pasteboard_entry_getter_proxy.cpp | 35 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in MakeRequest() 39 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in MakeRequest() 44 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in MakeRequest() 48 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in MakeRequest() 52 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in MakeRequest() 54 return static_cast<int32_t>(PasteboardError::E_OK); in MakeRequest() 61 if (res != static_cast<int32_t>(PasteboardError::E_OK)) { in GetRecordValueByType() 76 return static_cast<int32_t>(PasteboardError::DESERIALIZATION_ERROR); in GetRecordValueByType() 81 return static_cast<int32_t>(PasteboardError::DESERIALIZATION_ERROR); in GetRecordValueByType() 87 return static_cast<int32_t>(PasteboardError::DESERIALIZATION_ERROR); in GetRecordValueByType()
|
H A D | pasteboard_entry_getter_client.cpp | 34 return static_cast<int32_t>(PasteboardError::INVALID_DATA_ERROR); in GetRecordValueByType() 40 return static_cast<int32_t>(PasteboardError::E_OK); in GetRecordValueByType()
|
H A D | pasteboard_service_stub.cpp | 489 return static_cast<int32_t>(PasteboardError::DESERIALIZATION_ERROR); in OnSetAppShareOptions() 494 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in OnSetAppShareOptions() 504 return static_cast<int32_t>(PasteboardError::SERIALIZATION_ERROR); in OnRemoveAppShareOptions()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/device/ |
H A D | distributed_module_config.cpp | 39 if (status == static_cast<int32_t>(PasteboardError::DP_LOAD_SERVICE_ERROR)) { in Notify() 45 bool newStatus = (status == static_cast<int32_t>(PasteboardError::E_OK)); in Notify() 59 auto status = static_cast<int32_t>(PasteboardError::REMOTE_TASK_ERROR); in GetRetryTask() 63 if (status == static_cast<int32_t>(PasteboardError::DP_LOAD_SERVICE_ERROR)) { in GetRetryTask() 73 bool newStatus = (status == static_cast<int32_t>(PasteboardError::E_OK)); in GetRetryTask() 95 …if (status.first != static_cast<int32_t>(PasteboardError::E_OK) || status.second != SUPPORT_STATUS… in GetEnabledStatus() 98 return static_cast<int32_t>(PasteboardError::LOCAL_SWITCH_NOT_TURNED_ON); in GetEnabledStatus() 104 … if (res.first == static_cast<int32_t>(PasteboardError::E_OK) && res.second == SUPPORT_STATUS) { in GetEnabledStatus() 105 return static_cast<int32_t>(PasteboardError::E_OK); in GetEnabledStatus() 109 return static_cast<int32_t>(PasteboardError::NO_TRUST_DEVICE_ERROR); in GetEnabledStatus()
|
H A D | dev_profile.cpp | 150 if (ret.first == static_cast<int32_t>(PasteboardError::E_OK) && in PutEnabledStatus() 185 return std::make_pair(static_cast<int32_t>(PasteboardError::GET_LOCAL_DEVICE_ID_ERROR), ""); in GetEnabledStatus() 191 return std::make_pair(static_cast<int32_t>(PasteboardError::E_OK), SUPPORT_STATUS); in GetEnabledStatus() 195 return std::make_pair(static_cast<int32_t>(PasteboardError::DP_LOAD_SERVICE_ERROR), ""); in GetEnabledStatus() 200 return std::make_pair(static_cast<int32_t>(PasteboardError::NO_TRUST_DEVICE_ERROR), ""); in GetEnabledStatus()
|
H A D | dm_adapter.cpp | 200 return static_cast<int32_t>(PasteboardError::E_OK); in GetRemoteDeviceInfo() 204 return static_cast<int32_t>(PasteboardError::NO_TRUST_DEVICE_ERROR); in GetRemoteDeviceInfo() 260 return static_cast<int32_t>(PasteboardError::NO_DATA_ERROR); in GetLocalDeviceType()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | pasteboard_client_udmf_delay_test.cpp | 115 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); in SetUnifiedData() 362 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 373 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 390 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 405 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 425 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 440 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 460 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 475 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 495 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); [all …]
|
H A D | pasteboard_multi_type_unified_data_delay_test.cpp | 227 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 231 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 275 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 279 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 334 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK)); 337 ASSERT_EQ(status, static_cast<int32_t>(PasteboardError::E_OK));
|
H A D | dm_adapter_test.cpp | 109 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::NO_TRUST_DEVICE_ERROR));
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/ndk/include/ |
H A D | oh_pasteboard_common.h | 28 const std::map<PasteboardError, PASTEBOARD_ErrCode> errCodeMap = { 29 {PasteboardError::PERMISSION_VERIFICATION_ERROR, ERR_PERMISSION_ERROR}, 30 {PasteboardError::INVALID_PARAM_ERROR, ERR_INVALID_PARAMETER}, 31 {PasteboardError::TASK_PROCESSING, ERR_BUSY},
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/services/core/src/ |
H A D | pasteboard_service.cpp | 380 return static_cast<int32_t>(PasteboardError::E_OK); in GetRecordValueByType() 464 return static_cast<int32_t>(PasteboardError::E_OK); in IsDataVaild() 594 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in GetPasteData() 822 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in GetLocalData() 859 return static_cast<int32_t>(PasteboardError::E_OK); in GetLocalData() 947 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in EstablishP2PLink() 976 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in CloseP2PLink() 1030 return static_cast<int32_t>(PasteboardError::E_OK); in GrantUriPermission() 1255 return static_cast<int32_t>(PasteboardError::E_OK); in SaveData() 1393 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in GetLocalMimeTypes() [all …]
|
H A D | pasteboard_dialog.cpp | 72 return static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR); in ShowToast() 85 return static_cast<int32_t>(PasteboardError::TASK_PROCESSING); in ShowToast() 93 return static_cast<int32_t>(PasteboardError::E_OK); in ShowToast()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/adapter/data_share/ |
H A D | datashare_delegate.cpp | 88 return static_cast<int32_t>(PasteboardError::CREATE_DATASHARE_SERVICE_ERROR); in GetValue() 98 return static_cast<int32_t>(PasteboardError::INVALID_RETURN_VALUE_ERROR); in GetValue() 105 return static_cast<int32_t>(PasteboardError::QUERY_SETTING_NO_DATA_ERROR); in GetValue() 116 return static_cast<int32_t>(PasteboardError::E_OK); in GetValue()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/ |
H A D | pasteboard_client.cpp | 212 return static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR); in GetRecordValueByType() 246 static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR)); in GetPasteData() 247 return static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR); in GetPasteData() 256 if (ret == static_cast<int32_t>(PasteboardError::E_OK)) { in GetPasteData() 402 static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR)); in SetPasteData() 403 return static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR); in SetPasteData() 419 if (ret == static_cast<int32_t>(PasteboardError::E_OK)) { in SetPasteData() 535 return static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR); in SetGlobalShareOption() 544 return static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR); in RemoveGlobalShareOption() 562 return static_cast<int32_t>(PasteboardError::OBTAIN_SERVER_SA_ERROR); in SetAppShareOptions() [all …]
|
H A D | pasteboard_entry_getter.cpp | 49 if (result != static_cast<int32_t>(PasteboardError::E_OK)) { in GetValueByType()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/cj/src/ |
H A D | system_pasteboard_impl.cpp | 71 if (ret == static_cast<int>(PasteboardError::E_OK)) { in SetData() 75 } else if (ret == static_cast<int>(PasteboardError::PROHIBIT_COPY)) { in SetData() 78 } else if (ret == static_cast<int>(PasteboardError::TASK_PROCESSING)) { in SetData()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/ndk/src/ |
H A D | oh_pasteboard.cpp | 45 auto iter = errCodeMap.find(static_cast<PasteboardError>(code)); in GetMappedCode() 175 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in OH_Pasteboard_GetDataSource() 231 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in OH_Pasteboard_GetData() 249 if (ret != static_cast<int32_t>(PasteboardError::E_OK)) { in OH_Pasteboard_SetData()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/ |
H A D | napi_systempasteboard.cpp | 447 if (ret == static_cast<int32_t>(PasteboardError::TASK_PROCESSING)) { in GetData() 522 if (ret == static_cast<int>(PasteboardError::E_OK)) { in SetData() 524 } else if (ret == static_cast<int>(PasteboardError::PROHIBIT_COPY)) { in SetData() 526 } else if (ret == static_cast<int>(PasteboardError::TASK_PROCESSING)) { in SetData() 553 if (ret == static_cast<int>(PasteboardError::E_OK)) { in SetUnifiedData() 555 } else if (ret == static_cast<int>(PasteboardError::PROHIBIT_COPY)) { in SetUnifiedData() 557 } else if (ret == static_cast<int>(PasteboardError::TASK_PROCESSING)) { in SetUnifiedData() 578 if (ret == static_cast<int32_t>(PasteboardError::TASK_PROCESSING)) { in GetUnifiedData() 657 if (*value != static_cast<int32_t>(PasteboardError::E_OK)) { in SetUnifiedDataSync() 813 if (*value != static_cast<int>(PasteboardError::E_OK)) { in GetDataSource() [all …]
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/ndk/unittest/ |
H A D | pasteboard_capi_test.cpp | 725 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 766 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 811 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK)); 838 ASSERT_TRUE(ret == static_cast<int32_t>(PasteboardError::E_OK));
|