• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<manifest
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:tools="http://schemas.android.com/tools"
21    package="com.android.healthconnect.controller.tests">
22
23  <application
24      android:name="dagger.hilt.android.testing.HiltTestApplication"
25      android:debuggable="true"
26      tools:replace="android:name">
27    <uses-library android:name="android.test.runner" />
28    <activity
29        android:name=".TestActivity"
30        android:exported="true"
31        android:theme="@style/Theme.HealthConnect">
32      <intent-filter>
33        <action android:name="android.intent.action.MAIN" />
34        <category android:name="android.intent.category.LAUNCHER" />
35      </intent-filter>
36    </activity>
37
38    <!--
39    Disable the receiver in tests.
40
41    This receiver listens to ACTION_BOOT_COMPLETED actions and on Android V the system sends
42    ACTION_BOOT_COMPLETED to the test app whenever it gets initialized. The receiver gets triggered
43    before Hilt is able to initialize the dependency injection graph which causes a crash.
44    See https://developer.android.com/partners/google-apps/android-15/changes#enhanced-stop-states.
45    -->
46    <receiver
47        android:name="com.android.healthconnect.controller.safetycenter.SafetySourceBroadcastReceiver"
48        android:enabled="false"/>
49  </application>
50
51  <queries>
52    <intent>
53      <!-- An intent action to get package visibility into client apps. See more at b/193547946 -->
54      <action android:name="android.intent.action.VIEW_PERMISSION_USAGE" />
55      <category android:name="android.intent.category.HEALTH_PERMISSIONS" />
56    </intent>
57  </queries>
58
59  <instrumentation
60      android:name="com.android.healthconnect.controller.tests.HiltTestRunner"
61      android:label="Health Connect UI Test Cases"
62      android:targetPackage="com.android.healthconnect.controller.tests" />
63</manifest>
64