Home
last modified time | relevance | path

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

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp105 EXPECT_EQ(1234, y.GetInt()); in TEST()
109 EXPECT_EQ(5678, y.GetInt()); in TEST()
234 EXPECT_EQ(v1.GetInt(), v2.GetInt()); in TestCopyFrom()
274 EXPECT_EQ(1234, v2.GetInt()); in TEST()
361 EXPECT_EQ(1234, x.GetInt()); in TEST()
387 EXPECT_EQ(-1234, nx.GetInt()); in TEST()
398 EXPECT_EQ(0, y.GetInt()); in TEST()
403 EXPECT_EQ(1234, z.GetInt()); in TEST()
407 EXPECT_EQ(5678, z.GetInt()); in TEST()
414 EXPECT_EQ(1234, x.GetInt()); in TEST()
[all …]
Dpointertest.cpp647 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -1, a).GetInt()); in TEST()
648 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -2, a).GetInt()); in TEST()
699 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -1).GetInt()); in TEST()
700 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -2).GetInt()); in TEST()
742 EXPECT_EQ(123, d["foo"][0].GetInt()); in TEST()
745 EXPECT_EQ(456, d["foo"][2].GetInt()); in TEST()
757 EXPECT_EQ(-1, GetValueByPointer(d, "/foo/int")->GetInt()); in TEST()
801 EXPECT_EQ(123, d["foo"][0].GetInt()); in TEST()
804 EXPECT_EQ(456, d["foo"][2].GetInt()); in TEST()
816 EXPECT_EQ(-1, GetValueByPointer(d, "/foo/int")->GetInt()); in TEST()
[all …]
Ddocumenttest.cpp54 EXPECT_EQ(123, i.GetInt()); in ParseCheck()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
Dtutorial.cpp61 printf("i = %d\n", document["i"].GetInt()); // Alternative (int)document["i"] in main()
71 printf("a[%d] = %d\n", i, a[i].GetInt()); in main()
73 int y = a[0].GetInt(); in main()
79 printf("%d ", itr->GetInt()); in main()
/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache_helper_test.cc106 ASSERT_THAT(ConfigCacheHelper(config).GetInt("A", "B"), Optional(Eq(int(123)))); in TEST()
110 ASSERT_THAT(ConfigCacheHelper(config).GetInt("A", "B"), Optional(Eq(int(-123)))); in TEST()
114 ASSERT_THAT(ConfigCacheHelper(config).GetInt("A", "B"), Optional(Eq(int(0)))); in TEST()
119 ASSERT_FALSE(ConfigCacheHelper(config).GetInt("A", "B")); in TEST()
Dconfig_cache_helper.cc90 std::optional<int> ConfigCacheHelper::GetInt(const std::string& section, const std::string& propert… in GetInt() function in bluetooth::storage::ConfigCacheHelper
Dconfig_cache_helper.h54 virtual std::optional<int> GetInt(const std::string& section, const std::string& property) const;
/packages/modules/Bluetooth/system/btif/test/
Dbtif_config_cache_test.cc180 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
213 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
266 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
271 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
295 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc45 bool BtifConfigInterface::GetInt(const std::string& section, in GetInt() function in bluetooth::shim::BtifConfigInterface
49 .GetInt(section, property); in GetInt()
Dconfig.h33 static bool GetInt(const std::string& section, const std::string& key,
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/
Dbt_binder_facade.cpp344 mode = doc[sl4n::kParamsStr][0].GetInt(); in bt_binder_set_adv_settings_wrapper()
352 timeout_seconds = doc[sl4n::kParamsStr][1].GetInt(); in bt_binder_set_adv_settings_wrapper()
360 tx_power_level = doc[sl4n::kParamsStr][2].GetInt(); in bt_binder_set_adv_settings_wrapper()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simpledom/
Dsimpledom.cpp19 s.SetInt(s.GetInt() + 1); in main()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_config_cache.h48 std::optional<int> GetInt(const std::string& section_name,
/packages/modules/Bluetooth/system/test/mock/
Dmock_main_shim_BtifConfigInterface.cc29 bool bluetooth::shim::BtifConfigInterface::GetInt(const std::string& section, in GetInt() function in bluetooth::shim::BtifConfigInterface
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dtutorial.md87 printf("i = %d\n", document["i"].GetInt());
106 printf("a[%d] = %d\n", i, a[i].GetInt());
116 …alues between JSON types. If a value is a string, it is invalid to call `GetInt()`, for example. I…
129 printf("%d ", itr->GetInt());
194 `bool IsInt()` | `int GetInt()`
Dpointer.md48 stars->SetInt(stars->GetInt() + 1);
89 stars->SetInt(stars->GetInt() + 1);
Dfaq.md187 …When using `GetInt()`, `GetUint()`, ... conversion may occur. For integer-to-integer conversion, i…
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.h136 int GetInt(size_t key, status_t* err) const;
DLogEvent.cpp512 int LogEvent::GetInt(size_t key, status_t* err) const { in GetInt() function in android::os::statsd::LogEvent
/packages/modules/Bluetooth/system/btif/src/
Dbtif_config.cc223 return bluetooth::shim::BtifConfigInterface::GetInt(section, key, value); in btif_config_get_int()
Dbtif_config_cache.cc249 std::optional<int> BtifConfigCache::GetInt(const std::string& section_name, in GetInt() function in BtifConfigCache
/packages/apps/Test/connectivity/sl4n/facades/test/
Dtest_facade.cpp200 int_test = doc[sl4n::kParamsStr][0][0][int_member.c_str()].GetInt(); in test_specific_param_naming_wrapper()
/packages/apps/Test/connectivity/sl4n/rapidjson/
Dreadme.md110 s.SetInt(s.GetInt() + 1);
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp310 int32_t rollbackType = int32_t(event->GetInt(1 /*rollback type field id*/, &err)); in onWatchdogRollbackOccurredLocked()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h1448 int GetInt() const { RAPIDJSON_ASSERT(flags_ & kIntFlag); return data_.n.i.i; }