mirror of
https://gitee.com/openharmony/applications_screenlock
synced 2024-11-23 06:19:47 +00:00
change some log
Signed-off-by: yangpeng85 <yangpeng85@huawei.com>
This commit is contained in:
parent
fa33ee7cc2
commit
944320b255
@ -109,7 +109,7 @@ export default class AccountsModel {
|
||||
}
|
||||
|
||||
private addAllUsers() {
|
||||
Log.showInfo(TAG, "start getAllUsers")
|
||||
Log.showDebug(TAG, "start getAllUsers")
|
||||
osAccount.getAccountManager().queryAllCreatedOsAccounts().then((list) => {
|
||||
Log.showDebug(TAG, "start sort")
|
||||
let accountList = [];
|
||||
@ -151,9 +151,8 @@ export default class AccountsModel {
|
||||
onUserSwitch(userId: number) {
|
||||
Log.showDebug(TAG, "onUserSwitch:" + userId)
|
||||
osAccount.getAccountManager().activateOsAccount(userId).then(() => {
|
||||
Log.showInfo(TAG, "activateOsAccount")
|
||||
Log.showInfo(TAG, "activateOsAccount : " + userId);
|
||||
})
|
||||
Log.showDebug(TAG, "onUserSwitch:" + userId + "finish")
|
||||
}
|
||||
|
||||
authUser(challenge, authType: AuthType, authLevel: number, callback) {
|
||||
@ -204,17 +203,17 @@ export default class AccountsModel {
|
||||
inputData.onSetData(passType, uint8PW);
|
||||
}
|
||||
})
|
||||
Log.showInfo(TAG, `registerInputer result:${result} `);
|
||||
Log.showInfo(TAG, `registerInputer result:${result}`);
|
||||
return result;
|
||||
}
|
||||
|
||||
unregisterInputer() {
|
||||
Log.showInfo(TAG, `unregisterInputer`);
|
||||
Log.showDebug(TAG, `unregisterInputer`);
|
||||
this.pinAuthManager.unregisterInputer();
|
||||
}
|
||||
|
||||
modelFinish() {
|
||||
Log.showInfo(TAG, "start modelFinish")
|
||||
Log.showDebug(TAG, "start modelFinish")
|
||||
}
|
||||
|
||||
isActivateAccount(callback: Callback<boolean>) {
|
||||
|
@ -40,12 +40,10 @@ export default class ScreenLockModel {
|
||||
default:
|
||||
Log.showError(TAG, `eventListener:typeName ${typeName}`)
|
||||
}
|
||||
|
||||
Log.showDebug(TAG, `eventListener:typeName ${typeName} finish`);
|
||||
}
|
||||
|
||||
eventCancelListener(typeName: string) {
|
||||
Log.showInfo(TAG, `eventCancleListener:typeName ${typeName}`);
|
||||
Log.showDebug(TAG, `eventCancleListener:typeName ${typeName}`);
|
||||
// As off has some problem and there is no case to cancel, do nothing
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ class ScreenlockStyle {
|
||||
private screenMode: LockStyleMode = LockStyleMode.SlideScreenLock
|
||||
|
||||
setMode(mode: LockStyleMode): number {
|
||||
Log.showInfo(TAG, `setMode:${mode}`);
|
||||
Log.showDebug(TAG, `setMode:${mode}`);
|
||||
return this.screenMode = mode
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ export default struct BatterySoc {
|
||||
@State batterySocText: string | Resource = ''
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.onBatterySocChanged('');
|
||||
}
|
||||
|
||||
|
@ -26,14 +26,14 @@ export default struct CustomPSD {
|
||||
@StorageLink('passwordArr') passwordArr: any[] = this.mViewModel.passwordArr
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.checkFreezingTime(() => {
|
||||
Log.showInfo(TAG, `onClick callback is called`)
|
||||
});
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
this.mViewModel.clearPassword()
|
||||
}
|
||||
|
||||
|
@ -26,14 +26,14 @@ export default struct DigitalPSD {
|
||||
@StorageLink('passwdMaskArr') passwdMaskArr: any[] = this.mViewModel.passwdMaskArr
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.checkFreezingTime(() => {
|
||||
Log.showInfo(TAG, `onClick callback is called`)
|
||||
});
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
this.mViewModel.clearPassword()
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ export default struct LockIcon {
|
||||
@State mViewModel: ViewModel = new ViewModel()
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.ViewModelInit()
|
||||
}
|
||||
|
||||
|
@ -24,14 +24,14 @@ export default struct MixedPSD {
|
||||
@State mViewModel: ViewModel = new ViewModel()
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.checkFreezingTime(() => {
|
||||
Log.showInfo(TAG, `onClick callback is called`)
|
||||
});
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
this.mViewModel.clearPassword()
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,11 @@ export default struct NumkeyBoard {
|
||||
@StorageLink('numKeyboard') numKeyboard: any[] = Constants.NUMKEY_BOARD;
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -42,7 +42,7 @@ export default struct statusBar {
|
||||
}
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
}
|
||||
|
||||
}
|
@ -34,7 +34,7 @@ export default class BaseViewModel {
|
||||
}
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, 'ViewModelInit');
|
||||
Log.showDebug(TAG, 'ViewModelInit');
|
||||
this.prompt = $r('app.string.input');
|
||||
}
|
||||
|
||||
@ -80,7 +80,6 @@ export default class BaseViewModel {
|
||||
this.updateStorage(callback)
|
||||
//notify the base service that the unlock is fail
|
||||
service.notifyScreenResult(UnlockResult.Fail);
|
||||
Log.showDebug(TAG, `changePrompt end`)
|
||||
}
|
||||
|
||||
getFreezingTimeNm(freezingMillisecond: number): string {
|
||||
|
@ -22,7 +22,7 @@ export default class BatterySocViewModel {
|
||||
mbatterySocStr= AppStorage.SetAndLink('batterySoc', 0);
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, 'ViewModelInit');
|
||||
Log.showDebug(TAG, 'ViewModelInit');
|
||||
let batteryValue: number = this.mbatterySocStr.get();
|
||||
if (batteryValue < 100) {
|
||||
this.batterySocStr = ""
|
||||
|
@ -29,7 +29,7 @@ export default class CustomPSDViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, 'ViewModelInit');
|
||||
Log.showDebug(TAG, 'ViewModelInit');
|
||||
super.ViewModelInit();
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ export default class DigitalPSDViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, 'ViewModelInit');
|
||||
Log.showDebug(TAG, 'ViewModelInit');
|
||||
this.passwdMaskArr = new Array(PW_LEN).fill($r('app.media.ic_hollow_dot'));
|
||||
super.ViewModelInit();
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ export default class LockIconViewModel {
|
||||
iconPath: any= {}
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, `ViewModelInit`);
|
||||
Log.showDebug(TAG, `ViewModelInit`);
|
||||
this.iconPath = $r('app.media.ic_public_lock_filled');
|
||||
this.cutMessage = $r('app.string.lock_prompt')
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ export default class MixedPSDViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, 'ViewModelInit');
|
||||
Log.showDebug(TAG, 'ViewModelInit');
|
||||
super.ViewModelInit();
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ export default struct Shortcut {
|
||||
private rebootLabel: Resource = $r("app.string.reboot")
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
@ -60,11 +60,11 @@ struct ShortcutComponent {
|
||||
private mClickEvent: Function
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(this.mTag, `aboutToAppear Start`)
|
||||
Log.showInfo(this.mTag, `aboutToAppear Start`)
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(this.mTag, `aboutToDisAppear`)
|
||||
Log.showInfo(this.mTag, `aboutToDisAppear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -36,7 +36,7 @@ struct SignalIcon {
|
||||
@State style: any = StyleConfiguration.getSignalComponentStyle()
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, 'aboutToAppear');
|
||||
Log.signalIcon(TAG, 'aboutToAppear');
|
||||
this.mStatusBarGroupComponentData = StatusBarVM.getStatusBarGroupComponentData(this.mGroupId)
|
||||
if (!this.signalObserved) {
|
||||
mSignalModel.initSignalModel();
|
||||
@ -45,7 +45,7 @@ struct SignalIcon {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, 'aboutToDisappear');
|
||||
Log.signalIcon(TAG, 'aboutToDisappear');
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -37,7 +37,7 @@ var mStateLink;
|
||||
|
||||
export class SignalModel {
|
||||
initSignalModel() {
|
||||
Log.showInfo(TAG, 'initSignalModel');
|
||||
Log.showDebug(TAG, 'initSignalModel');
|
||||
mLevelLink = AppStorage.SetAndLink("cellularLevel", Constants.CELLULAR_NO_SIM_CARD);
|
||||
mTypeLink = AppStorage.SetAndLink("cellularType", Constants.NETWORK_TYPE_UNKNOWN);
|
||||
mStateLink = AppStorage.SetAndLink("networkState", Constants.NET_NULL);
|
||||
@ -45,7 +45,7 @@ export class SignalModel {
|
||||
}
|
||||
|
||||
uninitSignalModel() {
|
||||
Log.showInfo(TAG, 'uninitSignalModel');
|
||||
Log.showDebug(TAG, 'uninitSignalModel');
|
||||
this.unInitObserver();
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ export class SignalModel {
|
||||
* init the observer of the cellular and signal
|
||||
*/
|
||||
initObserver() {
|
||||
Log.showInfo(TAG, 'initObserver');
|
||||
Log.showDebug(TAG, 'initObserver');
|
||||
isInitObserver = true;
|
||||
Observer.on('signalInfoChange', (signalInfoChange) => {
|
||||
Log.showInfo(TAG, 'signalInfoChange');
|
||||
@ -140,7 +140,7 @@ export class SignalModel {
|
||||
* Uninit the observer of the cellular and signal
|
||||
*/
|
||||
unInitObserver() {
|
||||
Log.showInfo(TAG, 'unInitObserver');
|
||||
Log.showDebug(TAG, 'unInitObserver');
|
||||
Observer.off('signalInfoChange');
|
||||
Observer.off('networkStateChange');
|
||||
Observer.off('simStateChange');
|
||||
|
@ -24,7 +24,7 @@ export default struct Wallpaper {
|
||||
@State mViewModel: ViewModel = new ViewModel()
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.ViewModelInit()
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ export default class WallpaperViewModel {
|
||||
screenlockWallpaper: string = ''
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, 'ViewModelInit');
|
||||
Log.showDebug(TAG, 'ViewModelInit');
|
||||
this.getScreenLockWallpaper()
|
||||
}
|
||||
|
||||
|
@ -34,13 +34,13 @@ export default struct WifiIcon {
|
||||
@State style: any = StyleConfiguration.getStartsBarWifiComponentStyle()
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mStatusBarGroupComponentData = StatusBarVM.getStatusBarGroupComponentData(this.mGroupId)
|
||||
mWifiModel.initWifiModel()
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -32,7 +32,7 @@ export class WifiModel {
|
||||
if (this.mIsStart) {
|
||||
return;
|
||||
}
|
||||
Log.showInfo(TAG, `initWifiModel`)
|
||||
Log.showDebug(TAG, `initWifiModel`)
|
||||
this.mIsStart = true;
|
||||
|
||||
mWifiInfo = AppStorage.SetAndLink("wifiInfo", Constants.DEFAULT_WIFI_INFO);
|
||||
@ -118,7 +118,7 @@ export class WifiModel {
|
||||
}
|
||||
|
||||
getLinkedInfo() {
|
||||
Log.showInfo(TAG, `getLinkedInfo`)
|
||||
Log.showDebug(TAG, `getLinkedInfo`)
|
||||
wifi.getLinkedInfo((err, data) => {
|
||||
if (wifi.isConnected()) {
|
||||
mWifiStatus.set(true);
|
||||
@ -140,13 +140,11 @@ export class WifiModel {
|
||||
}
|
||||
|
||||
enableWifi() {
|
||||
Log.showInfo(TAG, 'enableWifi');
|
||||
let result = wifi.enableWifi();
|
||||
Log.showInfo(TAG, `enableWifi, result: ${result}`);
|
||||
}
|
||||
|
||||
disableWifi() {
|
||||
Log.showInfo(TAG, 'disableWifi');
|
||||
let result = wifi.disableWifi();
|
||||
Log.showInfo(TAG, `disableWifi, result: ${result}`);
|
||||
}
|
||||
|
@ -20,6 +20,6 @@ const TAG = "ScreenLock-MainAbilityStage"
|
||||
|
||||
export default class MainAbilityStage extends AbilityStage {
|
||||
onCreate() {
|
||||
Log.showDebug(TAG, "onCreate")
|
||||
Log.showInfo(TAG, "onCreate")
|
||||
}
|
||||
}
|
@ -26,7 +26,7 @@ const TAG = "ScreenLock-ServiceExtAbility"
|
||||
|
||||
class ServiceExtAbility extends ServiceExtension {
|
||||
onCreate(want) {
|
||||
Log.showDebug(TAG, 'onCreate, want:' + want.abilityName);
|
||||
Log.showInfo(TAG, 'onCreate, want:' + want.abilityName);
|
||||
AbilityManager.setContext(AbilityManager.ABILITY_NAME_SCREEN_LOCK, this.context)
|
||||
sTimeManager.init(this.context)
|
||||
this.statusBarWindow()
|
||||
@ -34,7 +34,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
}
|
||||
|
||||
private createWindow(name: string) {
|
||||
Log.showInfo(TAG, `createWindow name:${name}`)
|
||||
Log.showDebug(TAG, `createWindow name:${name}`)
|
||||
windowManager.create(this.context, name, 2110).then((win) => {
|
||||
Log.showInfo(TAG, "before begin " + name + " window show!")
|
||||
win.loadContent("pages/index").then(() => {
|
||||
@ -48,7 +48,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
}
|
||||
|
||||
private async statusBarWindow() {
|
||||
Log.showInfo(TAG, `statusBarWindow`);
|
||||
Log.showDebug(TAG, `statusBarWindow`);
|
||||
let dis = await display.getDefaultDisplay();
|
||||
while (dis === null) {
|
||||
await new Promise((resolve)=>{setTimeout(resolve, 1000)});
|
||||
@ -79,7 +79,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
Log.showDebug(TAG, 'api8New onDestroy');
|
||||
Log.showInfo(TAG, 'api8New onDestroy');
|
||||
sTimeManager.release()
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ export default struct CustomPassword {
|
||||
@State mHeightPx: number = 44
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
setAppBgColor('#00000000')
|
||||
CommonStyleManager.setAbilityPageName(TAG)
|
||||
let configInfo = AbilityManager.getAbilityData(AbilityManager.ABILITY_NAME_STATUS_BAR, 'rect')
|
||||
@ -38,7 +38,7 @@ export default struct CustomPassword {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -25,11 +25,11 @@ export default struct CustomScreenlock {
|
||||
}
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear Start`)
|
||||
Log.showInfo(TAG, `aboutToAppear Start`)
|
||||
|
||||
}
|
||||
|
||||
onDisappear() {
|
||||
Log.showDebug(TAG, `onDisappear Start`)
|
||||
Log.showInfo(TAG, `onDisappear Start`)
|
||||
}
|
||||
}
|
@ -29,7 +29,7 @@ export default struct DigitalPassword {
|
||||
@State mHeightPx: number = 44
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
setAppBgColor('#00000000')
|
||||
CommonStyleManager.setAbilityPageName(TAG)
|
||||
let configInfo = AbilityManager.getAbilityData(AbilityManager.ABILITY_NAME_STATUS_BAR, 'rect')
|
||||
@ -38,7 +38,7 @@ export default struct DigitalPassword {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -35,7 +35,7 @@ struct Index {
|
||||
@State mHeightPx: number = 0
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
try {
|
||||
setAppBgColor('#00000000')
|
||||
} catch (error) {
|
||||
@ -51,19 +51,19 @@ struct Index {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisAppear`)
|
||||
Log.showInfo(TAG, `aboutToDisAppear`)
|
||||
this.pageStatus = Constants.STATUS_ABOUT_TO_DISAPPEAR
|
||||
this.mViewModel.ViewModelDestroy()
|
||||
}
|
||||
|
||||
onPageShow() {
|
||||
Log.showDebug(TAG, `onPageShow`)
|
||||
Log.showInfo(TAG, `onPageShow`)
|
||||
this.pageStatus = Constants.STATUS_ON_PAGE_SHOW
|
||||
this.mViewModel.onPageShow();
|
||||
}
|
||||
|
||||
onPageHide() {
|
||||
Log.showDebugTAG, `onPageHide`)
|
||||
Log.showInfo(TAG, `onPageHide`)
|
||||
this.pageStatus = Constants.STATUS_ON_PAGE_HIDE
|
||||
}
|
||||
|
||||
|
@ -25,11 +25,11 @@ export default struct JournalScreenlock {
|
||||
}
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear Start`)
|
||||
Log.showInfo(TAG, `aboutToAppear Start`)
|
||||
|
||||
}
|
||||
|
||||
onDisappear() {
|
||||
Log.showDebug(TAG, `onDisappear Start`)
|
||||
Log.showInfo(TAG, `onDisappear Start`)
|
||||
}
|
||||
}
|
@ -29,7 +29,7 @@ export default struct MixedPassword {
|
||||
@State mHeightPx: number = 44
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
setAppBgColor('#00000000')
|
||||
CommonStyleManager.setAbilityPageName(TAG)
|
||||
let configInfo = AbilityManager.getAbilityData(AbilityManager.ABILITY_NAME_STATUS_BAR, 'rect')
|
||||
@ -38,7 +38,7 @@ export default struct MixedPassword {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -36,7 +36,7 @@ export default struct SlideScreenlock {
|
||||
private mHeightPx : number = 44
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.ViewModelInit()
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ export default class IndexViewModel {
|
||||
}
|
||||
|
||||
onPageShow() {
|
||||
Log.showDebug(TAG, `onPageShow`)
|
||||
Log.showInfo(TAG, `onPageShow`)
|
||||
ScreenLockService.notifyDrawDone();
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ export default class SlideScreenLockViewModel {
|
||||
toggleShow: boolean = false
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, `ViewModelInit`);
|
||||
Log.showDebug(TAG, `ViewModelInit`);
|
||||
ScreenLockService.setUnlockAnimation((callback: Callback<void>) => {
|
||||
this.elementAlpha = 0
|
||||
this.elementScale = 0.85
|
||||
|
@ -20,6 +20,6 @@ const TAG = "ScreenLock-MainAbilityStage"
|
||||
|
||||
export default class MainAbilityStage extends AbilityStage {
|
||||
onCreate() {
|
||||
Log.showDebug(TAG, "onCreate")
|
||||
Log.showInfo(TAG, "onCreate")
|
||||
}
|
||||
}
|
@ -25,7 +25,7 @@ const TAG = "ScreenLock-ServiceExtAbility"
|
||||
|
||||
class ServiceExtAbility extends ServiceExtension {
|
||||
onCreate(want) {
|
||||
Log.showDebug(TAG, 'onCreate, want:' + want.abilityName);
|
||||
Log.showInfo(TAG, 'onCreate, want:' + want.abilityName);
|
||||
AbilityManager.setContext(AbilityManager.ABILITY_NAME_SCREEN_LOCK, this.context)
|
||||
sTimeManager.init(this.context)
|
||||
this.statusBarWindow()
|
||||
@ -33,7 +33,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
}
|
||||
|
||||
private createWindow(name: string) {
|
||||
Log.showInfo(TAG, `createWindow name:${name}`)
|
||||
Log.showDebug(TAG, `createWindow name:${name}`)
|
||||
windowManager.create(this.context, name, 2110).then((win) => {
|
||||
win.loadContent("pages/index").then(() => {
|
||||
Log.showInfo(TAG, name + " window loadContent in then! ")
|
||||
@ -74,7 +74,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
Log.showDebug(TAG, 'api8New onDestroy');
|
||||
Log.showInfo(TAG, 'api8New onDestroy');
|
||||
sTimeManager.release()
|
||||
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ export default struct CustomPassword {
|
||||
@State mHeightPx: number = 48
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
setAppBgColor('#00000000')
|
||||
CommonStyleManager.setAbilityPageName(TAG)
|
||||
let configInfo = AbilityManager.getAbilityData(AbilityManager.ABILITY_NAME_STATUS_BAR, 'rect')
|
||||
@ -39,7 +39,7 @@ export default struct CustomPassword {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -25,11 +25,11 @@ export default struct CustomScreenlock {
|
||||
}
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear Start`)
|
||||
Log.showInfo(TAG, `aboutToAppear Start`)
|
||||
|
||||
}
|
||||
|
||||
onDisappear() {
|
||||
Log.showDebug(TAG, `onDisappear Start`)
|
||||
Log.showInfo(TAG, `onDisappear Start`)
|
||||
}
|
||||
}
|
@ -29,7 +29,7 @@ export default struct DigitalPassword {
|
||||
@State mHeightPx: number = 48
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
setAppBgColor('#00000000')
|
||||
CommonStyleManager.setAbilityPageName(TAG)
|
||||
let configInfo = AbilityManager.getAbilityData(AbilityManager.ABILITY_NAME_STATUS_BAR, 'rect')
|
||||
@ -39,7 +39,7 @@ export default struct DigitalPassword {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -35,7 +35,7 @@ struct Index {
|
||||
@State mHeightPx: number = 48
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.ViewModelInit()
|
||||
this.pageStatus = Constants.STATUS_ABOUT_TO_APPEAR
|
||||
try {
|
||||
@ -52,19 +52,19 @@ struct Index {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisAppear`)
|
||||
Log.showInfo(TAG, `aboutToDisAppear`)
|
||||
this.pageStatus = Constants.STATUS_ABOUT_TO_DISAPPEAR
|
||||
this.mViewModel.ViewModelDestroy()
|
||||
}
|
||||
|
||||
onPageShow() {
|
||||
Log.showDebug(TAG, `onPageShow`)
|
||||
Log.showInfo(TAG, `onPageShow`)
|
||||
this.pageStatus = Constants.STATUS_ON_PAGE_SHOW
|
||||
this.mViewModel.onPageShow();
|
||||
}
|
||||
|
||||
onPageHide() {
|
||||
Log.showDebug(TAG, `onPageHide`)
|
||||
Log.showInfo(TAG, `onPageHide`)
|
||||
this.pageStatus = Constants.STATUS_ON_PAGE_HIDE
|
||||
}
|
||||
|
||||
|
@ -25,11 +25,11 @@ export default struct JournalScreenlock {
|
||||
}
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear Start`)
|
||||
Log.showInfo(TAG, `aboutToAppear Start`)
|
||||
|
||||
}
|
||||
|
||||
onDisappear() {
|
||||
Log.showDebug(TAG, `onDisappear Start`)
|
||||
Log.showInfo(TAG, `onDisappear Start`)
|
||||
}
|
||||
}
|
@ -29,7 +29,7 @@ export default struct MixedPassword {
|
||||
@State mHeightPx: number = 48
|
||||
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
setAppBgColor('#00000000')
|
||||
CommonStyleManager.setAbilityPageName(TAG)
|
||||
let configInfo = AbilityManager.getAbilityData(AbilityManager.ABILITY_NAME_STATUS_BAR, 'rect')
|
||||
@ -39,7 +39,7 @@ export default struct MixedPassword {
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
Log.showDebug(TAG, `aboutToDisappear`)
|
||||
Log.showInfo(TAG, `aboutToDisappear`)
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -33,7 +33,7 @@ export default struct SlideScreenlock {
|
||||
@StorageLink('deviceStatus') @Watch('onDeviceStatusChange') deviceStatus: string = ""
|
||||
private mHeightPx : number = 48
|
||||
aboutToAppear() {
|
||||
Log.showDebug(TAG, `aboutToAppear`)
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
this.mViewModel.ViewModelInit()
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ export default class IndexViewModel {
|
||||
ViewModelInit(): void{
|
||||
this.serviceInit();
|
||||
this.mode = this.getMode();
|
||||
Log.showInfo(TAG, `ViewModelInit this.mode=${this.mode}`);
|
||||
Log.showDebug(TAG, `ViewModelInit this.mode=${this.mode}`);
|
||||
}
|
||||
|
||||
serviceInit() {
|
||||
@ -37,12 +37,12 @@ export default class IndexViewModel {
|
||||
}
|
||||
|
||||
onPageShow() {
|
||||
Log.showDebug(TAG, `onPageShow`)
|
||||
Log.showInfo(TAG, `onPageShow`)
|
||||
ScreenLockService.notifyDrawDone();
|
||||
}
|
||||
|
||||
ViewModelDestroy() {
|
||||
Log.showInfo(TAG, 'ViewModelDestroy');
|
||||
Log.showDebug(TAG, 'ViewModelDestroy');
|
||||
ScreenLockService.destroy()
|
||||
}
|
||||
}
|
@ -38,7 +38,7 @@ export default class SlideScreenLockViewModel {
|
||||
toggleShow: boolean = false
|
||||
|
||||
ViewModelInit(): void{
|
||||
Log.showInfo(TAG, `ViewModelInit`);
|
||||
Log.showDebug(TAG, `ViewModelInit`);
|
||||
ScreenLockService.setUnlockAnimation((callback: Callback<void>) => {
|
||||
this.elementAlpha = 0
|
||||
this.elementScale = 0.85
|
||||
|
Loading…
Reference in New Issue
Block a user