add 注释

Signed-off-by: Y7000p <xcl@xuegao-tzx.top>
This commit is contained in:
2022-05-17 13:31:42 +08:00
parent cc59981cf5
commit a321fa2cc7
12 changed files with 665 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.window.service.WindowManager;
/**
* The type Main ability.
*/
public class MainAbility extends Ability {
@Override
public void onStart(Intent intent) {

View File

@@ -17,6 +17,9 @@ package com.xcl.search.test;
import ohos.aafwk.ability.AbilityPackage;
/**
* The type My application.
*/
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {

View File

@@ -20,6 +20,9 @@ import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.window.service.WindowManager;
/**
* The type Search demo ability.
*/
public class SearchDemoAbility extends Ability {
@Override
public void onStart(Intent intent) {

View File

@@ -23,6 +23,9 @@ import ohos.agp.components.Component;
import ohos.agp.window.service.WindowManager;
import ohos.utils.net.Uri;
/**
* The type Main ability slice.
*/
public class MainAbilitySlice extends AbilitySlice {
@Override
@@ -50,6 +53,11 @@ public class MainAbilitySlice extends AbilitySlice {
});
}
/**
* Route.
*
* @param route the route
*/
public void Route(String route) {
Intent intent1 = new Intent();
intent1.setParam("SEARCH_PD", route);

View File

@@ -33,6 +33,9 @@ import ohos.hiviewdfx.HiLogLabel;
import java.util.ArrayList;
import java.util.List;
/**
* The type Search demo ability slice.
*/
public class SearchDemoAbilitySlice extends AbilitySlice {
private static final HiLogLabel label = new HiLogLabel(HiLog.LOG_APP, 0x00234, "SearchDemoAbilitySlice");
private int PDD = -2;