Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 142) sorted by relevance

123456

/base/miscservices/wallpaper/interfaces/kits/napi/wallpaper_extension_context/
Dwallpaper_extension_context.js24 startAbility(want, options, callback) { argument
26 return this.__context_impl__.startAbility(want, options, callback);
29 connectAbility(want, options) { argument
31 return this.__context_impl__.connectAbility(want, options);
34 startAbilityWithAccount(want, accountId, options, callback) { argument
36 return this.__context_impl__.startAbilityWithAccount(want, accountId, options, callback);
39 connectAbilityWithAccount(want, accountId, options) { argument
41 return this.__context_impl__.connectAbilityWithAccount(want, accountId, options);
/base/global/i18n_standard/frameworks/intl/src/
Dcollator.cpp27 std::string Collator::ParseOption(std::map<std::string, std::string> &options, const std::string &k… in ParseOption() argument
29 std::map<std::string, std::string>::iterator it = options.find(key); in ParseOption()
30 if (it != options.end()) { in ParseOption()
37 void Collator::ParseAllOptions(std::map<std::string, std::string> &options) in ParseAllOptions() argument
39 localeMatcher = ParseOption(options, "localeMatcher"); in ParseAllOptions()
44 usage = ParseOption(options, "usage"); in ParseAllOptions()
49 sensitivity = ParseOption(options, "sensitivity"); in ParseAllOptions()
54 ignorePunctuation = ParseOption(options, "ignorePunctuation"); in ParseAllOptions()
59 numeric = ParseOption(options, "numeric"); in ParseAllOptions()
60 caseFirst = ParseOption(options, "caseFirst"); in ParseAllOptions()
[all …]
Dplural_rules.cpp30 std::string PluralRules::ParseOption(std::map<std::string, std::string> &options, const std::string… in ParseOption() argument
32 std::map<std::string, std::string>::iterator it = options.find(key); in ParseOption()
33 if (it != options.end()) { in ParseOption()
40 void PluralRules::ParseAllOptions(std::map<std::string, std::string> &options) in ParseAllOptions() argument
42 localeMatcher = ParseOption(options, "localeMatcher"); in ParseAllOptions()
44 type = ParseOption(options, "type"); in ParseAllOptions()
46 std::string minIntegerStr = ParseOption(options, "minimumIntegerDigits"); in ParseAllOptions()
51 std::string minFractionStr = ParseOption(options, "minimumFractionDigits"); in ParseAllOptions()
52 std::string maxFractionStr = ParseOption(options, "maximumFractionDigits"); in ParseAllOptions()
53 std::string minSignificantStr = ParseOption(options, "minimumSignificantDigits"); in ParseAllOptions()
[all …]
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts175 static BatterySOC(options?: GetBatterySOC): void;
181 static ChargingStatus(options?: GetChargingStatus): void;
187 static HealthStatus(options?: GetHealthStatus): void;
193 static PluggedType(options?: GetPluggedType): void;
199 static Voltage(options?: GetVoltage): void;
205 static Technology(options?: GetTechnology): void;
211 static Temperature(options?: GetTemperature): void;
/base/global/i18n_standard/interfaces/js/kits/src/
Dintl_addon.cpp165 void GetOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetOptionValue() argument
170 napi_status status = napi_typeof(env, options, &type); in GetOptionValue()
176 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
178 status = napi_get_named_property(env, options, optionName.c_str(), &optionValue); in GetOptionValue()
189 void GetIntegerOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetIntegerOptionValue() argument
194 napi_status status = napi_typeof(env, options, &type); in GetIntegerOptionValue()
200 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetIntegerOptionValue()
202 status = napi_get_named_property(env, options, optionName.c_str(), &optionValue); in GetIntegerOptionValue()
213 void GetBoolOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetBoolOptionValue() argument
218 napi_status status = napi_typeof(env, options, &type); in GetBoolOptionValue()
[all …]
/base/global/i18n_standard/frameworks/intl/test/unittest/
Dintl_test.cpp61 map<string, string> options = { { "year", "numeric" }, variable
69 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options);
97 map<string, string> options = { { "hourCycle", "h11" }, variable
100 LocaleInfo *loc = new (std::nothrow) LocaleInfo(locale, options);
156 map<string, string> options = { { "dateStyle", dateStyle }, variable
158 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options);
183 map<string, string> options = { { "year", "numeric" }, variable
187 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options);
219 map<string, string> options = { { "useGrouping", useGrouping }, variable
225 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options);
[all …]
/base/security/huks/interfaces/kits/js/
D@ohos.security.huks.d.ts32 …function generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) …
33 function generateKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
42 …function deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : …
43 function deleteKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
52 …function importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : …
53 function importKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
62 …function exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : …
63 function exportKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
72 …function getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResu…
73 function getKeyProperties(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
[all …]
/base/powermgr/display_manager/interfaces/kits/js/
D@system.brightness.d.ts197 static getValue(options?: GetBrightnessOptions): void;
204 static setValue(options?: SetBrightnessOptions): void;
211 static getMode(options?: GetBrightnessModeOptions): void;
218 static setMode(options?: SetBrightnessModeOptions): void;
225 static setKeepScreenOn(options?: SetKeepScreenOnOptions): void;
/base/telephony/state_registry/interfaces/kits/js/
D@ohos.telephony.observer.d.ts53 …function on(type: 'networkStateChange', options: { slotId: number }, callback: Callback<NetworkSta…
66 function on(type: 'signalInfoChange', options: { slotId: number },
86 function on(type: 'cellInfoChange', options: { slotId: number },
107 function on(type: 'cellularDataConnectionStateChange', options: { slotId: number },
123 function on(type: 'cellularDataFlowChange', options: { slotId: number },
140 function on(type: 'callStateChange', options: { slotId: number },
157 …function on(type: 'simStateChange', options: { slotId: number }, callback: Callback<SimStateData>)…
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_authenticator_stub.cpp49 std::shared_ptr<AAFwk::WantParams> options(data.ReadParcelable<AAFwk::WantParams>()); in OnRemoteRequest() local
51 if ((options == nullptr) || (callback == nullptr)) { in OnRemoteRequest()
56 result = Authenticate(name, authType, callerBundleName, *options, callback); in OnRemoteRequest()
67 std::shared_ptr<AAFwk::WantParams> options(data.ReadParcelable<AAFwk::WantParams>()); in OnRemoteRequest() local
69 if ((options == nullptr) || (callback == nullptr)) { in OnRemoteRequest()
74 result = AddAccountImplicitly(authType, callerBundleName, *options, callback); in OnRemoteRequest()
Dapp_account_authenticator_proxy.cpp35 …const std::string &callerBundleName, const AAFwk::WantParams &options, const sptr<IRemoteObject> &… in AddAccountImplicitly() argument
54 if (!data.WriteParcelable(&options)) { in AddAccountImplicitly()
70 …const std::string &callerBundleName, const AAFwk::WantParams &options, const sptr<IRemoteObject> &… in Authenticate() argument
93 if (!data.WriteParcelable(&options)) { in Authenticate()
/base/global/i18n_standard/frameworks/intl/include/
Dplural_rules.h34 PluralRules(std::vector<std::string> &localeTags, std::map<std::string, std::string> &options);
54 std::string ParseOption(std::map<std::string, std::string> &options, const std::string &key);
55 void ParseAllOptions(std::map<std::string, std::string> &options);
56 …InitPluralRules(std::vector<std::string> &localeTags, std::map<std::string, std::string> &options);
Dcollator.h40 Collator(std::vector<std::string> &localeTags, std::map<std::string, std::string> &options);
43 void ResolvedOptions(std::map<std::string, std::string> &options);
60 std::string ParseOption(std::map<std::string, std::string> &options, const std::string &key);
61 void ParseAllOptions(std::map<std::string, std::string> &options);
/base/powermgr/display_manager/frameworks/napi/
Dbrightness_module.cpp39 napi_value options = asyncBrightness->GetCallbackInfo(info, napi_object); in SyncWork() local
40 RETURN_IF_WITH_RET(options == nullptr, nullptr); in SyncWork()
41 RETURN_IF_WITH_RET(!asyncBrightness->CreateCallbackRef(options), nullptr); in SyncWork()
43 asyncBrightness->CreateValueRef(options, valName, napi_number); in SyncWork()
146 napi_value options = asyncBrightness->GetCallbackInfo(info, napi_object); in SetKeepScreenOn() local
147 RETURN_IF_WITH_RET(options == nullptr, nullptr); in SetKeepScreenOn()
148 RETURN_IF_WITH_RET(!asyncBrightness->CreateCallbackRef(options), nullptr); in SetKeepScreenOn()
149 asyncBrightness->CreateValueRef(options, Brightness::KEEP_SCREENON, napi_boolean); in SetKeepScreenOn()
Dbrightness.cpp159 napi_value options = argv[ARGV_ONE]; in GetCallbackInfo() local
160 RETURN_IF_WITH_RET(!CheckValueType(options, checkType), nullptr); in GetCallbackInfo()
161 return options; in GetCallbackInfo()
164 bool Brightness::CreateCallbackRef(napi_value& options) in CreateCallbackRef() argument
166 RETURN_IF_WITH_RET(!CheckValueType(options, napi_object), false); in CreateCallbackRef()
168 napi_value succCallBack = GetOptions(options, FUNC_SUCEESS_NAME, napi_function); in CreateCallbackRef()
173 napi_value failCallBack = GetOptions(options, FUNC_FAIL_NAME, napi_function); in CreateCallbackRef()
178 napi_value completeCallBack = GetOptions(options, FUNC_COMPLETE_NAME, napi_function); in CreateCallbackRef()
185 void Brightness::CreateValueRef(napi_value& options, const std::string& valName, napi_valuetype che… in CreateValueRef() argument
187 napi_value value = GetOptions(options, valName, checkType); in CreateValueRef()
[all …]
/base/global/i18n_standard/interfaces/js/kits/include/
Dintl_addon.h34 void GetOptionValue(napi_env env, napi_value options, const std::string &optionName,
36 void GetBoolOptionValue(napi_env env, napi_value options, const std::string &optionName,
38 void GetIntegerOptionValue(napi_env env, napi_value options, const std::string &optionName,
40 void GetDateOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map);
41 void GetNumberOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &ma…
42 void GetCollatorOptionValue(napi_env env, napi_value options, std::map<std::string, std::string> &m…
43 void GetPluralRulesOptionValues(napi_env env, napi_value options, std::map<std::string, std::string…
44 … SetOptionProperties(napi_env env, napi_value &result, std::map<std::string, std::string> &options,
47 std::map<std::string, std::string> &options, const std::string &option);
49 std::map<std::string, std::string> &options, const std::string &option);
[all …]
/base/notification/ans_standard/frameworks/ans/native/src/
Dnotification_user_input.cpp71 const std::string &tag, const std::vector<std::string> &options, bool permitFreeFormInput, in Create() argument
86 if (options.empty() && permitMimeTypes.empty()) { in Create()
98 …NotificationUserInput(inputKey, tag, options, permitFreeFormInput, permitMimeTypes, realAdditional… in Create()
112 …const std::vector<std::string> &options, bool permitFreeFormInput, const std::set<std::string> &pe… in NotificationUserInput() argument
116 options_(options), in NotificationUserInput()
150 void NotificationUserInput::SetOptions(const std::vector<std::string> &options) in SetOptions() argument
152 options_ = options; in SetOptions()
207 std::string options; in Dump() local
209 options += option + ", "; in Dump()
211 options.pop_back(); in Dump()
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dlocale_info.cpp298 uint16_t options = OPT_LANG; in ParseLanguageTag() local
317 if (!ParseNormalSubTag(locale, start, tagLength, options, type)) { in ParseLanguageTag()
318 if ((options & OPT_EXTENSION) && (type == TAG_VALUE)) { in ParseLanguageTag()
328 …Info::ParseNormalSubTag(LocaleInfo &locale, const char *start, size_t tagLength, uint16_t &options, in ParseNormalSubTag() argument
334 if ((options & OPT_LANG) && (type == TAG_COMMON)) { in ParseNormalSubTag()
337 options &= ~OPT_LANG; in ParseNormalSubTag()
338 options |= OPT_SCRIPT | OPT_REGION | OPT_EXTENSION; in ParseNormalSubTag()
342 if ((options & OPT_SCRIPT) && (type == TAG_COMMON)) { in ParseNormalSubTag()
344 options &= ~OPT_SCRIPT; in ParseNormalSubTag()
349 if ((options & OPT_REGION) && (type == TAG_COMMON)) { in ParseNormalSubTag()
[all …]
/base/security/selinux/interfaces/tools/hap_restorecon/
Dtest.cpp56 static void SetOptions(int argc, char *argv[], const option *options, testInput &input) in SetOptions() argument
61 while ((para = getopt_long(argc, argv, optStr, options, &index)) != -1) { in SetOptions()
104 struct option options[] = { in main() local
117 SetOptions(argc, argv, options, testCmd); in main()
/base/telephony/sms_mms/interfaces/kits/js/
D@ohos.telephony.sms.d.ts68 function sendMessage(options: SendMessageOptions): void;
135 function addSimMessage(options: SimMessageOptions, callback: AsyncCallback<void>): void;
136 function addSimMessage(options: SimMessageOptions): Promise<void>;
151 function updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback<void>): void;
152 function updateSimMessage(options: UpdateSimMessageOptions): Promise<void>;
167 function setCBConfig(options: CBConfigOptions, callback: AsyncCallback<void>): void;
168 function setCBConfig(options: CBConfigOptions): Promise<void>;
/base/telephony/call_manager/interfaces/kits/js/
D@ohos.telephony.call.d.ts39 … function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback<boolean>): void;
40 function dial(phoneNumber: string, options?: DialOptions): Promise<boolean>;
94 …function isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: As…
95 …function isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise<bo…
108 …function formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallb…
109 function formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise<string>;
137 …function reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback<void>): voi…
138 function reject(callId: number, options?: RejectMessageOptions): Promise<void>;
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_app_account_authenticator.h39 AAFwk::WantParams options; member
55 const AAFwk::WantParams &options, const sptr<IRemoteObject> &callback) override;
58 const AAFwk::WantParams &options, const sptr<IRemoteObject> &callback) override;
/base/notification/ans_standard/services/distributed/src/
Ddistributed_preferences_database.cpp61 DistributedKv::Options options; in GetKvStore() local
62 options.createIfMissing = true; in GetKvStore()
63 options.autoSync = false; in GetKvStore()
64 options.kvStoreType = DistributedKv::KvStoreType::SINGLE_VERSION; in GetKvStore()
68 status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore()
/base/miscservices/time/interfaces/kits/js/declaration/api/
D@ohos.systemtimer.d.ts52 function createTimer(options: TimerOptions, callback: AsyncCallback<number>): void;
53 function createTimer(options: TimerOptions): Promise<number>;
/base/security/selinux/interfaces/tools/service_check/
Dtest.cpp51 static void SetOptions(int argc, char *argv[], const option *options, testInput &input) in SetOptions() argument
56 while ((para = getopt_long(argc, argv, optStr, options, &index)) != -1) { in SetOptions()
91 struct option options[] = { in main() local
104 SetOptions(argc, argv, options, input); in main()

123456