Home
last modified time | relevance | path

Searched refs:GetInt (Results 1 – 25 of 50) sorted by relevance

12

/base/security/access_token/services/privacymanager/src/database/
Ddata_translator.cpp57 int32_t opCode = inGenericValues.GetInt(PrivacyFiledConst::FIELD_OP_CODE); in TranslationGenericValuesIntoPermissionUsedRecord()
65 if (inGenericValues.GetInt(PrivacyFiledConst::FIELD_ACCESS_COUNT) != 0) { in TranslationGenericValuesIntoPermissionUsedRecord()
66 … permissionRecord.accessCount = inGenericValues.GetInt(PrivacyFiledConst::FIELD_ACCESS_COUNT); in TranslationGenericValuesIntoPermissionUsedRecord()
71 if (inGenericValues.GetInt(PrivacyFiledConst::FIELD_REJECT_COUNT) != 0) { in TranslationGenericValuesIntoPermissionUsedRecord()
72 … permissionRecord.rejectCount = inGenericValues.GetInt(PrivacyFiledConst::FIELD_REJECT_COUNT); in TranslationGenericValuesIntoPermissionUsedRecord()
76 if (inGenericValues.GetInt(PrivacyFiledConst::FIELD_FLAG) == 0) { in TranslationGenericValuesIntoPermissionUsedRecord()
81 detail.status = inGenericValues.GetInt(PrivacyFiledConst::FIELD_STATUS); in TranslationGenericValuesIntoPermissionUsedRecord()
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record.cpp35 record.tokenId = values.GetInt(PrivacyFiledConst::FIELD_TOKEN_ID); in TranslationIntoPermissionRecord()
36 record.opCode = values.GetInt(PrivacyFiledConst::FIELD_OP_CODE); in TranslationIntoPermissionRecord()
37 record.status = values.GetInt(PrivacyFiledConst::FIELD_STATUS); in TranslationIntoPermissionRecord()
40 record.accessCount = values.GetInt(PrivacyFiledConst::FIELD_ACCESS_COUNT); in TranslationIntoPermissionRecord()
41 record.rejectCount = values.GetInt(PrivacyFiledConst::FIELD_REJECT_COUNT); in TranslationIntoPermissionRecord()
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_config_test.cpp80 int32_t warnCapacity = g_configTest.GetInt(key, invalid);
100 int32_t highTemperature = g_configTest.GetInt(key, maxTemp);
120 int32_t lowTemperature = g_configTest.GetInt(key, minTemp);
139 int32_t shtdwonCapacity = g_configTest.GetInt(key, invalid);
158 int32_t low_battery_event = g_configTest.GetInt(key, invalid);
173 EXPECT_EQ(defValue, g_configTest.GetInt("XXXXXXXXX", defValue));
186 EXPECT_EQ(defValue, g_configTest.GetInt("X.X.X.X.X.X", defValue));
199 EXPECT_EQ(defValue, g_configTest.GetInt("", defValue));
230 int32_t highSoc = g_configTest.GetInt(key, defVal);
/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/
Ddata_translator.cpp53 outPermissionDef.grantMode = inGenericValues.GetInt(TokenFiledConst::FIELD_GRANT_MODE); in TranslationIntoPermissionDef()
54 int aplNum = inGenericValues.GetInt(TokenFiledConst::FIELD_AVAILABLE_LEVEL); in TranslationIntoPermissionDef()
60 …outPermissionDef.provisionEnable = (inGenericValues.GetInt(TokenFiledConst::FIELD_PROVISION_ENABLE… in TranslationIntoPermissionDef()
62 (inGenericValues.GetInt(TokenFiledConst::FIELD_DISTRIBUTED_SCENE_ENABLE) == 1); in TranslationIntoPermissionDef()
64 outPermissionDef.labelId = inGenericValues.GetInt(TokenFiledConst::FIELD_LABEL_ID); in TranslationIntoPermissionDef()
66 outPermissionDef.descriptionId = inGenericValues.GetInt(TokenFiledConst::FIELD_DESCRIPTION_ID); in TranslationIntoPermissionDef()
90 ((inGenericValues.GetInt(TokenFiledConst::FIELD_GRANT_IS_GENERAL) == 1) ? true : false); in TranslationIntoPermissionStateFull()
110 int grantStatus = (PermissionState)inGenericValues.GetInt(TokenFiledConst::FIELD_GRANT_STATE); in TranslationIntoPermissionStateFull()
120 int grantFlag = (PermissionState)inGenericValues.GetInt(TokenFiledConst::FIELD_GRANT_FLAG); in TranslationIntoPermissionStateFull()
/base/telephony/sms_mms/services/sms/
Dsms_persist_helper.cpp99 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in QuerySession()
103 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in QuerySession()
176 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in QueryMaxGroupId()
261 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in ConvertIntToIndexer()
266 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in ConvertIntToIndexer()
271 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in ConvertIntToIndexer()
276 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in ConvertIntToIndexer()
281 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in ConvertIntToIndexer()
286 if (resultSet->GetInt(columnIndex, columnInt) == 0) { in ConvertIntToIndexer()
/base/telephony/core_service/services/sim/src/
Dsim_rdb_helper.cpp120 result->GetInt(index, mainCardSlotId); in GetDefaultMainCardSlotId()
154 result->GetInt(index, messageCardSlotId); in GetDefaultMessageCardSlotId()
188 result->GetInt(index, cellularDataCardSlotId); in GetDefaultCellularDataCardSlotId()
221 result->GetInt(index, voiceCardSlotId); in GetDefaultVoiceCardSlotId()
330 result->GetInt(index, simBean.simId); in SaveDataToBean()
336 result->GetInt(index, simBean.imsSwitch); in SaveDataToBean()
338 result->GetInt(index, simBean.slotIndex); in SaveDataToBean()
340 result->GetInt(index, simBean.cardType); in SaveDataToBean()
352 result->GetInt(index, simBean.isMainCard); in SaveDataToBean()
354 result->GetInt(index, simBean.isVoiceCard); in SaveDataToBean()
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dhap_token_info_inner.cpp124 tokenInfoBasic_.userID = inGenericValues.GetInt(TokenFiledConst::FIELD_USER_ID); in RestoreHapTokenBasicInfo()
133 tokenInfoBasic_.apiVersion = inGenericValues.GetInt(TokenFiledConst::FIELD_API_VERSION); in RestoreHapTokenBasicInfo()
134 tokenInfoBasic_.instIndex = inGenericValues.GetInt(TokenFiledConst::FIELD_INST_INDEX); in RestoreHapTokenBasicInfo()
135 tokenInfoBasic_.dlpType = inGenericValues.GetInt(TokenFiledConst::FIELD_DLP_TYPE); in RestoreHapTokenBasicInfo()
152 int aplNum = inGenericValues.GetInt(TokenFiledConst::FIELD_APL); in RestoreHapTokenBasicInfo()
162 tokenInfoBasic_.ver = (char)inGenericValues.GetInt(TokenFiledConst::FIELD_TOKEN_VERSION); in RestoreHapTokenBasicInfo()
170 tokenInfoBasic_.tokenAttr = (uint32_t)inGenericValues.GetInt(TokenFiledConst::FIELD_TOKEN_ATTR); in RestoreHapTokenBasicInfo()
Dnative_token_info_inner.cpp130 int aplNum = inGenericValues.GetInt(TokenFiledConst::FIELD_APL); in RestoreNativeTokenInfo()
141 tokenInfoBasic_.ver = (char)inGenericValues.GetInt(TokenFiledConst::FIELD_TOKEN_VERSION); in RestoreNativeTokenInfo()
154 tokenInfoBasic_.tokenAttr = (uint32_t)inGenericValues.GetInt(TokenFiledConst::FIELD_TOKEN_ATTR); in RestoreNativeTokenInfo()
/base/security/access_token/services/common/database/src/
Dgeneric_values.cpp50 int32_t GenericValues::GetInt(const std::string& key) const in GetInt() function in OHOS::Security::AccessToken::GenericValues
56 return it->second.GetInt(); in GetInt()
Dvariant_value.cpp47 int32_t VariantValue::GetInt() const in GetInt() function in OHOS::Security::AccessToken::VariantValue
/base/powermgr/battery_manager/services/native/src/
Dbattery_service.cpp154 warnCapacity_ = batteryConfig.GetInt("soc.warning", warnCapacity_); in InitConfig()
155 highTemperature_ = batteryConfig.GetInt("temperature.high", highTemperature_); in InitConfig()
156 lowTemperature_ = batteryConfig.GetInt("temperature.low", lowTemperature_); in InitConfig()
157 shutdownCapacityThreshold_ = batteryConfig.GetInt("soc.shutdown", shutdownCapacityThreshold_); in InitConfig()
158 criticalCapacityThreshold_ = batteryConfig.GetInt("soc.critical", criticalCapacityThreshold_); in InitConfig()
159 warningCapacityThreshold_ = batteryConfig.GetInt("soc.warning", warningCapacityThreshold_); in InitConfig()
160 lowCapacityThreshold_ = batteryConfig.GetInt("soc.low", lowCapacityThreshold_); in InitConfig()
161 normalCapacityThreshold_ = batteryConfig.GetInt("soc.normal", normalCapacityThreshold_); in InitConfig()
162 highCapacityThreshold_ = batteryConfig.GetInt("soc.high", highCapacityThreshold_); in InitConfig()
163 fullCapacityThreshold_ = batteryConfig.GetInt("soc.full", fullCapacityThreshold_); in InitConfig()
/base/update/updateservice/test/fuzztest/updateservicecancel_fuzzer/
Dupdateservicecancel_fuzzer.cpp35 DelayedSingleton<FuzztestHelper>::GetInstance()->GetInt(), businessError) == 0; in FuzzUpdateServiceCancel()
/base/update/updateservice/test/fuzztest/common/
Dfuzztest_helper.h35 int32_t GetInt();
/base/security/access_token/services/common/database/include/
Dvariant_value.h42 int32_t GetInt() const;
Dgeneric_values.h45 int32_t GetInt(const std::string& key) const;
/base/update/updateservice/services/core/ability/sqlite/core/include/
Ditable.h116 return resultSet->GetInt(index, value); in GetIndexValue()
132 int ret = resultSet->GetInt(index, intValue); in GetIndexValue()
/base/powermgr/battery_manager/services/native/include/
Dbattery_config.h40 int32_t GetInt(std::string key, int32_t defVal = 0) const;
/base/request/request/services/service/rust/src/c_wrapper/source/
Dc_request_database.cpp383 resultSet->GetInt(2, action); in GetCommonTaskInfo()
385 resultSet->GetInt(3, mode); in GetCommonTaskInfo()
391 resultSet->GetInt(6, reason); in GetCommonTaskInfo()
393 resultSet->GetInt(7, gauge); in GetCommonTaskInfo()
395 resultSet->GetInt(8, retry); in GetCommonTaskInfo()
399 resultSet->GetInt(10, version); in GetCommonTaskInfo()
423 resultSet->GetInt(16, state); in TouchRequestTaskInfo()
457 resultSet->GetInt(15, state); in QueryRequestTaskInfo()
505 resultSet->GetInt(6, reason); in TouchTaskInfoAttachment()
534 resultSet->GetInt(1, reason); in QueryTaskInfoAttachment()
/base/powermgr/battery_manager/charger/include/
Dbattery_config.h41 int32_t GetInt(std::string key, int32_t defVal = 0) const;
/base/web/webview/ohos_nweb/include/
Dnweb_value.h66 int GetInt() { return data_.n; } in GetInt() function
/base/location/services/location_locator/locator/include/
Dlocator_event_manager.h49 int GetInt(const std::string& name);
/base/telephony/cellular_data/services/src/utils/
Dcellular_data_rdb_helper.cpp115 result->GetInt(index, apnBean.profileId); in ReadApnResult()
125 result->GetInt(index, apnBean.authType); in ReadApnResult()
/base/location/test/location_locator/source/
Dlocator_event_manager_test.cpp47 EXPECT_EQ(1, dftEvent->GetInt("name"));
48 EXPECT_EQ(0, dftEvent->GetInt("name_not_exist"));
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
Dapp_event_block_dao.cpp132 resultSet->GetInt(2, packageSize); // 2 means packageSize field in GetPackagesBySize()
155 resultSet->GetInt(0, num); // 0 means totalNum field in CountPackages()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_store.cpp303 int32_t result = queryResultSet->GetInt(0, maxId); in GetMaxId()
348 resultSet->GetInt(ReminderStore::GetColumnIndex(ReminderRequest::REMINDER_TYPE), reminderType); in BuildReminder()
349 resultSet->GetInt(ReminderStore::GetColumnIndex(ReminderRequest::REMINDER_ID), reminderId); in BuildReminder()
412 resultSet->GetInt(columnIndex, value); in GetInt32Val()

12