Set up a base class for testing fragments that will generate the host and run the fragment through some lifecycle checks to make sure it does ok with standard lifecycle. Fragment tests will also automatically check for any sort of leaks related to bindings, receivers, or other callbacks in sysui. This requires changing the statusbar.policy classes with callbacks to have a common interface. Lastly also fixes a few lifecycle bugs in QS found from the above tests. Bug: 32609190 Test: runtest systemui Change-Id: I52007c696c2fd41914bba4ba9d8055f2b564a7d8
44 lines
2.0 KiB
XML
44 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2011 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"
|
|
package="com.android.systemui.tests">
|
|
|
|
<uses-permission android:name="android.permission.INJECT_EVENTS" />
|
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
|
|
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
|
<uses-permission android:name="android.permission.MANAGE_USERS" />
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.BIND_QUICK_SETTINGS_TILE" />
|
|
|
|
<application>
|
|
<uses-library android:name="android.test.runner" />
|
|
<activity android:name="com.android.systemui.screenshot.ScreenshotStubActivity" />
|
|
|
|
<service
|
|
android:name="com.android.systemui.qs.external.TileLifecycleManagerTests$FakeTileService"
|
|
android:process=":killable" />
|
|
</application>
|
|
|
|
<instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
|
|
android:targetPackage="com.android.systemui.tests"
|
|
android:label="Tests for SystemUI">
|
|
</instrumentation>
|
|
</manifest>
|