/** * Revoke the given permissions for the current process and user. * * Has no effect if permissions were not previously granted. */ public void denyPermissions(String... permissionNames) { getShadowInstrumentation().denyPermissions(permissionNames); }
/** * Consumes the most recent {@code Intent} started by {@link * ContextWrapper#startActivity(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ public Intent getNextStartedActivity() { return getShadowInstrumentation().getNextStartedActivity(); }
/** * Returns the most recent {@code Intent} started by {@link * ContextWrapper#startActivity(android.content.Intent)} without consuming it. * * @return the most recently started {@code Intent} */ public Intent peekNextStartedActivity() { return getShadowInstrumentation().peekNextStartedActivity(); }
/** * Clears all {@code Intent}s started by {@link * ContextWrapper#startActivity(android.content.Intent)}. */ public void clearNextStartedActivities() { getShadowInstrumentation().clearNextStartedActivities(); }
/** * Consumes the {@code Intent} requested to stop a service by * {@link android.content.Context#stopService(android.content.Intent)} * from the bottom of the stack of stop requests. */ public Intent getNextStoppedService() { return getShadowInstrumentation().getNextStoppedService(); }
/** * Consumes the most recent {@code Intent} started by * {@link android.content.Context#startService(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ public Intent getNextStartedService() { return getShadowInstrumentation().getNextStartedService(); }
/** * Returns the most recent {@code Intent} started by * {@link android.content.Context#startService(android.content.Intent)} without consuming it. * * @return the most recently started {@code Intent} */ public Intent peekNextStartedService() { return getShadowInstrumentation().peekNextStartedService(); }
/** * Clears all {@code Intent} started by * {@link android.content.Context#startService(android.content.Intent)}. */ public void clearStartedServices() { getShadowInstrumentation().clearStartedServices(); }
/** Revoke the given permissions for the given process and user. */ public void denyPermissions(int pid, int uid, String... permissions) { getShadowInstrumentation().denyPermissions(pid, uid, permissions); }
/** Grant the given permissions for the current process and user. */ public void grantPermissions(String... permissionNames) { getShadowInstrumentation().grantPermissions(permissionNames); }
/** Grant the given permissions for the given process and user. */ public void grantPermissions(int pid, int uid, String... permissions) { getShadowInstrumentation().grantPermissions(pid, uid, permissions); }
public List<Intent> getBroadcastIntents() { return getShadowInstrumentation().getBroadcastIntents(); }
/** * Clears all {@code Intent}s started by {@link * ContextWrapper#startActivity(android.content.Intent)}. */ public void clearNextStartedActivities() { getShadowInstrumentation().clearNextStartedActivities(); }
/** * Returns the most recent {@code Intent} started by * {@link android.content.Context#startService(android.content.Intent)} without consuming it. * * @return the most recently started {@code Intent} */ public Intent peekNextStartedService() { return getShadowInstrumentation().peekNextStartedService(); }
/** * Clears all {@code Intent} started by * {@link android.content.Context#startService(android.content.Intent)}. */ public void clearStartedServices() { getShadowInstrumentation().clearStartedServices(); }
/** * Consumes the most recent {@code Intent} started by * {@link android.content.Context#startService(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ public Intent getNextStartedService() { return getShadowInstrumentation().getNextStartedService(); }
/** * Revoke the given permissions for the current process and user. * * Has no effect if permissions were not previously granted. */ public void denyPermissions(String... permissionNames) { getShadowInstrumentation().denyPermissions(permissionNames); }
/** Grant the given permissions for the current process and user. */ public void grantPermissions(String... permissionNames) { getShadowInstrumentation().grantPermissions(permissionNames); }
/** * Returns the most recent {@code Intent} started by {@link * ContextWrapper#startActivity(android.content.Intent)} without consuming it. * * @return the most recently started {@code Intent} */ public Intent peekNextStartedActivity() { return getShadowInstrumentation().peekNextStartedActivity(); }
/** * Consumes the {@code Intent} requested to stop a service by * {@link android.content.Context#stopService(android.content.Intent)} * from the bottom of the stack of stop requests. */ public Intent getNextStoppedService() { return getShadowInstrumentation().getNextStoppedService(); }