huhao@jgai.com 2 週間 前
コミット
5741aa5091
100 ファイル変更0 行追加3411 行削除
  1. 0 23
      common/.preview/default/intermediates/merge_profile/default/module.json
  2. 0 1
      product/phone/.preview/PreviewBuildParam.json
  3. BIN
      product/phone/.preview/cache/.default/.default/compiler.cache.msgpack
  4. 0 1
      product/phone/.preview/cache/.default/.default/watch_logs.cache.json
  5. 0 346
      product/phone/.preview/cache/.default/ResourceTable.txt
  6. BIN
      product/phone/.preview/cache/.default/common/component.protoBin
  7. 0 1
      product/phone/.preview/cache/.default/common/component.ts
  8. BIN
      product/phone/.preview/cache/.default/common/index.protoBin
  9. 0 29
      product/phone/.preview/cache/.default/common/index.ts
  10. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/animation/remoteanimation/WindowAnimationControllerImpl.protoBin
  11. 0 72
      product/phone/.preview/cache/.default/common/src/main/ets/default/animation/remoteanimation/WindowAnimationControllerImpl.ts
  12. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseCloseAppHandler.protoBin
  13. 0 47
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseCloseAppHandler.ts
  14. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseDragHandler.protoBin
  15. 0 108
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseDragHandler.ts
  16. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseModulePreLoader.protoBin
  17. 0 39
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseModulePreLoader.ts
  18. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseRemoteAnimationHandler.protoBin
  19. 0 54
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseRemoteAnimationHandler.ts
  20. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStage.protoBin
  21. 0 32
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStage.ts
  22. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStartAppHandler.protoBin
  23. 0 35
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStartAppHandler.ts
  24. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseViewModel.protoBin
  25. 0 111
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseViewModel.ts
  26. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/index.protoBin
  27. 0 20
      product/phone/.preview/cache/.default/common/src/main/ets/default/base/index.ts
  28. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/AppItemInfo.protoBin
  29. 0 80
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/AppItemInfo.ts
  30. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BadgeItemInfo.protoBin
  31. 0 39
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BadgeItemInfo.ts
  32. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BaseColumns.protoBin
  33. 0 20
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BaseColumns.ts
  34. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/CardItemInfo.protoBin
  35. 0 74
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/CardItemInfo.ts
  36. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DesktopApplicationColumns.protoBin
  37. 0 34
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DesktopApplicationColumns.ts
  38. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DockItemInfo.protoBin
  39. 0 32
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DockItemInfo.ts
  40. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/FolderItemInfo.protoBin
  41. 0 31
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/FolderItemInfo.ts
  42. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutInfoColumns.protoBin
  43. 0 29
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutInfoColumns.ts
  44. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemBuilder.protoBin
  45. 0 231
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemBuilder.ts
  46. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemInfo.protoBin
  47. 0 103
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemInfo.ts
  48. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/LauncherDragItemInfo.protoBin
  49. 0 43
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/LauncherDragItemInfo.ts
  50. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MenuInfo.protoBin
  51. 0 56
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MenuInfo.ts
  52. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MissionInfo.protoBin
  53. 0 35
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MissionInfo.ts
  54. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentBundleMissionInfo.protoBin
  55. 0 22
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentBundleMissionInfo.ts
  56. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentMissionInfo.protoBin
  57. 0 55
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentMissionInfo.ts
  58. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemInfo.protoBin
  59. 0 26
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemInfo.ts
  60. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemOption.protoBin
  61. 0 31
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemOption.ts
  62. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SnapShotInfo.protoBin
  63. 0 35
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SnapShotInfo.ts
  64. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/index.protoBin
  65. 0 25
      product/phone/.preview/cache/.default/common/src/main/ets/default/bean/index.ts
  66. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/AppResourceCacheManager.protoBin
  67. 0 107
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/AppResourceCacheManager.ts
  68. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/DiskLruCache.protoBin
  69. 0 83
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/DiskLruCache.ts
  70. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/FormListInfoCacheManager.protoBin
  71. 0 66
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/FormListInfoCacheManager.ts
  72. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/LruCache.protoBin
  73. 0 75
      product/phone/.preview/cache/.default/common/src/main/ets/default/cache/LruCache.ts
  74. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/DefaultLayoutConfig.protoBin
  75. 0 32
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/DefaultLayoutConfig.ts
  76. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FolderLayoutInfo.protoBin
  77. 0 42
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FolderLayoutInfo.ts
  78. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FormLayoutInfo.protoBin
  79. 0 50
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FormLayoutInfo.ts
  80. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/GridLayoutConfigs.protoBin
  81. 0 86
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/GridLayoutConfigs.ts
  82. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/RdbStoreConfig.protoBin
  83. 0 116
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/RdbStoreConfig.ts
  84. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SettingItemsConfig.protoBin
  85. 0 143
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SettingItemsConfig.ts
  86. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SystemApplication.protoBin
  87. 0 18
      product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SystemApplication.ts
  88. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/CommonConstants.protoBin
  89. 0 243
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/CommonConstants.ts
  90. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/EventConstants.protoBin
  91. 0 49
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/EventConstants.ts
  92. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/FormConstants.protoBin
  93. 0 29
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/FormConstants.ts
  94. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/NumberConstants.protoBin
  95. 0 69
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/NumberConstants.ts
  96. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/PresetStyleConstants.protoBin
  97. 0 236
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/PresetStyleConstants.ts
  98. BIN
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/RemoteConstants.protoBin
  99. 0 47
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/RemoteConstants.ts
  100. 0 0
      product/phone/.preview/cache/.default/common/src/main/ets/default/constants/StyleConstants.protoBin

+ 0 - 23
common/.preview/default/intermediates/merge_profile/default/module.json

@@ -1,23 +0,0 @@
-{
-	"app": {
-		"bundleName": "com.ohos.launcher",
-		"debug": true,
-		"versionCode": 1000000,
-		"versionName": "1.0.0",
-		"minAPIVersion": 10,
-		"targetAPIVersion": 10,
-		"apiReleaseType": "Release",
-		"compileSdkVersion": "4.0.10.19",
-		"compileSdkType": "OpenHarmony",
-		"bundleType": "app"
-	},
-	"module": {
-		"name": "launcher_common",
-		"type": "har",
-		"deviceTypes": [
-			"default",
-			"tablet"
-		],
-		"installationFree": false
-	}
-}

ファイルの差分が大きいため隠しています
+ 0 - 1
product/phone/.preview/PreviewBuildParam.json


BIN
product/phone/.preview/cache/.default/.default/compiler.cache.msgpack


+ 0 - 1
product/phone/.preview/cache/.default/.default/watch_logs.cache.json

@@ -1 +0,0 @@
-[]

+ 0 - 346
product/phone/.preview/cache/.default/ResourceTable.txt

@@ -1,346 +0,0 @@
-string No_running_apps_recently 0x0d00007a
-string add 0x0d00007b
-string add_blank_page 0x0d00007c
-string add_form_to_desktop 0x0d00007d
-string add_form_to_desktop_more 0x0d00007e
-string add_to 0x0d00007f
-string add_to_desktop 0x0d000080
-string app_center_menu_add_desktop 0x0d000081
-string app_center_menu_add_dock 0x0d000082
-string app_center_menu_uninstall 0x0d000083
-string app_menu_open 0x0d000084
-string app_name 0x0d000000
-string cancel 0x0d000085
-string cancel_dialog 0x0d000086
-string confirm_dialog 0x0d000087
-string delete_app 0x0d000088
-string delete_blank_page 0x0d000089
-string delete_form 0x0d00008a
-string description_serviceextability 0x0d00013d
-string disable_add_to_delete 0x0d00008b
-string disable_add_to_dock 0x0d00008c
-string disable_to_move 0x0d00008d
-string disable_uninstall 0x0d00008e
-string display_full_parent 0x0d000140
-string duplicate_add 0x0d00008f
-string entry_MainAbility 0x0d000090
-string form 0x0d000091
-string form_center 0x0d000092
-string form_edit 0x0d000093
-string gesture_navigation_options 0x0d000094
-string gesturenavigation_ServiceExtAbility 0x0d00013e
-string into_settings 0x0d000095
-string isUninstall 0x0d000096
-string is_delete_form 0x0d000097
-string launcher_edit 0x0d000098
-string launcher_layout 0x0d000099
-string layout 0x0d00009a
-string layout_style 0x0d00009b
-string layoutmanager_MainAbility 0x0d00013c
-string mainability_description 0x0d00009c
-string new_folder_name 0x0d00009d
-string no_space_for_add 0x0d00009e
-string page_show 0x0d000148
-string recent_tasks_setting 0x0d00009f
-string remove_app_from_folder 0x0d0000a0
-string remove_form_dialog_content 0x0d0000a1
-string rename_folder 0x0d0000a2
-string submit 0x0d0000a3
-string uninstall 0x0d0000a4
-string uninstall_failed 0x0d0000a5
-string uninstall_success 0x0d0000a6
-color 000000 0x0d00004d
-color 007AFF 0x0d00004e
-color 0A84FF 0x0d00004f
-color 1050FF 0x0d000050
-color 10FFFFFF 0x0d000051
-color 191919 0x0d000052
-color 2064BB5C 0x0d00014d
-color 20FFD60A 0x0d00014e
-color 20FFFFFF 0x0d000053
-color 2A2A2A 0x0d00014f
-color 30D158 0x0d000054
-color 30FFFFFF 0x0d000055
-color 333333 0x0d000056
-color 40FFFFFF 0x0d000150
-color 60000000 0x0d000057
-color 60FFFFFF 0x0d000058
-color 64BB5C 0x0d000151
-color 73C3FF 0x0d000059
-color 90000000 0x0d00005a
-color 90FFFFFF 0x0d00005b
-color 99000000 0x0d00005c
-color E5E5E5 0x0d00005d
-color FF453A 0x0d00005e
-color FF9F0A 0x0d00005f
-color FFD60A 0x0d000152
-color FFFFFF 0x0d000060
-color default_dialog_background 0x0d000141
-color menu_background_color_dark 0x0d000142
-color menu_background_color_light 0x0d000143
-color menu_divider_color_dark 0x0d000144
-color menu_divider_color_light 0x0d000145
-color menu_text_color_dark 0x0d000146
-color menu_text_color_light 0x0d000147
-color start_window_background 0x0d000061
-float color 0x0d000149
-float fontFamily 0x0d00014a
-float fontSize 0x0d00014b
-float fontSize_10 0x0d0000cf
-float fontSize_12 0x0d0000d0
-float fontSize_14 0x0d0000d1
-float fontSize_15_2 0x0d0000d2
-float fontSize_19_2 0x0d0000d3
-float fontSize_28 0x0d0000d4
-float fontSize_38 0x0d0000d5
-float fontSize_4_8 0x0d0000d6
-float fontSize_6 0x0d0000d7
-float fontSize_6_4 0x0d0000d8
-float fontSize_7 0x0d0000d9
-float fontSize_8 0x0d0000da
-float fontSize_9_6 0x0d0000db
-float fontWeight 0x0d00014c
-float menu_border_radius 0x0d00013f
-float virtualSize_11_6 0x0d000153
-float virtualSize_120 0x0d000154
-float virtualSize_152 0x0d000155
-float virtualSize_16_8 0x0d00000c
-float virtualSize_19_2 0x0d00000d
-float virtualSize_2 0x0d000156
-float virtualSize_20 0x0d00000e
-float virtualSize_36 0x0d00000f
-float virtualSize_40 0x0d000157
-float virtualSize_42 0x0d000158
-float virtualSize_48 0x0d000010
-float virtualSize_4_8 0x0d000011
-float virtualSize_58 0x0d000012
-float virtualSize_60 0x0d000013
-float virtualSize_6_4 0x0d000014
-float virtualSize_7_2 0x0d000015
-float virtualSize_9_6 0x0d000016
-media AGV 0x0d0000cb
-media D_W_inside 0x0d0000af
-media D_W_outside 0x0d000003
-media add 0x0d00012e
-media add_disabled 0x0d0000ca
-media app_icon 0x0d000001
-media application_ai 0x0d00001c
-media application_auto_test 0x0d0000b1
-media application_digital_gateway 0x0d0000aa
-media application_intelligent_warehouse 0x0d000027
-media application_organization_permission 0x0d00006c
-media application_plan_produce_schedule 0x0d00012b
-media application_produce_execute 0x0d00003f
-media application_production_report 0x0d00003e
-media application_quality_management 0x0d000136
-media application_technology_management 0x0d00004a
-media arrow_left_bottom 0x0d000036
-media arrow_left_top 0x0d0000ba
-media arrow_right_bottom 0x0d00002d
-media arrow_right_top 0x0d000029
-media back_origin 0x0d000068
-media back_white 0x0d0000f3
-media battery_level 0x0d0000ef
-media blue_button_left 0x0d000039
-media blue_button_right 0x0d000040
-media box_edit 0x0d0000f9
-media car_bottom 0x0d0000b3
-media car_preview 0x0d0000c9
-media car_top 0x0d0000ed
-media check_self 0x0d000009
-media chelunzhidi 0x0d00011e
-media chelunzhiding 0x0d0000c0
-media chelunzhizhong 0x0d000134
-media chengkongdianyuan 0x0d000111
-media circular_return 0x0d000007
-media close 0x0d0000dc
-media close_door 0x0d000139
-media close_down 0x0d00001d
-media close_zhuajia 0x0d000070
-media collect_completed 0x0d0000fc
-media coordinate 0x0d00011f
-media coordinate_edit 0x0d000046
-media daohangchelun 0x0d0000eb
-media daohangzongkong 0x0d00003d
-media device_anti_static_monitoring 0x0d0000f1
-media device_anti_static_wrist_strap 0x0d00003a
-media device_barcode_scanner_gun 0x0d0000b9
-media device_buzzer_off 0x0d0000de
-media device_buzzer_open 0x0d0000ea
-media device_card_reader 0x0d0000e7
-media device_controller 0x0d000073
-media device_electric_screwdriver 0x0d000110
-media device_electric_soldering_iron 0x0d00011b
-media device_high_low_temp_test_box 0x0d000107
-media device_lighting 0x0d000135
-media device_log 0x0d0000e1
-media device_multimedia_acquisition 0x0d000138
-media device_shutdown 0x0d0000a8
-media device_submission 0x0d0000c6
-media device_temp_cycling_test_chamber 0x0d000159
-media device_three_color_light 0x0d00012c
-media device_weld_fume_extractor 0x0d000022
-media diandongluosidao 0x0d00010c
-media dianlanbihe 0x0d000076
-media dianlanjiting 0x0d0000ae
-media dianlanzhangkai 0x0d0000bd
-media diannengbiao 0x0d0000b5
-media drawer_inside 0x0d00010a
-media drawer_outside 0x0d0000fa
-media dukaqi 0x0d000047
-media electrical_machinery_off 0x0d000031
-media electrical_machinery_on 0x0d000078
-media finish_work 0x0d000028
-media general_add 0x0d000071
-media general_return 0x0d0000c5
-media gray_button_left 0x0d000024
-media gray_button_right 0x0d000133
-media hanging_basket 0x0d000100
-media hanging_basket_down 0x0d000008
-media hanging_basket_up 0x0d0000e4
-media home_bg_electronic_report 0x0d000118
-media home_bg_intellectual_storage 0x0d00002f
-media home_bg_on_the_job_staff 0x0d000032
-media home_bg_order_schedule 0x0d00000b
-media home_bg_process_management 0x0d000019
-media home_bg_process_task 0x0d0000be
-media home_bg_quality_management 0x0d00013b
-media home_bg_temp_and_humidity 0x0d000130
-media home_bg_work_order_issuance 0x0d000030
-media home_bg_workstation_device 0x0d0000cd
-media home_edit 0x0d000113
-media home_temp_and_humidity 0x0d000043
-media huajing_home 0x0d000109
-media huajing_icon 0x0d00013a
-media huajing_logo 0x0d000125
-media ic_public_arrow_left 0x0d0000b0
-media ic_public_arrow_right 0x0d0000f0
-media ic_public_cancel 0x0d0000e3
-media icon 0x0d00010d
-media img_app_default 0x0d000035
-media in_out_port 0x0d0000c1
-media in_station 0x0d00010f
-media indirection 0x0d000108
-media inout 0x0d0000f4
-media isright 0x0d000017
-media jiaobiao 0x0d000122
-media materialBox 0x0d000044
-media material_box_center_off 0x0d00006e
-media material_box_center_on 0x0d0000f2
-media material_box_left_bottom 0x0d000104
-media material_box_left_top 0x0d00000a
-media material_box_right_bottom 0x0d000131
-media material_box_right_top 0x0d000041
-media material_completed 0x0d000114
-media mechanical_arm 0x0d0000ec
-media menu_robot 0x0d000042
-media morentu 0x0d0000ff
-media multimeter 0x0d000034
-media navbar_application 0x0d000101
-media navbar_application1 0x0d000102
-media navbar_device 0x0d000126
-media navbar_device1 0x0d000137
-media navbar_home_page 0x0d0000b7
-media navbar_home_page1 0x0d0000b2
-media navbar_work_benche 0x0d0000b8
-media navbar_work_benche1 0x0d0000f8
-media navbar_workshop 0x0d0000ad
-media navbar_workshop1 0x0d000065
-media no_boxes 0x0d00006b
-media no_material_box 0x0d000128
-media normal_box 0x0d000105
-media normal_icon 0x0d00010b
-media normal_material_box 0x0d0000fd
-media notice 0x0d0000e8
-media open_close_door 0x0d000066
-media open_door 0x0d000117
-media open_up 0x0d0000f5
-media open_zhuajia 0x0d000112
-media out_station 0x0d0000bb
-media outdirection 0x0d00001a
-media overweight_box 0x0d000075
-media overweight_material_box 0x0d00006d
-media pass_road 0x0d000079
-media pass_wall 0x0d00003b
-media plus 0x0d00006a
-media push_down 0x0d00003c
-media push_right 0x0d000023
-media push_up 0x0d000045
-media put_on 0x0d00011c
-media qr_code 0x0d00012f
-media receive_down 0x0d0000c7
-media receive_left 0x0d0000b4
-media receive_up 0x0d000067
-media reduce 0x0d0000dd
-media restart 0x0d0000ab
-media retrieve_grid 0x0d000025
-media return 0x0d000123
-media robot 0x0d000026
-media robot_arm 0x0d000062
-media robot_auto_mode 0x0d00012d
-media robot_battery 0x0d0000f6
-media robot_charge_connect 0x0d000049
-media robot_charge_disconnect 0x0d0000c3
-media robot_clean 0x0d000116
-media robot_list 0x0d0000bf
-media robot_move 0x0d000004
-media robot_top 0x0d0000e6
-media robot_toward_1 0x0d00002c
-media robot_toward_2 0x0d000077
-media robot_toward_3 0x0d000115
-media robot_toward_4 0x0d0000fe
-media sansedeng 0x0d000033
-media saomaqiang 0x0d000038
-media search 0x0d0000ac
-media search_state 0x0d0000c2
-media shaoma 0x0d0000b6
-media shukongdian 0x0d000064
-media shutdown 0x0d00001b
-media single_move 0x0d00001e
-media startIcon 0x0d00011a
-media start_work 0x0d000002
-media state_ai 0x0d00001f
-media state_ipc 0x0d000120
-media state_microphone 0x0d00002b
-media state_user 0x0d000127
-media state_voice 0x0d0000e2
-media stop 0x0d0000f7
-media storage 0x0d00002a
-media storage_space 0x0d000069
-media storage_space_disable 0x0d0000e9
-media storage_space_no_type 0x0d000103
-media storage_space_select 0x0d000005
-media subscript 0x0d0000ee
-media subscript_space 0x0d000006
-media subtract 0x0d000132
-media subtract_disabled 0x0d000121
-media transfer_grid 0x0d000018
-media translate 0x0d00010e
-media weiyijiting 0x0d0000ce
-media weiyix 0x0d0000e5
-media weiyixx 0x0d00002e
-media weiyiy 0x0d000119
-media weiyiyy 0x0d000129
-media weiyizhongzhi 0x0d000074
-media workbench_audit 0x0d0000cc
-media workbench_kitting_complete_notice 0x0d0000c8
-media workbench_kitting_task_notice 0x0d0000c4
-media workbench_mail 0x0d000037
-media workbench_message 0x0d00011d
-media workbench_offline_audit 0x0d0000e0
-media workbench_outsourced_audit 0x0d000063
-media workbench_report_fault_audit 0x0d00004b
-media workbench_task 0x0d00012a
-media workshop_access_control 0x0d000048
-media workshop_background_image 0x0d00004c
-media workshop_device_offline 0x0d000020
-media workshop_device_online 0x0d000072
-media workshop_power_consumption 0x0d00006f
-media workshop_refrigerate 0x0d0000a9
-media workshop_shutdown 0x0d000106
-media workshop_start_work 0x0d0000a7
-media zhaomingdeng 0x0d0000df
-media zhihuigc 0x0d0000bc
-media zongkongtiaoshi 0x0d0000fb
-media zongkongzidong 0x0d000124
-profile main_pages 0x0d000021

