Expose TestAPIs needed by GtsOsTestCases

Test: atest GtsOsTestCases on pi-dev:taimen and oc-mr1:sailfish
Bug: 77497338
Change-Id: I5de976991a857bfbed2faa943822af542601fa8b
This commit is contained in:
Philip P. Moltmann
2018-04-04 11:20:44 -07:00
parent 7f03f1a20c
commit f80809ffd7
11 changed files with 126 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ import android.annotation.RequiresPermission;
import android.annotation.SuppressLint;
import android.annotation.SystemApi;
import android.annotation.SystemService;
import android.annotation.TestApi;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
@@ -391,6 +392,18 @@ public class LocationManager {
}
}
/**
* @hide
*/
@TestApi
public String[] getBackgroundThrottlingWhitelist() {
try {
return mService.getBackgroundThrottlingWhitelist();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
/**
* @hide - hide this constructor because it has a parameter
* of type ILocationManager, which is a system private class. The