Home
last modified time | relevance | path

Searched refs:DataType (Results 1 – 20 of 20) sorted by relevance

/base/security/asset/frameworks/definition/src/
Dlib.rs27 pub enum DataType {
46 Secret = DataType::Bytes as isize | 0x01,
49 Alias = DataType::Bytes as isize | 0x02,
52 Accessibility = DataType::Number as isize | 0x03,
55 RequirePasswordSet = DataType::Bool as isize | 0x04,
59 AuthType = DataType::Number as isize | 0x05,
63 AuthValidityPeriod = DataType::Number as isize | 0x06,
66 AuthChallenge = DataType::Bytes as isize | 0x07,
69 AuthToken = DataType::Bytes as isize | 0x08,
72 SyncType = DataType::Number as isize | 0x10,
[all …]
Dextension.rs23 …impl_from_for_u32, log_throw_error, Accessibility, AssetError, AuthType, Conversion, DataType, Err…
31 fn data_type(&self) -> DataType { in data_type() argument
34 _ if DataType::Bool as u32 == mask => DataType::Bool, in data_type()
35 _ if DataType::Number as u32 == mask => DataType::Number, in data_type()
36 _ if DataType::Bytes as u32 == mask => DataType::Bytes, in data_type()
49 fn data_type(&self) -> DataType { in data_type() argument
51 Value::Bool(_) => DataType::Bool, in data_type()
52 Value::Number(_) => DataType::Number, in data_type()
53 Value::Bytes(_) => DataType::Bytes, in data_type()
63 fn data_type(&self) -> DataType { in data_type() argument
[all …]
Dmacros.rs113 fn data_type(&self) -> $crate::DataType {
114 $crate::DataType::Number
/base/security/asset/services/db_operator/src/
Dtypes.rs20 use asset_definition::{DataType, ErrCode, Value};
83 pub(crate) data_type: DataType,
89 …ColumnInfo { name: column::ID, data_type: DataType::Number, is_primary_key: true, not_null: true },
90 …ColumnInfo { name: column::SECRET, data_type: DataType::Bytes, is_primary_key: false, not_null: tr…
91 …ColumnInfo { name: column::ALIAS, data_type: DataType::Bytes, is_primary_key: false, not_null: tru…
92 …ColumnInfo { name: column::OWNER, data_type: DataType::Bytes, is_primary_key: false, not_null: tru…
93 …ColumnInfo { name: column::OWNER_TYPE, data_type: DataType::Number, is_primary_key: false, not_nul…
94 …ColumnInfo { name: column::GROUP_ID, data_type: DataType::Bytes, is_primary_key: false, not_null: …
95 …ColumnInfo { name: column::SYNC_TYPE, data_type: DataType::Number, is_primary_key: false, not_null…
96 …ColumnInfo { name: column::ACCESSIBILITY, data_type: DataType::Number, is_primary_key: false, not_…
[all …]
Dtable.rs22 use asset_definition::{log_throw_error, Conversion, DataType, ErrCode, Result, Value};
94 fn from_data_type_to_str(value: &DataType) -> &'static str { in from_data_type_to_str()
96 DataType::Bytes => "BLOB", in from_data_type_to_str()
97 DataType::Number => "INTEGER", in from_data_type_to_str()
98 DataType::Bool => "INTEGER", in from_data_type_to_str()
309 Some(Value::Number(n)) if column_info.data_type == DataType::Bool => { in query_row()
/base/security/access_token/services/privacymanager/include/database/
Dpermission_used_record_db.h37 enum DataType { enum
45 int32_t Add(DataType type, const std::vector<GenericValues>& values);
46 int32_t Remove(DataType type, const GenericValues& conditions);
47 …int32_t FindByConditions(DataType type, const std::set<int32_t>& opCodeList, const GenericValues& …
49 void Count(DataType type, GenericValues& result);
50 int32_t DeleteExpireRecords(DataType type, const GenericValues& andConditions);
51 int32_t DeleteExcessiveRecords(DataType type, uint32_t excessiveSize);
52 …int32_t GetDistinctValue(DataType type, const std::string& condition, std::vector<GenericValues>& …
61 std::map<DataType, SqliteTable> dataTypeToSqlTable_;
67 std::string CreateInsertPrepareSqlCmd(DataType type) const;
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/include/database/
Daccess_token_db.h40 enum DataType { enum
51 int Add(const DataType type, const std::vector<GenericValues>& values);
53 int Remove(const DataType type, const GenericValues& conditions);
55 …int Modify(const DataType type, const GenericValues& modifyValues, const GenericValues& conditions…
57 int Find(const DataType type, std::vector<GenericValues>& results);
59 int RefreshAll(const DataType type, const std::vector<GenericValues>& values);
70 std::string CreateInsertPrepareSqlCmd(const DataType type) const;
72 …const DataType type, const std::vector<std::string>& columnNames = std::vector<std::string>()) con…
73 …std::string CreateUpdatePrepareSqlCmd(const DataType type, const std::vector<std::string>& modifyC…
75 std::string CreateSelectPrepareSqlCmd(const DataType type) const;
[all …]
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.h28 template<class DataType>
39 std::vector<DataType> &buckets, std::vector<DataType> &suffixArrayTemp);
40 void Split(std::vector<DataType> &suffixArrayTemp, DataType start, DataType len, DataType h);
41 …void SplitForLess(std::vector<DataType> &suffixArrayTemp, DataType start, DataType len, DataType h…
44 std::vector<DataType> suffixArray_;
Dblocks_diff.cpp512 template<class DataType>
513 void SuffixArray<DataType>::Init(const BlockBuffer &oldInfo) in Init()
515 std::vector<DataType> suffixArrayTemp; in Init()
516 std::vector<DataType> buckets; in Init()
518 DataType i = 0; in Init()
519 DataType h = 0; in Init()
520 DataType len = 0; in Init()
521 for (h = 1; suffixArray_[0] != -(static_cast<DataType>(oldInfo.length) + 1); h += h) { in Init()
523 for (i = 0; i < (static_cast<DataType>(oldInfo.length) + 1);) { in Init()
540 for (i = 0; i < static_cast<DataType>(oldInfo.length) + 1; i++) { in Init()
[all …]
Dimage_diff.cpp29 template<class DataType>
30 static void WriteToFile(std::ofstream &patchFile, DataType data, size_t dataSize) in WriteToFile()
/base/security/asset/services/db_operator/src/test/
Dtest_table.rs18 use asset_definition::{DataType, Extension, Value};
31 … ColumnInfo { name: "id", is_primary_key: true, not_null: true, data_type: DataType::Number }, in create_delete_table()
32 … ColumnInfo { name: "alias", is_primary_key: false, not_null: true, data_type: DataType::Bytes }, in create_delete_table()
50 ….create(&[ColumnInfo { name: "Id", data_type: DataType::Number, is_primary_key: true, not_null: tr… in table_recovery()
72 … ColumnInfo { name: "Id", is_primary_key: true, not_null: true, data_type: DataType::Number }, in insert_test_data()
73 … ColumnInfo { name: "Owner", is_primary_key: false, not_null: true, data_type: DataType::Bytes }, in insert_test_data()
74 … ColumnInfo { name: "Alias", is_primary_key: false, not_null: true, data_type: DataType::Bytes }, in insert_test_data()
75 … ColumnInfo { name: "value", is_primary_key: false, not_null: true, data_type: DataType::Bytes }, in insert_test_data()
141 … ColumnInfo { name: "id", is_primary_key: true, not_null: true, data_type: DataType::Number }, in single_data()
142 … ColumnInfo { name: "alias", is_primary_key: false, not_null: true, data_type: DataType::Bytes }, in single_data()
[all …]
/base/security/access_token/services/privacymanager/test/unittest/
Dpermission_record_db_test.cpp62 PermissionUsedRecordDb::DataType type = static_cast<PermissionUsedRecordDb::DataType>(100);
74 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD;
86 PermissionUsedRecordDb::DataType type = static_cast<PermissionUsedRecordDb::DataType>(100);
99 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD;
114 PermissionUsedRecordDb::DataType type = static_cast<PermissionUsedRecordDb::DataType>(100);
130 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD;
147 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD;
164 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD;
182 PermissionUsedRecordDb::DataType type = static_cast<PermissionUsedRecordDb::DataType>(100);
197 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD;
[all …]
Dpermission_record_manager_test.cpp1639 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD; in AddRecord()
1666 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD;
1719 PermissionUsedRecordDb::DataType type = PermissionUsedRecordDb::PERMISSION_RECORD; in GeneratePermissionRecord()
/base/security/access_token/services/privacymanager/src/database/
Dpermission_used_record_db.cpp78 int32_t PermissionUsedRecordDb::Add(DataType type, const std::vector<GenericValues>& values) in Add()
107 int32_t PermissionUsedRecordDb::Remove(DataType type, const GenericValues& conditions) in Remove()
120 int32_t PermissionUsedRecordDb::FindByConditions(DataType type, const std::set<int32_t>& opCodeList… in FindByConditions()
149 int32_t PermissionUsedRecordDb::GetDistinctValue(DataType type, in GetDistinctValue()
170 void PermissionUsedRecordDb::Count(DataType type, GenericValues& result) in Count()
181 int32_t PermissionUsedRecordDb::DeleteExpireRecords(DataType type, in DeleteExpireRecords()
199 int32_t PermissionUsedRecordDb::DeleteExcessiveRecords(DataType type, uint32_t excessiveSize) in DeleteExcessiveRecords()
210 std::string PermissionUsedRecordDb::CreateInsertPrepareSqlCmd(DataType type) const in CreateInsertPrepareSqlCmd()
230 DataType type, const std::vector<std::string>& columnNames) const in CreateDeletePrepareSqlCmd()
244 std::string PermissionUsedRecordDb::CreateUpdatePrepareSqlCmd(DataType type, in CreateUpdatePrepareSqlCmd()
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/
Daccess_token_db.cpp106 int AccessTokenDb::Add(const DataType type, const std::vector<GenericValues>& values) in Add()
135 int AccessTokenDb::Remove(const DataType type, const GenericValues& conditions) in Remove()
148 int AccessTokenDb::Modify(const DataType type, const GenericValues& modifyValues, const GenericValu… in Modify()
165 int AccessTokenDb::Find(const DataType type, std::vector<GenericValues>& results) in Find()
181 int AccessTokenDb::RefreshAll(const DataType type, const std::vector<GenericValues>& values) in RefreshAll()
213 std::string AccessTokenDb::CreateInsertPrepareSqlCmd(const DataType type) const in CreateInsertPrepareSqlCmd()
233 const DataType type, const std::vector<std::string>& columnNames) const in CreateDeletePrepareSqlCmd()
247 std::string AccessTokenDb::CreateUpdatePrepareSqlCmd(const DataType type, const std::vector<std::st… in CreateUpdatePrepareSqlCmd()
279 std::string AccessTokenDb::CreateSelectPrepareSqlCmd(const DataType type) const in CreateSelectPrepareSqlCmd()
291 auto it = dataTypeToSqlTable_.find(DataType::ACCESSTOKEN_HAP_INFO); in CreateHapTokenInfoTable()
[all …]
/base/security/access_token/services/common/database/test/unittest/
Ddatabase_test.cpp345 AccessTokenDb::DataType type = static_cast<AccessTokenDb::DataType>(100);
359 AccessTokenDb::DataType type = static_cast<AccessTokenDb::DataType>(100);
374 AccessTokenDb::DataType type = static_cast<AccessTokenDb::DataType>(100);
398 AccessTokenDb::DataType type = AccessTokenDb::DataType::ACCESSTOKEN_HAP_INFO;
405 type = AccessTokenDb::DataType::ACCESSTOKEN_HAP_INFO;
421 AccessTokenDb::DataType type = static_cast<AccessTokenDb::DataType>(100);
447 std::map<AccessTokenDb::DataType, AccessTokenDb::SqliteTable> dataTypeToSqlTable;
/base/security/asset/frameworks/ipc/src/
Dlib.rs21 …impl_enum_trait, log_throw_error, AssetError, AssetMap, Conversion, DataType, ErrCode, Result, Tag…
110 DataType::Bool => { in deserialize_map()
114 DataType::Number => { in deserialize_map()
118 DataType::Bytes => { in deserialize_map()
/base/notification/eventhandler/frameworks/napi/include/
Devents_emitter.h45 enum class DataType: uint32_t { enum
52 DataType type;
/base/web/webview/ohos_adapter/screen_capture_adapter/src/
Dscreen_capture_adapter_impl.cpp39 OHOS::Media::DataType GetOHDataType(const DataTypeAdapter& type) in GetOHDataType()
43 return OHOS::Media::DataType::ORIGINAL_STREAM; in GetOHDataType()
45 return OHOS::Media::DataType::ENCODED_STREAM; in GetOHDataType()
47 return OHOS::Media::DataType::CAPTURE_FILE; in GetOHDataType()
49 return OHOS::Media::DataType::INVAILD; in GetOHDataType()
51 return OHOS::Media::DataType::INVAILD; in GetOHDataType()
/base/security/asset/interfaces/kits/c/src/
Dlib.rs22 use asset_sdk::{log_throw_error, AssetError, AssetMap, Conversion, DataType, ErrCode, Manager, Tag,…
44 DataType::Bool => { in into_map()
47 DataType::Number => { in into_map()
50 DataType::Bytes => { in into_map()