BIN
product/phone/.preview/cache/.default/common/component.protoBin


+ 0 - 1
product/phone/.preview/cache/.default/common/component.ts

@@ -1 +0,0 @@
-export { AppGrid, AppName, AppIcon, AppMenu, AppBubble, ScrollerComponent, RemoveFormDialog, UninstallDialog, FolderComponent, FormManagerDialog, FormItemComponent, RemoteWindowWrapper } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/uicomponents/index";

BIN
product/phone/.preview/cache/.default/common/index.protoBin


+ 0 - 29
product/phone/.preview/cache/.default/common/index.ts

@@ -1,29 +0,0 @@
-/**
- * Copyright (c) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-export { Log, Trace, PinyinSort, CheckEmptyUtils, ObjectCopyUtil } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/index";
-export { BaseStage, BaseDragHandler, BaseViewModel, BaseModulePreLoader, BaseCloseAppHandler, BaseStartAppHandler } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/index";
-export { MenuInfo, MissionInfo, AppItemInfo, DockItemInfo, CardItemInfo, LauncherDragItemInfo, FolderItemInfo, SnapShotInfo, SettingItemInfo, RecentMissionInfo, RecentBundleMissionInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/index";
-export { EventConstants, FormConstants, StyleConstants, CommonConstants, PresetStyleConstants, NumberConstants } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/constants/index";
-export { FormManager, BadgeManager, windowManager, RdbStoreManager, ResourceManager, localEventManager, amsMissionManager, InputMethodManager, settingsDataManager, launcherAbilityManager, navigationBarCommonEventManager, CloseAppManager } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/manager/index";
-export { FolderData } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/interface/index";
-export type { DragArea, DragItemPosition, GridLayoutInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/interface/index";
-export { AppModel, FormModel, SettingsModel, PageDesktopModel, RecentMissionsModel, AtomicServiceAppModel } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/model/index";
-export type { SettingsModelObserver } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/model/index";
-export { layoutConfigManager, ILayoutConfig, FormLayoutConfig, FolderLayoutConfig, AppListStyleConfig, AppGridStyleConfig, RecentsModeConfig, PageDesktopModeConfig, PageDesktopLayoutConfig, PageDesktopAppModeConfig, LauncherLayoutStyleConfig } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/layoutconfig/index";
-export { FormListInfoCacheManager } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/cache/FormListInfoCacheManager";
-export { LayoutViewModel } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/viewmodel/LayoutViewModel";
-export { SettingItemsConfig } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/configs/SettingItemsConfig";
-export { SettingItemsManager } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/settings/SettingItemsManager";
-export type { SettingItemOptionsChecker } from './src/main/ets/default/settings/SettingItemOptionsChecker';

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/animation/remoteanimation/WindowAnimationControllerImpl.protoBin


+ 0 - 72
product/phone/.preview/cache/.default/common/src/main/ets/default/animation/remoteanimation/WindowAnimationControllerImpl.ts

@@ -1,72 +0,0 @@
-import type windowAnimationManager from "@ohos:animation.windowAnimationManager";
-import { CheckEmptyUtils } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/CheckEmptyUtils";
-import { Log } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/Log";
-import RemoteConstants from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/constants/RemoteConstants";
-const TAG = 'WindowAnimationControllerImpl';
-class WindowAnimationControllerImpl implements windowAnimationManager.WindowAnimationController {
-    onStartAppFromLauncher(startingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
-        Log.showInfo(TAG, `remote window animaion onStartAppFromLauncher`);
-        this.setRemoteAnimation(startingWindowTarget, null, finishCallback, RemoteConstants.TYPE_START_APP_FROM_LAUNCHER);
-        this.printfTarget(startingWindowTarget);
-        finishCallback.onAnimationFinish();
-    }
-    onStartAppFromRecent(startingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
-        Log.showInfo(TAG, `remote window animaion onStartAppFromRecent`);
-        this.setRemoteAnimation(startingWindowTarget, null, finishCallback, RemoteConstants.TYPE_START_APP_FROM_RECENT);
-        this.printfTarget(startingWindowTarget);
-        finishCallback.onAnimationFinish();
-    }
-    onStartAppFromOther(startingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
-        Log.showInfo(TAG, `remote window animaion onStartAppFromOther`);
-        this.setRemoteAnimation(startingWindowTarget, null, finishCallback, RemoteConstants.TYPE_START_APP_FROM_OTHER);
-        this.printfTarget(startingWindowTarget);
-        finishCallback.onAnimationFinish();
-    }
-    onAppTransition(fromWindowTarget: windowAnimationManager.WindowAnimationTarget, toWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
-        Log.showInfo(TAG, `remote window animaion onAppTransition`);
-        this.setRemoteAnimation(toWindowTarget, fromWindowTarget, finishCallback, RemoteConstants.TYPE_APP_TRANSITION);
-        this.printfTarget(fromWindowTarget);
-        this.printfTarget(toWindowTarget);
-        finishCallback.onAnimationFinish();
-    }
-    onMinimizeWindow(minimizingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
-        Log.showInfo(TAG, `remote window animaion onMinimizeWindow`);
-        this.setRemoteAnimation(null, minimizingWindowTarget, finishCallback, RemoteConstants.TYPE_MINIMIZE_WINDOW);
-        this.printfTarget(minimizingWindowTarget);
-        finishCallback.onAnimationFinish();
-    }
-    onCloseWindow(closingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
-        Log.showInfo(TAG, `remote window animaion onCloseWindow`);
-        this.setRemoteAnimation(null, closingWindowTarget, finishCallback, RemoteConstants.TYPE_CLOSE_WINDOW);
-        this.printfTarget(closingWindowTarget);
-        finishCallback.onAnimationFinish();
-    }
-    onScreenUnlock(finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
-        Log.showInfo(TAG, `remote window animaion onScreenUnlock`);
-        this.setRemoteAnimation(null, null, finishCallback, RemoteConstants.TYPE_SCREEN_UNLOCK);
-        finishCallback.onAnimationFinish();
-    }
-    onWindowAnimationTargetsUpdate(fullScreenWindowTarget: windowAnimationManager.WindowAnimationTarget, floatingWindowTargets: Array<windowAnimationManager.WindowAnimationTarget>): void { }
-    printfTarget(target: windowAnimationManager.WindowAnimationTarget): void {
-        if (CheckEmptyUtils.isEmpty(target) || CheckEmptyUtils.isEmpty(target.windowBounds)) {
-            Log.showInfo(TAG, `remote window animaion with invalid target`);
-            return;
-        }
-        Log.showInfo(TAG, `remote window animaion bundleName: ${target.bundleName} abilityName: ${target.abilityName}`);
-        Log.showInfo(TAG, `remote window animaion windowBounds left: ${target.windowBounds.left} top: ${target.windowBounds.top}
-      width: ${target.windowBounds.width} height: ${target.windowBounds.height} radius: ${target.windowBounds.radius}`);
-    }
-    private setRemoteAnimation(startingWindowTarget: windowAnimationManager.WindowAnimationTarget, closingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback, remoteAnimationType: number): void {
-        if (!CheckEmptyUtils.isEmpty(startingWindowTarget)) {
-            AppStorage.setOrCreate('startingWindowTarget', startingWindowTarget);
-        }
-        if (!CheckEmptyUtils.isEmpty(closingWindowTarget)) {
-            AppStorage.setOrCreate('closingWindowTarget', closingWindowTarget);
-        }
-        if (!CheckEmptyUtils.isEmpty(finishCallback)) {
-            AppStorage.setOrCreate('remoteAnimationFinishCallback', finishCallback);
-        }
-        AppStorage.setOrCreate('remoteAnimationType', remoteAnimationType);
-    }
-}
-export default WindowAnimationControllerImpl;

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseCloseAppHandler.protoBin


+ 0 - 47
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseCloseAppHandler.ts

@@ -1,47 +0,0 @@
-/**
- * Copyright (c) 2022-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { BaseRemoteAnimationHandler } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseRemoteAnimationHandler";
-/**
- * close app base class
- */
-export abstract class BaseCloseAppHandler extends BaseRemoteAnimationHandler {
-    constructor() {
-        super();
-    }
-    /**
-   * calculate app icon position.
-   */
-    protected calculateAppIconPosition(): void {
-    }
-    /**
-     * get app icon info
-     *
-     * @param windowTarget close window target
-     */
-    public getAppIconInfo(windowTarget): void {
-    }
-    /**
-     * set close app icon info.
-     */
-    public setAppIconInfo(): void {
-        super.setAppIconInfo();
-        AppStorage.setOrCreate('closeAppIconInfo', {
-            appIconSize: this.mAppIconSize,
-            appIconHeight: this.mAppIconHeight,
-            appIconPositionX: this.mAppIconPositionX,
-            appIconPositionY: this.mAppIconPositionY
-        });
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseDragHandler.protoBin


+ 0 - 108
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseDragHandler.ts

@@ -1,108 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { Log } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/Log";
-import type { DragArea } from '../interface/DragArea';
-import { CommonConstants } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/constants/CommonConstants";
-import type { LauncherDragItemInfo } from '../bean/LauncherDragItemInfo';
-const TAG = 'BaseDragHandler';
-/**
- * Drag processing base class, drag processing is mainly responsible for the processing of the following tasks:
- * 1.Efficient event distribution based on drag area.
- * 2.Initialize drag function related parameters.
- * 3.Adjust and refresh the desktop layout according to the drag results.
- */
-export abstract class BaseDragHandler {
-    protected mIsInEffectArea = false;
-    protected mDragEffectArea: DragArea | undefined;
-    private mDragStateListener = null;
-    private mSelectItemIndex: number = CommonConstants.INVALID_VALUE;
-    constructor() {
-        this.setIsLongPress(false);
-    }
-    /**
-     * Get the data object corresponding to the drag operation.
-     */
-    protected abstract getDragRelativeData(): any;
-    /**
-     * Get the position of the drag target.
-     */
-    protected abstract getItemIndex(x: number, y: number): number;
-    /**
-     * Get the object at the target location.
-     */
-    protected abstract getItemByIndex(index: number): any;
-    /**
-     * Set the drag effective area.
-     */
-    setDragEffectArea(effectArea: DragArea): void {
-        this.mDragEffectArea = effectArea;
-    }
-    /**
-     * Get valid area.
-     */
-    protected getDragEffectArea(): DragArea | undefined {
-        return this.mDragEffectArea;
-    }
-    /**
-     * Set up drag listeners.
-     */
-    setDragStateListener(dragStateListener): void {
-        this.mDragStateListener = dragStateListener;
-    }
-    /**
-     * Set drag and drop item information.
-     *
-     * @param dragItemInfo
-     */
-    protected setDragItemInfo(dragItemInfo: LauncherDragItemInfo): void {
-        Log.showDebug(TAG, `setDragItemInfo dragItemInfo: ${JSON.stringify(dragItemInfo)}`);
-        AppStorage.setOrCreate<LauncherDragItemInfo>('dragItemInfo', dragItemInfo);
-    }
-    /**
-     * Get drag item information.
-     *
-     * @return dragItemInfo
-     */
-    protected getDragItemInfo() {
-        const dragItemInfo: LauncherDragItemInfo = AppStorage.get<LauncherDragItemInfo>('dragItemInfo');
-        // avoid dragItemInfo from AppStorage is undefined
-        return dragItemInfo;
-    }
-    /**
-     * Get IsLongPress parameter.
-     *
-     * @return isLongPress
-     */
-    protected getIsLongPress(): boolean {
-        const isLongPress: boolean = AppStorage.get('isLongPress');
-        return isLongPress;
-    }
-    /**
-     * Set the IsLongPress parameter.
-     */
-    protected setIsLongPress(isLongPress): void {
-        Log.showDebug(TAG, `setIsLongPress isLongPress: ${isLongPress}`);
-        AppStorage.setOrCreate('isLongPress', isLongPress);
-    }
-    protected isDragEffectArea(x: number, y: number): boolean {
-        if (this.mDragEffectArea) {
-            if (x >= this.mDragEffectArea.left && x <= this.mDragEffectArea.right
-                && y >= this.mDragEffectArea.top && y <= this.mDragEffectArea.bottom) {
-                return true;
-            }
-        }
-        return false;
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseModulePreLoader.protoBin


+ 0 - 39
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseModulePreLoader.ts

@@ -1,39 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Module initial content loader base class.
- * Perform early loading of configuration and data.
- */
-export abstract class BaseModulePreLoader {
-    /**
-     * Perform initial loading action.
-     */
-    load(): void {
-        this.loadConfig();
-        this.loadData();
-    }
-    /**
-     * Initial load configuration.
-     */
-    protected abstract loadConfig(): void;
-    /**
-     * Initialize load data.
-     */
-    protected abstract loadData(): void;
-    /**
-     * module release
-     */
-    abstract releaseConfigAndData(): void;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseRemoteAnimationHandler.protoBin


+ 0 - 54
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseRemoteAnimationHandler.ts

@@ -1,54 +0,0 @@
-/**
- * Copyright (c) 2022-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { Log } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/Log";
-const TAG = 'BaseRemoteAnimationHandler';
-interface appIconInfo {
-    appIconSize: number;
-    appIconPositionX: number;
-    appIconPositionY: number;
-}
-/**
- * remote animation base class
- */
-export abstract class BaseRemoteAnimationHandler {
-    public mAppIconSize: number = 0;
-    public mAppIconPositionX: number = 0;
-    public mAppIconPositionY: number = 0;
-    public mAppIconHeight: number = 0;
-    constructor() {
-    }
-    /**
-     * set app icon size
-     *
-     * @param appIconSize appIconSize
-    */
-    public setAppIconSize(appIconSize: number, appIconHeight?: number): void {
-        this.mAppIconHeight = appIconHeight;
-        this.mAppIconSize = appIconSize;
-        Log.showDebug(TAG, `setAppIconSize appIconSize is ${appIconSize} , appIconHeight is ${appIconHeight}`);
-    }
-    /**
-     * calculate app icon position.
-     */
-    protected abstract calculateAppIconPosition(): void;
-    /**
-     * set app icon info.
-     */
-    public setAppIconInfo(): void {
-        this.calculateAppIconPosition();
-        Log.showDebug(TAG, `setAppIconInfo appIconSize is ${this.mAppIconSize} , appIconHeight is ${this.mAppIconHeight} ,
-      appIconPositionX ${this.mAppIconPositionX} , appIconPositionY ${this.mAppIconPositionY}`);
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStage.protoBin


+ 0 - 32
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStage.ts

@@ -1,32 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { Log } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/Log";
-const TAG = 'BaseStage';
-export class BaseStage {
-    constructor() {
-    }
-    /**
-     * Callback when Stage starts
-     */
-    onCreate(): void {
-        Log.showInfo(TAG, 'onCreate!');
-    }
-    /**
-     * Callback when stage exits
-     */
-    onDestroy(): void {
-        Log.showInfo(TAG, 'onDestroy!');
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStartAppHandler.protoBin


+ 0 - 35
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseStartAppHandler.ts

@@ -1,35 +0,0 @@
-/**
- * Copyright (c) 2022-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { BaseRemoteAnimationHandler } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseRemoteAnimationHandler";
-/**
- * start app base class
- */
-export abstract class BaseStartAppHandler extends BaseRemoteAnimationHandler {
-    constructor() {
-        super();
-    }
-    /**
-     * set start app icon info.
-     */
-    public setAppIconInfo(): void {
-        super.setAppIconInfo();
-        AppStorage.setOrCreate('startAppIconInfo', {
-            appIconSize: this.mAppIconSize,
-            appIconHeight: this.mAppIconHeight,
-            appIconPositionX: this.mAppIconPositionX,
-            appIconPositionY: this.mAppIconPositionY
-        });
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseViewModel.protoBin


+ 0 - 111
product/phone/.preview/cache/.default/common/src/main/ets/default/base/BaseViewModel.ts

@@ -1,111 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import Prompt from "@ohos:promptAction";
-import { Log } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/Log";
-import { AppModel } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/model/AppModel";
-import { ResourceManager } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/manager/ResourceManager";
-import { CommonConstants } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/constants/CommonConstants";
-import { launcherAbilityManager } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/manager/LauncherAbilityManager";
-const TAG = 'BaseViewModel';
-const KEY_NAME = 'name';
-/**
- * Base class for view models.
- */
-export class BaseViewModel {
-    protected mAppModel: AppModel;
-    protected mResourceManager: ResourceManager;
-    private readonly listener;
-    protected constructor() {
-        this.mAppModel = AppModel.getInstance();
-        this.mResourceManager = ResourceManager.getInstance();
-        this.listener = this.appListChangeListener.bind(this);
-    }
-    /**
-     * Start target ability
-     *
-     * @param bundleName target bundle name
-     * @param abilityName target ability name
-     */
-    jumpTo(abilityName: string, bundleName: string, moduleName: string): void {
-        launcherAbilityManager.startLauncherAbility(abilityName, bundleName, moduleName);
-    }
-    /**
-     * start form config ability.
-     *
-     * @param bundleName
-     * @param abilityName
-     */
-    jumpToForm(abilityName: string, bundleName: string, moduleName: string, cardId: number): void {
-        launcherAbilityManager.startAbilityFormEdit(abilityName, bundleName, moduleName, cardId);
-    }
-    /**
-     * Start launcher settings page.
-     */
-    jumpToSetting(): void {
-        this.jumpTo(CommonConstants.SETTING_ABILITY, CommonConstants.LAUNCHER_BUNDLE, CommonConstants.SETTING_MODULE);
-    }
-    private uninstallAppCallback = (resultCode: number): void => {
-        this.informUninstallResult(resultCode);
-    };
-    /**
-     * Uninstall target app by bundle name.
-     *
-     * @param uninstallBundleName bundle name to uninstall
-     * @param isUninstallable true if target app is uninstallable.
-     */
-    uninstallApp(uninstallBundleName: string, isUninstallable: boolean): void {
-        if (!isUninstallable) {
-            this.informUninstallResult(CommonConstants.UNINSTALL_FORBID);
-        }
-        else {
-            void launcherAbilityManager.uninstallLauncherAbility(uninstallBundleName, this.uninstallAppCallback);
-        }
-    }
-    registerAppListChangeCallback(): void {
-        this.mAppModel.registerStateChangeListener(this.listener);
-    }
-    unregisterAppListChangeCallback(): void {
-        Log.showInfo(TAG, 'unregisterAppListChangeCallback');
-        this.mAppModel.unregisterAppStateChangeListener(this.listener);
-    }
-    appListChangeListener(appList: [
-    ]): void {
-        this.regroupDataAppListChange(appList);
-    }
-    regroupDataAppListChange(callbackList: [
-    ]): void {
-    }
-    informUninstallResult(resultCode: number): void {
-        Log.showDebug(TAG, `Launcher AppListView getUninstallApp uninstallationResult: ${resultCode}`);
-        if (resultCode === CommonConstants.UNINSTALL_FORBID) {
-            Prompt.showToast({
-                message: { "id": 218103950, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" }
-            });
-        }
-        else if (resultCode === CommonConstants.UNINSTALL_SUCCESS) {
-            Prompt.showToast({
-                message: { "id": 218103974, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" }
-            });
-        }
-        else {
-            Prompt.showToast({
-                message: { "id": 218103973, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" }
-            });
-        }
-    }
-    getAppName(cacheKey: string): string {
-        return this.mResourceManager.getAppResourceCache(cacheKey, KEY_NAME);
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/base/index.protoBin


+ 0 - 20
product/phone/.preview/cache/.default/common/src/main/ets/default/base/index.ts

@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-export { BaseStage } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseStage";
-export { BaseDragHandler } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseDragHandler";
-export { BaseViewModel } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseViewModel";
-export { BaseModulePreLoader } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseModulePreLoader";
-export { BaseCloseAppHandler } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseCloseAppHandler";
-export { BaseStartAppHandler } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/base/BaseStartAppHandler";

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/AppItemInfo.protoBin


+ 0 - 80
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/AppItemInfo.ts

@@ -1,80 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * common app info
- */
-export class AppItemInfo {
-    /**
-     * Indicates app id.
-     */
-    appId: string | undefined;
-    /**
-     * Indicates app name.
-     */
-    appName: string | undefined;
-    /**
-     * Indicates appIconId.
-     */
-    appIconId: number | undefined;
-    /**
-     * Indicates appLabelId.
-     */
-    appLabelId: number | undefined;
-    /**
-     * Indicates bundleName.
-     */
-    bundleName: string | undefined;
-    /**
-     * Indicates abilityName.
-     */
-    abilityName: string | undefined;
-    /**
-     * Indicates is system App.
-     */
-    isSystemApp: boolean | undefined;
-    /**
-     * Indicates is uninstallAble.
-     */
-    isUninstallAble: boolean | undefined;
-    /**
-     * badge number
-     */
-    badgeNumber: number | undefined;
-    checked: boolean | undefined;
-    installTime: string | undefined;
-    moduleName: string | undefined;
-    keyName: string | undefined;
-    /**
-     * GridLayoutItemInfo: type  0:app  1:card  3:bigFolder
-     */
-    typeId: number | undefined;
-    /**
-     * GridLayoutItemInfo: area
-     */
-    area: number[] | undefined;
-    /**
-     * GridLayoutItemInfo: page
-     */
-    page: number | undefined;
-    /**
-     * GridLayoutItemInfo: column of positions
-     */
-    column: number | undefined;
-    /**
-     * GridLayoutItemInfo: row of positions
-     */
-    row: number | undefined;
-    bundleType?: number | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BadgeItemInfo.protoBin


+ 0 - 39
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BadgeItemInfo.ts

@@ -1,39 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * badge info
- */
-export default class BadgeItemInfo {
-    /**
-     * id
-     */
-    id: string | undefined;
-    /**
-     * application bundle name
-     */
-    bundleName: string | undefined;
-    /**
-     * badge number in app
-     */
-    badgeNumber: number | undefined;
-    /**
-     * badge display flag
-     */
-    display: boolean | undefined;
-    /**
-     * belong user
-     */
-    userId: number | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BaseColumns.protoBin


+ 0 - 20
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/BaseColumns.ts

@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Table Basic Field Constants
- */
-export default class BaseColumns {
-    static readonly ID: string = "id";
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/CardItemInfo.protoBin


+ 0 - 74
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/CardItemInfo.ts

@@ -1,74 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Indicates form info
- */
-export class CardItemInfo {
-    /**
-     * Indicates form id
-     */
-    cardId: number | undefined;
-    /**
-     * Indicates form bundleName.
-     */
-    bundleName: string | undefined;
-    /**
-     * Indicates form abilityName.
-     */
-    abilityName: string | undefined;
-    /**
-     * Indicates form moduleName.
-     */
-    moduleName: string | undefined;
-    /**
-     * Indicates cardName.
-     */
-    cardName: string | undefined;
-    /**
-     * Indicates form dimension.
-     */
-    cardDimension: number | undefined;
-    /**
-     * Indicates form size.
-     */
-    area: number[] | undefined;
-    /**
-     * Indicates form description.
-     */
-    description = '';
-    /**
-     * Indicates form formConfigAbility.
-     */
-    formConfigAbility: string | undefined;
-    /**
-     * Indicates form of app labelId.
-     */
-    appLabelId: number | undefined;
-    /**
-     * Indicates form of app name.
-     */
-    appName: string | undefined;
-    /**
-     * Indicates form of support Dimensions.
-     */
-    supportDimensions: number[] | [
-    ];
-    /**
-     * GridLayoutItemInfo: total count of card
-     */
-    totalDimensionCount: number | undefined;
-    dragLayerWidth?: number;
-    dragLayerHeight?: number;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DesktopApplicationColumns.protoBin


+ 0 - 34
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DesktopApplicationColumns.ts

@@ -1,34 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import BaseColumns from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/BaseColumns";
-/**
- * GridLayoutInfo  Columns
- */
-export default class DesktopApplicationColumns extends BaseColumns {
-    static readonly APP_NAME: string = "app_name";
-    static readonly IS_SYSTEM_APP: string = "is_system_app";
-    static readonly IS_UNINSTALLABLE: string = "is_uninstallAble";
-    static readonly BADGE_NUMBER: string = "badge_number";
-    static readonly APPICON_ID: string = "appIcon_id";
-    static readonly APPLABEL_ID: string = "appLabel_id";
-    static readonly BUNDLE_NAME: string = "bundle_name";
-    static readonly MODULE_NAME: string = "module_name";
-    static readonly ABILITY_NAME: string = "ability_name";
-    static readonly KEY_NAME: string = "key_name";
-    static readonly INSTALL_TIME: string = "install_time";
-    static readonly EXTEND1: string = "extend1";
-    static readonly EXTEND2: string = "extend2";
-    static readonly EXTEND3: string = "extend3";
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DockItemInfo.protoBin


+ 0 - 32
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/DockItemInfo.ts

@@ -1,32 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { AppItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/AppItemInfo";
-/**
- * Item info of smartdock item.
- */
-export class DockItemInfo extends AppItemInfo {
-    /**
-     * Type of smartDock item:
-     * applications
-     * 1: forms
-     * 2: launcher functions
-     */
-    itemType: number | undefined;
-    /**
-     * true if this item is editable
-     */
-    editable: boolean | undefined;
-    isDragging?: boolean;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/FolderItemInfo.protoBin


+ 0 - 31
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/FolderItemInfo.ts

@@ -1,31 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Item info of folders.
- */
-export class FolderItemInfo {
-    /**
-     * folder id.
-     */
-    folderId: string | undefined;
-    /**
-     * folder name to display
-     */
-    folderName: string | undefined;
-    /**
-     * Application list of this folder.
-     */
-    appList: string[] | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutInfoColumns.protoBin


+ 0 - 29
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutInfoColumns.ts

@@ -1,29 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import DesktopApplicationColumns from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/DesktopApplicationColumns";
-/**
- * GridLayoutInfo  Columns
- */
-export default class GridLayoutInfoColumns extends DesktopApplicationColumns {
-    static readonly CARD_ID: string = "card_id";
-    static readonly FOLDER_ID: string = "folder_id";
-    static readonly CONTAINER: string = "container";
-    static readonly FOLDER_NAME: string = "folder_name";
-    static readonly TYPE_ID: string = "type_id";
-    static readonly AREA: string = "area";
-    static readonly PAGE: string = "page";
-    static readonly COLUMN: string = "column";
-    static readonly ROW: string = "row";
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemBuilder.protoBin


+ 0 - 231
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemBuilder.ts

@@ -1,231 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { AppItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/AppItemInfo";
-import GridLayoutInfoColumns from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/GridLayoutInfoColumns";
-import GridLayoutItemInfo from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/GridLayoutItemInfo";
-import { CheckEmptyUtils } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/CheckEmptyUtils";
-/**
- * Item info of GridLayoutInfo item.
- */
-export default class GridLayoutItemBuilder {
-    /**
-     * GridLayoutItemInfo: id
-     */
-    readonly id: number | undefined;
-    /**
-     * GridLayoutItemInfo: cardId
-     */
-    cardId: number | undefined;
-    /**
-     * GridLayoutItemInfo: ID of the bigfolder.
-     */
-    folderId: string | undefined;
-    /**
-     * GridLayoutItemInfo: bigfolder id
-     * Not in bigfolder: - 100
-     * In a bigfolder: ID of the bigfolder.
-     */
-    container: number | undefined;
-    /**
-     * GridLayoutItemInfo: bigfolder Name
-     */
-    folderName: string | undefined;
-    /**
-     * GridLayoutItemInfo: badgeNumber
-     */
-    badgeNumber: number | undefined;
-    /**
-     * GridLayoutItemInfo: type  0:app  1:card  3:bigfolder
-     */
-    typeId: number | undefined;
-    /**
-     * GridLayoutItemInfo: area
-     */
-    area: number[] | undefined;
-    /**
-     * GridLayoutItemInfo: page
-     */
-    page: number | undefined;
-    /**
-     * GridLayoutItemInfo: column of positons
-     */
-    column: number | undefined;
-    /**
-     * GridLayoutItemInfo: row of positons
-     */
-    row: number | undefined;
-    /**
-     * GridLayoutItemInfo: bigfolder apps info
-     */
-    layoutInfo: AppItemInfo[] | undefined;
-    /**
-     * Indicates bundleName.
-     */
-    bundleName: string | undefined;
-    /**
-     * Indicates abilityName.
-     */
-    abilityName: string | undefined;
-    moduleName: string | undefined;
-    /**
-     * Indicates keyName.
-     */
-    keyName: string | undefined;
-    /**
-     * GridLayoutItemInfo: extend1
-     */
-    extend1: string | undefined;
-    /**
-     * GridLayoutItemInfo: extend2
-     */
-    extend2: string | undefined;
-    /**
-     * GridLayoutItemInfo: extend3
-     */
-    extend3: number | undefined;
-    constructor(id: number) {
-        this.id = id;
-    }
-    static fromResultSet(resultSet: any): GridLayoutItemBuilder {
-        let gridlayoutItemBuilder = new GridLayoutItemBuilder(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.ID)));
-        gridlayoutItemBuilder.setCardId(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.CARD_ID)));
-        gridlayoutItemBuilder.setFolderId(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.FOLDER_ID)));
-        gridlayoutItemBuilder.setContainer(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.CONTAINER)));
-        gridlayoutItemBuilder.setFolderName(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.FOLDER_NAME)));
-        gridlayoutItemBuilder.setBadgeNumber(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.BADGE_NUMBER)));
-        gridlayoutItemBuilder.setTypeId(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.TYPE_ID)));
-        gridlayoutItemBuilder.setArea(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.AREA)));
-        gridlayoutItemBuilder.setPage(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.PAGE)));
-        gridlayoutItemBuilder.setColumn(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.COLUMN)));
-        gridlayoutItemBuilder.setRow(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.ROW)));
-        gridlayoutItemBuilder.setBundleName(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.BUNDLE_NAME)));
-        gridlayoutItemBuilder.setAbilityName(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.ABILITY_NAME)));
-        gridlayoutItemBuilder.setModuleName(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.MODULE_NAME)));
-        gridlayoutItemBuilder.setKeyName(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.KEY_NAME)));
-        gridlayoutItemBuilder.setExtend1(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.EXTEND1)));
-        gridlayoutItemBuilder.setExtend2(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.EXTEND2)));
-        gridlayoutItemBuilder.setExtend3(resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.EXTEND3)));
-        return gridlayoutItemBuilder;
-    }
-    static buildLayout(resultSet: any): AppItemInfo {
-        let appItemInfo = new AppItemInfo();
-        appItemInfo.appName = resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.APP_NAME));
-        appItemInfo.isSystemApp = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.IS_SYSTEM_APP)) > 0 ? true : false;
-        appItemInfo.isUninstallAble = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.IS_UNINSTALLABLE)) > 0 ? true : false;
-        appItemInfo.appIconId = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.APPICON_ID));
-        appItemInfo.appLabelId = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.APPLABEL_ID));
-        appItemInfo.bundleName = resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.BUNDLE_NAME));
-        appItemInfo.abilityName = resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.ABILITY_NAME));
-        appItemInfo.moduleName = resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.MODULE_NAME));
-        appItemInfo.keyName = resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.KEY_NAME));
-        appItemInfo.installTime = resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.INSTALL_TIME));
-        appItemInfo.typeId = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.TYPE_ID));
-        appItemInfo.area = this.getArea(resultSet.getString(resultSet.getColumnIndex(GridLayoutInfoColumns.AREA)));
-        appItemInfo.page = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.PAGE));
-        appItemInfo.column = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.COLUMN));
-        appItemInfo.row = resultSet.getLong(resultSet.getColumnIndex(GridLayoutInfoColumns.ROW));
-        return appItemInfo;
-    }
-    private setCardId(cardId: number) {
-        this.cardId = cardId;
-        return this;
-    }
-    private setFolderId(folderId: string) {
-        this.folderId = folderId;
-        return this;
-    }
-    private setContainer(container: number) {
-        this.container = container;
-        return this;
-    }
-    private setFolderName(folderName: string) {
-        this.folderName = folderName;
-        return this;
-    }
-    private setBadgeNumber(badgeNumber: number) {
-        this.badgeNumber = badgeNumber;
-        return this;
-    }
-    private setTypeId(typeId: number) {
-        this.typeId = typeId;
-        return this;
-    }
-    private setArea(area: string) {
-        let areaArray: number[] = [];
-        let temp = area.split(",");
-        if (!CheckEmptyUtils.isEmptyArr(temp) && temp.length === 2) {
-            areaArray[0] = Number(temp[0]);
-            areaArray[1] = Number(temp[1]);
-        }
-        this.area = areaArray;
-        return this;
-    }
-    static getArea(area: string): number[] {
-        let areaArray: number[] = [];
-        let temp = area.split(",");
-        if (!CheckEmptyUtils.isEmptyArr(temp) && temp.length === 2) {
-            areaArray[0] = Number(temp[0]);
-            areaArray[1] = Number(temp[1]);
-        }
-        return areaArray;
-    }
-    private setPage(page: number) {
-        this.page = page;
-        return this;
-    }
-    private setColumn(column: number) {
-        this.column = column;
-        return this;
-    }
-    private setRow(row: number) {
-        this.row = row;
-        return this;
-    }
-    private setBundleName(bundleName: string) {
-        this.bundleName = bundleName;
-        return this;
-    }
-    private setAbilityName(abilityName: string) {
-        this.abilityName = abilityName;
-        return this;
-    }
-    private setModuleName(moduleName: string) {
-        this.moduleName = moduleName;
-        return this;
-    }
-    private setKeyName(keyName: string) {
-        this.keyName = keyName;
-        return this;
-    }
-    setLayoutInfo(appItemInfos: AppItemInfo[]) {
-        this.layoutInfo = appItemInfos;
-        return this;
-    }
-    private setExtend1(extend1: string) {
-        this.extend1 = extend1;
-        return this;
-    }
-    private setExtend2(extend2: string) {
-        this.extend2 = extend2;
-        return this;
-    }
-    private setExtend3(extend3: number) {
-        this.extend3 = extend3;
-        return this;
-    }
-    buildGridLayoutItem(): GridLayoutItemInfo {
-        return new GridLayoutItemInfo(this);
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemInfo.protoBin


+ 0 - 103
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/GridLayoutItemInfo.ts

@@ -1,103 +0,0 @@
-import type { AppItemInfo } from './AppItemInfo';
-import type GridLayoutItemBuilder from './GridLayoutItemBuilder';
-/**
- * Item info of GridLayoutInfo item.
- */
-export default class GridLayoutItemInfo {
-    /**
-     * GridLayoutItemInfo: id
-     */
-    readonly id: number | undefined;
-    /**
-     * GridLayoutItemInfo: cardId
-     */
-    cardId: number | undefined;
-    /**
-     * GridLayoutItemInfo: ID of the bigfolder.
-     */
-    folderId: string | undefined;
-    /**
-     * GridLayoutItemInfo: bigfolder id
-     * Not in bigfolder: - 100
-     * In a bigfolder: ID of the bigfolder.
-     */
-    container: number | undefined;
-    /**
-     * GridLayoutItemInfo: bigfolder Name
-     */
-    folderName: string | undefined;
-    /**
-     * GridLayoutItemInfo: badgeNumber
-     */
-    badgeNumber: number | undefined;
-    /**
-     * GridLayoutItemInfo: type  0:app  1:card  3:bigfolder
-     */
-    typeId: number | undefined;
-    /**
-     * GridLayoutItemInfo: area
-     */
-    area: number[] | undefined;
-    /**
-     * GridLayoutItemInfo: page
-     */
-    page: number | undefined;
-    /**
-     * GridLayoutItemInfo: column of positions
-     */
-    column: number | undefined;
-    /**
-     * GridLayoutItemInfo: row of positions
-     */
-    row: number | undefined;
-    /**
-     * Indicates bundleName.
-     */
-    bundleName: string | undefined;
-    /**
-     * Indicates abilityName.
-     */
-    abilityName: string | undefined;
-    moduleName: string | undefined;
-    /**
-     * Indicates keyName.
-     */
-    keyName: string | undefined;
-    /**
-     * GridLayoutItemInfo: bigFolder apps info
-     */
-    layoutInfo: AppItemInfo[][] | undefined;
-    /**
-     * GridLayoutItemInfo: extend1
-     */
-    extend1: string | undefined;
-    /**
-     * GridLayoutItemInfo: extend2
-     */
-    extend2: string | undefined;
-    /**
-     * GridLayoutItemInfo: extend3
-     */
-    extend3: number | undefined;
-    constructor(gridLayoutItemBuilder: GridLayoutItemBuilder) {
-        this.id = gridLayoutItemBuilder.id;
-        this.cardId = gridLayoutItemBuilder.cardId;
-        this.folderId = gridLayoutItemBuilder.folderId;
-        this.container = gridLayoutItemBuilder.container;
-        this.folderName = gridLayoutItemBuilder.folderName;
-        this.badgeNumber = gridLayoutItemBuilder.badgeNumber;
-        this.typeId = gridLayoutItemBuilder.typeId;
-        this.area = gridLayoutItemBuilder.area;
-        this.page = gridLayoutItemBuilder.page;
-        this.column = gridLayoutItemBuilder.column;
-        this.row = gridLayoutItemBuilder.row;
-        this.bundleName = gridLayoutItemBuilder.bundleName;
-        this.abilityName = gridLayoutItemBuilder.abilityName;
-        this.moduleName = gridLayoutItemBuilder.moduleName;
-        this.keyName = gridLayoutItemBuilder.keyName;
-        this.layoutInfo = [gridLayoutItemBuilder.layoutInfo];
-        this.extend1 = gridLayoutItemBuilder.extend1;
-        this.extend2 = gridLayoutItemBuilder.extend2;
-        this.extend3 = gridLayoutItemBuilder.extend3;
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/LauncherDragItemInfo.protoBin


+ 0 - 43
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/LauncherDragItemInfo.ts

@@ -1,43 +0,0 @@
-import type { AppItemInfo } from './AppItemInfo';
-/**
- * drag item info
- */
-export class LauncherDragItemInfo {
-    isDragging: boolean = false;
-    constructor(isDragging?: boolean) {
-        this.isDragging = isDragging ? isDragging : false;
-    }
-    cardId?: number | undefined;
-    folderId?: string | undefined;
-    folderName?: string | undefined;
-    appList?: string[] | undefined;
-    keyName: string | undefined;
-    bundleName: string | undefined;
-    abilityName: string | undefined;
-    moduleName: string | undefined;
-    cardName?: string | undefined;
-    cardDimension?: number | undefined;
-    area: number[] | undefined;
-    description?: string = '';
-    formConfigAbility?: string | undefined;
-    appLabelId: number | undefined;
-    appName: string | undefined;
-    supportDimensions?: number[] | undefined;
-    appId: string | undefined;
-    appIconId: number | undefined;
-    isSystemApp: boolean | undefined;
-    isUninstallAble: boolean | undefined;
-    badgeNumber: number | undefined;
-    checked?: boolean | undefined;
-    installTime?: string | undefined;
-    typeId: number | undefined;
-    page: number | undefined;
-    column: number | undefined;
-    row: number | undefined;
-    bundleType?: number | undefined;
-    totalDimensionCount?: number | undefined;
-    layoutInfo?: AppItemInfo[][];
-    itemType?: number;
-    editable?: boolean;
-    enterEditing?: boolean;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MenuInfo.protoBin


+ 0 - 56
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MenuInfo.ts

@@ -1,56 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { CommonConstants } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/constants/CommonConstants";
-/**
- * Item info of long press menu.
- */
-export class MenuInfo {
-    /**
-     * Item type. see CommonConstants.MENU_TYPE_FIXED and CommonConstants.MENU_TYPE_DYNAMIC.
-     */
-    menuType: number = CommonConstants.MENU_TYPE_FIXED;
-    /**
-     * Image source for this item.
-     */
-    menuImgSrc: any = null;
-    /**
-     * Menu text for this item.
-     */
-    menuText: any = null;
-    /**
-     * True if this item is enabled.
-     */
-    menuEnabled = true;
-    /**
-     * Callback when item is clicked.
-     */
-    onMenuClick: Function = () => [];
-    /**
-     * shortcut icon Id
-     */
-    shortcutIconId = CommonConstants.INVALID_VALUE;
-    /**
-     * shortcut label Id
-     */
-    shortcutLabelId = CommonConstants.INVALID_VALUE;
-    /**
-     * bundleName
-     */
-    bundleName: string | undefined;
-    /**
-    * moduleName
-    */
-    moduleName: string | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MissionInfo.protoBin


+ 0 - 35
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/MissionInfo.ts

@@ -1,35 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * mission info
- */
-export class MissionInfo {
-    /**
-     * Indicates mission id.
-     */
-    missionId: number | undefined;
-    /**
-     * Indicates running state.
-     */
-    runningState: number | undefined;
-    /**
-     * Indicates locked state.
-     */
-    lockedState: boolean | undefined;
-    /**
-     * Indicates mission snapshot.
-     */
-    snapshot: any;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentBundleMissionInfo.protoBin


+ 0 - 22
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentBundleMissionInfo.ts

@@ -1,22 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import type { MissionInfo } from './MissionInfo';
-import { AppItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/AppItemInfo";
-/**
- * Recent mission info
- */
-export class RecentBundleMissionInfo extends AppItemInfo {
-    missionInfoList: MissionInfo[] | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentMissionInfo.protoBin


+ 0 - 55
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/RecentMissionInfo.ts

@@ -1,55 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Recent mission info
- */
-export class RecentMissionInfo {
-    /**
-     * Recent mission: mission id
-     */
-    missionId: number | undefined;
-    /**
-     * Recent mission: app name
-     */
-    appName: string | undefined;
-    /**
-     * Recent mission: app icon Id
-     */
-    appIconId: number | undefined;
-    /**
-     * Recent mission: app label Id
-     */
-    appLabelId: number | undefined;
-    /**
-     * Recent mission: bundle name
-     */
-    bundleName: string | undefined;
-    /**
-     * Recent mission: ability name
-     */
-    abilityName: string | undefined;
-    /**
-    * Recent mission: module name
-    */
-    moduleName: string | undefined;
-    /**
-     * Recent mission: lock status
-     */
-    lockedState: boolean | undefined;
-    /**
-     * Recent mission: trigger snapShot update
-     */
-    snapShotTime: string | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemInfo.protoBin


+ 0 - 26
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemInfo.ts

@@ -1,26 +0,0 @@
-import type SettingItemOption from './SettingItemOption';
-/**
- * Item info for launcher settings.
- */
-export class SettingItemInfo {
-    /**
-     * Index for setting item.
-     */
-    ida: number | undefined;
-    /**
-     * Setting item name
-     */
-    settingName: string | undefined;
-    /**
-     * Current value of this item.
-     */
-    settingValue: string | undefined;
-    /**
-     * Option list for this item.
-     */
-    valueList: SettingItemOption[] = [];
-    /**
-     * settings option type.
-     */
-    settingType: number | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemOption.protoBin


+ 0 - 31
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SettingItemOption.ts

@@ -1,31 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Option of setting item for launcher settings.
- */
-export default class SettingItemOption {
-    /**
-     * Name of this option
-     */
-    name: string | '';
-    /**
-     * Value of this option
-     */
-    value: string | '';
-    /**
-     * True if this item is checked
-     */
-    checked: boolean | false;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SnapShotInfo.protoBin


+ 0 - 35
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/SnapShotInfo.ts

@@ -1,35 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Recent mission SnapShotInfo
- */
-export class SnapShotInfo {
-    /**
-     * snapShot info: mission id
-     */
-    missionId: number | undefined;
-    /**
-     * snapShot info: snapShot image
-     */
-    snapShotImage: any | undefined;
-    /**
-     * snapShot info: snapShot image width
-     */
-    snapShotImageWidth: number | undefined;
-    /**
-     * snapShot info: snapShot image height
-     */
-    snapShotImageHeight: number | undefined;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/index.protoBin


+ 0 - 25
product/phone/.preview/cache/.default/common/src/main/ets/default/bean/index.ts

@@ -1,25 +0,0 @@
-/**
- * Copyright (c) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-export { MenuInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/MenuInfo";
-export { MissionInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/MissionInfo";
-export { AppItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/AppItemInfo";
-export { DockItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/DockItemInfo";
-export { CardItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/CardItemInfo";
-export { LauncherDragItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/LauncherDragItemInfo";
-export { FolderItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/FolderItemInfo";
-export { SnapShotInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/SnapShotInfo";
-export { SettingItemInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/SettingItemInfo";
-export { RecentMissionInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/RecentMissionInfo";
-export { RecentBundleMissionInfo } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/bean/RecentBundleMissionInfo";

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/AppResourceCacheManager.protoBin


+ 0 - 107
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/AppResourceCacheManager.ts

@@ -1,107 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { Log } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/Log";
-import LruCache from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/cache/LruCache";
-import DiskLruCache from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/cache/DiskLruCache";
-const TAG = 'AppResourceCacheManager';
-const KEY_ICON = 'icon';
-const DISK_CACHE_MISS = -1;
-/**
- * A Manager class that provides get/set/clear cache methods for app image data.
- */
-export default class AppResourceCacheManager {
-    private readonly memoryCache;
-    private readonly diskCache;
-    constructor() {
-        this.memoryCache = new LruCache();
-        this.diskCache = new DiskLruCache();
-    }
-    /**
-     * Get cache from disk or memory.
-     *
-     * @param {string} cacheKey - cacheKey of the cache map
-     * @return {object} - cache get from memory or disk
-     */
-    getCache(cacheKey: string, cacheType: string) {
-        const cache = this.getCacheFromMemory(cacheKey, cacheType);
-        if (cache == undefined || cache == null || cache == '') {
-            if (cacheType === KEY_ICON) {
-                const cacheFromDisk = this.getCacheFromDisk(cacheKey, cacheType);
-                this.setCacheToMemory(cacheKey, cacheType, cacheFromDisk);
-                return cacheFromDisk;
-            }
-            return null;
-        }
-        else {
-            return cache;
-        }
-    }
-    /**
-     * Set cache to disk or memory.
-     *
-     * @param {string} cacheKey - cacheKey of the cache map
-     * @param {object} value - value of the cache map
-     */
-    setCache(cacheKey: string, cacheType: string, value: object | string) {
-        Log.showDebug(TAG, `setCache cacheKey: ${cacheKey}, cacheType: ${cacheType}`);
-        this.setCacheToMemory(cacheKey, cacheType, value);
-        if (cacheType === KEY_ICON) {
-            this.setCacheToDisk(cacheKey, cacheType, value);
-        }
-    }
-    /**
-     * Clear cache of both disk and memory.
-     */
-    clearCache(): void {
-        Log.showDebug(TAG, 'clearCache');
-        this.memoryCache.clear();
-    }
-    deleteCache(cacheKey: string, cacheType: string): void {
-        this.memoryCache.remove(cacheKey);
-        if (cacheType === KEY_ICON) {
-            this.diskCache.remove(cacheKey);
-        }
-    }
-    private getCacheFromMemory(cacheKey: string, cacheType: string) {
-        const cache = this.memoryCache.getCache(cacheKey);
-        if (cache == undefined || cache == null || cache == '' || cache === -1) {
-            return null;
-        }
-        else if (cache[cacheType] == undefined || cache[cacheType] == null || cache[cacheType] == '') {
-            return null;
-        }
-        else {
-            return cache[cacheType];
-        }
-    }
-    private setCacheToMemory(cacheKey: string, cacheType: string, value: object | string): void {
-        let cache = this.memoryCache.getCache(cacheKey);
-        if (cache == undefined || cache == null || cache == '' || cache === -1) {
-            cache = {};
-            cache[cacheType] = value;
-        }
-        else {
-            cache[cacheType] = value;
-        }
-        this.memoryCache.putCache(cacheKey, cache);
-    }
-    private getCacheFromDisk(cacheKey: string, cacheType: string) {
-        const data = this.diskCache.getCache(cacheKey);
-        return data !== DISK_CACHE_MISS ? data : null;
-    }
-    private setCacheToDisk(cacheKey: string, cacheType: string, value: object | string): void {
-        this.diskCache.putCache(cacheKey, value);
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/DiskLruCache.protoBin


+ 0 - 83
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/DiskLruCache.ts

@@ -1,83 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const TAG = 'DiskLruCache';
-/**
- * A class provides persistent operation for memory cache.
- */
-export default class DiskLruCache {
-    private readonly cache;
-    private readonly capacity;
-    constructor(capacity = 100) {
-        this.cache = new Map();
-        this.capacity = capacity;
-        this.initMap(); //read cache from local
-    }
-    /**
-     * Init the cache whether the file has data.
-     */
-    initMap(): void {
-    }
-    /**
-     * Get cache from disk.
-     *
-     * @param {string} key - key of the cache map
-     * @return {object} - target cache object
-     */
-    getCache(key: string) {
-        if (this.cache.has(key)) {
-            // exist and update
-            const temp = this.cache.get(key);
-            //delete the old cache
-            this.cache.delete(key);
-            //update the cache to recent use
-            this.cache.set(key, temp);
-            //update local cache to recent use
-            return temp;
-        }
-        return -1;
-    }
-    /**
-     * Put cache to disk.
-     *
-     * @param {string} key - key of the cache map
-     * @param {object} value - value of the cache map
-     */
-    putCache(key: string, value: object | string): void {
-        if (this.cache.has(key)) {
-            // exist and update
-            this.cache.delete(key);
-        }
-        else if (this.cache.size >= this.capacity) {
-            // if size > capacity ,remove the old
-            this.remove(this.cache.keys().next().value);
-        }
-        //update the cache to recent use
-        this.cache.set(key, value);
-    }
-    /**
-     * Remove cache of corresponding key.
-     *
-     * @param {string} key - key of the cache map
-     */
-    remove(key: string): void {
-        this.cache.delete(key);
-    }
-    /**
-     * Clear cache of disk.
-     */
-    clear(): void {
-        this.cache.clear();
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/FormListInfoCacheManager.protoBin


+ 0 - 66
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/FormListInfoCacheManager.ts

@@ -1,66 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import LruCache from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/cache/LruCache";
-import { Log } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/utils/Log";
-import { CommonConstants } from "@bundle:com.ohos.launcher/phone_launcher@launcher_common/ets/default/constants/CommonConstants";
-const TAG = 'FormListInfoCacheManager';
-/**
- * A Manager class that provides get/set/clear cache methods for form list data.
- */
-export class FormListInfoCacheManager {
-    private readonly lruCache;
-    constructor() {
-        this.lruCache = new LruCache();
-    }
-    static getInstance(): FormListInfoCacheManager {
-        if (globalThis.FormListInfoCacheManagerInstance == null) {
-            globalThis.FormListInfoCacheManagerInstance = new FormListInfoCacheManager();
-        }
-        return globalThis.FormListInfoCacheManagerInstance;
-    }
-    /**
-     * Get cache from disk or memory.
-     *
-     * @param {string} key - key of the cache map
-     * @return {object} - cache get from the memory or disk
-     */
-    getCache(key: string): any {
-        Log.showDebug(TAG, `getCache key: ${key}`);
-        const cache = this.lruCache.getCache(key);
-        if (cache == undefined || cache == null || cache == '' || cache == -1) {
-            return CommonConstants.INVALID_VALUE;
-        }
-        else {
-            return cache;
-        }
-    }
-    /**
-     * Set cache to disk or memory.
-     *
-     * @param {string} key - key of the cache map
-     * @param {object} value - value of the cache map
-     */
-    setCache(key: string, value): void {
-        Log.showDebug(TAG, `setCache key:${key}, value: ${value}`);
-        this.lruCache.putCache(key, value);
-    }
-    /**
-     * Clear cache of both disk and memory.
-     */
-    clearCache(): void {
-        Log.showDebug(TAG, 'clearCache');
-        this.lruCache.clear();
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/LruCache.protoBin


+ 0 - 75
product/phone/.preview/cache/.default/common/src/main/ets/default/cache/LruCache.ts

@@ -1,75 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * A class provides memory cache operation.
- */
-export default class LruCache {
-    private readonly cache: Map<string, object | string>;
-    private readonly capacity: number;
-    constructor(capacity = 100) {
-        this.cache = new Map();
-        this.capacity = capacity; //the capacity of cache
-    }
-    /**
-     * Get cache from memory.
-     *
-     * @param {string} key - key of the cache map
-     * @return {any} - cache from memory
-     */
-    getCache(key: string): any {
-        if (this.cache.has(key)) {
-            // exist and update
-            const temp = this.cache.get(key);
-            //delete the old cache
-            this.cache.delete(key);
-            //update the cache to recent use
-            this.cache.set(key, temp);
-            return temp;
-        }
-        return -1;
-    }
-    /**
-     * Put cache to disk.
-     *
-     * @param {string} key - key of the cache map
-     * @param {any} value - value of the cache map
-     */
-    putCache(key: string, value: any): void {
-        if (this.cache.has(key)) {
-            // exist and update
-            this.cache.delete(key);
-        }
-        else if (this.cache.size >= this.capacity) {
-            // if size > capacity ,remove the old
-            this.cache.delete(this.cache.keys().next().value);
-        }
-        //update the cache to recent use
-        this.cache.set(key, value);
-    }
-    /**
-     * Remove cache of corresponding key.
-     *
-     * @param {string} key - key of the cache map
-     */
-    remove(key: string): void {
-        this.cache.delete(key);
-    }
-    /**
-     * Clear cache of memory.
-     */
-    clear(): void {
-        this.cache.clear();
-    }
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/DefaultLayoutConfig.protoBin


+ 0 - 32
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/DefaultLayoutConfig.ts

@@ -1,32 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const defaultLayoutConfig = {
-    defaultAppPageStartConfig: 'Grid',
-    defaultLayoutOptions: [
-        { name: 'List', value: 'List', checked: false },
-        { name: 'Grid', value: 'Grid', checked: false }
-    ],
-    defaultGridConfig: 0,
-    defaultRecentMissionsLimit: 20,
-    defaultRecentMissionsRowConfig: 'single',
-    defaultRecentMissionsLimitArray: [
-        { name: '5', value: 5, checked: false },
-        { name: '10', value: 10, checked: false },
-        { name: '15', value: 15, checked: false },
-        { name: '20', value: 20, checked: false }
-    ],
-    defaultDeviceType: 'phone'
-};
-export default defaultLayoutConfig;

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FolderLayoutInfo.protoBin


+ 0 - 42
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FolderLayoutInfo.ts

@@ -1,42 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const folderLayoutInfo = {
-    folderLayoutTable: {
-        id: 0,
-        layout: '3X3',
-        name: '3X3',
-        row: 3,
-        column: 3,
-        area: [2, 2],
-        checked: false
-    },
-    folderOpenLayoutTable: {
-        id: 1,
-        layout: '4X3',
-        name: '4X3',
-        row: 4,
-        column: 3,
-        checked: false
-    },
-    folderAddAppLayoutTable: {
-        id: 2,
-        layout: '6X4',
-        name: '6X4',
-        row: 6,
-        column: 4,
-        checked: false
-    }
-};
-export default folderLayoutInfo;

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FormLayoutInfo.protoBin


+ 0 - 50
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/FormLayoutInfo.ts

@@ -1,50 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const formLayoutInfo = {
-    formLayoutDimension1X2: {
-        id: 0,
-        layout: '1X2',
-        name: '1X2',
-        row: 1,
-        column: 2,
-        area: [1, 2],
-        checked: false
-    },
-    formLayoutDimension2X2: {
-        id: 1,
-        layout: '2X2',
-        name: '2X2',
-        row: 2,
-        column: 2,
-        checked: false
-    },
-    formLayoutDimension2X4: {
-        id: 2,
-        layout: '2X4',
-        name: '2X4',
-        row: 2,
-        column: 4,
-        checked: false
-    },
-    formLayoutDimension4X4: {
-        id: 3,
-        layout: '4X4',
-        name: '4X4',
-        row: 4,
-        column: 4,
-        checked: false
-    }
-};
-export default formLayoutInfo;

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/GridLayoutConfigs.protoBin


+ 0 - 86
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/GridLayoutConfigs.ts

@@ -1,86 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const GridLayoutConfigs = {
-    GridLayoutTable: [
-        {
-            id: 0,
-            layout: '4X4',
-            name: '4X4',
-            value: 1,
-            row: 4,
-            column: 4,
-            checked: false
-        },
-        {
-            id: 1,
-            layout: '5X4',
-            name: '5X4',
-            value: 0,
-            row: 5,
-            column: 4,
-            checked: false
-        },
-        {
-            id: 2,
-            layout: '6X4',
-            name: '6X4',
-            value: 2,
-            row: 6,
-            column: 4,
-            checked: false
-        },
-    ],
-    GridLayoutTableHorizontal: [
-        {
-            id: 0,
-            layout: '2X6',
-            name: '2X6',
-            value: 0,
-            row: 2,
-            column: 6,
-            checked: false
-        }
-    ],
-    PadGridLayoutTableHorizontal: [
-        {
-            id: 0,
-            layout: '5X11',
-            name: '5X11',
-            value: 0,
-            row: 5,
-            column: 11,
-            checked: false
-        },
-        {
-            id: 1,
-            layout: '4X10',
-            name: '4X10',
-            value: 1,
-            row: 4,
-            column: 10,
-            checked: false
-        },
-        {
-            id: 2,
-            layout: '4X9',
-            name: '4X9',
-            value: 2,
-            row: 4,
-            column: 9,
-            checked: false
-        }
-    ],
-};
-export default GridLayoutConfigs;

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/RdbStoreConfig.protoBin


+ 0 - 116
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/RdbStoreConfig.ts

@@ -1,116 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const RdbStoreConfig = {
-    DB_NAME: 'Launcher.db',
-    DB_VERSION: 1,
-    Badge: {
-        TABLE_NAME: 'BADGE',
-        CREATE_TABLE: 'CREATE TABLE IF NOT EXISTS BADGE ' +
-            '(id INTEGER PRIMARY KEY AUTOINCREMENT, ' +
-            'bundle_name TEXT UNIQUE, ' +
-            'badge_number INTEGER, ' +
-            'display INTEGER, ' +
-            'user_id INTEGER)'
-    },
-    Form: {
-        TABLE_NAME: 'FORM',
-        CREATE_TABLE: 'CREATE TABLE IF NOT EXISTS FORM ' +
-            '(id INTEGER PRIMARY KEY AUTOINCREMENT, ' +
-            'card_id INTEGER, ' +
-            'card_name TEXT, ' +
-            'bundle_name TEXT, ' +
-            'ability_name TEXT, ' +
-            'module_name TEXT, ' +
-            'config_ability TEXT, ' +
-            'app_label_id INTEGER, ' +
-            'dimension INTEGER)'
-    },
-    Settings: {
-        TABLE_NAME: 'SETTINGS',
-        CREATE_TABLE: 'CREATE TABLE IF NOT EXISTS SETTINGS ' +
-            '(id INTEGER PRIMARY KEY AUTOINCREMENT, ' +
-            'app_start_page_type TEXT, ' +
-            'grid_config INTEGER, ' +
-            'device_type TEXT, ' +
-            'page_count INTEGER, ' +
-            'row INTEGER, ' +
-            'column INTEGER)'
-    },
-    SmartDock: {
-        TABLE_NAME: 'SMARTDOCK',
-        CREATE_TABLE: 'CREATE TABLE IF NOT EXISTS SMARTDOCK ' +
-            '(id INTEGER PRIMARY KEY AUTOINCREMENT, ' +
-            'item_type INTEGER, ' +
-            'editable INTEGER, ' +
-            'bundle_name TEXT, ' +
-            'ability_name TEXT, ' +
-            'module_name TEXT, ' +
-            'app_icon_id INTEGER, ' +
-            'app_label_id INTEGER, ' +
-            'app_name TEXT, ' +
-            'is_system_app INTEGER, ' +
-            'is_uninstallAble INTEGER, ' +
-            'key_name TEXT, ' +
-            'install_time TEXT)'
-    },
-    DesktopApplicationInfo: {
-        TABLE_NAME: 'DESKTOPAPPLICATIONINFO',
-        CREATE_TABLE: 'CREATE TABLE IF NOT EXISTS DESKTOPAPPLICATIONINFO ' +
-            '(id INTEGER PRIMARY KEY AUTOINCREMENT, ' +
-            'app_name TEXT, ' +
-            'is_system_app INTEGER, ' +
-            'badge_number INTEGER, ' +
-            'is_uninstallAble INTEGER, ' +
-            'appIcon_id INTEGER, ' +
-            'appLabel_id INTEGER, ' +
-            'bundle_name TEXT, ' +
-            'module_name TEXT, ' +
-            'ability_name TEXT, ' +
-            'key_name TEXT UNIQUE, ' +
-            'install_time TEXT, ' +
-            'extend1 TEXT, ' +
-            'extend2 TEXT, ' +
-            'extend3 INTEGER)'
-    },
-    GridLayoutInfo: {
-        TABLE_NAME: 'GRIDLAYOUTINFO',
-        CREATE_TABLE: 'CREATE TABLE IF NOT EXISTS GRIDLAYOUTINFO ' +
-            '(id INTEGER PRIMARY KEY AUTOINCREMENT, ' +
-            'card_id INTEGER, ' +
-            'folder_id TEXT UNIQUE, ' +
-            'container INTEGER, ' +
-            'folder_name TEXT, ' +
-            'badge_number INTEGER, ' +
-            'type_id INTEGER, ' +
-            'area TEXT, ' +
-            'page INTEGER, ' +
-            'column INTEGER, ' +
-            'row INTEGER, ' +
-            'app_name TEXT, ' +
-            'is_system_app INTEGER, ' +
-            'is_uninstallAble INTEGER, ' +
-            'appIcon_id INTEGER, ' +
-            'appLabel_id INTEGER, ' +
-            'bundle_name TEXT, ' +
-            'module_name TEXT, ' +
-            'ability_name TEXT, ' +
-            'key_name TEXT UNIQUE, ' +
-            'install_time TEXT, ' +
-            'extend1 TEXT, ' +
-            'extend2 TEXT, ' +
-            'extend3 INTEGER)'
-    }
-};
-export default RdbStoreConfig;

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SettingItemsConfig.protoBin


+ 0 - 143
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SettingItemsConfig.ts

@@ -1,143 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Setting item configuration class, read-only
- */
-export class SettingItemsConfig {
-    /**
-     * layout options: grid or list
-     */
-    static readonly SETTING_ITEM_LAYOUT_OPTIONS = 'LayoutOptions';
-    /**
-     * Setting options name
-     */
-    static readonly SETTING_ITEM_PHONE_GRID_LAYOUT_OPTIONS = 'PhoneGridLayOutOptions';
-    /**
-     * Setting options name
-     */
-    static readonly SETTING_ITEM_PAD_GRID_LAYOUT_OPTIONS = 'PadGridLayOutOptions';
-    /**
-     * Index: Layout settings
-     */
-    static readonly SETTINGS_INDEX_LAYOUT: number = 0;
-    /**
-     * Index: grid layout
-     */
-    static readonly SETTINGS_INDEX_GRID_LAYOUT: number = 1;
-    /**
-     * Applicable equipment: Not supported on all devices
-     */
-    static readonly DEVICE_TYPE_NULL: number = 0;
-    /**
-     * Applicable equipment: phone support
-     */
-    static readonly DEVICE_TYPE_PHONE: number = 1;
-    /**
-     * Applicable equipment: pad support
-     */
-    static readonly DEVICE_TYPE_PAD: number = 1 << 1;
-    /**
-     * Applicable conditions: no restrictions
-     */
-    static readonly CONDITION_ALL: number = 0xffffffff;
-    /**
-     * Applicable conditions: Valid for list layout
-     */
-    static readonly CONDITION_LIST_LAYOUT_ENABLE: number = 1;
-    /**
-     * Applicable conditions: Valid for grid layout
-     */
-    static readonly CONDITION_GRID_LAYOUT_ENABLE: number = 1 << 1;
-    /**
-     * setting type: Single box
-     */
-    static readonly SETTING_TYPE_RADIO = 1;
-    /**
-     * setting type: switch
-     */
-    static readonly SETTING_TYPE_SWITCH = 2;
-    /**
-     * hide options
-     */
-    static readonly HIDE_OPTIONS: boolean = false;
-    /**
-     * show options
-     */
-    static readonly SHOW_OPTIONS: boolean = true;
-    /**
-     * setting options info
-     */
-    static readonly sSettingsMap = {
-        // LayoutOptions
-        'LayoutOptions': {
-            index: SettingItemsConfig.SETTINGS_INDEX_LAYOUT,
-            description: { "id": 218103963, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" },
-            settingType: SettingItemsConfig.SETTING_TYPE_RADIO,
-            deviceType: SettingItemsConfig.DEVICE_TYPE_PHONE,
-            condition: SettingItemsConfig.CONDITION_ALL,
-            optionList: [
-                { name: 'List' },
-                { name: 'Grid' }
-            ],
-            isShowOptions: SettingItemsConfig.HIDE_OPTIONS
-        },
-        // PhoneGridLayOutOptions
-        'PhoneGridLayOutOptions': {
-            index: SettingItemsConfig.SETTINGS_INDEX_GRID_LAYOUT,
-            description: { "id": 218103961, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" },
-            settingType: SettingItemsConfig.SETTING_TYPE_RADIO,
-            deviceType: SettingItemsConfig.DEVICE_TYPE_PHONE,
-            condition: SettingItemsConfig.CONDITION_GRID_LAYOUT_ENABLE,
-            optionList: [
-                { name: '4X4', params: { row: 4, column: 4 } },
-                { name: '5X4', params: { row: 5, column: 4 } },
-                { name: '6X4', params: { row: 6, column: 4 } }
-            ],
-            isShowOptions: SettingItemsConfig.HIDE_OPTIONS
-        },
-        // PadGridLayOutOptions
-        'PadGridLayOutOptions': {
-            index: SettingItemsConfig.SETTINGS_INDEX_GRID_LAYOUT,
-            description: { "id": 218103961, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" },
-            settingType: SettingItemsConfig.SETTING_TYPE_RADIO,
-            deviceType: SettingItemsConfig.DEVICE_TYPE_PAD,
-            condition: SettingItemsConfig.CONDITION_GRID_LAYOUT_ENABLE,
-            optionList: [
-                { name: '5X11', params: { row: 5, column: 11 } },
-                { name: '4X10', params: { row: 4, column: 10 } },
-                { name: '4X9', params: { row: 4, column: 9 } }
-            ],
-            isShowOptions: SettingItemsConfig.HIDE_OPTIONS
-        },
-        // PhoneGestureNavigationOptions
-        'PhoneGestureNavigationOptions': {
-            index: 2,
-            description: { "id": 218103956, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" },
-            settingType: SettingItemsConfig.SETTING_TYPE_SWITCH,
-            deviceType: SettingItemsConfig.DEVICE_TYPE_PHONE,
-            condition: SettingItemsConfig.CONDITION_GRID_LAYOUT_ENABLE,
-            isShowOptions: SettingItemsConfig.SHOW_OPTIONS
-        },
-        // PadGestureNavigationOptions
-        'PadGestureNavigationOptions': {
-            index: 2,
-            description: { "id": 218103956, "type": 10003, params: [], "bundleName": "com.ohos.launcher", "moduleName": "phone_launcher" },
-            settingType: SettingItemsConfig.SETTING_TYPE_SWITCH,
-            deviceType: SettingItemsConfig.DEVICE_TYPE_PAD,
-            condition: SettingItemsConfig.CONDITION_GRID_LAYOUT_ENABLE,
-            isShowOptions: SettingItemsConfig.SHOW_OPTIONS
-        },
-    };
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SystemApplication.protoBin


+ 0 - 18
product/phone/.preview/cache/.default/common/src/main/ets/default/configs/SystemApplication.ts

@@ -1,18 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const SystemApplication = {
-    SystemApplicationName: 'com.ohos.launcher,com.ohos.systemui,com.ohos.devicemanagerui,com.ohos.callui,com.example.kikakeyboard,com.ohos.contactdataability,com.ohos.telephonydataability,com.ohos.medialibrary.MediaLibraryDataA,com.ohos.medialibrary.MediaScannerAbilityA,com.ohos.adminprovisioning'
-};
-export default SystemApplication;

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/CommonConstants.protoBin


+ 0 - 243
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/CommonConstants.ts

@@ -1,243 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Common constants for all features.
- */
-export class CommonConstants {
-    /**
-     * dock space
-     */
-    static DOCK_SPACE = 0.1;
-    /**
-     * Bundle name of launcher
-     */
-    static LAUNCHER_BUNDLE = 'com.ohos.launcher';
-    /**
-    * Module name of AppCenter.
-    */
-    static MODULE_NAME = 'pad_launcher';
-    /**
-     * Ability name of AppCenter.
-     */
-    static APPCENTER_ABILITY = 'com.ohos.launcher.appcenter.MainAbility';
-    /**
-     * Ability name of launcher settings.
-     */
-    static SETTING_ABILITY = 'com.ohos.launcher.settings.MainAbility';
-    /**
-    * Module name of launcher settings.
-    */
-    static SETTING_MODULE = 'launcher_settings';
-    /**
-     * Ability name of launcher Recents.
-     */
-    static RECENT_ABILITY = 'com.ohos.launcher.recents.MainAbility';
-    /**
-     * Launcher Ability name.
-     */
-    static LAUNCHER_ABILITY = 'com.ohos.launcher.MainAbility';
-    /**
-     * Default invalid value.
-     */
-    static INVALID_VALUE = -1;
-    /**
-     * folder min app count
-     */
-    static FOLDER_APP_VALUE = 1;
-    /**
-     * Status code if uninstal succeeded, success, successful.
-     */
-    static UNINSTALL_SUCCESS = 0;
-    /**
-     * Status code if uninstall is forbidden.
-     */
-    static UNINSTALL_FORBID = 1;
-    /**
-     * Grid item type for apps.
-     */
-    static TYPE_APP = 0;
-    /**
-     * Grid item type for cards.
-     */
-    static TYPE_CARD = 1;
-    /**
-     * Grid item type for functions.
-     */
-    static TYPE_FUNCTION = 2;
-    /**
-     * folder type in desktop
-     */
-    static TYPE_FOLDER = 3;
-    /**
-     * add icon type in opening folder
-     */
-    static TYPE_ADD = 4;
-    /**
-     * Card dimension constants for 1 row 2 columns.
-     */
-    static CARD_DIMENSION_1x2 = 1;
-    /**
-     * Card dimension constants for 2 rows 2 columns.
-     */
-    static CARD_DIMENSION_2x2 = 2;
-    /**
-     * Card dimension constants for 2 rows 4 columns.
-     */
-    static CARD_DIMENSION_2x4 = 3;
-    /**
-     * Card dimension constants for 4 rows 4 columns.
-     */
-    static CARD_DIMENSION_4x4 = 4;
-    /**
-     * Common level layout config. Default config for common components.
-     */
-    static LAYOUT_CONFIG_LEVEL_COMMON = 'common';
-    /**
-     * Feature level layout config. Default config for components in this feature.
-     */
-    static LAYOUT_CONFIG_LEVEL_FEATURE = 'feature';
-    /**
-     * Product level layout config. Custom config for this product.
-     */
-    static LAYOUT_CONFIG_LEVEL_PRODUCT = 'product';
-    /**
-     * Layout config type for layout mode.
-     */
-    static LAYOUT_CONFIG_TYPE_MODE = 0;
-    /**
-     * Layout config type for layout style.
-     */
-    static LAYOUT_CONFIG_TYPE_STYLE = 1;
-    /**
-     * Layout config type for layout function.
-     */
-    static LAYOUT_CONFIG_TYPE_FUNCTION = 2;
-    /**
-     * Default device type constant.
-     */
-    static DEFAULT_DEVICE_TYPE = 'phone';
-    /**
-     * Device type constant for tablet.
-     */
-    static PAD_DEVICE_TYPE = 'pad';
-    /**
-     * Overlay blur radius.
-     */
-    static OVERLAY_BLUR_RADIUS = 20;
-    /**
-     * Overlay type for hidden items.
-     */
-    static OVERLAY_TYPE_HIDE = -1;
-    /**
-     * Overlay type for app menus.
-     */
-    static OVERLAY_TYPE_APP_MENU = 0;
-    /**
-     * Overlay type for app icons.
-     */
-    static OVERLAY_TYPE_APP_ICON = 1;
-    /**
-     * Overlay type for folders.
-     */
-    static OVERLAY_TYPE_FOLDER = 2;
-    /**
-     * Overlay type for forms
-     */
-    static OVERLAY_TYPE_CARD = 3;
-    /**
-     * Overlay type for residential.
-     */
-    static OVERLAY_TYPE_APP_RESIDENTIAL = 4;
-    /**
-   * Overlay type for recentdock.
-   */
-    static OVERLAY_TYPE_APP_RECENT = 5;
-    /**
-     * Menu type for fixed items.
-     */
-    static MENU_TYPE_FIXED = 0;
-    /**
-     * Menu type for dynamic items.
-     */
-    static MENU_TYPE_DYNAMIC = 1;
-    /**
-     * Light mode menus.
-     */
-    static MENU_UI_MODE_LIGHT = 0;
-    /**
-     * Dark mode menus.
-     */
-    static MENU_UI_MODE_DARK = 1;
-    /**
-     * Drag item type for apps.
-     */
-    static APP_TYPE_DRAG_ITEM = 0;
-    /**
-     * Touch event type for down events.
-     */
-    static TOUCH_TYPE_DOWN = 0;
-    /**
-     * Touch event type for move events.
-     */
-    static TOUCH_TYPE_MOVE = 2;
-    /**
-     * Touch event type for up events.
-     */
-    static TOUCH_TYPE_UP = 1;
-    /**
-     * FolderComponent max show length
-     */
-    static FOLDER_STATIC_SHOW_LENGTH = 11;
-    /**
-     * FolderComponent superpose app length
-     */
-    static FOLDER_STATIC_SUPERPOSEAPP_LENGTH = 3;
-    /**
-     * folder name max length
-     */
-    static FOLDER_NAME_MAX_LENGTH = 100;
-    /**
-     * hide badge
-     */
-    static BADGE_DISPLAY_HIDE = 0;
-    /**
-     * show badge
-     */
-    static BADGE_DISPLAY_SHOW = 1;
-    /**
-     * default user id
-     */
-    static DEFAULT_USER_ID = 0;
-    /**
-     * form config ability prefix
-     */
-    static FORM_CONFIG_ABILITY_PREFIX: string = 'ability://';
-    /**
-     * navigationbar status settingDataKey.
-     */
-    static NAVIGATION_BAR_STATUS_KEY: string = 'settings.display.navigationbar_status';
-    /**
-     * setting data ability uri
-     */
-    static SETTING_DATA_ABILITY_URI: string = 'dataability:///com.ohos.settingsdata.DataAbility';
-    /**
-     * Drag events from the smartDock.
-     */
-    static DRAG_FROM_DOCK = 1;
-    /**
-     * Drag events from the workspace.
-     */
-    static DRAG_FROM_DESKTOP = 2;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/EventConstants.protoBin


+ 0 - 49
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/EventConstants.ts

@@ -1,49 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Constants of events that will be registered to system.
- */
-export const EventConstants = {
-    // system events
-    EVENT_PACKAGE_ADDED: 'usual.event.PACKAGE_ADDED',
-    EVENT_PACKAGE_CHANGED: 'usual.event.PACKAGE_CHANGED',
-    EVENT_PACKAGE_REMOVED: 'usual.event.PACKAGE_REMOVED',
-    // pagedesktop events
-    EVENT_REQUEST_PAGEDESK_ITEM_ADD: 'launcher.event.REQUEST_PAGEDESK_ITEM_ADD',
-    EVENT_REQUEST_PAGEDESK_ITEM_DELETE: 'launcher.event.REQUEST_PAGEDESK_ITEM_DELETE',
-    EVENT_REQUEST_PAGEDESK_ITEM_UPDATE: 'launcher.event.EVENT_REQUEST_PAGEDESK_ITEM_UPDATE',
-    EVENT_REQUEST_PAGEDESK_FORM_ITEM_ADD: 'launcher.event.EVENT_REQUEST_PAGEDESK_FORM_ITEM_ADD',
-    EVENT_REQUEST_FORM_ITEM_VISIBLE: 'launcher.event.REQUEST_FORM_ITEM_VISIBLE',
-    EVENT_SMARTDOCK_INIT_FINISHED: 'launcher.event.EVENT_SMARTDOCK_INIT_FINISHED',
-    EVENT_BADGE_UPDATE: 'launcher.event.EVENT_BADGE_UPDATE',
-    EVENT_REQUEST_PAGEDESK_REFRESH: 'EVENT_REQUEST_PAGEDESK_REFRESH',
-    // smartdock events
-    EVENT_REQUEST_DOCK_ITEM_ADD: 'launcher.event.REQUEST_DOCK_ITEM_ADD',
-    EVENT_REQUEST_RESIDENT_DOCK_ITEM_DELETE: 'launcher.event.REQUEST_DOCK_ITEM_DELETE',
-    EVENT_REQUEST_RECENT_DOCK_ITEM_DELETE: 'launcher.event.RECENT_DOCK_ITEM_DELETE',
-    EVENT_REQUEST_RESIDENT_DOCK_ITEM_UPDATE: 'launcher.event.EVENT_REQUEST_RESIDENT_DOCK_ITEM_UPDATE',
-    // bigfolder events
-    EVENT_FOLDER_PACKAGE_REMOVED: 'usual.event.FOLDER_PACKAGE_REMOVED',
-    EVENT_OPEN_FOLDER_TO_CLOSE: 'launcher.event.EVENT_OPEN_FOLDER_TO_CLOSE',
-    // gesturenavigation events
-    EVENT_NAVIGATOR_BAR_STATUS_CHANGE: 'usual.event.NAVIGATOR_BAR_STATUS_CHANGE',
-    // animation event
-    EVENT_ANIMATION_START_APPLICATION: 'launcher.event.EVENT_ANIMATION_START_APPLICATION',
-    EVENT_ANIMATION_CLOSE_APPLICATION: 'launcher.event.EVENT_ANIMATION_CLOSE_APPLICATION',
-    // form event
-    EVENT_REQUEST_RECOMMEND_FORM_ADD: 'launcher.event.EVENT_REQUEST_RECOMMEND_FORM_ADD',
-    EVENT_REQUEST_RECOMMEND_FORM_UPDATE: 'launcher.event.EVENT_REQUEST_RECOMMEND_FORM_UPDATE',
-    EVENT_REQUEST_RECOMMEND_FORM_DELETE: 'launcher.event.EVENT_REQUEST_RECOMMEND_FORM_DELETE',
-};

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/FormConstants.protoBin


+ 0 - 29
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/FormConstants.ts

@@ -1,29 +0,0 @@
-/**
- * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Constants of events that will be registered to system.
- */
-export const FormConstants = {
-    // publish form action
-    ACTION_PUBLISH_FORM: "action.form.publish",
-    // publish card parameters
-    ID_PARAM: "ohos.extra.param.key.form_identity",
-    NAME_PARAM: "ohos.extra.param.key.form_name",
-    BUNDLE_PARAM: "ohos.extra.param.key.bundle_name",
-    ABILITY_PARAM: "ohos.extra.param.key.ability_name",
-    MODULE_PARAM: "ohos.extra.param.key.module_name",
-    DIMENSION_PARAM: "ohos.extra.param.key.form_dimension",
-    TEMPORARY_PARAM: "ohos.extra.param.key.form_temporary"
-};

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/NumberConstants.protoBin


+ 0 - 69
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/NumberConstants.ts

@@ -1,69 +0,0 @@
-/**
- * Copyright (c) 2023-2023 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * NumberConstants
- */
-export class NumberConstants {
-    /**
-     * Constant Number 0
-     */
-    static readonly CONSTANT_NUMBER_ZERO = 0;
-    /**
-     * Constant Number 1
-     */
-    static readonly CONSTANT_NUMBER_ONE = 1;
-    /**
-     * Constant Number 2
-     */
-    static readonly CONSTANT_NUMBER_TWO = 2;
-    /**
-     * Constant Number 3
-     */
-    static readonly CONSTANT_NUMBER_THREE = 3;
-    /**
-     * Constant Number 9
-     */
-    static readonly CONSTANT_NUMBER_NINE = 9;
-    /**
-     * Constant Number 8
-     */
-    static readonly CONSTANT_NUMBER_EIGHT = 8;
-    /**
-     * Constant Number 10
-     */
-    static readonly CONSTANT_NUMBER_TEN = 10;
-    /**
-     * Constant Number 12
-     */
-    static readonly CONSTANT_NUMBER_TWELVE = 12;
-    /**
-     * Constant Number 24
-     */
-    static readonly CONSTANT_NUMBER_HOUR_TWENTY_FOUR = 24;
-    /**
-     * Constant Number 60
-     */
-    static readonly CONSTANT_NUMBER_SIXTY = 60;
-    /**
-     * Constant Number 1000
-     */
-    static readonly CONSTANT_NUMBER_ONE_THOUSAND = 1000;
-    /**
-     * Constant Number 1000
-     */
-    static readonly CONSTANT_DAY_TIME_MILLIS = NumberConstants.CONSTANT_NUMBER_HOUR_TWENTY_FOUR *
-        NumberConstants.CONSTANT_NUMBER_SIXTY * NumberConstants.CONSTANT_NUMBER_SIXTY *
-        NumberConstants.CONSTANT_NUMBER_ONE_THOUSAND;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/PresetStyleConstants.protoBin


+ 0 - 236
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/PresetStyleConstants.ts

@@ -1,236 +0,0 @@
-/*
- * Copyright (c) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-export class PresetStyleConstants {
-    //----------- default constants----------
-    /**
-      * CommonDialog width
-     */
-    static readonly DEFAULT_COMMONDIALOG_WIDTH = '';
-    /**
-     * systemUI top height
-     */
-    static readonly DEFAULT_SYS_TOP_HEIGHT = 44;
-    /**
-     * systemUI bottom height
-     */
-    static readonly DEFAULT_SYS_BOTTOM_HEIGHT = 44;
-    /**
-     * pad system ui height
-     */
-    static readonly DEFAULT_PAD_SYSTEM_UI = 88;
-    /**
-     * phone system ui height
-     */
-    static readonly DEFAULT_PHONE_SYSTEM_UI = 132;
-    /**
-     * desktop indicator height
-     */
-    static readonly DEFAULT_PAD_INDICATOR_HEIGHT = 32;
-    /**
-     * desktop indicator height
-     */
-    static readonly DEFAULT_PHONE_INDICATOR_HEIGHT = 32;
-    /**
-     * columns of screen with phone
-     */
-    static readonly DEFAULT_PHONE_GRID_APP_COLUMNS = 4;
-    /**
-     * columns of screen with pad
-     */
-    static readonly DEFAULT_PAD_GRID_APP_COLUMNS = 12;
-    /**
-     * threshold value of dock isShow recent dock
-     */
-    static readonly DEFAULT_DOCK_RECENT_WIDTH = 520;
-    /**
-     * padding top of icon
-     */
-    static readonly DEFAULT_ICON_PADDING_TOP = 0;
-    /**
-     *  padding left of icon
-     */
-    static readonly DEFAULT_ICON_PADDING_LEFT = 21;
-    /**
-     * icon size
-     */
-    static readonly DEFAULT_ICON_SIZE = 54;
-    /**
-     * text lines height
-     */
-    static readonly DEFAULT_TEXT_LINES = 36;
-    /**
-     * padding of app center
-     */
-    static readonly DEFAULT_APP_CENTER_PADDING = 100;
-    /**
-     * screen grid margin and gap
-     */
-    static readonly DEFAULT_SCREEN_GRID_GAP_AND_MARGIN = 12;
-    //----------- desktop layout-------------
-    /**
-     * desktop item size
-     */
-    static readonly DEFAULT_APP_LAYOUT_SIZE = 96;
-    /**
-     * desktop container margin
-     */
-    static readonly DEFAULT_LAYOUT_MARGIN = 82;
-    /**
-     * desktop container minimum gutter
-     */
-    static readonly DEFAULT_APP_LAYOUT_MIN_GUTTER = 6;
-    //----------- desktop icon-------------
-    /**
-     * desktop item padding top
-     */
-    static readonly DEFAULT_APP_TOP_RATIO = 0;
-    /**
-     * desktop item name lines
-     */
-    static readonly DEFAULT_APP_NAME_LINES = 2;
-    /**
-     * desktop item name size
-     */
-    static readonly DEFAULT_APP_NAME_TEXT_SIZE = 18;
-    /**
-     * desktop item icon and name gap
-     */
-    static readonly DEFAULT_ICON_NAME_GAP = 4;
-    /**
-     * desktop icon name height
-     */
-    static readonly DEFAULT_DESKTOP_NAME_HEIGHT = 36;
-    /**
-     * desktop icon name margin
-     */
-    static readonly DEFAULT_DESKTOP_NAME_MARGIN = 3;
-    //----------- desktop folder-----------
-    /**
-     * folder gutter with container size
-     */
-    static readonly DEFAULT_FOLDER_GUTTER_RATIO = 0.06;
-    /**
-     * folder padding with container size
-     */
-    static readonly DEFAULT_FOLDER_PADDING_RATIO = 0.1;
-    //----------- desktop open --------------
-    /**
-     * gutter of open folder
-     */
-    static readonly DEFAULT_OPEN_FOLDER_GUTTER = 12;
-    /**
-     * padding of open folder
-     */
-    static readonly DEFAULT_OPEN_FOLDER_PADDING = 16;
-    /**
-     * margin top of open folder
-     */
-    static readonly DEFAULT_OPEN_FOLDER_MARGIN_TOP = 188;
-    /**
-     * margin top of open folder
-     */
-    static readonly DEFAULT_OPEN_FOLDER_TITLE_TOP = 40;
-    //----------- folder add list ------------------
-    /**
-     * max height of container
-     */
-    static readonly DEFAULT_FOLDER_ADD_MAX_HEIGHT = 0.6;
-    /**
-     * margin of container
-     */
-    static readonly DEFAULT_FOLDER_ADD_MARGIN = 12;
-    /**
-     * gutter of container
-     */
-    static readonly DEFAULT_FOLDER_ADD_GAP = 12;
-    /**
-     * toggle of item
-     */
-    static readonly DEFAULT_APP_GRID_TOGGLE_SIZE = 16;
-    /**
-     * icon padding of item with item size
-     */
-    static readonly DEFAULT_FOLDER_ADD_ICON_TOP_RATIO = 0.1;
-    /**
-     * name size of container
-     */
-    static readonly DEFAULT_FOLDER_ADD_GRID_TEXT_SIZE = 16;
-    /**
-     * title size of container
-     */
-    static readonly DEFAULT_FOLDER_ADD_TITLE_TEXT_SIZE = 20;
-    /**
-     * name lines of item
-     */
-    static readonly DEFAULT_FOLDER_ADD_TEXT_LINES = 2;
-    /**
-     * button size of container
-     */
-    static readonly DEFAULT_FOLDER_ADD_BUTTON_SIZE = 24;
-    //----------- app center--------------
-    /**
-     * margin left of app center
-     */
-    static readonly DEFAULT_APP_CENTER_MARGIN = 218;
-    /**
-     * gutter of app center
-     */
-    static readonly DEFAULT_APP_CENTER_GUTTER = 12;
-    /**
-     * item size of app center
-     */
-    static readonly DEFAULT_APP_CENTER_SIZE = 112;
-    /**
-     * icon padding top with item size
-     */
-    static readonly DEFAULT_APP_CENTER_TOP_RATIO = 0;
-    /**
-     * name lines of app center
-     */
-    static readonly DEFAULT_APP_CENTER_NAME_LINES = 2;
-    /**
-     * name size of app center
-     */
-    static readonly DEFAULT_APP_CENTER_NAME_TEXT_SIZE = 18;
-    //----------- dock----------------
-    /**
-     * icon size of dock
-     */
-    static readonly DEFAULT_DOCK_ICON_SIZE = 54;
-    /**
-     * padding of dock
-     */
-    static readonly DEFAULT_DOCK_PADDING = 12;
-    /**
-     * gap of dock container
-     */
-    static readonly DEFAULT_DOCK_ITEM_GAP = 8;
-    /**
-     * gap with resident and recent
-     */
-    static readonly DEFAULT_DOCK_GUTTER = 12;
-    /**
-     * save margin of dock
-     */
-    static readonly DEFAULT_DOCK_SAVE_MARGIN = 24;
-    /**
-     * margin bottom of dock
-     */
-    static readonly DEFAULT_DOCK_MARGIN_BOTTOM = 10;
-    /**
-     * margin bottom of dock(Immersive navigation bar)
-     */
-    static readonly DEFAULT_DOCK_MARGIN_BOTTOM_HIDE_BAR = 10;
-}

BIN
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/RemoteConstants.protoBin


+ 0 - 47
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/RemoteConstants.ts

@@ -1,47 +0,0 @@
-/**
- * Copyright (c) 2022-2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * remote animation constants.
- */
-export default class RemoteConstants {
-    /**
-     * remote type for start app from launcher
-     */
-    static TYPE_START_APP_FROM_LAUNCHER = 0;
-    /**
-     * remote type for start app from recent
-     */
-    static TYPE_START_APP_FROM_RECENT = 1;
-    /**
-     * remote type for start app from other
-     */
-    static TYPE_START_APP_FROM_OTHER = 2;
-    /**
-     * remote type for app transition
-     */
-    static TYPE_APP_TRANSITION = 3;
-    /**
-     * remote type for minimize window
-     */
-    static TYPE_MINIMIZE_WINDOW = 4;
-    /**
-     * remote type for close window
-     */
-    static TYPE_CLOSE_WINDOW = 5;
-    /**
-     * remote type for screen unlock
-     */
-    static TYPE_SCREEN_UNLOCK = 6;
-}

+ 0 - 0
product/phone/.preview/cache/.default/common/src/main/ets/default/constants/StyleConstants.protoBin


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません