use of android.app.ApplicationExitInfo in project robolectric by robolectric.
the class ShadowActivityManager method addApplicationExitInfo.
/**
* Adds an {@link ApplicationExitInfo} with the given information
*
* @deprecated Prefer using overload with {@link ApplicationExitInfoBuilder}
*/
@Deprecated
@RequiresApi(api = R)
public void addApplicationExitInfo(String processName, int pid, int reason, int status) {
ApplicationExitInfo info = ApplicationExitInfoBuilder.newBuilder().setProcessName(processName).setPid(pid).setReason(reason).setStatus(status).build();
addApplicationExitInfo(info);
}
Aggregations