Home
last modified time | relevance | path

Searched full:msg (Results 1 – 25 of 221) sorted by relevance

123456789

/applications/standard/app_samples/code/BasicFeature/Media/Image/photomodify/src/main/ets/components/model/
Dlog.ets10 public log = (msg: string): string => {
11 const logMessage = this.myName + ' ' + msg;
12 logger.info(this.myName + ' ' + msg);
15 public check_result = (msg: string, res: object | number | string): string => {
18 return this.log(msg + ` success !`);
20 return this.log(msg + ` failed returning with a null object.`);
23 return this.log(msg + ` return: ` + res);
25 return this.log(msg + ` success, result is ` + res);
27 return this.log(msg + ` unknown result type`);
/applications/standard/settings/common/utils/src/main/ets/default/baseUtil/
DLogUtil.ts25 debug(msg): void {
26 HiLog.debug(DOMAIN, TAG, msg);
29 log(msg): void {
30 HiLog.info(DOMAIN, TAG, msg);
33 info(msg): void {
34 HiLog.info(DOMAIN, TAG, msg);
37 warn(msg): void {
38 HiLog.warn(DOMAIN, TAG, msg);
41 error(msg): void {
42 HiLog.error(DOMAIN, TAG, msg);
/applications/standard/calendardata/common/src/main/ets/utils/
DLog.ets25 public static log(classTag: string, msg: string) {
26 console.log(TAG + "--" + classTag + ":" + msg);
29 public static debug(classTag: string, msg: string) {
30 console.debug(TAG + "--" + classTag + ":" + msg);
33 public static info(classTag: string, msg: string) {
34 console.info(TAG + "--" + classTag + ":" + msg);
37 public static warn(classTag: string, msg: string) {
38 console.warn(TAG + "--" + classTag + ":" + msg);
41 public static error(classTag: string, msg: string) {
42 console.error(TAG + "--" + classTag + ":" + msg);
/applications/standard/app_samples/code/BasicFeature/Print/ScanNapiInterfaceDemo/entry/src/main/ets/scan/
Dlog.ts20 static debug(msg) :void {
21 hilog.debug(ScanLog.SETTING_DOMAIN, 'scanDemo',msg);
23 static info(msg) :void {
24 hilog.info(ScanLog.SETTING_DOMAIN,'scanDemo',msg);
26 static warn(msg) :void{
27 hilog.warn(ScanLog.SETTING_DOMAIN,'scanDemo',msg);
29 static fatal(msg) :void{
30 hilog.fatal(ScanLog.SETTING_DOMAIN,'scanDemo',msg);
/applications/standard/camera/common/src/main/ets/default/utils/
DReportUtil.ts26 MSG: "Failed to open camera"
35 MSG: "Error in camera operation"
44 MSG: "Abnormal photographing"
53 MSG: "Abnormal media drop"
62 MSG: "Switch camera timeout"
71 MSG: "Recording start timeout"
80 MSG: "Recording stop timeout"
89 MSG: "Startup timeout"
98 MSG: "Photo taking timeout"
108 MSG: "take a picture"
[all …]
/applications/standard/call/entry/src/main/ets/common/utils/
DLogUtils.ts22 * 3. msg should be short and valuable.
32 d(TAG, msg): void {
33 console.debug('[callui:]' + TAG + ':' + msg);
36 i(TAG, msg): void {
37 console.info('[callui:]' + TAG + ':' + msg);
40 w(TAG, msg): void {
41 console.warn('[callui:]' + TAG + ':' + msg);
44 e(TAG, msg): void {
45 console.error('[callui:]' + TAG + ':' + msg);
/applications/standard/call/mobiledatasettings/src/main/ets/common/utils/
DLogUtils.ts22 * 3. msg should be short and valuable.
32 d(TAG, msg): void {
33 console.debug('[mobiledatasettings:]' + TAG + ':' + msg);
36 i(TAG, msg): void {
37 console.info('[mobiledatasettings:]' + TAG + ':' + msg);
40 w(TAG, msg): void {
41 console.warn('[mobiledatasettings:]' + TAG + ':' + msg);
44 e(TAG, msg): void {
45 console.error('[mobiledatasettings:]' + TAG + ':' + msg);
/applications/standard/contacts_data/entry/src/main/ets/common/utils/
DLogUtils.ts20 d(TAG, msg): void {
21 console.debug('[ContactsData:]' + TAG + ':' + msg);
24 i(TAG, msg): void {
25 console.info('[ContactsData:]' + TAG + ':' + msg);
28 w(TAG, msg): void {
29 console.warn('[ContactsData:]' + TAG + ':' + msg);
32 e(TAG, msg): void {
33 console.error('[ContactsData:]' + TAG + ':' + msg);
/applications/standard/notes/common/utils/src/main/ets/default/baseUtil/
DLogUtil.ts29 static debug(tag: string, msg: string, ...args: any[]) {
31 hilog.info(this.CONTACTS_DOMAIN, this.prefix(tag), msg, args);
33 hilog.debug(this.CONTACTS_DOMAIN, this.prefix(tag), msg, args);
37 static info(tag: string, msg: string, ...args: any[]) {
38 hilog.info(this.CONTACTS_DOMAIN, this.prefix(tag), msg, args);
41 static warn(tag: string, msg: string, ...args: any[]) {
42 hilog.warn(this.CONTACTS_DOMAIN, this.prefix(tag), msg, args);
45 static error(tag: string, msg: string, ...args: any[]) {
46 hilog.error(this.CONTACTS_DOMAIN, this.prefix(tag), msg, args);
/applications/standard/contacts/common/src/main/ets/util/
DHiLog.ets22 * 3. msg should be short and valuable.
43 static d(tag: string, msg: string, ...args: any[]) {
44 Log.debug(DOMAIN, TAG, this.prefix(tag) + msg, args);
47 static i(tag: string, msg: string, ...args: any[]) {
48 Log.info(DOMAIN, TAG, this.prefix(tag) + msg, args);
51 static w(tag: string, msg: string, ...args: any[]) {
52 Log.warn(DOMAIN, TAG, this.prefix(tag) + msg, args);
55 static e(tag: string, msg: string, ...args: any[]) {
56 Log.error(DOMAIN, TAG, this.prefix(tag) + msg, args);
/applications/standard/mms/entry/src/main/ets/utils/
DHiLog.ets22 * 3. msg should be short and valuable.
45 static d(tag: string, msg: string, ...args: any[]) {
46 Log.debug(DOMAIN, TAG, this.prefix(tag) + msg, args);
49 static i(tag: string, msg: string, ...args: any[]) {
50 Log.info(DOMAIN, TAG, this.prefix(tag) + msg, args);
53 static w(tag: string, msg: string, ...args: any[]) {
54 Log.warn(DOMAIN, TAG, this.prefix(tag) + msg, args);
57 static e(tag: string, msg: string, ...args: any[]) {
58 Log.error(DOMAIN, TAG, this.prefix(tag) + msg, args);
/applications/standard/app_samples/code/Solutions/IM/Chat/features/chatlist/src/main/ets/pages/
DChatListPage.ets62 chatViewBuilder(msg: ChatModel) {
65 ReusableChatView(new Message(msg))
68 ChatView(new Message(msg))
74 OptChatViewBuilder(msg: ChatModel) {
77 ReusableOptLayoutChatView(new Message(msg))
80 OptLayoutChatView(new Message(msg))
86 deleteAction(msg: ChatModel) {
92 this.chatListLazy.deleteData(msg);
94 let index = this.chatListArray.indexOf(msg);
136 LazyForEach(this.chatListLazy, (msg: ChatModel) => {
[all …]
DChatDetailPage.ets85 msg = new TextMessage($r('app.string.message1'));
144 LazyForEach(this.chatDetailData, (msg: MessageBase) => {
146 ChatItemView({ msg: msg });
148 }, (msg: MessageBase) => msg.msgId)
180 let msg = new TextMessage(this.keyboardStr);
182 .toString(), this.userMyself, this.userFriend, msg, 1, this.todayDate.getSeconds());
195 let msg = new ImageMessage(40, 50, imageStr);
197 .toString(), this.userMyself, this.userFriend, msg, 2);
271 let msg: TextMessage | ImageMessage;
274 msg = new TextMessage(chatDetailMsgList[i % Constants.MOCK_ELEMENT_COUNT]);
[all …]
/applications/standard/app_samples/code/DocsSample/Media/Image/NdkPicture/entry/src/main/ets/utils/
DLogger.ets22 log = (msg: string) => {
23 console.info(this.prefix + this.tagName + ' ' + msg)
25 check_result = (msg: string, res: object | number) => {
27 this.log(msg + `object result success :${res}`)
30 this.log(msg + `: errorcode result succ: ${res}`)
32 this.log(msg + `: errorcode result failed: ${res}`)
35 this.log(msg + `unknown result type: ${res}`)
/applications/standard/photos/feature/browser/src/main/ets/default/view/album/
DRecycleAlbum.ets56 .onError((msg?: MsgOnError) => {
57 if (msg) {
58 Log.debug(TAG, `image load failed and its componentWidth is: ${msg.componentWidth}`);
59 … Log.debug(TAG, `image load failed and its componentHeight is: ${msg.componentHeight}`);
62 .onComplete((msg?: MsgOnComplete) => {
63 if (msg) {
64 Log.debug(TAG, `image load successfully and its width is: ${msg.width}`);
65 Log.debug(TAG, `image load successfully and its height is: ${msg.height}`);
66 … Log.debug(TAG, `image load successfully and its componentWidth is: ${msg.componentWidth}`);
67 … Log.debug(TAG, `image load successfully and its componentHeight is: ${msg.componentHeight}`);
/applications/standard/app_samples/code/SystemFeature/UIExtensionSamples/entry/src/main/ets/uiextensionpages/
DAbilityStartCallback.ets78 … let msg = `startAbilityByType onError, code:${code} name:${name} message:${message}`;
79 hilog.info(DOMAIN, TAG, msg);
80 … promptAction.showToast({ message: msg, duration: this.promptDuration, bottom: '11%' });
85 let msg = `startAbilityByType onResult,
87 hilog.info(DOMAIN, TAG, msg);
88 … promptAction.showToast({ message: msg, duration: this.promptDuration, bottom: '11%' });
93 let msg = `startAbilityByType fail, err: ${JSON.stringify(err)}`;
94 hilog.info(DOMAIN, TAG, msg);
95 … promptAction.showToast({ message: msg, duration: this.promptDuration, bottom: '11%' });
124 … let msg = `startAbilityByType onError, code:${code} name:${name} message:${message}`;
[all …]
/applications/standard/dlp_manager/entry/src/main/ets/common/
DReportToBigDataUtil.ets53 let msg = eventMsg ? ObjectUtil.AssignCopyAll({}, dlpBundleInfo, eventMsg) : dlpBundleInfo;
54 return msg;
58 ReportToBigDataUtil.constructEventMsg(eventMsg).then((msg: object): void => {
59 ReportToBigDataUtil.reportByEventType(hiSysEvent.EventType.BEHAVIOR, eventId, msg);
64 ReportToBigDataUtil.constructEventMsg(eventMsg).then((msg: object): void => {
65 ReportToBigDataUtil.reportByEventType(hiSysEvent.EventType.FAULT, eventId, msg);
80 let msg: string[] = [];
81 msg.push(`domain: ${info.domain}`);
82 msg.push(`eventId: ${info.name}`);
83 msg.push(`eventType: ${info.eventType}`);
[all …]
/applications/standard/app_samples/code/DocsSample/ArkUISample/ImageComponent/entry/src/main/ets/pages/
DEventCall.ets31 .onComplete(msg => {
32 if(msg){
33 this.widthValue = msg.width
34 this.heightValue = msg.height
35 this.componentWidth = msg.componentWidth
36 this.componentHeight = msg.componentHeight
/applications/standard/app_samples/code/DocsSample/ArkWeb/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/entry/src/main/resources/rawfile/
Dindex.html24 let msg;
29 msg = '<p>数据表已创建,且插入了两条数据。</p>';
31 document.querySelector('#status').innerHTML = msg;
38 msg = '<p>查询记录条数:' + len + '</p>';
40 document.querySelector('#status').innerHTML += msg;
43 msg = '<p><b>' + results.rows.item(i).log + '</b></p>';
45 document.querySelector('#status').innerHTML += msg;
/applications/standard/dlp_manager/entry/src/main/ets/common/AlertMessage/
DGetAlertMessage.ets101 … return { 'msg': $r('app.string.MESSAGE_APP_GET_ACCOUNT_ERROR') } as Record<string, Resource>;
104 return { 'msg': $r('app.string.MESSAGE_APP_NO_ACCOUNT_ERROR') } as Record<string, Resource>;
106 … return { 'msg': $r('app.string.MESSAGE_APP_GET_FILE_ASSET_ERROR') } as Record<string, Resource>;
110 … return { 'msg': $r('app.string.MESSAGE_NOT_AUTHORIZED_APPLICATION') } as Record<string, Resource>;
113 return { 'msg': $r('app.string.network_invalid') } as Record<string, Resource>;
118 return { 'msg': $r('app.string.File_cannot_be_opened') } as Record<string, Resource>;
120 return { 'msg': $r('app.string.File_damaged') } as Record<string, Resource>;
122 return { 'msg': $r('app.string.File_no_permission') } as Record<string, Resource>;
124 … return { 'msg': $r('app.string.This_File_is_Open_By_Other_App') } as Record<string, Resource>;
126 return { 'msg': $r('app.string.network_invalid') } as Record<string, Resource>;
[all …]
/applications/standard/camera/common/src/main/ets/default/worker/
DWorkerManager.ts38 // public postMessage(msg: any): void {
39 // Log.info(`${TAG} postMessage: ${JSON.stringify(msg)}`)
40 // WorkerManager.parentPort.postMessage(msg)
44 public postMessage(msg: ActionData): void {
45 Log.info(`${TAG} postMessage: ${JSON.stringify(msg)}`);
46 this.onMessage(msg);
DAsyncManager.ts64 public postMessage(msg: Message): void {
66 this.appEventBus.emit('MAIN_TO_WORKER', [msg]);
71 // public postMessage(msg: any): AsyncManager {
72 // this.mWorker.postMessage(msg)
77 public onMessage(msg: Message): void {
78 Log.info(`${TAG} onMessage uidata: ${JSON.stringify(msg.data)}`);
81 public onmessageerror(msg: Message): void {
85 public onerror(msg: Message): void {
89 public onexit(msg: Message): void {
/applications/standard/app_samples/code/Solutions/IM/Chat/features/chatlist/src/main/ets/viewmodel/
DMsgBase.ets58 …constructor(id: string, from: ChatContact, to: ChatContact, msg: MessageBody, type: number, time?:…
62 this.msgBody = msg;
83 constructor(msg: string | Resource) {
85 this.msg = msg;
88 msg: string | Resource
112 return this.msg + ' ' +
116 constructor(height: number, width: number, image: string | Resource, msg: string) {
121 this.msg = msg;
127 msg: string
/applications/standard/dlp_manager/entry/src/main/ets/OpenDlpFile/common/
DDlpFileOpenReport.ets27 const msg: Record<string, number | string | boolean> = {
47 return msg;
51 …const msg: Record<string, number | string | boolean> = DlpFileOpenReport.getCommonMsg(code, decryp…
52 ReportToBigDataUtil.report(BigDataConstants.DLP_FILE_OPEN_EVENT, msg);
56 …let msg: Record<string, number | string | boolean> = DlpFileOpenReport.getCommonMsg(code, decryptC…
57msg['REASON'] = busErr ? `errcode is ${busErr.code}, message is ${busErr.message}, data is ${busEr…
58 ReportToBigDataUtil.report(BigDataConstants.DLP_FILE_OPEN_EVENT, msg);
/applications/standard/app_samples/code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer/entry/src/main/js/MainAbility/model/
DKvStoreModel.js66 broadcastMessage(msg) { argument
67 logger.debug(TAG, `broadcastMessage ${msg}`)
71 self.put(msg, num)
87 setOnMessageReceivedListener(msg, callback) { argument
88 logger.debug(TAG, `setOnMessageReceivedListener ${msg}`)
95 if (data.insertEntries[i].key === msg) {
96 … logger.debug(TAG, `insertEntries receive ${msg}=${JSON.stringify(data.insertEntries[i].value)}`)
102 if (data.updateEntries[i].key === msg) {
103 … logger.debug(TAG, `updateEntries receive ${msg}=${JSON.stringify(data.updateEntries[i].value)}`)

123456789