Fixes: 1. Remove registered observer when removed from persisted file 2. Only call external observers after threshold is exceeded 3. Handle edge case where we reschedule package cleanup and elapsed time is longer than scheduled duration 4. Modify code to allow easier testing Bug: 120598832 Test: atest PackageWatchdogTest Change-Id: I92181136fb5994a4d8ebe976be3138f210e853a5
29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2018 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.tests.packagewatchdog" >
|
|
|
|
<application android:debuggable="true">
|
|
<uses-library android:name="android.test.runner" />
|
|
</application>
|
|
|
|
|
|
<instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
|
|
android:targetPackage="com.android.tests.packagewatchdog"
|
|
android:label="PackageWatchdog Test"/>
|
|
</manifest>
|