Home
last modified time | relevance | path

Searched refs:CheckType (Results 1 – 4 of 4) sorted by relevance

/system/core/init/
Dproperty_type_test.cpp25 EXPECT_TRUE(CheckType("string", "")); in TEST()
26 EXPECT_TRUE(CheckType("string", "-234")); in TEST()
27 EXPECT_TRUE(CheckType("string", "234")); in TEST()
28 EXPECT_TRUE(CheckType("string", "true")); in TEST()
29 EXPECT_TRUE(CheckType("string", "false")); in TEST()
30 EXPECT_TRUE(CheckType("string", "45645634563456345634563456")); in TEST()
31 EXPECT_TRUE(CheckType("string", "some other string")); in TEST()
35 EXPECT_TRUE(CheckType("int", "")); in TEST()
36 EXPECT_FALSE(CheckType("int", "abc")); in TEST()
37 EXPECT_FALSE(CheckType("int", "-abc")); in TEST()
[all …]
Dproperty_type.h25 bool CheckType(const std::string& type_string, const std::string& value);
Dproperty_type.cpp31 bool CheckType(const std::string& type_string, const std::string& value) { in CheckType() function
Dproperty_service.cpp473 if (type == nullptr || !CheckType(type, value)) { in CheckPermissions()