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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user