Merge "Merge "Don't show unsupported sdk warning in test harness." into pi-dev am: 444885b10d" into pi-dev-plus-aosp
am: cd6eae6cce
Change-Id: Id6e530efea409379ac882843824baaf3260cb264
This commit is contained in:
@@ -3744,6 +3744,24 @@ public class ActivityManager {
|
||||
return SystemProperties.getBoolean("ro.test_harness", false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsupported compiled sdk warning should always be shown for the intput activity
|
||||
* even in cases where the system would normally not show the warning. E.g. when running in a
|
||||
* test harness.
|
||||
*
|
||||
* @param activity The component name of the activity to always show the warning for.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public void alwaysShowUnsupportedCompileSdkWarning(ComponentName activity) {
|
||||
try {
|
||||
getService().alwaysShowUnsupportedCompileSdkWarning(activity);
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the launch count of each installed package.
|
||||
*
|
||||
|
||||
@@ -703,4 +703,7 @@ interface IActivityManager {
|
||||
*/
|
||||
void registerRemoteAnimationForNextActivityStart(in String packageName,
|
||||
in RemoteAnimationAdapter adapter);
|
||||
|
||||
/** @see android.app.ActivityManager#alwaysShowUnsupportedCompileSdkWarning */
|
||||
void alwaysShowUnsupportedCompileSdkWarning(in ComponentName activity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user