/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_album_operation_test/src/ |
H A D | medialibrary_album_operation_test.cpp | 174 int HandleAnalysisPhotoAlbumTest(const OperationType &opType) in HandleAnalysisPhotoAlbumTest() argument 178 return MediaLibraryAlbumOperations::HandleAnalysisPhotoAlbum(opType, values, predicates); in HandleAnalysisPhotoAlbumTest() 229 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; in HWTEST_F() local 230 EXPECT_NE(MediaLibraryAlbumOperations::HandleAnalysisPhotoAlbum(opType, values, predicates), E_OK); in HWTEST_F() 240 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; in HWTEST_F() local 241 EXPECT_NE(MediaLibraryAlbumOperations::HandleAnalysisPhotoAlbum(opType, values, predicates), E_OK); in HWTEST_F() 252 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; in HWTEST_F() local 253 EXPECT_NE(MediaLibraryAlbumOperations::HandleAnalysisPhotoAlbum(opType, values, predicates), E_OK); in HWTEST_F() 264 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; in HWTEST_F() local 266 EXPECT_EQ(MediaLibraryAlbumOperations::HandleAnalysisPhotoAlbum(opType, value in HWTEST_F() 291 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 304 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 317 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 330 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 342 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 355 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 368 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 380 OperationType opType = OperationType::PORTRAIT_DISPLAY_LEVEL; HWTEST_F() local 391 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 402 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 414 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 426 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 438 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 451 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 464 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 479 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 494 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 508 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 523 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 607 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 630 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local 653 OperationType opType = OperationType::PORTRAIT_MERGE_ALBUM; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_cloud_kv_executor_utils.h | 41 static int FillCloudLog(const FillGidParam ¶m, OpType opType, const CloudSyncData &data, 90 static int OperateCloudData(sqlite3 *db, bool isMemory, int index, OpType opType, 93 static std::string GetOperateDataSql(OpType opType); 95 static std::string GetOperateLogSql(OpType opType); 101 static int BindStmt(sqlite3_stmt *logStmt, sqlite3_stmt *dataStmt, int index, OpType opType, 128 static int OnlyUpdateSyncData(sqlite3 *db, bool isMemory, int index, OpType opType, DownloadData &downloadData); 130 static int BindUpdateSyncDataStmt(sqlite3_stmt *dataStmt, int index, OpType opType, DownloadData &downloadData); 142 static int FillCloudVersionRecord(sqlite3 *db, OpType opType, const CloudSyncData &data);
|
H A D | sqlite_cloud_kv_executor_utils.cpp | 383 if (downloadData.data.size() != downloadData.opType.size()) { in PutCloudData() 385 downloadData.opType.size()); in PutCloudData() 407 for (OpType op : downloadData.opType) { in ExecutePutCloudData() 441 int SqliteCloudKvExecutorUtils::OperateCloudData(sqlite3 *db, bool isMemory, int index, OpType opType, in OperateCloudData() argument 445 int errCode = SQLiteUtils::GetStatement(db, GetOperateLogSql(opType), logStmt); in OperateCloudData() 451 errCode = SQLiteUtils::GetStatement(db, GetOperateDataSql(opType), dataStmt); in OperateCloudData() 458 ResFinalizer finalizerData([logStmt, dataStmt, opType]() { in OperateCloudData() 463 LOGW("[SqliteCloudKvExecutorUtils] Reset log stmt failed %d opType %d", ret, static_cast<int>(opType)); in OperateCloudData() 468 LOGW("[SqliteCloudKvExecutorUtils] Reset data stmt failed %d opType in OperateCloudData() 478 GetOperateDataSql(OpType opType) GetOperateDataSql() argument 497 GetOperateLogSql(OpType opType) GetOperateLogSql() argument 567 BindStmt(sqlite3_stmt *logStmt, sqlite3_stmt *dataStmt, int index, OpType opType, DownloadData &downloadData) BindStmt() argument 790 FillCloudLog(const FillGidParam ¶m, OpType opType, const CloudSyncData &data, const std::string &user, CloudUploadRecorder &recorder) FillCloudLog() argument 912 OnlyUpdateSyncData(sqlite3 *db, bool isMemory, int index, OpType opType, DownloadData &downloadData) OnlyUpdateSyncData() argument 946 BindUpdateSyncDataStmt(sqlite3_stmt *dataStmt, int index, OpType opType, DownloadData &downloadData) BindUpdateSyncDataStmt() argument 1095 FillCloudVersionRecord(sqlite3 *db, OpType opType, const CloudSyncData &data) FillCloudVersionRecord() argument [all...] |
H A D | sqlite_cloud_kv_store.h | 74 int FillCloudLogAndAsset(OpType opType, const CloudSyncData &data, bool fillAsset, bool ignoreEmptyGid) override;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/ |
H A D | cloud_sync_utils.cpp | 346 void CloudSyncUtils::UpdateLocalCache(OpType opType, const LogInfo &cloudInfo, const LogInfo &localInfo, in UpdateLocalCache() argument 352 switch (opType) { in UpdateLocalCache() 359 if (opType == OpType::DELETE) { in UpdateLocalCache() 361 } else if (opType == OpType::INSERT) { in UpdateLocalCache() 385 OpType opType = CalOpType(param, dataIndex); in SaveChangedData() local 388 if (opType == OpType::INSERT) { in SaveChangedData() 390 opType = OpType::UPDATE; in SaveChangedData() 399 if (!param.isSinglePrimaryKey && opType == OpType::INSERT) { in SaveChangedData() 404 switch (opType) { in SaveChangedData() 582 OpType opType in CalOpType() local [all...] |
H A D | cloud_sync_utils.h | 78 static void UpdateLocalCache(OpType opType, const LogInfo &cloudInfo,
|
/foundation/ai/neural_network_runtime/test/system_test/common/ |
H A D | nnrt_test.cpp | 97 OH_NN_ReturnCode NNRtTest::AddOperation(OH_NN_OperationType opType, in AddOperation() argument 106 OH_NN_ReturnCode status = OH_NNModel_AddOperation(m_model, opType, ¶ms, &inputs, &outputs); in AddOperation() 109 .opType = opType, in AddOperation()
|
H A D | nnrt_test.h | 45 OH_NN_OperationType opType; member 54 virtual OH_NN_ReturnCode AddOperation(OH_NN_OperationType opType,
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | medialibrary_album_operations.h | 62 static int32_t HandlePhotoAlbum(const OperationType &opType, const NativeRdb::ValuesBucket &values, 64 static int32_t HandleAnalysisPhotoAlbum(const OperationType &opType, const NativeRdb::ValuesBucket &values,
|
H A D | medialibrary_analysis_album_operations.h | 54 EXPORT static int32_t HandleGroupPhotoAlbum(const OperationType &opType, const NativeRdb::ValuesBucket &values,
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
H A D | sqlite_single_ver_relational_storage_executor_extend.cpp | 256 for (OpType op : downloadData.opType) { in ExecutePutCloudData() 614 if (downloadData.data.size() != downloadData.opType.size()) { in PutCloudSyncData() 616 downloadData.opType.size()); in PutCloudSyncData() 996 static inline bool IsAllowWithPrimaryKey(OpType opType) in IsAllowWithPrimaryKey() argument 998 return (opType == OpType::DELETE || opType == OpType::UPDATE_TIMESTAMP || opType == OpType::CLEAR_GID || in IsAllowWithPrimaryKey() 999 opType == OpType::ONLY_UPDATE_GID || opType == OpType::LOCKED_NOT_HANDLE); in IsAllowWithPrimaryKey() 1003 OpType opType) in UpdateLogRecord() 1002 UpdateLogRecord(const VBucket &vBucket, const TableSchema &tableSchema, OpType opType) UpdateLogRecord() argument 1120 OnlyUpdateLogTable(const VBucket &vBucket, const TableSchema &tableSchema, OpType opType) OnlyUpdateLogTable() argument 1381 OpType opType = downloadData.opType[index++]; MarkFlagAsConsistent() local [all...] |
H A D | sqlite_single_ver_relational_storage_executor.h | 142 int FillCloudAssetForUpload(OpType opType, const TableSchema &tableSchema, const CloudSyncBatch &data); 143 int FillCloudVersionForUpload(const OpType opType, const CloudSyncData &data); 177 int FillHandleWithOpType(const OpType opType, const CloudSyncData &data, bool fillAsset, bool ignoreEmptyGid, 310 int InitFillUploadAssetStatement(OpType opType, const TableSchema &tableSchema, const CloudSyncBatch &data, 348 int GetUpdateLogRecordStatement(const TableSchema &tableSchema, const VBucket &vBucket, OpType opType, 353 int UpdateLogRecord(const VBucket &vBucket, const TableSchema &tableSchema, OpType opType); 364 int OnlyUpdateLogTable(const VBucket &vBucket, const TableSchema &tableSchema, OpType opType); 424 int64_t dataKey, OpType opType);
|
H A D | sqlite_single_ver_relational_storage_extend_executor.cpp | 191 int SQLiteSingleVerRelationalStorageExecutor::FillCloudAssetForUpload(OpType opType, const TableSchema &tableSchema, in FillCloudAssetForUpload() argument 212 errCode = InitFillUploadAssetStatement(opType, tableSchema, data, i, stmt); in FillCloudAssetForUpload() 242 int SQLiteSingleVerRelationalStorageExecutor::FillCloudVersionForUpload(const OpType opType, const CloudSyncData &data) in FillCloudVersionForUpload() argument 244 switch (opType) { in FillCloudVersionForUpload() 250 LOGE("Fill version with unknown type %d", static_cast<int>(opType)); in FillCloudVersionForUpload() 286 int SQLiteSingleVerRelationalStorageExecutor::InitFillUploadAssetStatement(OpType opType, in InitFillUploadAssetStatement() argument 298 AssetOperationUtils::CloudSyncAction action = opType == OpType::SET_UPLOADING ? in InitFillUploadAssetStatement() 1345 int SQLiteSingleVerRelationalStorageExecutor::FillHandleWithOpType(const OpType opType, const CloudSyncData &data, in FillHandleWithOpType() argument 1349 switch (opType) { in FillHandleWithOpType() 1352 errCode = FillCloudVersionForUpload(opType, dat in FillHandleWithOpType() 1492 OnlyUpdateAssetId(const std::string &tableName, const TableSchema &tableSchema, const VBucket &vBucket, int64_t dataKey, OpType opType) OnlyUpdateAssetId() argument [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 214 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in SetInnerBuild() 215 EXPECT_EQ(OH_NN_SUCCESS, innerModel.AddOperation(opType, m_paramIndices, m_inputIndices, m_outputIndices)); in SetInnerBuild() 312 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 322 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, &m_paramIndices, &m_inputIndices, &m_outputIndices); in HWTEST_F() 335 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 349 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, nullptr, &m_inputIndices, &m_outputIndices); in HWTEST_F() 362 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 376 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, &m_paramIndices, nullptr, &m_outputIndices); in HWTEST_F() 389 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 403 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, in HWTEST_F() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_command.cpp | 234 const string opType = MediaFileUri::GetPathSecondDentry(uri_); in ParseOprnTypeFromUri() local 235 if (OPRN_TYPE_MAP.find(opType) != OPRN_TYPE_MAP.end()) { in ParseOprnTypeFromUri() 236 oprnType_ = OPRN_TYPE_MAP.at(opType); in ParseOprnTypeFromUri()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/ |
H A D | icloud_sync_storage_interface.h | 49 std::vector<OpType> opType; member 150 virtual int FillCloudLogAndAsset(OpType opType, const CloudSyncData &data, bool fillAsset, bool ignoreEmptyGid) = 0;
|
H A D | storage_proxy.h | 104 int FillCloudLogAndAsset(OpType opType, const CloudSyncData &data); 118 void FillCloudGidIfSuccess(const OpType opType, const CloudSyncData &data);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/ |
H A D | cloud_storage_utils.cpp | 399 AssetStatus CloudStorageUtils::FlagToStatus(AssetOpType opType) in FlagToStatus() argument 401 switch (opType) { in FlagToStatus() 593 AssetOperationUtils::AssetOpType opType = AssetOperationUtils::AssetOpType::NOT_HANDLE; in FillAssetFromVBucketFinish() local 596 opType = iterCol->second.at(dbItem.name); in FillAssetFromVBucketFinish() 598 int errCode = fillAsset(cacheItem, dbItem, opType); in FillAssetFromVBucketFinish() 795 std::string CloudStorageUtils::GetTableRefUpdateSql(const TableInfo &table, OpType opType) in GetTableRefUpdateSql() argument 807 if (opType != OpType::UPDATE) { in GetTableRefUpdateSql() 815 if (opType == OpType::UPDATE) { in GetTableRefUpdateSql() 826 if (opType == OpType::UPDATE) { in GetTableRefUpdateSql() 828 } else if (opType in GetTableRefUpdateSql() 977 AssetOperationUtils::AssetOpType opType = AssetOperationUtils::AssetOpType::NOT_HANDLE; MergeAssetWithFillFunc() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/ |
H A D | distributeddb_cloud_kv_syncer_test.cpp | 61 void CheckUploadAbnormal(OpType opType, int64_t expCnt, bool isCompensated = false); 280 void DistributedDBCloudKvSyncerTest::CheckUploadAbnormal(OpType opType, int64_t expCnt, bool isCompensated) in CheckUploadAbnormal() argument 289 switch (opType) { in CheckUploadAbnormal() 714 * @tc.steps: step1. Call PutCloudData interface with different opType when para is invalid. in HWTEST_F() 722 downloadData.opType = {OpType::UPDATE_VERSION}; in HWTEST_F() 726 downloadData.opType = {OpType::UPDATE_TIMESTAMP}; in HWTEST_F() 729 downloadData.opType = {OpType::DELETE}; in HWTEST_F()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_asset_rdbstore.cpp | 67 const std::string opType = MediaFileUri::GetPathSecondDentry(uri);
in GetOprnTypeFromUri() local 68 if (OPRN_TYPE_MAP.find(opType) != OPRN_TYPE_MAP.end()) {
in GetOprnTypeFromUri() 69 return OPRN_TYPE_MAP.at(opType);
in GetOprnTypeFromUri()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | inner_model.h | 43 OH_NN_ReturnCode AddOperation(OH_NN_OperationType opType,
|
H A D | inner_model.cpp | 401 OH_NN_ReturnCode InnerModel::AddOperation(OH_NN_OperationType opType, const OH_NN_UInt32Array& paramIndices, in AddOperation() argument 425 std::unique_ptr<Ops::OpsBuilder> opsBuilder = opsRegistry.GetOpsBuilder(opType); in AddOperation() 427 LOGE("AddOperation failed, cannot add operation of type: %d.", opType); in AddOperation()
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 215 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in SetInnerBuild() 216 EXPECT_EQ(OH_NN_SUCCESS, innerModel.AddOperation(opType, m_paramIndices, m_inputIndices, m_outputIndices)); in SetInnerBuild() 365 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 375 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, &m_paramIndices, &m_inputIndices, &m_outputIndices); in HWTEST_F() 388 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 402 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, nullptr, &m_inputIndices, &m_outputIndices); in HWTEST_F() 415 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 429 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, &m_paramIndices, nullptr, &m_outputIndices); in HWTEST_F() 442 OH_NN_OperationType opType {OH_NN_OPS_ADD}; in HWTEST_F() 456 OH_NN_ReturnCode ret = OH_NNModel_AddOperation(model, opType, in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | storage_proxy.cpp | 437 int StorageProxy::FillCloudLogAndAsset(OpType opType, const CloudSyncData &data) in FillCloudLogAndAsset() argument 447 return store_->FillCloudLogAndAsset(opType, data, true, false); in FillCloudLogAndAsset() 524 void StorageProxy::FillCloudGidIfSuccess(const OpType opType, const CloudSyncData &data) in FillCloudGidIfSuccess() argument 531 int errCode = store_->FillCloudLogAndAsset(opType, data, true, true); in FillCloudGidIfSuccess()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/relational/ |
H A D | relational_sync_able_storage.cpp | 1401 int RelationalSyncAbleStorage::FillCloudLogAndAsset(const OpType opType, const CloudSyncData &data, bool fillAsset, in FillCloudLogAndAsset() argument 1418 errCode = FillCloudLogAndAssetInner(writeHandle, opType, data, fillAsset, ignoreEmptyGid); in FillCloudLogAndAsset() 1420 LOGE("Failed to fill version or cloud asset, opType:%d ret:%d.", opType, errCode); in FillCloudLogAndAsset() 1834 downloadData.opType.push_back(OpType::INSERT); in UpsertDataInTransaction() 1840 downloadData.opType.push_back(OpType::UPDATE); in UpsertDataInTransaction() 1865 OpType opType, const CloudSyncData &data, bool fillAsset, bool ignoreEmptyGid) in FillCloudLogAndAssetInner() 1873 errCode = handle->FillHandleWithOpType(opType, data, fillAsset, ignoreEmptyGid, tableSchema); in FillCloudLogAndAssetInner() 1877 if (opType == OpType::INSERT) { in FillCloudLogAndAssetInner() 1879 } else if (opType in FillCloudLogAndAssetInner() 1864 FillCloudLogAndAssetInner(SQLiteSingleVerRelationalStorageExecutor *handle, OpType opType, const CloudSyncData &data, bool fillAsset, bool ignoreEmptyGid) FillCloudLogAndAssetInner() argument [all...] |