/** * Consumes the {@code Intent} requested to stop a service by {@link * #stopService(android.content.Intent)} from the bottom of the stack of stop requests. */ Intent getNextStoppedService() { if (stoppedServices.isEmpty()) { return null; } else { return stoppedServices.remove(0).getIntent(); } }
/** * Returns the most recent {@code Intent} started by {@link #startService(android.content.Intent)} * without consuming it. * * @return the most recently started {@code Intent} */ Intent peekNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.get(0).getIntent(); } }
/** * Consumes the most recent {@code Intent} started by {@link * #startService(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ Intent getNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.remove(0).getIntent(); } }
/** * Returns the most recent {@code Intent} started by {@link #startService(android.content.Intent)} without * consuming it. * * @return the most recently started {@code Intent} */ @Override public Intent peekNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.get(0).getIntent(); } }
/** * Returns the most recent {@code Intent} started by {@link #startService(android.content.Intent)} without * consuming it. * * @return the most recently started {@code Intent} */ @Override public Intent peekNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.get(0).getIntent(); } }
/** * Returns the most recent {@code Intent} started by {@link #startService(android.content.Intent)} * without consuming it. * * @return the most recently started {@code Intent} */ Intent peekNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.get(0).getIntent(); } }
/** * Consumes the most recent {@code Intent} started by {@link #startService(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ @Override public Intent getNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.remove(0).getIntent(); } }
/** * Consumes the most recent {@code Intent} started by {@link #startService(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ @Override public Intent getNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.remove(0).getIntent(); } }
/** * Consumes the most recent {@code Intent} started by {@link #startService(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ @Override public Intent getNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.remove(0).getIntent(); } }
/** * Consumes the most recent {@code Intent} started by {@link * #startService(android.content.Intent)} and returns it. * * @return the most recently started {@code Intent} */ Intent getNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.remove(0).getIntent(); } }
/** * Consumes the {@code Intent} requested to stop a service by {@link #stopService(android.content.Intent)} * from the bottom of the stack of stop requests. */ @Override public Intent getNextStoppedService() { if (stoppedServices.isEmpty()) { return null; } else { return stoppedServices.remove(0).getIntent(); } }
/** * Consumes the {@code Intent} requested to stop a service by {@link #stopService(android.content.Intent)} * from the bottom of the stack of stop requests. */ @Override public Intent getNextStoppedService() { if (stoppedServices.isEmpty()) { return null; } else { return stoppedServices.remove(0).getIntent(); } }
/** * Returns the most recent {@code Intent} started by {@link #startService(android.content.Intent)} without * consuming it. * * @return the most recently started {@code Intent} */ @Override public Intent peekNextStartedService() { if (startedServices.isEmpty()) { return null; } else { return startedServices.get(0).getIntent(); } }
/** * Consumes the {@code Intent} requested to stop a service by {@link #stopService(android.content.Intent)} * from the bottom of the stack of stop requests. */ @Override public Intent getNextStoppedService() { if (stoppedServices.isEmpty()) { return null; } else { return stoppedServices.remove(0).getIntent(); } }
/** * Consumes the {@code Intent} requested to stop a service by {@link * #stopService(android.content.Intent)} from the bottom of the stack of stop requests. */ Intent getNextStoppedService() { if (stoppedServices.isEmpty()) { return null; } else { return stoppedServices.remove(0).getIntent(); } }