Lines Matching refs:pref
37 auto pref = GetPreference(storageType); in HasKey() local
38 if (!pref) { in HasKey()
42 res = pref->HasKey(key); in HasKey()
50 auto pref = GetPreference(storageType); in Delete() local
51 if (!pref) { in Delete()
55 pref->Delete(key); in Delete()
56 pref->Flush(); in Delete()
68 auto pref = NativePreferences::PreferencesHelper::GetPreferences(fileName, errCode); in GetPreference() local
70 return pref; in GetPreference()
76 auto pref = GetPreference(storageType); in Insert() local
77 if (!pref) { in Insert()
83 pref->PutFloat(key, value); in Insert()
89 pref->PutInt(key, value); in Insert()
97 pref->Flush(); in Insert()
103 auto pref = GetPreference(storageType); in Get() local
104 if (!pref) { in Get()
110 value = pref->GetFloat(key); in Get()
116 value = pref->GetInt(key); in Get()