HomeSort by relevance Sort by last modified time
    Searched full:closeable (Results 1 - 25 of 109) sorted by null

1 2 3 4 5

  /external/guava/guava/src/com/google/common/io/
Closeables.java 22 import java.io.Closeable;
30 * Utility methods for working with {@link Closeable} objects.
43 * Closes a {@link Closeable}, with control over whether an
67 * @param closeable the {@code Closeable} object to be closed, or null,
74 public static void close(@Nullable Closeable closeable,
76 if (closeable == null) {
80 closeable.close();
84 "IOException thrown while closing Closeable.", e)
    [all...]
AppendableWriter.java 19 import java.io.Closeable;
26 * is {@link Flushable} or {@link Closeable}, flush()es and close()s will also
67 if (target instanceof Closeable) {
68 ((Closeable) target).close();
CharStreams.java 22 import java.io.Closeable;
44 * {@code Readable & Closeable}. A {@link java.io.Reader} implements both of
45 * those interfaces. Similarly for {@code Appendable & Closeable} and
124 public static <W extends Appendable & Closeable> void write(CharSequence from,
147 public static <R extends Readable & Closeable,
148 W extends Appendable & Closeable> long copy(InputSupplier<R> from,
177 public static <R extends Readable & Closeable> long copy(
227 * Returns the characters from a {@link Readable} & {@link Closeable} object
234 public static <R extends Readable & Closeable> String toString(
254 * Returns the characters from a {@link Readable} & {@link Closeable} objec
    [all...]
  /development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/utils/
CloseUtils.java 21 import java.io.Closeable;
32 * If the argument is non-null, close the Closeable ignoring any {@link IOException}.
34 public static void closeQuietly(Closeable closeable) {
35 if (closeable != null) {
37 closeable.close();
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
QuietlyCloseable.java 19 import java.io.Closeable;
22 * Interface for closeable objects whose close method doesn't throw IOExceptions.
24 public interface QuietlyCloseable extends Closeable {
  /external/guava/guava-tests/test/com/google/common/io/
CloseablesTest.java 27 import java.io.Closeable;
35 * IOExceptions on Closeable.close() or Flushable.flush() are not
42 private Closeable mockCloseable;
116 mockCloseable = createStrictMock(Closeable.class);
125 // Set up a closeable to expect to be closed, and optionally to throw an
147 private void doClose(Closeable closeable, boolean swallowException) {
148 doClose(closeable, swallowException, !swallowException);
151 // Close the closeable using the Closeables, passing in the swallowException
154 private void doClose(Closeable closeable, boolean swallowException
    [all...]
AppendableWriterTest.java 19 import java.io.Closeable;
31 /** Helper class for testing behavior with Flushable and Closeable targets. */
32 private static class SpyAppendable implements Appendable, Flushable, Closeable {
CheckCloseSupplier.java 25 * The purpose of the CheckCloseSupplier is to report when all closeable objects
82 * {@code Closeable} is not longer open.
  /cts/libs/vogar-expect/src/vogar/util/
IoUtils.java 19 import java.io.Closeable;
25 public static void closeQuietly(Closeable c) {
  /external/chromium/chrome/browser/chromeos/
tab_closeable_state_watcher.cc 116 // Only normal browsers may affect closeable state.
128 // Only normal browsers may affect closeable state.
213 void TabCloseableStateWatcher::SetCloseableState(bool closeable) {
214 if (can_close_tab_ == closeable) // No change in state.
217 can_close_tab_ = closeable;
219 // Notify of change in tab closeable state.
235 // Browser is always closeable when signing off.
239 // Non-normal browsers are always closeable.
243 // If this is not the last normal browser, it's always closeable.
257 // If tab is not closeable, browser is not closeable
    [all...]
tab_closeable_state_watcher_browsertest.cc 115 // - if tab is about:blank, it is closeable
116 // - if tab is NewTabPage, it is not closeable
117 // - if tab is other url, it is closeable
120 // Check that default about::blank tab is closeable.
124 // Naviate tab to NewTabPage, and check that it's not closeable.
128 // Navigate tab to any other URL, and check that it's closeable.
134 // - as long as there's > 1 tab, all tabs in the browser are always closeable
137 // 1 NewTabPage with any other tab are closeable.
162 // - non-normal browser with any tab(s) is always closeable.
163 // - non-normal browser does not affect closeable state of tab(s) in norma
    [all...]
tab_closeable_state_watcher.h 23 // 1) A tab, and hence its containing browser, is not closeable if the tab is
31 // NewTabPage (which, by rule 1, will not be closeable).
35 // 1) A tab, and hence its containing browser, is not closeable if the tab is
76 // Checks the closeable state of tab. If it has changed, updates it and
78 // |browser_to_check| is the browser whose closeable state the caller is
83 // Sets the new closeable state and fires notification.
84 void SetCloseableState(bool closeable);
87 // |action_type| is the action to take regardless if browser is closeable.
  /libcore/luni/src/main/java/libcore/io/
IoUtils.java 46 * Closes 'closeable', ignoring any checked exceptions. Does nothing if 'closeable' is null.
48 public static void closeQuietly(AutoCloseable closeable) {
49 if (closeable != null) {
51 closeable.close();
  /frameworks/base/services/java/com/android/server/
RandomBlock.java 21 import java.io.Closeable;
91 private static void close(Closeable c) {
98 Slog.w(TAG, "IOException thrown while closing Closeable", e);
  /external/chromium/chrome/browser/
tab_closeable_state_watcher.cc 20 // We only watch closeable state of tab on chromeos, and only when it's not
tab_closeable_state_watcher.h 13 // Base class for watching closeable state of tabs, which always returns true
28 // CanCloseTab, and returns true if tab of browser is closeable.
  /external/jsilver/src/org/clearsilver/
CS.java 19 import java.io.Closeable;
22 public interface CS extends Closeable {
  /libcore/support/src/test/java/libcore/dalvik/system/
CloseGuardTester.java 20 import java.io.Closeable;
31 public final class CloseGuardTester implements Closeable {
  /frameworks/base/services/java/com/android/server/am/
DeviceMonitor.java 173 * @param closeable
175 private static void closeQuietly(Closeable closeable) {
177 if (closeable != null) {
178 closeable.close();
  /frameworks/base/core/java/android/database/sqlite/
SQLiteClosable.java 19 import java.io.Closeable;
26 public abstract class SQLiteClosable implements Closeable {
  /libcore/luni/src/main/java/java/nio/channels/
Channel.java 19 import java.io.Closeable;
33 public interface Channel extends Closeable {
  /libcore/luni/src/main/java/java/io/
Closeable.java 22 public interface Closeable extends AutoCloseable {
  /cts/tools/vm-tests-tf/src/util/build/
DasmBuildStep.java 24 import java.io.Closeable;
148 private static void close(Closeable c) {
  /libcore/luni/src/main/java/java/nio/
PipeImpl.java 19 import java.io.Closeable;
60 private static class FdCloser implements Closeable {
  /libcore/luni/src/main/java/libcore/net/
RawSocket.java 20 import java.io.Closeable;
34 public class RawSocket implements Closeable {

Completed in 315 milliseconds

1 2 3 4 5