Search in sources :

Example 1 with ApplicationExitInfo

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);
}
Also used : ApplicationExitInfo(android.app.ApplicationExitInfo) RequiresApi(androidx.annotation.RequiresApi)

Aggregations

ApplicationExitInfo (android.app.ApplicationExitInfo)1 RequiresApi (androidx.annotation.RequiresApi)1