<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2019 The Android Open Source Project
  ~
  ~ 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.
  -->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.android.cts.appsearch">

    <!--The Harrier library uses the READ_EXTERNAL_STORAGE permission. We have a test that
        assumes this test app does not have this permission. So removes it. -->
    <uses-permission
        android:name="android.permission.READ_EXTERNAL_STORAGE"
        tools:node="remove" />

    <queries>
        <package android:name="com.android.cts.appsearch.helper.a" />
        <package android:name="com.android.cts.appsearch.helper.b" />
    </queries>

    <application android:label="CtsAppSearchTestCases">
        <uses-library android:name="android.test.runner"/>

        <activity android:name="android.app.appsearch.testutil.functions.ActivityCreationSynchronizer"
                  android:exported="true"/>
        <service android:name="android.app.appsearch.testutil.functions.TestAppFunctionService"
                 android:exported="true"
                 android:permission="android.permission.BIND_APP_FUNCTION_SERVICE"
                 android:process=":appfunctions">
            <intent-filter>
                <action android:name="android.app.appsearch.functions.AppFunctionService"/>
            </intent-filter>
        </service>
        <receiver
            android:name="android.app.appsearch.testutil.functions.TestAppFunctionServiceLifecycleReceiver"
            android:exported="false"/>
    </application>
    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
                     android:targetPackage="com.android.cts.appsearch"
                     android:label="CtsAppSearchTestCases"/>
</manifest>
