Home
last modified time | relevance | path

Searched refs:Promise (Results 1 – 25 of 72) sorted by relevance

123

/base/telephony/core_service/interfaces/kits/js/
D@ohos.telephony.sim.d.ts49 function isSimActive(slotId: number): Promise<boolean>;
84 function getDefaultVoiceSlotId(): Promise<number>;
120 function hasOperatorPrivileges(slotId: number): Promise<boolean>;
156 function getISOCountryCodeForSim(slotId: number): Promise<string>;
209 function getSimOperatorNumeric(slotId: number): Promise<string>;
265 function getSimSpn(slotId: number): Promise<string>;
328 function getSimState(slotId: number): Promise<SimState>;
381 function getCardType(slotId: number): Promise<CardType>;
441 function getSimIccId(slotId: number): Promise<string>;
485 function getVoiceMailIdentifier(slotId: number): Promise<string>;
[all …]
D@ohos.telephony.radio.d.ts97 …function getRadioTech(slotId: number): Promise<{psRadioTech: RadioTechnology, csRadioTech: RadioTe…
133 function getNetworkState(slotId?: number): Promise<NetworkState>;
189 function sendUpdateCellLocationRequest(slotId?: number): Promise<void>;
247 function getCellInformation(slotId?: number): Promise<Array<CellInformation>>;
309 function getNetworkSelectionMode(slotId: number): Promise<NetworkSelectionMode>;
347 function setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise<void>;
388 function getNetworkSearchInformation(slotId: number): Promise<NetworkSearchResult>;
422 function getISOCountryCodeForNetwork(slotId: number): Promise<string>;
474 function getNrOptionMode(slotId?: number): Promise<NrOptionMode>;
533 function getIMEI(slotId?: number): Promise<string>;
[all …]
/base/security/certificate_manager/interfaces/kits/js/
D@ohos.security.certManager.d.ts33 function getSystemTrustedCertificateList() : Promise<CMResult>;
44 function getSystemTrustedCertificate(certUri: string) : Promise<CMResult>;
58 function setCertificateStatus(certUri: string, store: number, status: boolean) : Promise<boolean>;
69 function installUserTrustedCertificate(certificate: CertBlob,) : Promise<CMResult>;
79 function uninstallAllUserTrustedCertificate() : Promise<boolean>;
90 function uninstallUserTrustedCertificate(certUri: string) : Promise<boolean>;
99 function getUserTrustedCertificateList() : Promise<CMResult>;
109 function getUserTrustedCertificate(certUri: string) : Promise<CMResult>;
122 …llAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Promise<CMResult>;
134 …ivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Promise<CMResult>;
[all …]
/base/telephony/call_manager/interfaces/kits/js/
D@ohos.telephony.call.d.ts58 function dial(phoneNumber: string, options?: DialOptions): Promise<boolean>;
118 function dialCall(phoneNumber: string, options?: DialCallOptions): Promise<void>;
169 function makeCall(phoneNumber: string): Promise<void>;
189 function hasCall(): Promise<boolean>;
227 function getCallState(): Promise<CallState>;
278 function muteRinger(): Promise<void>;
325 …function isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise<bo…
380 function formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise<string>;
433 function formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise<string>;
471 function answerCall(callId?: number): Promise<void>;
[all …]
/base/telephony/cellular_data/interfaces/kits/js/
D@ohos.telephony.data.d.ts42 function getDefaultCellularDataSlotId(): Promise<number>;
95 function setDefaultCellularDataSlotId(slotId: number): Promise<void>;
115 function getCellularDataFlowType(): Promise<DataFlowType>;
148 function getCellularDataState(): Promise<DataConnectState>;
180 function isCellularDataEnabled(): Promise<boolean>;
214 function enableCellularData(): Promise<void>;
248 function disableCellularData(): Promise<void>;
287 function isCellularDataRoamingEnabled(slotId: number): Promise<boolean>;
327 function enableCellularDataRoaming(slotId: number): Promise<void>;
367 function disableCellularDataRoaming(slotId: number): Promise<void>;
/base/print/print_fwk/interfaces/kits/jskits/
D@ohos.print.d.ts63 function print(files: Array<string>): Promise<PrintTask>;
75 function print(files: Array<string>, context: Context): Promise<PrintTask>;
225 function queryAllPrinterExtensionInfos(): Promise<Array<PrinterExtensionInfo>>;
239 function startDiscoverPrinter(extensionList: Array<string>): Promise<boolean>;
253 function stopDiscoverPrinter(): Promise<boolean>;
266 function connectPrinter(printerId: string): Promise<boolean>;
279 function disconnectPrinter(printerId: string): Promise<boolean>;
292 function queryPrinterCapability(printerId: string): Promise<boolean>;
305 function startPrintJob(jobInfo: PrintJob): Promise<boolean>;
318 function cancelPrintJob(jobId: string): Promise<boolean>;
[all …]
/base/time/time_service/
DREADME_zh.md37 | setTime(time : number) : Promise | 设置系统时间(1970-01-01至今毫秒数),Promise方式。…
39 | getCurrentTime(isNano?: boolean): Promise<number> | 获取自Unix纪元以来经过的时间,
42 …getRealActiveTime(isNano?: boolean): Promise<number> | 获取自系统启动以来经过的时间,…
45 | getRealTime(isNano?: boolean): Promise<number> | 获取自系统启动以来经过的时间,包括深度睡…
48 | setDate(date: Date, callback: AsyncCallback<boolean>): void; | 设置系统时间(Date格式),Promise方式。 …
49 | setDate(date: Date): Promise<boolean> | 设置系统时间(Date格式),callback方式。 …
50 | getDate(callback: AsyncCallback<Date>): void | 获取当前系统日期,Promise方式。 |
51 | getDate(): Promise<Date> | 获取当前系统日期,callback方式。 |
53 | setTimezone(timezone: string): Promise<boolean> | 设置系统时区,Promise方式。 …
55 | getTimezone(): Promise<string> | 获取系统时区,Promise方式。 |
[all …]
DREADME.md34 …ime(time : number) : Promise<boolean> | Set the system time (1970-01-01 to the …
36 …ack: AsyncCallback<boolean>): void; | Set the system time (Date format), Promise method. …
37 | setDate(date: Date): Promise<boolean> | Set system time (Date format), cal…
39 | setTimezone(timezone: string): Promise<boolean> | Set the system time zone, Promise
46 | createTimer(options: TimerOptions): Promise<number> | Create timer, promise method …
48 | startTimer(timer: number, triggerTime: number): Promise<boolean> | Start the timer, promise mode …
50 | stopTimer(timer: number): Promise<boolean> | Stop the timer, promise mode …
52 | destroyTimer(timer: number): Promise<boolean> | Destroy the timer, the promise met…
72 // Set the system time asynchronously with a Promise.
/base/update/updateservice/interfaces/kits/js/declaration/
D@ohos.update.d.ts91 checkNewVersion(): Promise<CheckResult>;
117 getNewVersionInfo(): Promise<NewVersionInfo>;
156 ): Promise<Array<ComponentDescription>>;
182 getCurrentVersionInfo(): Promise<CurrentVersionInfo>;
215 …getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise<Array<ComponentDescr…
241 getTaskInfo(): Promise<TaskInfo>;
280 download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions): Promise<void>;
319 …versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: ResumeDownloadOptions): Promise<void>;
358 …d(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseDownloadOptions): Promise<void>;
393 upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions): Promise<void>;
[all …]
/base/telephony/sms_mms/interfaces/kits/js/
D@ohos.telephony.sms.d.ts71 function splitMessage(content: string): Promise<Array<string>>;
113 function createMessage(pdu: Array<number>, specification: string): Promise<ShortMessage>;
174 function sendShortMessage(options: SendMessageOptions): Promise<void>;
218 function setDefaultSmsSlotId(slotId: number): Promise<void>;
240 function getDefaultSmsSlotId(): Promise<number>;
280 function setSmscAddr(slotId: number, smscAddr: string): Promise<void>;
318 function getSmscAddr(slotId: number): Promise<string>;
366 function addSimMessage(options: SimMessageOptions): Promise<void>;
408 function delSimMessage(slotId: number, msgIndex: number): Promise<void>;
446 function updateSimMessage(options: UpdateSimMessageOptions): Promise<void>;
[all …]
/base/update/update_app/common/src/main/ets/manager/
DUpdateManager.ts33 descriptor.value = function (...args): Promise<unknown> {
34 return new Promise((resolve, reject) => {
42 let result: Promise<T>;
72 getOtaStatus(): Promise<UpgradeData<OtaStatus>>;
73 getNewVersion(): Promise<UpgradeData<update.NewVersionInfo>>;
75 descLanguage: string): Promise<UpgradeData<Array<update.ComponentDescription>>>;
77 descLanguage: string): Promise<UpgradeData<Array<update.ComponentDescription>>>;
78 checkNewVersion(): Promise<UpgradeData<update.CheckResult>>;
79 upgrade(upgradeVersionDigest: string, upgradeOrder: number): Promise<void>;
80 …download(downloadVersionDigest: string, downloadNetwork: number, downloadOrder: number): Promise<v…
[all …]
DUpgradeInterface.ets139 * @return Promise<VersionPageInfo> 具体的新版本数据
142 componentDescriptions?: Array<update.ComponentDescription>): Promise<VersionPageInfo>;
168 showDownloading(version: string, progress: number, context: common.Context): Promise<void>;
176 showUpgradeFailed(versionName: string, context: common.Context): Promise<void>;
184 showUpgradeSuccess(versionName: string, context: common.Context): Promise<void>;
193 showInstalling(version: string, progress: number, context: common.Context): Promise<void>
198 cancelAll(): Promise<void>;
/base/update/update_app/feature/ota/src/main/ets/util/
DRouterUtils.ts37 function waitForSeconds(timeInSeconds: number): Promise<void> {
38 return new Promise(resolver => {
46 export async function singletonHomePage(): Promise<void> {
78 export async function isCanToNewVersion(): Promise<boolean> {
79 return new Promise((resolve, reject) => {
/base/msdp/device_status/services/delegate_task/include/
Ddelegate_tasks.h40 using Promise = std::promise<int32_t>;
43 Task(int32_t id, DTaskCallback fun, Promise *promise = nullptr)
65 Promise* promise_ { nullptr };
68 using Promise = Task::Promise; variable
95 TaskPtr PostTask(DTaskCallback callback, Promise *promise = nullptr);
/base/theme/screenlock_mgr/
DREADME_ZH.md41 | isScreenLocked(): Promise&lt;boolean&gt;; | 判断屏幕是否锁屏。Promise方式 |
44 | isSecureMode(): Promise&lt;boolean&gt;; | 判断当前设备的屏幕锁定是否安全(安全屏幕锁定意味着解锁屏幕需要密码、图案或其他用户身份识别)。Promise方…
47 | unlockScreen(): Promise&lt;void&gt;; | 三方应用解锁屏幕。Promise方式 |
49 | unlock():Promise&lt;boolean&gt;; | 三方应用解锁屏幕。如果屏幕解锁成功,则返回true,否则返回false。Promise方式 |
51 | lock():Promise&lt;boolean&gt;; | 系统API,锁定屏幕。如果屏幕锁定成功,则返回true,否则返回false。Promise方式 |
55 | sendScreenLockEvent(event: String, parameter: number): Promise&lt;boolean&gt;; | 系统API,锁屏应用给锁屏管理服…
85 // Promise方式,在异步回调里面获取锁屏状态结果
115 // Promise方式,在异步回调里面获取当前设备的屏幕锁定是否安全结果
140 // Promise方式,在异步回调里面获取锁屏是否成功的结果
191 // 三方应用Promise方式调用请求解锁
DREADME.md27 function isScreenLocked(): Promise<boolean>; void; query the screenlock status,Promise mode
30 …unction isSecureMode(): Promise<boolean>; query whether to set screenlock password (gesture, digit…
33 function unlockScreen(): Promise<void>; request unlockScreen,Promise mode
39 // query the screenlock status asynchronously with a Promise
/base/security/huks/interfaces/kits/js/
D@ohos.security.huks.d.ts50 function generateKey(keyAlias: string, options: HuksOptions): Promise<HuksResult>;
96 function generateKeyItem(keyAlias: string, options: HuksOptions): Promise<void>;
122 function deleteKey(keyAlias: string, options: HuksOptions): Promise<HuksResult>;
158 function deleteKeyItem(keyAlias: string, options: HuksOptions): Promise<void>;
184 function importKey(keyAlias: string, options: HuksOptions): Promise<HuksResult>;
232 function importKeyItem(keyAlias: string, options: HuksOptions): Promise<void>;
287 …ortWrappedKeyItem(keyAlias: string, wrappingKeyAlias: string, options: HuksOptions): Promise<void>;
313 function exportKey(keyAlias: string, options: HuksOptions): Promise<HuksResult>;
357 function exportKeyItem(keyAlias: string, options: HuksOptions): Promise<HuksReturnResult>;
383 function getKeyProperties(keyAlias: string, options: HuksOptions): Promise<HuksResult>;
[all …]
/base/sensors/miscdevice/interfaces/plugin/vibrator/test/unittest/
DExampleJsunit.test.js235 return new Promise((resolve, reject) => {
254 let promise = new Promise((resolve, reject) => {
289 return new Promise((resolve, reject) => {
308 let promise = new Promise((resolve, reject) => {
466 return new Promise((resolve, reject) => {
483 let promise = new Promise((resolve, reject) => {
567 return new Promise((resolve, reject) => {
584 let promise = new Promise((resolve, reject) => {
973 return new Promise((resolve, reject) => {
990 let promise = new Promise((resolve, reject) => {
[all …]
/base/update/update_app/common/src/main/ets/util/
DNetUtils.ts30 export async function isNetAvailable(): Promise<boolean> {
31 return new Promise((resolve, reject) => {
53 export async function isCellularNetwork(): Promise<boolean> {
54 return new Promise((resolve, reject) => {
/base/telephony/sms_mms/
DREADME_zh.md69 …pdu: Array\<number>, specification: string): Promise\<ShortMessage> | 根据协议数据单元(PDU)和指定的短信协议创建短信实例,…
71 | function getDefaultSmsSlotId():Promise\<number> | 获取发送短信的默认SIM卡,使用Promise方式异步返回默认SIM…
73 | function getDefaultSmsSimId():Promise\<number> | 获取发送短信的默认SIM卡ID,使用Promise方式异步返回默认SI…
75 | function setSmscAddr(slotId: number, smscAddr: string): Promise\<void> | 设置短信服务中心地址,使用Promise方式异步…
77 | function getSmscAddr(slotId: number): Promise\<string> | 获取短信服务中心地址,使用Promise方式异步返回短信服务中心地址…
177 2. 可以通过callback或者Promise的方式调用sendMessage接口。
208 2. 可以通过callback或者Promise的方式调用createMessage接口。
228 // 调用接口【Promise方式】
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/controller/
DenrollingController.ts53 async startEnroll(): Promise<void> {
70 async processResult(result : number): Promise<void> {
81 async onAcquire(result: number): Promise<void> {
91 async faceDetected(): Promise<void> {
107 async enrollProcessing(): Promise<void> {
126 async enrollSuccess(): Promise<void> {
141 async enrollFail(): Promise<void> {
159 async clear(): Promise<void> {
/base/usb/usb_manager/interfaces/kits/js/
D@ohos.usbManager.d.ts64 function requestRight(deviceName: string): Promise<boolean>;
125 function setCurrentFunctions(funcs: FunctionType): Promise<void>;
171 …function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise<v…
255 …olTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise<number>;
270 timeout?: number): Promise<number>;
/base/update/update_app/feature/ota/src/main/ets/notify/
DNotificationManager.ts42 static async handleAction(action: string, context: common.Context): Promise<boolean> {
60 private static async handleDetailAction(context: common.Context): Promise<void> {
69 public static async startToNewVersion(context: common.Context): Promise<void> {
/base/update/update_app/feature/ota/src/main/ets/manager/
DOtaUpdateManager.ets75 async getOtaStatus(): Promise<UpgradeData<OtaStatus>> {
76 return new Promise((resolve, reject) => {
91 async getNewVersion(): Promise<UpgradeData<update.NewVersionInfo>> {
92 return new Promise((resolve, reject) => {
109 async getNewVersionDescription(): Promise<UpgradeData<Array<update.ComponentDescription>>> {
120 async getCurrentVersionDescription(): Promise<UpgradeData<Array<update.ComponentDescription>>> {
130 async checkNewVersion(): Promise<UpgradeData<update.CheckResult>> {
131 return new Promise((resolve, reject) => {
148 async upgrade(order: update.Order = update.Order.INSTALL_AND_APPLY): Promise<void> {
150 return new Promise((resolve, reject) => {
[all …]
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/model/
DuserIdmModel.ts41 async getChallenge() : Promise<Uint8Array> {
89 async enrollFace() : Promise<number> {
92 return new Promise<number>((resolve)=> {
117 async deleteFace() : Promise<number> {
126 return new Promise<number>((resolve)=> {

123