Home
last modified time | relevance | path

Searched refs:propertyFile_getInt (Results 1 – 3 of 3) sorted by relevance

/external/qemu/android/avd/
Dutil_unittest.cpp32 TEST(AvdUtil, propertyFile_getInt) { in TEST() argument
50 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invalid", kDefault, &searchResult)); in TEST()
54 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invalid2", kDefault, &searchResult)); in TEST()
58 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invalid3", kDefault, &searchResult)); in TEST()
62 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "bar", kDefault, &searchResult)); in TEST()
66 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "empty", kDefault, &searchResult)); in TEST()
70 EXPECT_EQ(19,propertyFile_getInt(&fd, "nineteen", kDefault, &searchResult)); in TEST()
74 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "bar", kDefault, NULL)); in TEST()
75 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invalid", kDefault, NULL)); in TEST()
76 EXPECT_EQ(19,propertyFile_getInt(&fd, "nineteen", kDefault, NULL)); in TEST()
Dutil.c188 propertyFile_getInt(const FileData* data, const char* key, int _default, in propertyFile_getInt() function
226 int level = propertyFile_getInt(data, "ro.build.version.sdk", kMinLevel, in propertyFile_getApiLevel()
242 int qemud = propertyFile_getInt(data, "ro.adb.qemud", 1, &searchResult); in propertyFile_getAdbdCommunicationMode()
Dutil.h60 int propertyFile_getInt(const FileData* data, const char* key, int _default,