/*
 * Copyright (c) 2024 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": {
    "name": "entry_test",
    "type": "feature",
    "description": "$string:module_test_desc",
    "mainElement": "TestAbility",
    "deviceTypes": [],
    "deliveryWithInstall": true,
    "installationFree": false,
    "pages": "$profile:test_pages",
    "abilities": [
      {
        "name": "TestAbility",
        "srcEntry": "./ets/testability/TestAbility.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
        "skills": [
          {
            "actions": [
              "action.system.home"
            ],
            "entities": [
              "entity.system.home"
            ]
          }
        ],
        "metadata":[
          {
            "name":"enable.remove.starting.window",
            "value":'true'
          }
        ]
      },
      {
        "name": "StartAbility",
        "srcEntry": "./ets/testability/StartAbility.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "StartAbility2",
        "srcEntry": "./ets/testability/StartAbility2.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "StartTestAbility",
        "srcEntry": "./ets/testability/StartTestAbility.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "StartTestAbility2",
        "srcEntry": "./ets/testability/StartTestAbility2.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "specified",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "StartTestAbility3",
        "srcEntry": "./ets/testability/StartTestAbility3.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "StartTestAbility4",
        "srcEntry": "./ets/testability/StartTestAbility4.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "StartTestAbility5",
        "srcEntry": "./ets/testability/StartTestAbility5.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
        "metadata": [{
          "name": "ohos.ability.window.isMaximize",
          "value": "true"
        }]
      },
      {
        "name": "StartTestAbility6",
        "srcEntry": "./ets/testability/StartTestAbility6.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
        "metadata": [{
          "name": "ohos.ability.window.SupportWindowModeInFreeWindow",
          "value": "floating"
        }]
      },
      {
        "name": "StartTestAbility7",
        "srcEntry": "./ets/testability/StartTestAbility7.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "landscape",
      },
      {
        "name": "TestAbilityDensity1",
        "srcEntry": "./ets/testability/TestAbilityDensity1.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "TestAbilityDensity2",
        "srcEntry": "./ets/testability/TestAbilityDensity2.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "orientation": "portrait",
      },
      {
        "name": "NavtionStartAbility",
        "srcEntry": "./ets/testability/NavtionStartAbility.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
      }
    ,
      {
        "name": "NavtionStartAbility2",
        "srcEntry": "./ets/testability/NavtionStartAbility2.ets",
        "description": "$string:TestAbility_desc",
        "icon": "$media:icon",
        "label": "$string:TestAbility_label",
        "exported": true,
        "launchType": "multiton",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
      }
    ],
    "extensionAbilities": [
      {
        "name": "ExampleEmbeddedAbility",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "exported": true,
        "srcEntry": "./ets/testability/EmbeddedAbility.ets",
        "type": "embeddedUI"
      },
      {
        "name": "EmbeddedCreateSubWindowTrueAbility",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "exported": true,
        "srcEntry": "./ets/testability/EmbeddedCreateSubWindowTrueOptionsAbility.ets",
        "type": "embeddedUI"
      },
      {
        "name": "EmbeddedCreateSubWindowFalseAbility",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "exported": true,
        "srcEntry": "./ets/testability/EmbeddedCreateSubWindowFalseOptionsAbility.ets",
        "type": "embeddedUI"
      },
      {
        "name": "EmbeddedRectTestAbility",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "exported": true,
        "srcEntry": "./ets/testability/EmbeddedRectTestAbility.ets",
        "type": "embeddedUI"
      },
      {
        "name": "EmbeddedOccupyTestAbility",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "exported": true,
        "srcEntry": "./ets/testability/EmbeddedOccupyTestAbility.ets",
        "type": "embeddedUI"
      },
      {
        "name": "EmbeddedOccupyErrorCodeTestAbility",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "exported": true,
        "srcEntry": "./ets/testability/EmbeddedOccupyErrorCodeTestAbility.ets",
        "type": "embeddedUI"
      },
      {
        "name": "EmbeddedGetWindowAvoidAreaAbility",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "exported": true,
        "srcEntry": "./ets/testability/EmbeddedGetWindowAvoidAreaAbility.ets",
        "type": "embeddedUI"
      }
    ],
    "requestPermissions": [
      {
        "name": "ohos.permission.PRIVACY_WINDOW",
      },
      {
        "name": "ohos.permission.SYSTEM_FLOAT_WINDOW"
      },
      {
        "name": "ohos.permission.CUSTOM_SCREEN_CAPTURE"
      },
      {
        "name": "ohos.permission.WINDOW_TOPMOST",
        "usedScene": {
          "abilities": [
            "EntryAbility"
          ],
          "when": "always"
        }
      }
    ]
  }
}