Lines Matching refs:system

314     OHOS::system::SetParameter(std::string("testKey"), std::string("testValue"));
315 int v = OHOS::system::GetIntParameter(key1, 0);
317 int8_t v1 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
319 int16_t v2 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
321 int32_t v3 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
323 int64_t v4 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
326 int8_t v5 = OHOS::system::GetIntParameter(key1, 0, -10, 10); // -10, 10 range
330 uint8_t u1 = OHOS::system::GetUintParameter<uint8_t>(key2, 0, (uint8_t)255); // 255 max value
332 uint16_t u2 = OHOS::system::GetUintParameter<uint16_t>(key2, 0, (uint16_t)255); // 255 max value
334 uint32_t u3 = OHOS::system::GetUintParameter<uint32_t>(key2, 0, (uint32_t)255); // 255 max value
336 uint64_t u4 = OHOS::system::GetUintParameter<uint64_t>(key2, 0, (uint64_t)255); // 255 max value
339 u1 = OHOS::system::GetUintParameter<uint8_t>(key3, 0, (uint8_t)255); // 255 max value
341 u1 = OHOS::system::GetUintParameter<uint8_t>(key2, 0, (uint8_t)10); // 10 max value
347 std::string type = OHOS::system::GetDeviceType();
351 std::string v1 = OHOS::system::GetParameter(key1, "");
355 v1 = OHOS::system::GetParameter(key2, "test2");
358 int ret = OHOS::system::GetStringParameter(key1, v1, "");
361 ret = OHOS::system::GetStringParameter(key2, v1, "test2");
369 bool ret = OHOS::system::GetBoolParameter(key1, false);
372 ret = OHOS::system::GetBoolParameter(key2, true);
375 ret = OHOS::system::GetBoolParameter(key3, false);