Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 37) sorted by relevance

12

/base/security/access_token/interfaces/kits/privacy/napi/src/
Dnative_module.cpp43 napi_value prop = nullptr; in Init() local
44 napi_create_int32(env, FLAG_PERMISSION_USAGE_SUMMARY, &prop); in Init()
45 napi_set_named_property(env, permissionUsageFlag, "FLAG_PERMISSION_USAGE_SUMMARY", prop); in Init()
47 prop = nullptr; in Init()
48 napi_create_int32(env, FLAG_PERMISSION_USAGE_DETAIL, &prop); in Init()
49 napi_set_named_property(env, permissionUsageFlag, "FLAG_PERMISSION_USAGE_DETAIL", prop); in Init()
54 prop = nullptr; in Init()
55 napi_create_int32(env, PERM_INACTIVE, &prop); in Init()
56 napi_set_named_property(env, permActiveStatus, "PERM_INACTIVE", prop); in Init()
58 prop = nullptr; in Init()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
Dnative_module_manager.cpp47 napi_value prop = nullptr; in ConstantInit() local
48 …if (napi_create_int32(env, static_cast<int32_t>(ReminderRequest::ReminderType::TIMER), &prop) == n… in ConstantInit()
49 napi_set_named_property(env, objReminderType, "REMINDER_TYPE_TIMER", prop); in ConstantInit()
51 …if (napi_create_int32(env, static_cast<int32_t>(ReminderRequest::ReminderType::ALARM), &prop) == n… in ConstantInit()
52 napi_set_named_property(env, objReminderType, "REMINDER_TYPE_ALARM", prop); in ConstantInit()
54 …if (napi_create_int32(env, static_cast<int32_t>(ReminderRequest::ReminderType::CALENDAR), &prop) =… in ConstantInit()
55 napi_set_named_property(env, objReminderType, "REMINDER_TYPE_CALENDAR", prop); in ConstantInit()
60 …ate_int32(env, static_cast<int32_t>(ReminderRequest::ActionButtonType::CLOSE), &prop) == napi_ok) { in ConstantInit()
61 napi_set_named_property(env, objButtonType, "ACTION_BUTTON_TYPE_CLOSE", prop); in ConstantInit()
63 …te_int32(env, static_cast<int32_t>(ReminderRequest::ActionButtonType::SNOOZE), &prop) == napi_ok) { in ConstantInit()
[all …]
Dnative_module.cpp47 napi_value prop = nullptr; in ConstantInit() local
48 …if (napi_create_int32(env, static_cast<int32_t>(ReminderRequest::ReminderType::TIMER), &prop) == n… in ConstantInit()
49 napi_set_named_property(env, objReminderType, "REMINDER_TYPE_TIMER", prop); in ConstantInit()
51 …if (napi_create_int32(env, static_cast<int32_t>(ReminderRequest::ReminderType::ALARM), &prop) == n… in ConstantInit()
52 napi_set_named_property(env, objReminderType, "REMINDER_TYPE_ALARM", prop); in ConstantInit()
54 …if (napi_create_int32(env, static_cast<int32_t>(ReminderRequest::ReminderType::CALENDAR), &prop) =… in ConstantInit()
55 napi_set_named_property(env, objReminderType, "REMINDER_TYPE_CALENDAR", prop); in ConstantInit()
60 …ate_int32(env, static_cast<int32_t>(ReminderRequest::ActionButtonType::CLOSE), &prop) == napi_ok) { in ConstantInit()
61 napi_set_named_property(env, objButtonType, "ACTION_BUTTON_TYPE_CLOSE", prop); in ConstantInit()
63 …te_int32(env, static_cast<int32_t>(ReminderRequest::ActionButtonType::SNOOZE), &prop) == napi_ok) { in ConstantInit()
[all …]
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_input_method.cpp101 napi_value prop = nullptr; in GetJsInputMethodProperty() local
102 napi_create_object(env, &prop); in GetJsInputMethodProperty()
106 napi_set_named_property(env, prop, "packageName", packageName); in GetJsInputMethodProperty()
107 napi_set_named_property(env, prop, "name", packageName); in GetJsInputMethodProperty()
111 napi_set_named_property(env, prop, "methodId", methodId); in GetJsInputMethodProperty()
112 napi_set_named_property(env, prop, "id", methodId); in GetJsInputMethodProperty()
116 napi_set_named_property(env, prop, "icon", icon); in GetJsInputMethodProperty()
120 napi_set_named_property(env, prop, "iconId", iconId); in GetJsInputMethodProperty()
124 napi_set_named_property(env, prop, "label", label); in GetJsInputMethodProperty()
128 napi_set_named_property(env, prop, "labelId", labelId); in GetJsInputMethodProperty()
[all …]
/base/time/time_service/framework/js/napi/system_timer/src/
Dtimer_type.cpp24 napi_value prop = nullptr; in SetNamedPropertyByInteger() local
25 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
26 napi_set_named_property(env, dstObj, propName, prop); in SetNamedPropertyByInteger()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/
Ddlp_fuse_test.cpp314 struct DlpProperty prop; variable
315 GenerateRandProperty(prop);
316 …int32_t result = DlpFileManager::GetInstance().GenerateDlpFile(g_plainFileFd, g_dlpFileFd, prop, g…
351 struct DlpProperty prop; variable
352 GenerateRandProperty(prop);
353 …int32_t result = DlpFileManager::GetInstance().GenerateDlpFile(g_plainFileFd, g_dlpFileFd, prop, g…
364 ASSERT_EQ(policy.ownerAccount_, prop.ownerAccount);
366 ASSERT_EQ(authUsers.size(), prop.authUsers.size());
369 for (int32_t j = 0; j < static_cast<int32_t>(prop.authUsers.size()); j++) {
370 if (authUsers[i].authAccount == prop.authUsers[j].authAccount) {
[all …]
/base/security/dlp_permission_service/interfaces/kits/napi_common/src/
Dnapi_common.cpp435 napi_value prop = nullptr; in CreateEnumDLPFileAccess() local
436 NAPI_CALL(env, napi_create_int32(env, static_cast<int32_t>(NO_PERMISSION), &prop)); in CreateEnumDLPFileAccess()
437 NAPI_CALL(env, napi_set_named_property(env, authPerm, "NO_PERMISSION", prop)); in CreateEnumDLPFileAccess()
439 prop = nullptr; in CreateEnumDLPFileAccess()
440 NAPI_CALL(env, napi_create_int32(env, static_cast<int32_t>(READ_ONLY), &prop)); in CreateEnumDLPFileAccess()
441 NAPI_CALL(env, napi_set_named_property(env, authPerm, "READ_ONLY", prop)); in CreateEnumDLPFileAccess()
443 prop = nullptr; in CreateEnumDLPFileAccess()
444 NAPI_CALL(env, napi_create_int32(env, static_cast<int32_t>(CONTENT_EDIT), &prop)); in CreateEnumDLPFileAccess()
445 NAPI_CALL(env, napi_set_named_property(env, authPerm, "CONTENT_EDIT", prop)); in CreateEnumDLPFileAccess()
447 prop = nullptr; in CreateEnumDLPFileAccess()
[all …]
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_common.cpp212 napi_value prop = nullptr; in JsObjectToInt() local
213 …turn napi_get_named_property(env, object, filedStr, &prop) == napi_ok && ParseInt(env, result, pro… in JsObjectToInt()
229 napi_value prop = nullptr; in JsObjectToUint() local
230 …turn napi_get_named_property(env, object, filedStr, &prop) == napi_ok && ParseUint(env, result, pr… in JsObjectToUint()
246 napi_value prop = nullptr; in JsObjectToBool() local
247 …turn napi_get_named_property(env, object, filedStr, &prop) == napi_ok && ParseBool(env, result, pr… in JsObjectToBool()
264 napi_value prop = nullptr; in JsObjectToString() local
265 …n napi_get_named_property(env, object, filedStr, &prop) == napi_ok && ParseString(env, resultStr, in JsObjectToString()
282 napi_value prop = nullptr; in JsObjectToCharArray() local
283 return napi_get_named_property(env, object, filedStr, &prop) == napi_ok && in JsObjectToCharArray()
[all …]
/base/inputmethod/imf/services/src/
Dime_info_inquirer.cpp87 if (currentImeInfo_ != nullptr && bundleName == currentImeInfo_->prop.name) { in GetImeInfo()
101 info.prop = currentImeInfo_->prop; in GetImeInfoFromNative()
117 info.prop.id = info.subProp.id; in GetImeInfoFromNative()
133 info.prop.name = extInfos[0].bundleName; in GetImeInfoFromBundleMgr()
134 info.prop.id = extInfos[0].name; in GetImeInfoFromBundleMgr()
135 info.prop.label = in GetImeInfoFromBundleMgr()
137 info.prop.labelId = extInfos[0].applicationInfo.labelId; in GetImeInfoFromBundleMgr()
138 info.prop.iconId = extInfos[0].applicationInfo.iconId; in GetImeInfoFromBundleMgr()
162 info.prop.id = info.subProp.id; in GetImeInfoFromBundleMgr()
270 [&extension](const Property &prop) { return prop.name == extension.bundleName; }); in ListInputMethod() argument
[all …]
/base/powermgr/power_manager/services/native/src/
Dpower_save_mode.cpp97 xmlChar* prop = xmlGetProp(nodePtr, BAD_CAST(key.c_str())); in GetProp() local
98 if (prop == nullptr) { in GetProp()
101 std::string value = reinterpret_cast<char*>(prop); in GetProp()
102 xmlFree(prop); in GetProp()
/base/inputmethod/imf/test/unittest/napi_test/src/
DInputMethodTest.js57 function imeChange(prop, subProp) { argument
59 imeChangeProp = prop;
281 …let imeProp = props.filter(function (prop) {return prop.name === bundleName && prop.id === extName… argument
283 let imeProp1 = props.filter(function (prop) {return prop.name === bundleName1;}); argument
301 …let imeProp = props.filter(function (prop) {return prop.name === bundleName && prop.id === extName… argument
303 let imeProp1 = props.filter(function (prop) {return prop.name === bundleName1;}); argument
369 let imeProp = props.filter(function (prop) {return prop.name === bundleName1;}); argument
397 let imeProp = props.filter(function (prop) {return prop.name === bundleName1;}); argument
474 let prop = inputMethod.getCurrentInputMethod();
477 expect(imeChangeProp.name).assertEqual(prop.name);
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_policy.cpp190 for (auto prop = stateMap.begin(); prop != stateMap.end(); prop++) { in StateMachineDecision() local
192 auto stateIter = stateMachineMap.find(prop->first); in StateMachineDecision()
194 THERMAL_HILOGE(COMP_SVC, "can't find state machine [%{public}s]", prop->first.c_str()); in StateMachineDecision()
197 if (stateIter->second->DecideState(prop->second)) { in StateMachineDecision()
/base/msdp/device_status/tools/vdev/include/
Dvirtual_device.h50 bool SupportProperty(size_t prop) const;
112 inline bool VirtualDevice::SupportProperty(size_t prop) const in SupportProperty() argument
114 return ((inputDev_ != nullptr) && inputDev_->SupportProperty(prop)); in SupportProperty()
Dv_input_device.h81 bool SupportProperty(size_t prop) const;
170 inline bool VInputDevice::SupportProperty(size_t prop) const in SupportProperty() argument
172 return TestBit(prop, propBitmask_); in SupportProperty()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Drule_cluster.cpp211 xmlChar* prop = xmlGetProp(node, (xmlChar*)(name.c_str())); in GetAttributeValue() local
213 if (prop != nullptr) { in GetAttributeValue()
214 propa = (char*)prop; in GetAttributeValue()
219 xmlFree(prop); in GetAttributeValue()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_file_kits_test.cpp60 struct DlpProperty prop; in CreateDlpFileFd() local
61 prop.ownerAccount = "ohosAnonymousName"; in CreateDlpFileFd()
62 prop.ownerAccountId = "ohosAnonymousName"; in CreateDlpFileFd()
63 prop.ownerAccountType = CLOUD_ACCOUNT; in CreateDlpFileFd()
64 prop.contactAccount = "test@test.com"; in CreateDlpFileFd()
67 … int ret = DlpFileManager::GetInstance().GenerateDlpFile(plainFileFd, g_dlpFileFd, prop, filePtr); in CreateDlpFileFd()
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_common.cpp342 static void GeneratePropertyJs(napi_env env, const GetPropertyContext &prop, napi_value &dataJs) in GeneratePropertyJs() argument
346 NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, prop.result, &napiResult)); in GeneratePropertyJs()
348 for (const auto &key : prop.request.keys) { in GeneratePropertyJs()
352 … NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, prop.authSubType, &napiAuthSubType)); in GeneratePropertyJs()
358 … NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, prop.remainTimes, &napiRemainTimes)); in GeneratePropertyJs()
364 … NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, prop.freezingTime, &napiFreezingTimes)); in GeneratePropertyJs()
371 … env, prop.enrollmentProgress.c_str(), NAPI_AUTO_LENGTH, &napiEnrollmentProgress)); in GeneratePropertyJs()
379 … napi_create_string_utf8(env, prop.sensorInfo.c_str(), NAPI_AUTO_LENGTH, &napiSensorInfo)); in GeneratePropertyJs()
389 static void CreateExecutorProperty(napi_env env, GetPropertyContext &prop, napi_value &errJs, napi_… in CreateExecutorProperty() argument
391 if (prop.result != ERR_OK && prop.result != ERR_IAM_NOT_ENROLLED) { in CreateExecutorProperty()
[all …]
/base/inputmethod/imf/services/dialog/entry/src/main/ets/pages/
Dindex.ets67 let prop = this.propertyMap.get(item)
68 globalThis.chooseInputMethods(prop)
/base/inputmethod/imf/services/dialog/entry/src/main/ets/ServiceExtAbility/
DServiceExtAbility.ts66 globalThis.chooseInputMethods = ((prop: inputMethod.InputMethodProperty): void => {
67 inputMethod.switchInputMethod(prop).then((err) => {
/base/inputmethod/imf/test/unittest/cpp_test/src/
Djs_util_test.cpp112 Property prop{}; in GetObject() local
113 JsProperty::Read(env, in, prop); in GetObject()
114 return JsProperty::Write(env, prop); in GetObject()
/base/msdp/device_status/tools/vdev/src/
Dvirtual_device_builder.cpp547 for (uint32_t prop = INPUT_PROP_POINTER; prop < INPUT_PROP_MAX; ++prop) { in CopyEvents() local
548 if (vDev->SupportProperty(prop)) { in CopyEvents()
549 properties_.push_back(prop); in CopyEvents()
/base/hiviewdfx/hilog/frameworks/libhilog/param/
Dproperties.cpp470 string prop = GetPropertyName(PropType::PROP_PROC_QUOTA) + proc; in GetProcessQuota() local
472 int ret = PropertyGet(prop, value, HILOG_PROP_VALUE_MAX); in GetProcessQuota()
483 string prop = GetPropertyName(PropType::PROP_DOMAIN_QUOTA) + Uint2HexStr(domain); in GetDomainQuota() local
485 int ret = PropertyGet(prop, value, HILOG_PROP_VALUE_MAX); in GetDomainQuota()
/base/time/time_service/framework/js/napi/common/src/
Dnapi_utils.cpp44 napi_value prop = nullptr; in CreateNapiNumber() local
45 napi_create_int32(env, objName, &prop); in CreateNapiNumber()
46 return prop; in CreateNapiNumber()
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
Dn_val.cpp191 napi_value prop = nullptr; in GetProp() local
192 napi_status status = napi_get_named_property(env_, val_, propName.c_str(), &prop); in GetProp()
196 return NVal(env_, prop); in GetProp()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dconstant.cpp24 napi_value prop = nullptr; in SetNamedPropertyByInteger() local
25 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
26 napi_set_named_property(env, dstObj, propName, prop); in SetNamedPropertyByInteger()

12