/base/security/access_token/services/privacymanager/test/unittest/ |
D | permission_record_db_test.cpp | 370 GenericValues value1; variable 371 value1.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 0); 372 value1.Put(PrivacyFiledConst::FIELD_OP_CODE, Constant::OP_MICROPHONE); 373 value1.Put(PrivacyFiledConst::FIELD_STATUS, ActiveChangeType::PERM_ACTIVE_IN_FOREGROUND); 374 value1.Put(PrivacyFiledConst::FIELD_TIMESTAMP, 123); // 123 is random input 375 value1.Put(PrivacyFiledConst::FIELD_REJECT_COUNT, 0); 381 value1.Put(PrivacyFiledConst::FIELD_TIMESTAMP, 123); // 123 is random input 382 value1.Put(PrivacyFiledConst::FIELD_ACCESS_COUNT, 1); 386 values.emplace_back(value1); 399 GenericValues value1; variable [all …]
|
/base/startup/init/test/unittest/syspara/ |
D | syspara_unittest.cpp | 115 char value1[] = "set read only key"; variable 116 int ret = SetParameter(key1, value1); 152 char value1[64] = {0}; variable 154 int ret = GetParameter(key1, defValue1, value1, 64); 192 char value1[] = "10.1.0"; variable 193 int ret = SetParameter(key1, value1); 195 ret = SystemWriteParam(key1, value1); 235 char value1[] = "10.1.0"; variable 236 int ret = SetParameter(key1, value1); 238 ret = SystemWriteParam(key1, value1); [all …]
|
/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | attributes_test.cpp | 114 bool value1; variable 116 EXPECT_TRUE(attrs.GetBoolValue(Attributes::ATTR_RESULT_CODE, value1)); 118 EXPECT_TRUE(value1); 128 uint64_t value1; variable 130 EXPECT_TRUE(attrs.GetUint64Value(Attributes::ATTR_RESULT_CODE, value1)); 132 EXPECT_EQ(value1, UINT32_MAX); 142 uint32_t value1; variable 144 EXPECT_TRUE(attrs.GetUint32Value(Attributes::ATTR_RESULT_CODE, value1)); 146 EXPECT_TRUE(value1 == UINT16_MAX); 156 uint16_t value1; variable [all …]
|
/base/startup/init/test/moduletest/ |
D | syspara_moduleTest.cpp | 166 char value1[] = "v10.1.1"; variable 171 std::thread(SetParameterTestFunc, key1, value1).join(); 206 …char value1[] = "test.value.xxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxx.xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxx… variable 207 ret = SetParameter(key7, value1); 274 string value1 = "test.param.value.001"; variable 281 ret = SetParameter(key1.c_str(), value1.c_str()); 284 EXPECT_STREQ(vRet.c_str(), value1.c_str()); 335 char value1[] = "aaa.aaa.aaa"; variable 336 std::thread(ParamSetFun, key1, value1).join(); 337 ret = WaitParameter(key1, value1, 5); [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/reminderstoreannex_fuzzer/ |
D | reminderstoreannex_fuzzer.cpp | 43 std::string value1(data); in DoSomethingInterestingWithMyAPI() local 44 reminderStore.GetStringVal(resultSet, name, value1); in DoSomethingInterestingWithMyAPI()
|
/base/request/request/frameworks/js/napi/src/ |
D | js_task.cpp | 427 napi_value value1 = NapiUtils::GetNamedProperty(env, value, "bundle"); in ParseBundle() local 428 if (NapiUtils::GetValueType(env, value1) != napi_string) { in ParseBundle() 431 return NapiUtils::Convert2String(env, value1); in ParseBundle() 439 napi_value value1 = NapiUtils::GetNamedProperty(env, value, "state"); in ParseState() local 440 if (NapiUtils::GetValueType(env, value1) != napi_number) { in ParseState() 443 return static_cast<State>(NapiUtils::Convert2Uint32(env, value1)); in ParseState() 451 napi_value value1 = NapiUtils::GetNamedProperty(env, value, "action"); in ParseAction() local 452 if (NapiUtils::GetValueType(env, value1) != napi_number) { in ParseAction() 455 return static_cast<Action>(NapiUtils::Convert2Uint32(env, value1)); in ParseAction() 463 napi_value value1 = NapiUtils::GetNamedProperty(env, value, "mode"); in ParseMode() local [all …]
|
D | napi_utils.cpp | 364 napi_value value1 = nullptr; in Convert2JSValue() local 365 napi_get_null(env, &value1); in Convert2JSValue() 366 napi_set_named_property(env, value, "faults", value1); in Convert2JSValue()
|
/base/update/updater/test/unittest/utils/json/ |
D | utils_json_test.cpp | 56 std::string str = R"({"key": "value1"})"; 70 std::string str = R"({"key": "value1"})"; 77 std::string str = R"({"key": "value1"})"; 168 std::string str = R"({"key": "value1"})"; 176 std::string str = R"({"key": "value1"})";
|
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/ |
D | sys_event_dao_test.cpp | 315 FieldValue value1; variable 316 ASSERT_TRUE(value1.IsNumber()); 317 ASSERT_TRUE(value1.Index() == FieldValue::NUMBER); 318 ASSERT_EQ(value1.GetFieldNumber().GetNumber<int64_t>(), 0); 323 ASSERT_TRUE(value1.Index() == FieldValue::NUMBER); 329 ASSERT_TRUE(value1.Index() == FieldValue::NUMBER); 335 ASSERT_TRUE(value1.Index() == FieldValue::NUMBER); 341 ASSERT_TRUE(value1.Index() == FieldValue::NUMBER);
|
/base/startup/init/test/benchmark/ |
D | benchmark_fwk.cpp | 207 static args_vector GetArgs(const std::vector<int> &sizes, int value1, int value2) in GetArgs() argument 211 args.push_back( {size, value1, value2} ); in GetArgs()
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 2203 GenericValues value1; variable 2204 value1.Put(TokenFiledConst::FIELD_TOKEN_ID, 123); // 123 is random input 2205 value1.Put(TokenFiledConst::FIELD_GRANT_IS_GENERAL, true); 2206 value1.Put(TokenFiledConst::FIELD_PERMISSION_NAME, "ohos.permission.CAMERA"); 2207 value1.Put(TokenFiledConst::FIELD_DEVICE_ID, "dev-001"); 2208 value1.Put(TokenFiledConst::FIELD_GRANT_STATE, static_cast<PermissionState>(3)); 2209 value1.Put(TokenFiledConst::FIELD_GRANT_FLAG, PermissionFlag::PERMISSION_DEFAULT_FLAG); 2213 permStateRes1.emplace_back(value1);
|
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
D | hisysevent_manager_c_test.cpp | 1064 int64_t value1; variable 1065 auto ret = OH_HiSysEvent_GetParamInt64Value(&record, "KEY", &value1); 1067 ret = OH_HiSysEvent_GetParamInt64Value(&record, nullptr, &value1);
|
D | hisysevent_native_test.cpp | 457 bool value1 = true; variable 458 …ult = HiSysEventWrite(domain, eventName, HiSysEvent::EventType::FAULT, key1, value1, key2, value1);
|
/base/request/request/test/unittest/js_test/requestSystemQueryTest/entry/src/main/ets/test/ |
D | RequestSystemQuery.test.ets | 244 {name : 'key1', value: 'value1'}, {name : 'key2', value: 'value2'}
|
/base/request/request/test/unittest/js_test/requestQueryTaskTest/entry/src/main/ets/test/ |
D | RequestQuery.test.ets | 373 {name : 'key1', value: 'value1'}, {name : 'key2', value: 'value2'}
|